vue-data-ui 3.22.9 → 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-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- 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-trvJ26nz.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-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.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/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-ub3fCh6P.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-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.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-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- 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-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.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-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.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-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- 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-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.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/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,29 +1,29 @@
|
|
|
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
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { Fragment 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";
|
|
17
|
+
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Ce } from "./Legend-5VQGLnmx.js";
|
|
21
|
+
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
22
|
+
import { t as Te } from "./usePanZoom-CYU3B4T3.js";
|
|
23
|
+
import { t as Ee } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
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";
|
|
25
25
|
//#region src/treemap.js
|
|
26
|
-
function
|
|
26
|
+
function Ge(e, t) {
|
|
27
27
|
let n = e.length;
|
|
28
28
|
if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
|
|
29
29
|
{
|
|
@@ -35,7 +35,7 @@ function Ke(e, t) {
|
|
|
35
35
|
return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ke(e) {
|
|
39
39
|
let { xOffset: t, yOffset: n, width: r, height: i } = e;
|
|
40
40
|
return {
|
|
41
41
|
x0: t,
|
|
@@ -44,14 +44,14 @@ function qe(e) {
|
|
|
44
44
|
y1: n + i
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function qe(e, t, n) {
|
|
48
48
|
if (e.length === 0) return !0;
|
|
49
49
|
{
|
|
50
50
|
let r = e.concat(t);
|
|
51
|
-
return
|
|
51
|
+
return Ge(e, n) >= Ge(r, n);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Je(e) {
|
|
55
55
|
let t = [], n = e.length;
|
|
56
56
|
for (let r = 0; r < n; r += 1) {
|
|
57
57
|
let n = e[r], i = n.length;
|
|
@@ -59,17 +59,17 @@ function Ye(e) {
|
|
|
59
59
|
}
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function Ye(e, t) {
|
|
63
|
+
return nt({
|
|
64
64
|
...t,
|
|
65
65
|
children: e
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Xe(e) {
|
|
69
69
|
return (e.x1 - e.x0) * (e.y1 - e.y0);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
71
|
+
function Ze(e, t) {
|
|
72
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
|
|
73
73
|
if (n >= r) {
|
|
74
74
|
for (let t = 0; t < o; t += 1) {
|
|
75
75
|
let n = e[t], r = d + n.normalizedValue / c, i = {
|
|
@@ -94,16 +94,16 @@ function Qe(e, t) {
|
|
|
94
94
|
return f;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
let t =
|
|
97
|
+
function Qe(e) {
|
|
98
|
+
let t = et(e), n = t.width, r = t.height;
|
|
99
99
|
return Math.min(n, r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function $e(e, t) {
|
|
102
102
|
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
103
103
|
for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
|
|
104
104
|
return i;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function et(e) {
|
|
107
107
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
108
108
|
return {
|
|
109
109
|
xOffset: t,
|
|
@@ -112,39 +112,39 @@ function tt(e) {
|
|
|
112
112
|
height: i - n
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function tt(e, t, n, r) {
|
|
116
116
|
let i = e, a = t, o = n, s = r;
|
|
117
117
|
for (;;) {
|
|
118
118
|
let e = i.length;
|
|
119
119
|
if (e === 0) {
|
|
120
|
-
let e =
|
|
120
|
+
let e = Ze(a, o);
|
|
121
121
|
return s.concat(e);
|
|
122
122
|
}
|
|
123
|
-
let t =
|
|
124
|
-
if (
|
|
123
|
+
let t = Qe(o), n = i[0], r = i.slice(1, e);
|
|
124
|
+
if (qe(a, n, t)) {
|
|
125
125
|
let e = a.concat(n);
|
|
126
126
|
i = r, a = e, o = o, s = s;
|
|
127
127
|
} else {
|
|
128
128
|
let e = a.length, t = 0;
|
|
129
129
|
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
130
|
-
let n =
|
|
130
|
+
let n = A(o, t), r = Ze(a, o), c = s.concat(r);
|
|
131
131
|
i = i, a = [], o = n, s = c;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function nt(e) {
|
|
136
136
|
if (e.children === void 0 || !e.children.length) return [e];
|
|
137
137
|
{
|
|
138
|
-
let t =
|
|
139
|
-
for (let e = 0; e < n; e += 1) r.push(
|
|
140
|
-
return
|
|
138
|
+
let t = tt($e(e.children, Xe(e)), [], e, []), n = t.length, r = [];
|
|
139
|
+
for (let e = 0; e < n; e += 1) r.push(nt(t[e]));
|
|
140
|
+
return Je(r);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
143
|
+
function A(e, t) {
|
|
144
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(e);
|
|
145
145
|
if (n >= r) {
|
|
146
146
|
let e = t / r, o = n - e;
|
|
147
|
-
return
|
|
147
|
+
return Ke({
|
|
148
148
|
xOffset: i + e,
|
|
149
149
|
yOffset: a,
|
|
150
150
|
width: o,
|
|
@@ -152,7 +152,7 @@ function k(e, t) {
|
|
|
152
152
|
});
|
|
153
153
|
} else {
|
|
154
154
|
let e = t / n, o = r - e;
|
|
155
|
-
return
|
|
155
|
+
return Ke({
|
|
156
156
|
xOffset: i,
|
|
157
157
|
yOffset: a + e,
|
|
158
158
|
width: n,
|
|
@@ -162,7 +162,7 @@ function k(e, t) {
|
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/components/vue-ui-treemap.vue
|
|
165
|
-
var
|
|
165
|
+
var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot = ["id"], st = [
|
|
166
166
|
"tabindex",
|
|
167
167
|
"onClick",
|
|
168
168
|
"onKeydown",
|
|
@@ -235,7 +235,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
235
235
|
}, Tt = {
|
|
236
236
|
key: 6,
|
|
237
237
|
class: "vue-data-ui-watermark"
|
|
238
|
-
}, Et = ["id"], Dt = ["onClick"], Ot = ["innerHTML"], kt = 4, At = /*#__PURE__*/
|
|
238
|
+
}, Et = ["id"], Dt = ["onClick"], Ot = ["innerHTML"], kt = 4, At = /*#__PURE__*/ me({
|
|
239
239
|
__name: "vue-ui-treemap",
|
|
240
240
|
props: {
|
|
241
241
|
config: {
|
|
@@ -256,16 +256,16 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
256
256
|
"selectDatapoint",
|
|
257
257
|
"copyAlt"
|
|
258
258
|
],
|
|
259
|
-
setup(e, { expose:
|
|
260
|
-
|
|
261
|
-
let
|
|
262
|
-
|
|
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();
|
|
262
|
+
Ie(() => {
|
|
263
263
|
At["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
264
264
|
});
|
|
265
|
-
let Mt = m(() => !!
|
|
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({
|
|
266
266
|
x: 0,
|
|
267
267
|
y: 0
|
|
268
|
-
}), $t =
|
|
268
|
+
}), $t = w("pointer"), en = w(!1), L = w(ln()), R = m(() => L.value.userOptions.useCursorPointer), tn = m(() => te({
|
|
269
269
|
defaultConfig: {
|
|
270
270
|
userOptions: { show: !1 },
|
|
271
271
|
style: { chart: {
|
|
@@ -278,11 +278,11 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
278
278
|
} }
|
|
279
279
|
},
|
|
280
280
|
userConfig: L.value.skeletonConfig ?? {}
|
|
281
|
-
})), { loading: nn, FINAL_DATASET: rn, manualLoading: an } =
|
|
282
|
-
...
|
|
281
|
+
})), { loading: nn, FINAL_DATASET: rn, manualLoading: an } = se({
|
|
282
|
+
...Be(A),
|
|
283
283
|
FINAL_CONFIG: L,
|
|
284
284
|
prepareConfig: ln,
|
|
285
|
-
skeletonDataset:
|
|
285
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
286
286
|
name: "_",
|
|
287
287
|
value: 53,
|
|
288
288
|
color: "#CACACA90",
|
|
@@ -317,50 +317,50 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
317
317
|
}
|
|
318
318
|
]
|
|
319
319
|
}],
|
|
320
|
-
skeletonConfig:
|
|
320
|
+
skeletonConfig: te({
|
|
321
321
|
defaultConfig: L.value,
|
|
322
322
|
userConfig: tn.value
|
|
323
323
|
})
|
|
324
|
-
}), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } =
|
|
324
|
+
}), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = xe({ config: L.value }), { svgRef: z } = Se({ config: L.value.style.chart.title });
|
|
325
325
|
function ln() {
|
|
326
|
-
let e =
|
|
327
|
-
userConfig:
|
|
328
|
-
defaultConfig:
|
|
326
|
+
let e = ue({
|
|
327
|
+
userConfig: A.config,
|
|
328
|
+
defaultConfig: et
|
|
329
329
|
}), t = e.theme;
|
|
330
330
|
if (!t) return e;
|
|
331
|
-
if (!
|
|
332
|
-
let n =
|
|
333
|
-
userConfig:
|
|
331
|
+
if (!tt.value(e)) return nt(e), e;
|
|
332
|
+
let n = ue({
|
|
333
|
+
userConfig: Ee[t] || A.config,
|
|
334
334
|
defaultConfig: e
|
|
335
|
-
}), r =
|
|
336
|
-
userConfig:
|
|
335
|
+
}), r = ue({
|
|
336
|
+
userConfig: A.config,
|
|
337
337
|
defaultConfig: n
|
|
338
338
|
});
|
|
339
339
|
return {
|
|
340
340
|
...r,
|
|
341
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
341
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
O(() => A.config, (e) => {
|
|
345
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;
|
|
346
346
|
}, { deep: !0 });
|
|
347
|
-
let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } =
|
|
347
|
+
let { isPrinting: un, isImaging: dn, generatePdf: fn, generateImage: pn } = oe({
|
|
348
348
|
elementId: `treemap_${j.value}`,
|
|
349
349
|
fileName: L.value.style.chart.title.text || "vue-ui-treemap",
|
|
350
350
|
options: L.value.userOptions.print
|
|
351
|
-
}), mn = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), hn = m(() =>
|
|
351
|
+
}), mn = m(() => L.value.userOptions.show && !L.value.style.chart.title.text), hn = m(() => n(L.value.customPalette)), B = w({
|
|
352
352
|
showTable: L.value.table.show,
|
|
353
353
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
354
354
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
355
355
|
});
|
|
356
|
-
|
|
356
|
+
O(L, () => {
|
|
357
357
|
B.value = {
|
|
358
358
|
showTable: L.value.table.show,
|
|
359
359
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
360
360
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
361
361
|
};
|
|
362
362
|
}, { immediate: !0 });
|
|
363
|
-
let gn =
|
|
363
|
+
let gn = w({
|
|
364
364
|
height: L.value.style.chart.height,
|
|
365
365
|
width: L.value.style.chart.width
|
|
366
366
|
});
|
|
@@ -386,26 +386,26 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
386
386
|
vbHeight: n - r,
|
|
387
387
|
offsetY: r
|
|
388
388
|
};
|
|
389
|
-
}), H =
|
|
390
|
-
|
|
389
|
+
}), H = w(l(rn.value)), U = w(H.value), yn = E(/* @__PURE__ */ new Map());
|
|
390
|
+
O([H, () => L.value], () => {
|
|
391
391
|
Jt.value = null, Yt.value = /* @__PURE__ */ new Map();
|
|
392
|
-
}, { deep: !0 }),
|
|
392
|
+
}, { deep: !0 }), O(() => N.value, () => {
|
|
393
393
|
Jt.value = null, Yt.value = /* @__PURE__ */ new Map(), Cn(), Ut.value += 1, Ht.value += 1;
|
|
394
|
-
}, { deep: !0 }),
|
|
394
|
+
}, { deep: !0 }), O([() => gn.value.width, () => gn.value.height], () => {
|
|
395
395
|
Yt.value = /* @__PURE__ */ new Map();
|
|
396
396
|
});
|
|
397
397
|
function bn(e) {
|
|
398
398
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
399
|
-
e.id ||=
|
|
400
|
-
let n = e.sourceColor || yn.value.get(e.id) || hn.value[t] ||
|
|
401
|
-
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);
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
function xn(e, t) {
|
|
405
405
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
406
|
-
n.id ||=
|
|
407
|
-
let
|
|
408
|
-
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);
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
function Sn(e) {
|
|
@@ -431,26 +431,26 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
431
431
|
}
|
|
432
432
|
U.value = [n];
|
|
433
433
|
}
|
|
434
|
-
|
|
435
|
-
H.value =
|
|
434
|
+
O(() => rn.value, () => {
|
|
435
|
+
H.value = l(rn.value), bn(H.value), Cn(), Ut.value += 1, Ht.value += 1;
|
|
436
436
|
}, {
|
|
437
437
|
deep: !0,
|
|
438
438
|
immediate: !0,
|
|
439
439
|
flush: "post"
|
|
440
440
|
});
|
|
441
|
-
let W =
|
|
442
|
-
|
|
441
|
+
let W = E(null), wn = E(null);
|
|
442
|
+
Ie(() => {
|
|
443
443
|
Gt.value = !0, En();
|
|
444
444
|
});
|
|
445
445
|
let Tn = m(() => L.value.debug);
|
|
446
446
|
function En() {
|
|
447
|
-
if (
|
|
447
|
+
if (t(A.dataset) && f({
|
|
448
448
|
componentName: "VueUiTreemap",
|
|
449
449
|
type: "dataset",
|
|
450
450
|
debug: Tn.value
|
|
451
|
-
}), bn(H.value),
|
|
452
|
-
let e =
|
|
453
|
-
let { width: e, height: t } =
|
|
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({
|
|
454
454
|
chart: P.value,
|
|
455
455
|
title: L.value.style.chart.title.text ? Lt.value : null,
|
|
456
456
|
legend: L.value.style.chart.legend.show ? Rt.value : null,
|
|
@@ -464,12 +464,12 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
464
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);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
Fe(() => {
|
|
468
468
|
W.value && (wn.value && W.value.unobserve(wn.value), W.value.disconnect());
|
|
469
469
|
});
|
|
470
470
|
let Dn = m(() => U.value.map((e, t) => ({
|
|
471
471
|
...e,
|
|
472
|
-
color:
|
|
472
|
+
color: p(e.color) || hn.value[t] || s[t] || s[t % s.length]
|
|
473
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({
|
|
474
474
|
get() {
|
|
475
475
|
let e = [...Dn.value];
|
|
@@ -482,9 +482,9 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
482
482
|
function An(e, t) {
|
|
483
483
|
return e.value / t;
|
|
484
484
|
}
|
|
485
|
-
function jn(e, t,
|
|
486
|
-
let i = L.value.style.chart.layout.rects.colorRatio - An(t,
|
|
487
|
-
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);
|
|
488
488
|
}
|
|
489
489
|
function Mn(e) {
|
|
490
490
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -499,14 +499,14 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
499
499
|
}
|
|
500
500
|
function Pn(e, t, n, r, i) {
|
|
501
501
|
return Nn(e).map((e, a) => {
|
|
502
|
-
let
|
|
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;
|
|
503
503
|
return {
|
|
504
504
|
...e,
|
|
505
505
|
color: c,
|
|
506
506
|
proportion: l,
|
|
507
507
|
parentName: n,
|
|
508
508
|
rootId: u,
|
|
509
|
-
children: Array.isArray(e.children) && e.children.length ? Pn(e.children,
|
|
509
|
+
children: Array.isArray(e.children) && e.children.length ? Pn(e.children, o, e.name, d, u) : void 0
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
512
|
}
|
|
@@ -531,7 +531,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
531
531
|
let i = e.map((e) => {
|
|
532
532
|
let { children: t, ...n } = e;
|
|
533
533
|
return { ...n };
|
|
534
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s =
|
|
534
|
+
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Ye(i, t), c = [];
|
|
535
535
|
for (let e of s) {
|
|
536
536
|
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
537
537
|
...e,
|
|
@@ -552,16 +552,16 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
552
552
|
let zn = m(() => {
|
|
553
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
554
|
return Rn(e.map((e, n) => {
|
|
555
|
-
let
|
|
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);
|
|
556
556
|
return {
|
|
557
|
-
...
|
|
558
|
-
id: e.id ||
|
|
557
|
+
...a,
|
|
558
|
+
id: e.id || o(),
|
|
559
559
|
parentId: e.parentId ?? null,
|
|
560
560
|
name: e.name,
|
|
561
561
|
value: e.value,
|
|
562
562
|
color: l,
|
|
563
563
|
proportion: (Number(e.value) || 0) / t,
|
|
564
|
-
children: Array.isArray(e.children) && e.children.length ? Pn(e.children, c, e.name,
|
|
564
|
+
children: Array.isArray(e.children) && e.children.length ? Pn(e.children, c, e.name, r || 1) : void 0
|
|
565
565
|
};
|
|
566
566
|
}), {
|
|
567
567
|
x0: V.value.left,
|
|
@@ -601,7 +601,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
601
601
|
};
|
|
602
602
|
}
|
|
603
603
|
function Un(e, t) {
|
|
604
|
-
return ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
604
|
+
return ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
605
605
|
p: L.value.style.chart.layout.labels.prefix,
|
|
606
606
|
v: e.value,
|
|
607
607
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -664,7 +664,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
664
664
|
}
|
|
665
665
|
let Xn = m(() => F.value.length > 0);
|
|
666
666
|
function Zn() {
|
|
667
|
-
U.value = H.value.slice(), F.value = [],
|
|
667
|
+
U.value = H.value.slice(), F.value = [], rt("selectDatapoint", void 0);
|
|
668
668
|
}
|
|
669
669
|
function Qn() {
|
|
670
670
|
return F.value[F.value.length - 1] ?? null;
|
|
@@ -673,7 +673,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
673
673
|
F.value = [...Yn(e.id), e.id], U.value = [e], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
674
674
|
datapoint: t ?? e,
|
|
675
675
|
seriesIndex: n
|
|
676
|
-
}),
|
|
676
|
+
}), rt("selectDatapoint", t ?? e);
|
|
677
677
|
}
|
|
678
678
|
function er(e, t) {
|
|
679
679
|
let n = Qn();
|
|
@@ -697,7 +697,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
697
697
|
F.value = [...Yn(i.id), i.id], U.value = [i], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
698
698
|
datapoint: e,
|
|
699
699
|
seriesIndex: t
|
|
700
|
-
}),
|
|
700
|
+
}), rt("selectDatapoint", e);
|
|
701
701
|
}
|
|
702
702
|
function tr(e, t) {
|
|
703
703
|
if (!e) {
|
|
@@ -731,9 +731,9 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
return e;
|
|
734
|
-
}), Z =
|
|
734
|
+
}), Z = E(null), rr = m(() => H.value.map((e, t) => ({
|
|
735
735
|
...e,
|
|
736
|
-
color:
|
|
736
|
+
color: p(e.color) || hn.value[t] || s[t] || s[t % s.length],
|
|
737
737
|
shape: "square"
|
|
738
738
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
739
739
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -743,7 +743,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
743
743
|
isSegregated: N.value.includes(e.id),
|
|
744
744
|
segregate: () => sr(e),
|
|
745
745
|
opacity: N.value.includes(e.id) ? .5 : 1,
|
|
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,
|
|
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({
|
|
747
747
|
p: L.value.style.chart.layout.labels.prefix,
|
|
748
748
|
v: e.value,
|
|
749
749
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -761,10 +761,10 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
761
761
|
function or() {
|
|
762
762
|
N.value.length ? N.value = [] : rr.value.forEach((e) => {
|
|
763
763
|
N.value.push(e.id);
|
|
764
|
-
}),
|
|
764
|
+
}), rt("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
765
765
|
}
|
|
766
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 <
|
|
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)));
|
|
768
768
|
}
|
|
769
769
|
function cr(e) {
|
|
770
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);
|
|
@@ -783,7 +783,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
783
783
|
seriesIndex: t
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
|
-
let fr =
|
|
786
|
+
let fr = w(null);
|
|
787
787
|
function pr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
788
788
|
if (ar.value || n === "pointer" && Cr.value) return;
|
|
789
789
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
@@ -796,7 +796,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
796
796
|
series: Dn.value
|
|
797
797
|
};
|
|
798
798
|
let r = L.value.style.chart.tooltip.customFormat;
|
|
799
|
-
if (
|
|
799
|
+
if (d(r) && re(() => r({
|
|
800
800
|
seriesIndex: t,
|
|
801
801
|
datapoint: e,
|
|
802
802
|
series: Dn.value,
|
|
@@ -809,7 +809,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
809
809
|
});
|
|
810
810
|
else {
|
|
811
811
|
let n = "";
|
|
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,
|
|
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({
|
|
813
813
|
p: L.value.style.chart.layout.labels.prefix,
|
|
814
814
|
v: e.value,
|
|
815
815
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -829,12 +829,12 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
829
829
|
body: G.value.map((e) => e.value)
|
|
830
830
|
}));
|
|
831
831
|
function mr(e = null) {
|
|
832
|
-
|
|
832
|
+
Ne(() => {
|
|
833
833
|
let t = Q.value.head.map((e, t) => [
|
|
834
834
|
[e.name],
|
|
835
835
|
[Q.value.body[t]],
|
|
836
836
|
[isNaN(Q.value.body[t] / On.value) ? "-" : Q.value.body[t] / On.value * 100]
|
|
837
|
-
]), n =
|
|
837
|
+
]), n = i([
|
|
838
838
|
[L.value.style.chart.title.text],
|
|
839
839
|
[L.value.style.chart.title.subtitle.text],
|
|
840
840
|
[
|
|
@@ -843,7 +843,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
843
843
|
["%"]
|
|
844
844
|
]
|
|
845
845
|
].concat(t));
|
|
846
|
-
e ? e(n) :
|
|
846
|
+
e ? e(n) : c({
|
|
847
847
|
csvContent: n,
|
|
848
848
|
title: L.value.style.chart.title.text || "vue-ui-treemap"
|
|
849
849
|
});
|
|
@@ -855,7 +855,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
855
855
|
L.value.table.columnNames.value,
|
|
856
856
|
L.value.table.columnNames.percentage
|
|
857
857
|
], t = Q.value.head.map((e, t) => {
|
|
858
|
-
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({
|
|
859
859
|
p: L.value.style.chart.layout.labels.prefix,
|
|
860
860
|
v: Q.value.body[t],
|
|
861
861
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -868,7 +868,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
868
868
|
shape: "square"
|
|
869
869
|
},
|
|
870
870
|
n,
|
|
871
|
-
isNaN(Q.value.body[t] / On.value) ? "-" :
|
|
871
|
+
isNaN(Q.value.body[t] / On.value) ? "-" : u({
|
|
872
872
|
v: Q.value.body[t] / On.value * 100,
|
|
873
873
|
s: "%",
|
|
874
874
|
r: L.value.table.td.roundingPercentage
|
|
@@ -906,23 +906,23 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
906
906
|
function yr() {
|
|
907
907
|
B.value.showZoom = !B.value.showZoom;
|
|
908
908
|
}
|
|
909
|
-
let br =
|
|
909
|
+
let br = w(!1);
|
|
910
910
|
function xr() {
|
|
911
911
|
br.value = !br.value;
|
|
912
912
|
}
|
|
913
|
-
let Sr = m(() => !br.value && B.value.showZoom), Cr =
|
|
913
|
+
let Sr = m(() => !br.value && B.value.showZoom), Cr = w(null), wr = w(!1), { viewBox: $, resetZoom: Tr, isZoom: Er, setInitialViewBox: Dr } = Te(z, {
|
|
914
914
|
x: J.value.x,
|
|
915
915
|
y: J.value.y,
|
|
916
916
|
width: Math.max(10, J.value.width),
|
|
917
917
|
height: Math.max(10, J.value.height)
|
|
918
918
|
}, 1, Sr), Or = m(() => B.value.showZoom || Er.value);
|
|
919
|
-
|
|
919
|
+
O([
|
|
920
920
|
() => J.value.x,
|
|
921
921
|
() => J.value.y,
|
|
922
922
|
() => J.value.width,
|
|
923
923
|
() => J.value.height
|
|
924
924
|
], () => {
|
|
925
|
-
|
|
925
|
+
Ne(() => {
|
|
926
926
|
Dr({
|
|
927
927
|
x: J.value.x,
|
|
928
928
|
y: J.value.y,
|
|
@@ -950,7 +950,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
950
950
|
function Mr(e, t) {
|
|
951
951
|
wr.value || tr(e, t);
|
|
952
952
|
}
|
|
953
|
-
let Nr =
|
|
953
|
+
let Nr = w(null);
|
|
954
954
|
function Pr(e) {
|
|
955
955
|
Nr.value = e;
|
|
956
956
|
}
|
|
@@ -959,7 +959,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
959
959
|
}
|
|
960
960
|
async function Ir({ scale: e = 2 } = {}) {
|
|
961
961
|
if (!P.value) return;
|
|
962
|
-
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({
|
|
963
963
|
domElement: P.value,
|
|
964
964
|
base64: !0,
|
|
965
965
|
img: !0,
|
|
@@ -977,7 +977,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
977
977
|
let Lr = m(() => {
|
|
978
978
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
979
979
|
return {
|
|
980
|
-
component: e ?
|
|
980
|
+
component: e ? $e : Je,
|
|
981
981
|
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
982
982
|
props: e ? {
|
|
983
983
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1005,7 +1005,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1005
1005
|
}
|
|
1006
1006
|
};
|
|
1007
1007
|
});
|
|
1008
|
-
|
|
1008
|
+
O(() => B.value.showTable, (e) => {
|
|
1009
1009
|
L.value.table.show || (e && L.value.table.useDialog && Kt.value ? Kt.value.open() : "close" in Kt.value && Kt.value.close());
|
|
1010
1010
|
});
|
|
1011
1011
|
function Rr() {
|
|
@@ -1014,7 +1014,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1014
1014
|
let zr = m(() => rr.value.map((e) => ({
|
|
1015
1015
|
...e,
|
|
1016
1016
|
name: e.display
|
|
1017
|
-
}))), Br = m(() => L.value.style.chart.backgroundColor), Vr = m(() => L.value.style.chart.legend), { exportSvg: Hr, getSvg: Ur } =
|
|
1017
|
+
}))), Br = m(() => L.value.style.chart.backgroundColor), Vr = m(() => L.value.style.chart.legend), { exportSvg: Hr, getSvg: Ur } = le({
|
|
1018
1018
|
svg: z,
|
|
1019
1019
|
title: m(() => L.value.style.chart.title),
|
|
1020
1020
|
legend: Vr,
|
|
@@ -1022,7 +1022,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1022
1022
|
backgroundColor: Br
|
|
1023
1023
|
});
|
|
1024
1024
|
async function Wr({ isCb: e }) {
|
|
1025
|
-
Zt.value = !0, await
|
|
1025
|
+
Zt.value = !0, await Ne();
|
|
1026
1026
|
try {
|
|
1027
1027
|
if (e) {
|
|
1028
1028
|
let { blob: e, url: t, text: n, dataUrl: r } = await Ur();
|
|
@@ -1061,7 +1061,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1061
1061
|
return Hn(e, Kr(e, t).fontSize);
|
|
1062
1062
|
}
|
|
1063
1063
|
function Jr(e) {
|
|
1064
|
-
return
|
|
1064
|
+
return ne(e.color ?? L.value.style.chart.backgroundColor);
|
|
1065
1065
|
}
|
|
1066
1066
|
function Yr(e, t) {
|
|
1067
1067
|
let { fontSize: n, lineHeight: r } = Kr(e, t), i = ni(e, t), a = ri(e, t);
|
|
@@ -1118,7 +1118,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1118
1118
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1119
1119
|
}
|
|
1120
1120
|
async function ai() {
|
|
1121
|
-
if (
|
|
1121
|
+
if (rt("copyAlt", {
|
|
1122
1122
|
config: L.value,
|
|
1123
1123
|
dataset: G.value
|
|
1124
1124
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -1174,7 +1174,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1174
1174
|
headers: hr.value?.colNames ?? [],
|
|
1175
1175
|
rows: hr.value?.body ?? []
|
|
1176
1176
|
})), di = m(() => L.value.style.chart.color);
|
|
1177
|
-
return
|
|
1177
|
+
return me({
|
|
1178
1178
|
getData: gr,
|
|
1179
1179
|
getImage: Ir,
|
|
1180
1180
|
generateCsv: mr,
|
|
@@ -1190,20 +1190,20 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1190
1190
|
toggleFullscreen: Jn,
|
|
1191
1191
|
resetZoom: Tr,
|
|
1192
1192
|
copyAlt: ai
|
|
1193
|
-
}), (e, t) => (
|
|
1193
|
+
}), (e, t) => (C(), _("div", {
|
|
1194
1194
|
ref_key: "treemapChart",
|
|
1195
1195
|
ref: P,
|
|
1196
|
-
class:
|
|
1197
|
-
style:
|
|
1196
|
+
class: Pe(`vue-data-ui-component vue-ui-treemap ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
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}`),
|
|
1198
1198
|
id: `treemap_${j.value}`,
|
|
1199
|
-
onMouseenter: t[3] ||= () =>
|
|
1200
|
-
onMouseleave: t[4] ||= () =>
|
|
1199
|
+
onMouseenter: t[3] ||= () => D(sn)(!0),
|
|
1200
|
+
onMouseleave: t[4] ||= () => D(sn)(!1)
|
|
1201
1201
|
}, [
|
|
1202
1202
|
v("div", {
|
|
1203
1203
|
id: `chart-instructions-${j.value}`,
|
|
1204
1204
|
class: "sr-only"
|
|
1205
|
-
}, [v("p", null,
|
|
1206
|
-
ui.value?.rows?.length ? (
|
|
1205
|
+
}, [v("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1206
|
+
ui.value?.rows?.length ? (C(), h(be, {
|
|
1207
1207
|
key: 0,
|
|
1208
1208
|
uid: j.value,
|
|
1209
1209
|
head: ui.value.headers,
|
|
@@ -1217,21 +1217,21 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1217
1217
|
"notice",
|
|
1218
1218
|
"caption"
|
|
1219
1219
|
])) : g("", !0),
|
|
1220
|
-
L.value.userOptions.buttons.annotator ? (
|
|
1220
|
+
L.value.userOptions.buttons.annotator ? (C(), h(D(qe), {
|
|
1221
1221
|
key: 1,
|
|
1222
|
-
svgRef:
|
|
1222
|
+
svgRef: D(z),
|
|
1223
1223
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1224
1224
|
color: L.value.style.chart.color,
|
|
1225
1225
|
active: br.value,
|
|
1226
1226
|
isCursorPointer: R.value,
|
|
1227
1227
|
onClose: xr
|
|
1228
1228
|
}, {
|
|
1229
|
-
"annotator-action-close":
|
|
1230
|
-
"annotator-action-color":
|
|
1231
|
-
"annotator-action-draw":
|
|
1232
|
-
"annotator-action-undo":
|
|
1233
|
-
"annotator-action-redo":
|
|
1234
|
-
"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)]),
|
|
1235
1235
|
_: 3
|
|
1236
1236
|
}, 8, [
|
|
1237
1237
|
"svgRef",
|
|
@@ -1240,19 +1240,19 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1240
1240
|
"active",
|
|
1241
1241
|
"isCursorPointer"
|
|
1242
1242
|
])) : g("", !0),
|
|
1243
|
-
mn.value ? (
|
|
1243
|
+
mn.value ? (C(), _("div", {
|
|
1244
1244
|
key: 2,
|
|
1245
1245
|
ref_key: "noTitle",
|
|
1246
1246
|
ref: Bt,
|
|
1247
1247
|
class: "vue-data-ui-no-title-space",
|
|
1248
1248
|
style: "height:36px; width: 100%;background:transparent"
|
|
1249
1249
|
}, null, 512)) : g("", !0),
|
|
1250
|
-
L.value.style.chart.title.text ? (
|
|
1250
|
+
L.value.style.chart.title.text ? (C(), _("div", {
|
|
1251
1251
|
key: 3,
|
|
1252
1252
|
ref_key: "chartTitle",
|
|
1253
1253
|
ref: Lt,
|
|
1254
|
-
style:
|
|
1255
|
-
}, [(
|
|
1254
|
+
style: S(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1255
|
+
}, [(C(), h(pe, {
|
|
1256
1256
|
key: `title_${Vt.value}`,
|
|
1257
1257
|
config: {
|
|
1258
1258
|
title: {
|
|
@@ -1266,14 +1266,14 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1268
1268
|
v("div", { id: `legend-top-${j.value}` }, null, 8, ot),
|
|
1269
|
-
L.value.userOptions.show && Mt.value && (
|
|
1269
|
+
L.value.userOptions.show && Mt.value && (D(cn) || D(on)) ? (C(), h(D(Ze), {
|
|
1270
1270
|
ref_key: "userOptionsRef",
|
|
1271
1271
|
ref: qt,
|
|
1272
1272
|
key: `user_option_${It.value}`,
|
|
1273
1273
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1274
1274
|
color: L.value.style.chart.color,
|
|
1275
|
-
isPrinting:
|
|
1276
|
-
isImaging:
|
|
1275
|
+
isPrinting: D(un),
|
|
1276
|
+
isImaging: D(dn),
|
|
1277
1277
|
uid: j.value,
|
|
1278
1278
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
1279
1279
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1297,7 +1297,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1297
1297
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1298
1298
|
isZoom: B.value.showZoom,
|
|
1299
1299
|
onToggleFullscreen: Jn,
|
|
1300
|
-
onGeneratePdf:
|
|
1300
|
+
onGeneratePdf: D(fn),
|
|
1301
1301
|
onGenerateCsv: mr,
|
|
1302
1302
|
onGenerateImage: Gr,
|
|
1303
1303
|
onGenerateSvg: Wr,
|
|
@@ -1306,11 +1306,11 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1306
1306
|
onToggleAnnotator: xr,
|
|
1307
1307
|
onToggleZoom: yr,
|
|
1308
1308
|
onCopyAlt: ai,
|
|
1309
|
-
style:
|
|
1309
|
+
style: S({ visibility: D(cn) ? D(on) ? "visible" : "hidden" : "visible" })
|
|
1310
1310
|
}, ke({ _: 2 }, [
|
|
1311
1311
|
e.$slots.menuIcon ? {
|
|
1312
1312
|
name: "menuIcon",
|
|
1313
|
-
fn:
|
|
1313
|
+
fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
|
|
1314
1314
|
isOpen: t,
|
|
1315
1315
|
color: n
|
|
1316
1316
|
})), void 0, !0)]),
|
|
@@ -1318,37 +1318,37 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1318
1318
|
} : void 0,
|
|
1319
1319
|
e.$slots.optionTooltip ? {
|
|
1320
1320
|
name: "optionTooltip",
|
|
1321
|
-
fn:
|
|
1321
|
+
fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1322
1322
|
key: "1"
|
|
1323
1323
|
} : void 0,
|
|
1324
1324
|
e.$slots.optionPdf ? {
|
|
1325
1325
|
name: "optionPdf",
|
|
1326
|
-
fn:
|
|
1326
|
+
fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1327
1327
|
key: "2"
|
|
1328
1328
|
} : void 0,
|
|
1329
1329
|
e.$slots.optionCsv ? {
|
|
1330
1330
|
name: "optionCsv",
|
|
1331
|
-
fn:
|
|
1331
|
+
fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1332
1332
|
key: "3"
|
|
1333
1333
|
} : void 0,
|
|
1334
1334
|
e.$slots.optionImg ? {
|
|
1335
1335
|
name: "optionImg",
|
|
1336
|
-
fn:
|
|
1336
|
+
fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1337
1337
|
key: "4"
|
|
1338
1338
|
} : void 0,
|
|
1339
1339
|
e.$slots.optionSvg ? {
|
|
1340
1340
|
name: "optionSvg",
|
|
1341
|
-
fn:
|
|
1341
|
+
fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1342
1342
|
key: "5"
|
|
1343
1343
|
} : void 0,
|
|
1344
1344
|
e.$slots.optionTable ? {
|
|
1345
1345
|
name: "optionTable",
|
|
1346
|
-
fn:
|
|
1346
|
+
fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1347
1347
|
key: "6"
|
|
1348
1348
|
} : void 0,
|
|
1349
1349
|
e.$slots.optionFullscreen ? {
|
|
1350
1350
|
name: "optionFullscreen",
|
|
1351
|
-
fn:
|
|
1351
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
|
|
1352
1352
|
toggleFullscreen: t,
|
|
1353
1353
|
isFullscreen: n
|
|
1354
1354
|
})), void 0, !0)]),
|
|
@@ -1356,7 +1356,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1356
1356
|
} : void 0,
|
|
1357
1357
|
e.$slots.optionAnnotator ? {
|
|
1358
1358
|
name: "optionAnnotator",
|
|
1359
|
-
fn:
|
|
1359
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
|
|
1360
1360
|
toggleAnnotator: t,
|
|
1361
1361
|
isAnnotator: n
|
|
1362
1362
|
})), void 0, !0)]),
|
|
@@ -1364,7 +1364,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1364
1364
|
} : void 0,
|
|
1365
1365
|
e.$slots.optionZoom ? {
|
|
1366
1366
|
name: "optionZoom",
|
|
1367
|
-
fn:
|
|
1367
|
+
fn: k(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(b({
|
|
1368
1368
|
toggleZoom: t,
|
|
1369
1369
|
isZoomLocked: n
|
|
1370
1370
|
})), void 0, !0)]),
|
|
@@ -1372,35 +1372,35 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1372
1372
|
} : void 0,
|
|
1373
1373
|
e.$slots.optionAltCopy ? {
|
|
1374
1374
|
name: "optionAltCopy",
|
|
1375
|
-
fn:
|
|
1375
|
+
fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
|
|
1376
1376
|
key: "10"
|
|
1377
1377
|
} : void 0,
|
|
1378
1378
|
e.$slots["custom-menu-before"] ? {
|
|
1379
1379
|
name: "custom-menu-before",
|
|
1380
|
-
fn:
|
|
1380
|
+
fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1381
1381
|
key: "11"
|
|
1382
1382
|
} : void 0,
|
|
1383
1383
|
e.$slots["custom-menu-after"] ? {
|
|
1384
1384
|
name: "custom-menu-after",
|
|
1385
|
-
fn:
|
|
1385
|
+
fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1386
1386
|
key: "12"
|
|
1387
1387
|
} : void 0
|
|
1388
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),
|
|
1389
|
-
X.value.length > 1 ? (
|
|
1389
|
+
X.value.length > 1 ? (C(), _("nav", {
|
|
1390
1390
|
key: 5,
|
|
1391
1391
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1392
1392
|
"data-dom-to-png-ignore": "",
|
|
1393
1393
|
ref_key: "breadcrumbsNav",
|
|
1394
1394
|
ref: Wt
|
|
1395
|
-
}, [(
|
|
1395
|
+
}, [(C(!0), _(De, null, Le(X.value, (n, r) => (C(), _("span", {
|
|
1396
1396
|
role: "button",
|
|
1397
1397
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1398
1398
|
key: n.id || "root",
|
|
1399
1399
|
onClick: (e) => r === X.value.length - 1 ? () => {} : tr(n.node),
|
|
1400
|
-
onKeydown: [We(
|
|
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"])],
|
|
1401
1401
|
class: "vue-ui-treemap-crumb",
|
|
1402
1402
|
"data-last-crumb": r === X.value.length - 1,
|
|
1403
|
-
style:
|
|
1403
|
+
style: S({
|
|
1404
1404
|
color: L.value.style.chart.color,
|
|
1405
1405
|
cursor: R.value ? "pointer" : "default"
|
|
1406
1406
|
}),
|
|
@@ -1408,30 +1408,30 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1408
1408
|
onMouseleave: Fr,
|
|
1409
1409
|
onFocus: (e) => Pr(r),
|
|
1410
1410
|
onBlur: Fr
|
|
1411
|
-
}, [v("span", ct, [v("span", lt, [
|
|
1411
|
+
}, [v("span", ct, [v("span", lt, [T(e.$slots, "breadcrumb-label", Me({ ref_for: !0 }, {
|
|
1412
1412
|
crumb: n,
|
|
1413
1413
|
isRoot: r === 0,
|
|
1414
1414
|
isFocus: Nr.value === r
|
|
1415
|
-
}), () => [r === 0 ? (
|
|
1415
|
+
}), () => [r === 0 ? (C(), _("div", ut, [je(_e, {
|
|
1416
1416
|
name: Nr.value === 0 ? "homeFilled" : "home",
|
|
1417
1417
|
stroke: L.value.style.chart.color
|
|
1418
|
-
}, null, 8, ["name", "stroke"])])) : (
|
|
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
1419
|
v("div", ft, [
|
|
1420
|
-
(
|
|
1420
|
+
(C(), _("svg", {
|
|
1421
1421
|
ref_key: "svgRef",
|
|
1422
1422
|
ref: z,
|
|
1423
|
-
xmlns:
|
|
1423
|
+
xmlns: D(ie),
|
|
1424
1424
|
"aria-describedby": `chart-instructions-${j.value}`,
|
|
1425
|
-
class:
|
|
1425
|
+
class: Pe({
|
|
1426
1426
|
"vue-data-ui-fullscreen--on": M.value,
|
|
1427
1427
|
"vue-data-ui-fulscreen--off": !M.value,
|
|
1428
1428
|
"vue-data-ui-zoom-plus": !Xn.value,
|
|
1429
1429
|
"vue-data-ui-zoom-minus": Xn.value,
|
|
1430
|
-
"no-transition":
|
|
1431
|
-
loading:
|
|
1430
|
+
"no-transition": D(jt),
|
|
1431
|
+
loading: D(nn)
|
|
1432
1432
|
}),
|
|
1433
|
-
viewBox: `${
|
|
1434
|
-
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}`),
|
|
1435
1435
|
tabindex: "0",
|
|
1436
1436
|
onFocus: oi,
|
|
1437
1437
|
onBlur: si,
|
|
@@ -1442,8 +1442,8 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1442
1442
|
onPointercancel: jr,
|
|
1443
1443
|
onPointerleave: jr
|
|
1444
1444
|
}, [
|
|
1445
|
-
je(
|
|
1446
|
-
(
|
|
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
1447
|
t: "radial",
|
|
1448
1448
|
id: `tgrad_${e.id}`,
|
|
1449
1449
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
|
|
@@ -1453,12 +1453,12 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1453
1453
|
1
|
|
1454
1454
|
], [
|
|
1455
1455
|
"100%",
|
|
1456
|
-
|
|
1456
|
+
D(r)(e.color, L.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1457
1457
|
1
|
|
1458
1458
|
]]
|
|
1459
1459
|
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
1460
1460
|
v("g", null, [
|
|
1461
|
-
(
|
|
1461
|
+
(C(!0), _(De, null, Le(G.value, (e, t) => (C(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
|
|
1462
1462
|
x: e.x0,
|
|
1463
1463
|
y: e.y0,
|
|
1464
1464
|
height: K(e),
|
|
@@ -1467,7 +1467,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1467
1467
|
rx: ii(e),
|
|
1468
1468
|
stroke: Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.stroke : L.value.style.chart.layout.rects.stroke,
|
|
1469
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,
|
|
1470
|
-
onClick:
|
|
1470
|
+
onClick: We((n) => Mr(e, t), ["stop"]),
|
|
1471
1471
|
onMouseenter: () => pr({
|
|
1472
1472
|
datapoint: e,
|
|
1473
1473
|
seriesIndex: t,
|
|
@@ -1477,10 +1477,10 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1477
1477
|
datapoint: e,
|
|
1478
1478
|
seriesIndex: t
|
|
1479
1479
|
}),
|
|
1480
|
-
style:
|
|
1481
|
-
class:
|
|
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
1482
|
}, null, 46, ht)]))), 128)),
|
|
1483
|
-
(
|
|
1483
|
+
(C(!0), _(De, null, Le(Qr.value, (e) => (C(), _("g", {
|
|
1484
1484
|
key: e.key,
|
|
1485
1485
|
style: { "pointer-events": "none" }
|
|
1486
1486
|
}, [v("defs", null, [v("clipPath", {
|
|
@@ -1492,7 +1492,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1492
1492
|
y: e.clipY,
|
|
1493
1493
|
width: e.clipWidth,
|
|
1494
1494
|
height: e.clipHeight
|
|
1495
|
-
}, null, 8, _t)], 8, gt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [(
|
|
1495
|
+
}, null, 8, _t)], 8, gt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [(C(!0), _(De, null, Le(e.lines, (e) => (C(), _("text", {
|
|
1496
1496
|
key: e.key,
|
|
1497
1497
|
class: "vue-ui-treemap-data-label",
|
|
1498
1498
|
transform: `translate(${e.x}, ${e.y})`,
|
|
@@ -1502,8 +1502,8 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1502
1502
|
"font-weight": e.fontWeight,
|
|
1503
1503
|
"text-anchor": "start",
|
|
1504
1504
|
"dominant-baseline": "text-before-edge"
|
|
1505
|
-
},
|
|
1506
|
-
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", {
|
|
1507
1507
|
x: t.x0,
|
|
1508
1508
|
y: t.y0,
|
|
1509
1509
|
height: K(t),
|
|
@@ -1513,7 +1513,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1513
1513
|
"pointer-events": "none",
|
|
1514
1514
|
overflow: "hidden"
|
|
1515
1515
|
}
|
|
1516
|
-
}, [v("div", St, [
|
|
1516
|
+
}, [v("div", St, [D(nn) ? g("", !0) : T(e.$slots, "rect", Me({
|
|
1517
1517
|
key: 0,
|
|
1518
1518
|
ref_for: !0
|
|
1519
1519
|
}, {
|
|
@@ -1526,46 +1526,46 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1526
1526
|
shouldShow: Ln(t) || Xn.value,
|
|
1527
1527
|
fontSize: qn(t, n),
|
|
1528
1528
|
isZoom: Xn.value,
|
|
1529
|
-
textColor:
|
|
1529
|
+
textColor: D(ne)(t.color)
|
|
1530
1530
|
}), void 0, !0)])], 8, xt))]))), 128))])) : g("", !0)
|
|
1531
1531
|
]),
|
|
1532
|
-
|
|
1532
|
+
T(e.$slots, "svg", x(b({
|
|
1533
1533
|
svg: V.value,
|
|
1534
1534
|
isZoom: Xn.value,
|
|
1535
1535
|
rect: Z.value,
|
|
1536
1536
|
config: L.value,
|
|
1537
|
-
isPrintingImg:
|
|
1537
|
+
isPrintingImg: D(un) || D(dn) || Xt.value,
|
|
1538
1538
|
isPrintingSvg: Zt.value
|
|
1539
1539
|
})), void 0, !0)
|
|
1540
1540
|
], 46, pt)),
|
|
1541
|
-
|
|
1541
|
+
D(Er) ? (C(), _("div", Ct, [T(e.$slots, "reset-action", { reset: D(Tr) }, () => [v("button", {
|
|
1542
1542
|
"data-cy-reset": "",
|
|
1543
1543
|
tabindex: "0",
|
|
1544
1544
|
role: "button",
|
|
1545
1545
|
class: "vue-data-ui-refresh-button",
|
|
1546
|
-
style:
|
|
1546
|
+
style: S({
|
|
1547
1547
|
background: L.value.style.chart.backgroundColor,
|
|
1548
1548
|
cursor: R.value ? "pointer" : "default"
|
|
1549
1549
|
}),
|
|
1550
|
-
onClick: t[0] ||= (e) =>
|
|
1551
|
-
}, [je(
|
|
1550
|
+
onClick: t[0] ||= (e) => D(Tr)(!0)
|
|
1551
|
+
}, [je(_e, {
|
|
1552
1552
|
name: "refresh",
|
|
1553
1553
|
stroke: L.value.style.chart.color
|
|
1554
1554
|
}, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
|
|
1555
|
-
e.$slots.hint ? (
|
|
1555
|
+
e.$slots.hint ? (C(), _("div", wt, [T(e.$slots, "hint", x(b({
|
|
1556
1556
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1557
1557
|
isVisible: en.value
|
|
1558
1558
|
})), void 0, !0)])) : g("", !0)
|
|
1559
1559
|
]),
|
|
1560
|
-
e.$slots.watermark ? (
|
|
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
1561
|
v("div", { id: `legend-bottom-${j.value}` }, null, 8, Et),
|
|
1562
|
-
Gt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (
|
|
1562
|
+
Gt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (C(), h(Oe, {
|
|
1563
1563
|
key: 7,
|
|
1564
1564
|
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
1565
1565
|
}, [v("div", {
|
|
1566
1566
|
ref_key: "chartLegend",
|
|
1567
1567
|
ref: Rt
|
|
1568
|
-
}, [
|
|
1568
|
+
}, [T(e.$slots, "legend", { legend: rr.value }, () => [L.value.style.chart.legend.show ? (C(), h(Ce, {
|
|
1569
1569
|
key: `legend_${Ut.value}`,
|
|
1570
1570
|
legendSet: rr.value,
|
|
1571
1571
|
config: ir.value,
|
|
@@ -1573,12 +1573,12 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1573
1573
|
isCursorPointer: R.value,
|
|
1574
1574
|
onClickMarker: t[1] ||= ({ legend: e }) => sr(e)
|
|
1575
1575
|
}, {
|
|
1576
|
-
item:
|
|
1576
|
+
item: k(({ legend: e, index: t }) => [D(nn) ? g("", !0) : (C(), _("div", {
|
|
1577
1577
|
key: 0,
|
|
1578
1578
|
onClick: (t) => sr(e),
|
|
1579
|
-
style:
|
|
1580
|
-
},
|
|
1581
|
-
legendToggle:
|
|
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, {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1584
1584
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1600,13 +1600,13 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1600
1600
|
"id",
|
|
1601
1601
|
"isCursorPointer"
|
|
1602
1602
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1603
|
-
e.$slots.source ? (
|
|
1603
|
+
e.$slots.source ? (C(), _("div", {
|
|
1604
1604
|
key: 8,
|
|
1605
1605
|
ref_key: "source",
|
|
1606
1606
|
ref: zt,
|
|
1607
1607
|
dir: "auto"
|
|
1608
|
-
}, [
|
|
1609
|
-
je(
|
|
1608
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1609
|
+
je(D(Xe), {
|
|
1610
1610
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1611
1611
|
show: B.value.showTooltip && Pt.value,
|
|
1612
1612
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1622,7 +1622,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1622
1622
|
parent: P.value,
|
|
1623
1623
|
content: Ft.value,
|
|
1624
1624
|
isFullscreen: M.value,
|
|
1625
|
-
isCustom:
|
|
1625
|
+
isCustom: D(d)(L.value.style.chart.tooltip.customFormat),
|
|
1626
1626
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
1627
1627
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1628
1628
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
@@ -1630,9 +1630,9 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1630
1630
|
isA11yMode: $t.value === "keyboard",
|
|
1631
1631
|
a11yPosition: Qt.value
|
|
1632
1632
|
}, {
|
|
1633
|
-
"tooltip-before":
|
|
1634
|
-
tooltip:
|
|
1635
|
-
"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)]),
|
|
1636
1636
|
_: 3
|
|
1637
1637
|
}, 8, [
|
|
1638
1638
|
"teleportTo",
|
|
@@ -1658,12 +1658,12 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1658
1658
|
"isA11yMode",
|
|
1659
1659
|
"a11yPosition"
|
|
1660
1660
|
]),
|
|
1661
|
-
Mt.value && L.value.userOptions.buttons.table ? (
|
|
1661
|
+
Mt.value && L.value.userOptions.buttons.table ? (C(), h(Re(Lr.value.component), Me({ key: 9 }, Lr.value.props, {
|
|
1662
1662
|
ref_key: "tableUnit",
|
|
1663
1663
|
ref: Kt,
|
|
1664
1664
|
onClose: Rr
|
|
1665
1665
|
}), ke({
|
|
1666
|
-
content:
|
|
1666
|
+
content: k(() => [(C(), h(D(Ke), {
|
|
1667
1667
|
key: `table_${Ht.value}`,
|
|
1668
1668
|
colNames: hr.value.colNames,
|
|
1669
1669
|
head: hr.value.head,
|
|
@@ -1674,14 +1674,14 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1674
1674
|
isCursorPointer: R.value,
|
|
1675
1675
|
onClose: Rr
|
|
1676
1676
|
}, {
|
|
1677
|
-
th:
|
|
1677
|
+
th: k(({ th: e }) => [v("div", {
|
|
1678
1678
|
innerHTML: e,
|
|
1679
1679
|
style: {
|
|
1680
1680
|
display: "flex",
|
|
1681
1681
|
"align-items": "center"
|
|
1682
1682
|
}
|
|
1683
1683
|
}, null, 8, Ot)]),
|
|
1684
|
-
td:
|
|
1684
|
+
td: k(({ td: e }) => [Ae(ze(e.name || e), 1)]),
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}, 8, [
|
|
1687
1687
|
"colNames",
|
|
@@ -1695,24 +1695,24 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1695
1695
|
_: 2
|
|
1696
1696
|
}, [L.value.table.useDialog ? {
|
|
1697
1697
|
name: "title",
|
|
1698
|
-
fn:
|
|
1698
|
+
fn: k(() => [Ae(ze(Lr.value.title), 1)]),
|
|
1699
1699
|
key: "0"
|
|
1700
1700
|
} : void 0, L.value.table.useDialog ? {
|
|
1701
1701
|
name: "actions",
|
|
1702
|
-
fn:
|
|
1702
|
+
fn: k(() => [v("button", {
|
|
1703
1703
|
tabindex: "0",
|
|
1704
1704
|
class: "vue-ui-user-options-button",
|
|
1705
1705
|
onClick: t[2] ||= (e) => mr(L.value.userOptions.callbacks.csv),
|
|
1706
|
-
style:
|
|
1707
|
-
}, [je(
|
|
1706
|
+
style: S({ cursor: R.value ? "pointer" : "default" })
|
|
1707
|
+
}, [je(_e, {
|
|
1708
1708
|
name: "fileCsv",
|
|
1709
1709
|
stroke: Lr.value.props.color
|
|
1710
1710
|
}, null, 8, ["stroke"])], 4)]),
|
|
1711
1711
|
key: "1"
|
|
1712
1712
|
} : void 0]), 1040)) : g("", !0),
|
|
1713
|
-
|
|
1713
|
+
T(e.$slots, "skeleton", {}, () => [D(nn) ? (C(), h(ce, { key: 0 })) : g("", !0)], !0)
|
|
1714
1714
|
], 46, it));
|
|
1715
1715
|
}
|
|
1716
1716
|
}, [["__scopeId", "data-v-a81c7c10"]]);
|
|
1717
1717
|
//#endregion
|
|
1718
|
-
export {
|
|
1718
|
+
export { rt as n, At as t };
|