vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-hill.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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- 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/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-
|
|
2
|
+
import { $ as t, D as n, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
4
|
+
import { t as ce } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./
|
|
8
|
-
import { t as pe } from "./
|
|
9
|
-
import { t as me } from "./
|
|
7
|
+
import { t as fe } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as me } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as he } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ge } from "./img-
|
|
12
|
-
import { n as _e } from "./Title-
|
|
11
|
+
import { t as ge } from "./img-Bnokohej.js";
|
|
12
|
+
import { n as _e } from "./Title-BE3qg9xl.js";
|
|
13
13
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as xe } from "./BaseIcon-
|
|
15
|
+
import { t as xe } from "./BaseIcon-BfndwIWE.js";
|
|
16
16
|
import { t as Se } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as Ce } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Ce } from "./BaseLegendToggle-DZVucLnv.js";
|
|
18
18
|
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as De } from "./Legend-
|
|
21
|
+
import { t as De } from "./Legend-CQxUgOd-.js";
|
|
22
22
|
import { t as Oe } from "./usePanZoom-CYU3B4T3.js";
|
|
23
23
|
import { t as ke } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
24
|
-
import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as
|
|
24
|
+
import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as Pe, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as Le, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Re, onMounted as ze, openBlock as S, ref as C, renderList as Be, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as T, toDisplayString as He, toRefs as Ue, unref as E, useCssVars as We, useSlots as Ge, watch as D, withCtx as O, withKeys as Ke, withModifiers as qe } from "vue";
|
|
25
25
|
//#region src/treemap.js
|
|
26
|
-
function
|
|
26
|
+
function Je(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 qe(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 Ye(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 Je(e) {
|
|
|
44
44
|
y1: n + i
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Xe(e, t, n) {
|
|
48
48
|
if (e.length === 0) return !0;
|
|
49
49
|
{
|
|
50
50
|
let r = e.concat(t);
|
|
51
|
-
return
|
|
51
|
+
return Je(e, n) >= Je(r, n);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ze(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 Xe(e) {
|
|
|
59
59
|
}
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function Qe(e, t) {
|
|
63
|
+
return at({
|
|
64
64
|
...t,
|
|
65
65
|
children: e
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function $e(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 et(e, t) {
|
|
72
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = rt(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 = {
|
|
@@ -81,29 +81,28 @@ function $e(e, t) {
|
|
|
81
81
|
d = r, f.push(a);
|
|
82
82
|
}
|
|
83
83
|
return f;
|
|
84
|
-
} else {
|
|
85
|
-
for (let t = 0; t < o; t += 1) {
|
|
86
|
-
let n = e[t], r = u + n.normalizedValue / l, i = {
|
|
87
|
-
x0: u,
|
|
88
|
-
y0: d,
|
|
89
|
-
x1: r,
|
|
90
|
-
y1: d + l
|
|
91
|
-
}, a = Object.assign({}, n, i);
|
|
92
|
-
u = r, f.push(a);
|
|
93
|
-
}
|
|
94
|
-
return f;
|
|
95
84
|
}
|
|
85
|
+
for (let t = 0; t < o; t += 1) {
|
|
86
|
+
let n = e[t], r = u + n.normalizedValue / l, i = {
|
|
87
|
+
x0: u,
|
|
88
|
+
y0: d,
|
|
89
|
+
x1: r,
|
|
90
|
+
y1: d + l
|
|
91
|
+
}, a = Object.assign({}, n, i);
|
|
92
|
+
u = r, f.push(a);
|
|
93
|
+
}
|
|
94
|
+
return f;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
98
|
-
let t =
|
|
96
|
+
function tt(e) {
|
|
97
|
+
let t = rt(e), n = t.width, r = t.height;
|
|
99
98
|
return Math.min(n, r);
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function nt(e, t) {
|
|
102
101
|
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
103
102
|
for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
|
|
104
103
|
return i;
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function rt(e) {
|
|
107
106
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
108
107
|
return {
|
|
109
108
|
xOffset: t,
|
|
@@ -112,47 +111,48 @@ function nt(e) {
|
|
|
112
111
|
height: i - n
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
|
-
function
|
|
114
|
+
function it(e, t, n, r) {
|
|
116
115
|
let i = e, a = t, o = n, s = r;
|
|
117
116
|
for (;;) {
|
|
118
117
|
let e = i.length;
|
|
119
118
|
if (e === 0) {
|
|
120
|
-
let e =
|
|
119
|
+
let e = et(a, o);
|
|
121
120
|
return s.concat(e);
|
|
122
121
|
}
|
|
123
|
-
let t =
|
|
124
|
-
if (
|
|
122
|
+
let t = tt(o), n = i[0], r = i.slice(1, e);
|
|
123
|
+
if (Xe(a, n, t)) {
|
|
125
124
|
let e = a.concat(n);
|
|
126
125
|
i = r, a = e, o = o, s = s;
|
|
127
126
|
} else {
|
|
128
127
|
let e = a.length, t = 0;
|
|
129
128
|
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
130
|
-
let n =
|
|
129
|
+
let n = k(o, t), r = et(a, o), c = s.concat(r);
|
|
131
130
|
i = i, a = [], o = n, s = c;
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function at(e) {
|
|
136
135
|
if (e.children === void 0 || !e.children.length) return [e];
|
|
137
136
|
{
|
|
138
|
-
let t =
|
|
139
|
-
for (let e = 0; e < n; e += 1) r.push(
|
|
140
|
-
return
|
|
137
|
+
let t = it(nt(e.children, $e(e)), [], e, []), n = t.length, r = [];
|
|
138
|
+
for (let e = 0; e < n; e += 1) r.push(at(t[e]));
|
|
139
|
+
return Ze(r);
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
|
-
function
|
|
144
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
142
|
+
function k(e, t) {
|
|
143
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = rt(e);
|
|
145
144
|
if (n >= r) {
|
|
146
145
|
let e = t / r, o = n - e;
|
|
147
|
-
return
|
|
146
|
+
return Ye({
|
|
148
147
|
xOffset: i + e,
|
|
149
148
|
yOffset: a,
|
|
150
149
|
width: o,
|
|
151
150
|
height: r
|
|
152
151
|
});
|
|
153
|
-
}
|
|
152
|
+
}
|
|
153
|
+
{
|
|
154
154
|
let e = t / n, o = r - e;
|
|
155
|
-
return
|
|
155
|
+
return Ye({
|
|
156
156
|
xOffset: i,
|
|
157
157
|
yOffset: a + e,
|
|
158
158
|
width: n,
|
|
@@ -162,28 +162,28 @@ function A(e, t) {
|
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/components/vue-ui-treemap.vue
|
|
165
|
-
var
|
|
165
|
+
var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt = ["id"], ut = [
|
|
166
166
|
"tabindex",
|
|
167
167
|
"onClick",
|
|
168
168
|
"onKeydown",
|
|
169
169
|
"data-last-crumb",
|
|
170
170
|
"onMouseenter",
|
|
171
171
|
"onFocus"
|
|
172
|
-
],
|
|
172
|
+
], dt = { class: "vue-ui-treemap-crumb-unit" }, ft = { class: "vue-ui-treemap-crumb-unit-label" }, pt = {
|
|
173
173
|
key: 0,
|
|
174
174
|
style: {
|
|
175
175
|
width: "24px",
|
|
176
176
|
display: "flex",
|
|
177
177
|
"align-items": "center"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, mt = {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
-
},
|
|
182
|
+
}, ht = { style: { position: "relative" } }, gt = [
|
|
183
183
|
"xmlns",
|
|
184
184
|
"aria-describedby",
|
|
185
185
|
"viewBox"
|
|
186
|
-
],
|
|
186
|
+
], _t = { key: 0 }, vt = [
|
|
187
187
|
"x",
|
|
188
188
|
"y",
|
|
189
189
|
"height",
|
|
@@ -195,35 +195,35 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
195
195
|
"onClick",
|
|
196
196
|
"onMouseenter",
|
|
197
197
|
"onMouseleave"
|
|
198
|
-
],
|
|
198
|
+
], yt = ["id"], bt = [
|
|
199
199
|
"x",
|
|
200
200
|
"y",
|
|
201
201
|
"width",
|
|
202
202
|
"height"
|
|
203
|
-
],
|
|
203
|
+
], xt = ["clip-path"], St = ["transform"], Ct = ["transform"], wt = [
|
|
204
204
|
"x",
|
|
205
205
|
"y",
|
|
206
206
|
"fill",
|
|
207
207
|
"font-size",
|
|
208
208
|
"font-family",
|
|
209
209
|
"font-weight"
|
|
210
|
-
],
|
|
210
|
+
], Tt = { key: 0 }, Et = [
|
|
211
211
|
"x",
|
|
212
212
|
"y",
|
|
213
213
|
"height",
|
|
214
214
|
"width"
|
|
215
|
-
],
|
|
215
|
+
], Dt = {
|
|
216
216
|
style: {
|
|
217
217
|
width: "100%",
|
|
218
218
|
height: "100%",
|
|
219
219
|
overflow: "hidden"
|
|
220
220
|
},
|
|
221
221
|
class: "vue-ui-treemap-cell"
|
|
222
|
-
},
|
|
222
|
+
}, Ot = {
|
|
223
223
|
key: 0,
|
|
224
224
|
"data-dom-to-png-ignore": "",
|
|
225
225
|
class: "reset-wrapper"
|
|
226
|
-
},
|
|
226
|
+
}, kt = {
|
|
227
227
|
key: 1,
|
|
228
228
|
style: {
|
|
229
229
|
position: "absolute",
|
|
@@ -233,10 +233,10 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
233
233
|
},
|
|
234
234
|
"data-dom-to-png-ignore": "",
|
|
235
235
|
"aria-hidden": "true"
|
|
236
|
-
},
|
|
236
|
+
}, At = {
|
|
237
237
|
key: 6,
|
|
238
238
|
class: "vue-data-ui-watermark"
|
|
239
|
-
},
|
|
239
|
+
}, jt = ["id"], Mt = ["onClick"], Nt = ["innerHTML"], Pt = 4, Ft = /*#__PURE__*/ ve({
|
|
240
240
|
__name: "vue-ui-treemap",
|
|
241
241
|
props: {
|
|
242
242
|
config: {
|
|
@@ -257,19 +257,15 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
257
257
|
"selectDatapoint",
|
|
258
258
|
"copyAlt"
|
|
259
259
|
],
|
|
260
|
-
setup(e, { expose: ve, emit:
|
|
261
|
-
|
|
262
|
-
let
|
|
263
|
-
Re(() => {
|
|
264
|
-
Pt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
265
|
-
});
|
|
266
|
-
let Ft = m(() => !!A.dataset && A.dataset.length), It = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = w(ee()), Lt = w(!1), Rt = w(""), zt = w(!1), Bt = w(0), M = w([]), N = E(null), Vt = E(null), Ht = E(null), Ut = E(null), Wt = E(null), Gt = w(0), Kt = w(0), qt = w(0), P = w([]), Jt = w(null), Yt = w(!1), Xt = w(null), Zt = w(null), Qt = w(null), $t = w(/* @__PURE__ */ new Map()), en = w(!1), tn = w(!1), F = w(null), nn = w({
|
|
260
|
+
setup(e, { expose: ve, emit: Je }) {
|
|
261
|
+
We((e) => ({ v5ebbeef2: vi.value }));
|
|
262
|
+
let Ye = Pe(() => import("./DataTable-BbKgJ5UI.js")), Xe = Pe(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ze = Pe(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), $e = Pe(() => import("./Tooltip-DhjyfHwz.js")), et = Pe(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), tt = Pe(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), nt = Pe(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_treemap: rt } = ce(), { isThemeValid: it, warnInvalidTheme: at } = pe(), k = e, ot = Je, Ft = Ge(), It = m(() => !!k.dataset && k.dataset.length), Lt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = C(ee()), Rt = C(!1), zt = C(""), j = C(!1), Bt = C(0), M = C([]), N = T(null), Vt = T(null), Ht = T(null), Ut = T(null), Wt = T(null), Gt = C(0), Kt = C(0), qt = C(0), P = C([]), Jt = C(null), Yt = C(!1), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(/* @__PURE__ */ new Map()), F = C(null), en = C({
|
|
267
263
|
x: 0,
|
|
268
264
|
y: 0
|
|
269
|
-
}),
|
|
265
|
+
}), tn = C("pointer"), nn = C(!1), I = C(dn());
|
|
270
266
|
oe({
|
|
271
267
|
config: () => I.value,
|
|
272
|
-
dataset: () =>
|
|
268
|
+
dataset: () => k.dataset,
|
|
273
269
|
component: "VueUiTreemap",
|
|
274
270
|
rules: [
|
|
275
271
|
se.emptyArray,
|
|
@@ -291,10 +287,10 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
291
287
|
}
|
|
292
288
|
]
|
|
293
289
|
});
|
|
294
|
-
let { transitionEnabled:
|
|
290
|
+
let { transitionEnabled: rn } = he({
|
|
295
291
|
config: () => I.value.transitions,
|
|
296
|
-
dataset: () =>
|
|
297
|
-
}), L = m(() => I.value.userOptions.useCursorPointer),
|
|
292
|
+
dataset: () => k.dataset
|
|
293
|
+
}), L = m(() => I.value.userOptions.useCursorPointer), an = m(() => r({
|
|
298
294
|
defaultConfig: {
|
|
299
295
|
userOptions: { show: !1 },
|
|
300
296
|
style: { chart: {
|
|
@@ -307,11 +303,11 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
307
303
|
} }
|
|
308
304
|
},
|
|
309
305
|
userConfig: I.value.skeletonConfig ?? {}
|
|
310
|
-
})), { loading: R, FINAL_DATASET:
|
|
311
|
-
...
|
|
306
|
+
})), { loading: R, FINAL_DATASET: on, manualLoading: sn } = ue({
|
|
307
|
+
...Ue(k),
|
|
312
308
|
FINAL_CONFIG: I,
|
|
313
|
-
prepareConfig:
|
|
314
|
-
skeletonDataset:
|
|
309
|
+
prepareConfig: dn,
|
|
310
|
+
skeletonDataset: k.config?.skeletonDataset ?? [{
|
|
315
311
|
name: "_",
|
|
316
312
|
value: 53,
|
|
317
313
|
color: "#CACACA90",
|
|
@@ -348,21 +344,21 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
348
344
|
}],
|
|
349
345
|
skeletonConfig: r({
|
|
350
346
|
defaultConfig: I.value,
|
|
351
|
-
userConfig:
|
|
347
|
+
userConfig: an.value
|
|
352
348
|
})
|
|
353
|
-
}), { userOptionsVisible:
|
|
354
|
-
function
|
|
355
|
-
let e =
|
|
356
|
-
userConfig:
|
|
357
|
-
defaultConfig:
|
|
349
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = Te({ config: I.value }), { svgRef: z } = Ee({ config: I.value.style.chart.title });
|
|
350
|
+
function dn() {
|
|
351
|
+
let e = fe({
|
|
352
|
+
userConfig: k.config,
|
|
353
|
+
defaultConfig: rt
|
|
358
354
|
}), t = e.theme;
|
|
359
355
|
if (!t) return e;
|
|
360
|
-
if (!
|
|
361
|
-
let n =
|
|
362
|
-
userConfig: ke[t] ||
|
|
356
|
+
if (!it.value(e)) return at(e), e;
|
|
357
|
+
let n = fe({
|
|
358
|
+
userConfig: ke[t] || k.config,
|
|
363
359
|
defaultConfig: e
|
|
364
|
-
}), r =
|
|
365
|
-
userConfig:
|
|
360
|
+
}), r = fe({
|
|
361
|
+
userConfig: k.config,
|
|
366
362
|
defaultConfig: n
|
|
367
363
|
});
|
|
368
364
|
return {
|
|
@@ -370,40 +366,40 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
370
366
|
customPalette: r.customPalette.length ? r.customPalette : i[t] || o
|
|
371
367
|
};
|
|
372
368
|
}
|
|
373
|
-
|
|
374
|
-
R.value || (I.value =
|
|
369
|
+
D(() => k.config, (e) => {
|
|
370
|
+
R.value || (I.value = dn()), cn.value = !I.value.userOptions.showOnChartHover, Gt.value += 1, Kt.value += 1, qt.value += 1, B.value.showTable = I.value.table.show, B.value.showTooltip = I.value.style.chart.tooltip.show, B.value.showZoom = I.value.style.chart.zoom?.show ?? !1;
|
|
375
371
|
}, { deep: !0 });
|
|
376
|
-
let { isPrinting:
|
|
377
|
-
elementId: `treemap_${
|
|
372
|
+
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = le({
|
|
373
|
+
elementId: `treemap_${A.value}`,
|
|
378
374
|
fileName: I.value.style.chart.title.text || "vue-ui-treemap",
|
|
379
375
|
options: I.value.userOptions.print
|
|
380
|
-
}),
|
|
376
|
+
}), gn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), _n = m(() => ie(I.value.customPalette)), B = C({
|
|
381
377
|
showTable: I.value.table.show,
|
|
382
378
|
showTooltip: I.value.style.chart.tooltip.show,
|
|
383
379
|
showZoom: I.value.style.chart.zoom?.show ?? !1
|
|
384
380
|
});
|
|
385
|
-
|
|
381
|
+
D(I, () => {
|
|
386
382
|
B.value = {
|
|
387
383
|
showTable: I.value.table.show,
|
|
388
384
|
showTooltip: I.value.style.chart.tooltip.show,
|
|
389
385
|
showZoom: I.value.style.chart.zoom?.show ?? !1
|
|
390
386
|
};
|
|
391
387
|
}, { immediate: !0 });
|
|
392
|
-
let
|
|
388
|
+
let vn = C({
|
|
393
389
|
height: I.value.style.chart.height,
|
|
394
390
|
width: I.value.style.chart.width
|
|
395
391
|
});
|
|
396
|
-
function
|
|
397
|
-
let t = N.value, n =
|
|
392
|
+
function yn(e) {
|
|
393
|
+
let t = N.value, n = vn.value.height;
|
|
398
394
|
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
399
395
|
}
|
|
400
|
-
function
|
|
396
|
+
function bn() {
|
|
401
397
|
if (!Jt.value || X.value.length <= 1) return 0;
|
|
402
398
|
let e = Jt.value, t = getComputedStyle(e);
|
|
403
|
-
return
|
|
399
|
+
return yn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
404
400
|
}
|
|
405
401
|
let V = m(() => {
|
|
406
|
-
let e = I.value.style.chart.padding, t =
|
|
402
|
+
let e = I.value.style.chart.padding, t = vn.value.width, n = vn.value.height, r = bn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
|
|
407
403
|
return {
|
|
408
404
|
left: i,
|
|
409
405
|
top: o,
|
|
@@ -415,34 +411,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
415
411
|
vbHeight: n - r,
|
|
416
412
|
offsetY: r
|
|
417
413
|
};
|
|
418
|
-
}), H =
|
|
419
|
-
|
|
414
|
+
}), H = C(l(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
|
|
415
|
+
D([H, () => I.value], () => {
|
|
420
416
|
Qt.value = null, $t.value = /* @__PURE__ */ new Map();
|
|
421
|
-
}, { deep: !0 }),
|
|
422
|
-
Qt.value = null, $t.value = /* @__PURE__ */ new Map(),
|
|
423
|
-
}, { deep: !0 }),
|
|
417
|
+
}, { deep: !0 }), D(() => M.value, () => {
|
|
418
|
+
Qt.value = null, $t.value = /* @__PURE__ */ new Map(), Tn(), qt.value += 1, Kt.value += 1;
|
|
419
|
+
}, { deep: !0 }), D([() => vn.value.width, () => vn.value.height], () => {
|
|
424
420
|
$t.value = /* @__PURE__ */ new Map();
|
|
425
421
|
});
|
|
426
|
-
function
|
|
422
|
+
function Sn(e) {
|
|
427
423
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
428
424
|
e.id ||= ee(), e.sourceColor === void 0 && (e.sourceColor = s(e.color) || null);
|
|
429
|
-
let n = e.sourceColor ||
|
|
430
|
-
n = s(n),
|
|
425
|
+
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || o[t] || o[t % o.length];
|
|
426
|
+
n = s(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
431
427
|
});
|
|
432
428
|
}
|
|
433
|
-
function
|
|
429
|
+
function Cn(e, t) {
|
|
434
430
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
435
431
|
n.id ||= ee(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = s(n.color) || null);
|
|
436
432
|
let r = n.sourceColor || t;
|
|
437
|
-
n.color = r,
|
|
433
|
+
n.color = r, Cn(n, r);
|
|
438
434
|
});
|
|
439
435
|
}
|
|
440
|
-
function
|
|
436
|
+
function wn(e) {
|
|
441
437
|
let t = Y(e);
|
|
442
438
|
for (; t?.parentId;) t = Y(t.parentId);
|
|
443
439
|
return t?.id ?? null;
|
|
444
440
|
}
|
|
445
|
-
function
|
|
441
|
+
function Tn() {
|
|
446
442
|
let e = H.value.filter((e) => !M.value.includes(e.id));
|
|
447
443
|
if (!P.value.length) {
|
|
448
444
|
U.value = e;
|
|
@@ -453,31 +449,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
453
449
|
P.value = [], U.value = e;
|
|
454
450
|
return;
|
|
455
451
|
}
|
|
456
|
-
let r =
|
|
452
|
+
let r = wn(n.id);
|
|
457
453
|
if (r && M.value.includes(r)) {
|
|
458
454
|
P.value = [], U.value = e;
|
|
459
455
|
return;
|
|
460
456
|
}
|
|
461
457
|
U.value = [n];
|
|
462
458
|
}
|
|
463
|
-
|
|
464
|
-
H.value = l(
|
|
459
|
+
D(() => on.value, () => {
|
|
460
|
+
H.value = l(on.value), Sn(H.value), Tn(), qt.value += 1, Kt.value += 1;
|
|
465
461
|
}, {
|
|
466
462
|
deep: !0,
|
|
467
463
|
immediate: !0,
|
|
468
464
|
flush: "post"
|
|
469
465
|
});
|
|
470
|
-
let W =
|
|
471
|
-
|
|
472
|
-
Yt.value = !0,
|
|
466
|
+
let W = T(null), En = T(null);
|
|
467
|
+
ze(() => {
|
|
468
|
+
Yt.value = !0, On();
|
|
469
|
+
});
|
|
470
|
+
let Dn = m(() => I.value.debug);
|
|
471
|
+
ze(() => {
|
|
472
|
+
Ft["chart-background"] && Dn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
473
473
|
});
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
if (f(A.dataset) && re({
|
|
474
|
+
function On() {
|
|
475
|
+
if (f(k.dataset) && re({
|
|
477
476
|
componentName: "VueUiTreemap",
|
|
478
477
|
type: "dataset",
|
|
479
|
-
debug:
|
|
480
|
-
}),
|
|
478
|
+
debug: Dn.value
|
|
479
|
+
}), Sn(H.value), f(k.dataset) || (sn.value = I.value.loading), I.value.responsive) {
|
|
481
480
|
let e = ye(() => {
|
|
482
481
|
let { width: e, height: t } = be({
|
|
483
482
|
chart: N.value,
|
|
@@ -487,60 +486,60 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
487
486
|
noTitle: Wt.value
|
|
488
487
|
});
|
|
489
488
|
requestAnimationFrame(() => {
|
|
490
|
-
|
|
489
|
+
vn.value.width = e, vn.value.height = t - 12;
|
|
491
490
|
});
|
|
492
491
|
});
|
|
493
|
-
W.value && (
|
|
492
|
+
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value = N.value.parentNode, W.value.observe(En.value);
|
|
494
493
|
}
|
|
495
494
|
}
|
|
496
|
-
|
|
497
|
-
W.value && (
|
|
495
|
+
Re(() => {
|
|
496
|
+
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect());
|
|
498
497
|
});
|
|
499
|
-
let
|
|
498
|
+
let kn = m(() => U.value.map((e, t) => ({
|
|
500
499
|
...e,
|
|
501
|
-
color: s(e.color) ||
|
|
502
|
-
})).filter((e) => !M.value.includes(e.id))),
|
|
500
|
+
color: s(e.color) || _n.value[t] || o[t] || o[t % o.length]
|
|
501
|
+
})).filter((e) => !M.value.includes(e.id))), An = m(() => H.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = m({
|
|
503
502
|
get() {
|
|
504
|
-
let e = [...
|
|
505
|
-
return I.value.style.chart.layout.sorted && (e = [...
|
|
503
|
+
let e = [...kn.value];
|
|
504
|
+
return I.value.style.chart.layout.sorted && (e = [...kn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
506
505
|
},
|
|
507
506
|
set(e) {
|
|
508
507
|
return e;
|
|
509
508
|
}
|
|
510
509
|
});
|
|
511
|
-
function
|
|
510
|
+
function Mn(e, t) {
|
|
512
511
|
return e.value / t;
|
|
513
512
|
}
|
|
514
|
-
function
|
|
515
|
-
let r = I.value.style.chart.layout.rects.colorRatio -
|
|
513
|
+
function Nn(e, t, n) {
|
|
514
|
+
let r = I.value.style.chart.layout.rects.colorRatio - Mn(t, n);
|
|
516
515
|
return a(e, r < 0 ? 0 : r);
|
|
517
516
|
}
|
|
518
|
-
function
|
|
517
|
+
function Pn(e) {
|
|
519
518
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
520
519
|
}
|
|
521
|
-
function
|
|
520
|
+
function Fn(e) {
|
|
522
521
|
return [...e].sort((e, t) => {
|
|
523
|
-
let n =
|
|
522
|
+
let n = Pn(e), r = Pn(t);
|
|
524
523
|
if (n !== r) return n - r;
|
|
525
524
|
let i = Number(e.value) || 0;
|
|
526
525
|
return (Number(t.value) || 0) - i;
|
|
527
526
|
});
|
|
528
527
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
531
|
-
let c = e.sourceColor || s(e.color) || s(t) ||
|
|
528
|
+
function In(e, t, n, r, i) {
|
|
529
|
+
return Fn(e).map((e, a) => {
|
|
530
|
+
let c = e.sourceColor || s(e.color) || s(t) || _n.value[a] || o[a] || o[a % o.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, r), u = Mn(e, r), d = i ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
532
531
|
return {
|
|
533
532
|
...e,
|
|
534
533
|
color: l,
|
|
535
534
|
proportion: u,
|
|
536
535
|
parentName: n,
|
|
537
536
|
rootId: d,
|
|
538
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
537
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, f, d) : void 0
|
|
539
538
|
};
|
|
540
539
|
});
|
|
541
540
|
}
|
|
542
|
-
function
|
|
543
|
-
let t =
|
|
541
|
+
function Ln(e) {
|
|
542
|
+
let t = Xn(e), n = Rn(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;
|
|
544
543
|
return u <= l || f <= d ? null : {
|
|
545
544
|
x0: l,
|
|
546
545
|
y0: d,
|
|
@@ -548,19 +547,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
548
547
|
y1: f
|
|
549
548
|
};
|
|
550
549
|
}
|
|
551
|
-
function
|
|
552
|
-
return I.value.style.chart.layout.labels.hideUnderProportion === 0 ||
|
|
550
|
+
function Rn(e) {
|
|
551
|
+
return I.value.style.chart.layout.labels.hideUnderProportion === 0 || zn(e);
|
|
553
552
|
}
|
|
554
|
-
function
|
|
553
|
+
function zn(e) {
|
|
555
554
|
let t = Number(I.value.style.chart.layout.labels.hideUnderProportion);
|
|
556
555
|
return !Number.isFinite(t) || t <= 0 || e.proportion > t;
|
|
557
556
|
}
|
|
558
|
-
function
|
|
557
|
+
function Bn(e, t, n = 0, r = null) {
|
|
559
558
|
if (!Array.isArray(e) || !e.length) return [];
|
|
560
559
|
let i = e.map((e) => {
|
|
561
560
|
let { children: t, ...n } = e;
|
|
562
561
|
return { ...n };
|
|
563
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s =
|
|
562
|
+
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Qe(i, t), c = [];
|
|
564
563
|
for (let e of s) {
|
|
565
564
|
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
566
565
|
...e,
|
|
@@ -569,19 +568,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
569
568
|
color: i?.color ?? e.color ?? null,
|
|
570
569
|
children: t,
|
|
571
570
|
isVisibleNode: !0,
|
|
572
|
-
showLabel:
|
|
571
|
+
showLabel: Rn(e)
|
|
573
572
|
};
|
|
574
573
|
if (c.push(s), t.length) {
|
|
575
|
-
let r =
|
|
576
|
-
r && c.push(...
|
|
574
|
+
let r = Ln(s);
|
|
575
|
+
r && c.push(...Bn(t, r, n + 1, e.id));
|
|
577
576
|
}
|
|
578
577
|
}
|
|
579
578
|
return c;
|
|
580
579
|
}
|
|
581
|
-
let
|
|
582
|
-
let e = U.value.length ? U.value :
|
|
583
|
-
return
|
|
584
|
-
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || s(e.color) ||
|
|
580
|
+
let Vn = m(() => {
|
|
581
|
+
let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
582
|
+
return Bn(e.map((e, n) => {
|
|
583
|
+
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || s(e.color) || xn.value.get(e.id) || _n.value[n] || o[n] || o[n % o.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
|
|
585
584
|
return {
|
|
586
585
|
...a,
|
|
587
586
|
id: e.id || ee(),
|
|
@@ -590,7 +589,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
590
589
|
value: e.value,
|
|
591
590
|
color: l,
|
|
592
591
|
proportion: (Number(e.value) || 0) / t,
|
|
593
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
592
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, r || 1) : void 0
|
|
594
593
|
};
|
|
595
594
|
}), {
|
|
596
595
|
x0: V.value.left,
|
|
@@ -598,9 +597,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
598
597
|
x1: V.value.left + V.value.width,
|
|
599
598
|
y1: V.value.top + V.value.height
|
|
600
599
|
});
|
|
601
|
-
}), G = m(() =>
|
|
602
|
-
function
|
|
603
|
-
return (Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth) *
|
|
600
|
+
}), G = m(() => Vn.value);
|
|
601
|
+
function Hn(e) {
|
|
602
|
+
return (Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth) * Mr.value;
|
|
604
603
|
}
|
|
605
604
|
function K({ y0: e, y1: t }) {
|
|
606
605
|
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
@@ -608,22 +607,22 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
608
607
|
function q({ x0: e, x1: t }) {
|
|
609
608
|
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
610
609
|
}
|
|
611
|
-
function
|
|
610
|
+
function Un() {
|
|
612
611
|
let e = I.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));
|
|
613
612
|
return {
|
|
614
613
|
lowerBound: r,
|
|
615
614
|
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
616
615
|
};
|
|
617
616
|
}
|
|
618
|
-
function
|
|
617
|
+
function Wn(e) {
|
|
619
618
|
let t = Math.min(4, Math.max(e * .25, .5));
|
|
620
619
|
return {
|
|
621
620
|
paddingX: t,
|
|
622
621
|
paddingTop: t
|
|
623
622
|
};
|
|
624
623
|
}
|
|
625
|
-
function
|
|
626
|
-
let { paddingX: n, paddingTop: r } =
|
|
624
|
+
function Gn(e, t) {
|
|
625
|
+
let { paddingX: n, paddingTop: r } = Wn(t), i = t * 1.1;
|
|
627
626
|
return {
|
|
628
627
|
x: e.x0 + n,
|
|
629
628
|
y: e.y0 + r,
|
|
@@ -632,7 +631,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
632
631
|
lineHeight: i
|
|
633
632
|
};
|
|
634
633
|
}
|
|
635
|
-
function
|
|
634
|
+
function Kn(e, t) {
|
|
636
635
|
return d(I.value.style.chart.layout.labels.formatter, e.value, c({
|
|
637
636
|
p: I.value.style.chart.layout.labels.prefix,
|
|
638
637
|
v: e.value,
|
|
@@ -643,31 +642,31 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
643
642
|
seriesIndex: t
|
|
644
643
|
});
|
|
645
644
|
}
|
|
646
|
-
function
|
|
647
|
-
let n =
|
|
645
|
+
function qn(e, t) {
|
|
646
|
+
let n = Kn(e, t);
|
|
648
647
|
return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
|
|
649
648
|
}
|
|
650
|
-
function
|
|
651
|
-
let r =
|
|
652
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) =>
|
|
649
|
+
function Jn(e, t, n) {
|
|
650
|
+
let r = qn(e, n), i = Gn(e, t);
|
|
651
|
+
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => ui(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
653
652
|
}
|
|
654
|
-
function
|
|
655
|
-
let i =
|
|
653
|
+
function Yn(e, t, n, r) {
|
|
654
|
+
let i = qn(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);
|
|
656
655
|
return Math.max(n, Math.min(r, u, d));
|
|
657
656
|
}
|
|
658
|
-
function
|
|
659
|
-
let { lowerBound: n, upperBound: r } =
|
|
660
|
-
if (
|
|
657
|
+
function Xn(e, t) {
|
|
658
|
+
let { lowerBound: n, upperBound: r } = Un(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Yn(e, t, n, r));
|
|
659
|
+
if (Jn(e, o, t) || !Jn(e, n, t)) return o;
|
|
661
660
|
let s = n, c = o, l = n;
|
|
662
661
|
for (let n = 0; n < 8; n += 1) {
|
|
663
662
|
let n = (s + c) / 2;
|
|
664
|
-
|
|
663
|
+
Jn(e, n, t) ? (l = n, s = n) : c = n;
|
|
665
664
|
}
|
|
666
665
|
let u = Math.max(n, o * .7);
|
|
667
666
|
return l >= u ? l : o;
|
|
668
667
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
668
|
+
function Zn(e) {
|
|
669
|
+
j.value = e, Bt.value += 1;
|
|
671
670
|
}
|
|
672
671
|
let J = m(() => ({
|
|
673
672
|
x: 0,
|
|
@@ -685,7 +684,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
685
684
|
}
|
|
686
685
|
return null;
|
|
687
686
|
}
|
|
688
|
-
function
|
|
687
|
+
function Qn(e) {
|
|
689
688
|
let t = [], n = Y(e);
|
|
690
689
|
for (; n && n.parentId;) {
|
|
691
690
|
let e = Y(n.parentId);
|
|
@@ -694,23 +693,23 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
694
693
|
}
|
|
695
694
|
return t;
|
|
696
695
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
699
|
-
U.value = H.value.slice(), P.value = [],
|
|
696
|
+
let $n = m(() => P.value.length > 0);
|
|
697
|
+
function er() {
|
|
698
|
+
U.value = H.value.slice(), P.value = [], ot("selectDatapoint", void 0);
|
|
700
699
|
}
|
|
701
|
-
function
|
|
700
|
+
function tr() {
|
|
702
701
|
return P.value[P.value.length - 1] ?? null;
|
|
703
702
|
}
|
|
704
|
-
function
|
|
705
|
-
P.value = [...
|
|
703
|
+
function nr(e, t, n) {
|
|
704
|
+
P.value = [...Qn(e.id), e.id], U.value = [e], I.value.events.datapointClick && I.value.events.datapointClick({
|
|
706
705
|
datapoint: t ?? e,
|
|
707
706
|
seriesIndex: n
|
|
708
|
-
}),
|
|
707
|
+
}), ot("selectDatapoint", t ?? e);
|
|
709
708
|
}
|
|
710
|
-
function
|
|
711
|
-
let n =
|
|
709
|
+
function rr(e, t) {
|
|
710
|
+
let n = tr();
|
|
712
711
|
if (!n) {
|
|
713
|
-
|
|
712
|
+
er();
|
|
714
713
|
return;
|
|
715
714
|
}
|
|
716
715
|
let r = Y(n);
|
|
@@ -718,35 +717,35 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
718
717
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
719
718
|
datapoint: e,
|
|
720
719
|
seriesIndex: t
|
|
721
|
-
}),
|
|
720
|
+
}), er();
|
|
722
721
|
return;
|
|
723
722
|
}
|
|
724
723
|
let i = Y(r.parentId);
|
|
725
724
|
if (!i) {
|
|
726
|
-
|
|
725
|
+
er();
|
|
727
726
|
return;
|
|
728
727
|
}
|
|
729
|
-
P.value = [...
|
|
728
|
+
P.value = [...Qn(i.id), i.id], U.value = [i], I.value.events.datapointClick && I.value.events.datapointClick({
|
|
730
729
|
datapoint: e,
|
|
731
730
|
seriesIndex: t
|
|
732
|
-
}),
|
|
731
|
+
}), ot("selectDatapoint", e);
|
|
733
732
|
}
|
|
734
|
-
function
|
|
733
|
+
function ir(e, t) {
|
|
735
734
|
if (!e) {
|
|
736
|
-
|
|
735
|
+
er();
|
|
737
736
|
return;
|
|
738
737
|
}
|
|
739
738
|
let n = Y(e.id);
|
|
740
739
|
if (n) {
|
|
741
|
-
if (
|
|
742
|
-
|
|
740
|
+
if (tr() === n.id) {
|
|
741
|
+
rr(e, t);
|
|
743
742
|
return;
|
|
744
743
|
}
|
|
745
|
-
|
|
744
|
+
nr(n, e, t);
|
|
746
745
|
}
|
|
747
746
|
}
|
|
748
|
-
function
|
|
749
|
-
return e ?
|
|
747
|
+
function ar(e) {
|
|
748
|
+
return e ? tr() === e.id : !1;
|
|
750
749
|
}
|
|
751
750
|
let X = m(() => {
|
|
752
751
|
let e = [{
|
|
@@ -763,9 +762,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
763
762
|
});
|
|
764
763
|
}
|
|
765
764
|
return e;
|
|
766
|
-
}), Z =
|
|
765
|
+
}), Z = T(null), or = m(() => H.value.map((e, t) => ({
|
|
767
766
|
...e,
|
|
768
|
-
color: s(e.color) ||
|
|
767
|
+
color: s(e.color) || _n.value[t] || o[t] || o[t % o.length],
|
|
769
768
|
shape: "square"
|
|
770
769
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
771
770
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -773,70 +772,70 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
773
772
|
...e,
|
|
774
773
|
proportion: n,
|
|
775
774
|
isSegregated: M.value.includes(e.id),
|
|
776
|
-
segregate: () =>
|
|
775
|
+
segregate: () => ur(e),
|
|
777
776
|
opacity: M.value.includes(e.id) ? .5 : 1,
|
|
778
777
|
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? d(I.value.style.chart.layout.labels.formatter, e.value, c({
|
|
779
778
|
p: I.value.style.chart.layout.labels.prefix,
|
|
780
779
|
v: e.value,
|
|
781
780
|
s: I.value.style.chart.layout.labels.suffix,
|
|
782
781
|
r: I.value.style.chart.legend.roundingValue
|
|
783
|
-
}), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
782
|
+
}), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / An.value) ? "-" : (e.value / An.value * 100).toFixed(I.value.style.chart.legend.roundingPercentage)}%${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
784
783
|
};
|
|
785
|
-
})),
|
|
784
|
+
})), sr = m(() => ({
|
|
786
785
|
cy: "treemap-div-legend",
|
|
787
786
|
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
788
787
|
color: I.value.style.chart.legend.color,
|
|
789
788
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
790
789
|
paddingBottom: 12,
|
|
791
790
|
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
792
|
-
})),
|
|
793
|
-
function
|
|
794
|
-
M.value.length ? M.value = [] :
|
|
791
|
+
})), cr = m(() => M.value.length === or.value.length);
|
|
792
|
+
function lr() {
|
|
793
|
+
M.value.length ? M.value = [] : or.value.forEach((e) => {
|
|
795
794
|
M.value.push(e.id);
|
|
796
|
-
}),
|
|
795
|
+
}), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
|
|
797
796
|
}
|
|
798
|
-
function
|
|
799
|
-
Z.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length <
|
|
797
|
+
function ur(e) {
|
|
798
|
+
Z.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length < k.dataset.length - 1 && M.value.push(e.id), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
|
|
800
799
|
}
|
|
801
|
-
function
|
|
802
|
-
return H.value.length ? H.value.find((t) => t.name === e) || (
|
|
800
|
+
function dr(e) {
|
|
801
|
+
return H.value.length ? H.value.find((t) => t.name === e) || (Dn.value && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (Dn.value && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
803
802
|
}
|
|
804
|
-
function
|
|
805
|
-
let t =
|
|
806
|
-
t !== null && M.value.includes(t.id) &&
|
|
803
|
+
function fr(e) {
|
|
804
|
+
let t = dr(e);
|
|
805
|
+
t !== null && M.value.includes(t.id) && ur({ id: t.id });
|
|
807
806
|
}
|
|
808
|
-
function
|
|
809
|
-
let t =
|
|
810
|
-
t !== null && (M.value.includes(t.id) ||
|
|
807
|
+
function pr(e) {
|
|
808
|
+
let t = dr(e);
|
|
809
|
+
t !== null && (M.value.includes(t.id) || ur({ id: t.id }));
|
|
811
810
|
}
|
|
812
|
-
function
|
|
813
|
-
Z.value = null,
|
|
811
|
+
function mr({ datapoint: e, seriesIndex: t }) {
|
|
812
|
+
Z.value = null, Rt.value = !1, F.value = null, tn.value = "pointer", I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
814
813
|
datapoint: e,
|
|
815
814
|
seriesIndex: t
|
|
816
815
|
});
|
|
817
816
|
}
|
|
818
|
-
let
|
|
819
|
-
function
|
|
820
|
-
if (
|
|
817
|
+
let hr = C(null);
|
|
818
|
+
function gr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
819
|
+
if (cr.value || n === "pointer" && Er.value) return;
|
|
821
820
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
822
821
|
datapoint: e,
|
|
823
822
|
seriesIndex: t
|
|
824
|
-
}), F.value = t,
|
|
823
|
+
}), F.value = t, tn.value = n, Z.value = e, hr.value = {
|
|
825
824
|
datapoint: e,
|
|
826
825
|
seriesIndex: t,
|
|
827
826
|
config: I.value,
|
|
828
|
-
series:
|
|
827
|
+
series: kn.value
|
|
829
828
|
};
|
|
830
829
|
let r = I.value.style.chart.tooltip.customFormat;
|
|
831
830
|
if (ae(r) && u(() => r({
|
|
832
831
|
seriesIndex: t,
|
|
833
832
|
datapoint: e,
|
|
834
|
-
series:
|
|
833
|
+
series: kn.value,
|
|
835
834
|
config: I.value
|
|
836
|
-
})))
|
|
835
|
+
}))) zt.value = r({
|
|
837
836
|
seriesIndex: t,
|
|
838
837
|
datapoint: e,
|
|
839
|
-
series:
|
|
838
|
+
series: kn.value,
|
|
840
839
|
config: I.value
|
|
841
840
|
});
|
|
842
841
|
else {
|
|
@@ -849,9 +848,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
849
848
|
}), {
|
|
850
849
|
datapoint: e,
|
|
851
850
|
seriesIndex: t
|
|
852
|
-
})}</b>`,
|
|
851
|
+
})}</b>`, zt.value = `<div>${n}</div>`;
|
|
853
852
|
}
|
|
854
|
-
|
|
853
|
+
Rt.value = !0;
|
|
855
854
|
}
|
|
856
855
|
let Q = m(() => ({
|
|
857
856
|
head: G.value.map((e) => ({
|
|
@@ -860,13 +859,13 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
860
859
|
})),
|
|
861
860
|
body: G.value.map((e) => e.value)
|
|
862
861
|
}));
|
|
863
|
-
function
|
|
864
|
-
|
|
862
|
+
function _r(e = null) {
|
|
863
|
+
Ie(() => {
|
|
865
864
|
let r = Q.value.head.map((e, t) => [
|
|
866
865
|
[e.name],
|
|
867
866
|
[Q.value.body[t]],
|
|
868
|
-
[isNaN(Q.value.body[t] /
|
|
869
|
-
]), i =
|
|
867
|
+
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
868
|
+
]), i = [
|
|
870
869
|
[I.value.style.chart.title.text],
|
|
871
870
|
[I.value.style.chart.title.subtitle.text],
|
|
872
871
|
[
|
|
@@ -874,14 +873,14 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
874
873
|
["val"],
|
|
875
874
|
["%"]
|
|
876
875
|
]
|
|
877
|
-
].concat(r));
|
|
878
|
-
e ? e(
|
|
879
|
-
csvContent:
|
|
876
|
+
].concat(r), a = n(i);
|
|
877
|
+
e ? e(a) : t({
|
|
878
|
+
csvContent: a,
|
|
880
879
|
title: I.value.style.chart.title.text || "vue-ui-treemap"
|
|
881
880
|
});
|
|
882
881
|
});
|
|
883
882
|
}
|
|
884
|
-
let
|
|
883
|
+
let vr = m(() => {
|
|
885
884
|
let e = [
|
|
886
885
|
I.value.table.columnNames.series,
|
|
887
886
|
I.value.table.columnNames.value,
|
|
@@ -900,8 +899,8 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
900
899
|
shape: "square"
|
|
901
900
|
},
|
|
902
901
|
n,
|
|
903
|
-
isNaN(Q.value.body[t] /
|
|
904
|
-
v: Q.value.body[t] /
|
|
902
|
+
isNaN(Q.value.body[t] / An.value) ? "-" : c({
|
|
903
|
+
v: Q.value.body[t] / An.value * 100,
|
|
905
904
|
s: "%",
|
|
906
905
|
r: I.value.table.td.roundingPercentage
|
|
907
906
|
})
|
|
@@ -926,36 +925,36 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
926
925
|
config: n
|
|
927
926
|
};
|
|
928
927
|
});
|
|
929
|
-
function
|
|
928
|
+
function yr() {
|
|
930
929
|
return G.value;
|
|
931
930
|
}
|
|
932
|
-
function
|
|
931
|
+
function br() {
|
|
933
932
|
B.value.showTable = !B.value.showTable;
|
|
934
933
|
}
|
|
935
|
-
function
|
|
934
|
+
function xr() {
|
|
936
935
|
B.value.showTooltip = !B.value.showTooltip;
|
|
937
936
|
}
|
|
938
|
-
function
|
|
937
|
+
function Sr() {
|
|
939
938
|
B.value.showZoom = !B.value.showZoom;
|
|
940
939
|
}
|
|
941
|
-
let
|
|
942
|
-
function
|
|
943
|
-
|
|
940
|
+
let Cr = C(!1);
|
|
941
|
+
function wr() {
|
|
942
|
+
Cr.value = !Cr.value;
|
|
944
943
|
}
|
|
945
|
-
let
|
|
944
|
+
let Tr = m(() => !Cr.value && B.value.showZoom), Er = C(null), Dr = C(!1), { viewBox: $, resetZoom: Or, isZoom: kr, setInitialViewBox: Ar, scale: jr } = Oe(z, {
|
|
946
945
|
x: J.value.x,
|
|
947
946
|
y: J.value.y,
|
|
948
947
|
width: Math.max(10, J.value.width),
|
|
949
948
|
height: Math.max(10, J.value.height)
|
|
950
|
-
}, 1,
|
|
951
|
-
|
|
949
|
+
}, 1, Tr), Mr = m(() => 1 / jr.value), Nr = m(() => Math.min(1, I.value.style.chart.layout.labels.fontSizeZoomFactor / Math.max(jr.value, 1e-4))), Pr = m(() => `scale(${Nr.value})`), Fr = m(() => B.value.showZoom || kr.value);
|
|
950
|
+
D([
|
|
952
951
|
() => J.value.x,
|
|
953
952
|
() => J.value.y,
|
|
954
953
|
() => J.value.width,
|
|
955
954
|
() => J.value.height
|
|
956
955
|
], () => {
|
|
957
|
-
|
|
958
|
-
|
|
956
|
+
Ie(() => {
|
|
957
|
+
Ar({
|
|
959
958
|
x: J.value.x,
|
|
960
959
|
y: J.value.y,
|
|
961
960
|
width: Math.max(10, J.value.width),
|
|
@@ -963,33 +962,33 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
963
962
|
});
|
|
964
963
|
});
|
|
965
964
|
}, { immediate: !0 });
|
|
966
|
-
function
|
|
967
|
-
|
|
965
|
+
function Ir(e) {
|
|
966
|
+
Tr.value && (e.button === void 0 || e.button === 0) && (Er.value = {
|
|
968
967
|
x: e.clientX,
|
|
969
968
|
y: e.clientY
|
|
970
|
-
},
|
|
969
|
+
}, Dr.value = !1);
|
|
971
970
|
}
|
|
972
|
-
function
|
|
973
|
-
if (!
|
|
974
|
-
let t = e.clientX -
|
|
975
|
-
Math.hypot(t, n) >
|
|
971
|
+
function Lr(e) {
|
|
972
|
+
if (!Tr.value || !Er.value) return;
|
|
973
|
+
let t = e.clientX - Er.value.x, n = e.clientY - Er.value.y;
|
|
974
|
+
Math.hypot(t, n) > Pt && (Dr.value = !0);
|
|
976
975
|
}
|
|
977
|
-
function
|
|
978
|
-
|
|
979
|
-
|
|
976
|
+
function Rr() {
|
|
977
|
+
Er.value = null, Dr.value && window.setTimeout(() => {
|
|
978
|
+
Dr.value = !1;
|
|
980
979
|
}, 0);
|
|
981
980
|
}
|
|
982
|
-
function
|
|
983
|
-
|
|
981
|
+
function zr(e, t) {
|
|
982
|
+
Dr.value || ir(e, t);
|
|
984
983
|
}
|
|
985
|
-
let
|
|
986
|
-
function
|
|
987
|
-
|
|
984
|
+
let Br = C(null);
|
|
985
|
+
function Vr(e) {
|
|
986
|
+
Br.value = e;
|
|
988
987
|
}
|
|
989
|
-
function
|
|
990
|
-
|
|
988
|
+
function Hr() {
|
|
989
|
+
Br.value = null;
|
|
991
990
|
}
|
|
992
|
-
async function
|
|
991
|
+
async function Ur({ scale: e = 2 } = {}) {
|
|
993
992
|
if (!N.value) return;
|
|
994
993
|
let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
|
|
995
994
|
domElement: N.value,
|
|
@@ -1006,17 +1005,17 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1006
1005
|
aspectRatio: r
|
|
1007
1006
|
};
|
|
1008
1007
|
}
|
|
1009
|
-
let
|
|
1008
|
+
let Wr = m(() => {
|
|
1010
1009
|
let e = I.value.table.useDialog && !I.value.table.show, t = B.value.showTable;
|
|
1011
1010
|
return {
|
|
1012
|
-
component: e ?
|
|
1011
|
+
component: e ? nt : Ze,
|
|
1013
1012
|
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1014
1013
|
props: e ? {
|
|
1015
1014
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
1016
1015
|
color: I.value.table.th.color,
|
|
1017
1016
|
headerColor: I.value.table.th.color,
|
|
1018
1017
|
headerBg: I.value.table.th.backgroundColor,
|
|
1019
|
-
isFullscreen:
|
|
1018
|
+
isFullscreen: j.value,
|
|
1020
1019
|
fullscreenParent: N.value,
|
|
1021
1020
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1022
1021
|
isCursorPointer: L.value
|
|
@@ -1037,51 +1036,26 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1037
1036
|
}
|
|
1038
1037
|
};
|
|
1039
1038
|
});
|
|
1040
|
-
|
|
1039
|
+
D(() => B.value.showTable, (e) => {
|
|
1041
1040
|
I.value.table.show || (e && I.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
|
|
1042
1041
|
});
|
|
1043
|
-
function
|
|
1042
|
+
function Gr() {
|
|
1044
1043
|
B.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
|
|
1045
1044
|
}
|
|
1046
|
-
let
|
|
1045
|
+
let Kr = m(() => or.value.map((e) => ({
|
|
1047
1046
|
...e,
|
|
1048
1047
|
name: e.display
|
|
1049
|
-
}))),
|
|
1048
|
+
}))), qr = m(() => I.value.style.chart.backgroundColor), Jr = m(() => I.value.style.chart.legend), Yr = m(() => I.value.style.chart.title), { isCallbackImaging: Xr, isCallbackSvg: Zr, generateSvg: Qr, onGenerateImage: $r } = me({
|
|
1050
1049
|
svg: z,
|
|
1051
|
-
title:
|
|
1052
|
-
legend:
|
|
1053
|
-
legendItems:
|
|
1054
|
-
backgroundColor:
|
|
1050
|
+
title: Yr,
|
|
1051
|
+
legend: Jr,
|
|
1052
|
+
legendItems: Kr,
|
|
1053
|
+
backgroundColor: qr,
|
|
1054
|
+
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
1055
|
+
generateImage: hn
|
|
1055
1056
|
});
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
try {
|
|
1059
|
-
if (e) {
|
|
1060
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Qr();
|
|
1061
|
-
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
1062
|
-
blob: e,
|
|
1063
|
-
url: t,
|
|
1064
|
-
text: n,
|
|
1065
|
-
dataUrl: r
|
|
1066
|
-
}));
|
|
1067
|
-
} else await Promise.resolve(Zr());
|
|
1068
|
-
} finally {
|
|
1069
|
-
tn.value = !1;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
function ei(e) {
|
|
1073
|
-
if (e?.stage === "start") {
|
|
1074
|
-
en.value = !0;
|
|
1075
|
-
return;
|
|
1076
|
-
}
|
|
1077
|
-
if (e?.stage === "end") {
|
|
1078
|
-
en.value = !1;
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
_n();
|
|
1082
|
-
}
|
|
1083
|
-
function ti(e, t) {
|
|
1084
|
-
let n = Qn(e, t), { paddingX: r, paddingTop: i } = Kn(n);
|
|
1057
|
+
function ei(e, t) {
|
|
1058
|
+
let n = Xn(e, t), { paddingX: r, paddingTop: i } = Wn(n);
|
|
1085
1059
|
return {
|
|
1086
1060
|
fontSize: n,
|
|
1087
1061
|
paddingX: r,
|
|
@@ -1089,28 +1063,28 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1089
1063
|
lineHeight: n * 1.1
|
|
1090
1064
|
};
|
|
1091
1065
|
}
|
|
1092
|
-
function
|
|
1066
|
+
function ti(e) {
|
|
1093
1067
|
return te(e.color ?? I.value.style.chart.backgroundColor);
|
|
1094
1068
|
}
|
|
1095
|
-
function
|
|
1069
|
+
function ni({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1096
1070
|
if (n === 0) return Infinity;
|
|
1097
1071
|
let r = e / (n + 1);
|
|
1098
1072
|
return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
|
|
1099
1073
|
}
|
|
1100
|
-
function
|
|
1074
|
+
function ri() {
|
|
1101
1075
|
return Number(I.value.style.chart.layout.labels.hideUnderProportion) === 0;
|
|
1102
1076
|
}
|
|
1103
|
-
function
|
|
1104
|
-
let t =
|
|
1105
|
-
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` :
|
|
1077
|
+
function ii(e) {
|
|
1078
|
+
let t = Nr.value;
|
|
1079
|
+
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Pr.value;
|
|
1106
1080
|
}
|
|
1107
|
-
function
|
|
1108
|
-
if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !
|
|
1109
|
-
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } =
|
|
1081
|
+
function ai({ rect: e, seriesIndex: t }) {
|
|
1082
|
+
if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !Rn(e)) return null;
|
|
1083
|
+
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = ei(e, t), o = ti(e), s = qn(e, t).map((e) => String(e ?? "")), c = Gn(e, n);
|
|
1110
1084
|
if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
|
|
1111
|
-
let l =
|
|
1085
|
+
let l = ri(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${A.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
|
|
1112
1086
|
return {
|
|
1113
|
-
key:
|
|
1087
|
+
key: oi(e),
|
|
1114
1088
|
clipId: d,
|
|
1115
1089
|
clipX: f,
|
|
1116
1090
|
clipY: ee,
|
|
@@ -1124,7 +1098,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1124
1098
|
text: t,
|
|
1125
1099
|
x: r,
|
|
1126
1100
|
y: i + a * s,
|
|
1127
|
-
maxZoomFactor:
|
|
1101
|
+
maxZoomFactor: ni({
|
|
1128
1102
|
availableHeight: c.height,
|
|
1129
1103
|
lineHeight: a,
|
|
1130
1104
|
lineIndex: s
|
|
@@ -1136,26 +1110,26 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1136
1110
|
}))
|
|
1137
1111
|
};
|
|
1138
1112
|
}
|
|
1139
|
-
function
|
|
1113
|
+
function oi(e) {
|
|
1140
1114
|
return `${e.id}`;
|
|
1141
1115
|
}
|
|
1142
|
-
let
|
|
1116
|
+
let si = m(() => Ft.rect || R.value || !I.value.style.chart.layout.labels.showDefaultLabels || cr.value ? [] : G.value.map((e, t) => e.showLabel ? ai({
|
|
1143
1117
|
rect: e,
|
|
1144
1118
|
seriesIndex: t
|
|
1145
|
-
}) : null).filter(Boolean)),
|
|
1146
|
-
function
|
|
1147
|
-
return typeof document > "u" ? null : (
|
|
1119
|
+
}) : null).filter(Boolean)), ci;
|
|
1120
|
+
function li() {
|
|
1121
|
+
return typeof document > "u" ? null : (ci ||= document.createElement("canvas"), ci.getContext("2d"));
|
|
1148
1122
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let r =
|
|
1123
|
+
function ui(e, t, n = 400) {
|
|
1124
|
+
let r = li();
|
|
1151
1125
|
return r ? (r.font = `${n} ${t}px ${I.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1152
1126
|
}
|
|
1153
|
-
function
|
|
1127
|
+
function di(e) {
|
|
1154
1128
|
let t = I.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1155
1129
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1156
1130
|
}
|
|
1157
|
-
async function
|
|
1158
|
-
if (
|
|
1131
|
+
async function fi() {
|
|
1132
|
+
if (ot("copyAlt", {
|
|
1159
1133
|
config: I.value,
|
|
1160
1134
|
dataset: G.value
|
|
1161
1135
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
@@ -1167,84 +1141,84 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1167
1141
|
dataset: G.value
|
|
1168
1142
|
}));
|
|
1169
1143
|
}
|
|
1170
|
-
function
|
|
1171
|
-
F.value = null,
|
|
1144
|
+
function pi() {
|
|
1145
|
+
F.value = null, nn.value = !0;
|
|
1172
1146
|
}
|
|
1173
|
-
function
|
|
1174
|
-
F.value = null,
|
|
1147
|
+
function mi() {
|
|
1148
|
+
F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null, nn.value = !1;
|
|
1175
1149
|
}
|
|
1176
|
-
function
|
|
1177
|
-
if (!z.value ||
|
|
1150
|
+
function hi(e) {
|
|
1151
|
+
if (!z.value || Cr.value || document.activeElement !== z.value || !G.value.length || cr.value) return;
|
|
1178
1152
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1179
1153
|
if (!t && !n && !r && !i) return;
|
|
1180
1154
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1181
|
-
F.value = null,
|
|
1155
|
+
F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null;
|
|
1182
1156
|
return;
|
|
1183
1157
|
}
|
|
1184
1158
|
if (r) {
|
|
1185
1159
|
if (F.value === null) return;
|
|
1186
1160
|
let e = G.value[F.value];
|
|
1187
1161
|
if (!e) return;
|
|
1188
|
-
|
|
1162
|
+
ir(e, F.value);
|
|
1189
1163
|
return;
|
|
1190
1164
|
}
|
|
1191
1165
|
let a = F.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;
|
|
1192
1166
|
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;
|
|
1193
1167
|
let l = G.value[a];
|
|
1194
|
-
l && (
|
|
1168
|
+
l && (gi(a), gr({
|
|
1195
1169
|
datapoint: l,
|
|
1196
1170
|
seriesIndex: a,
|
|
1197
1171
|
triggerMode: "keyboard"
|
|
1198
1172
|
}));
|
|
1199
1173
|
}
|
|
1200
|
-
function
|
|
1174
|
+
function gi(e) {
|
|
1201
1175
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1202
1176
|
let t = G.value[e];
|
|
1203
1177
|
if (!t) return;
|
|
1204
1178
|
let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
|
|
1205
|
-
|
|
1179
|
+
en.value = {
|
|
1206
1180
|
x: i.left + (n - $.value.x) / $.value.width * i.width,
|
|
1207
1181
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1208
1182
|
};
|
|
1209
1183
|
}
|
|
1210
|
-
let
|
|
1211
|
-
headers:
|
|
1212
|
-
rows:
|
|
1213
|
-
})),
|
|
1184
|
+
let _i = m(() => ({
|
|
1185
|
+
headers: vr.value?.colNames ?? [],
|
|
1186
|
+
rows: vr.value?.body ?? []
|
|
1187
|
+
})), vi = m(() => I.value.style.chart.color);
|
|
1214
1188
|
return ve({
|
|
1215
|
-
getData:
|
|
1216
|
-
getImage:
|
|
1217
|
-
generateCsv:
|
|
1218
|
-
generateImage:
|
|
1219
|
-
generateSvg:
|
|
1220
|
-
generatePdf:
|
|
1221
|
-
hideSeries:
|
|
1222
|
-
showSeries:
|
|
1223
|
-
toggleTable:
|
|
1224
|
-
toggleTooltip:
|
|
1225
|
-
toggleZoom:
|
|
1226
|
-
toggleAnnotator:
|
|
1227
|
-
toggleFullscreen:
|
|
1228
|
-
resetZoom:
|
|
1229
|
-
copyAlt:
|
|
1230
|
-
}), (e, t) => (
|
|
1189
|
+
getData: yr,
|
|
1190
|
+
getImage: Ur,
|
|
1191
|
+
generateCsv: _r,
|
|
1192
|
+
generateImage: hn,
|
|
1193
|
+
generateSvg: Qr,
|
|
1194
|
+
generatePdf: mn,
|
|
1195
|
+
hideSeries: pr,
|
|
1196
|
+
showSeries: fr,
|
|
1197
|
+
toggleTable: br,
|
|
1198
|
+
toggleTooltip: xr,
|
|
1199
|
+
toggleZoom: Sr,
|
|
1200
|
+
toggleAnnotator: wr,
|
|
1201
|
+
toggleFullscreen: Zn,
|
|
1202
|
+
resetZoom: Or,
|
|
1203
|
+
copyAlt: fi
|
|
1204
|
+
}), (e, t) => (S(), _("div", {
|
|
1231
1205
|
ref_key: "treemapChart",
|
|
1232
1206
|
ref: N,
|
|
1233
|
-
class:
|
|
1234
|
-
style:
|
|
1235
|
-
id: `treemap_${
|
|
1236
|
-
onMouseenter: t[3] ||= () =>
|
|
1237
|
-
onMouseleave: t[4] ||= () =>
|
|
1207
|
+
class: Le(`vue-data-ui-component vue-ui-treemap ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1208
|
+
style: x(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
1209
|
+
id: `treemap_${A.value}`,
|
|
1210
|
+
onMouseenter: t[3] ||= () => E(ln)(!0),
|
|
1211
|
+
onMouseleave: t[4] ||= () => E(ln)(!1)
|
|
1238
1212
|
}, [
|
|
1239
1213
|
v("div", {
|
|
1240
|
-
id: `chart-instructions-${
|
|
1214
|
+
id: `chart-instructions-${A.value}`,
|
|
1241
1215
|
class: "sr-only"
|
|
1242
|
-
}, [v("p", null,
|
|
1243
|
-
|
|
1216
|
+
}, [v("p", null, He(I.value.a11y.translations.keyboardNavigation), 1)], 8, ct),
|
|
1217
|
+
_i.value?.rows?.length ? (S(), h(we, {
|
|
1244
1218
|
key: 0,
|
|
1245
|
-
uid:
|
|
1246
|
-
head:
|
|
1247
|
-
body:
|
|
1219
|
+
uid: A.value,
|
|
1220
|
+
head: _i.value.headers,
|
|
1221
|
+
body: _i.value.rows,
|
|
1248
1222
|
notice: I.value.a11y.translations.tableAvailable,
|
|
1249
1223
|
caption: I.value.a11y.translations.tableCaption
|
|
1250
1224
|
}, null, 8, [
|
|
@@ -1254,21 +1228,21 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1254
1228
|
"notice",
|
|
1255
1229
|
"caption"
|
|
1256
1230
|
])) : g("", !0),
|
|
1257
|
-
I.value.userOptions.buttons.annotator ? (
|
|
1231
|
+
I.value.userOptions.buttons.annotator ? (S(), h(E(Xe), {
|
|
1258
1232
|
key: 1,
|
|
1259
|
-
svgRef:
|
|
1233
|
+
svgRef: E(z),
|
|
1260
1234
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1261
1235
|
color: I.value.style.chart.color,
|
|
1262
|
-
active:
|
|
1236
|
+
active: Cr.value,
|
|
1263
1237
|
isCursorPointer: L.value,
|
|
1264
|
-
onClose:
|
|
1238
|
+
onClose: wr
|
|
1265
1239
|
}, {
|
|
1266
|
-
"annotator-action-close":
|
|
1267
|
-
"annotator-action-color":
|
|
1268
|
-
"annotator-action-draw":
|
|
1269
|
-
"annotator-action-undo":
|
|
1270
|
-
"annotator-action-redo":
|
|
1271
|
-
"annotator-action-delete":
|
|
1240
|
+
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1241
|
+
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
|
|
1242
|
+
"annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
|
|
1243
|
+
"annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
|
|
1244
|
+
"annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
|
|
1245
|
+
"annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
|
|
1272
1246
|
_: 3
|
|
1273
1247
|
}, 8, [
|
|
1274
1248
|
"svgRef",
|
|
@@ -1277,19 +1251,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1277
1251
|
"active",
|
|
1278
1252
|
"isCursorPointer"
|
|
1279
1253
|
])) : g("", !0),
|
|
1280
|
-
|
|
1254
|
+
gn.value ? (S(), _("div", {
|
|
1281
1255
|
key: 2,
|
|
1282
1256
|
ref_key: "noTitle",
|
|
1283
1257
|
ref: Wt,
|
|
1284
1258
|
class: "vue-data-ui-no-title-space",
|
|
1285
1259
|
style: "height:36px; width: 100%;background:transparent"
|
|
1286
1260
|
}, null, 512)) : g("", !0),
|
|
1287
|
-
I.value.style.chart.title.text ? (
|
|
1261
|
+
I.value.style.chart.title.text ? (S(), _("div", {
|
|
1288
1262
|
key: 3,
|
|
1289
1263
|
ref_key: "chartTitle",
|
|
1290
1264
|
ref: Vt,
|
|
1291
|
-
style:
|
|
1292
|
-
}, [(
|
|
1265
|
+
style: x(`width:100%;background:${I.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1266
|
+
}, [(S(), h(_e, {
|
|
1293
1267
|
key: `title_${Gt.value}`,
|
|
1294
1268
|
config: {
|
|
1295
1269
|
title: {
|
|
@@ -1302,16 +1276,16 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1302
1276
|
}
|
|
1303
1277
|
}
|
|
1304
1278
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1305
|
-
v("div", { id: `legend-top-${
|
|
1306
|
-
I.value.userOptions.show &&
|
|
1279
|
+
v("div", { id: `legend-top-${A.value}` }, null, 8, lt),
|
|
1280
|
+
I.value.userOptions.show && It.value && (E(un) || E(cn)) ? (S(), h(E(et), {
|
|
1307
1281
|
ref_key: "userOptionsRef",
|
|
1308
1282
|
ref: Zt,
|
|
1309
1283
|
key: `user_option_${Bt.value}`,
|
|
1310
1284
|
backgroundColor: I.value.style.chart.backgroundColor,
|
|
1311
1285
|
color: I.value.style.chart.color,
|
|
1312
|
-
isPrinting:
|
|
1313
|
-
isImaging:
|
|
1314
|
-
uid:
|
|
1286
|
+
isPrinting: E(fn),
|
|
1287
|
+
isImaging: E(pn),
|
|
1288
|
+
uid: A.value,
|
|
1315
1289
|
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
|
|
1316
1290
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
1317
1291
|
hasXls: I.value.userOptions.buttons.csv,
|
|
@@ -1320,34 +1294,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1320
1294
|
hasTable: I.value.userOptions.buttons.table,
|
|
1321
1295
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1322
1296
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1323
|
-
isFullscreen:
|
|
1297
|
+
isFullscreen: j.value,
|
|
1324
1298
|
isTooltip: B.value.showTooltip,
|
|
1325
1299
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
1326
1300
|
chartElement: N.value,
|
|
1327
1301
|
position: I.value.userOptions.position,
|
|
1328
1302
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1329
|
-
isAnnotation:
|
|
1303
|
+
isAnnotation: Cr.value,
|
|
1330
1304
|
callbacks: I.value.userOptions.callbacks,
|
|
1331
1305
|
printScale: I.value.userOptions.print.scale,
|
|
1332
1306
|
tableDialog: I.value.table.useDialog,
|
|
1333
1307
|
isCursorPointer: L.value,
|
|
1334
1308
|
hasZoom: I.value.userOptions.buttons.zoom,
|
|
1335
1309
|
isZoom: B.value.showZoom,
|
|
1336
|
-
onToggleFullscreen:
|
|
1337
|
-
onGeneratePdf:
|
|
1338
|
-
onGenerateCsv:
|
|
1339
|
-
onGenerateImage:
|
|
1340
|
-
onGenerateSvg:
|
|
1341
|
-
onToggleTable:
|
|
1342
|
-
onToggleTooltip:
|
|
1343
|
-
onToggleAnnotator:
|
|
1344
|
-
onToggleZoom:
|
|
1345
|
-
onCopyAlt:
|
|
1346
|
-
style:
|
|
1310
|
+
onToggleFullscreen: Zn,
|
|
1311
|
+
onGeneratePdf: E(mn),
|
|
1312
|
+
onGenerateCsv: _r,
|
|
1313
|
+
onGenerateImage: E($r),
|
|
1314
|
+
onGenerateSvg: E(Qr),
|
|
1315
|
+
onToggleTable: br,
|
|
1316
|
+
onToggleTooltip: xr,
|
|
1317
|
+
onToggleAnnotator: wr,
|
|
1318
|
+
onToggleZoom: Sr,
|
|
1319
|
+
onCopyAlt: fi,
|
|
1320
|
+
style: x({ visibility: E(un) ? E(cn) ? "visible" : "hidden" : "visible" })
|
|
1347
1321
|
}, je({ _: 2 }, [
|
|
1348
1322
|
e.$slots.menuIcon ? {
|
|
1349
1323
|
name: "menuIcon",
|
|
1350
|
-
fn:
|
|
1324
|
+
fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(y({
|
|
1351
1325
|
isOpen: t,
|
|
1352
1326
|
color: n
|
|
1353
1327
|
})), void 0, !0)]),
|
|
@@ -1355,37 +1329,37 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1355
1329
|
} : void 0,
|
|
1356
1330
|
e.$slots.optionTooltip ? {
|
|
1357
1331
|
name: "optionTooltip",
|
|
1358
|
-
fn:
|
|
1332
|
+
fn: O(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1359
1333
|
key: "1"
|
|
1360
1334
|
} : void 0,
|
|
1361
1335
|
e.$slots.optionPdf ? {
|
|
1362
1336
|
name: "optionPdf",
|
|
1363
|
-
fn:
|
|
1337
|
+
fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1364
1338
|
key: "2"
|
|
1365
1339
|
} : void 0,
|
|
1366
1340
|
e.$slots.optionCsv ? {
|
|
1367
1341
|
name: "optionCsv",
|
|
1368
|
-
fn:
|
|
1342
|
+
fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1369
1343
|
key: "3"
|
|
1370
1344
|
} : void 0,
|
|
1371
1345
|
e.$slots.optionImg ? {
|
|
1372
1346
|
name: "optionImg",
|
|
1373
|
-
fn:
|
|
1347
|
+
fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1374
1348
|
key: "4"
|
|
1375
1349
|
} : void 0,
|
|
1376
1350
|
e.$slots.optionSvg ? {
|
|
1377
1351
|
name: "optionSvg",
|
|
1378
|
-
fn:
|
|
1352
|
+
fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1379
1353
|
key: "5"
|
|
1380
1354
|
} : void 0,
|
|
1381
1355
|
e.$slots.optionTable ? {
|
|
1382
1356
|
name: "optionTable",
|
|
1383
|
-
fn:
|
|
1357
|
+
fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1384
1358
|
key: "6"
|
|
1385
1359
|
} : void 0,
|
|
1386
1360
|
e.$slots.optionFullscreen ? {
|
|
1387
1361
|
name: "optionFullscreen",
|
|
1388
|
-
fn:
|
|
1362
|
+
fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(y({
|
|
1389
1363
|
toggleFullscreen: t,
|
|
1390
1364
|
isFullscreen: n
|
|
1391
1365
|
})), void 0, !0)]),
|
|
@@ -1393,7 +1367,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1393
1367
|
} : void 0,
|
|
1394
1368
|
e.$slots.optionAnnotator ? {
|
|
1395
1369
|
name: "optionAnnotator",
|
|
1396
|
-
fn:
|
|
1370
|
+
fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(y({
|
|
1397
1371
|
toggleAnnotator: t,
|
|
1398
1372
|
isAnnotator: n
|
|
1399
1373
|
})), void 0, !0)]),
|
|
@@ -1401,7 +1375,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1401
1375
|
} : void 0,
|
|
1402
1376
|
e.$slots.optionZoom ? {
|
|
1403
1377
|
name: "optionZoom",
|
|
1404
|
-
fn:
|
|
1378
|
+
fn: O(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(y({
|
|
1405
1379
|
toggleZoom: t,
|
|
1406
1380
|
isZoomLocked: n
|
|
1407
1381
|
})), void 0, !0)]),
|
|
@@ -1409,78 +1383,78 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1409
1383
|
} : void 0,
|
|
1410
1384
|
e.$slots.optionAltCopy ? {
|
|
1411
1385
|
name: "optionAltCopy",
|
|
1412
|
-
fn:
|
|
1386
|
+
fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
|
|
1413
1387
|
key: "10"
|
|
1414
1388
|
} : void 0,
|
|
1415
1389
|
e.$slots["custom-menu-before"] ? {
|
|
1416
1390
|
name: "custom-menu-before",
|
|
1417
|
-
fn:
|
|
1391
|
+
fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1418
1392
|
key: "11"
|
|
1419
1393
|
} : void 0,
|
|
1420
1394
|
e.$slots["custom-menu-after"] ? {
|
|
1421
1395
|
name: "custom-menu-after",
|
|
1422
|
-
fn:
|
|
1396
|
+
fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1423
1397
|
key: "12"
|
|
1424
1398
|
} : void 0
|
|
1425
|
-
]), 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),
|
|
1426
|
-
X.value.length > 1 ? (
|
|
1399
|
+
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
|
|
1400
|
+
X.value.length > 1 ? (S(), _("nav", {
|
|
1427
1401
|
key: 5,
|
|
1428
1402
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1429
1403
|
"data-dom-to-png-ignore": "",
|
|
1430
1404
|
ref_key: "breadcrumbsNav",
|
|
1431
1405
|
ref: Jt
|
|
1432
|
-
}, [(
|
|
1406
|
+
}, [(S(!0), _(p, null, Be(X.value, (n, r) => (S(), _("span", {
|
|
1433
1407
|
role: "button",
|
|
1434
1408
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1435
1409
|
key: n.id || "root",
|
|
1436
|
-
onClick: (e) => r === X.value.length - 1 ? () => {} :
|
|
1437
|
-
onKeydown: [
|
|
1410
|
+
onClick: (e) => r === X.value.length - 1 ? () => {} : ir(n.node),
|
|
1411
|
+
onKeydown: [Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["enter"]), Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["space"])],
|
|
1438
1412
|
class: "vue-ui-treemap-crumb",
|
|
1439
1413
|
"data-last-crumb": r === X.value.length - 1,
|
|
1440
|
-
style:
|
|
1414
|
+
style: x({
|
|
1441
1415
|
color: I.value.style.chart.color,
|
|
1442
1416
|
cursor: L.value ? "pointer" : "default"
|
|
1443
1417
|
}),
|
|
1444
|
-
onMouseenter: (e) =>
|
|
1445
|
-
onMouseleave:
|
|
1446
|
-
onFocus: (e) =>
|
|
1447
|
-
onBlur:
|
|
1448
|
-
}, [v("span",
|
|
1418
|
+
onMouseenter: (e) => Vr(r),
|
|
1419
|
+
onMouseleave: Hr,
|
|
1420
|
+
onFocus: (e) => Vr(r),
|
|
1421
|
+
onBlur: Hr
|
|
1422
|
+
}, [v("span", dt, [v("span", ft, [w(e.$slots, "breadcrumb-label", Fe({ ref_for: !0 }, {
|
|
1449
1423
|
crumb: n,
|
|
1450
1424
|
isRoot: r === 0,
|
|
1451
|
-
isFocus:
|
|
1452
|
-
}), () => [r === 0 ? (
|
|
1453
|
-
name:
|
|
1425
|
+
isFocus: Br.value === r
|
|
1426
|
+
}), () => [r === 0 ? (S(), _("div", pt, [Ne(xe, {
|
|
1427
|
+
name: Br.value === 0 ? "homeFilled" : "home",
|
|
1454
1428
|
stroke: I.value.style.chart.color
|
|
1455
|
-
}, null, 8, ["name", "stroke"])])) : (
|
|
1456
|
-
v("div",
|
|
1457
|
-
(
|
|
1429
|
+
}, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [Me(He(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (S(), _("span", mt, [w(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Me(" › ", -1)], !0)])) : g("", !0)])], 44, ut))), 128))], 512)) : g("", !0),
|
|
1430
|
+
v("div", ht, [
|
|
1431
|
+
(S(), _("svg", {
|
|
1458
1432
|
ref_key: "svgRef",
|
|
1459
1433
|
ref: z,
|
|
1460
|
-
xmlns:
|
|
1461
|
-
"aria-describedby": `chart-instructions-${
|
|
1462
|
-
class:
|
|
1463
|
-
"vue-data-ui-fullscreen--on":
|
|
1464
|
-
"vue-data-ui-fulscreen--off": !
|
|
1465
|
-
"vue-data-ui-zoom-plus":
|
|
1466
|
-
"vue-data-ui-zoom-minus":
|
|
1467
|
-
"vue-data-ui-no-transition": !
|
|
1468
|
-
loading:
|
|
1434
|
+
xmlns: E(ne),
|
|
1435
|
+
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1436
|
+
class: Le({
|
|
1437
|
+
"vue-data-ui-fullscreen--on": j.value,
|
|
1438
|
+
"vue-data-ui-fulscreen--off": !j.value,
|
|
1439
|
+
"vue-data-ui-zoom-plus": !$n.value,
|
|
1440
|
+
"vue-data-ui-zoom-minus": $n.value,
|
|
1441
|
+
"vue-data-ui-no-transition": !E(rn),
|
|
1442
|
+
loading: E(R)
|
|
1469
1443
|
}),
|
|
1470
|
-
viewBox: `${
|
|
1471
|
-
style:
|
|
1444
|
+
viewBox: `${E($).x} ${E($).y} ${E($).width <= 0 ? 10 : E($).width} ${E($).height <= 0 ? 10 : E($).height}`,
|
|
1445
|
+
style: x(`max-width:100%; overflow:${Fr.value ? "hidden" : "visible"}; background:transparent;color:${I.value.style.chart.color}`),
|
|
1472
1446
|
tabindex: "0",
|
|
1473
|
-
onFocus:
|
|
1474
|
-
onBlur:
|
|
1475
|
-
onKeydown:
|
|
1476
|
-
onPointerdown:
|
|
1477
|
-
onPointermove:
|
|
1478
|
-
onPointerup:
|
|
1479
|
-
onPointercancel:
|
|
1480
|
-
onPointerleave:
|
|
1447
|
+
onFocus: pi,
|
|
1448
|
+
onBlur: mi,
|
|
1449
|
+
onKeydown: hi,
|
|
1450
|
+
onPointerdown: Ir,
|
|
1451
|
+
onPointermove: Lr,
|
|
1452
|
+
onPointerup: Rr,
|
|
1453
|
+
onPointercancel: Rr,
|
|
1454
|
+
onPointerleave: Rr
|
|
1481
1455
|
}, [
|
|
1482
|
-
Ne(
|
|
1483
|
-
(
|
|
1456
|
+
Ne(E(tt)),
|
|
1457
|
+
(S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `tgrad_${e.id}` }, [I.value.style.chart.layout.rects.gradient.show ? (S(), _("defs", _t, [Ne(Se, {
|
|
1484
1458
|
t: "radial",
|
|
1485
1459
|
id: `tgrad_${e.id}`,
|
|
1486
1460
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
|
|
@@ -1490,53 +1464,53 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1490
1464
|
1
|
|
1491
1465
|
], [
|
|
1492
1466
|
"100%",
|
|
1493
|
-
|
|
1467
|
+
E(a)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1494
1468
|
1
|
|
1495
1469
|
]]
|
|
1496
1470
|
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
1497
1471
|
v("g", null, [
|
|
1498
|
-
(
|
|
1472
|
+
(S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
|
|
1499
1473
|
x: e.x0,
|
|
1500
1474
|
y: e.y0,
|
|
1501
1475
|
height: K(e),
|
|
1502
1476
|
width: q(e),
|
|
1503
|
-
fill:
|
|
1504
|
-
rx:
|
|
1477
|
+
fill: Lt.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? cr.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
|
|
1478
|
+
rx: E(jr) > 1 ? di(e) * Mr.value : di(e),
|
|
1505
1479
|
stroke: Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.stroke : I.value.style.chart.layout.rects.stroke,
|
|
1506
|
-
"stroke-width":
|
|
1507
|
-
onClick:
|
|
1508
|
-
onMouseenter: () =>
|
|
1480
|
+
"stroke-width": Hn(e),
|
|
1481
|
+
onClick: qe((n) => zr(e, t), ["stop"]),
|
|
1482
|
+
onMouseenter: () => gr({
|
|
1509
1483
|
datapoint: e,
|
|
1510
1484
|
seriesIndex: t,
|
|
1511
1485
|
triggerMode: "pointer"
|
|
1512
1486
|
}),
|
|
1513
|
-
onMouseleave: (n) =>
|
|
1487
|
+
onMouseleave: (n) => mr({
|
|
1514
1488
|
datapoint: e,
|
|
1515
1489
|
seriesIndex: t
|
|
1516
1490
|
}),
|
|
1517
|
-
style:
|
|
1518
|
-
class:
|
|
1491
|
+
style: x(`opacity:${Z.value ? Z.value.id === e.id ? 1 : I.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1492
|
+
class: Le([
|
|
1519
1493
|
"vue-ui-treemap-rect",
|
|
1520
|
-
|
|
1521
|
-
|
|
1494
|
+
E(rn) ? "vue-data-ui-transition" : "",
|
|
1495
|
+
ar(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
|
|
1522
1496
|
])
|
|
1523
|
-
}, null, 46,
|
|
1524
|
-
(
|
|
1497
|
+
}, null, 46, vt)]))), 128)),
|
|
1498
|
+
(S(!0), _(p, null, Be(si.value, (e) => (S(), _("g", {
|
|
1525
1499
|
key: e.key,
|
|
1526
1500
|
style: { "pointer-events": "none" }
|
|
1527
1501
|
}, [v("defs", null, [v("clipPath", {
|
|
1528
1502
|
id: e.clipId,
|
|
1529
1503
|
clipPathUnits: "userSpaceOnUse"
|
|
1530
1504
|
}, [v("rect", {
|
|
1531
|
-
class:
|
|
1505
|
+
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1532
1506
|
x: e.clipX,
|
|
1533
1507
|
y: e.clipY,
|
|
1534
1508
|
width: e.clipWidth,
|
|
1535
1509
|
height: e.clipHeight
|
|
1536
|
-
}, null, 10,
|
|
1537
|
-
class:
|
|
1538
|
-
transform:
|
|
1539
|
-
}, [(
|
|
1510
|
+
}, null, 10, bt)], 8, yt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [v("g", { transform: e.translate }, [v("g", {
|
|
1511
|
+
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1512
|
+
transform: ii(e)
|
|
1513
|
+
}, [(S(!0), _(p, null, Be(e.lines, (t) => (S(), _(p, { key: t.key }, [t.text && (e.alwaysShowAllLines || Nr.value <= t.maxZoomFactor) ? (S(), _("text", {
|
|
1540
1514
|
key: 0,
|
|
1541
1515
|
x: t.x,
|
|
1542
1516
|
y: t.y,
|
|
@@ -1544,11 +1518,11 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1544
1518
|
"font-size": t.fontSize,
|
|
1545
1519
|
"font-family": t.fontFamily,
|
|
1546
1520
|
"font-weight": t.fontWeight,
|
|
1547
|
-
class:
|
|
1521
|
+
class: Le({ "vue-data-ui-transition": E(rn) }),
|
|
1548
1522
|
"text-anchor": "start",
|
|
1549
1523
|
"dominant-baseline": "text-before-edge"
|
|
1550
|
-
},
|
|
1551
|
-
e.$slots.rect ? (
|
|
1524
|
+
}, He(t.text), 11, wt)) : g("", !0)], 64))), 128))], 10, Ct)], 8, St)], 8, xt)]))), 128)),
|
|
1525
|
+
e.$slots.rect ? (S(), _("g", Tt, [(S(!0), _(p, null, Be(G.value, (t, n) => (S(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(S(), _("foreignObject", {
|
|
1552
1526
|
x: t.x0,
|
|
1553
1527
|
y: t.y0,
|
|
1554
1528
|
height: K(t),
|
|
@@ -1558,76 +1532,76 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1558
1532
|
"pointer-events": "none",
|
|
1559
1533
|
overflow: "hidden"
|
|
1560
1534
|
}
|
|
1561
|
-
}, [v("div",
|
|
1535
|
+
}, [v("div", Dt, [E(R) ? g("", !0) : w(e.$slots, "rect", Fe({ ref_for: !0 }, {
|
|
1562
1536
|
rect: {
|
|
1563
1537
|
...t,
|
|
1564
1538
|
height: K(t),
|
|
1565
1539
|
width: q(t),
|
|
1566
1540
|
isSelected: !Z.value || Z.value.id === t.id
|
|
1567
1541
|
},
|
|
1568
|
-
shouldShow:
|
|
1569
|
-
fontSize:
|
|
1570
|
-
isZoom:
|
|
1571
|
-
textColor:
|
|
1572
|
-
}), void 0, !0, 0)])], 8,
|
|
1542
|
+
shouldShow: zn(t) || $n.value,
|
|
1543
|
+
fontSize: Xn(t, n),
|
|
1544
|
+
isZoom: $n.value,
|
|
1545
|
+
textColor: E(te)(t.color)
|
|
1546
|
+
}), void 0, !0, 0)])], 8, Et))]))), 128))])) : g("", !0)
|
|
1573
1547
|
]),
|
|
1574
|
-
|
|
1548
|
+
w(e.$slots, "svg", b(y({
|
|
1575
1549
|
svg: V.value,
|
|
1576
|
-
isZoom:
|
|
1550
|
+
isZoom: $n.value,
|
|
1577
1551
|
rect: Z.value,
|
|
1578
1552
|
config: I.value,
|
|
1579
|
-
isPrintingImg:
|
|
1580
|
-
isPrintingSvg:
|
|
1553
|
+
isPrintingImg: E(fn) || E(pn) || E(Xr),
|
|
1554
|
+
isPrintingSvg: E(Zr)
|
|
1581
1555
|
})), void 0, !0)
|
|
1582
|
-
], 46,
|
|
1583
|
-
|
|
1556
|
+
], 46, gt)),
|
|
1557
|
+
E(kr) ? (S(), _("div", Ot, [w(e.$slots, "reset-action", { reset: E(Or) }, () => [v("button", {
|
|
1584
1558
|
"data-cy-reset": "",
|
|
1585
1559
|
tabindex: "0",
|
|
1586
1560
|
role: "button",
|
|
1587
1561
|
class: "vue-data-ui-refresh-button",
|
|
1588
|
-
style:
|
|
1562
|
+
style: x({
|
|
1589
1563
|
background: I.value.style.chart.backgroundColor,
|
|
1590
1564
|
cursor: L.value ? "pointer" : "default"
|
|
1591
1565
|
}),
|
|
1592
|
-
onClick: t[0] ||= (e) =>
|
|
1566
|
+
onClick: t[0] ||= (e) => E(Or)(!0)
|
|
1593
1567
|
}, [Ne(xe, {
|
|
1594
1568
|
name: "refresh",
|
|
1595
1569
|
stroke: I.value.style.chart.color
|
|
1596
1570
|
}, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
|
|
1597
|
-
e.$slots.hint ? (
|
|
1571
|
+
e.$slots.hint ? (S(), _("div", kt, [w(e.$slots, "hint", b(y({
|
|
1598
1572
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1599
|
-
isVisible:
|
|
1573
|
+
isVisible: nn.value
|
|
1600
1574
|
})), void 0, !0)])) : g("", !0)
|
|
1601
1575
|
]),
|
|
1602
|
-
e.$slots.watermark ? (
|
|
1603
|
-
v("div", { id: `legend-bottom-${
|
|
1604
|
-
Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (
|
|
1576
|
+
e.$slots.watermark ? (S(), _("div", At, [w(e.$slots, "watermark", b(y({ isPrinting: E(fn) || E(pn) || E(Xr) || E(Zr) })), void 0, !0)])) : g("", !0),
|
|
1577
|
+
v("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
|
|
1578
|
+
Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Ae, {
|
|
1605
1579
|
key: 7,
|
|
1606
|
-
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1580
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1607
1581
|
}, [v("div", {
|
|
1608
1582
|
ref_key: "chartLegend",
|
|
1609
1583
|
ref: Ht
|
|
1610
|
-
}, [
|
|
1584
|
+
}, [w(e.$slots, "legend", { legend: or.value }, () => [I.value.style.chart.legend.show ? (S(), h(De, {
|
|
1611
1585
|
key: `legend_${qt.value}`,
|
|
1612
|
-
legendSet:
|
|
1613
|
-
config:
|
|
1614
|
-
id: `treemap_legend_${
|
|
1586
|
+
legendSet: or.value,
|
|
1587
|
+
config: sr.value,
|
|
1588
|
+
id: `treemap_legend_${A.value}`,
|
|
1615
1589
|
isCursorPointer: L.value,
|
|
1616
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1590
|
+
onClickMarker: t[1] ||= ({ legend: e }) => ur(e)
|
|
1617
1591
|
}, {
|
|
1618
|
-
item:
|
|
1592
|
+
item: O(({ legend: e, index: t }) => [E(R) ? g("", !0) : (S(), _("div", {
|
|
1619
1593
|
key: 0,
|
|
1620
|
-
onClick: (t) =>
|
|
1621
|
-
style:
|
|
1622
|
-
},
|
|
1623
|
-
legendToggle:
|
|
1594
|
+
onClick: (t) => ur(e),
|
|
1595
|
+
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1596
|
+
}, He(e.display), 13, Mt))]),
|
|
1597
|
+
legendToggle: O(() => [or.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(R) ? (S(), h(Ce, {
|
|
1624
1598
|
key: 0,
|
|
1625
1599
|
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1626
1600
|
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1627
1601
|
fontSize: I.value.style.chart.legend.fontSize,
|
|
1628
1602
|
checked: M.value.length > 0,
|
|
1629
1603
|
isCursorPointer: L.value,
|
|
1630
|
-
onToggle:
|
|
1604
|
+
onToggle: lr
|
|
1631
1605
|
}, null, 8, [
|
|
1632
1606
|
"backgroundColor",
|
|
1633
1607
|
"color",
|
|
@@ -1642,15 +1616,15 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1642
1616
|
"id",
|
|
1643
1617
|
"isCursorPointer"
|
|
1644
1618
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1645
|
-
e.$slots.source ? (
|
|
1619
|
+
e.$slots.source ? (S(), _("div", {
|
|
1646
1620
|
key: 8,
|
|
1647
1621
|
ref_key: "source",
|
|
1648
1622
|
ref: Ut,
|
|
1649
1623
|
dir: "auto"
|
|
1650
|
-
}, [
|
|
1651
|
-
Ne(
|
|
1624
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1625
|
+
Ne(E($e), {
|
|
1652
1626
|
teleportTo: I.value.style.chart.tooltip.teleportTo,
|
|
1653
|
-
show: B.value.showTooltip &&
|
|
1627
|
+
show: B.value.showTooltip && Rt.value,
|
|
1654
1628
|
backgroundColor: I.value.style.chart.tooltip.backgroundColor,
|
|
1655
1629
|
color: I.value.style.chart.tooltip.color,
|
|
1656
1630
|
fontSize: I.value.style.chart.tooltip.fontSize,
|
|
@@ -1662,19 +1636,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1662
1636
|
offsetX: I.value.style.chart.tooltip.offsetX,
|
|
1663
1637
|
offsetY: I.value.style.chart.tooltip.offsetY,
|
|
1664
1638
|
parent: N.value,
|
|
1665
|
-
content:
|
|
1666
|
-
isFullscreen:
|
|
1667
|
-
isCustom:
|
|
1639
|
+
content: zt.value,
|
|
1640
|
+
isFullscreen: j.value,
|
|
1641
|
+
isCustom: E(ae)(I.value.style.chart.tooltip.customFormat),
|
|
1668
1642
|
smooth: I.value.style.chart.tooltip.smooth,
|
|
1669
1643
|
backdropFilter: I.value.style.chart.tooltip.backdropFilter,
|
|
1670
1644
|
smoothForce: I.value.style.chart.tooltip.smoothForce,
|
|
1671
1645
|
smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1672
|
-
isA11yMode:
|
|
1673
|
-
a11yPosition:
|
|
1646
|
+
isA11yMode: tn.value === "keyboard",
|
|
1647
|
+
a11yPosition: en.value
|
|
1674
1648
|
}, {
|
|
1675
|
-
"tooltip-before":
|
|
1676
|
-
tooltip:
|
|
1677
|
-
"tooltip-after":
|
|
1649
|
+
"tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...hr.value })), void 0, !0)]),
|
|
1650
|
+
tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...hr.value })), void 0, !0)]),
|
|
1651
|
+
"tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...hr.value })), void 0, !0)]),
|
|
1678
1652
|
_: 3
|
|
1679
1653
|
}, 8, [
|
|
1680
1654
|
"teleportTo",
|
|
@@ -1700,30 +1674,30 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1700
1674
|
"isA11yMode",
|
|
1701
1675
|
"a11yPosition"
|
|
1702
1676
|
]),
|
|
1703
|
-
|
|
1677
|
+
It.value && I.value.userOptions.buttons.table ? (S(), h(Ve(Wr.value.component), Fe({ key: 9 }, Wr.value.props, {
|
|
1704
1678
|
ref_key: "tableUnit",
|
|
1705
1679
|
ref: Xt,
|
|
1706
|
-
onClose:
|
|
1680
|
+
onClose: Gr
|
|
1707
1681
|
}), je({
|
|
1708
|
-
content:
|
|
1682
|
+
content: O(() => [(S(), h(E(Ye), {
|
|
1709
1683
|
key: `table_${Kt.value}`,
|
|
1710
|
-
colNames:
|
|
1711
|
-
head:
|
|
1712
|
-
body:
|
|
1713
|
-
config:
|
|
1714
|
-
title: I.value.table.useDialog ? "" :
|
|
1684
|
+
colNames: vr.value.colNames,
|
|
1685
|
+
head: vr.value.head,
|
|
1686
|
+
body: vr.value.body,
|
|
1687
|
+
config: vr.value.config,
|
|
1688
|
+
title: I.value.table.useDialog ? "" : Wr.value.title,
|
|
1715
1689
|
withCloseButton: !I.value.table.useDialog,
|
|
1716
1690
|
isCursorPointer: L.value,
|
|
1717
|
-
onClose:
|
|
1691
|
+
onClose: Gr
|
|
1718
1692
|
}, {
|
|
1719
|
-
th:
|
|
1693
|
+
th: O(({ th: e }) => [v("div", {
|
|
1720
1694
|
innerHTML: e,
|
|
1721
1695
|
style: {
|
|
1722
1696
|
display: "flex",
|
|
1723
1697
|
"align-items": "center"
|
|
1724
1698
|
}
|
|
1725
|
-
}, null, 8,
|
|
1726
|
-
td:
|
|
1699
|
+
}, null, 8, Nt)]),
|
|
1700
|
+
td: O(({ td: e }) => [Me(He(e.name || e), 1)]),
|
|
1727
1701
|
_: 1
|
|
1728
1702
|
}, 8, [
|
|
1729
1703
|
"colNames",
|
|
@@ -1737,24 +1711,24 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1737
1711
|
_: 2
|
|
1738
1712
|
}, [I.value.table.useDialog ? {
|
|
1739
1713
|
name: "title",
|
|
1740
|
-
fn:
|
|
1714
|
+
fn: O(() => [Me(He(Wr.value.title), 1)]),
|
|
1741
1715
|
key: "0"
|
|
1742
1716
|
} : void 0, I.value.table.useDialog ? {
|
|
1743
1717
|
name: "actions",
|
|
1744
|
-
fn:
|
|
1718
|
+
fn: O(() => [v("button", {
|
|
1745
1719
|
tabindex: "0",
|
|
1746
1720
|
class: "vue-ui-user-options-button",
|
|
1747
|
-
onClick: t[2] ||= (e) =>
|
|
1748
|
-
style:
|
|
1721
|
+
onClick: t[2] ||= (e) => _r(I.value.userOptions.callbacks.csv),
|
|
1722
|
+
style: x({ cursor: L.value ? "pointer" : "default" })
|
|
1749
1723
|
}, [Ne(xe, {
|
|
1750
1724
|
name: "fileCsv",
|
|
1751
|
-
stroke:
|
|
1725
|
+
stroke: Wr.value.props.color
|
|
1752
1726
|
}, null, 8, ["stroke"])], 4)]),
|
|
1753
1727
|
key: "1"
|
|
1754
1728
|
} : void 0]), 1040)) : g("", !0),
|
|
1755
|
-
|
|
1756
|
-
], 46,
|
|
1729
|
+
w(e.$slots, "skeleton", {}, () => [E(R) ? (S(), h(de, { key: 0 })) : g("", !0)], !0)
|
|
1730
|
+
], 46, st));
|
|
1757
1731
|
}
|
|
1758
|
-
}, [["__scopeId", "data-v-
|
|
1732
|
+
}, [["__scopeId", "data-v-da6e1542"]]);
|
|
1759
1733
|
//#endregion
|
|
1760
|
-
export {
|
|
1734
|
+
export { ot as n, Ft as t };
|