vue-data-ui 3.16.0 → 3.16.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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ne, useSlots as Fl, onMounted as No, computed as
|
|
1
|
+
import { defineAsyncComponent as Ne, useSlots as Fl, onMounted as No, computed as k, ref as b, shallowRef as Ce, toRefs as Ll, watch as Be, onBeforeUnmount as Nl, openBlock as v, createElementBlock as A, unref as y, normalizeStyle as xe, normalizeClass as Zt, createElementVNode as E, toDisplayString as tt, createBlock as he, createCommentVNode as N, withCtx as M, renderSlot as C, normalizeProps as X, guardReactiveProps as j, createSlots as Bo, Fragment as ot, renderList as ht, withKeys as Ro, withModifiers as Jt, mergeProps as ft, createVNode as pt, createTextVNode as gt, Teleport as Bl, resolveDynamicComponent as Rl, nextTick as Do } from "vue";
|
|
2
2
|
import { j as yt, t as zo, m as Dl, p as G, n as zl, o as Vo, q as Vl, s as lt, k as mt, l as at, X as Qt, x as bt, W as wt, T as Ho, a0 as Hl, a1 as El, az as kt, aA as eo, U as Wl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Ul, u as Yl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Xl } from "./useConfig-DO94Aj5s.js";
|
|
@@ -17,164 +17,164 @@ import Eo from "./BaseIcon-Cb3zzG6s.js";
|
|
|
17
17
|
import { A as aa } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
18
|
import { B as na } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
19
|
import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
function Wo(
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
throw new Error(`Max aspect ratio cannot be computed: ${
|
|
20
|
+
function Wo(r, p) {
|
|
21
|
+
const h = r.length;
|
|
22
|
+
if (h === 0)
|
|
23
|
+
throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);
|
|
24
24
|
{
|
|
25
|
-
let g = 1 / 0, f = -1 / 0,
|
|
26
|
-
for (let P = 0; P <
|
|
27
|
-
const
|
|
28
|
-
|
|
25
|
+
let g = 1 / 0, f = -1 / 0, x = 0;
|
|
26
|
+
for (let P = 0; P < h; P += 1) {
|
|
27
|
+
const S = r[P].normalizedValue;
|
|
28
|
+
S < g && (g = S), S > f && (f = S), x += S;
|
|
29
29
|
}
|
|
30
30
|
return Math.max(
|
|
31
|
-
p ** 2 * f /
|
|
32
|
-
|
|
31
|
+
p ** 2 * f / x ** 2,
|
|
32
|
+
x ** 2 / (p ** 2 * g)
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function Uo(
|
|
37
|
-
const { xOffset: p, yOffset:
|
|
36
|
+
function Uo(r) {
|
|
37
|
+
const { xOffset: p, yOffset: h, width: g, height: f } = r;
|
|
38
38
|
return {
|
|
39
39
|
x0: p,
|
|
40
|
-
y0:
|
|
40
|
+
y0: h,
|
|
41
41
|
x1: p + g,
|
|
42
|
-
y1:
|
|
42
|
+
y1: h + f
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function ua(
|
|
46
|
-
if (
|
|
45
|
+
function ua(r, p, h) {
|
|
46
|
+
if (r.length === 0)
|
|
47
47
|
return !0;
|
|
48
48
|
{
|
|
49
|
-
const g =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
),
|
|
53
|
-
return f >=
|
|
49
|
+
const g = r.concat(p), f = Wo(
|
|
50
|
+
r,
|
|
51
|
+
h
|
|
52
|
+
), x = Wo(g, h);
|
|
53
|
+
return f >= x;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function ra(
|
|
57
|
-
const p = [],
|
|
58
|
-
for (let g = 0; g <
|
|
59
|
-
const f =
|
|
60
|
-
for (let m = 0; m <
|
|
56
|
+
function ra(r) {
|
|
57
|
+
const p = [], h = r.length;
|
|
58
|
+
for (let g = 0; g < h; g += 1) {
|
|
59
|
+
const f = r[g], x = f.length;
|
|
60
|
+
for (let m = 0; m < x; m += 1)
|
|
61
61
|
p.push(f[m]);
|
|
62
62
|
}
|
|
63
63
|
return p;
|
|
64
64
|
}
|
|
65
|
-
function Yo(
|
|
66
|
-
const
|
|
65
|
+
function Yo(r, p) {
|
|
66
|
+
const h = {
|
|
67
67
|
...p,
|
|
68
|
-
children:
|
|
68
|
+
children: r
|
|
69
69
|
};
|
|
70
|
-
return jo(
|
|
70
|
+
return jo(h);
|
|
71
71
|
}
|
|
72
|
-
function ia(
|
|
73
|
-
return (
|
|
72
|
+
function ia(r) {
|
|
73
|
+
return (r.x1 - r.x0) * (r.y1 - r.y0);
|
|
74
74
|
}
|
|
75
|
-
function Xo(
|
|
76
|
-
const { width:
|
|
77
|
-
let ue = f, fe =
|
|
75
|
+
function Xo(r, p) {
|
|
76
|
+
const { width: h, height: g, xOffset: f, yOffset: x } = oo(p), m = r.length, P = r.map(($) => $.normalizedValue || 0).reduce(($, V) => $ + V, 0), S = P / g, $e = P / h;
|
|
77
|
+
let ue = f, fe = x;
|
|
78
78
|
const Z = [];
|
|
79
|
-
if (
|
|
80
|
-
for (let
|
|
81
|
-
const
|
|
79
|
+
if (h >= g) {
|
|
80
|
+
for (let $ = 0; $ < m; $ += 1) {
|
|
81
|
+
const V = r[$], pe = fe + V.normalizedValue / S, Te = {
|
|
82
82
|
x0: ue,
|
|
83
83
|
y0: fe,
|
|
84
|
-
x1: ue +
|
|
84
|
+
x1: ue + S,
|
|
85
85
|
y1: pe
|
|
86
|
-
}, ge = Object.assign({},
|
|
86
|
+
}, ge = Object.assign({}, V, Te);
|
|
87
87
|
fe = pe, Z.push(ge);
|
|
88
88
|
}
|
|
89
89
|
return Z;
|
|
90
90
|
} else {
|
|
91
|
-
for (let
|
|
92
|
-
const
|
|
91
|
+
for (let $ = 0; $ < m; $ += 1) {
|
|
92
|
+
const V = r[$], pe = ue + V.normalizedValue / $e, Te = {
|
|
93
93
|
x0: ue,
|
|
94
94
|
y0: fe,
|
|
95
95
|
x1: pe,
|
|
96
96
|
y1: fe + $e
|
|
97
|
-
}, ge = Object.assign({},
|
|
97
|
+
}, ge = Object.assign({}, V, Te);
|
|
98
98
|
ue = pe, Z.push(ge);
|
|
99
99
|
}
|
|
100
100
|
return Z;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function ca(
|
|
104
|
-
const p = oo(
|
|
105
|
-
return Math.min(
|
|
103
|
+
function ca(r) {
|
|
104
|
+
const p = oo(r), h = p.width, g = p.height;
|
|
105
|
+
return Math.min(h, g);
|
|
106
106
|
}
|
|
107
|
-
function da(
|
|
108
|
-
const
|
|
107
|
+
function da(r, p) {
|
|
108
|
+
const h = r.length, g = r.map((S) => S.value ?? 0).reduce((S, $e) => S + $e, 0), f = p / g, x = [];
|
|
109
109
|
let m, P;
|
|
110
|
-
for (let
|
|
111
|
-
P =
|
|
110
|
+
for (let S = 0; S < h; S += 1)
|
|
111
|
+
P = r[S], m = Object.assign({}, P, {
|
|
112
112
|
normalizedValue: P.value * (f || 0)
|
|
113
|
-
}),
|
|
114
|
-
return
|
|
113
|
+
}), x.push(m);
|
|
114
|
+
return x;
|
|
115
115
|
}
|
|
116
|
-
function oo(
|
|
117
|
-
const { x0: p, y0:
|
|
116
|
+
function oo(r) {
|
|
117
|
+
const { x0: p, y0: h, x1: g, y1: f } = r;
|
|
118
118
|
return {
|
|
119
119
|
xOffset: p,
|
|
120
|
-
yOffset:
|
|
120
|
+
yOffset: h,
|
|
121
121
|
width: g - p,
|
|
122
|
-
height: f -
|
|
122
|
+
height: f - h
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
function va(
|
|
126
|
-
let f =
|
|
125
|
+
function va(r, p, h, g) {
|
|
126
|
+
let f = r, x = p, m = h, P = g;
|
|
127
127
|
for (; ; ) {
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
const Z = Xo(
|
|
128
|
+
const S = f.length;
|
|
129
|
+
if (S === 0) {
|
|
130
|
+
const Z = Xo(x, m);
|
|
131
131
|
return P.concat(Z);
|
|
132
132
|
}
|
|
133
|
-
const $e = ca(m), ue = f[0], fe = f.slice(1,
|
|
134
|
-
if (ua(
|
|
135
|
-
const Z =
|
|
136
|
-
f = fe,
|
|
133
|
+
const $e = ca(m), ue = f[0], fe = f.slice(1, S);
|
|
134
|
+
if (ua(x, ue, $e)) {
|
|
135
|
+
const Z = x.concat(ue);
|
|
136
|
+
f = fe, x = Z, m = m, P = P;
|
|
137
137
|
} else {
|
|
138
|
-
const Z =
|
|
139
|
-
let
|
|
138
|
+
const Z = x.length;
|
|
139
|
+
let $ = 0;
|
|
140
140
|
for (let ge = 0; ge < Z; ge += 1)
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
f = f,
|
|
141
|
+
$ += x[ge].normalizedValue;
|
|
142
|
+
const V = ha(m, $), pe = Xo(x, m), Te = P.concat(pe);
|
|
143
|
+
f = f, x = [], m = V, P = Te;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
function jo(
|
|
148
|
-
if (typeof
|
|
149
|
-
return [
|
|
147
|
+
function jo(r) {
|
|
148
|
+
if (typeof r.children > "u" || !r.children.length)
|
|
149
|
+
return [r];
|
|
150
150
|
{
|
|
151
151
|
const p = da(
|
|
152
|
-
|
|
153
|
-
ia(
|
|
154
|
-
),
|
|
152
|
+
r.children,
|
|
153
|
+
ia(r)
|
|
154
|
+
), h = va(p, [], r, []), g = h.length, f = [];
|
|
155
155
|
for (let m = 0; m < g; m += 1)
|
|
156
|
-
f.push(jo(
|
|
156
|
+
f.push(jo(h[m]));
|
|
157
157
|
return ra(f);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function ha(
|
|
161
|
-
const { width:
|
|
162
|
-
if (
|
|
163
|
-
const m = p / g, P =
|
|
160
|
+
function ha(r, p) {
|
|
161
|
+
const { width: h, height: g, xOffset: f, yOffset: x } = oo(r);
|
|
162
|
+
if (h >= g) {
|
|
163
|
+
const m = p / g, P = h - m, S = {
|
|
164
164
|
xOffset: f + m,
|
|
165
|
-
yOffset:
|
|
165
|
+
yOffset: x,
|
|
166
166
|
width: P,
|
|
167
167
|
height: g
|
|
168
168
|
};
|
|
169
|
-
return Uo(
|
|
169
|
+
return Uo(S);
|
|
170
170
|
} else {
|
|
171
|
-
const m = p /
|
|
171
|
+
const m = p / h, P = g - m, S = {
|
|
172
172
|
xOffset: f,
|
|
173
|
-
yOffset:
|
|
174
|
-
width:
|
|
173
|
+
yOffset: x + m,
|
|
174
|
+
width: h,
|
|
175
175
|
height: P
|
|
176
176
|
};
|
|
177
|
-
return Uo(
|
|
177
|
+
return Uo(S);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], ma = { class: "vue-ui-treemap-crumb-unit" }, ba = { class: "vue-ui-treemap-crumb-unit-label" }, wa = {
|
|
@@ -214,12 +214,12 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
217
|
-
setup(
|
|
218
|
-
const g = Ne(() => import("./DataTable-DT2kIdQ6.js")), f = Ne(() => import("./PenAndPaper-
|
|
217
|
+
setup(r, { expose: p, emit: h }) {
|
|
218
|
+
const g = Ne(() => import("./DataTable-DT2kIdQ6.js")), f = Ne(() => import("./PenAndPaper-Ct3qJ4lA.js")), x = Ne(() => import("./vue-ui-accordion-nvggWcGN.js")), m = Ne(() => import("./Tooltip-Bf-kM3_A.js")), P = Ne(() => import("./UserOptions-rW2fRf3V.js")), S = Ne(() => import("./PackageVersion-DPO-OOVI.js")), $e = Ne(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_treemap: ue } = Xl(), { isThemeValid: fe, warnInvalidTheme: Z } = Zl(), $ = r, V = h, pe = Fl();
|
|
219
219
|
No(() => {
|
|
220
220
|
pe["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
221
221
|
});
|
|
222
|
-
const Te =
|
|
222
|
+
const Te = k(() => !!$.dataset && $.dataset.length), ge = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), le = b(yt()), Ue = b(!1), Ct = b(""), Ie = b(!1), lo = b(0), B = b([]), re = Ce(null), ao = Ce(null), no = Ce(null), so = Ce(null), uo = Ce(null), ro = b(0), xt = b(0), $t = b(0), I = b([]), Tt = b(null), io = b(!1), Ye = b(null), St = b(null), Xe = b(null), K = b(/* @__PURE__ */ new Map()), nt = b(!1), st = b(!1), ye = b(null), co = b({ x: 0, y: 0 }), je = b("pointer"), At = b(!1), t = b(Ot()), Se = k(() => t.value.userOptions.useCursorPointer), Ko = k(() => zo({
|
|
223
223
|
defaultConfig: {
|
|
224
224
|
userOptions: { show: !1 },
|
|
225
225
|
style: {
|
|
@@ -241,10 +241,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
241
241
|
},
|
|
242
242
|
userConfig: t.value.skeletonConfig ?? {}
|
|
243
243
|
})), { loading: Ae, FINAL_DATASET: Mt, manualLoading: qo } = jl({
|
|
244
|
-
...Ll(
|
|
244
|
+
...Ll($),
|
|
245
245
|
FINAL_CONFIG: t,
|
|
246
246
|
prepareConfig: Ot,
|
|
247
|
-
skeletonDataset:
|
|
247
|
+
skeletonDataset: $.config?.skeletonDataset ?? [
|
|
248
248
|
{
|
|
249
249
|
name: "_",
|
|
250
250
|
value: 53,
|
|
@@ -267,17 +267,17 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
267
267
|
}), { userOptionsVisible: Pt, setUserOptionsVisibility: vo, keepUserOptionState: ho } = Jl({ config: t.value }), { svgRef: Fe } = Ql({ config: t.value.style.chart.title });
|
|
268
268
|
function Ot() {
|
|
269
269
|
const e = to({
|
|
270
|
-
userConfig:
|
|
270
|
+
userConfig: $.config,
|
|
271
271
|
defaultConfig: ue
|
|
272
272
|
}), l = e.theme;
|
|
273
273
|
if (!l) return e;
|
|
274
274
|
if (!fe.value(e))
|
|
275
275
|
return Z(e), e;
|
|
276
276
|
const o = to({
|
|
277
|
-
userConfig: oa[l] ||
|
|
277
|
+
userConfig: oa[l] || $.config,
|
|
278
278
|
defaultConfig: e
|
|
279
279
|
}), a = to({
|
|
280
|
-
userConfig:
|
|
280
|
+
userConfig: $.config,
|
|
281
281
|
defaultConfig: o
|
|
282
282
|
});
|
|
283
283
|
return {
|
|
@@ -285,14 +285,14 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
285
285
|
customPalette: a.customPalette.length ? a.customPalette : Dl[l] || G
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
Be(() =>
|
|
288
|
+
Be(() => $.config, (e) => {
|
|
289
289
|
Ae.value || (t.value = Ot()), Pt.value = !t.value.userOptions.showOnChartHover, ro.value += 1, xt.value += 1, $t.value += 1, J.value.showTable = t.value.table.show, J.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
290
290
|
}, { deep: !0 });
|
|
291
291
|
const { isPrinting: _t, isImaging: It, generatePdf: fo, generateImage: po } = ql({
|
|
292
292
|
elementId: `treemap_${le.value}`,
|
|
293
293
|
fileName: t.value.style.chart.title.text || "vue-ui-treemap",
|
|
294
294
|
options: t.value.userOptions.print
|
|
295
|
-
}), Go =
|
|
295
|
+
}), Go = k(() => t.value.userOptions.show && !t.value.style.chart.title.text), ut = k(() => zl(t.value.customPalette)), J = b({
|
|
296
296
|
showTable: t.value.table.show,
|
|
297
297
|
showTooltip: t.value.style.chart.tooltip.show
|
|
298
298
|
});
|
|
@@ -317,15 +317,15 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
317
317
|
const e = Tt.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
|
|
318
318
|
return Zo(o);
|
|
319
319
|
}
|
|
320
|
-
const
|
|
321
|
-
const e = t.value.style.chart.padding, l = Le.value.width, o = Le.value.height, a = Jo(), n = e.left, s = l - e.right, u = e.top,
|
|
320
|
+
const D = k(() => {
|
|
321
|
+
const e = t.value.style.chart.padding, l = Le.value.width, o = Le.value.height, a = Jo(), n = e.left, s = l - e.right, u = e.top, i = o - e.bottom - a;
|
|
322
322
|
return {
|
|
323
323
|
left: n,
|
|
324
324
|
top: u,
|
|
325
325
|
right: s,
|
|
326
|
-
bottom:
|
|
326
|
+
bottom: i,
|
|
327
327
|
width: s - n,
|
|
328
|
-
height: Math.max(0,
|
|
328
|
+
height: Math.max(0, i - u),
|
|
329
329
|
vbWidth: l,
|
|
330
330
|
vbHeight: o - a,
|
|
331
331
|
offsetY: a
|
|
@@ -338,7 +338,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
338
338
|
},
|
|
339
339
|
{ deep: !0 }
|
|
340
340
|
), Be(
|
|
341
|
-
() =>
|
|
341
|
+
() => B.value,
|
|
342
342
|
() => {
|
|
343
343
|
Xe.value = null, K.value = /* @__PURE__ */ new Map();
|
|
344
344
|
},
|
|
@@ -380,13 +380,13 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
380
380
|
No(() => {
|
|
381
381
|
io.value = !0, tl();
|
|
382
382
|
});
|
|
383
|
-
const el =
|
|
383
|
+
const el = k(() => t.value.debug);
|
|
384
384
|
function tl() {
|
|
385
|
-
if (Vo(
|
|
385
|
+
if (Vo($.dataset) && Vl({
|
|
386
386
|
componentName: "VueUiTreemap",
|
|
387
387
|
type: "dataset",
|
|
388
388
|
debug: el.value
|
|
389
|
-
}), yo(Y.value), Vo(
|
|
389
|
+
}), yo(Y.value), Vo($.dataset) || (qo.value = t.value.loading), t.value.responsive) {
|
|
390
390
|
const e = Ul(() => {
|
|
391
391
|
const { width: l, height: o } = Yl({
|
|
392
392
|
chart: re.value,
|
|
@@ -405,10 +405,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
405
405
|
Nl(() => {
|
|
406
406
|
Pe.value && (Re.value && Pe.value.unobserve(Re.value), Pe.value.disconnect());
|
|
407
407
|
});
|
|
408
|
-
const Ke =
|
|
408
|
+
const Ke = k(() => Me.value.map((e, l) => ({
|
|
409
409
|
...e,
|
|
410
410
|
color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length]
|
|
411
|
-
})).filter((e) => !
|
|
411
|
+
})).filter((e) => !B.value.includes(e.id))), De = k(() => Y.value.filter((e) => !B.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), Ft = k({
|
|
412
412
|
get() {
|
|
413
413
|
let e = [...Ke.value];
|
|
414
414
|
return t.value.style.chart.layout.sorted && (e = [...Ke.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
|
|
@@ -439,34 +439,34 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
function ko(e, l, o, a, n) {
|
|
442
|
-
return ll(e).map((u,
|
|
442
|
+
return ll(e).map((u, i) => {
|
|
443
443
|
const c = ol(
|
|
444
|
-
lt(l) || ut.value[
|
|
444
|
+
lt(l) || ut.value[i] || G[i] || G[i % G.length],
|
|
445
445
|
u,
|
|
446
446
|
a
|
|
447
|
-
),
|
|
447
|
+
), d = bo(u, a), w = n ?? u.parentId ?? u.id;
|
|
448
448
|
return {
|
|
449
449
|
...u,
|
|
450
450
|
color: c,
|
|
451
|
-
proportion:
|
|
451
|
+
proportion: d,
|
|
452
452
|
parentName: o,
|
|
453
|
-
rootId:
|
|
453
|
+
rootId: w,
|
|
454
454
|
children: Array.isArray(u.children) && u.children.length ? ko(
|
|
455
455
|
u.children,
|
|
456
456
|
c,
|
|
457
457
|
u.name,
|
|
458
458
|
a,
|
|
459
|
-
|
|
459
|
+
w
|
|
460
460
|
) : void 0
|
|
461
461
|
};
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
const Co =
|
|
464
|
+
const Co = k(() => {
|
|
465
465
|
const e = Ft.value.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, l = Ft.value.map((n) => {
|
|
466
|
-
const s = n.children ? n.children.reduce((q, Oe) => q + (Number(Oe.value) || 0), 0) : n.value, { children: u, parentId:
|
|
466
|
+
const s = n.children ? n.children.reduce((q, Oe) => q + (Number(Oe.value) || 0), 0) : n.value, { children: u, parentId: i, id: c, value: d, name: w, color: z, ...T } = n, H = n.id || yt();
|
|
467
467
|
return {
|
|
468
|
-
|
|
469
|
-
id:
|
|
468
|
+
...T,
|
|
469
|
+
id: H,
|
|
470
470
|
name: n.name,
|
|
471
471
|
value: n.value,
|
|
472
472
|
color: n.color,
|
|
@@ -481,77 +481,77 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
481
481
|
});
|
|
482
482
|
if (I.value.length === 0) {
|
|
483
483
|
if (!Xe.value) {
|
|
484
|
-
const
|
|
485
|
-
Xe.value = Yo(l,
|
|
484
|
+
const i = { x0: 0, y0: 0, x1: 1, y1: 1 };
|
|
485
|
+
Xe.value = Yo(l, i);
|
|
486
486
|
}
|
|
487
487
|
const n = {
|
|
488
|
-
x0:
|
|
489
|
-
y0:
|
|
490
|
-
x1:
|
|
491
|
-
y1:
|
|
488
|
+
x0: D.value.left,
|
|
489
|
+
y0: D.value.top,
|
|
490
|
+
x1: D.value.left + D.value.width,
|
|
491
|
+
y1: D.value.top + D.value.height
|
|
492
492
|
}, s = n.x1 - n.x0, u = n.y1 - n.y0;
|
|
493
|
-
return Xe.value.map((
|
|
494
|
-
...
|
|
495
|
-
x0: n.x0 +
|
|
496
|
-
x1: n.x0 +
|
|
497
|
-
y0: n.y0 +
|
|
498
|
-
y1: n.y0 +
|
|
493
|
+
return Xe.value.map((i) => ({
|
|
494
|
+
...i,
|
|
495
|
+
x0: n.x0 + i.x0 * s,
|
|
496
|
+
x1: n.x0 + i.x1 * s,
|
|
497
|
+
y0: n.y0 + i.y0 * u,
|
|
498
|
+
y1: n.y0 + i.y1 * u
|
|
499
499
|
}));
|
|
500
500
|
}
|
|
501
501
|
const a = {
|
|
502
|
-
x0:
|
|
503
|
-
y0:
|
|
504
|
-
x1:
|
|
505
|
-
y1:
|
|
502
|
+
x0: D.value.left,
|
|
503
|
+
y0: D.value.top,
|
|
504
|
+
x1: D.value.left + D.value.width,
|
|
505
|
+
y1: D.value.top + D.value.height
|
|
506
506
|
};
|
|
507
507
|
return Yo(l, a);
|
|
508
508
|
});
|
|
509
509
|
function al(e) {
|
|
510
510
|
const l = I.value.length ? I.value[I.value.length - 1] : null, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
511
|
-
for (const
|
|
512
|
-
let c = rl(
|
|
511
|
+
for (const i of e) {
|
|
512
|
+
let c = rl(i.id);
|
|
513
513
|
if (l) {
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
516
|
-
c = c.slice(
|
|
514
|
+
const d = c.indexOf(l);
|
|
515
|
+
if (d >= 0)
|
|
516
|
+
c = c.slice(d);
|
|
517
517
|
else
|
|
518
518
|
continue;
|
|
519
519
|
}
|
|
520
|
-
c = c.filter((
|
|
521
|
-
const
|
|
522
|
-
return
|
|
523
|
-
}), c.length && (c.forEach((
|
|
524
|
-
const
|
|
525
|
-
if (!
|
|
526
|
-
let
|
|
527
|
-
|
|
528
|
-
id:
|
|
529
|
-
name:
|
|
530
|
-
value:
|
|
531
|
-
color:
|
|
532
|
-
x0:
|
|
533
|
-
y0:
|
|
534
|
-
x1:
|
|
535
|
-
y1:
|
|
536
|
-
depth:
|
|
520
|
+
c = c.filter((d) => {
|
|
521
|
+
const w = te(d);
|
|
522
|
+
return w && Array.isArray(w.children) && w.children.length;
|
|
523
|
+
}), c.length && (c.forEach((d, w) => {
|
|
524
|
+
const z = te(d);
|
|
525
|
+
if (!z) return;
|
|
526
|
+
let T = o.get(d);
|
|
527
|
+
T ? (T.x0 = Math.min(T.x0, i.x0), T.y0 = Math.min(T.y0, i.y0), T.x1 = Math.max(T.x1, i.x1), T.y1 = Math.max(T.y1, i.y1), T.depth = Math.min(T.depth, w)) : (T = {
|
|
528
|
+
id: d,
|
|
529
|
+
name: z.name,
|
|
530
|
+
value: z.value,
|
|
531
|
+
color: z.color,
|
|
532
|
+
x0: i.x0,
|
|
533
|
+
y0: i.y0,
|
|
534
|
+
x1: i.x1,
|
|
535
|
+
y1: i.y1,
|
|
536
|
+
depth: w
|
|
537
537
|
// depth from visible root
|
|
538
|
-
}, o.set(
|
|
539
|
-
let
|
|
540
|
-
|
|
541
|
-
const q = s.get(
|
|
542
|
-
(q == null ||
|
|
543
|
-
}), a.set(
|
|
538
|
+
}, o.set(d, T));
|
|
539
|
+
let H = n.get(d);
|
|
540
|
+
H || (H = /* @__PURE__ */ new Set(), n.set(d, H)), H.add(i.id);
|
|
541
|
+
const q = s.get(d);
|
|
542
|
+
(q == null || w < q) && s.set(d, w);
|
|
543
|
+
}), a.set(i.id, c));
|
|
544
544
|
}
|
|
545
545
|
return {
|
|
546
|
-
wrappers: Array.from(o.values()).map((
|
|
547
|
-
...
|
|
548
|
-
depth: s.get(
|
|
549
|
-
childrenIds: Array.from(n.get(
|
|
546
|
+
wrappers: Array.from(o.values()).map((i) => ({
|
|
547
|
+
...i,
|
|
548
|
+
depth: s.get(i.id) ?? i.depth ?? 0,
|
|
549
|
+
childrenIds: Array.from(n.get(i.id) || [])
|
|
550
550
|
})),
|
|
551
551
|
ancestorsByLeaf: a
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
const Lt =
|
|
554
|
+
const Lt = k(() => al(Co.value)), nl = k(() => {
|
|
555
555
|
const e = Lt.value.wrappers;
|
|
556
556
|
return e.length ? e.filter((l) => sl(l)) : [];
|
|
557
557
|
});
|
|
@@ -562,7 +562,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
562
562
|
const l = Nt(e);
|
|
563
563
|
return Q(e) < l * 1.1 ? !1 : (e.labelY0 = e.y0, !0);
|
|
564
564
|
}
|
|
565
|
-
const
|
|
565
|
+
const F = k(() => ul({
|
|
566
566
|
rects: Co.value,
|
|
567
567
|
wrappers: Lt.value.wrappers,
|
|
568
568
|
ancestorsByLeaf: Lt.value.ancestorsByLeaf
|
|
@@ -574,12 +574,12 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
574
574
|
const s = o.get(n.id);
|
|
575
575
|
if (!s || !s.length) return n;
|
|
576
576
|
let u = { ...n };
|
|
577
|
-
for (const
|
|
578
|
-
const c = a.get(
|
|
577
|
+
for (const i of s) {
|
|
578
|
+
const c = a.get(i);
|
|
579
579
|
if (!c) continue;
|
|
580
|
-
const
|
|
581
|
-
if (
|
|
582
|
-
const
|
|
580
|
+
const d = Q(c), w = Nt(c);
|
|
581
|
+
if (d < w * 1.1) continue;
|
|
582
|
+
const z = ze(c), T = z * 1.2, H = z * 0.5, q = z * 0.5, Oe = T * 0.5, Je = ee(c) / 3, Qe = Math.min(H, Je), _e = d * 0.25, Ht = Math.min(q, _e), Wt = (typeof c.labelY0 == "number" ? c.labelY0 : c.y0) + w, ce = Math.max(u.x0, c.x0 + Qe), we = Math.min(u.x1, c.x1 - Qe), ke = Math.max(u.y0, Wt + Oe), Ut = Math.min(u.y1, c.y1 - Ht);
|
|
583
583
|
if (we <= ce || Ut <= ke)
|
|
584
584
|
break;
|
|
585
585
|
u = {
|
|
@@ -600,25 +600,25 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
600
600
|
return l - e <= 0 ? 1e-4 : l - e;
|
|
601
601
|
}
|
|
602
602
|
function ze(e) {
|
|
603
|
-
const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, u = 0.6,
|
|
604
|
-
let
|
|
605
|
-
if (!(typeof
|
|
606
|
-
const q = Math.max(1e-6, ee(e) * Q(e)), Oe = Math.max(1e-6,
|
|
607
|
-
|
|
603
|
+
const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, u = 0.6, i = 1, c = 0.9;
|
|
604
|
+
let d = e.proportion;
|
|
605
|
+
if (!(typeof d == "number" && isFinite(d))) {
|
|
606
|
+
const q = Math.max(1e-6, ee(e) * Q(e)), Oe = Math.max(1e-6, D.value.width * D.value.height);
|
|
607
|
+
d = q / Oe;
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
let
|
|
611
|
-
const
|
|
612
|
-
return
|
|
609
|
+
const w = Math.pow(Math.min(1, Math.max(0, d)), s), z = u + (i - u) * w;
|
|
610
|
+
let T = o * z;
|
|
611
|
+
const H = Math.max(1e-4, Math.min(ee(e), Q(e)));
|
|
612
|
+
return T = Math.min(T, H * c), T = Math.max(a, Math.min(n, T)), T;
|
|
613
613
|
}
|
|
614
614
|
function xo(e) {
|
|
615
615
|
Ie.value = e, lo.value += 1;
|
|
616
616
|
}
|
|
617
|
-
const ie =
|
|
617
|
+
const ie = k(() => ({
|
|
618
618
|
startX: 0,
|
|
619
619
|
startY: 0,
|
|
620
|
-
width:
|
|
621
|
-
height:
|
|
620
|
+
width: D.value.vbWidth,
|
|
621
|
+
height: D.value.vbHeight
|
|
622
622
|
}));
|
|
623
623
|
function te(e, l = Y.value) {
|
|
624
624
|
for (const o of l) {
|
|
@@ -642,20 +642,20 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
642
642
|
}
|
|
643
643
|
return l;
|
|
644
644
|
}
|
|
645
|
-
const Ve =
|
|
645
|
+
const Ve = k(() => I.value.length > 0);
|
|
646
646
|
function qe(e, l) {
|
|
647
647
|
if (!e) {
|
|
648
|
-
Me.value = Y.value.slice(),
|
|
648
|
+
Me.value = Y.value.slice(), V("selectDatapoint", void 0), I.value = [];
|
|
649
649
|
return;
|
|
650
650
|
}
|
|
651
651
|
t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: l });
|
|
652
652
|
const o = te(e.id);
|
|
653
653
|
if (o && o.children?.length)
|
|
654
|
-
I.value.push(o.id), Me.value = o.children.slice(),
|
|
654
|
+
I.value.push(o.id), Me.value = o.children.slice(), V("selectDatapoint", e);
|
|
655
655
|
else if (e.parentId) {
|
|
656
656
|
I.value.push(e.parentId);
|
|
657
657
|
const a = te(e.parentId);
|
|
658
|
-
Me.value = a.children.slice(),
|
|
658
|
+
Me.value = a.children.slice(), V("selectDatapoint", e);
|
|
659
659
|
} else if (I.value.length > 0) {
|
|
660
660
|
I.value.pop();
|
|
661
661
|
const a = I.value[I.value.length - 1];
|
|
@@ -663,13 +663,13 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
663
663
|
const n = te(a);
|
|
664
664
|
Me.value = n.children.slice();
|
|
665
665
|
} else
|
|
666
|
-
Me.value = Y.value.slice(), I.value = [],
|
|
666
|
+
Me.value = Y.value.slice(), I.value = [], V("selectDatapoint", void 0);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function il(e) {
|
|
670
670
|
return !!(te(e.id)?.children?.length || e.parentId);
|
|
671
671
|
}
|
|
672
|
-
const me =
|
|
672
|
+
const me = k(() => {
|
|
673
673
|
const e = [
|
|
674
674
|
{ id: null, label: "All" }
|
|
675
675
|
];
|
|
@@ -686,7 +686,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
return e;
|
|
689
|
-
}),
|
|
689
|
+
}), R = Ce(null), He = k(() => Y.value.map((e, l) => ({
|
|
690
690
|
...e,
|
|
691
691
|
color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length],
|
|
692
692
|
shape: "square"
|
|
@@ -695,7 +695,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
695
695
|
return {
|
|
696
696
|
...e,
|
|
697
697
|
proportion: o,
|
|
698
|
-
opacity:
|
|
698
|
+
opacity: B.value.includes(e.id) ? 0.5 : 1,
|
|
699
699
|
display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? mt(
|
|
700
700
|
t.value.style.chart.layout.labels.formatter,
|
|
701
701
|
e.value,
|
|
@@ -706,23 +706,23 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
706
706
|
r: t.value.style.chart.legend.roundingValue
|
|
707
707
|
}),
|
|
708
708
|
{ datapoint: e }
|
|
709
|
-
) : ""}${t.value.style.chart.legend.showPercentage ?
|
|
709
|
+
) : ""}${t.value.style.chart.legend.showPercentage ? B.value.includes(e.id) ? `${t.value.style.chart.legend.showValue ? " (" : ""}- %${t.value.style.chart.legend.showValue ? ")" : ""}` : `${t.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / De.value) ? "-" : (e.value / De.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
710
710
|
};
|
|
711
|
-
})), cl =
|
|
711
|
+
})), cl = k(() => ({
|
|
712
712
|
cy: "treemap-div-legend",
|
|
713
713
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
714
714
|
color: t.value.style.chart.legend.color,
|
|
715
715
|
fontSize: t.value.style.chart.legend.fontSize,
|
|
716
716
|
paddingBottom: 12,
|
|
717
717
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
718
|
-
})), Ee =
|
|
718
|
+
})), Ee = k(() => B.value.length === He.value.length);
|
|
719
719
|
function dl() {
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
B.value.length ? B.value = [] : He.value.forEach((e) => {
|
|
721
|
+
B.value.push(e.id);
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
function rt(e) {
|
|
725
|
-
|
|
725
|
+
R.value = null, B.value.includes(e.id) ? B.value = B.value.filter((l) => l !== e.id) : B.value.length < $.dataset.length - 1 && B.value.push(e.id), V("selectLegend", Ft.value);
|
|
726
726
|
}
|
|
727
727
|
function $o(e) {
|
|
728
728
|
if (!Y.value.length)
|
|
@@ -732,19 +732,19 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
732
732
|
}
|
|
733
733
|
function vl(e) {
|
|
734
734
|
const l = $o(e);
|
|
735
|
-
l !== null &&
|
|
735
|
+
l !== null && B.value.includes(l.id) && rt({ id: l.id });
|
|
736
736
|
}
|
|
737
737
|
function hl(e) {
|
|
738
738
|
const l = $o(e);
|
|
739
|
-
l !== null && (
|
|
739
|
+
l !== null && (B.value.includes(l.id) || rt({ id: l.id }));
|
|
740
740
|
}
|
|
741
741
|
function fl({ datapoint: e, seriesIndex: l }) {
|
|
742
|
-
|
|
742
|
+
R.value = null, Ue.value = !1, ye.value = null, je.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
|
|
743
743
|
}
|
|
744
744
|
const Bt = b(null);
|
|
745
745
|
function To({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
|
|
746
746
|
if (Ee.value) return;
|
|
747
|
-
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), ye.value = l, je.value = o,
|
|
747
|
+
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), ye.value = l, je.value = o, R.value = e, Bt.value = { datapoint: e, seriesIndex: l, config: t.value, series: Ke.value };
|
|
748
748
|
const a = t.value.style.chart.tooltip.customFormat;
|
|
749
749
|
if (Ho(a) && Wl(() => a({
|
|
750
750
|
seriesIndex: l,
|
|
@@ -774,11 +774,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
774
774
|
}
|
|
775
775
|
Ue.value = !0;
|
|
776
776
|
}
|
|
777
|
-
const be =
|
|
778
|
-
const e =
|
|
777
|
+
const be = k(() => {
|
|
778
|
+
const e = F.value.map((o) => ({
|
|
779
779
|
name: o.name,
|
|
780
780
|
color: o.color
|
|
781
|
-
})), l =
|
|
781
|
+
})), l = F.value.map((o) => o.value);
|
|
782
782
|
return { head: e, body: l };
|
|
783
783
|
});
|
|
784
784
|
function Rt(e = null) {
|
|
@@ -789,7 +789,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
789
789
|
e ? e(a) : El({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
|
-
const We =
|
|
792
|
+
const We = k(() => {
|
|
793
793
|
const e = [
|
|
794
794
|
t.value.table.columnNames.series,
|
|
795
795
|
t.value.table.columnNames.value,
|
|
@@ -842,7 +842,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
842
842
|
};
|
|
843
843
|
});
|
|
844
844
|
function pl() {
|
|
845
|
-
return
|
|
845
|
+
return F.value;
|
|
846
846
|
}
|
|
847
847
|
function So() {
|
|
848
848
|
J.value.showTable = !J.value.showTable;
|
|
@@ -873,10 +873,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
873
873
|
aspectRatio: a
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
|
-
const Ze =
|
|
876
|
+
const Ze = k(() => {
|
|
877
877
|
const e = t.value.table.useDialog && !t.value.table.show, l = J.value.showTable;
|
|
878
878
|
return {
|
|
879
|
-
component: e ? $e :
|
|
879
|
+
component: e ? $e : x,
|
|
880
880
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
881
881
|
props: e ? {
|
|
882
882
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
@@ -910,10 +910,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
910
910
|
function Oo() {
|
|
911
911
|
J.value.showTable = !1, St.value && St.value.setTableIconState(!1);
|
|
912
912
|
}
|
|
913
|
-
const yl =
|
|
913
|
+
const yl = k(() => He.value.map((e) => ({
|
|
914
914
|
...e,
|
|
915
915
|
name: e.display
|
|
916
|
-
}))), ml =
|
|
916
|
+
}))), ml = k(() => t.value.style.chart.backgroundColor), bl = k(() => t.value.style.chart.legend), wl = k(() => t.value.style.chart.title), { exportSvg: kl, getSvg: Cl } = Gl({
|
|
917
917
|
svg: Fe,
|
|
918
918
|
title: wl,
|
|
919
919
|
legend: bl,
|
|
@@ -953,10 +953,10 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
953
953
|
const s = I.value.length === 0, u = s ? `${e.id}:${o ? "title" : "rect"}` : null;
|
|
954
954
|
if (s && K.value.has(u))
|
|
955
955
|
return K.value.get(u);
|
|
956
|
-
const
|
|
957
|
-
if (
|
|
956
|
+
const i = Math.max(2, ze(e) / 3), c = Math.max(8, ze(e)), d = c * 1.2, w = Math.max(0, ee(e) - i * 2), z = Math.max(0, Q(e) - i * 2);
|
|
957
|
+
if (w <= 2 || z <= c * 0.8)
|
|
958
958
|
return s && u && K.value.set(u, ""), "";
|
|
959
|
-
const
|
|
959
|
+
const T = t.value.style.fontFamily, H = t.value.style.chart.layout.labels.name.bold ? "600" : "400", q = t.value.style.chart.layout.labels.value.bold ? "600" : "400", Oe = o ? t.value.style.chart.layout.rects.group.label.adaptColorToBackground ? t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? wt(bt(e.color, 0.4)) : wt(t.value.style.chart.backgroundColor) : t.value.style.chart.layout.rects.group.label.color : wt(e.color), Vt = a ? String(e.name ?? "") : "", Je = n ? mt(
|
|
960
960
|
t.value.style.chart.layout.labels.formatter,
|
|
961
961
|
e.value ?? 0,
|
|
962
962
|
at({
|
|
@@ -966,34 +966,34 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
966
966
|
r: t.value.style.chart.layout.labels.rounding
|
|
967
967
|
}),
|
|
968
968
|
{ datapoint: e, seriesIndex: l }
|
|
969
|
-
) : "", Qe = o ? $l(e) :
|
|
970
|
-
function _e(
|
|
969
|
+
) : "", Qe = o ? $l(e) : w;
|
|
970
|
+
function _e(L, ae = c, et = "400") {
|
|
971
971
|
const oe = document.createElementNS(Qt, "svg");
|
|
972
972
|
oe.setAttribute("width", "0"), oe.setAttribute("height", "0"), oe.style.position = "absolute", oe.style.visibility = "hidden", oe.style.pointerEvents = "none";
|
|
973
973
|
const ne = document.createElementNS(Qt, "text");
|
|
974
|
-
ne.setAttribute("font-size", String(ae)), ne.setAttribute("font-family",
|
|
974
|
+
ne.setAttribute("font-size", String(ae)), ne.setAttribute("font-family", T), ne.setAttribute("font-weight", String(et)), ne.textContent = L || "", oe.appendChild(ne), document.body.appendChild(oe);
|
|
975
975
|
const ct = ne.getComputedTextLength();
|
|
976
976
|
return document.body.removeChild(oe), ct;
|
|
977
977
|
}
|
|
978
978
|
if (o) {
|
|
979
|
-
let
|
|
980
|
-
if (a && (
|
|
979
|
+
let L = "";
|
|
980
|
+
if (a && (L = Vt), n && (L = L ? `${L} (${Je})` : Je), !L)
|
|
981
981
|
return s && u && K.value.set(u, ""), "";
|
|
982
|
-
let ae =
|
|
983
|
-
if (_e(ae, c,
|
|
982
|
+
let ae = L;
|
|
983
|
+
if (_e(ae, c, H) > Qe) {
|
|
984
984
|
let U = ae;
|
|
985
|
-
for (; U.length && _e(U + "…", c,
|
|
985
|
+
for (; U.length && _e(U + "…", c, H) > Qe; )
|
|
986
986
|
U = U.slice(0, -1);
|
|
987
987
|
ae = U ? U + "…" : "";
|
|
988
988
|
}
|
|
989
989
|
if (!ae)
|
|
990
990
|
return s && u && K.value.set(u, ""), "";
|
|
991
|
-
const et = Nt(e), oe = typeof e.depth == "number" ? e.depth : 0, ne = et * 1.4, ct = typeof e.labelY0 == "number" ? e.labelY0 : e.y0 + oe * ne, jt = e.x0 +
|
|
991
|
+
const et = Nt(e), oe = typeof e.depth == "number" ? e.depth : 0, ne = et * 1.4, ct = typeof e.labelY0 == "number" ? e.labelY0 : e.y0 + oe * ne, jt = e.x0 + i + c / 2, W = ct + i + c, se = `<text
|
|
992
992
|
x="${jt}"
|
|
993
993
|
y="${W}"
|
|
994
994
|
font-size="${c}"
|
|
995
|
-
font-family="${kt(
|
|
996
|
-
font-weight="${
|
|
995
|
+
font-family="${kt(T)}"
|
|
996
|
+
font-weight="${H}"
|
|
997
997
|
fill="${kt(Oe)}"
|
|
998
998
|
paint-order="stroke"
|
|
999
999
|
stroke="transparent"
|
|
@@ -1004,11 +1004,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1004
1004
|
</text>`;
|
|
1005
1005
|
return s && u && K.value.set(u, se), se;
|
|
1006
1006
|
}
|
|
1007
|
-
const Ht = n ? 1 : 0, Et = Math.max(0, Math.floor(
|
|
1007
|
+
const Ht = n ? 1 : 0, Et = Math.max(0, Math.floor(z / d) - Ht);
|
|
1008
1008
|
if (Et <= 0 && !n)
|
|
1009
1009
|
return s && u && K.value.set(u, ""), "";
|
|
1010
|
-
function Wt(
|
|
1011
|
-
const jt = String(
|
|
1010
|
+
function Wt(L, ae, et, oe, ne, ct) {
|
|
1011
|
+
const jt = String(L).split(/\s+/).filter(Boolean), W = [];
|
|
1012
1012
|
let se = "";
|
|
1013
1013
|
function U(_) {
|
|
1014
1014
|
return _e(_, et, oe) <= ae;
|
|
@@ -1068,43 +1068,43 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1068
1068
|
}
|
|
1069
1069
|
const ce = a ? Wt(
|
|
1070
1070
|
Vt,
|
|
1071
|
-
|
|
1071
|
+
w,
|
|
1072
1072
|
c,
|
|
1073
|
-
|
|
1073
|
+
H,
|
|
1074
1074
|
Et
|
|
1075
1075
|
) : [];
|
|
1076
1076
|
let we = c, ke = String(Je);
|
|
1077
1077
|
if (n) {
|
|
1078
|
-
for (; _e(ke, we, q) >
|
|
1078
|
+
for (; _e(ke, we, q) > w && we > Math.max(8, c * 0.75); )
|
|
1079
1079
|
we -= 1;
|
|
1080
|
-
if (_e(ke, we, q) >
|
|
1081
|
-
let
|
|
1082
|
-
for (;
|
|
1083
|
-
|
|
1084
|
-
if (ke =
|
|
1080
|
+
if (_e(ke, we, q) > w) {
|
|
1081
|
+
let L = ke;
|
|
1082
|
+
for (; L.length && _e(L + "…", we, q) > w; )
|
|
1083
|
+
L = L.slice(0, -1);
|
|
1084
|
+
if (ke = L ? L + "…" : "", !ke.length)
|
|
1085
1085
|
return s && u && K.value.set(u, ""), "";
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
|
-
if (ce.length *
|
|
1089
|
-
for (; ce.length && ce.length *
|
|
1088
|
+
if (ce.length * d + (n ? d : 0) > z) {
|
|
1089
|
+
for (; ce.length && ce.length * d + (n ? d : 0) > z; )
|
|
1090
1090
|
ce.pop();
|
|
1091
|
-
if (!ce.length && (!n ||
|
|
1091
|
+
if (!ce.length && (!n || d > z))
|
|
1092
1092
|
return s && u && K.value.set(u, ""), "";
|
|
1093
1093
|
}
|
|
1094
|
-
const Yt = e.x0 +
|
|
1095
|
-
a && ce.forEach((
|
|
1094
|
+
const Yt = e.x0 + i, Ol = e.y0 + i + c, Xt = [];
|
|
1095
|
+
a && ce.forEach((L, ae) => {
|
|
1096
1096
|
Xt.push(`
|
|
1097
1097
|
<tspan
|
|
1098
1098
|
x="${Yt}"
|
|
1099
|
-
dy="${ae === 0 ? 0 :
|
|
1100
|
-
font-weight="${
|
|
1099
|
+
dy="${ae === 0 ? 0 : d}"
|
|
1100
|
+
font-weight="${H}"
|
|
1101
1101
|
>
|
|
1102
|
-
${eo(
|
|
1102
|
+
${eo(L)}
|
|
1103
1103
|
</tspan>`);
|
|
1104
1104
|
}), n && Xt.push(`
|
|
1105
1105
|
<tspan
|
|
1106
1106
|
x="${Yt}"
|
|
1107
|
-
dy="${ce.length ?
|
|
1107
|
+
dy="${ce.length ? d : 0}"
|
|
1108
1108
|
font-weight="${q}"
|
|
1109
1109
|
font-size="${we}"
|
|
1110
1110
|
>
|
|
@@ -1114,7 +1114,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1114
1114
|
x="${Yt}"
|
|
1115
1115
|
y="${Ol}"
|
|
1116
1116
|
font-size="${c}"
|
|
1117
|
-
font-family="${kt(
|
|
1117
|
+
font-family="${kt(T)}"
|
|
1118
1118
|
fill="${kt(Oe)}"
|
|
1119
1119
|
paint-order="stroke"
|
|
1120
1120
|
stroke="transparent"
|
|
@@ -1130,51 +1130,52 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1130
1130
|
return Math.min(l, Math.min(o, a) / 6);
|
|
1131
1131
|
}
|
|
1132
1132
|
async function Fo() {
|
|
1133
|
-
if (
|
|
1133
|
+
if (V("copyAlt", {
|
|
1134
1134
|
config: t.value,
|
|
1135
|
-
dataset:
|
|
1135
|
+
dataset: F.value
|
|
1136
1136
|
}), !t.value.userOptions.callbacks.altCopy) {
|
|
1137
1137
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
1140
|
await Promise.resolve(t.value.userOptions.callbacks.altCopy({
|
|
1141
1141
|
config: t.value,
|
|
1142
|
-
dataset:
|
|
1142
|
+
dataset: F.value
|
|
1143
1143
|
}));
|
|
1144
1144
|
}
|
|
1145
1145
|
function Sl() {
|
|
1146
1146
|
ye.value = null, At.value = !0;
|
|
1147
1147
|
}
|
|
1148
1148
|
function Al() {
|
|
1149
|
-
ye.value = null, je.value = "pointer", Ue.value = !1,
|
|
1149
|
+
ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null, At.value = !1;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ml(e) {
|
|
1152
|
-
if (!Fe.value || Ge.value || document.activeElement !== Fe.value || !
|
|
1152
|
+
if (!Fe.value || Ge.value || document.activeElement !== Fe.value || !F.value.length || Ee.value) return;
|
|
1153
1153
|
const l = ["ArrowLeft", "ArrowUp"].includes(e.key), o = ["ArrowRight", "ArrowDown"].includes(e.key), a = e.key === "Enter" || e.key === " ", n = e.key === "Escape";
|
|
1154
1154
|
if (!l && !o && !a && !n) return;
|
|
1155
1155
|
if (e.preventDefault(), e.stopPropagation(), n) {
|
|
1156
|
-
ye.value = null, je.value = "pointer", Ue.value = !1,
|
|
1156
|
+
ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null;
|
|
1157
1157
|
return;
|
|
1158
1158
|
}
|
|
1159
1159
|
if (a) {
|
|
1160
1160
|
if (ye.value === null) return;
|
|
1161
|
-
const
|
|
1162
|
-
if (!
|
|
1163
|
-
qe(
|
|
1161
|
+
const w = F.value[ye.value];
|
|
1162
|
+
if (!w) return;
|
|
1163
|
+
qe(w, ye.value);
|
|
1164
1164
|
return;
|
|
1165
1165
|
}
|
|
1166
1166
|
let s = ye.value;
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1167
|
+
const u = R.value ? F.value.findIndex((w) => w.id === R.value.id) : null, i = s !== null && s >= 0 && s < F.value.length, c = u !== null && u >= 0 && u < F.value.length;
|
|
1168
|
+
i ? o ? (s += 1, s >= F.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = F.value.length - 1)) : c ? (s = o ? u + 1 : u - 1, s >= F.value.length && (s = 0), s < 0 && (s = F.value.length - 1)) : o ? s = 0 : s = F.value.length - 1;
|
|
1169
|
+
const d = F.value[s];
|
|
1170
|
+
d && (Pl(s), To({
|
|
1171
|
+
datapoint: d,
|
|
1171
1172
|
seriesIndex: s,
|
|
1172
1173
|
triggerMode: "keyboard"
|
|
1173
1174
|
}));
|
|
1174
1175
|
}
|
|
1175
1176
|
function Pl(e) {
|
|
1176
1177
|
if (!Number.isFinite(e) || !Fe.value) return;
|
|
1177
|
-
const l =
|
|
1178
|
+
const l = F.value[e];
|
|
1178
1179
|
if (!l) return;
|
|
1179
1180
|
const o = l.x0 + ee(l) / 2, a = l.y0 + Q(l) / 2, n = Fe.value.getBoundingClientRect();
|
|
1180
1181
|
co.value = {
|
|
@@ -1182,7 +1183,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1182
1183
|
y: n.top + (a - ie.value.startY) / ie.value.height * n.height
|
|
1183
1184
|
};
|
|
1184
1185
|
}
|
|
1185
|
-
const zt =
|
|
1186
|
+
const zt = k(() => {
|
|
1186
1187
|
const e = We.value?.colNames ?? [], l = We.value?.body ?? [];
|
|
1187
1188
|
return { headers: e, rows: l };
|
|
1188
1189
|
});
|
|
@@ -1200,7 +1201,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1200
1201
|
toggleAnnotator: Dt,
|
|
1201
1202
|
toggleFullscreen: xo,
|
|
1202
1203
|
copyAlt: Fo
|
|
1203
|
-
}), (e, l) => (
|
|
1204
|
+
}), (e, l) => (v(), A("div", {
|
|
1204
1205
|
ref_key: "treemapChart",
|
|
1205
1206
|
ref: re,
|
|
1206
1207
|
class: Zt(`vue-data-ui-component vue-ui-treemap ${Ie.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1209,21 +1210,21 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1209
1210
|
onMouseenter: l[2] || (l[2] = () => y(vo)(!0)),
|
|
1210
1211
|
onMouseleave: l[3] || (l[3] = () => y(vo)(!1))
|
|
1211
1212
|
}, [
|
|
1212
|
-
|
|
1213
|
+
E("div", {
|
|
1213
1214
|
id: `chart-instructions-${le.value}`,
|
|
1214
1215
|
class: "sr-only"
|
|
1215
1216
|
}, [
|
|
1216
|
-
|
|
1217
|
+
E("p", null, tt(t.value.a11y.translations.keyboardNavigation), 1)
|
|
1217
1218
|
], 8, pa),
|
|
1218
|
-
zt.value?.rows?.length ? (
|
|
1219
|
+
zt.value?.rows?.length ? (v(), he(aa, {
|
|
1219
1220
|
key: 0,
|
|
1220
1221
|
uid: le.value,
|
|
1221
1222
|
head: zt.value.headers,
|
|
1222
1223
|
body: zt.value.rows,
|
|
1223
1224
|
notice: t.value.a11y.translations.tableAvailable,
|
|
1224
1225
|
caption: t.value.a11y.translations.tableCaption
|
|
1225
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) :
|
|
1226
|
-
t.value.userOptions.buttons.annotator ? (
|
|
1226
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : N("", !0),
|
|
1227
|
+
t.value.userOptions.buttons.annotator ? (v(), he(y(f), {
|
|
1227
1228
|
key: 1,
|
|
1228
1229
|
svgRef: y(Fe),
|
|
1229
1230
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
@@ -1232,40 +1233,40 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1232
1233
|
isCursorPointer: Se.value,
|
|
1233
1234
|
onClose: Dt
|
|
1234
1235
|
}, {
|
|
1235
|
-
"annotator-action-close":
|
|
1236
|
-
|
|
1236
|
+
"annotator-action-close": M(() => [
|
|
1237
|
+
C(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1237
1238
|
]),
|
|
1238
|
-
"annotator-action-color":
|
|
1239
|
-
|
|
1239
|
+
"annotator-action-color": M(({ color: o }) => [
|
|
1240
|
+
C(e.$slots, "annotator-action-color", X(j({ color: o })), void 0, !0)
|
|
1240
1241
|
]),
|
|
1241
|
-
"annotator-action-draw":
|
|
1242
|
-
|
|
1242
|
+
"annotator-action-draw": M(({ mode: o }) => [
|
|
1243
|
+
C(e.$slots, "annotator-action-draw", X(j({ mode: o })), void 0, !0)
|
|
1243
1244
|
]),
|
|
1244
|
-
"annotator-action-undo":
|
|
1245
|
-
|
|
1245
|
+
"annotator-action-undo": M(({ disabled: o }) => [
|
|
1246
|
+
C(e.$slots, "annotator-action-undo", X(j({ disabled: o })), void 0, !0)
|
|
1246
1247
|
]),
|
|
1247
|
-
"annotator-action-redo":
|
|
1248
|
-
|
|
1248
|
+
"annotator-action-redo": M(({ disabled: o }) => [
|
|
1249
|
+
C(e.$slots, "annotator-action-redo", X(j({ disabled: o })), void 0, !0)
|
|
1249
1250
|
]),
|
|
1250
|
-
"annotator-action-delete":
|
|
1251
|
-
|
|
1251
|
+
"annotator-action-delete": M(({ disabled: o }) => [
|
|
1252
|
+
C(e.$slots, "annotator-action-delete", X(j({ disabled: o })), void 0, !0)
|
|
1252
1253
|
]),
|
|
1253
1254
|
_: 3
|
|
1254
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) :
|
|
1255
|
-
Go.value ? (
|
|
1255
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : N("", !0),
|
|
1256
|
+
Go.value ? (v(), A("div", {
|
|
1256
1257
|
key: 2,
|
|
1257
1258
|
ref_key: "noTitle",
|
|
1258
1259
|
ref: uo,
|
|
1259
1260
|
class: "vue-data-ui-no-title-space",
|
|
1260
1261
|
style: "height:36px; width: 100%;background:transparent"
|
|
1261
|
-
}, null, 512)) :
|
|
1262
|
-
t.value.style.chart.title.text ? (
|
|
1262
|
+
}, null, 512)) : N("", !0),
|
|
1263
|
+
t.value.style.chart.title.text ? (v(), A("div", {
|
|
1263
1264
|
key: 3,
|
|
1264
1265
|
ref_key: "chartTitle",
|
|
1265
1266
|
ref: ao,
|
|
1266
1267
|
style: xe(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1267
1268
|
}, [
|
|
1268
|
-
(
|
|
1269
|
+
(v(), he(ta, {
|
|
1269
1270
|
key: `title_${ro.value}`,
|
|
1270
1271
|
config: {
|
|
1271
1272
|
title: {
|
|
@@ -1278,11 +1279,11 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
1281
|
}, null, 8, ["config"]))
|
|
1281
|
-
], 4)) :
|
|
1282
|
-
|
|
1282
|
+
], 4)) : N("", !0),
|
|
1283
|
+
E("div", {
|
|
1283
1284
|
id: `legend-top-${le.value}`
|
|
1284
1285
|
}, null, 8, ga),
|
|
1285
|
-
t.value.userOptions.show && Te.value && (y(ho) || y(Pt)) ? (
|
|
1286
|
+
t.value.userOptions.show && Te.value && (y(ho) || y(Pt)) ? (v(), he(y(P), {
|
|
1286
1287
|
ref_key: "userOptionsRef",
|
|
1287
1288
|
ref: St,
|
|
1288
1289
|
key: `user_option_${lo.value}`,
|
|
@@ -1325,83 +1326,83 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1325
1326
|
}, Bo({ _: 2 }, [
|
|
1326
1327
|
e.$slots.menuIcon ? {
|
|
1327
1328
|
name: "menuIcon",
|
|
1328
|
-
fn:
|
|
1329
|
-
|
|
1329
|
+
fn: M(({ isOpen: o, color: a }) => [
|
|
1330
|
+
C(e.$slots, "menuIcon", X(j({ isOpen: o, color: a })), void 0, !0)
|
|
1330
1331
|
]),
|
|
1331
1332
|
key: "0"
|
|
1332
1333
|
} : void 0,
|
|
1333
1334
|
e.$slots.optionTooltip ? {
|
|
1334
1335
|
name: "optionTooltip",
|
|
1335
|
-
fn:
|
|
1336
|
-
|
|
1336
|
+
fn: M(() => [
|
|
1337
|
+
C(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
1337
1338
|
]),
|
|
1338
1339
|
key: "1"
|
|
1339
1340
|
} : void 0,
|
|
1340
1341
|
e.$slots.optionPdf ? {
|
|
1341
1342
|
name: "optionPdf",
|
|
1342
|
-
fn:
|
|
1343
|
-
|
|
1343
|
+
fn: M(() => [
|
|
1344
|
+
C(e.$slots, "optionPdf", {}, void 0, !0)
|
|
1344
1345
|
]),
|
|
1345
1346
|
key: "2"
|
|
1346
1347
|
} : void 0,
|
|
1347
1348
|
e.$slots.optionCsv ? {
|
|
1348
1349
|
name: "optionCsv",
|
|
1349
|
-
fn:
|
|
1350
|
-
|
|
1350
|
+
fn: M(() => [
|
|
1351
|
+
C(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1351
1352
|
]),
|
|
1352
1353
|
key: "3"
|
|
1353
1354
|
} : void 0,
|
|
1354
1355
|
e.$slots.optionImg ? {
|
|
1355
1356
|
name: "optionImg",
|
|
1356
|
-
fn:
|
|
1357
|
-
|
|
1357
|
+
fn: M(() => [
|
|
1358
|
+
C(e.$slots, "optionImg", {}, void 0, !0)
|
|
1358
1359
|
]),
|
|
1359
1360
|
key: "4"
|
|
1360
1361
|
} : void 0,
|
|
1361
1362
|
e.$slots.optionSvg ? {
|
|
1362
1363
|
name: "optionSvg",
|
|
1363
|
-
fn:
|
|
1364
|
-
|
|
1364
|
+
fn: M(() => [
|
|
1365
|
+
C(e.$slots, "optionSvg", {}, void 0, !0)
|
|
1365
1366
|
]),
|
|
1366
1367
|
key: "5"
|
|
1367
1368
|
} : void 0,
|
|
1368
1369
|
e.$slots.optionTable ? {
|
|
1369
1370
|
name: "optionTable",
|
|
1370
|
-
fn:
|
|
1371
|
-
|
|
1371
|
+
fn: M(() => [
|
|
1372
|
+
C(e.$slots, "optionTable", {}, void 0, !0)
|
|
1372
1373
|
]),
|
|
1373
1374
|
key: "6"
|
|
1374
1375
|
} : void 0,
|
|
1375
1376
|
e.$slots.optionFullscreen ? {
|
|
1376
1377
|
name: "optionFullscreen",
|
|
1377
|
-
fn:
|
|
1378
|
-
|
|
1378
|
+
fn: M(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
1379
|
+
C(e.$slots, "optionFullscreen", X(j({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
1379
1380
|
]),
|
|
1380
1381
|
key: "7"
|
|
1381
1382
|
} : void 0,
|
|
1382
1383
|
e.$slots.optionAnnotator ? {
|
|
1383
1384
|
name: "optionAnnotator",
|
|
1384
|
-
fn:
|
|
1385
|
-
|
|
1385
|
+
fn: M(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
1386
|
+
C(e.$slots, "optionAnnotator", X(j({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
1386
1387
|
]),
|
|
1387
1388
|
key: "8"
|
|
1388
1389
|
} : void 0,
|
|
1389
1390
|
e.$slots.optionAltCopy ? {
|
|
1390
1391
|
name: "optionAltCopy",
|
|
1391
|
-
fn:
|
|
1392
|
-
|
|
1392
|
+
fn: M(({ altCopy: o }) => [
|
|
1393
|
+
C(e.$slots, "optionAltCopy", X(j({ altCopy: o })), void 0, !0)
|
|
1393
1394
|
]),
|
|
1394
1395
|
key: "9"
|
|
1395
1396
|
} : void 0
|
|
1396
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
1397
|
-
me.value.length > 1 ? (
|
|
1397
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : N("", !0),
|
|
1398
|
+
me.value.length > 1 ? (v(), A("nav", {
|
|
1398
1399
|
key: 5,
|
|
1399
1400
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1400
1401
|
"data-dom-to-png-ignore": "",
|
|
1401
1402
|
ref_key: "breadcrumbsNav",
|
|
1402
1403
|
ref: Tt
|
|
1403
1404
|
}, [
|
|
1404
|
-
(
|
|
1405
|
+
(v(!0), A(ot, null, ht(me.value, (o, a) => (v(), A("span", {
|
|
1405
1406
|
role: "button",
|
|
1406
1407
|
tabindex: a < me.value.length - 1 ? 0 : void 0,
|
|
1407
1408
|
key: o.id || "root",
|
|
@@ -1422,29 +1423,29 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1422
1423
|
onFocus: (n) => Mo(a),
|
|
1423
1424
|
onBlur: Po
|
|
1424
1425
|
}, [
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
a === 0 ? (
|
|
1426
|
+
E("span", ma, [
|
|
1427
|
+
E("span", ba, [
|
|
1428
|
+
C(e.$slots, "breadcrumb-label", ft({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: it.value === a }), () => [
|
|
1429
|
+
a === 0 ? (v(), A("div", wa, [
|
|
1429
1430
|
pt(Eo, {
|
|
1430
1431
|
name: it.value === 0 ? "homeFilled" : "home",
|
|
1431
1432
|
stroke: t.value.style.chart.color
|
|
1432
1433
|
}, null, 8, ["name", "stroke"])
|
|
1433
|
-
])) : (
|
|
1434
|
+
])) : (v(), A(ot, { key: 1 }, [
|
|
1434
1435
|
gt(tt(o.label), 1)
|
|
1435
1436
|
], 64))
|
|
1436
1437
|
], !0)
|
|
1437
1438
|
]),
|
|
1438
|
-
a < me.value.length - 1 ? (
|
|
1439
|
-
|
|
1439
|
+
a < me.value.length - 1 ? (v(), A("span", ka, [
|
|
1440
|
+
C(e.$slots, "breadcrumb-arrow", {}, () => [
|
|
1440
1441
|
l[4] || (l[4] = gt(" › ", -1))
|
|
1441
1442
|
], !0)
|
|
1442
|
-
])) :
|
|
1443
|
+
])) : N("", !0)
|
|
1443
1444
|
])
|
|
1444
1445
|
], 44, ya))), 128))
|
|
1445
|
-
], 512)) :
|
|
1446
|
-
|
|
1447
|
-
(
|
|
1446
|
+
], 512)) : N("", !0),
|
|
1447
|
+
E("div", Ca, [
|
|
1448
|
+
(v(), A("svg", {
|
|
1448
1449
|
ref_key: "svgRef",
|
|
1449
1450
|
ref: Fe,
|
|
1450
1451
|
xmlns: y(Qt),
|
|
@@ -1457,31 +1458,31 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1457
1458
|
onBlur: Al,
|
|
1458
1459
|
onKeydown: Ml
|
|
1459
1460
|
}, [
|
|
1460
|
-
pt(y(
|
|
1461
|
-
(
|
|
1461
|
+
pt(y(S)),
|
|
1462
|
+
(v(!0), A(ot, null, ht(F.value, (o, a) => (v(), A("g", {
|
|
1462
1463
|
key: `tgrad_${o.id}`
|
|
1463
1464
|
}, [
|
|
1464
|
-
t.value.style.chart.layout.rects.gradient.show ? (
|
|
1465
|
-
|
|
1465
|
+
t.value.style.chart.layout.rects.gradient.show ? (v(), A("defs", $a, [
|
|
1466
|
+
E("radialGradient", {
|
|
1466
1467
|
id: `tgrad_${o.id}`,
|
|
1467
1468
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
1468
1469
|
}, [
|
|
1469
|
-
|
|
1470
|
+
E("stop", {
|
|
1470
1471
|
offset: "18%",
|
|
1471
1472
|
"stop-color": o.color
|
|
1472
1473
|
}, null, 8, Sa),
|
|
1473
|
-
|
|
1474
|
+
E("stop", {
|
|
1474
1475
|
offset: "100%",
|
|
1475
1476
|
"stop-color": y(bt)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
1476
1477
|
}, null, 8, Aa)
|
|
1477
1478
|
], 8, Ta)
|
|
1478
|
-
])) :
|
|
1479
|
+
])) : N("", !0)
|
|
1479
1480
|
]))), 128)),
|
|
1480
|
-
(
|
|
1481
|
+
(v(!0), A(ot, null, ht(nl.value, (o, a) => (v(), A("g", {
|
|
1481
1482
|
key: `parent_${o.id}`,
|
|
1482
1483
|
class: "vue-ui-treemap-parent-wrapper"
|
|
1483
1484
|
}, [
|
|
1484
|
-
|
|
1485
|
+
E("rect", {
|
|
1485
1486
|
x: o.x0,
|
|
1486
1487
|
y: o.y0,
|
|
1487
1488
|
height: Q(o),
|
|
@@ -1492,33 +1493,33 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1492
1493
|
"stroke-width": t.value.style.chart.layout.rects.group.strokeWidth,
|
|
1493
1494
|
class: "vue-data-ui-cursor-default vue-ui-treemap-rect"
|
|
1494
1495
|
}, null, 8, Ma),
|
|
1495
|
-
e.$slots["group-label"] && !Ee.value ? (
|
|
1496
|
+
e.$slots["group-label"] && !Ee.value ? (v(), A("foreignObject", {
|
|
1496
1497
|
key: 0,
|
|
1497
1498
|
width: ee(o),
|
|
1498
1499
|
height: Q(o),
|
|
1499
1500
|
x: o.x0,
|
|
1500
1501
|
y: o.y0
|
|
1501
1502
|
}, [
|
|
1502
|
-
|
|
1503
|
-
], 8, Pa)) : !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (
|
|
1503
|
+
C(e.$slots, "group-label", ft({ ref_for: !0 }, { group: o }), void 0, !0)
|
|
1504
|
+
], 8, Pa)) : !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), A("g", {
|
|
1504
1505
|
key: 1,
|
|
1505
1506
|
style: { "pointer-events": "none" },
|
|
1506
1507
|
innerHTML: Io({ rect: o, seriesIndex: 0, isTitle: !0 }),
|
|
1507
1508
|
class: "vue-data-ui-cursor-default"
|
|
1508
|
-
}, null, 8, Oa)) :
|
|
1509
|
+
}, null, 8, Oa)) : N("", !0)
|
|
1509
1510
|
]))), 128)),
|
|
1510
|
-
(
|
|
1511
|
+
(v(!0), A(ot, null, ht(F.value, (o, a) => (v(), A("g", {
|
|
1511
1512
|
key: `k_${o.id}`
|
|
1512
1513
|
}, [
|
|
1513
|
-
|
|
1514
|
+
E("rect", {
|
|
1514
1515
|
x: o.x0,
|
|
1515
1516
|
y: o.y0,
|
|
1516
1517
|
height: Q(o),
|
|
1517
1518
|
width: ee(o),
|
|
1518
1519
|
fill: ge.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ee.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
|
|
1519
1520
|
rx: Tl(o),
|
|
1520
|
-
stroke:
|
|
1521
|
-
"stroke-width":
|
|
1521
|
+
stroke: R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
|
|
1522
|
+
"stroke-width": R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
|
|
1522
1523
|
onClick: Jt((n) => qe(o, a), ["stop"]),
|
|
1523
1524
|
onMouseenter: () => To({
|
|
1524
1525
|
datapoint: o,
|
|
@@ -1526,26 +1527,26 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1526
1527
|
triggerMode: "pointer"
|
|
1527
1528
|
}),
|
|
1528
1529
|
onMouseleave: (n) => fl({ datapoint: o, seriesIndex: a }),
|
|
1529
|
-
style: xe(`opacity:${
|
|
1530
|
+
style: xe(`opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1530
1531
|
class: Zt([
|
|
1531
1532
|
"vue-ui-treemap-rect",
|
|
1532
1533
|
il(o) ? "vue-data-ui-zoom-plus" : Ve.value ? "vue-data-ui-zoom-minus" : ""
|
|
1533
1534
|
])
|
|
1534
1535
|
}, null, 46, _a),
|
|
1535
|
-
!e.$slots.rect && !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (
|
|
1536
|
+
!e.$slots.rect && !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), A("g", {
|
|
1536
1537
|
key: 0,
|
|
1537
|
-
style: xe(`pointer-events:none; opacity:${
|
|
1538
|
+
style: xe(`pointer-events:none; opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1538
1539
|
innerHTML: Io({ rect: o, seriesIndex: a })
|
|
1539
|
-
}, null, 12, Ia)) :
|
|
1540
|
-
(
|
|
1540
|
+
}, null, 12, Ia)) : N("", !0),
|
|
1541
|
+
(v(), A("foreignObject", {
|
|
1541
1542
|
x: o.x0,
|
|
1542
1543
|
y: o.y0,
|
|
1543
1544
|
height: Q(o),
|
|
1544
1545
|
width: ee(o),
|
|
1545
1546
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
1546
1547
|
}, [
|
|
1547
|
-
|
|
1548
|
-
y(Ae) ?
|
|
1548
|
+
E("div", La, [
|
|
1549
|
+
y(Ae) ? N("", !0) : C(e.$slots, "rect", ft({
|
|
1549
1550
|
key: 0,
|
|
1550
1551
|
ref_for: !0
|
|
1551
1552
|
}, {
|
|
@@ -1553,7 +1554,7 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1553
1554
|
...o,
|
|
1554
1555
|
height: Q(o),
|
|
1555
1556
|
width: ee(o),
|
|
1556
|
-
isSelected:
|
|
1557
|
+
isSelected: R.value ? R.value.id === o.id : !0
|
|
1557
1558
|
},
|
|
1558
1559
|
shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Ve.value,
|
|
1559
1560
|
fontSize: ze(o),
|
|
@@ -1563,27 +1564,27 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1563
1564
|
])
|
|
1564
1565
|
], 8, Fa))
|
|
1565
1566
|
]))), 128)),
|
|
1566
|
-
|
|
1567
|
+
C(e.$slots, "svg", X(j({ svg: D.value, isZoom: Ve.value, rect: R.value, config: t.value, isPrintingImg: y(_t) | y(It) | nt.value, isPrintingSvg: st.value })), void 0, !0)
|
|
1567
1568
|
], 46, xa)),
|
|
1568
|
-
e.$slots.hint ? (
|
|
1569
|
-
|
|
1570
|
-
])) :
|
|
1569
|
+
e.$slots.hint ? (v(), A("div", Na, [
|
|
1570
|
+
C(e.$slots, "hint", X(j({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: At.value })), void 0, !0)
|
|
1571
|
+
])) : N("", !0)
|
|
1571
1572
|
]),
|
|
1572
|
-
e.$slots.watermark ? (
|
|
1573
|
-
|
|
1574
|
-
])) :
|
|
1575
|
-
|
|
1573
|
+
e.$slots.watermark ? (v(), A("div", Ba, [
|
|
1574
|
+
C(e.$slots, "watermark", X(j({ isPrinting: y(_t) || y(It) || nt.value || st.value })), void 0, !0)
|
|
1575
|
+
])) : N("", !0),
|
|
1576
|
+
E("div", {
|
|
1576
1577
|
id: `legend-bottom-${le.value}`
|
|
1577
1578
|
}, null, 8, Ra),
|
|
1578
|
-
io.value ? (
|
|
1579
|
+
io.value ? (v(), he(Bl, {
|
|
1579
1580
|
key: 7,
|
|
1580
1581
|
to: t.value.style.chart.legend.position === "top" ? `#legend-top-${le.value}` : `#legend-bottom-${le.value}`
|
|
1581
1582
|
}, [
|
|
1582
|
-
|
|
1583
|
+
E("div", {
|
|
1583
1584
|
ref_key: "chartLegend",
|
|
1584
1585
|
ref: no
|
|
1585
1586
|
}, [
|
|
1586
|
-
t.value.style.chart.legend.show ? (
|
|
1587
|
+
t.value.style.chart.legend.show ? (v(), he(la, {
|
|
1587
1588
|
key: `legend_${$t.value}`,
|
|
1588
1589
|
legendSet: He.value,
|
|
1589
1590
|
config: cl.value,
|
|
@@ -1591,39 +1592,39 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1591
1592
|
isCursorPointer: Se.value,
|
|
1592
1593
|
onClickMarker: l[0] || (l[0] = ({ legend: o }) => rt(o))
|
|
1593
1594
|
}, {
|
|
1594
|
-
item:
|
|
1595
|
-
y(Ae) ?
|
|
1595
|
+
item: M(({ legend: o, index: a }) => [
|
|
1596
|
+
y(Ae) ? N("", !0) : (v(), A("div", {
|
|
1596
1597
|
key: 0,
|
|
1597
1598
|
onClick: (n) => rt(o),
|
|
1598
|
-
style: xe(`opacity:${
|
|
1599
|
+
style: xe(`opacity:${B.value.includes(o.id) ? 0.5 : 1}`)
|
|
1599
1600
|
}, tt(o.display), 13, Da))
|
|
1600
1601
|
]),
|
|
1601
|
-
legendToggle:
|
|
1602
|
-
He.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(Ae) ? (
|
|
1602
|
+
legendToggle: M(() => [
|
|
1603
|
+
He.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(Ae) ? (v(), he(na, {
|
|
1603
1604
|
key: 0,
|
|
1604
1605
|
backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1605
1606
|
color: t.value.style.chart.legend.selectAllToggle.color,
|
|
1606
1607
|
fontSize: t.value.style.chart.legend.fontSize,
|
|
1607
|
-
checked:
|
|
1608
|
+
checked: B.value.length > 0,
|
|
1608
1609
|
isCursorPointer: Se.value,
|
|
1609
1610
|
onToggle: dl
|
|
1610
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) :
|
|
1611
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : N("", !0)
|
|
1611
1612
|
]),
|
|
1612
1613
|
_: 1
|
|
1613
|
-
}, 8, ["legendSet", "config", "id", "isCursorPointer"])) :
|
|
1614
|
+
}, 8, ["legendSet", "config", "id", "isCursorPointer"])) : C(e.$slots, "legend", {
|
|
1614
1615
|
key: 1,
|
|
1615
1616
|
legend: He.value
|
|
1616
1617
|
}, void 0, !0)
|
|
1617
1618
|
], 512)
|
|
1618
|
-
], 8, ["to"])) :
|
|
1619
|
-
e.$slots.source ? (
|
|
1619
|
+
], 8, ["to"])) : N("", !0),
|
|
1620
|
+
e.$slots.source ? (v(), A("div", {
|
|
1620
1621
|
key: 8,
|
|
1621
1622
|
ref_key: "source",
|
|
1622
1623
|
ref: so,
|
|
1623
1624
|
dir: "auto"
|
|
1624
1625
|
}, [
|
|
1625
|
-
|
|
1626
|
-
], 512)) :
|
|
1626
|
+
C(e.$slots, "source", {}, void 0, !0)
|
|
1627
|
+
], 512)) : N("", !0),
|
|
1627
1628
|
pt(y(m), {
|
|
1628
1629
|
teleportTo: t.value.style.chart.tooltip.teleportTo,
|
|
1629
1630
|
show: J.value.showTooltip && Ue.value,
|
|
@@ -1647,21 +1648,21 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1647
1648
|
isA11yMode: je.value === "keyboard",
|
|
1648
1649
|
a11yPosition: co.value
|
|
1649
1650
|
}, {
|
|
1650
|
-
"tooltip-before":
|
|
1651
|
-
|
|
1651
|
+
"tooltip-before": M(() => [
|
|
1652
|
+
C(e.$slots, "tooltip-before", X(j({ ...Bt.value })), void 0, !0)
|
|
1652
1653
|
]),
|
|
1653
|
-
"tooltip-after":
|
|
1654
|
-
|
|
1654
|
+
"tooltip-after": M(() => [
|
|
1655
|
+
C(e.$slots, "tooltip-after", X(j({ ...Bt.value })), void 0, !0)
|
|
1655
1656
|
]),
|
|
1656
1657
|
_: 3
|
|
1657
1658
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1658
|
-
Te.value && t.value.userOptions.buttons.table ? (
|
|
1659
|
+
Te.value && t.value.userOptions.buttons.table ? (v(), he(Rl(Ze.value.component), ft({ key: 9 }, Ze.value.props, {
|
|
1659
1660
|
ref_key: "tableUnit",
|
|
1660
1661
|
ref: Ye,
|
|
1661
1662
|
onClose: Oo
|
|
1662
1663
|
}), Bo({
|
|
1663
|
-
content:
|
|
1664
|
-
(
|
|
1664
|
+
content: M(() => [
|
|
1665
|
+
(v(), he(y(g), {
|
|
1665
1666
|
key: `table_${xt.value}`,
|
|
1666
1667
|
colNames: We.value.colNames,
|
|
1667
1668
|
head: We.value.head,
|
|
@@ -1672,13 +1673,13 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1672
1673
|
isCursorPointer: Se.value,
|
|
1673
1674
|
onClose: Oo
|
|
1674
1675
|
}, {
|
|
1675
|
-
th:
|
|
1676
|
-
|
|
1676
|
+
th: M(({ th: o }) => [
|
|
1677
|
+
E("div", {
|
|
1677
1678
|
innerHTML: o,
|
|
1678
1679
|
style: { display: "flex", "align-items": "center" }
|
|
1679
1680
|
}, null, 8, za)
|
|
1680
1681
|
]),
|
|
1681
|
-
td:
|
|
1682
|
+
td: M(({ td: o }) => [
|
|
1682
1683
|
gt(tt(o.name || o), 1)
|
|
1683
1684
|
]),
|
|
1684
1685
|
_: 1
|
|
@@ -1688,15 +1689,15 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1688
1689
|
}, [
|
|
1689
1690
|
t.value.table.useDialog ? {
|
|
1690
1691
|
name: "title",
|
|
1691
|
-
fn:
|
|
1692
|
+
fn: M(() => [
|
|
1692
1693
|
gt(tt(Ze.value.title), 1)
|
|
1693
1694
|
]),
|
|
1694
1695
|
key: "0"
|
|
1695
1696
|
} : void 0,
|
|
1696
1697
|
t.value.table.useDialog ? {
|
|
1697
1698
|
name: "actions",
|
|
1698
|
-
fn:
|
|
1699
|
-
|
|
1699
|
+
fn: M(() => [
|
|
1700
|
+
E("button", {
|
|
1700
1701
|
tabindex: "0",
|
|
1701
1702
|
class: "vue-ui-user-options-button",
|
|
1702
1703
|
onClick: l[1] || (l[1] = (o) => Rt(t.value.userOptions.callbacks.csv)),
|
|
@@ -1710,13 +1711,13 @@ const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKey
|
|
|
1710
1711
|
]),
|
|
1711
1712
|
key: "1"
|
|
1712
1713
|
} : void 0
|
|
1713
|
-
]), 1040)) :
|
|
1714
|
-
|
|
1715
|
-
y(Ae) ? (
|
|
1714
|
+
]), 1040)) : N("", !0),
|
|
1715
|
+
C(e.$slots, "skeleton", {}, () => [
|
|
1716
|
+
y(Ae) ? (v(), he(Kl, { key: 0 })) : N("", !0)
|
|
1716
1717
|
], !0)
|
|
1717
1718
|
], 46, fa));
|
|
1718
1719
|
}
|
|
1719
|
-
}, sn = /* @__PURE__ */ sa(Va, [["__scopeId", "data-v-
|
|
1720
|
+
}, sn = /* @__PURE__ */ sa(Va, [["__scopeId", "data-v-d1257624"]]);
|
|
1720
1721
|
export {
|
|
1721
1722
|
sn as default
|
|
1722
1723
|
};
|