vue-data-ui 3.22.8 → 3.22.9
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/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-icon.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-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -11,18 +11,19 @@ import { n as me } from "./Title-CcNiYzEo.js";
|
|
|
11
11
|
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ge } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as _e } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as ve } from "./BaseIcon-
|
|
15
|
-
import { t as ye } from "./
|
|
16
|
-
import { t as be } from "./
|
|
17
|
-
import { t as xe } from "./
|
|
18
|
-
import { t as Se } from "./
|
|
19
|
-
import { t as Ce } from "./
|
|
20
|
-
import { t as we } from "./
|
|
21
|
-
import { t as Te } from "./
|
|
22
|
-
import { t as Ee } from "./
|
|
23
|
-
import {
|
|
14
|
+
import { t as ve } from "./BaseIcon-UdRAvP2h.js";
|
|
15
|
+
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as be } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
17
|
+
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as we } from "./Legend-ROt6ugzW.js";
|
|
21
|
+
import { t as Te } from "./usePrefersMotion-BC-CsqR1.js";
|
|
22
|
+
import { t as Ee } from "./usePanZoom-CYU3B4T3.js";
|
|
23
|
+
import { t as De } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
24
|
+
import { Fragment as p, Teleport as Oe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as Me, guardReactiveProps as y, mergeProps as Ne, nextTick as Pe, normalizeClass as Fe, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ie, onMounted as Le, openBlock as S, ref as C, renderList as Re, renderSlot as w, resolveDynamicComponent as ze, shallowRef as T, toDisplayString as Be, toRefs as Ve, unref as E, useCssVars as He, useSlots as Ue, watch as D, withCtx as O, withKeys as We, withModifiers as Ge } from "vue";
|
|
24
25
|
//#region src/treemap.js
|
|
25
|
-
function
|
|
26
|
+
function Ke(e, t) {
|
|
26
27
|
let n = e.length;
|
|
27
28
|
if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
|
|
28
29
|
{
|
|
@@ -34,7 +35,7 @@ function Ge(e, t) {
|
|
|
34
35
|
return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function qe(e) {
|
|
38
39
|
let { xOffset: t, yOffset: n, width: r, height: i } = e;
|
|
39
40
|
return {
|
|
40
41
|
x0: t,
|
|
@@ -43,14 +44,14 @@ function Ke(e) {
|
|
|
43
44
|
y1: n + i
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Je(e, t, n) {
|
|
47
48
|
if (e.length === 0) return !0;
|
|
48
49
|
{
|
|
49
50
|
let r = e.concat(t);
|
|
50
|
-
return
|
|
51
|
+
return Ke(e, n) >= Ke(r, n);
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function Ye(e) {
|
|
54
55
|
let t = [], n = e.length;
|
|
55
56
|
for (let r = 0; r < n; r += 1) {
|
|
56
57
|
let n = e[r], i = n.length;
|
|
@@ -58,17 +59,17 @@ function Je(e) {
|
|
|
58
59
|
}
|
|
59
60
|
return t;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
62
|
+
function Xe(e, t) {
|
|
63
|
+
return rt({
|
|
63
64
|
...t,
|
|
64
65
|
children: e
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function Ze(e) {
|
|
68
69
|
return (e.x1 - e.x0) * (e.y1 - e.y0);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
71
|
+
function Qe(e, t) {
|
|
72
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = tt(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
|
|
72
73
|
if (n >= r) {
|
|
73
74
|
for (let t = 0; t < o; t += 1) {
|
|
74
75
|
let n = e[t], r = d + n.normalizedValue / c, i = {
|
|
@@ -93,16 +94,16 @@ function Ze(e, t) {
|
|
|
93
94
|
return f;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
-
let t =
|
|
97
|
+
function $e(e) {
|
|
98
|
+
let t = tt(e), n = t.width, r = t.height;
|
|
98
99
|
return Math.min(n, r);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function et(e, t) {
|
|
101
102
|
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
102
103
|
for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
|
|
103
104
|
return i;
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
+
function tt(e) {
|
|
106
107
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
107
108
|
return {
|
|
108
109
|
xOffset: t,
|
|
@@ -111,39 +112,39 @@ function et(e) {
|
|
|
111
112
|
height: i - n
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function nt(e, t, n, r) {
|
|
115
116
|
let i = e, a = t, o = n, s = r;
|
|
116
117
|
for (;;) {
|
|
117
118
|
let e = i.length;
|
|
118
119
|
if (e === 0) {
|
|
119
|
-
let e =
|
|
120
|
+
let e = Qe(a, o);
|
|
120
121
|
return s.concat(e);
|
|
121
122
|
}
|
|
122
|
-
let t =
|
|
123
|
-
if (
|
|
123
|
+
let t = $e(o), n = i[0], r = i.slice(1, e);
|
|
124
|
+
if (Je(a, n, t)) {
|
|
124
125
|
let e = a.concat(n);
|
|
125
126
|
i = r, a = e, o = o, s = s;
|
|
126
127
|
} else {
|
|
127
128
|
let e = a.length, t = 0;
|
|
128
129
|
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
129
|
-
let n = k(o, t), r =
|
|
130
|
+
let n = k(o, t), r = Qe(a, o), c = s.concat(r);
|
|
130
131
|
i = i, a = [], o = n, s = c;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
function
|
|
135
|
+
function rt(e) {
|
|
135
136
|
if (e.children === void 0 || !e.children.length) return [e];
|
|
136
137
|
{
|
|
137
|
-
let t =
|
|
138
|
-
for (let e = 0; e < n; e += 1) r.push(
|
|
139
|
-
return
|
|
138
|
+
let t = nt(et(e.children, Ze(e)), [], e, []), n = t.length, r = [];
|
|
139
|
+
for (let e = 0; e < n; e += 1) r.push(rt(t[e]));
|
|
140
|
+
return Ye(r);
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
function k(e, t) {
|
|
143
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
144
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = tt(e);
|
|
144
145
|
if (n >= r) {
|
|
145
146
|
let e = t / r, o = n - e;
|
|
146
|
-
return
|
|
147
|
+
return qe({
|
|
147
148
|
xOffset: i + e,
|
|
148
149
|
yOffset: a,
|
|
149
150
|
width: o,
|
|
@@ -151,7 +152,7 @@ function k(e, t) {
|
|
|
151
152
|
});
|
|
152
153
|
} else {
|
|
153
154
|
let e = t / n, o = r - e;
|
|
154
|
-
return
|
|
155
|
+
return qe({
|
|
155
156
|
xOffset: i,
|
|
156
157
|
yOffset: a + e,
|
|
157
158
|
width: n,
|
|
@@ -161,28 +162,28 @@ function k(e, t) {
|
|
|
161
162
|
}
|
|
162
163
|
//#endregion
|
|
163
164
|
//#region src/components/vue-ui-treemap.vue
|
|
164
|
-
var A = /* @__PURE__ */ e({ default: () =>
|
|
165
|
+
var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot = ["id"], st = [
|
|
165
166
|
"tabindex",
|
|
166
167
|
"onClick",
|
|
167
168
|
"onKeydown",
|
|
168
169
|
"data-last-crumb",
|
|
169
170
|
"onMouseenter",
|
|
170
171
|
"onFocus"
|
|
171
|
-
],
|
|
172
|
+
], ct = { class: "vue-ui-treemap-crumb-unit" }, lt = { class: "vue-ui-treemap-crumb-unit-label" }, ut = {
|
|
172
173
|
key: 0,
|
|
173
174
|
style: {
|
|
174
175
|
width: "24px",
|
|
175
176
|
display: "flex",
|
|
176
177
|
"align-items": "center"
|
|
177
178
|
}
|
|
178
|
-
},
|
|
179
|
+
}, dt = {
|
|
179
180
|
key: 0,
|
|
180
181
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
181
|
-
},
|
|
182
|
+
}, ft = { style: { position: "relative" } }, pt = [
|
|
182
183
|
"xmlns",
|
|
183
184
|
"aria-describedby",
|
|
184
185
|
"viewBox"
|
|
185
|
-
],
|
|
186
|
+
], mt = { key: 0 }, ht = [
|
|
186
187
|
"x",
|
|
187
188
|
"y",
|
|
188
189
|
"height",
|
|
@@ -194,34 +195,34 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
194
195
|
"onClick",
|
|
195
196
|
"onMouseenter",
|
|
196
197
|
"onMouseleave"
|
|
197
|
-
],
|
|
198
|
+
], gt = ["id"], _t = [
|
|
198
199
|
"x",
|
|
199
200
|
"y",
|
|
200
201
|
"width",
|
|
201
202
|
"height"
|
|
202
|
-
],
|
|
203
|
+
], vt = ["clip-path"], yt = [
|
|
203
204
|
"transform",
|
|
204
205
|
"fill",
|
|
205
206
|
"font-size",
|
|
206
207
|
"font-family",
|
|
207
208
|
"font-weight"
|
|
208
|
-
],
|
|
209
|
+
], bt = { key: 0 }, xt = [
|
|
209
210
|
"x",
|
|
210
211
|
"y",
|
|
211
212
|
"height",
|
|
212
213
|
"width"
|
|
213
|
-
],
|
|
214
|
+
], St = {
|
|
214
215
|
style: {
|
|
215
216
|
width: "100%",
|
|
216
217
|
height: "100%",
|
|
217
218
|
overflow: "hidden"
|
|
218
219
|
},
|
|
219
220
|
class: "vue-ui-treemap-cell"
|
|
220
|
-
},
|
|
221
|
+
}, Ct = {
|
|
221
222
|
key: 0,
|
|
222
223
|
"data-dom-to-png-ignore": "",
|
|
223
224
|
class: "reset-wrapper"
|
|
224
|
-
},
|
|
225
|
+
}, wt = {
|
|
225
226
|
key: 1,
|
|
226
227
|
style: {
|
|
227
228
|
position: "absolute",
|
|
@@ -231,10 +232,10 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
231
232
|
},
|
|
232
233
|
"data-dom-to-png-ignore": "",
|
|
233
234
|
"aria-hidden": "true"
|
|
234
|
-
},
|
|
235
|
+
}, Tt = {
|
|
235
236
|
key: 6,
|
|
236
237
|
class: "vue-data-ui-watermark"
|
|
237
|
-
},
|
|
238
|
+
}, Et = ["id"], Dt = ["onClick"], Ot = ["innerHTML"], kt = 4, At = /*#__PURE__*/ he({
|
|
238
239
|
__name: "vue-ui-treemap",
|
|
239
240
|
props: {
|
|
240
241
|
config: {
|
|
@@ -255,16 +256,16 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
255
256
|
"selectDatapoint",
|
|
256
257
|
"copyAlt"
|
|
257
258
|
],
|
|
258
|
-
setup(e, { expose: he, emit:
|
|
259
|
-
|
|
260
|
-
let
|
|
261
|
-
|
|
262
|
-
|
|
259
|
+
setup(e, { expose: he, emit: Ke }) {
|
|
260
|
+
He((e) => ({ v191a094c: di.value }));
|
|
261
|
+
let qe = Me(() => import("./DataTable-BxpTMgfK.js")), Je = Me(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Ye = Me(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Ze = Me(() => import("./Tooltip-CxOrWlFy.js")), Qe = Me(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), $e = Me(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), et = Me(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_treemap: tt } = oe(), { isThemeValid: nt, warnInvalidTheme: rt } = fe(), k = e, A = Ke, At = Ue(), jt = Te();
|
|
262
|
+
Le(() => {
|
|
263
|
+
At["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
263
264
|
});
|
|
264
|
-
let
|
|
265
|
+
let Mt = m(() => !!k.dataset && k.dataset.length), Nt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = C(r()), Pt = C(!1), Ft = C(""), M = C(!1), It = C(0), N = C([]), P = T(null), Lt = T(null), Rt = T(null), zt = T(null), Bt = T(null), Vt = C(0), Ht = C(0), Ut = C(0), F = C([]), Wt = C(null), Gt = C(!1), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(/* @__PURE__ */ new Map()), Xt = C(!1), Zt = C(!1), I = C(null), Qt = C({
|
|
265
266
|
x: 0,
|
|
266
267
|
y: 0
|
|
267
|
-
}),
|
|
268
|
+
}), $t = C("pointer"), en = C(!1), L = C(ln()), R = m(() => L.value.userOptions.useCursorPointer), tn = m(() => a({
|
|
268
269
|
defaultConfig: {
|
|
269
270
|
userOptions: { show: !1 },
|
|
270
271
|
style: { chart: {
|
|
@@ -277,10 +278,10 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
277
278
|
} }
|
|
278
279
|
},
|
|
279
280
|
userConfig: L.value.skeletonConfig ?? {}
|
|
280
|
-
})), { loading:
|
|
281
|
-
...
|
|
281
|
+
})), { loading: nn, FINAL_DATASET: rn, manualLoading: an } = ce({
|
|
282
|
+
...Ve(k),
|
|
282
283
|
FINAL_CONFIG: L,
|
|
283
|
-
prepareConfig:
|
|
284
|
+
prepareConfig: ln,
|
|
284
285
|
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
285
286
|
name: "_",
|
|
286
287
|
value: 53,
|
|
@@ -318,18 +319,18 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
318
319
|
}],
|
|
319
320
|
skeletonConfig: a({
|
|
320
321
|
defaultConfig: L.value,
|
|
321
|
-
userConfig:
|
|
322
|
+
userConfig: tn.value
|
|
322
323
|
})
|
|
323
|
-
}), { userOptionsVisible:
|
|
324
|
-
function
|
|
324
|
+
}), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = Se({ config: L.value }), { svgRef: z } = Ce({ config: L.value.style.chart.title });
|
|
325
|
+
function ln() {
|
|
325
326
|
let e = de({
|
|
326
327
|
userConfig: k.config,
|
|
327
|
-
defaultConfig:
|
|
328
|
+
defaultConfig: tt
|
|
328
329
|
}), t = e.theme;
|
|
329
330
|
if (!t) return e;
|
|
330
|
-
if (!
|
|
331
|
+
if (!nt.value(e)) return rt(e), e;
|
|
331
332
|
let n = de({
|
|
332
|
-
userConfig:
|
|
333
|
+
userConfig: De[t] || k.config,
|
|
333
334
|
defaultConfig: e
|
|
334
335
|
}), r = de({
|
|
335
336
|
userConfig: k.config,
|
|
@@ -341,13 +342,13 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
341
342
|
};
|
|
342
343
|
}
|
|
343
344
|
D(() => k.config, (e) => {
|
|
344
|
-
|
|
345
|
+
nn.value || (L.value = ln()), on.value = !L.value.userOptions.showOnChartHover, Vt.value += 1, Ht.value += 1, Ut.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, B.value.showZoom = L.value.style.chart.zoom?.show ?? !1;
|
|
345
346
|
}, { deep: !0 });
|
|
346
|
-
let { isPrinting:
|
|
347
|
+
let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = se({
|
|
347
348
|
elementId: `treemap_${j.value}`,
|
|
348
349
|
fileName: L.value.style.chart.title.text || "vue-ui-treemap",
|
|
349
350
|
options: L.value.userOptions.print
|
|
350
|
-
}),
|
|
351
|
+
}), mn = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), hn = m(() => s(L.value.customPalette)), B = C({
|
|
351
352
|
showTable: L.value.table.show,
|
|
352
353
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
353
354
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
@@ -359,21 +360,21 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
359
360
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
360
361
|
};
|
|
361
362
|
}, { immediate: !0 });
|
|
362
|
-
let
|
|
363
|
+
let gn = C({
|
|
363
364
|
height: L.value.style.chart.height,
|
|
364
365
|
width: L.value.style.chart.width
|
|
365
366
|
});
|
|
366
|
-
function
|
|
367
|
-
let t = P.value, n =
|
|
367
|
+
function _n(e) {
|
|
368
|
+
let t = P.value, n = gn.value.height;
|
|
368
369
|
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
369
370
|
}
|
|
370
|
-
function
|
|
371
|
-
if (!
|
|
372
|
-
let e =
|
|
373
|
-
return
|
|
371
|
+
function vn() {
|
|
372
|
+
if (!Wt.value || X.value.length <= 1) return 0;
|
|
373
|
+
let e = Wt.value, t = getComputedStyle(e);
|
|
374
|
+
return _n(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
374
375
|
}
|
|
375
376
|
let V = m(() => {
|
|
376
|
-
let e = L.value.style.chart.padding, t =
|
|
377
|
+
let e = L.value.style.chart.padding, t = gn.value.width, n = gn.value.height, r = vn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
|
|
377
378
|
return {
|
|
378
379
|
left: i,
|
|
379
380
|
top: o,
|
|
@@ -385,34 +386,34 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
385
386
|
vbHeight: n - r,
|
|
386
387
|
offsetY: r
|
|
387
388
|
};
|
|
388
|
-
}), H = C(u(
|
|
389
|
+
}), H = C(u(rn.value)), U = C(H.value), yn = T(/* @__PURE__ */ new Map());
|
|
389
390
|
D([H, () => L.value], () => {
|
|
390
|
-
|
|
391
|
+
Jt.value = null, Yt.value = /* @__PURE__ */ new Map();
|
|
391
392
|
}, { deep: !0 }), D(() => N.value, () => {
|
|
392
|
-
|
|
393
|
-
}, { deep: !0 }), D([() =>
|
|
394
|
-
|
|
393
|
+
Jt.value = null, Yt.value = /* @__PURE__ */ new Map(), Cn(), Ut.value += 1, Ht.value += 1;
|
|
394
|
+
}, { deep: !0 }), D([() => gn.value.width, () => gn.value.height], () => {
|
|
395
|
+
Yt.value = /* @__PURE__ */ new Map();
|
|
395
396
|
});
|
|
396
|
-
function
|
|
397
|
+
function bn(e) {
|
|
397
398
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
398
399
|
e.id ||= r(), e.sourceColor === void 0 && (e.sourceColor = f(e.color) || null);
|
|
399
|
-
let n = e.sourceColor ||
|
|
400
|
-
n = f(n),
|
|
400
|
+
let n = e.sourceColor || yn.value.get(e.id) || hn.value[t] || o[t] || o[t % o.length];
|
|
401
|
+
n = f(n), yn.value.set(e.id, n), e.color = n, xn(e, n);
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function xn(e, t) {
|
|
404
405
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
405
406
|
n.id ||= r(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = f(n.color) || null);
|
|
406
407
|
let i = n.sourceColor || t;
|
|
407
|
-
n.color = i,
|
|
408
|
+
n.color = i, xn(n, i);
|
|
408
409
|
});
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
+
function Sn(e) {
|
|
411
412
|
let t = Y(e);
|
|
412
413
|
for (; t?.parentId;) t = Y(t.parentId);
|
|
413
414
|
return t?.id ?? null;
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function Cn() {
|
|
416
417
|
let e = H.value.filter((e) => !N.value.includes(e.id));
|
|
417
418
|
if (!F.value.length) {
|
|
418
419
|
U.value = e;
|
|
@@ -423,94 +424,94 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
423
424
|
F.value = [], U.value = e;
|
|
424
425
|
return;
|
|
425
426
|
}
|
|
426
|
-
let r =
|
|
427
|
+
let r = Sn(n.id);
|
|
427
428
|
if (r && N.value.includes(r)) {
|
|
428
429
|
F.value = [], U.value = e;
|
|
429
430
|
return;
|
|
430
431
|
}
|
|
431
432
|
U.value = [n];
|
|
432
433
|
}
|
|
433
|
-
D(() =>
|
|
434
|
-
H.value = u(
|
|
434
|
+
D(() => rn.value, () => {
|
|
435
|
+
H.value = u(rn.value), bn(H.value), Cn(), Ut.value += 1, Ht.value += 1;
|
|
435
436
|
}, {
|
|
436
437
|
deep: !0,
|
|
437
438
|
immediate: !0,
|
|
438
439
|
flush: "post"
|
|
439
440
|
});
|
|
440
|
-
let W = T(null),
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
let W = T(null), wn = T(null);
|
|
442
|
+
Le(() => {
|
|
443
|
+
Gt.value = !0, En();
|
|
443
444
|
});
|
|
444
|
-
let
|
|
445
|
-
function
|
|
445
|
+
let Tn = m(() => L.value.debug);
|
|
446
|
+
function En() {
|
|
446
447
|
if (te(k.dataset) && t({
|
|
447
448
|
componentName: "VueUiTreemap",
|
|
448
449
|
type: "dataset",
|
|
449
|
-
debug:
|
|
450
|
-
}),
|
|
450
|
+
debug: Tn.value
|
|
451
|
+
}), bn(H.value), te(k.dataset) || (an.value = L.value.loading), L.value.responsive) {
|
|
451
452
|
let e = ge(() => {
|
|
452
453
|
let { width: e, height: t } = _e({
|
|
453
454
|
chart: P.value,
|
|
454
|
-
title: L.value.style.chart.title.text ?
|
|
455
|
-
legend: L.value.style.chart.legend.show ?
|
|
456
|
-
source:
|
|
457
|
-
noTitle:
|
|
455
|
+
title: L.value.style.chart.title.text ? Lt.value : null,
|
|
456
|
+
legend: L.value.style.chart.legend.show ? Rt.value : null,
|
|
457
|
+
source: zt.value,
|
|
458
|
+
noTitle: Bt.value
|
|
458
459
|
});
|
|
459
460
|
requestAnimationFrame(() => {
|
|
460
|
-
|
|
461
|
+
gn.value.width = e, gn.value.height = t - 12;
|
|
461
462
|
});
|
|
462
463
|
});
|
|
463
|
-
W.value && (
|
|
464
|
+
W.value && (wn.value && W.value.unobserve(wn.value), W.value.disconnect()), W.value = new ResizeObserver(e), wn.value = P.value.parentNode, W.value.observe(wn.value);
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
|
-
|
|
467
|
-
W.value && (
|
|
467
|
+
Ie(() => {
|
|
468
|
+
W.value && (wn.value && W.value.unobserve(wn.value), W.value.disconnect());
|
|
468
469
|
});
|
|
469
|
-
let
|
|
470
|
+
let Dn = m(() => U.value.map((e, t) => ({
|
|
470
471
|
...e,
|
|
471
|
-
color: f(e.color) ||
|
|
472
|
-
})).filter((e) => !N.value.includes(e.id))),
|
|
472
|
+
color: f(e.color) || hn.value[t] || o[t] || o[t % o.length]
|
|
473
|
+
})).filter((e) => !N.value.includes(e.id))), On = m(() => H.value.filter((e) => !N.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), kn = m({
|
|
473
474
|
get() {
|
|
474
|
-
let e = [...
|
|
475
|
-
return L.value.style.chart.layout.sorted && (e = [...
|
|
475
|
+
let e = [...Dn.value];
|
|
476
|
+
return L.value.style.chart.layout.sorted && (e = [...Dn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
476
477
|
},
|
|
477
478
|
set(e) {
|
|
478
479
|
return e;
|
|
479
480
|
}
|
|
480
481
|
});
|
|
481
|
-
function
|
|
482
|
+
function An(e, t) {
|
|
482
483
|
return e.value / t;
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
-
let i = L.value.style.chart.layout.rects.colorRatio -
|
|
485
|
+
function jn(e, t, r) {
|
|
486
|
+
let i = L.value.style.chart.layout.rects.colorRatio - An(t, r);
|
|
486
487
|
return n(e, i < 0 ? 0 : i);
|
|
487
488
|
}
|
|
488
|
-
function
|
|
489
|
+
function Mn(e) {
|
|
489
490
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
+
function Nn(e) {
|
|
492
493
|
return [...e].sort((e, t) => {
|
|
493
|
-
let n =
|
|
494
|
+
let n = Mn(e), r = Mn(t);
|
|
494
495
|
if (n !== r) return n - r;
|
|
495
496
|
let i = Number(e.value) || 0;
|
|
496
497
|
return (Number(t.value) || 0) - i;
|
|
497
498
|
});
|
|
498
499
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
501
|
-
let s = e.sourceColor || f(e.color) || f(t) ||
|
|
500
|
+
function Pn(e, t, n, r, i) {
|
|
501
|
+
return Nn(e).map((e, a) => {
|
|
502
|
+
let s = e.sourceColor || f(e.color) || f(t) || hn.value[a] || o[a] || o[a % o.length], c = e.sourceColor ? e.sourceColor : jn(s, e, r), l = An(e, r), u = i ?? e.parentId ?? e.id, d = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
502
503
|
return {
|
|
503
504
|
...e,
|
|
504
505
|
color: c,
|
|
505
506
|
proportion: l,
|
|
506
507
|
parentName: n,
|
|
507
508
|
rootId: u,
|
|
508
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
509
|
+
children: Array.isArray(e.children) && e.children.length ? Pn(e.children, s, e.name, d, u) : void 0
|
|
509
510
|
};
|
|
510
511
|
});
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
-
let t =
|
|
513
|
+
function Fn(e) {
|
|
514
|
+
let t = qn(e), n = In(e), r = t * .55, i = t * .55, a = t * 1.05, o = t * 1.05, s = t * .35, c = n ? a + o + s : t * .45, l = e.x0 + r, u = e.x1 - r, d = e.y0 + c, f = e.y1 - i;
|
|
514
515
|
return u <= l || f <= d ? null : {
|
|
515
516
|
x0: l,
|
|
516
517
|
y0: d,
|
|
@@ -518,19 +519,19 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
518
519
|
y1: f
|
|
519
520
|
};
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
522
|
+
function In(e) {
|
|
523
|
+
return Ln(e);
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function Ln(e) {
|
|
525
526
|
let t = Number(L.value.style.chart.layout.labels.hideUnderProportion);
|
|
526
527
|
return !Number.isFinite(t) || t <= 0 ? !0 : e.proportion > t;
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function Rn(e, t, n = 0, r = null) {
|
|
529
530
|
if (!Array.isArray(e) || !e.length) return [];
|
|
530
531
|
let i = e.map((e) => {
|
|
531
532
|
let { children: t, ...n } = e;
|
|
532
533
|
return { ...n };
|
|
533
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s =
|
|
534
|
+
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Xe(i, t), c = [];
|
|
534
535
|
for (let e of s) {
|
|
535
536
|
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
536
537
|
...e,
|
|
@@ -539,19 +540,19 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
539
540
|
color: i?.color ?? e.color ?? null,
|
|
540
541
|
children: t,
|
|
541
542
|
isVisibleNode: !0,
|
|
542
|
-
showLabel:
|
|
543
|
+
showLabel: In(e)
|
|
543
544
|
};
|
|
544
545
|
if (c.push(s), t.length) {
|
|
545
|
-
let r =
|
|
546
|
-
r && c.push(...
|
|
546
|
+
let r = Fn(s);
|
|
547
|
+
r && c.push(...Rn(t, r, n + 1, e.id));
|
|
547
548
|
}
|
|
548
549
|
}
|
|
549
550
|
return c;
|
|
550
551
|
}
|
|
551
|
-
let
|
|
552
|
-
let e = U.value.length ? U.value :
|
|
553
|
-
return
|
|
554
|
-
let i = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...s } = e, c = e.sourceColor || f(e.color) ||
|
|
552
|
+
let zn = m(() => {
|
|
553
|
+
let e = U.value.length ? U.value : kn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
554
|
+
return Rn(e.map((e, n) => {
|
|
555
|
+
let i = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...s } = e, c = e.sourceColor || f(e.color) || yn.value.get(e.id) || hn.value[n] || o[n] || o[n % o.length], l = e.sourceColor ? e.sourceColor : jn(c, e, t);
|
|
555
556
|
return {
|
|
556
557
|
...s,
|
|
557
558
|
id: e.id || r(),
|
|
@@ -560,7 +561,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
560
561
|
value: e.value,
|
|
561
562
|
color: l,
|
|
562
563
|
proportion: (Number(e.value) || 0) / t,
|
|
563
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
564
|
+
children: Array.isArray(e.children) && e.children.length ? Pn(e.children, c, e.name, i || 1) : void 0
|
|
564
565
|
};
|
|
565
566
|
}), {
|
|
566
567
|
x0: V.value.left,
|
|
@@ -568,29 +569,29 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
568
569
|
x1: V.value.left + V.value.width,
|
|
569
570
|
y1: V.value.top + V.value.height
|
|
570
571
|
});
|
|
571
|
-
}), G = m(() =>
|
|
572
|
+
}), G = m(() => zn.value);
|
|
572
573
|
function K({ y0: e, y1: t }) {
|
|
573
574
|
return t - e <= 0 ? 1e-4 : t - e;
|
|
574
575
|
}
|
|
575
576
|
function q({ x0: e, x1: t }) {
|
|
576
577
|
return t - e <= 0 ? 1e-4 : t - e;
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
+
function Bn() {
|
|
579
580
|
let e = L.value.style.chart.layout.labels, t = Number(e.minFontSize), n = Number(e.fontSize), r = Math.max(0, Math.min(Number.isFinite(t) ? t : 0, Number.isFinite(n) ? n : 0));
|
|
580
581
|
return {
|
|
581
582
|
lowerBound: r,
|
|
582
583
|
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
583
584
|
};
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function Vn(e) {
|
|
586
587
|
let t = Math.min(4, Math.max(e * .25, .5));
|
|
587
588
|
return {
|
|
588
589
|
paddingX: t,
|
|
589
590
|
paddingTop: t
|
|
590
591
|
};
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
-
let { paddingX: n, paddingTop: r } =
|
|
593
|
+
function Hn(e, t) {
|
|
594
|
+
let { paddingX: n, paddingTop: r } = Vn(t), i = t * 1.1;
|
|
594
595
|
return {
|
|
595
596
|
x: e.x0 + n,
|
|
596
597
|
y: e.y0 + r,
|
|
@@ -599,7 +600,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
599
600
|
lineHeight: i
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
+
function Un(e, t) {
|
|
603
604
|
return ee(L.value.style.chart.layout.labels.formatter, e.value, i({
|
|
604
605
|
p: L.value.style.chart.layout.labels.prefix,
|
|
605
606
|
v: e.value,
|
|
@@ -610,31 +611,31 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
610
611
|
seriesIndex: t
|
|
611
612
|
});
|
|
612
613
|
}
|
|
613
|
-
function
|
|
614
|
-
let n =
|
|
614
|
+
function Wn(e, t) {
|
|
615
|
+
let n = Un(e, t);
|
|
615
616
|
return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
|
|
616
617
|
}
|
|
617
|
-
function
|
|
618
|
-
let r =
|
|
619
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) =>
|
|
618
|
+
function Gn(e, t, n) {
|
|
619
|
+
let r = Wn(e, n), i = Hn(e, t);
|
|
620
|
+
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => ti(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
620
621
|
}
|
|
621
|
-
function
|
|
622
|
-
let i =
|
|
622
|
+
function Kn(e, t, n, r) {
|
|
623
|
+
let i = Wn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
|
|
623
624
|
return Math.max(n, Math.min(r, u, d));
|
|
624
625
|
}
|
|
625
|
-
function
|
|
626
|
-
let { lowerBound: n, upperBound: r } =
|
|
627
|
-
if (
|
|
626
|
+
function qn(e, t) {
|
|
627
|
+
let { lowerBound: n, upperBound: r } = Bn(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Kn(e, t, n, r));
|
|
628
|
+
if (Gn(e, o, t) || !Gn(e, n, t)) return o;
|
|
628
629
|
let s = n, c = o, l = n;
|
|
629
630
|
for (let n = 0; n < 8; n += 1) {
|
|
630
631
|
let n = (s + c) / 2;
|
|
631
|
-
|
|
632
|
+
Gn(e, n, t) ? (l = n, s = n) : c = n;
|
|
632
633
|
}
|
|
633
634
|
let u = Math.max(n, o * .7);
|
|
634
635
|
return l >= u ? l : o;
|
|
635
636
|
}
|
|
636
|
-
function
|
|
637
|
-
M.value = e,
|
|
637
|
+
function Jn(e) {
|
|
638
|
+
M.value = e, It.value += 1;
|
|
638
639
|
}
|
|
639
640
|
let J = m(() => ({
|
|
640
641
|
x: 0,
|
|
@@ -652,7 +653,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
652
653
|
}
|
|
653
654
|
return null;
|
|
654
655
|
}
|
|
655
|
-
function
|
|
656
|
+
function Yn(e) {
|
|
656
657
|
let t = [], n = Y(e);
|
|
657
658
|
for (; n && n.parentId;) {
|
|
658
659
|
let e = Y(n.parentId);
|
|
@@ -661,23 +662,23 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
661
662
|
}
|
|
662
663
|
return t;
|
|
663
664
|
}
|
|
664
|
-
let
|
|
665
|
-
function
|
|
665
|
+
let Xn = m(() => F.value.length > 0);
|
|
666
|
+
function Zn() {
|
|
666
667
|
U.value = H.value.slice(), F.value = [], A("selectDatapoint", void 0);
|
|
667
668
|
}
|
|
668
|
-
function
|
|
669
|
+
function Qn() {
|
|
669
670
|
return F.value[F.value.length - 1] ?? null;
|
|
670
671
|
}
|
|
671
|
-
function
|
|
672
|
-
F.value = [...
|
|
672
|
+
function $n(e, t, n) {
|
|
673
|
+
F.value = [...Yn(e.id), e.id], U.value = [e], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
673
674
|
datapoint: t ?? e,
|
|
674
675
|
seriesIndex: n
|
|
675
676
|
}), A("selectDatapoint", t ?? e);
|
|
676
677
|
}
|
|
677
|
-
function
|
|
678
|
-
let n =
|
|
678
|
+
function er(e, t) {
|
|
679
|
+
let n = Qn();
|
|
679
680
|
if (!n) {
|
|
680
|
-
|
|
681
|
+
Zn();
|
|
681
682
|
return;
|
|
682
683
|
}
|
|
683
684
|
let r = Y(n);
|
|
@@ -685,35 +686,35 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
685
686
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
686
687
|
datapoint: e,
|
|
687
688
|
seriesIndex: t
|
|
688
|
-
}),
|
|
689
|
+
}), Zn();
|
|
689
690
|
return;
|
|
690
691
|
}
|
|
691
692
|
let i = Y(r.parentId);
|
|
692
693
|
if (!i) {
|
|
693
|
-
|
|
694
|
+
Zn();
|
|
694
695
|
return;
|
|
695
696
|
}
|
|
696
|
-
F.value = [...
|
|
697
|
+
F.value = [...Yn(i.id), i.id], U.value = [i], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
697
698
|
datapoint: e,
|
|
698
699
|
seriesIndex: t
|
|
699
700
|
}), A("selectDatapoint", e);
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
+
function tr(e, t) {
|
|
702
703
|
if (!e) {
|
|
703
|
-
|
|
704
|
+
Zn();
|
|
704
705
|
return;
|
|
705
706
|
}
|
|
706
707
|
let n = Y(e.id);
|
|
707
708
|
if (n) {
|
|
708
|
-
if (
|
|
709
|
-
|
|
709
|
+
if (Qn() === n.id) {
|
|
710
|
+
er(e, t);
|
|
710
711
|
return;
|
|
711
712
|
}
|
|
712
|
-
|
|
713
|
+
$n(n, e, t);
|
|
713
714
|
}
|
|
714
715
|
}
|
|
715
|
-
function
|
|
716
|
-
return e ?
|
|
716
|
+
function nr(e) {
|
|
717
|
+
return e ? Qn() === e.id : !1;
|
|
717
718
|
}
|
|
718
719
|
let X = m(() => {
|
|
719
720
|
let e = [{
|
|
@@ -730,9 +731,9 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
730
731
|
});
|
|
731
732
|
}
|
|
732
733
|
return e;
|
|
733
|
-
}), Z = T(null),
|
|
734
|
+
}), Z = T(null), rr = m(() => H.value.map((e, t) => ({
|
|
734
735
|
...e,
|
|
735
|
-
color: f(e.color) ||
|
|
736
|
+
color: f(e.color) || hn.value[t] || o[t] || o[t % o.length],
|
|
736
737
|
shape: "square"
|
|
737
738
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
738
739
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -740,70 +741,70 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
740
741
|
...e,
|
|
741
742
|
proportion: n,
|
|
742
743
|
isSegregated: N.value.includes(e.id),
|
|
743
|
-
segregate: () =>
|
|
744
|
+
segregate: () => sr(e),
|
|
744
745
|
opacity: N.value.includes(e.id) ? .5 : 1,
|
|
745
746
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? ee(L.value.style.chart.layout.labels.formatter, e.value, i({
|
|
746
747
|
p: L.value.style.chart.layout.labels.prefix,
|
|
747
748
|
v: e.value,
|
|
748
749
|
s: L.value.style.chart.layout.labels.suffix,
|
|
749
750
|
r: L.value.style.chart.legend.roundingValue
|
|
750
|
-
}), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
751
|
+
}), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / On.value) ? "-" : (e.value / On.value * 100).toFixed(L.value.style.chart.legend.roundingPercentage)}%${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
751
752
|
};
|
|
752
|
-
})),
|
|
753
|
+
})), ir = m(() => ({
|
|
753
754
|
cy: "treemap-div-legend",
|
|
754
755
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
755
756
|
color: L.value.style.chart.legend.color,
|
|
756
757
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
757
758
|
paddingBottom: 12,
|
|
758
759
|
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
759
|
-
})),
|
|
760
|
-
function
|
|
761
|
-
N.value.length ? N.value = [] :
|
|
760
|
+
})), ar = m(() => N.value.length === rr.value.length);
|
|
761
|
+
function or() {
|
|
762
|
+
N.value.length ? N.value = [] : rr.value.forEach((e) => {
|
|
762
763
|
N.value.push(e.id);
|
|
763
764
|
}), A("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function sr(e) {
|
|
766
767
|
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length < k.dataset.length - 1 && N.value.push(e.id), A("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
767
768
|
}
|
|
768
|
-
function
|
|
769
|
+
function cr(e) {
|
|
769
770
|
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
770
771
|
}
|
|
771
|
-
function
|
|
772
|
-
let t =
|
|
773
|
-
t !== null && N.value.includes(t.id) &&
|
|
772
|
+
function lr(e) {
|
|
773
|
+
let t = cr(e);
|
|
774
|
+
t !== null && N.value.includes(t.id) && sr({ id: t.id });
|
|
774
775
|
}
|
|
775
|
-
function
|
|
776
|
-
let t =
|
|
777
|
-
t !== null && (N.value.includes(t.id) ||
|
|
776
|
+
function ur(e) {
|
|
777
|
+
let t = cr(e);
|
|
778
|
+
t !== null && (N.value.includes(t.id) || sr({ id: t.id }));
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
-
Z.value = null,
|
|
780
|
+
function dr({ datapoint: e, seriesIndex: t }) {
|
|
781
|
+
Z.value = null, Pt.value = !1, I.value = null, $t.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
781
782
|
datapoint: e,
|
|
782
783
|
seriesIndex: t
|
|
783
784
|
});
|
|
784
785
|
}
|
|
785
|
-
let
|
|
786
|
-
function
|
|
787
|
-
if (
|
|
786
|
+
let fr = C(null);
|
|
787
|
+
function pr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
788
|
+
if (ar.value || n === "pointer" && Cr.value) return;
|
|
788
789
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
789
790
|
datapoint: e,
|
|
790
791
|
seriesIndex: t
|
|
791
|
-
}), I.value = t,
|
|
792
|
+
}), I.value = t, $t.value = n, Z.value = e, fr.value = {
|
|
792
793
|
datapoint: e,
|
|
793
794
|
seriesIndex: t,
|
|
794
795
|
config: L.value,
|
|
795
|
-
series:
|
|
796
|
+
series: Dn.value
|
|
796
797
|
};
|
|
797
798
|
let r = L.value.style.chart.tooltip.customFormat;
|
|
798
799
|
if (ae(r) && ne(() => r({
|
|
799
800
|
seriesIndex: t,
|
|
800
801
|
datapoint: e,
|
|
801
|
-
series:
|
|
802
|
+
series: Dn.value,
|
|
802
803
|
config: L.value
|
|
803
|
-
})))
|
|
804
|
+
}))) Ft.value = r({
|
|
804
805
|
seriesIndex: t,
|
|
805
806
|
datapoint: e,
|
|
806
|
-
series:
|
|
807
|
+
series: Dn.value,
|
|
807
808
|
config: L.value
|
|
808
809
|
});
|
|
809
810
|
else {
|
|
@@ -816,9 +817,9 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
816
817
|
}), {
|
|
817
818
|
datapoint: e,
|
|
818
819
|
seriesIndex: t
|
|
819
|
-
})}</b>`,
|
|
820
|
+
})}</b>`, Ft.value = `<div>${n}</div>`;
|
|
820
821
|
}
|
|
821
|
-
|
|
822
|
+
Pt.value = !0;
|
|
822
823
|
}
|
|
823
824
|
let Q = m(() => ({
|
|
824
825
|
head: G.value.map((e) => ({
|
|
@@ -827,12 +828,12 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
827
828
|
})),
|
|
828
829
|
body: G.value.map((e) => e.value)
|
|
829
830
|
}));
|
|
830
|
-
function
|
|
831
|
-
|
|
831
|
+
function mr(e = null) {
|
|
832
|
+
Pe(() => {
|
|
832
833
|
let t = Q.value.head.map((e, t) => [
|
|
833
834
|
[e.name],
|
|
834
835
|
[Q.value.body[t]],
|
|
835
|
-
[isNaN(Q.value.body[t] /
|
|
836
|
+
[isNaN(Q.value.body[t] / On.value) ? "-" : Q.value.body[t] / On.value * 100]
|
|
836
837
|
]), n = c([
|
|
837
838
|
[L.value.style.chart.title.text],
|
|
838
839
|
[L.value.style.chart.title.subtitle.text],
|
|
@@ -848,7 +849,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
848
849
|
});
|
|
849
850
|
});
|
|
850
851
|
}
|
|
851
|
-
let
|
|
852
|
+
let hr = m(() => {
|
|
852
853
|
let e = [
|
|
853
854
|
L.value.table.columnNames.series,
|
|
854
855
|
L.value.table.columnNames.value,
|
|
@@ -867,8 +868,8 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
867
868
|
shape: "square"
|
|
868
869
|
},
|
|
869
870
|
n,
|
|
870
|
-
isNaN(Q.value.body[t] /
|
|
871
|
-
v: Q.value.body[t] /
|
|
871
|
+
isNaN(Q.value.body[t] / On.value) ? "-" : i({
|
|
872
|
+
v: Q.value.body[t] / On.value * 100,
|
|
872
873
|
s: "%",
|
|
873
874
|
r: L.value.table.td.roundingPercentage
|
|
874
875
|
})
|
|
@@ -893,36 +894,36 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
893
894
|
config: n
|
|
894
895
|
};
|
|
895
896
|
});
|
|
896
|
-
function
|
|
897
|
+
function gr() {
|
|
897
898
|
return G.value;
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
+
function _r() {
|
|
900
901
|
B.value.showTable = !B.value.showTable;
|
|
901
902
|
}
|
|
902
|
-
function
|
|
903
|
+
function vr() {
|
|
903
904
|
B.value.showTooltip = !B.value.showTooltip;
|
|
904
905
|
}
|
|
905
|
-
function
|
|
906
|
+
function yr() {
|
|
906
907
|
B.value.showZoom = !B.value.showZoom;
|
|
907
908
|
}
|
|
908
|
-
let
|
|
909
|
-
function
|
|
910
|
-
|
|
909
|
+
let br = C(!1);
|
|
910
|
+
function xr() {
|
|
911
|
+
br.value = !br.value;
|
|
911
912
|
}
|
|
912
|
-
let
|
|
913
|
+
let Sr = m(() => !br.value && B.value.showZoom), Cr = C(null), wr = C(!1), { viewBox: $, resetZoom: Tr, isZoom: Er, setInitialViewBox: Dr } = Ee(z, {
|
|
913
914
|
x: J.value.x,
|
|
914
915
|
y: J.value.y,
|
|
915
916
|
width: Math.max(10, J.value.width),
|
|
916
917
|
height: Math.max(10, J.value.height)
|
|
917
|
-
}, 1,
|
|
918
|
+
}, 1, Sr), Or = m(() => B.value.showZoom || Er.value);
|
|
918
919
|
D([
|
|
919
920
|
() => J.value.x,
|
|
920
921
|
() => J.value.y,
|
|
921
922
|
() => J.value.width,
|
|
922
923
|
() => J.value.height
|
|
923
924
|
], () => {
|
|
924
|
-
|
|
925
|
-
|
|
925
|
+
Pe(() => {
|
|
926
|
+
Dr({
|
|
926
927
|
x: J.value.x,
|
|
927
928
|
y: J.value.y,
|
|
928
929
|
width: Math.max(10, J.value.width),
|
|
@@ -930,33 +931,33 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
930
931
|
});
|
|
931
932
|
});
|
|
932
933
|
}, { immediate: !0 });
|
|
933
|
-
function
|
|
934
|
-
|
|
934
|
+
function kr(e) {
|
|
935
|
+
Sr.value && (e.button !== void 0 && e.button !== 0 || (Cr.value = {
|
|
935
936
|
x: e.clientX,
|
|
936
937
|
y: e.clientY
|
|
937
|
-
},
|
|
938
|
+
}, wr.value = !1));
|
|
938
939
|
}
|
|
939
|
-
function
|
|
940
|
-
if (!
|
|
941
|
-
let t = e.clientX -
|
|
942
|
-
Math.hypot(t, n) >
|
|
940
|
+
function Ar(e) {
|
|
941
|
+
if (!Sr.value || !Cr.value) return;
|
|
942
|
+
let t = e.clientX - Cr.value.x, n = e.clientY - Cr.value.y;
|
|
943
|
+
Math.hypot(t, n) > kt && (wr.value = !0);
|
|
943
944
|
}
|
|
944
|
-
function
|
|
945
|
-
|
|
946
|
-
|
|
945
|
+
function jr() {
|
|
946
|
+
Cr.value = null, wr.value && window.setTimeout(() => {
|
|
947
|
+
wr.value = !1;
|
|
947
948
|
}, 0);
|
|
948
949
|
}
|
|
949
|
-
function
|
|
950
|
-
|
|
950
|
+
function Mr(e, t) {
|
|
951
|
+
wr.value || tr(e, t);
|
|
951
952
|
}
|
|
952
|
-
let
|
|
953
|
-
function
|
|
954
|
-
|
|
953
|
+
let Nr = C(null);
|
|
954
|
+
function Pr(e) {
|
|
955
|
+
Nr.value = e;
|
|
955
956
|
}
|
|
956
|
-
function
|
|
957
|
-
|
|
957
|
+
function Fr() {
|
|
958
|
+
Nr.value = null;
|
|
958
959
|
}
|
|
959
|
-
async function
|
|
960
|
+
async function Ir({ scale: e = 2 } = {}) {
|
|
960
961
|
if (!P.value) return;
|
|
961
962
|
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
962
963
|
domElement: P.value,
|
|
@@ -973,10 +974,10 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
973
974
|
aspectRatio: r
|
|
974
975
|
};
|
|
975
976
|
}
|
|
976
|
-
let
|
|
977
|
+
let Lr = m(() => {
|
|
977
978
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
978
979
|
return {
|
|
979
|
-
component: e ?
|
|
980
|
+
component: e ? et : Ye,
|
|
980
981
|
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
981
982
|
props: e ? {
|
|
982
983
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1005,50 +1006,50 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1005
1006
|
};
|
|
1006
1007
|
});
|
|
1007
1008
|
D(() => B.value.showTable, (e) => {
|
|
1008
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
1009
|
+
L.value.table.show || (e && L.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
|
|
1009
1010
|
});
|
|
1010
|
-
function
|
|
1011
|
-
B.value.showTable = !1,
|
|
1011
|
+
function Rr() {
|
|
1012
|
+
B.value.showTable = !1, qt.value && qt.value.setTableIconState(!1);
|
|
1012
1013
|
}
|
|
1013
|
-
let
|
|
1014
|
+
let zr = m(() => rr.value.map((e) => ({
|
|
1014
1015
|
...e,
|
|
1015
1016
|
name: e.display
|
|
1016
|
-
}))),
|
|
1017
|
+
}))), Br = m(() => L.value.style.chart.backgroundColor), Vr = m(() => L.value.style.chart.legend), { exportSvg: Hr, getSvg: Ur } = ue({
|
|
1017
1018
|
svg: z,
|
|
1018
1019
|
title: m(() => L.value.style.chart.title),
|
|
1019
|
-
legend:
|
|
1020
|
-
legendItems:
|
|
1021
|
-
backgroundColor:
|
|
1020
|
+
legend: Vr,
|
|
1021
|
+
legendItems: zr,
|
|
1022
|
+
backgroundColor: Br
|
|
1022
1023
|
});
|
|
1023
|
-
async function
|
|
1024
|
-
|
|
1024
|
+
async function Wr({ isCb: e }) {
|
|
1025
|
+
Zt.value = !0, await Pe();
|
|
1025
1026
|
try {
|
|
1026
1027
|
if (e) {
|
|
1027
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1028
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Ur();
|
|
1028
1029
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1029
1030
|
blob: e,
|
|
1030
1031
|
url: t,
|
|
1031
1032
|
text: n,
|
|
1032
1033
|
dataUrl: r
|
|
1033
1034
|
}));
|
|
1034
|
-
} else await Promise.resolve(
|
|
1035
|
+
} else await Promise.resolve(Hr());
|
|
1035
1036
|
} finally {
|
|
1036
|
-
|
|
1037
|
+
Zt.value = !1;
|
|
1037
1038
|
}
|
|
1038
1039
|
}
|
|
1039
|
-
function
|
|
1040
|
+
function Gr(e) {
|
|
1040
1041
|
if (e?.stage === "start") {
|
|
1041
|
-
|
|
1042
|
+
Xt.value = !0;
|
|
1042
1043
|
return;
|
|
1043
1044
|
}
|
|
1044
1045
|
if (e?.stage === "end") {
|
|
1045
|
-
|
|
1046
|
+
Xt.value = !1;
|
|
1046
1047
|
return;
|
|
1047
1048
|
}
|
|
1048
|
-
|
|
1049
|
+
pn();
|
|
1049
1050
|
}
|
|
1050
|
-
function
|
|
1051
|
-
let n =
|
|
1051
|
+
function Kr(e, t) {
|
|
1052
|
+
let n = qn(e, t), { paddingX: r, paddingTop: i } = Vn(n);
|
|
1052
1053
|
return {
|
|
1053
1054
|
fontSize: n,
|
|
1054
1055
|
paddingX: r,
|
|
@@ -1056,25 +1057,25 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1056
1057
|
lineHeight: n * 1.1
|
|
1057
1058
|
};
|
|
1058
1059
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1060
|
+
function qr(e, t) {
|
|
1061
|
+
return Hn(e, Kr(e, t).fontSize);
|
|
1061
1062
|
}
|
|
1062
|
-
function
|
|
1063
|
+
function Jr(e) {
|
|
1063
1064
|
return re(e.color ?? L.value.style.chart.backgroundColor);
|
|
1064
1065
|
}
|
|
1065
|
-
function
|
|
1066
|
-
let { fontSize: n, lineHeight: r } =
|
|
1066
|
+
function Yr(e, t) {
|
|
1067
|
+
let { fontSize: n, lineHeight: r } = Kr(e, t), i = ni(e, t), a = ri(e, t);
|
|
1067
1068
|
if (i <= 0 || a <= 0) return [];
|
|
1068
1069
|
let o = Math.max(Math.floor(a / Math.max(r, 1e-4)), 1);
|
|
1069
|
-
return
|
|
1070
|
+
return Wn(e, t).slice(0, o).map((e) => String(e ?? "")).filter(Boolean);
|
|
1070
1071
|
}
|
|
1071
|
-
function
|
|
1072
|
-
if (!e || !L.value.style.chart.layout.labels.showDefaultLabels || !
|
|
1073
|
-
let { fontSize: n } =
|
|
1072
|
+
function Xr({ rect: e, seriesIndex: t }) {
|
|
1073
|
+
if (!e || !L.value.style.chart.layout.labels.showDefaultLabels || !In(e)) return null;
|
|
1074
|
+
let { fontSize: n } = Kr(e, t), r = Jr(e), i = Yr(e, t), a = qr(e, t);
|
|
1074
1075
|
if (!i.length || a.width <= 0 || a.height <= 0) return null;
|
|
1075
1076
|
let o = `treemap_clip_${j.value}_${e.id}`, s = e.x0, c = e.y0, l = Math.max(q(e), 0), u = Math.max(K(e), 0);
|
|
1076
1077
|
return {
|
|
1077
|
-
key:
|
|
1078
|
+
key: Zr(e),
|
|
1078
1079
|
clipId: o,
|
|
1079
1080
|
clipX: s,
|
|
1080
1081
|
clipY: c,
|
|
@@ -1092,31 +1093,31 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1092
1093
|
}))
|
|
1093
1094
|
};
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function Zr(e) {
|
|
1096
1097
|
return `${e.id}`;
|
|
1097
1098
|
}
|
|
1098
|
-
let
|
|
1099
|
+
let Qr = m(() => At.rect || nn.value || !L.value.style.chart.layout.labels.showDefaultLabels || ar.value ? [] : G.value.map((e, t) => e.showLabel ? Xr({
|
|
1099
1100
|
rect: e,
|
|
1100
1101
|
seriesIndex: t
|
|
1101
|
-
}) : null).filter(Boolean)),
|
|
1102
|
-
function
|
|
1103
|
-
return typeof document > "u" ? null : (
|
|
1102
|
+
}) : null).filter(Boolean)), $r;
|
|
1103
|
+
function ei() {
|
|
1104
|
+
return typeof document > "u" ? null : ($r ||= document.createElement("canvas"), $r.getContext("2d"));
|
|
1104
1105
|
}
|
|
1105
|
-
function
|
|
1106
|
-
let r =
|
|
1106
|
+
function ti(e, t, n = 400) {
|
|
1107
|
+
let r = ei();
|
|
1107
1108
|
return r ? (r.font = `${n} ${t}px ${L.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1108
1109
|
}
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1110
|
+
function ni(e, t) {
|
|
1111
|
+
return qr(e, t).width;
|
|
1111
1112
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1113
|
+
function ri(e, t) {
|
|
1114
|
+
return qr(e, t).height;
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
+
function ii(e) {
|
|
1116
1117
|
let t = L.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1117
1118
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1118
1119
|
}
|
|
1119
|
-
async function
|
|
1120
|
+
async function ai() {
|
|
1120
1121
|
if (A("copyAlt", {
|
|
1121
1122
|
config: L.value,
|
|
1122
1123
|
dataset: G.value
|
|
@@ -1129,84 +1130,84 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1129
1130
|
dataset: G.value
|
|
1130
1131
|
}));
|
|
1131
1132
|
}
|
|
1132
|
-
function
|
|
1133
|
-
I.value = null,
|
|
1133
|
+
function oi() {
|
|
1134
|
+
I.value = null, en.value = !0;
|
|
1134
1135
|
}
|
|
1135
|
-
function
|
|
1136
|
-
I.value = null,
|
|
1136
|
+
function si() {
|
|
1137
|
+
I.value = null, $t.value = "pointer", Pt.value = !1, Z.value = null, en.value = !1;
|
|
1137
1138
|
}
|
|
1138
|
-
function
|
|
1139
|
-
if (!z.value ||
|
|
1139
|
+
function ci(e) {
|
|
1140
|
+
if (!z.value || br.value || document.activeElement !== z.value || !G.value.length || ar.value) return;
|
|
1140
1141
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1141
1142
|
if (!t && !n && !r && !i) return;
|
|
1142
1143
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1143
|
-
I.value = null,
|
|
1144
|
+
I.value = null, $t.value = "pointer", Pt.value = !1, Z.value = null;
|
|
1144
1145
|
return;
|
|
1145
1146
|
}
|
|
1146
1147
|
if (r) {
|
|
1147
1148
|
if (I.value === null) return;
|
|
1148
1149
|
let e = G.value[I.value];
|
|
1149
1150
|
if (!e) return;
|
|
1150
|
-
|
|
1151
|
+
tr(e, I.value);
|
|
1151
1152
|
return;
|
|
1152
1153
|
}
|
|
1153
1154
|
let a = I.value, o = Z.value ? G.value.findIndex((e) => e.id === Z.value.id) : null, s = a !== null && a >= 0 && a < G.value.length, c = o !== null && o >= 0 && o < G.value.length;
|
|
1154
1155
|
s ? n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= G.value.length && (a = 0), a < 0 && (a = G.value.length - 1)) : a = n ? 0 : G.value.length - 1;
|
|
1155
1156
|
let l = G.value[a];
|
|
1156
|
-
l && (
|
|
1157
|
+
l && (li(a), pr({
|
|
1157
1158
|
datapoint: l,
|
|
1158
1159
|
seriesIndex: a,
|
|
1159
1160
|
triggerMode: "keyboard"
|
|
1160
1161
|
}));
|
|
1161
1162
|
}
|
|
1162
|
-
function
|
|
1163
|
+
function li(e) {
|
|
1163
1164
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1164
1165
|
let t = G.value[e];
|
|
1165
1166
|
if (!t) return;
|
|
1166
1167
|
let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
|
|
1167
|
-
|
|
1168
|
+
Qt.value = {
|
|
1168
1169
|
x: i.left + (n - $.value.x) / $.value.width * i.width,
|
|
1169
1170
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1170
1171
|
};
|
|
1171
1172
|
}
|
|
1172
|
-
let
|
|
1173
|
-
headers:
|
|
1174
|
-
rows:
|
|
1175
|
-
})),
|
|
1173
|
+
let ui = m(() => ({
|
|
1174
|
+
headers: hr.value?.colNames ?? [],
|
|
1175
|
+
rows: hr.value?.body ?? []
|
|
1176
|
+
})), di = m(() => L.value.style.chart.color);
|
|
1176
1177
|
return he({
|
|
1177
|
-
getData:
|
|
1178
|
-
getImage:
|
|
1179
|
-
generateCsv:
|
|
1180
|
-
generateImage:
|
|
1181
|
-
generateSvg:
|
|
1182
|
-
generatePdf:
|
|
1183
|
-
hideSeries:
|
|
1184
|
-
showSeries:
|
|
1185
|
-
toggleTable:
|
|
1186
|
-
toggleTooltip:
|
|
1187
|
-
toggleZoom:
|
|
1188
|
-
toggleAnnotator:
|
|
1189
|
-
toggleFullscreen:
|
|
1190
|
-
resetZoom:
|
|
1191
|
-
copyAlt:
|
|
1178
|
+
getData: gr,
|
|
1179
|
+
getImage: Ir,
|
|
1180
|
+
generateCsv: mr,
|
|
1181
|
+
generateImage: pn,
|
|
1182
|
+
generateSvg: Wr,
|
|
1183
|
+
generatePdf: fn,
|
|
1184
|
+
hideSeries: ur,
|
|
1185
|
+
showSeries: lr,
|
|
1186
|
+
toggleTable: _r,
|
|
1187
|
+
toggleTooltip: vr,
|
|
1188
|
+
toggleZoom: yr,
|
|
1189
|
+
toggleAnnotator: xr,
|
|
1190
|
+
toggleFullscreen: Jn,
|
|
1191
|
+
resetZoom: Tr,
|
|
1192
|
+
copyAlt: ai
|
|
1192
1193
|
}), (e, t) => (S(), _("div", {
|
|
1193
1194
|
ref_key: "treemapChart",
|
|
1194
1195
|
ref: P,
|
|
1195
|
-
class:
|
|
1196
|
+
class: Fe(`vue-data-ui-component vue-ui-treemap ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1196
1197
|
style: x(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1197
1198
|
id: `treemap_${j.value}`,
|
|
1198
|
-
onMouseenter: t[3] ||= () => E(
|
|
1199
|
-
onMouseleave: t[4] ||= () => E(
|
|
1199
|
+
onMouseenter: t[3] ||= () => E(sn)(!0),
|
|
1200
|
+
onMouseleave: t[4] ||= () => E(sn)(!1)
|
|
1200
1201
|
}, [
|
|
1201
1202
|
v("div", {
|
|
1202
1203
|
id: `chart-instructions-${j.value}`,
|
|
1203
1204
|
class: "sr-only"
|
|
1204
|
-
}, [v("p", null,
|
|
1205
|
-
|
|
1205
|
+
}, [v("p", null, Be(L.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1206
|
+
ui.value?.rows?.length ? (S(), h(xe, {
|
|
1206
1207
|
key: 0,
|
|
1207
1208
|
uid: j.value,
|
|
1208
|
-
head:
|
|
1209
|
-
body:
|
|
1209
|
+
head: ui.value.headers,
|
|
1210
|
+
body: ui.value.rows,
|
|
1210
1211
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1211
1212
|
caption: L.value.a11y.translations.tableCaption
|
|
1212
1213
|
}, null, 8, [
|
|
@@ -1216,14 +1217,14 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1216
1217
|
"notice",
|
|
1217
1218
|
"caption"
|
|
1218
1219
|
])) : g("", !0),
|
|
1219
|
-
L.value.userOptions.buttons.annotator ? (S(), h(E(
|
|
1220
|
+
L.value.userOptions.buttons.annotator ? (S(), h(E(Je), {
|
|
1220
1221
|
key: 1,
|
|
1221
1222
|
svgRef: E(z),
|
|
1222
1223
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1223
1224
|
color: L.value.style.chart.color,
|
|
1224
|
-
active:
|
|
1225
|
+
active: br.value,
|
|
1225
1226
|
isCursorPointer: R.value,
|
|
1226
|
-
onClose:
|
|
1227
|
+
onClose: xr
|
|
1227
1228
|
}, {
|
|
1228
1229
|
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1229
1230
|
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
@@ -1239,20 +1240,20 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1239
1240
|
"active",
|
|
1240
1241
|
"isCursorPointer"
|
|
1241
1242
|
])) : g("", !0),
|
|
1242
|
-
|
|
1243
|
+
mn.value ? (S(), _("div", {
|
|
1243
1244
|
key: 2,
|
|
1244
1245
|
ref_key: "noTitle",
|
|
1245
|
-
ref:
|
|
1246
|
+
ref: Bt,
|
|
1246
1247
|
class: "vue-data-ui-no-title-space",
|
|
1247
1248
|
style: "height:36px; width: 100%;background:transparent"
|
|
1248
1249
|
}, null, 512)) : g("", !0),
|
|
1249
1250
|
L.value.style.chart.title.text ? (S(), _("div", {
|
|
1250
1251
|
key: 3,
|
|
1251
1252
|
ref_key: "chartTitle",
|
|
1252
|
-
ref:
|
|
1253
|
+
ref: Lt,
|
|
1253
1254
|
style: x(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1254
1255
|
}, [(S(), h(me, {
|
|
1255
|
-
key: `title_${
|
|
1256
|
+
key: `title_${Vt.value}`,
|
|
1256
1257
|
config: {
|
|
1257
1258
|
title: {
|
|
1258
1259
|
cy: "treemap-div-title",
|
|
@@ -1264,15 +1265,15 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1264
1265
|
}
|
|
1265
1266
|
}
|
|
1266
1267
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1267
|
-
v("div", { id: `legend-top-${j.value}` }, null, 8,
|
|
1268
|
-
L.value.userOptions.show &&
|
|
1268
|
+
v("div", { id: `legend-top-${j.value}` }, null, 8, ot),
|
|
1269
|
+
L.value.userOptions.show && Mt.value && (E(cn) || E(on)) ? (S(), h(E(Qe), {
|
|
1269
1270
|
ref_key: "userOptionsRef",
|
|
1270
|
-
ref:
|
|
1271
|
-
key: `user_option_${
|
|
1271
|
+
ref: qt,
|
|
1272
|
+
key: `user_option_${It.value}`,
|
|
1272
1273
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1273
1274
|
color: L.value.style.chart.color,
|
|
1274
|
-
isPrinting: E(
|
|
1275
|
-
isImaging: E(
|
|
1275
|
+
isPrinting: E(un),
|
|
1276
|
+
isImaging: E(dn),
|
|
1276
1277
|
uid: j.value,
|
|
1277
1278
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
1278
1279
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1288,25 +1289,25 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1288
1289
|
chartElement: P.value,
|
|
1289
1290
|
position: L.value.userOptions.position,
|
|
1290
1291
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1291
|
-
isAnnotation:
|
|
1292
|
+
isAnnotation: br.value,
|
|
1292
1293
|
callbacks: L.value.userOptions.callbacks,
|
|
1293
1294
|
printScale: L.value.userOptions.print.scale,
|
|
1294
1295
|
tableDialog: L.value.table.useDialog,
|
|
1295
1296
|
isCursorPointer: R.value,
|
|
1296
1297
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1297
1298
|
isZoom: B.value.showZoom,
|
|
1298
|
-
onToggleFullscreen:
|
|
1299
|
-
onGeneratePdf: E(
|
|
1300
|
-
onGenerateCsv:
|
|
1301
|
-
onGenerateImage:
|
|
1302
|
-
onGenerateSvg:
|
|
1303
|
-
onToggleTable:
|
|
1304
|
-
onToggleTooltip:
|
|
1305
|
-
onToggleAnnotator:
|
|
1306
|
-
onToggleZoom:
|
|
1307
|
-
onCopyAlt:
|
|
1308
|
-
style: x({ visibility: E(
|
|
1309
|
-
},
|
|
1299
|
+
onToggleFullscreen: Jn,
|
|
1300
|
+
onGeneratePdf: E(fn),
|
|
1301
|
+
onGenerateCsv: mr,
|
|
1302
|
+
onGenerateImage: Gr,
|
|
1303
|
+
onGenerateSvg: Wr,
|
|
1304
|
+
onToggleTable: _r,
|
|
1305
|
+
onToggleTooltip: vr,
|
|
1306
|
+
onToggleAnnotator: xr,
|
|
1307
|
+
onToggleZoom: yr,
|
|
1308
|
+
onCopyAlt: ai,
|
|
1309
|
+
style: x({ visibility: E(cn) ? E(on) ? "visible" : "hidden" : "visible" })
|
|
1310
|
+
}, ke({ _: 2 }, [
|
|
1310
1311
|
e.$slots.menuIcon ? {
|
|
1311
1312
|
name: "menuIcon",
|
|
1312
1313
|
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(y({
|
|
@@ -1390,92 +1391,96 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1390
1391
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1391
1392
|
"data-dom-to-png-ignore": "",
|
|
1392
1393
|
ref_key: "breadcrumbsNav",
|
|
1393
|
-
ref:
|
|
1394
|
-
}, [(S(!0), _(p, null,
|
|
1394
|
+
ref: Wt
|
|
1395
|
+
}, [(S(!0), _(p, null, Re(X.value, (n, r) => (S(), _("span", {
|
|
1395
1396
|
role: "button",
|
|
1396
1397
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1397
1398
|
key: n.id || "root",
|
|
1398
|
-
onClick: (e) => r === X.value.length - 1 ? () => {} :
|
|
1399
|
-
onKeydown: [
|
|
1399
|
+
onClick: (e) => r === X.value.length - 1 ? () => {} : tr(n.node),
|
|
1400
|
+
onKeydown: [We(Ge((e) => r === X.value.length - 1 ? void 0 : tr(n.node), ["prevent"]), ["enter"]), We(Ge((e) => r === X.value.length - 1 ? void 0 : tr(n.node), ["prevent"]), ["space"])],
|
|
1400
1401
|
class: "vue-ui-treemap-crumb",
|
|
1401
1402
|
"data-last-crumb": r === X.value.length - 1,
|
|
1402
1403
|
style: x({
|
|
1403
1404
|
color: L.value.style.chart.color,
|
|
1404
1405
|
cursor: R.value ? "pointer" : "default"
|
|
1405
1406
|
}),
|
|
1406
|
-
onMouseenter: (e) =>
|
|
1407
|
-
onMouseleave:
|
|
1408
|
-
onFocus: (e) =>
|
|
1409
|
-
onBlur:
|
|
1410
|
-
}, [v("span",
|
|
1407
|
+
onMouseenter: (e) => Pr(r),
|
|
1408
|
+
onMouseleave: Fr,
|
|
1409
|
+
onFocus: (e) => Pr(r),
|
|
1410
|
+
onBlur: Fr
|
|
1411
|
+
}, [v("span", ct, [v("span", lt, [w(e.$slots, "breadcrumb-label", Ne({ ref_for: !0 }, {
|
|
1411
1412
|
crumb: n,
|
|
1412
1413
|
isRoot: r === 0,
|
|
1413
|
-
isFocus:
|
|
1414
|
-
}), () => [r === 0 ? (S(), _("div",
|
|
1415
|
-
name:
|
|
1414
|
+
isFocus: Nr.value === r
|
|
1415
|
+
}), () => [r === 0 ? (S(), _("div", ut, [je(ve, {
|
|
1416
|
+
name: Nr.value === 0 ? "homeFilled" : "home",
|
|
1416
1417
|
stroke: L.value.style.chart.color
|
|
1417
|
-
}, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [
|
|
1418
|
-
v("div",
|
|
1418
|
+
}, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [Ae(Be(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (S(), _("span", dt, [w(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Ae(" › ", -1)], !0)])) : g("", !0)])], 44, st))), 128))], 512)) : g("", !0),
|
|
1419
|
+
v("div", ft, [
|
|
1419
1420
|
(S(), _("svg", {
|
|
1420
1421
|
ref_key: "svgRef",
|
|
1421
1422
|
ref: z,
|
|
1422
1423
|
xmlns: E(ie),
|
|
1423
1424
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1424
|
-
class:
|
|
1425
|
+
class: Fe({
|
|
1425
1426
|
"vue-data-ui-fullscreen--on": M.value,
|
|
1426
1427
|
"vue-data-ui-fulscreen--off": !M.value,
|
|
1427
|
-
"vue-data-ui-zoom-plus": !
|
|
1428
|
-
"vue-data-ui-zoom-minus":
|
|
1429
|
-
"no-transition": E(
|
|
1430
|
-
loading: E(
|
|
1428
|
+
"vue-data-ui-zoom-plus": !Xn.value,
|
|
1429
|
+
"vue-data-ui-zoom-minus": Xn.value,
|
|
1430
|
+
"no-transition": E(jt),
|
|
1431
|
+
loading: E(nn)
|
|
1431
1432
|
}),
|
|
1432
1433
|
viewBox: `${E($).x} ${E($).y} ${E($).width <= 0 ? 10 : E($).width} ${E($).height <= 0 ? 10 : E($).height}`,
|
|
1433
|
-
style: x(`max-width:100%; overflow:${
|
|
1434
|
+
style: x(`max-width:100%; overflow:${Or.value ? "hidden" : "visible"}; background:transparent;color:${L.value.style.chart.color}`),
|
|
1434
1435
|
tabindex: "0",
|
|
1435
|
-
onFocus:
|
|
1436
|
-
onBlur:
|
|
1437
|
-
onKeydown:
|
|
1438
|
-
onPointerdown:
|
|
1439
|
-
onPointermove:
|
|
1440
|
-
onPointerup:
|
|
1441
|
-
onPointercancel:
|
|
1442
|
-
onPointerleave:
|
|
1436
|
+
onFocus: oi,
|
|
1437
|
+
onBlur: si,
|
|
1438
|
+
onKeydown: ci,
|
|
1439
|
+
onPointerdown: kr,
|
|
1440
|
+
onPointermove: Ar,
|
|
1441
|
+
onPointerup: jr,
|
|
1442
|
+
onPointercancel: jr,
|
|
1443
|
+
onPointerleave: jr
|
|
1443
1444
|
}, [
|
|
1444
|
-
|
|
1445
|
-
(S(!0), _(p, null,
|
|
1445
|
+
je(E($e)),
|
|
1446
|
+
(S(!0), _(p, null, Re(G.value, (e, t) => (S(), _("g", { key: `tgrad_${e.id}` }, [L.value.style.chart.layout.rects.gradient.show ? (S(), _("defs", mt, [je(ye, {
|
|
1447
|
+
t: "radial",
|
|
1446
1448
|
id: `tgrad_${e.id}`,
|
|
1447
|
-
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1449
|
+
gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
|
|
1450
|
+
stops: [[
|
|
1451
|
+
"18%",
|
|
1452
|
+
e.color,
|
|
1453
|
+
1
|
|
1454
|
+
], [
|
|
1455
|
+
"100%",
|
|
1456
|
+
E(n)(e.color, L.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1457
|
+
1
|
|
1458
|
+
]]
|
|
1459
|
+
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
1455
1460
|
v("g", null, [
|
|
1456
|
-
(S(!0), _(p, null,
|
|
1461
|
+
(S(!0), _(p, null, Re(G.value, (e, t) => (S(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
|
|
1457
1462
|
x: e.x0,
|
|
1458
1463
|
y: e.y0,
|
|
1459
1464
|
height: K(e),
|
|
1460
1465
|
width: q(e),
|
|
1461
|
-
fill:
|
|
1462
|
-
rx:
|
|
1466
|
+
fill: Nt.value ? e.color ?? L.value.style.chart.backgroundColor : L.value.style.chart.layout.rects.gradient.show ? ar.value ? L.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? L.value.style.chart.backgroundColor,
|
|
1467
|
+
rx: ii(e),
|
|
1463
1468
|
stroke: Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.stroke : L.value.style.chart.layout.rects.stroke,
|
|
1464
1469
|
"stroke-width": Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.strokeWidth : L.value.style.chart.layout.rects.strokeWidth,
|
|
1465
|
-
onClick:
|
|
1466
|
-
onMouseenter: () =>
|
|
1470
|
+
onClick: Ge((n) => Mr(e, t), ["stop"]),
|
|
1471
|
+
onMouseenter: () => pr({
|
|
1467
1472
|
datapoint: e,
|
|
1468
1473
|
seriesIndex: t,
|
|
1469
1474
|
triggerMode: "pointer"
|
|
1470
1475
|
}),
|
|
1471
|
-
onMouseleave: (n) =>
|
|
1476
|
+
onMouseleave: (n) => dr({
|
|
1472
1477
|
datapoint: e,
|
|
1473
1478
|
seriesIndex: t
|
|
1474
1479
|
}),
|
|
1475
1480
|
style: x(`opacity:${Z.value ? Z.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1476
|
-
class:
|
|
1477
|
-
}, null, 46,
|
|
1478
|
-
(S(!0), _(p, null,
|
|
1481
|
+
class: Fe(["vue-ui-treemap-rect", nr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"])
|
|
1482
|
+
}, null, 46, ht)]))), 128)),
|
|
1483
|
+
(S(!0), _(p, null, Re(Qr.value, (e) => (S(), _("g", {
|
|
1479
1484
|
key: e.key,
|
|
1480
1485
|
style: { "pointer-events": "none" }
|
|
1481
1486
|
}, [v("defs", null, [v("clipPath", {
|
|
@@ -1487,7 +1492,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1487
1492
|
y: e.clipY,
|
|
1488
1493
|
width: e.clipWidth,
|
|
1489
1494
|
height: e.clipHeight
|
|
1490
|
-
}, null, 8,
|
|
1495
|
+
}, null, 8, _t)], 8, gt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [(S(!0), _(p, null, Re(e.lines, (e) => (S(), _("text", {
|
|
1491
1496
|
key: e.key,
|
|
1492
1497
|
class: "vue-ui-treemap-data-label",
|
|
1493
1498
|
transform: `translate(${e.x}, ${e.y})`,
|
|
@@ -1497,8 +1502,8 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1497
1502
|
"font-weight": e.fontWeight,
|
|
1498
1503
|
"text-anchor": "start",
|
|
1499
1504
|
"dominant-baseline": "text-before-edge"
|
|
1500
|
-
},
|
|
1501
|
-
e.$slots.rect ? (S(), _("g",
|
|
1505
|
+
}, Be(e.text), 9, yt))), 128))], 8, vt)]))), 128)),
|
|
1506
|
+
e.$slots.rect ? (S(), _("g", bt, [(S(!0), _(p, null, Re(G.value, (t, n) => (S(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(S(), _("foreignObject", {
|
|
1502
1507
|
x: t.x0,
|
|
1503
1508
|
y: t.y0,
|
|
1504
1509
|
height: K(t),
|
|
@@ -1508,7 +1513,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1508
1513
|
"pointer-events": "none",
|
|
1509
1514
|
overflow: "hidden"
|
|
1510
1515
|
}
|
|
1511
|
-
}, [v("div",
|
|
1516
|
+
}, [v("div", St, [E(nn) ? g("", !0) : w(e.$slots, "rect", Ne({
|
|
1512
1517
|
key: 0,
|
|
1513
1518
|
ref_for: !0
|
|
1514
1519
|
}, {
|
|
@@ -1518,22 +1523,22 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1518
1523
|
width: q(t),
|
|
1519
1524
|
isSelected: Z.value ? Z.value.id === t.id : !0
|
|
1520
1525
|
},
|
|
1521
|
-
shouldShow:
|
|
1522
|
-
fontSize:
|
|
1523
|
-
isZoom:
|
|
1526
|
+
shouldShow: Ln(t) || Xn.value,
|
|
1527
|
+
fontSize: qn(t, n),
|
|
1528
|
+
isZoom: Xn.value,
|
|
1524
1529
|
textColor: E(re)(t.color)
|
|
1525
|
-
}), void 0, !0)])], 8,
|
|
1530
|
+
}), void 0, !0)])], 8, xt))]))), 128))])) : g("", !0)
|
|
1526
1531
|
]),
|
|
1527
1532
|
w(e.$slots, "svg", b(y({
|
|
1528
1533
|
svg: V.value,
|
|
1529
|
-
isZoom:
|
|
1534
|
+
isZoom: Xn.value,
|
|
1530
1535
|
rect: Z.value,
|
|
1531
1536
|
config: L.value,
|
|
1532
|
-
isPrintingImg: E(
|
|
1533
|
-
isPrintingSvg:
|
|
1537
|
+
isPrintingImg: E(un) || E(dn) || Xt.value,
|
|
1538
|
+
isPrintingSvg: Zt.value
|
|
1534
1539
|
})), void 0, !0)
|
|
1535
|
-
], 46,
|
|
1536
|
-
E(
|
|
1540
|
+
], 46, pt)),
|
|
1541
|
+
E(Er) ? (S(), _("div", Ct, [w(e.$slots, "reset-action", { reset: E(Tr) }, () => [v("button", {
|
|
1537
1542
|
"data-cy-reset": "",
|
|
1538
1543
|
tabindex: "0",
|
|
1539
1544
|
role: "button",
|
|
@@ -1542,45 +1547,45 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1542
1547
|
background: L.value.style.chart.backgroundColor,
|
|
1543
1548
|
cursor: R.value ? "pointer" : "default"
|
|
1544
1549
|
}),
|
|
1545
|
-
onClick: t[0] ||= (e) => E(
|
|
1546
|
-
}, [
|
|
1550
|
+
onClick: t[0] ||= (e) => E(Tr)(!0)
|
|
1551
|
+
}, [je(ve, {
|
|
1547
1552
|
name: "refresh",
|
|
1548
1553
|
stroke: L.value.style.chart.color
|
|
1549
1554
|
}, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
|
|
1550
|
-
e.$slots.hint ? (S(), _("div",
|
|
1555
|
+
e.$slots.hint ? (S(), _("div", wt, [w(e.$slots, "hint", b(y({
|
|
1551
1556
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1552
|
-
isVisible:
|
|
1557
|
+
isVisible: en.value
|
|
1553
1558
|
})), void 0, !0)])) : g("", !0)
|
|
1554
1559
|
]),
|
|
1555
|
-
e.$slots.watermark ? (S(), _("div",
|
|
1556
|
-
v("div", { id: `legend-bottom-${j.value}` }, null, 8,
|
|
1557
|
-
|
|
1560
|
+
e.$slots.watermark ? (S(), _("div", Tt, [w(e.$slots, "watermark", b(y({ isPrinting: E(un) || E(dn) || Xt.value || Zt.value })), void 0, !0)])) : g("", !0),
|
|
1561
|
+
v("div", { id: `legend-bottom-${j.value}` }, null, 8, Et),
|
|
1562
|
+
Gt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Oe, {
|
|
1558
1563
|
key: 7,
|
|
1559
1564
|
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1560
1565
|
}, [v("div", {
|
|
1561
1566
|
ref_key: "chartLegend",
|
|
1562
|
-
ref:
|
|
1563
|
-
}, [w(e.$slots, "legend", { legend:
|
|
1564
|
-
key: `legend_${
|
|
1565
|
-
legendSet:
|
|
1566
|
-
config:
|
|
1567
|
+
ref: Rt
|
|
1568
|
+
}, [w(e.$slots, "legend", { legend: rr.value }, () => [L.value.style.chart.legend.show ? (S(), h(we, {
|
|
1569
|
+
key: `legend_${Ut.value}`,
|
|
1570
|
+
legendSet: rr.value,
|
|
1571
|
+
config: ir.value,
|
|
1567
1572
|
id: `treemap_legend_${j.value}`,
|
|
1568
1573
|
isCursorPointer: R.value,
|
|
1569
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1574
|
+
onClickMarker: t[1] ||= ({ legend: e }) => sr(e)
|
|
1570
1575
|
}, {
|
|
1571
|
-
item: O(({ legend: e, index: t }) => [E(
|
|
1576
|
+
item: O(({ legend: e, index: t }) => [E(nn) ? g("", !0) : (S(), _("div", {
|
|
1572
1577
|
key: 0,
|
|
1573
|
-
onClick: (t) =>
|
|
1578
|
+
onClick: (t) => sr(e),
|
|
1574
1579
|
style: x(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
1575
|
-
},
|
|
1576
|
-
legendToggle: O(() => [
|
|
1580
|
+
}, Be(e.display), 13, Dt))]),
|
|
1581
|
+
legendToggle: O(() => [rr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(nn) ? (S(), h(be, {
|
|
1577
1582
|
key: 0,
|
|
1578
1583
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1579
1584
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1580
1585
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
1581
1586
|
checked: N.value.length > 0,
|
|
1582
1587
|
isCursorPointer: R.value,
|
|
1583
|
-
onToggle:
|
|
1588
|
+
onToggle: or
|
|
1584
1589
|
}, null, 8, [
|
|
1585
1590
|
"backgroundColor",
|
|
1586
1591
|
"color",
|
|
@@ -1598,12 +1603,12 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1598
1603
|
e.$slots.source ? (S(), _("div", {
|
|
1599
1604
|
key: 8,
|
|
1600
1605
|
ref_key: "source",
|
|
1601
|
-
ref:
|
|
1606
|
+
ref: zt,
|
|
1602
1607
|
dir: "auto"
|
|
1603
1608
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1604
|
-
|
|
1609
|
+
je(E(Ze), {
|
|
1605
1610
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1606
|
-
show: B.value.showTooltip &&
|
|
1611
|
+
show: B.value.showTooltip && Pt.value,
|
|
1607
1612
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1608
1613
|
color: L.value.style.chart.tooltip.color,
|
|
1609
1614
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1615,19 +1620,19 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1615
1620
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1616
1621
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1617
1622
|
parent: P.value,
|
|
1618
|
-
content:
|
|
1623
|
+
content: Ft.value,
|
|
1619
1624
|
isFullscreen: M.value,
|
|
1620
1625
|
isCustom: E(ae)(L.value.style.chart.tooltip.customFormat),
|
|
1621
1626
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
1622
1627
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1623
1628
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1624
1629
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1625
|
-
isA11yMode:
|
|
1626
|
-
a11yPosition:
|
|
1630
|
+
isA11yMode: $t.value === "keyboard",
|
|
1631
|
+
a11yPosition: Qt.value
|
|
1627
1632
|
}, {
|
|
1628
|
-
"tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...
|
|
1629
|
-
tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...
|
|
1630
|
-
"tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...
|
|
1633
|
+
"tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...fr.value })), void 0, !0)]),
|
|
1634
|
+
tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...fr.value })), void 0, !0)]),
|
|
1635
|
+
"tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...fr.value })), void 0, !0)]),
|
|
1631
1636
|
_: 3
|
|
1632
1637
|
}, 8, [
|
|
1633
1638
|
"teleportTo",
|
|
@@ -1653,21 +1658,21 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1653
1658
|
"isA11yMode",
|
|
1654
1659
|
"a11yPosition"
|
|
1655
1660
|
]),
|
|
1656
|
-
|
|
1661
|
+
Mt.value && L.value.userOptions.buttons.table ? (S(), h(ze(Lr.value.component), Ne({ key: 9 }, Lr.value.props, {
|
|
1657
1662
|
ref_key: "tableUnit",
|
|
1658
|
-
ref:
|
|
1659
|
-
onClose:
|
|
1660
|
-
}),
|
|
1661
|
-
content: O(() => [(S(), h(E(
|
|
1662
|
-
key: `table_${
|
|
1663
|
-
colNames:
|
|
1664
|
-
head:
|
|
1665
|
-
body:
|
|
1666
|
-
config:
|
|
1667
|
-
title: L.value.table.useDialog ? "" :
|
|
1663
|
+
ref: Kt,
|
|
1664
|
+
onClose: Rr
|
|
1665
|
+
}), ke({
|
|
1666
|
+
content: O(() => [(S(), h(E(qe), {
|
|
1667
|
+
key: `table_${Ht.value}`,
|
|
1668
|
+
colNames: hr.value.colNames,
|
|
1669
|
+
head: hr.value.head,
|
|
1670
|
+
body: hr.value.body,
|
|
1671
|
+
config: hr.value.config,
|
|
1672
|
+
title: L.value.table.useDialog ? "" : Lr.value.title,
|
|
1668
1673
|
withCloseButton: !L.value.table.useDialog,
|
|
1669
1674
|
isCursorPointer: R.value,
|
|
1670
|
-
onClose:
|
|
1675
|
+
onClose: Rr
|
|
1671
1676
|
}, {
|
|
1672
1677
|
th: O(({ th: e }) => [v("div", {
|
|
1673
1678
|
innerHTML: e,
|
|
@@ -1675,8 +1680,8 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1675
1680
|
display: "flex",
|
|
1676
1681
|
"align-items": "center"
|
|
1677
1682
|
}
|
|
1678
|
-
}, null, 8,
|
|
1679
|
-
td: O(({ td: e }) => [
|
|
1683
|
+
}, null, 8, Ot)]),
|
|
1684
|
+
td: O(({ td: e }) => [Ae(Be(e.name || e), 1)]),
|
|
1680
1685
|
_: 1
|
|
1681
1686
|
}, 8, [
|
|
1682
1687
|
"colNames",
|
|
@@ -1690,24 +1695,24 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1690
1695
|
_: 2
|
|
1691
1696
|
}, [L.value.table.useDialog ? {
|
|
1692
1697
|
name: "title",
|
|
1693
|
-
fn: O(() => [
|
|
1698
|
+
fn: O(() => [Ae(Be(Lr.value.title), 1)]),
|
|
1694
1699
|
key: "0"
|
|
1695
1700
|
} : void 0, L.value.table.useDialog ? {
|
|
1696
1701
|
name: "actions",
|
|
1697
1702
|
fn: O(() => [v("button", {
|
|
1698
1703
|
tabindex: "0",
|
|
1699
1704
|
class: "vue-ui-user-options-button",
|
|
1700
|
-
onClick: t[2] ||= (e) =>
|
|
1705
|
+
onClick: t[2] ||= (e) => mr(L.value.userOptions.callbacks.csv),
|
|
1701
1706
|
style: x({ cursor: R.value ? "pointer" : "default" })
|
|
1702
|
-
}, [
|
|
1707
|
+
}, [je(ve, {
|
|
1703
1708
|
name: "fileCsv",
|
|
1704
|
-
stroke:
|
|
1709
|
+
stroke: Lr.value.props.color
|
|
1705
1710
|
}, null, 8, ["stroke"])], 4)]),
|
|
1706
1711
|
key: "1"
|
|
1707
1712
|
} : void 0]), 1040)) : g("", !0),
|
|
1708
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
1709
|
-
], 46,
|
|
1713
|
+
w(e.$slots, "skeleton", {}, () => [E(nn) ? (S(), h(le, { key: 0 })) : g("", !0)], !0)
|
|
1714
|
+
], 46, it));
|
|
1710
1715
|
}
|
|
1711
|
-
}, [["__scopeId", "data-v-
|
|
1716
|
+
}, [["__scopeId", "data-v-a81c7c10"]]);
|
|
1712
1717
|
//#endregion
|
|
1713
|
-
export { A as n,
|
|
1718
|
+
export { A as n, At as t };
|