vue-data-ui 2.4.57 → 2.4.59
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/README.md +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
import { computed as k, ref as f, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { L as
|
|
7
|
-
import
|
|
8
|
-
import { D as
|
|
9
|
-
import
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
function
|
|
1
|
+
import { useSlots as at, onMounted as Ie, computed as k, ref as f, watch as nt, onBeforeUnmount as st, openBlock as g, createElementBlock as w, normalizeClass as Le, normalizeStyle as R, unref as y, createBlock as E, createCommentVNode as S, createSlots as rt, withCtx as T, renderSlot as $, normalizeProps as G, guardReactiveProps as X, createVNode as Re, Fragment as De, renderList as Me, createElementVNode as N, toDisplayString as Y, createTextVNode as Ve, nextTick as ut, pushScopeId as it, popScopeId as ct } from "vue";
|
|
2
|
+
import { u as dt, c as Ue, t as vt, a as ht, p as _, b as ft, o as pt, e as gt, d as ae, i as ne, f as K, X as yt, l as Be, G as He, x as We, y as mt, q as bt, r as kt } from "./index-B9RAElpI.js";
|
|
3
|
+
import { _ as wt } from "./Title-zZtEcB9F.js";
|
|
4
|
+
import { u as Ct, U as $t } from "./usePrinter-CwTAwqtF.js";
|
|
5
|
+
import { _ as xt } from "./Tooltip-DDJ2Wvjy.js";
|
|
6
|
+
import { L as Tt } from "./Legend-f52bnttJ.js";
|
|
7
|
+
import _t from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
8
|
+
import { D as Ot } from "./DataTable-CFUKU8PU.js";
|
|
9
|
+
import St from "./vue-ui-accordion-rNA598L6.js";
|
|
10
|
+
import { t as Nt, u as zt } from "./useResponsive-CoxXLe23.js";
|
|
11
|
+
import { u as Ee } from "./useNestedProp-DuruL3Nt.js";
|
|
12
|
+
import { _ as Pt } from "./PackageVersion-C_FFs0BP.js";
|
|
13
|
+
import { P as At } from "./PenAndPaper-Dx24BtRW.js";
|
|
14
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
function Ge(a, c) {
|
|
17
17
|
const s = a.length;
|
|
18
18
|
if (s === 0)
|
|
19
19
|
throw new Error(`Max aspect ratio cannot be computed: ${a} is an empty array`);
|
|
20
20
|
{
|
|
21
|
-
let n = 1 / 0,
|
|
22
|
-
for (let
|
|
23
|
-
const
|
|
24
|
-
|
|
21
|
+
let n = 1 / 0, i = -1 / 0, v = 0;
|
|
22
|
+
for (let p = 0; p < s; p += 1) {
|
|
23
|
+
const d = a[p].normalizedValue;
|
|
24
|
+
d < n && (n = d), d > i && (i = d), v += d;
|
|
25
25
|
}
|
|
26
26
|
return Math.max(
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
c ** 2 * i / v ** 2,
|
|
28
|
+
v ** 2 / (c ** 2 * n)
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
const { xOffset:
|
|
32
|
+
function Xe(a) {
|
|
33
|
+
const { xOffset: c, yOffset: s, width: n, height: i } = a;
|
|
34
34
|
return {
|
|
35
|
-
x0:
|
|
35
|
+
x0: c,
|
|
36
36
|
y0: s,
|
|
37
|
-
x1:
|
|
38
|
-
y1: s +
|
|
37
|
+
x1: c + n,
|
|
38
|
+
y1: s + i
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Lt(a, c, s) {
|
|
42
42
|
if (a.length === 0)
|
|
43
43
|
return !0;
|
|
44
44
|
{
|
|
45
|
-
const n = a.concat(
|
|
45
|
+
const n = a.concat(c), i = Ge(
|
|
46
46
|
a,
|
|
47
47
|
s
|
|
48
|
-
),
|
|
49
|
-
return
|
|
48
|
+
), v = Ge(n, s);
|
|
49
|
+
return i >= v;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const
|
|
52
|
+
function Rt(a) {
|
|
53
|
+
const c = [], s = a.length;
|
|
54
54
|
for (let n = 0; n < s; n += 1) {
|
|
55
|
-
const
|
|
56
|
-
for (let
|
|
57
|
-
|
|
55
|
+
const i = a[n], v = i.length;
|
|
56
|
+
for (let u = 0; u < v; u += 1)
|
|
57
|
+
c.push(i[u]);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return c;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Dt(a, c) {
|
|
62
62
|
const s = {
|
|
63
|
-
...
|
|
63
|
+
...c,
|
|
64
64
|
children: a
|
|
65
65
|
};
|
|
66
|
-
return
|
|
66
|
+
return je(s);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Mt(a) {
|
|
69
69
|
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const { width: s, height: n, xOffset:
|
|
73
|
-
let
|
|
74
|
-
const
|
|
71
|
+
function qe(a, c) {
|
|
72
|
+
const { width: s, height: n, xOffset: i, yOffset: v } = de(c), u = a.length, p = a.map((h) => h.normalizedValue || 0).reduce((h, b) => h + b, 0), d = p / n, z = p / s;
|
|
73
|
+
let O = i, C = v;
|
|
74
|
+
const x = [];
|
|
75
75
|
if (s >= n) {
|
|
76
|
-
for (let
|
|
77
|
-
const
|
|
78
|
-
x0:
|
|
79
|
-
y0:
|
|
80
|
-
x1:
|
|
76
|
+
for (let h = 0; h < u; h += 1) {
|
|
77
|
+
const b = a[h], P = C + b.normalizedValue / d, D = {
|
|
78
|
+
x0: O,
|
|
79
|
+
y0: C,
|
|
80
|
+
x1: O + d,
|
|
81
81
|
y1: P
|
|
82
|
-
}, A = Object.assign({},
|
|
83
|
-
|
|
82
|
+
}, A = Object.assign({}, b, D);
|
|
83
|
+
C = P, x.push(A);
|
|
84
84
|
}
|
|
85
|
-
return
|
|
85
|
+
return x;
|
|
86
86
|
} else {
|
|
87
|
-
for (let
|
|
88
|
-
const
|
|
89
|
-
x0:
|
|
90
|
-
y0:
|
|
87
|
+
for (let h = 0; h < u; h += 1) {
|
|
88
|
+
const b = a[h], P = O + b.normalizedValue / z, D = {
|
|
89
|
+
x0: O,
|
|
90
|
+
y0: C,
|
|
91
91
|
x1: P,
|
|
92
|
-
y1:
|
|
93
|
-
}, A = Object.assign({},
|
|
94
|
-
|
|
92
|
+
y1: C + z
|
|
93
|
+
}, A = Object.assign({}, b, D);
|
|
94
|
+
O = P, x.push(A);
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return x;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const
|
|
99
|
+
function Vt(a) {
|
|
100
|
+
const c = de(a), s = c.width, n = c.height;
|
|
101
101
|
return Math.min(s, n);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const s = a.length, n = a.map((
|
|
105
|
-
let
|
|
106
|
-
for (let
|
|
107
|
-
|
|
108
|
-
normalizedValue:
|
|
109
|
-
}),
|
|
110
|
-
return
|
|
103
|
+
function Ut(a, c) {
|
|
104
|
+
const s = a.length, n = a.map((d) => d.value ?? 0).reduce((d, z) => d + z, 0), i = c / n, v = [];
|
|
105
|
+
let u, p;
|
|
106
|
+
for (let d = 0; d < s; d += 1)
|
|
107
|
+
p = a[d], u = Object.assign({}, p, {
|
|
108
|
+
normalizedValue: p.value * (i || 0)
|
|
109
|
+
}), v.push(u);
|
|
110
|
+
return v;
|
|
111
111
|
}
|
|
112
112
|
function de(a) {
|
|
113
|
-
const { x0:
|
|
113
|
+
const { x0: c, y0: s, x1: n, y1: i } = a;
|
|
114
114
|
return {
|
|
115
|
-
xOffset:
|
|
115
|
+
xOffset: c,
|
|
116
116
|
yOffset: s,
|
|
117
|
-
width: n -
|
|
118
|
-
height:
|
|
117
|
+
width: n - c,
|
|
118
|
+
height: i - s
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
let
|
|
121
|
+
function Bt(a, c, s, n) {
|
|
122
|
+
let i = a, v = c, u = s, p = n;
|
|
123
123
|
for (; ; ) {
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
const
|
|
127
|
-
return
|
|
124
|
+
const d = i.length;
|
|
125
|
+
if (d === 0) {
|
|
126
|
+
const x = qe(v, u);
|
|
127
|
+
return p.concat(x);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
131
|
-
const
|
|
132
|
-
|
|
129
|
+
const z = Vt(u), O = i[0], C = i.slice(1, d);
|
|
130
|
+
if (Lt(v, O, z)) {
|
|
131
|
+
const x = v.concat(O);
|
|
132
|
+
i = C, v = x, u = u, p = p;
|
|
133
133
|
} else {
|
|
134
|
-
const
|
|
135
|
-
let
|
|
136
|
-
for (let A = 0; A <
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
134
|
+
const x = v.length;
|
|
135
|
+
let h = 0;
|
|
136
|
+
for (let A = 0; A < x; A += 1)
|
|
137
|
+
h += v[A].normalizedValue;
|
|
138
|
+
const b = Ht(u, h), P = qe(v, u), D = p.concat(P);
|
|
139
|
+
i = i, v = [], u = b, p = D;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function je(a) {
|
|
144
144
|
if (typeof a.children > "u" || !a.children.length)
|
|
145
145
|
return [a];
|
|
146
146
|
{
|
|
147
|
-
const
|
|
147
|
+
const c = Ut(
|
|
148
148
|
a.children,
|
|
149
|
-
|
|
150
|
-
), s =
|
|
151
|
-
for (let
|
|
152
|
-
|
|
153
|
-
return
|
|
149
|
+
Mt(a)
|
|
150
|
+
), s = Bt(c, [], a, []), n = s.length, i = [];
|
|
151
|
+
for (let u = 0; u < n; u += 1)
|
|
152
|
+
i.push(je(s[u]));
|
|
153
|
+
return Rt(i);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const { width: s, height: n, xOffset:
|
|
156
|
+
function Ht(a, c) {
|
|
157
|
+
const { width: s, height: n, xOffset: i, yOffset: v } = de(a);
|
|
158
158
|
if (s >= n) {
|
|
159
|
-
const
|
|
160
|
-
xOffset:
|
|
161
|
-
yOffset:
|
|
162
|
-
width:
|
|
159
|
+
const u = c / n, p = s - u, d = {
|
|
160
|
+
xOffset: i + u,
|
|
161
|
+
yOffset: v,
|
|
162
|
+
width: p,
|
|
163
163
|
height: n
|
|
164
164
|
};
|
|
165
|
-
return
|
|
165
|
+
return Xe(d);
|
|
166
166
|
} else {
|
|
167
|
-
const
|
|
168
|
-
xOffset:
|
|
169
|
-
yOffset:
|
|
167
|
+
const u = c / s, p = n - u, d = {
|
|
168
|
+
xOffset: i,
|
|
169
|
+
yOffset: v + u,
|
|
170
170
|
width: s,
|
|
171
|
-
height:
|
|
171
|
+
height: p
|
|
172
172
|
};
|
|
173
|
-
return
|
|
173
|
+
return Xe(d);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const Wt = (a) => (it("data-v-d58b1737"), a = a(), ct(), a), Et = ["id"], Gt = ["xmlns", "viewBox"], Xt = { key: 0 }, qt = ["id"], jt = ["stop-color"], Yt = ["stop-color"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Jt = ["x", "y", "height", "width"], Kt = {
|
|
177
177
|
style: { width: "100%", height: "100%" },
|
|
178
178
|
class: "vue-ui-treemap-cell"
|
|
179
|
-
},
|
|
179
|
+
}, Qt = /* @__PURE__ */ Wt(() => /* @__PURE__ */ N("br", null, null, -1)), eo = {
|
|
180
180
|
key: 5,
|
|
181
181
|
class: "vue-data-ui-watermark"
|
|
182
|
-
},
|
|
182
|
+
}, to = ["onClick"], oo = { key: 0 }, lo = { key: 1 }, ao = ["innerHTML"], no = {
|
|
183
183
|
__name: "vue-ui-treemap",
|
|
184
184
|
props: {
|
|
185
185
|
config: {
|
|
@@ -196,37 +196,41 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
emits: ["selectLegend", "selectDatapoint"],
|
|
199
|
-
setup(a, { expose:
|
|
200
|
-
const n = a, { vue_ui_treemap:
|
|
201
|
-
|
|
199
|
+
setup(a, { expose: c, emit: s }) {
|
|
200
|
+
const n = a, { vue_ui_treemap: i } = dt(), v = at();
|
|
201
|
+
Ie(() => {
|
|
202
|
+
v["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
203
|
+
});
|
|
204
|
+
const u = k(() => !!n.dataset && n.dataset.length), p = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), d = f(Ue()), z = f(!1), O = f(""), C = f(!1), x = f(0), h = f([]), b = f(null), P = f(null), D = f(null), A = f(null), ve = f(null), he = f(0), fe = f(0), pe = f(0), e = k({
|
|
205
|
+
get: () => me(),
|
|
202
206
|
set: (t) => t
|
|
203
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility:
|
|
204
|
-
function
|
|
205
|
-
const t =
|
|
207
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Ft({ config: e.value });
|
|
208
|
+
function me() {
|
|
209
|
+
const t = Ee({
|
|
206
210
|
userConfig: n.config,
|
|
207
|
-
defaultConfig:
|
|
211
|
+
defaultConfig: i
|
|
208
212
|
});
|
|
209
213
|
return t.theme ? {
|
|
210
|
-
...
|
|
211
|
-
userConfig:
|
|
214
|
+
...Ee({
|
|
215
|
+
userConfig: vt.vue_ui_treemap[t.theme] || n.config,
|
|
212
216
|
defaultConfig: t
|
|
213
217
|
}),
|
|
214
|
-
customPalette:
|
|
218
|
+
customPalette: ht[t.theme] || _
|
|
215
219
|
} : t;
|
|
216
220
|
}
|
|
217
|
-
|
|
218
|
-
e.value =
|
|
221
|
+
nt(() => n.config, (t) => {
|
|
222
|
+
e.value = me(), se.value = !e.value.showOnChartHover, he.value += 1, fe.value += 1, pe.value += 1;
|
|
219
223
|
}, { deep: !0 });
|
|
220
|
-
const { isPrinting:
|
|
221
|
-
elementId: `treemap_${
|
|
224
|
+
const { isPrinting: be, isImaging: ke, generatePdf: we, generateImage: Ce } = Ct({
|
|
225
|
+
elementId: `treemap_${d.value}`,
|
|
222
226
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap"
|
|
223
|
-
}),
|
|
227
|
+
}), Ye = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = k(() => ft(e.value.customPalette)), M = f({
|
|
224
228
|
showTable: e.value.table.show,
|
|
225
229
|
showTooltip: e.value.style.chart.tooltip.show
|
|
226
230
|
}), V = f({
|
|
227
231
|
height: e.value.style.chart.height,
|
|
228
232
|
width: e.value.style.chart.width
|
|
229
|
-
}),
|
|
233
|
+
}), B = k(() => ({
|
|
230
234
|
bottom: V.value.height - e.value.style.chart.padding.bottom,
|
|
231
235
|
height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
232
236
|
left: e.value.style.chart.padding.left,
|
|
@@ -236,42 +240,42 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
236
240
|
vbWidth: V.value.width,
|
|
237
241
|
width: V.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
238
242
|
}));
|
|
239
|
-
function
|
|
243
|
+
function $e(t) {
|
|
240
244
|
t.forEach((l, o) => {
|
|
241
|
-
l.id =
|
|
245
|
+
l.id = Ue(), l.color = ae(l.color) || Q.value[o] || _[o] || _[o % _.length], l.children && (l.children.forEach((r) => {
|
|
242
246
|
r.parentId = l.id, r.color = l.color;
|
|
243
|
-
}),
|
|
247
|
+
}), $e(l.children));
|
|
244
248
|
});
|
|
245
249
|
}
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
250
|
+
const H = f(n.dataset), ee = f(null);
|
|
251
|
+
Ie(() => {
|
|
252
|
+
Ze();
|
|
249
253
|
});
|
|
250
|
-
function
|
|
251
|
-
if (
|
|
254
|
+
function Ze() {
|
|
255
|
+
if (pt(n.dataset) && gt({
|
|
252
256
|
componentName: "VueUiTreemap",
|
|
253
257
|
type: "dataset"
|
|
254
|
-
}),
|
|
255
|
-
const t =
|
|
256
|
-
const { width: l, height: o } =
|
|
257
|
-
chart:
|
|
258
|
-
title: e.value.style.chart.title.text ?
|
|
259
|
-
legend: e.value.style.chart.legend.show ?
|
|
260
|
-
source:
|
|
261
|
-
noTitle:
|
|
258
|
+
}), $e(H.value), e.value.responsive) {
|
|
259
|
+
const t = Nt(() => {
|
|
260
|
+
const { width: l, height: o } = zt({
|
|
261
|
+
chart: b.value,
|
|
262
|
+
title: e.value.style.chart.title.text ? P.value : null,
|
|
263
|
+
legend: e.value.style.chart.legend.show ? D.value : null,
|
|
264
|
+
source: A.value,
|
|
265
|
+
noTitle: ve.value
|
|
262
266
|
});
|
|
263
267
|
V.value.width = l, V.value.height = o;
|
|
264
268
|
});
|
|
265
|
-
ee.value = new ResizeObserver(t), ee.value.observe(
|
|
269
|
+
ee.value = new ResizeObserver(t), ee.value.observe(b.value.parentNode);
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
|
-
|
|
272
|
+
st(() => {
|
|
269
273
|
ee.value && ee.value.disconnect();
|
|
270
274
|
});
|
|
271
|
-
const re = f(
|
|
275
|
+
const re = f(H.value), Z = k(() => re.value.map((t, l) => ({
|
|
272
276
|
...t,
|
|
273
|
-
color: ae(t.color) || Q.value[l] ||
|
|
274
|
-
})).filter((t) => !
|
|
277
|
+
color: ae(t.color) || Q.value[l] || _[l] || _[l % _.length]
|
|
278
|
+
})).filter((t) => !h.value.includes(t.id))), q = k(() => H.value.filter((t) => !h.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), xe = k({
|
|
275
279
|
get() {
|
|
276
280
|
let t = [...Z.value];
|
|
277
281
|
return e.value.style.chart.layout.sorted && (t = [...Z.value].sort((l, o) => o.value - l.value)), t.map((l) => ({
|
|
@@ -282,58 +286,58 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
282
286
|
return t;
|
|
283
287
|
}
|
|
284
288
|
});
|
|
285
|
-
function
|
|
289
|
+
function Te(t, l) {
|
|
286
290
|
return t.value / l;
|
|
287
291
|
}
|
|
288
|
-
function
|
|
289
|
-
const r = e.value.style.chart.layout.rects.colorRatio -
|
|
290
|
-
return
|
|
292
|
+
function Je(t, l, o) {
|
|
293
|
+
const r = e.value.style.chart.layout.rects.colorRatio - Te(l, o);
|
|
294
|
+
return Be(t, r < 0 ? 0 : r);
|
|
291
295
|
}
|
|
292
|
-
function
|
|
293
|
-
return t.map((
|
|
294
|
-
const le =
|
|
296
|
+
function _e(t, l, o, r) {
|
|
297
|
+
return t.map((m, U) => {
|
|
298
|
+
const le = Je(ae(l) || Q.value[U] || _[U] || _[U % _.length], m, r), lt = Te(m, r);
|
|
295
299
|
return {
|
|
296
|
-
...
|
|
300
|
+
...m,
|
|
297
301
|
color: le,
|
|
298
|
-
proportion:
|
|
302
|
+
proportion: lt,
|
|
299
303
|
parentName: o,
|
|
300
|
-
children:
|
|
304
|
+
children: m.children ? _e(m.children, le, m.name, r) : void 0
|
|
301
305
|
};
|
|
302
306
|
});
|
|
303
307
|
}
|
|
304
|
-
const J = k(() =>
|
|
305
|
-
|
|
306
|
-
const o = t.children ? t.children.reduce((r,
|
|
308
|
+
const J = k(() => Dt(
|
|
309
|
+
xe.value.map((t, l) => {
|
|
310
|
+
const o = t.children ? t.children.reduce((r, m) => r + m.value, 0) : t.value;
|
|
307
311
|
return {
|
|
308
312
|
value: t.value,
|
|
309
313
|
id: t.id,
|
|
310
|
-
children: t.children ?
|
|
314
|
+
children: t.children ? _e(t.children.sort((r, m) => m.value - r.value), t.color, t.name, o) : void 0,
|
|
311
315
|
color: t.color,
|
|
312
316
|
name: t.name
|
|
313
317
|
};
|
|
314
318
|
}),
|
|
315
|
-
{ x0:
|
|
319
|
+
{ x0: B.value.left * 2, y0: B.value.top, x1: B.value.width, y1: B.value.height }
|
|
316
320
|
));
|
|
317
|
-
function
|
|
321
|
+
function Oe({ y0: t, y1: l }) {
|
|
318
322
|
return l - t <= 0 ? 1e-4 : l - t;
|
|
319
323
|
}
|
|
320
|
-
function
|
|
324
|
+
function Se({ x0: t, x1: l }) {
|
|
321
325
|
return l - t <= 0 ? 1e-4 : l - t;
|
|
322
326
|
}
|
|
323
327
|
function W(t) {
|
|
324
328
|
const l = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
325
329
|
return l < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : l;
|
|
326
330
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
331
|
+
function Ke(t) {
|
|
332
|
+
C.value = t, x.value += 1;
|
|
329
333
|
}
|
|
330
334
|
const j = k(() => ({
|
|
331
335
|
startX: 0,
|
|
332
336
|
startY: 0,
|
|
333
|
-
width:
|
|
334
|
-
height:
|
|
337
|
+
width: B.value.vbWidth,
|
|
338
|
+
height: B.value.vbHeight
|
|
335
339
|
})), F = f(!1);
|
|
336
|
-
function ue(t, l =
|
|
340
|
+
function ue(t, l = H.value) {
|
|
337
341
|
for (const o of l) {
|
|
338
342
|
if (o.id === t)
|
|
339
343
|
return o;
|
|
@@ -345,9 +349,9 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
345
349
|
}
|
|
346
350
|
return null;
|
|
347
351
|
}
|
|
348
|
-
function
|
|
352
|
+
function Qe(t) {
|
|
349
353
|
if (F.value)
|
|
350
|
-
s("selectDatapoint", void 0), re.value =
|
|
354
|
+
s("selectDatapoint", void 0), re.value = H.value;
|
|
351
355
|
else {
|
|
352
356
|
if (s("selectDatapoint", t), !ue(t.parentId))
|
|
353
357
|
return;
|
|
@@ -355,15 +359,15 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
355
359
|
}
|
|
356
360
|
F.value = !F.value;
|
|
357
361
|
}
|
|
358
|
-
const I = f(null),
|
|
362
|
+
const I = f(null), Ne = k(() => H.value.map((t, l) => ({
|
|
359
363
|
...t,
|
|
360
|
-
color: ae(t.color) || Q.value[l] ||
|
|
364
|
+
color: ae(t.color) || Q.value[l] || _[l] || _[l % _.length],
|
|
361
365
|
shape: "square"
|
|
362
366
|
})).sort((t, l) => l.value - t.value).map((t, l) => ({
|
|
363
367
|
...t,
|
|
364
|
-
proportion: t.value /
|
|
365
|
-
opacity:
|
|
366
|
-
}))),
|
|
368
|
+
proportion: t.value / H.value.map((o) => o.value).reduce((o, r) => o + r, 0),
|
|
369
|
+
opacity: h.value.includes(t.id) ? 0.5 : 1
|
|
370
|
+
}))), et = k(() => ({
|
|
367
371
|
cy: "treemap-div-legend",
|
|
368
372
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
369
373
|
color: e.value.style.chart.legend.color,
|
|
@@ -371,20 +375,20 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
371
375
|
paddingBottom: 12,
|
|
372
376
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
373
377
|
}));
|
|
374
|
-
function
|
|
375
|
-
F.value = !1, I.value = null,
|
|
378
|
+
function ze(t) {
|
|
379
|
+
F.value = !1, I.value = null, h.value.includes(t.id) ? h.value = h.value.filter((l) => l !== t.id) : h.value.length < n.dataset.length - 1 && h.value.push(t.id), s("selectLegend", xe.value);
|
|
376
380
|
}
|
|
377
381
|
const ie = f(null);
|
|
378
|
-
function
|
|
382
|
+
function tt({ datapoint: t, seriesIndex: l }) {
|
|
379
383
|
I.value = t, ie.value = { datapoint: t, seriesIndex: l, config: e.value, series: Z.value };
|
|
380
384
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
381
|
-
if (
|
|
385
|
+
if (We(o) && mt(() => o({
|
|
382
386
|
seriesIndex: l,
|
|
383
387
|
datapoint: t,
|
|
384
388
|
series: Z.value,
|
|
385
389
|
config: e.value
|
|
386
390
|
})))
|
|
387
|
-
|
|
391
|
+
O.value = o({
|
|
388
392
|
seriesIndex: l,
|
|
389
393
|
datapoint: t,
|
|
390
394
|
series: Z.value,
|
|
@@ -402,9 +406,9 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
402
406
|
r: e.value.style.chart.tooltip.roundingValue
|
|
403
407
|
}),
|
|
404
408
|
{ datapoint: t, seriesIndex: l }
|
|
405
|
-
)}</b>`,
|
|
409
|
+
)}</b>`, O.value = `<div>${r}</div>`;
|
|
406
410
|
}
|
|
407
|
-
|
|
411
|
+
z.value = !0;
|
|
408
412
|
}
|
|
409
413
|
const L = k(() => {
|
|
410
414
|
const t = J.value.map((o) => ({
|
|
@@ -413,12 +417,12 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
413
417
|
})), l = J.value.map((o) => o.value);
|
|
414
418
|
return { head: t, body: l };
|
|
415
419
|
});
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
const t = L.value.head.map((r,
|
|
420
|
+
function Pe() {
|
|
421
|
+
ut(() => {
|
|
422
|
+
const t = L.value.head.map((r, m) => [[
|
|
419
423
|
r.name
|
|
420
|
-
], [L.value.body[
|
|
421
|
-
|
|
424
|
+
], [L.value.body[m]], [isNaN(L.value.body[m] / q.value) ? "-" : L.value.body[m] / q.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = bt(l);
|
|
425
|
+
kt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
422
426
|
});
|
|
423
427
|
}
|
|
424
428
|
const te = k(() => {
|
|
@@ -426,26 +430,26 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
426
430
|
e.value.table.columnNames.series,
|
|
427
431
|
e.value.table.columnNames.value,
|
|
428
432
|
e.value.table.columnNames.percentage
|
|
429
|
-
], l = L.value.head.map((
|
|
433
|
+
], l = L.value.head.map((m, U) => {
|
|
430
434
|
const le = ne(
|
|
431
435
|
e.value.style.chart.layout.labels.formatter,
|
|
432
|
-
L.value.body[
|
|
436
|
+
L.value.body[U],
|
|
433
437
|
K({
|
|
434
438
|
p: e.value.style.chart.layout.labels.prefix,
|
|
435
|
-
v: L.value.body[
|
|
439
|
+
v: L.value.body[U],
|
|
436
440
|
s: e.value.style.chart.layout.labels.suffix,
|
|
437
441
|
r: e.value.table.td.roundingValue
|
|
438
442
|
})
|
|
439
443
|
);
|
|
440
444
|
return [
|
|
441
445
|
{
|
|
442
|
-
color:
|
|
443
|
-
name:
|
|
446
|
+
color: m.color,
|
|
447
|
+
name: m.name,
|
|
444
448
|
shape: "square"
|
|
445
449
|
},
|
|
446
450
|
le,
|
|
447
|
-
isNaN(L.value.body[
|
|
448
|
-
v: L.value.body[
|
|
451
|
+
isNaN(L.value.body[U] / q.value) ? "-" : K({
|
|
452
|
+
v: L.value.body[U] / q.value * 100,
|
|
449
453
|
s: "%",
|
|
450
454
|
r: e.value.table.td.roundingPercentage
|
|
451
455
|
})
|
|
@@ -473,59 +477,59 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
473
477
|
config: o
|
|
474
478
|
};
|
|
475
479
|
});
|
|
476
|
-
function
|
|
480
|
+
function ot() {
|
|
477
481
|
return J.value;
|
|
478
482
|
}
|
|
479
|
-
function
|
|
483
|
+
function Ae() {
|
|
480
484
|
M.value.showTable = !M.value.showTable;
|
|
481
485
|
}
|
|
482
|
-
function
|
|
486
|
+
function Fe() {
|
|
483
487
|
M.value.showTooltip = !M.value.showTooltip;
|
|
484
488
|
}
|
|
485
489
|
const oe = f(!1);
|
|
486
490
|
function ce() {
|
|
487
491
|
oe.value = !oe.value;
|
|
488
492
|
}
|
|
489
|
-
return
|
|
490
|
-
getData:
|
|
491
|
-
generateCsv:
|
|
492
|
-
generateImage:
|
|
493
|
+
return c({
|
|
494
|
+
getData: ot,
|
|
495
|
+
generateCsv: Pe,
|
|
496
|
+
generateImage: Ce,
|
|
493
497
|
generatePdf: we,
|
|
494
|
-
toggleTable:
|
|
495
|
-
toggleTooltip:
|
|
498
|
+
toggleTable: Ae,
|
|
499
|
+
toggleTooltip: Fe,
|
|
496
500
|
toggleAnnotator: ce
|
|
497
|
-
}), (t, l) => (g(),
|
|
501
|
+
}), (t, l) => (g(), w("div", {
|
|
498
502
|
ref_key: "treemapChart",
|
|
499
|
-
ref:
|
|
500
|
-
class:
|
|
503
|
+
ref: b,
|
|
504
|
+
class: Le(`vue-ui-treemap ${C.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
501
505
|
style: R(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
502
|
-
id: `treemap_${
|
|
503
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
504
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
506
|
+
id: `treemap_${d.value}`,
|
|
507
|
+
onMouseenter: l[3] || (l[3] = () => y(ge)(!0)),
|
|
508
|
+
onMouseleave: l[4] || (l[4] = () => y(ge)(!1))
|
|
505
509
|
}, [
|
|
506
|
-
e.value.userOptions.buttons.annotator ? (g(), E(
|
|
510
|
+
e.value.userOptions.buttons.annotator ? (g(), E(At, {
|
|
507
511
|
key: 0,
|
|
508
|
-
parent:
|
|
512
|
+
parent: b.value,
|
|
509
513
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
510
514
|
color: e.value.style.chart.color,
|
|
511
515
|
active: oe.value,
|
|
512
516
|
onClose: ce
|
|
513
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
514
|
-
|
|
517
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : S("", !0),
|
|
518
|
+
Ye.value ? (g(), w("div", {
|
|
515
519
|
key: 1,
|
|
516
520
|
ref_key: "noTitle",
|
|
517
|
-
ref:
|
|
521
|
+
ref: ve,
|
|
518
522
|
class: "vue-data-ui-no-title-space",
|
|
519
523
|
style: "height:36px; width: 100%;background:transparent"
|
|
520
|
-
}, null, 512)) :
|
|
521
|
-
e.value.style.chart.title.text ? (g(),
|
|
524
|
+
}, null, 512)) : S("", !0),
|
|
525
|
+
e.value.style.chart.title.text ? (g(), w("div", {
|
|
522
526
|
key: 2,
|
|
523
527
|
ref_key: "chartTitle",
|
|
524
|
-
ref:
|
|
528
|
+
ref: P,
|
|
525
529
|
style: R(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
526
530
|
}, [
|
|
527
|
-
(g(), E(
|
|
528
|
-
key: `title_${
|
|
531
|
+
(g(), E(wt, {
|
|
532
|
+
key: `title_${he.value}`,
|
|
529
533
|
config: {
|
|
530
534
|
title: {
|
|
531
535
|
cy: "treemap-div-title",
|
|
@@ -537,158 +541,158 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
537
541
|
}
|
|
538
542
|
}
|
|
539
543
|
}, null, 8, ["config"]))
|
|
540
|
-
], 4)) :
|
|
541
|
-
e.value.userOptions.show &&
|
|
544
|
+
], 4)) : S("", !0),
|
|
545
|
+
e.value.userOptions.show && u.value && (y(ye) || y(se)) ? (g(), E($t, {
|
|
542
546
|
ref: "details",
|
|
543
|
-
key: `user_option_${
|
|
547
|
+
key: `user_option_${x.value}`,
|
|
544
548
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
545
549
|
color: e.value.style.chart.color,
|
|
546
|
-
isPrinting:
|
|
547
|
-
isImaging:
|
|
548
|
-
uid:
|
|
550
|
+
isPrinting: y(be),
|
|
551
|
+
isImaging: y(ke),
|
|
552
|
+
uid: d.value,
|
|
549
553
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
550
554
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
551
555
|
hasXls: e.value.userOptions.buttons.csv,
|
|
552
556
|
hasImg: e.value.userOptions.buttons.img,
|
|
553
557
|
hasTable: e.value.userOptions.buttons.table,
|
|
554
558
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
555
|
-
isFullscreen:
|
|
559
|
+
isFullscreen: C.value,
|
|
556
560
|
isTooltip: M.value.showTooltip,
|
|
557
561
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
558
|
-
chartElement:
|
|
562
|
+
chartElement: b.value,
|
|
559
563
|
position: e.value.userOptions.position,
|
|
560
564
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
561
565
|
isAnnotation: oe.value,
|
|
562
|
-
onToggleFullscreen:
|
|
563
|
-
onGeneratePdf:
|
|
564
|
-
onGenerateCsv:
|
|
565
|
-
onGenerateImage:
|
|
566
|
-
onToggleTable:
|
|
567
|
-
onToggleTooltip:
|
|
566
|
+
onToggleFullscreen: Ke,
|
|
567
|
+
onGeneratePdf: y(we),
|
|
568
|
+
onGenerateCsv: Pe,
|
|
569
|
+
onGenerateImage: y(Ce),
|
|
570
|
+
onToggleTable: Ae,
|
|
571
|
+
onToggleTooltip: Fe,
|
|
568
572
|
onToggleAnnotator: ce,
|
|
569
573
|
style: R({
|
|
570
|
-
visibility:
|
|
574
|
+
visibility: y(ye) ? y(se) ? "visible" : "hidden" : "visible"
|
|
571
575
|
})
|
|
572
|
-
},
|
|
576
|
+
}, rt({ _: 2 }, [
|
|
573
577
|
t.$slots.optionTooltip ? {
|
|
574
578
|
name: "optionTooltip",
|
|
575
|
-
fn:
|
|
579
|
+
fn: T(() => [
|
|
576
580
|
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
577
581
|
]),
|
|
578
582
|
key: "0"
|
|
579
583
|
} : void 0,
|
|
580
584
|
t.$slots.optionPdf ? {
|
|
581
585
|
name: "optionPdf",
|
|
582
|
-
fn:
|
|
586
|
+
fn: T(() => [
|
|
583
587
|
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
584
588
|
]),
|
|
585
589
|
key: "1"
|
|
586
590
|
} : void 0,
|
|
587
591
|
t.$slots.optionCsv ? {
|
|
588
592
|
name: "optionCsv",
|
|
589
|
-
fn:
|
|
593
|
+
fn: T(() => [
|
|
590
594
|
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
591
595
|
]),
|
|
592
596
|
key: "2"
|
|
593
597
|
} : void 0,
|
|
594
598
|
t.$slots.optionImg ? {
|
|
595
599
|
name: "optionImg",
|
|
596
|
-
fn:
|
|
600
|
+
fn: T(() => [
|
|
597
601
|
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
598
602
|
]),
|
|
599
603
|
key: "3"
|
|
600
604
|
} : void 0,
|
|
601
605
|
t.$slots.optionTable ? {
|
|
602
606
|
name: "optionTable",
|
|
603
|
-
fn:
|
|
607
|
+
fn: T(() => [
|
|
604
608
|
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
605
609
|
]),
|
|
606
610
|
key: "4"
|
|
607
611
|
} : void 0,
|
|
608
612
|
t.$slots.optionFullscreen ? {
|
|
609
613
|
name: "optionFullscreen",
|
|
610
|
-
fn:
|
|
614
|
+
fn: T(({ toggleFullscreen: o, isFullscreen: r }) => [
|
|
611
615
|
$(t.$slots, "optionFullscreen", G(X({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
|
|
612
616
|
]),
|
|
613
617
|
key: "5"
|
|
614
618
|
} : void 0,
|
|
615
619
|
t.$slots.optionAnnotator ? {
|
|
616
620
|
name: "optionAnnotator",
|
|
617
|
-
fn:
|
|
621
|
+
fn: T(({ toggleAnnotator: o, isAnnotator: r }) => [
|
|
618
622
|
$(t.$slots, "optionAnnotator", G(X({ toggleAnnotator: o, isAnnotator: r })), void 0, !0)
|
|
619
623
|
]),
|
|
620
624
|
key: "6"
|
|
621
625
|
} : void 0
|
|
622
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
623
|
-
|
|
626
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : S("", !0),
|
|
627
|
+
u.value ? (g(), w("svg", {
|
|
624
628
|
key: 4,
|
|
625
|
-
xmlns:
|
|
626
|
-
class:
|
|
629
|
+
xmlns: y(yt),
|
|
630
|
+
class: Le({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value, "vue-data-ui-zoom-plus": !F.value, "vue-data-ui-zoom-minus": F.value }),
|
|
627
631
|
viewBox: `${j.value.startX} ${j.value.startY} ${j.value.width <= 0 ? 10 : j.value.width} ${j.value.height <= 0 ? 10 : j.value.height}`,
|
|
628
632
|
style: R(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
629
633
|
}, [
|
|
630
|
-
|
|
631
|
-
(g(!0),
|
|
632
|
-
e.value.style.chart.layout.rects.gradient.show ? (g(),
|
|
633
|
-
|
|
634
|
+
Re(Pt),
|
|
635
|
+
(g(!0), w(De, null, Me(J.value, (o, r) => (g(), w("g", null, [
|
|
636
|
+
e.value.style.chart.layout.rects.gradient.show ? (g(), w("defs", Xt, [
|
|
637
|
+
N("radialGradient", {
|
|
634
638
|
id: `tgrad_${o.id}`,
|
|
635
639
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
636
640
|
}, [
|
|
637
|
-
|
|
641
|
+
N("stop", {
|
|
638
642
|
offset: "18%",
|
|
639
643
|
"stop-color": o.color
|
|
640
|
-
}, null, 8,
|
|
641
|
-
|
|
644
|
+
}, null, 8, jt),
|
|
645
|
+
N("stop", {
|
|
642
646
|
offset: "100%",
|
|
643
|
-
"stop-color":
|
|
644
|
-
}, null, 8,
|
|
645
|
-
], 8,
|
|
646
|
-
])) :
|
|
647
|
+
"stop-color": y(Be)(o.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
648
|
+
}, null, 8, Yt)
|
|
649
|
+
], 8, qt)
|
|
650
|
+
])) : S("", !0)
|
|
647
651
|
]))), 256)),
|
|
648
|
-
(g(!0),
|
|
649
|
-
|
|
652
|
+
(g(!0), w(De, null, Me(J.value, (o, r) => (g(), w("g", null, [
|
|
653
|
+
N("rect", {
|
|
650
654
|
x: o.x0,
|
|
651
655
|
y: o.y0,
|
|
652
|
-
height:
|
|
653
|
-
width:
|
|
654
|
-
fill:
|
|
656
|
+
height: Oe(o),
|
|
657
|
+
width: Se(o),
|
|
658
|
+
fill: p.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
655
659
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
656
660
|
stroke: I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
657
661
|
"stroke-width": I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
658
|
-
onClick: (
|
|
659
|
-
onMouseenter: () =>
|
|
662
|
+
onClick: (m) => Qe(o),
|
|
663
|
+
onMouseenter: () => tt({
|
|
660
664
|
datapoint: o,
|
|
661
665
|
seriesIndex: r
|
|
662
666
|
}),
|
|
663
|
-
onMouseleave: l[0] || (l[0] = (
|
|
664
|
-
I.value = null,
|
|
667
|
+
onMouseleave: l[0] || (l[0] = (m) => {
|
|
668
|
+
I.value = null, z.value = !1;
|
|
665
669
|
}),
|
|
666
670
|
style: R(`opacity:${I.value ? I.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
667
671
|
class: "vue-ui-treemap-rect"
|
|
668
|
-
}, null, 44,
|
|
669
|
-
(g(),
|
|
672
|
+
}, null, 44, Zt),
|
|
673
|
+
(g(), w("foreignObject", {
|
|
670
674
|
x: o.x0,
|
|
671
675
|
y: o.y0,
|
|
672
|
-
height:
|
|
673
|
-
width:
|
|
676
|
+
height: Oe(o),
|
|
677
|
+
width: Se(o),
|
|
674
678
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
675
679
|
}, [
|
|
676
|
-
|
|
677
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || F.value) ? (g(),
|
|
680
|
+
N("div", Kt, [
|
|
681
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || F.value) ? (g(), w("div", {
|
|
678
682
|
key: 0,
|
|
679
683
|
class: "vue-ui-treemap-cell-default",
|
|
680
|
-
style: R(`width:calc(100% - ${W(o) / 1.5}px);text-align:left;line-height:${W(o) < 14 ? 14 : W(o)}px;padding:${W(o) / 3}px; color:${
|
|
684
|
+
style: R(`width:calc(100% - ${W(o) / 1.5}px);text-align:left;line-height:${W(o) < 14 ? 14 : W(o)}px;padding:${W(o) / 3}px; color:${y(He)(o.color)}`)
|
|
681
685
|
}, [
|
|
682
|
-
|
|
686
|
+
N("span", {
|
|
683
687
|
style: R(`width:100%;font-size:${W(o)}px;`)
|
|
684
688
|
}, Y(o.name), 5),
|
|
685
|
-
|
|
686
|
-
|
|
689
|
+
Qt,
|
|
690
|
+
N("span", {
|
|
687
691
|
style: R(`width:100%;font-size:${W(o)}px;`)
|
|
688
|
-
}, Y(
|
|
692
|
+
}, Y(y(ne)(
|
|
689
693
|
e.value.style.chart.layout.labels.formatter,
|
|
690
694
|
o.value,
|
|
691
|
-
|
|
695
|
+
y(K)({
|
|
692
696
|
p: e.value.style.chart.layout.labels.prefix,
|
|
693
697
|
v: o.value,
|
|
694
698
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -696,23 +700,23 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
696
700
|
}),
|
|
697
701
|
{ datapoint: o }
|
|
698
702
|
)), 5)
|
|
699
|
-
], 4)) :
|
|
703
|
+
], 4)) : S("", !0),
|
|
700
704
|
$(t.$slots, "rect", G(X({
|
|
701
705
|
rect: o,
|
|
702
706
|
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || F.value,
|
|
703
707
|
fontSize: W(o),
|
|
704
708
|
isZoom: F.value,
|
|
705
|
-
textColor:
|
|
709
|
+
textColor: y(He)(o.color)
|
|
706
710
|
})), void 0, !0)
|
|
707
711
|
])
|
|
708
|
-
], 8,
|
|
712
|
+
], 8, Jt))
|
|
709
713
|
]))), 256)),
|
|
710
|
-
$(t.$slots, "svg", G(X({ svg:
|
|
711
|
-
], 14,
|
|
712
|
-
t.$slots.watermark ? (g(),
|
|
713
|
-
$(t.$slots, "watermark", G(X({ isPrinting:
|
|
714
|
-
])) :
|
|
715
|
-
|
|
714
|
+
$(t.$slots, "svg", G(X({ svg: B.value, isZoom: F.value, rect: I.value, config: e.value })), void 0, !0)
|
|
715
|
+
], 14, Gt)) : S("", !0),
|
|
716
|
+
t.$slots.watermark ? (g(), w("div", eo, [
|
|
717
|
+
$(t.$slots, "watermark", G(X({ isPrinting: y(be) || y(ke) })), void 0, !0)
|
|
718
|
+
])) : S("", !0),
|
|
719
|
+
u.value ? S("", !0) : (g(), E(_t, {
|
|
716
720
|
key: 6,
|
|
717
721
|
config: {
|
|
718
722
|
type: "treemap",
|
|
@@ -724,26 +728,26 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
724
728
|
}
|
|
725
729
|
}
|
|
726
730
|
}, null, 8, ["config"])),
|
|
727
|
-
|
|
731
|
+
N("div", {
|
|
728
732
|
ref_key: "chartLegend",
|
|
729
|
-
ref:
|
|
733
|
+
ref: D
|
|
730
734
|
}, [
|
|
731
|
-
e.value.style.chart.legend.show ? (g(), E(
|
|
732
|
-
key: `legend_${
|
|
733
|
-
legendSet:
|
|
734
|
-
config:
|
|
735
|
-
id: `treemap_legend_${
|
|
736
|
-
onClickMarker: l[1] || (l[1] = ({ legend: o }) =>
|
|
735
|
+
e.value.style.chart.legend.show ? (g(), E(Tt, {
|
|
736
|
+
key: `legend_${pe.value}`,
|
|
737
|
+
legendSet: Ne.value,
|
|
738
|
+
config: et.value,
|
|
739
|
+
id: `treemap_legend_${d.value}`,
|
|
740
|
+
onClickMarker: l[1] || (l[1] = ({ legend: o }) => ze(o))
|
|
737
741
|
}, {
|
|
738
|
-
item:
|
|
739
|
-
|
|
740
|
-
onClick: (
|
|
741
|
-
style: R(`opacity:${
|
|
742
|
+
item: T(({ legend: o, index: r }) => [
|
|
743
|
+
N("div", {
|
|
744
|
+
onClick: (m) => ze(o),
|
|
745
|
+
style: R(`opacity:${h.value.includes(o.id) ? 0.5 : 1}`)
|
|
742
746
|
}, [
|
|
743
|
-
|
|
747
|
+
Ve(Y(o.name) + ": " + Y(y(ne)(
|
|
744
748
|
e.value.style.chart.layout.labels.formatter,
|
|
745
749
|
o.value,
|
|
746
|
-
|
|
750
|
+
y(K)({
|
|
747
751
|
p: e.value.style.chart.layout.labels.prefix,
|
|
748
752
|
v: o.value,
|
|
749
753
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -751,25 +755,25 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
751
755
|
}),
|
|
752
756
|
{ datapoint: o }
|
|
753
757
|
)) + " ", 1),
|
|
754
|
-
|
|
755
|
-
], 12,
|
|
758
|
+
h.value.includes(o.id) ? (g(), w("span", lo, " ( - % ) ")) : (g(), w("span", oo, " (" + Y(isNaN(o.value / q.value) ? "-" : (o.value / q.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
759
|
+
], 12, to)
|
|
756
760
|
]),
|
|
757
761
|
_: 1
|
|
758
762
|
}, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
|
|
759
763
|
key: 1,
|
|
760
|
-
legend:
|
|
764
|
+
legend: Ne.value
|
|
761
765
|
}, void 0, !0)
|
|
762
766
|
], 512),
|
|
763
|
-
t.$slots.source ? (g(),
|
|
767
|
+
t.$slots.source ? (g(), w("div", {
|
|
764
768
|
key: 7,
|
|
765
769
|
ref_key: "source",
|
|
766
|
-
ref:
|
|
770
|
+
ref: A,
|
|
767
771
|
dir: "auto"
|
|
768
772
|
}, [
|
|
769
773
|
$(t.$slots, "source", {}, void 0, !0)
|
|
770
|
-
], 512)) :
|
|
771
|
-
|
|
772
|
-
show: M.value.showTooltip &&
|
|
774
|
+
], 512)) : S("", !0),
|
|
775
|
+
Re(xt, {
|
|
776
|
+
show: M.value.showTooltip && z.value,
|
|
773
777
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
774
778
|
color: e.value.style.chart.tooltip.color,
|
|
775
779
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -779,20 +783,20 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
779
783
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
780
784
|
position: e.value.style.chart.tooltip.position,
|
|
781
785
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
782
|
-
parent:
|
|
783
|
-
content:
|
|
784
|
-
isFullscreen:
|
|
785
|
-
isCustom:
|
|
786
|
+
parent: b.value,
|
|
787
|
+
content: O.value,
|
|
788
|
+
isFullscreen: C.value,
|
|
789
|
+
isCustom: y(We)(e.value.style.chart.tooltip.customFormat)
|
|
786
790
|
}, {
|
|
787
|
-
"tooltip-before":
|
|
791
|
+
"tooltip-before": T(() => [
|
|
788
792
|
$(t.$slots, "tooltip-before", G(X({ ...ie.value })), void 0, !0)
|
|
789
793
|
]),
|
|
790
|
-
"tooltip-after":
|
|
794
|
+
"tooltip-after": T(() => [
|
|
791
795
|
$(t.$slots, "tooltip-after", G(X({ ...ie.value })), void 0, !0)
|
|
792
796
|
]),
|
|
793
797
|
_: 3
|
|
794
798
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
795
|
-
|
|
799
|
+
u.value ? (g(), E(St, {
|
|
796
800
|
key: 8,
|
|
797
801
|
hideDetails: "",
|
|
798
802
|
config: {
|
|
@@ -808,9 +812,9 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
808
812
|
}
|
|
809
813
|
}
|
|
810
814
|
}, {
|
|
811
|
-
content:
|
|
812
|
-
(g(), E(
|
|
813
|
-
key: `table_${
|
|
815
|
+
content: T(() => [
|
|
816
|
+
(g(), E(Ot, {
|
|
817
|
+
key: `table_${fe.value}`,
|
|
814
818
|
colNames: te.value.colNames,
|
|
815
819
|
head: te.value.head,
|
|
816
820
|
body: te.value.body,
|
|
@@ -818,23 +822,23 @@ const Ht = (a) => (rt("data-v-9a178263"), a = a(), ut(), a), Ut = ["id"], Wt = [
|
|
|
818
822
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
819
823
|
onClose: l[2] || (l[2] = (o) => M.value.showTable = !1)
|
|
820
824
|
}, {
|
|
821
|
-
th:
|
|
822
|
-
|
|
825
|
+
th: T(({ th: o }) => [
|
|
826
|
+
N("div", {
|
|
823
827
|
innerHTML: o,
|
|
824
828
|
style: { display: "flex", "align-items": "center" }
|
|
825
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, ao)
|
|
826
830
|
]),
|
|
827
|
-
td:
|
|
828
|
-
|
|
831
|
+
td: T(({ td: o }) => [
|
|
832
|
+
Ve(Y(o.name || o), 1)
|
|
829
833
|
]),
|
|
830
834
|
_: 1
|
|
831
835
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
832
836
|
]),
|
|
833
837
|
_: 1
|
|
834
|
-
}, 8, ["config"])) :
|
|
835
|
-
], 46,
|
|
838
|
+
}, 8, ["config"])) : S("", !0)
|
|
839
|
+
], 46, Et));
|
|
836
840
|
}
|
|
837
|
-
},
|
|
841
|
+
}, Co = /* @__PURE__ */ It(no, [["__scopeId", "data-v-d58b1737"]]);
|
|
838
842
|
export {
|
|
839
|
-
|
|
843
|
+
Co as default
|
|
840
844
|
};
|