vue-data-ui 3.22.8 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.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-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { c as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
2
|
+
import { At as t, C as n, Dt as r, E as i, Gt as a, K as o, Nt as s, Q as c, X as l, Y as u, bt as d, et as f, i as ee, qt as te, r as ne, st as re, t as ie, x as p } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as ae } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as oe } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as le } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ue } from "./useNestedProp-D8NuRneO.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as fe } from "./img-CNdXiUfZ.js";
|
|
10
|
+
import { n as pe } from "./Title-Cr3jP7Qd.js";
|
|
11
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as he } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as ge } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as _e } from "./BaseIcon-CDTIUIKV.js";
|
|
15
|
+
import { t as ve } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as ye } from "./BaseLegendToggle-BrQ2OlzI.js";
|
|
16
17
|
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
17
18
|
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
19
|
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Ce } from "./Legend-
|
|
20
|
+
import { t as Ce } from "./Legend-5VQGLnmx.js";
|
|
20
21
|
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
21
22
|
import { t as Te } from "./usePanZoom-CYU3B4T3.js";
|
|
22
23
|
import { t as Ee } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
23
|
-
import { Fragment as
|
|
24
|
+
import { Fragment as De, 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 y, guardReactiveProps as b, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Fe, onMounted as Ie, openBlock as C, ref as w, renderList as Le, renderSlot as T, resolveDynamicComponent as Re, shallowRef as E, toDisplayString as ze, toRefs as Be, unref as D, useCssVars as Ve, useSlots as He, watch as O, withCtx as k, withKeys as Ue, withModifiers as We } from "vue";
|
|
24
25
|
//#region src/treemap.js
|
|
25
26
|
function Ge(e, t) {
|
|
26
27
|
let n = e.length;
|
|
@@ -126,7 +127,7 @@ function tt(e, t, n, r) {
|
|
|
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 =
|
|
130
|
+
let n = A(o, t), r = Ze(a, o), c = s.concat(r);
|
|
130
131
|
i = i, a = [], o = n, s = c;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
@@ -139,7 +140,7 @@ function nt(e) {
|
|
|
139
140
|
return Je(r);
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function A(e, t) {
|
|
143
144
|
let { width: n, height: r, xOffset: i, yOffset: a } = et(e);
|
|
144
145
|
if (n >= r) {
|
|
145
146
|
let e = t / r, o = n - e;
|
|
@@ -161,28 +162,28 @@ function k(e, t) {
|
|
|
161
162
|
}
|
|
162
163
|
//#endregion
|
|
163
164
|
//#region src/components/vue-ui-treemap.vue
|
|
164
|
-
var
|
|
165
|
+
var rt = /* @__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__*/ me({
|
|
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:
|
|
259
|
-
Ve((e) => ({
|
|
260
|
-
let Ke =
|
|
259
|
+
setup(e, { expose: me, emit: Ge }) {
|
|
260
|
+
Ve((e) => ({ v191a094c: di.value }));
|
|
261
|
+
let Ke = y(() => import("./DataTable-ByZy5gt1.js")), qe = y(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Je = y(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Xe = y(() => import("./Tooltip-CDbLl3TD.js")), Ze = y(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Qe = y(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), $e = y(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_treemap: et } = ae(), { isThemeValid: tt, warnInvalidTheme: nt } = de(), A = e, rt = Ge, At = He(), jt = we();
|
|
261
262
|
Ie(() => {
|
|
262
|
-
|
|
263
|
+
At["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
263
264
|
});
|
|
264
|
-
let
|
|
265
|
+
let Mt = m(() => !!A.dataset && A.dataset.length), Nt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = w(o()), Pt = w(!1), Ft = w(""), M = w(!1), It = w(0), N = w([]), P = E(null), Lt = E(null), Rt = E(null), zt = E(null), Bt = E(null), Vt = w(0), Ht = w(0), Ut = w(0), F = w([]), Wt = w(null), Gt = w(!1), Kt = w(null), qt = w(null), Jt = w(null), Yt = w(/* @__PURE__ */ new Map()), Xt = w(!1), Zt = w(!1), I = w(null), Qt = w({
|
|
265
266
|
x: 0,
|
|
266
267
|
y: 0
|
|
267
|
-
}),
|
|
268
|
+
}), $t = w("pointer"), en = w(!1), L = w(ln()), R = m(() => L.value.userOptions.useCursorPointer), tn = m(() => te({
|
|
268
269
|
defaultConfig: {
|
|
269
270
|
userOptions: { show: !1 },
|
|
270
271
|
style: { chart: {
|
|
@@ -277,11 +278,11 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
277
278
|
} }
|
|
278
279
|
},
|
|
279
280
|
userConfig: L.value.skeletonConfig ?? {}
|
|
280
|
-
})), { loading:
|
|
281
|
-
...Be(
|
|
281
|
+
})), { loading: nn, FINAL_DATASET: rn, manualLoading: an } = se({
|
|
282
|
+
...Be(A),
|
|
282
283
|
FINAL_CONFIG: L,
|
|
283
|
-
prepareConfig:
|
|
284
|
-
skeletonDataset:
|
|
284
|
+
prepareConfig: ln,
|
|
285
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
285
286
|
name: "_",
|
|
286
287
|
value: 53,
|
|
287
288
|
color: "#CACACA90",
|
|
@@ -316,64 +317,64 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
316
317
|
}
|
|
317
318
|
]
|
|
318
319
|
}],
|
|
319
|
-
skeletonConfig:
|
|
320
|
+
skeletonConfig: te({
|
|
320
321
|
defaultConfig: L.value,
|
|
321
|
-
userConfig:
|
|
322
|
+
userConfig: tn.value
|
|
322
323
|
})
|
|
323
|
-
}), { userOptionsVisible:
|
|
324
|
-
function
|
|
325
|
-
let e =
|
|
326
|
-
userConfig:
|
|
324
|
+
}), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = xe({ config: L.value }), { svgRef: z } = Se({ config: L.value.style.chart.title });
|
|
325
|
+
function ln() {
|
|
326
|
+
let e = ue({
|
|
327
|
+
userConfig: A.config,
|
|
327
328
|
defaultConfig: et
|
|
328
329
|
}), t = e.theme;
|
|
329
330
|
if (!t) return e;
|
|
330
331
|
if (!tt.value(e)) return nt(e), e;
|
|
331
|
-
let n =
|
|
332
|
-
userConfig: Ee[t] ||
|
|
332
|
+
let n = ue({
|
|
333
|
+
userConfig: Ee[t] || A.config,
|
|
333
334
|
defaultConfig: e
|
|
334
|
-
}), r =
|
|
335
|
-
userConfig:
|
|
335
|
+
}), r = ue({
|
|
336
|
+
userConfig: A.config,
|
|
336
337
|
defaultConfig: n
|
|
337
338
|
});
|
|
338
339
|
return {
|
|
339
340
|
...r,
|
|
340
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
341
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
341
342
|
};
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
O(() => A.config, (e) => {
|
|
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 } = oe({
|
|
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(() => n(L.value.customPalette)), B = w({
|
|
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
|
|
354
355
|
});
|
|
355
|
-
|
|
356
|
+
O(L, () => {
|
|
356
357
|
B.value = {
|
|
357
358
|
showTable: L.value.table.show,
|
|
358
359
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
359
360
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
360
361
|
};
|
|
361
362
|
}, { immediate: !0 });
|
|
362
|
-
let
|
|
363
|
+
let gn = w({
|
|
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 =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}, { deep: !0 }),
|
|
392
|
-
|
|
393
|
-
}, { deep: !0 }),
|
|
394
|
-
|
|
389
|
+
}), H = w(l(rn.value)), U = w(H.value), yn = E(/* @__PURE__ */ new Map());
|
|
390
|
+
O([H, () => L.value], () => {
|
|
391
|
+
Jt.value = null, Yt.value = /* @__PURE__ */ new Map();
|
|
392
|
+
}, { deep: !0 }), O(() => N.value, () => {
|
|
393
|
+
Jt.value = null, Yt.value = /* @__PURE__ */ new Map(), Cn(), Ut.value += 1, Ht.value += 1;
|
|
394
|
+
}, { deep: !0 }), O([() => 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
|
-
e.id ||=
|
|
399
|
-
let n = e.sourceColor ||
|
|
400
|
-
n =
|
|
399
|
+
e.id ||= o(), e.sourceColor === void 0 && (e.sourceColor = p(e.color) || null);
|
|
400
|
+
let n = e.sourceColor || yn.value.get(e.id) || hn.value[t] || s[t] || s[t % s.length];
|
|
401
|
+
n = p(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
|
-
n.id ||=
|
|
406
|
-
let
|
|
407
|
-
n.color =
|
|
406
|
+
n.id ||= o(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = p(n.color) || null);
|
|
407
|
+
let r = n.sourceColor || t;
|
|
408
|
+
n.color = r, xn(n, r);
|
|
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
|
-
|
|
434
|
-
H.value =
|
|
434
|
+
O(() => rn.value, () => {
|
|
435
|
+
H.value = l(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 =
|
|
441
|
+
let W = E(null), wn = E(null);
|
|
441
442
|
Ie(() => {
|
|
442
|
-
|
|
443
|
+
Gt.value = !0, En();
|
|
443
444
|
});
|
|
444
|
-
let
|
|
445
|
-
function
|
|
446
|
-
if (
|
|
445
|
+
let Tn = m(() => L.value.debug);
|
|
446
|
+
function En() {
|
|
447
|
+
if (t(A.dataset) && f({
|
|
447
448
|
componentName: "VueUiTreemap",
|
|
448
449
|
type: "dataset",
|
|
449
|
-
debug:
|
|
450
|
-
}),
|
|
451
|
-
let e =
|
|
452
|
-
let { width: e, height: t } =
|
|
450
|
+
debug: Tn.value
|
|
451
|
+
}), bn(H.value), t(A.dataset) || (an.value = L.value.loading), L.value.responsive) {
|
|
452
|
+
let e = he(() => {
|
|
453
|
+
let { width: e, height: t } = ge({
|
|
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
|
Fe(() => {
|
|
467
|
-
W.value && (
|
|
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:
|
|
472
|
-
})).filter((e) => !N.value.includes(e.id))),
|
|
472
|
+
color: p(e.color) || hn.value[t] || s[t] || s[t % s.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 -
|
|
486
|
-
return
|
|
485
|
+
function jn(e, t, n) {
|
|
486
|
+
let i = L.value.style.chart.layout.rects.colorRatio - An(t, n);
|
|
487
|
+
return r(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
|
|
500
|
+
function Pn(e, t, n, r, i) {
|
|
501
|
+
return Nn(e).map((e, a) => {
|
|
502
|
+
let o = e.sourceColor || p(e.color) || p(t) || hn.value[a] || s[a] || s[a % s.length], c = e.sourceColor ? e.sourceColor : jn(o, 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, o, 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,14 +519,14 @@ 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;
|
|
@@ -539,28 +540,28 @@ 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
|
|
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 r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || p(e.color) || yn.value.get(e.id) || hn.value[n] || s[n] || s[n % s.length], l = e.sourceColor ? e.sourceColor : jn(c, e, t);
|
|
555
556
|
return {
|
|
556
|
-
...
|
|
557
|
-
id: e.id ||
|
|
557
|
+
...a,
|
|
558
|
+
id: e.id || o(),
|
|
558
559
|
parentId: e.parentId ?? null,
|
|
559
560
|
name: e.name,
|
|
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, r || 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,8 +600,8 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
599
600
|
lineHeight: i
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
return ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
603
|
+
function Un(e, t) {
|
|
604
|
+
return ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
604
605
|
p: L.value.style.chart.layout.labels.prefix,
|
|
605
606
|
v: e.value,
|
|
606
607
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -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
|
|
666
|
-
U.value = H.value.slice(), F.value = [],
|
|
665
|
+
let Xn = m(() => F.value.length > 0);
|
|
666
|
+
function Zn() {
|
|
667
|
+
U.value = H.value.slice(), F.value = [], rt("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
|
+
}), rt("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
|
+
}), rt("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 =
|
|
734
|
+
}), Z = E(null), rr = m(() => H.value.map((e, t) => ({
|
|
734
735
|
...e,
|
|
735
|
-
color:
|
|
736
|
+
color: p(e.color) || hn.value[t] || s[t] || s[t % s.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,75 +741,75 @@ 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
|
-
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,
|
|
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, u({
|
|
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
|
+
}), rt("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
-
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length <
|
|
766
|
+
function sr(e) {
|
|
767
|
+
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length < A.dataset.length - 1 && N.value.push(e.id), rt("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 = w(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
|
-
if (
|
|
799
|
+
if (d(r) && re(() => 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 {
|
|
810
811
|
let n = "";
|
|
811
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
812
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
812
813
|
p: L.value.style.chart.layout.labels.prefix,
|
|
813
814
|
v: e.value,
|
|
814
815
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -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,13 +828,13 @@ 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
|
+
function mr(e = null) {
|
|
831
832
|
Ne(() => {
|
|
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
|
-
]), n =
|
|
836
|
+
[isNaN(Q.value.body[t] / On.value) ? "-" : Q.value.body[t] / On.value * 100]
|
|
837
|
+
]), n = i([
|
|
837
838
|
[L.value.style.chart.title.text],
|
|
838
839
|
[L.value.style.chart.title.subtitle.text],
|
|
839
840
|
[
|
|
@@ -842,19 +843,19 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
842
843
|
["%"]
|
|
843
844
|
]
|
|
844
845
|
].concat(t));
|
|
845
|
-
e ? e(n) :
|
|
846
|
+
e ? e(n) : c({
|
|
846
847
|
csvContent: n,
|
|
847
848
|
title: L.value.style.chart.title.text || "vue-ui-treemap"
|
|
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,
|
|
855
856
|
L.value.table.columnNames.percentage
|
|
856
857
|
], t = Q.value.head.map((e, t) => {
|
|
857
|
-
let n = ee(L.value.style.chart.layout.labels.formatter, Q.value.body[t],
|
|
858
|
+
let n = ee(L.value.style.chart.layout.labels.formatter, Q.value.body[t], u({
|
|
858
859
|
p: L.value.style.chart.layout.labels.prefix,
|
|
859
860
|
v: Q.value.body[t],
|
|
860
861
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -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) ? "-" : u({
|
|
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 = w(!1);
|
|
910
|
+
function xr() {
|
|
911
|
+
br.value = !br.value;
|
|
911
912
|
}
|
|
912
|
-
let
|
|
913
|
+
let Sr = m(() => !br.value && B.value.showZoom), Cr = w(null), wr = w(!1), { viewBox: $, resetZoom: Tr, isZoom: Er, setInitialViewBox: Dr } = Te(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
|
-
|
|
918
|
+
}, 1, Sr), Or = m(() => B.value.showZoom || Er.value);
|
|
919
|
+
O([
|
|
919
920
|
() => J.value.x,
|
|
920
921
|
() => J.value.y,
|
|
921
922
|
() => J.value.width,
|
|
922
923
|
() => J.value.height
|
|
923
924
|
], () => {
|
|
924
925
|
Ne(() => {
|
|
925
|
-
|
|
926
|
+
Dr({
|
|
926
927
|
x: J.value.x,
|
|
927
928
|
y: J.value.y,
|
|
928
929
|
width: Math.max(10, J.value.width),
|
|
@@ -930,35 +931,35 @@ 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 = w(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
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
962
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
962
963
|
domElement: P.value,
|
|
963
964
|
base64: !0,
|
|
964
965
|
img: !0,
|
|
@@ -973,7 +974,7 @@ 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
980
|
component: e ? $e : Je,
|
|
@@ -1004,51 +1005,51 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1004
1005
|
}
|
|
1005
1006
|
};
|
|
1006
1007
|
});
|
|
1007
|
-
|
|
1008
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
1008
|
+
O(() => B.value.showTable, (e) => {
|
|
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 } = le({
|
|
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 Ne();
|
|
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
|
-
return
|
|
1063
|
+
function Jr(e) {
|
|
1064
|
+
return ne(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,32 +1093,32 @@ 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
|
-
if (
|
|
1120
|
+
async function ai() {
|
|
1121
|
+
if (rt("copyAlt", {
|
|
1121
1122
|
config: L.value,
|
|
1122
1123
|
dataset: G.value
|
|
1123
1124
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -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
|
-
})),
|
|
1176
|
-
return
|
|
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:
|
|
1192
|
-
}), (e, t) => (
|
|
1173
|
+
let ui = m(() => ({
|
|
1174
|
+
headers: hr.value?.colNames ?? [],
|
|
1175
|
+
rows: hr.value?.body ?? []
|
|
1176
|
+
})), di = m(() => L.value.style.chart.color);
|
|
1177
|
+
return me({
|
|
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
|
|
1193
|
+
}), (e, t) => (C(), _("div", {
|
|
1193
1194
|
ref_key: "treemapChart",
|
|
1194
1195
|
ref: P,
|
|
1195
1196
|
class: Pe(`vue-data-ui-component vue-ui-treemap ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1196
|
-
style:
|
|
1197
|
+
style: S(`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] ||= () =>
|
|
1199
|
-
onMouseleave: t[4] ||= () =>
|
|
1199
|
+
onMouseenter: t[3] ||= () => D(sn)(!0),
|
|
1200
|
+
onMouseleave: t[4] ||= () => D(sn)(!1)
|
|
1200
1201
|
}, [
|
|
1201
1202
|
v("div", {
|
|
1202
1203
|
id: `chart-instructions-${j.value}`,
|
|
1203
1204
|
class: "sr-only"
|
|
1204
|
-
}, [v("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1205
|
-
|
|
1205
|
+
}, [v("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1206
|
+
ui.value?.rows?.length ? (C(), h(be, {
|
|
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,21 +1217,21 @@ 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 ? (
|
|
1220
|
+
L.value.userOptions.buttons.annotator ? (C(), h(D(qe), {
|
|
1220
1221
|
key: 1,
|
|
1221
|
-
svgRef:
|
|
1222
|
+
svgRef: D(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
|
-
"annotator-action-close":
|
|
1229
|
-
"annotator-action-color":
|
|
1230
|
-
"annotator-action-draw":
|
|
1231
|
-
"annotator-action-undo":
|
|
1232
|
-
"annotator-action-redo":
|
|
1233
|
-
"annotator-action-delete":
|
|
1229
|
+
"annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1230
|
+
"annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
|
|
1231
|
+
"annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
|
|
1232
|
+
"annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
|
|
1233
|
+
"annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
|
|
1234
|
+
"annotator-action-delete": k(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
|
|
1234
1235
|
_: 3
|
|
1235
1236
|
}, 8, [
|
|
1236
1237
|
"svgRef",
|
|
@@ -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 ? (C(), _("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
|
-
L.value.style.chart.title.text ? (
|
|
1250
|
+
L.value.style.chart.title.text ? (C(), _("div", {
|
|
1250
1251
|
key: 3,
|
|
1251
1252
|
ref_key: "chartTitle",
|
|
1252
|
-
ref:
|
|
1253
|
-
style:
|
|
1254
|
-
}, [(
|
|
1255
|
-
key: `title_${
|
|
1253
|
+
ref: Lt,
|
|
1254
|
+
style: S(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1255
|
+
}, [(C(), h(pe, {
|
|
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 && (D(cn) || D(on)) ? (C(), h(D(Ze), {
|
|
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:
|
|
1275
|
-
isImaging:
|
|
1275
|
+
isPrinting: D(un),
|
|
1276
|
+
isImaging: D(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,28 +1289,28 @@ 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:
|
|
1300
|
-
onGenerateCsv:
|
|
1301
|
-
onGenerateImage:
|
|
1302
|
-
onGenerateSvg:
|
|
1303
|
-
onToggleTable:
|
|
1304
|
-
onToggleTooltip:
|
|
1305
|
-
onToggleAnnotator:
|
|
1306
|
-
onToggleZoom:
|
|
1307
|
-
onCopyAlt:
|
|
1308
|
-
style:
|
|
1309
|
-
},
|
|
1299
|
+
onToggleFullscreen: Jn,
|
|
1300
|
+
onGeneratePdf: D(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: S({ visibility: D(cn) ? D(on) ? "visible" : "hidden" : "visible" })
|
|
1310
|
+
}, ke({ _: 2 }, [
|
|
1310
1311
|
e.$slots.menuIcon ? {
|
|
1311
1312
|
name: "menuIcon",
|
|
1312
|
-
fn:
|
|
1313
|
+
fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
|
|
1313
1314
|
isOpen: t,
|
|
1314
1315
|
color: n
|
|
1315
1316
|
})), void 0, !0)]),
|
|
@@ -1317,37 +1318,37 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1317
1318
|
} : void 0,
|
|
1318
1319
|
e.$slots.optionTooltip ? {
|
|
1319
1320
|
name: "optionTooltip",
|
|
1320
|
-
fn:
|
|
1321
|
+
fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1321
1322
|
key: "1"
|
|
1322
1323
|
} : void 0,
|
|
1323
1324
|
e.$slots.optionPdf ? {
|
|
1324
1325
|
name: "optionPdf",
|
|
1325
|
-
fn:
|
|
1326
|
+
fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1326
1327
|
key: "2"
|
|
1327
1328
|
} : void 0,
|
|
1328
1329
|
e.$slots.optionCsv ? {
|
|
1329
1330
|
name: "optionCsv",
|
|
1330
|
-
fn:
|
|
1331
|
+
fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1331
1332
|
key: "3"
|
|
1332
1333
|
} : void 0,
|
|
1333
1334
|
e.$slots.optionImg ? {
|
|
1334
1335
|
name: "optionImg",
|
|
1335
|
-
fn:
|
|
1336
|
+
fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1336
1337
|
key: "4"
|
|
1337
1338
|
} : void 0,
|
|
1338
1339
|
e.$slots.optionSvg ? {
|
|
1339
1340
|
name: "optionSvg",
|
|
1340
|
-
fn:
|
|
1341
|
+
fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1341
1342
|
key: "5"
|
|
1342
1343
|
} : void 0,
|
|
1343
1344
|
e.$slots.optionTable ? {
|
|
1344
1345
|
name: "optionTable",
|
|
1345
|
-
fn:
|
|
1346
|
+
fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1346
1347
|
key: "6"
|
|
1347
1348
|
} : void 0,
|
|
1348
1349
|
e.$slots.optionFullscreen ? {
|
|
1349
1350
|
name: "optionFullscreen",
|
|
1350
|
-
fn:
|
|
1351
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
|
|
1351
1352
|
toggleFullscreen: t,
|
|
1352
1353
|
isFullscreen: n
|
|
1353
1354
|
})), void 0, !0)]),
|
|
@@ -1355,7 +1356,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1355
1356
|
} : void 0,
|
|
1356
1357
|
e.$slots.optionAnnotator ? {
|
|
1357
1358
|
name: "optionAnnotator",
|
|
1358
|
-
fn:
|
|
1359
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
|
|
1359
1360
|
toggleAnnotator: t,
|
|
1360
1361
|
isAnnotator: n
|
|
1361
1362
|
})), void 0, !0)]),
|
|
@@ -1363,7 +1364,7 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1363
1364
|
} : void 0,
|
|
1364
1365
|
e.$slots.optionZoom ? {
|
|
1365
1366
|
name: "optionZoom",
|
|
1366
|
-
fn:
|
|
1367
|
+
fn: k(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(b({
|
|
1367
1368
|
toggleZoom: t,
|
|
1368
1369
|
isZoomLocked: n
|
|
1369
1370
|
})), void 0, !0)]),
|
|
@@ -1371,111 +1372,115 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1371
1372
|
} : void 0,
|
|
1372
1373
|
e.$slots.optionAltCopy ? {
|
|
1373
1374
|
name: "optionAltCopy",
|
|
1374
|
-
fn:
|
|
1375
|
+
fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
|
|
1375
1376
|
key: "10"
|
|
1376
1377
|
} : void 0,
|
|
1377
1378
|
e.$slots["custom-menu-before"] ? {
|
|
1378
1379
|
name: "custom-menu-before",
|
|
1379
|
-
fn:
|
|
1380
|
+
fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1380
1381
|
key: "11"
|
|
1381
1382
|
} : void 0,
|
|
1382
1383
|
e.$slots["custom-menu-after"] ? {
|
|
1383
1384
|
name: "custom-menu-after",
|
|
1384
|
-
fn:
|
|
1385
|
+
fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1385
1386
|
key: "12"
|
|
1386
1387
|
} : void 0
|
|
1387
1388
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) : g("", !0),
|
|
1388
|
-
X.value.length > 1 ? (
|
|
1389
|
+
X.value.length > 1 ? (C(), _("nav", {
|
|
1389
1390
|
key: 5,
|
|
1390
1391
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1391
1392
|
"data-dom-to-png-ignore": "",
|
|
1392
1393
|
ref_key: "breadcrumbsNav",
|
|
1393
|
-
ref:
|
|
1394
|
-
}, [(
|
|
1394
|
+
ref: Wt
|
|
1395
|
+
}, [(C(!0), _(De, null, Le(X.value, (n, r) => (C(), _("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: [Ue(We((e) => r === X.value.length - 1 ? void 0 :
|
|
1399
|
+
onClick: (e) => r === X.value.length - 1 ? () => {} : tr(n.node),
|
|
1400
|
+
onKeydown: [Ue(We((e) => r === X.value.length - 1 ? void 0 : tr(n.node), ["prevent"]), ["enter"]), Ue(We((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
|
-
style:
|
|
1403
|
+
style: S({
|
|
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, [T(e.$slots, "breadcrumb-label", Me({ ref_for: !0 }, {
|
|
1411
1412
|
crumb: n,
|
|
1412
1413
|
isRoot: r === 0,
|
|
1413
|
-
isFocus:
|
|
1414
|
-
}), () => [r === 0 ? (
|
|
1415
|
-
name:
|
|
1414
|
+
isFocus: Nr.value === r
|
|
1415
|
+
}), () => [r === 0 ? (C(), _("div", ut, [je(_e, {
|
|
1416
|
+
name: Nr.value === 0 ? "homeFilled" : "home",
|
|
1416
1417
|
stroke: L.value.style.chart.color
|
|
1417
|
-
}, null, 8, ["name", "stroke"])])) : (
|
|
1418
|
-
v("div",
|
|
1419
|
-
(
|
|
1418
|
+
}, null, 8, ["name", "stroke"])])) : (C(), _(De, { key: 1 }, [Ae(ze(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (C(), _("span", dt, [T(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Ae(" › ", -1)], !0)])) : g("", !0)])], 44, st))), 128))], 512)) : g("", !0),
|
|
1419
|
+
v("div", ft, [
|
|
1420
|
+
(C(), _("svg", {
|
|
1420
1421
|
ref_key: "svgRef",
|
|
1421
1422
|
ref: z,
|
|
1422
|
-
xmlns:
|
|
1423
|
+
xmlns: D(ie),
|
|
1423
1424
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1424
1425
|
class: Pe({
|
|
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":
|
|
1430
|
-
loading:
|
|
1428
|
+
"vue-data-ui-zoom-plus": !Xn.value,
|
|
1429
|
+
"vue-data-ui-zoom-minus": Xn.value,
|
|
1430
|
+
"no-transition": D(jt),
|
|
1431
|
+
loading: D(nn)
|
|
1431
1432
|
}),
|
|
1432
|
-
viewBox: `${
|
|
1433
|
-
style:
|
|
1433
|
+
viewBox: `${D($).x} ${D($).y} ${D($).width <= 0 ? 10 : D($).width} ${D($).height <= 0 ? 10 : D($).height}`,
|
|
1434
|
+
style: S(`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
|
-
(
|
|
1445
|
+
je(D(Qe)),
|
|
1446
|
+
(C(!0), _(De, null, Le(G.value, (e, t) => (C(), _("g", { key: `tgrad_${e.id}` }, [L.value.style.chart.layout.rects.gradient.show ? (C(), _("defs", mt, [je(ve, {
|
|
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
|
+
D(r)(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
|
-
(
|
|
1461
|
+
(C(!0), _(De, null, Le(G.value, (e, t) => (C(), _("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: We((n) =>
|
|
1466
|
-
onMouseenter: () =>
|
|
1470
|
+
onClick: We((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
|
-
style:
|
|
1476
|
-
class: Pe(["vue-ui-treemap-rect",
|
|
1477
|
-
}, null, 46,
|
|
1478
|
-
(
|
|
1480
|
+
style: S(`opacity:${Z.value ? Z.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1481
|
+
class: Pe(["vue-ui-treemap-rect", nr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"])
|
|
1482
|
+
}, null, 46, ht)]))), 128)),
|
|
1483
|
+
(C(!0), _(De, null, Le(Qr.value, (e) => (C(), _("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})` }, [(C(!0), _(De, null, Le(e.lines, (e) => (C(), _("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
|
-
}, ze(e.text), 9,
|
|
1501
|
-
e.$slots.rect ? (
|
|
1505
|
+
}, ze(e.text), 9, yt))), 128))], 8, vt)]))), 128)),
|
|
1506
|
+
e.$slots.rect ? (C(), _("g", bt, [(C(!0), _(De, null, Le(G.value, (t, n) => (C(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(C(), _("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, [D(nn) ? g("", !0) : T(e.$slots, "rect", Me({
|
|
1512
1517
|
key: 0,
|
|
1513
1518
|
ref_for: !0
|
|
1514
1519
|
}, {
|
|
@@ -1518,69 +1523,69 @@ 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:
|
|
1524
|
-
textColor:
|
|
1525
|
-
}), void 0, !0)])], 8,
|
|
1526
|
+
shouldShow: Ln(t) || Xn.value,
|
|
1527
|
+
fontSize: qn(t, n),
|
|
1528
|
+
isZoom: Xn.value,
|
|
1529
|
+
textColor: D(ne)(t.color)
|
|
1530
|
+
}), void 0, !0)])], 8, xt))]))), 128))])) : g("", !0)
|
|
1526
1531
|
]),
|
|
1527
|
-
|
|
1532
|
+
T(e.$slots, "svg", x(b({
|
|
1528
1533
|
svg: V.value,
|
|
1529
|
-
isZoom:
|
|
1534
|
+
isZoom: Xn.value,
|
|
1530
1535
|
rect: Z.value,
|
|
1531
1536
|
config: L.value,
|
|
1532
|
-
isPrintingImg:
|
|
1533
|
-
isPrintingSvg:
|
|
1537
|
+
isPrintingImg: D(un) || D(dn) || Xt.value,
|
|
1538
|
+
isPrintingSvg: Zt.value
|
|
1534
1539
|
})), void 0, !0)
|
|
1535
|
-
], 46,
|
|
1536
|
-
|
|
1540
|
+
], 46, pt)),
|
|
1541
|
+
D(Er) ? (C(), _("div", Ct, [T(e.$slots, "reset-action", { reset: D(Tr) }, () => [v("button", {
|
|
1537
1542
|
"data-cy-reset": "",
|
|
1538
1543
|
tabindex: "0",
|
|
1539
1544
|
role: "button",
|
|
1540
1545
|
class: "vue-data-ui-refresh-button",
|
|
1541
|
-
style:
|
|
1546
|
+
style: S({
|
|
1542
1547
|
background: L.value.style.chart.backgroundColor,
|
|
1543
1548
|
cursor: R.value ? "pointer" : "default"
|
|
1544
1549
|
}),
|
|
1545
|
-
onClick: t[0] ||= (e) =>
|
|
1546
|
-
}, [
|
|
1550
|
+
onClick: t[0] ||= (e) => D(Tr)(!0)
|
|
1551
|
+
}, [je(_e, {
|
|
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 ? (
|
|
1555
|
+
e.$slots.hint ? (C(), _("div", wt, [T(e.$slots, "hint", x(b({
|
|
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 ? (
|
|
1556
|
-
v("div", { id: `legend-bottom-${j.value}` }, null, 8,
|
|
1557
|
-
|
|
1560
|
+
e.$slots.watermark ? (C(), _("div", Tt, [T(e.$slots, "watermark", x(b({ isPrinting: D(un) || D(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) ? (C(), 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
|
-
}, [
|
|
1564
|
-
key: `legend_${
|
|
1565
|
-
legendSet:
|
|
1566
|
-
config:
|
|
1567
|
+
ref: Rt
|
|
1568
|
+
}, [T(e.$slots, "legend", { legend: rr.value }, () => [L.value.style.chart.legend.show ? (C(), h(Ce, {
|
|
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:
|
|
1576
|
+
item: k(({ legend: e, index: t }) => [D(nn) ? g("", !0) : (C(), _("div", {
|
|
1572
1577
|
key: 0,
|
|
1573
|
-
onClick: (t) =>
|
|
1574
|
-
style:
|
|
1575
|
-
}, ze(e.display), 13,
|
|
1576
|
-
legendToggle:
|
|
1578
|
+
onClick: (t) => sr(e),
|
|
1579
|
+
style: S(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
1580
|
+
}, ze(e.display), 13, Dt))]),
|
|
1581
|
+
legendToggle: k(() => [rr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !D(nn) ? (C(), h(ye, {
|
|
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",
|
|
@@ -1595,15 +1600,15 @@ var A = /* @__PURE__ */ e({ default: () => Mt }), rt = ["id"], it = ["id"], at =
|
|
|
1595
1600
|
"id",
|
|
1596
1601
|
"isCursorPointer"
|
|
1597
1602
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1598
|
-
e.$slots.source ? (
|
|
1603
|
+
e.$slots.source ? (C(), _("div", {
|
|
1599
1604
|
key: 8,
|
|
1600
1605
|
ref_key: "source",
|
|
1601
|
-
ref:
|
|
1606
|
+
ref: zt,
|
|
1602
1607
|
dir: "auto"
|
|
1603
|
-
}, [
|
|
1604
|
-
|
|
1608
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1609
|
+
je(D(Xe), {
|
|
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
|
-
isCustom:
|
|
1625
|
+
isCustom: D(d)(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":
|
|
1629
|
-
tooltip:
|
|
1630
|
-
"tooltip-after":
|
|
1633
|
+
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ...fr.value })), void 0, !0)]),
|
|
1634
|
+
tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ...fr.value })), void 0, !0)]),
|
|
1635
|
+
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ...fr.value })), void 0, !0)]),
|
|
1631
1636
|
_: 3
|
|
1632
1637
|
}, 8, [
|
|
1633
1638
|
"teleportTo",
|
|
@@ -1653,30 +1658,30 @@ 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 ? (C(), h(Re(Lr.value.component), Me({ key: 9 }, Lr.value.props, {
|
|
1657
1662
|
ref_key: "tableUnit",
|
|
1658
|
-
ref:
|
|
1659
|
-
onClose:
|
|
1660
|
-
}),
|
|
1661
|
-
content:
|
|
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: k(() => [(C(), h(D(Ke), {
|
|
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
|
-
th:
|
|
1677
|
+
th: k(({ th: e }) => [v("div", {
|
|
1673
1678
|
innerHTML: e,
|
|
1674
1679
|
style: {
|
|
1675
1680
|
display: "flex",
|
|
1676
1681
|
"align-items": "center"
|
|
1677
1682
|
}
|
|
1678
|
-
}, null, 8,
|
|
1679
|
-
td:
|
|
1683
|
+
}, null, 8, Ot)]),
|
|
1684
|
+
td: k(({ td: e }) => [Ae(ze(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:
|
|
1698
|
+
fn: k(() => [Ae(ze(Lr.value.title), 1)]),
|
|
1694
1699
|
key: "0"
|
|
1695
1700
|
} : void 0, L.value.table.useDialog ? {
|
|
1696
1701
|
name: "actions",
|
|
1697
|
-
fn:
|
|
1702
|
+
fn: k(() => [v("button", {
|
|
1698
1703
|
tabindex: "0",
|
|
1699
1704
|
class: "vue-ui-user-options-button",
|
|
1700
|
-
onClick: t[2] ||= (e) =>
|
|
1701
|
-
style:
|
|
1702
|
-
}, [
|
|
1705
|
+
onClick: t[2] ||= (e) => mr(L.value.userOptions.callbacks.csv),
|
|
1706
|
+
style: S({ cursor: R.value ? "pointer" : "default" })
|
|
1707
|
+
}, [je(_e, {
|
|
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
|
-
|
|
1709
|
-
], 46,
|
|
1713
|
+
T(e.$slots, "skeleton", {}, () => [D(nn) ? (C(), h(ce, { key: 0 })) : g("", !0)], !0)
|
|
1714
|
+
], 46, it));
|
|
1710
1715
|
}
|
|
1711
|
-
}, [["__scopeId", "data-v-
|
|
1716
|
+
}, [["__scopeId", "data-v-a81c7c10"]]);
|
|
1712
1717
|
//#endregion
|
|
1713
|
-
export {
|
|
1718
|
+
export { rt as n, At as t };
|