vue-data-ui 2.6.6 → 2.6.8
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-DFWjAvCY.js → Arrow-BHD3VBsD.js} +1 -1
- package/dist/{Arrow-BYqxz6UG.cjs → Arrow-YuEygGzC.cjs} +1 -1
- package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-D326yPTV.cjs} +1 -1
- package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-dThl5uNa.js} +1 -1
- package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-CaD8j-SL.cjs} +1 -1
- package/dist/{DataTable-CJN0sipt.js → DataTable-D0-zzsJg.js} +2 -2
- package/dist/{Legend-CM7IGBC3.cjs → Legend-CEw2uq9s.cjs} +1 -1
- package/dist/{Legend-BDyPoYfp.js → Legend-Oaw0MY8Y.js} +2 -2
- package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-CCgJTyH9.cjs} +1 -1
- package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-J_USnljf.js} +1 -1
- package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CoEXEMcN.js} +3 -3
- package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-DvNBHCpq.cjs} +1 -1
- package/dist/Shape-Cwx-wRaK.cjs +1 -0
- package/dist/{Shape-C_qIhG3J.js → Shape-Dtm6toQp.js} +26 -23
- package/dist/{Slicer-DPae3p1M.cjs → Slicer-7z_6bjyU.cjs} +1 -1
- package/dist/{Slicer-BQP3UIW-.js → Slicer-BAcq2vD0.js} +2 -2
- package/dist/{Title-BGiQdt7J.cjs → Title-BQSh4ukk.cjs} +1 -1
- package/dist/{Title-D6h1gTvZ.js → Title-DePxeqVl.js} +1 -1
- package/dist/{Tooltip-BonEVaob.js → Tooltip-DRw9RoFp.js} +23 -20
- package/dist/Tooltip-DtqrGu-Q.cjs +1 -0
- package/dist/{index-B9qF6XbP.js → index-CZlI7PiS.js} +1 -1
- package/dist/{index-kZKcQZM_.cjs → index-DD4PT0Pl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-Cg0NIwr6.js} +1 -1
- package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-DU7JFxpL.cjs} +1 -1
- package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-BtJq2wwh.cjs} +1 -1
- package/dist/{usePrinter-DsiBLAy1.js → usePrinter-D-sSdR2l.js} +1 -1
- package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-Dh3BJvUF.js} +61 -61
- package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-DzVmFW3P.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DHeSFJ5z.js → vue-ui-3d-bar-Ckd-GTWY.js} +171 -168
- package/dist/vue-ui-3d-bar-llxfgI9N.cjs +19 -0
- package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-2He8z0Sy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-DVtmOO3I.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-BUGAES7K.js} +85 -82
- package/dist/vue-ui-age-pyramid-CxBb12yp.cjs +1 -0
- package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-BDUanFLb.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-gIa7-tAI.js} +1 -1
- package/dist/vue-ui-bullet-Bg8f_RzX.cjs +34 -0
- package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-DNfzMdcg.js} +92 -89
- package/dist/vue-ui-candlestick-CnKPX6xB.cjs +2 -0
- package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-jErGIOZA.js} +155 -152
- package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-DHyvpjWL.js} +4 -4
- package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-DsY9Mrdg.cjs} +1 -1
- package/dist/vue-ui-chestnut-BTCxF3dU.cjs +6 -0
- package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-kQjk4FqR.js} +186 -183
- package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-BQbwIDRa.js} +99 -96
- package/dist/vue-ui-circle-pack-D-eMMNzU.cjs +1 -0
- package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-Dd2eSMAz.cjs} +1 -1
- package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-xy62w2ep.js} +2 -2
- package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DPjU-kPn.js} +2 -2
- package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-nMODKstD.cjs} +1 -1
- package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-BNTE0Lsb.js} +2 -2
- package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-Beuy8wvV.cjs} +1 -1
- package/dist/vue-ui-donut-DWKUDr7k.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BICtQ8ke.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-DfHfXqar.js} +133 -131
- package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-ipVF2Pk6.js} +158 -155
- package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-D04To0aO.js} +125 -122
- package/dist/vue-ui-dumbbell-DPZYa6RZ.cjs +9 -0
- package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-DYpBU4gG.js} +96 -93
- package/dist/vue-ui-flow-HFjfjzgX.cjs +1 -0
- package/dist/vue-ui-funnel-BwClLXO6.cjs +1 -0
- package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-CVQHETom.js} +88 -85
- package/dist/vue-ui-galaxy-B0W8yBZU.cjs +1 -0
- package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-DseGnRIL.js} +123 -120
- package/dist/vue-ui-gauge-0vhiDi19.cjs +1 -0
- package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-B7nCLtyI.js} +86 -83
- package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-C1fpqm2H.js} +3 -3
- package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-CTMnMH7C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-B0a6TegZ.js} +109 -106
- package/dist/vue-ui-heatmap-DjxXVFyU.cjs +1 -0
- package/dist/vue-ui-history-plot-CfjWg_3c.cjs +1 -0
- package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-DsLgXpZ8.js} +130 -127
- package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-CTsWQvCi.cjs} +1 -1
- package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-be1EaVNS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BHm2QQQF.js} +2 -2
- package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-DLdlPE48.cjs} +1 -1
- package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule--G2QIMak.js} +147 -144
- package/dist/vue-ui-molecule-DQOP_2JN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-Bhr5Q9pC.js} +97 -94
- package/dist/vue-ui-mood-radar-HxyTIDLP.cjs +1 -0
- package/dist/vue-ui-nested-donuts-C0aK_Cmr.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-Dtll0W-x.js} +99 -96
- package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-CRRZ8ajr.js} +105 -102
- package/dist/vue-ui-onion-DJFv8ezH.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BTkf3dkR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-DMk3iobe.js} +97 -94
- package/dist/vue-ui-quadrant-B7iHGaqG.cjs +1 -0
- package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-EcGC8p0U.js} +155 -152
- package/dist/vue-ui-quick-chart-BOla8Yse.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-D6AS1YSx.js} +164 -161
- package/dist/vue-ui-radar-DmM3tCiY.cjs +1 -0
- package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-LzAasUWm.js} +105 -102
- package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-D9K7meNL.cjs} +1 -1
- package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-DK4hwg8z.js} +2 -2
- package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-CbOCYAmF.js} +127 -124
- package/dist/vue-ui-relation-circle-DIJuJZrt.cjs +1 -0
- package/dist/vue-ui-rings-BWgF92GG.cjs +2 -0
- package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-Cqzy5T3m.js} +114 -111
- package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DXvyWQYL.js} +157 -154
- package/dist/vue-ui-scatter-F-gNKXpp.cjs +1 -0
- package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-BL75IkNz.js} +1 -1
- package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-BXngAa8V.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-D8r-yAkW.js} +3 -3
- package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-Tk4j6G2D.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-BKWWVHh7.js} +2 -2
- package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-BLnMEG6Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-Bb7xpmpt.js} +5 -5
- package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-CqG-PKFp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-0h661dcM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-JIpGYhbq.js} +4 -4
- package/dist/vue-ui-sparkgauge-BLglWMCN.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-Cc-l_NLU.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-BysifQmq.js} +93 -90
- package/dist/vue-ui-sparkhistogram-CCbcvIJ1.cjs +1 -0
- package/dist/vue-ui-sparkline-CDJX8K9i.cjs +1 -0
- package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CV-N3Wio.js} +109 -106
- package/dist/vue-ui-sparkstackbar-Bo4JAlsR.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-WOO_AbtI.js} +59 -56
- package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CP0igpri.js} +136 -133
- package/dist/vue-ui-stackbar-D7odU6jb.cjs +6 -0
- package/dist/vue-ui-strip-plot-CUqC58Ki.cjs +1 -0
- package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-_3AJWLnm.js} +127 -124
- package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-8O19epjz.cjs} +1 -1
- package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-WdE7p5Oy.js} +1 -1
- package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CXS6WfTi.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-DH5kHmxx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-CWwjANqk.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-DnvQfr2p.cjs} +1 -1
- package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-BxrDTquG.js} +84 -81
- package/dist/vue-ui-thermometer-COmtpPaq.cjs +1 -0
- package/dist/vue-ui-timer-Bx3W4oUc.cjs +64 -0
- package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-DjKCOw9A.js} +183 -180
- package/dist/vue-ui-tiremarks--XDyJeJg.cjs +1 -0
- package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-VWxcZxB-.js} +59 -56
- package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-BGFmZcII.js} +123 -120
- package/dist/vue-ui-treemap-DTwjydy8.cjs +1 -0
- package/dist/vue-ui-vertical-bar-Bpv8mXW2.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-DC9czKCT.js} +108 -105
- package/dist/vue-ui-waffle-B_6ZAnKt.cjs +1 -0
- package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-Cu63K9Iy.js} +107 -104
- package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-AOt-pfpa.js} +75 -72
- package/dist/vue-ui-wheel-BQM-dxTa.cjs +1 -0
- package/dist/vue-ui-word-cloud-Bam3-7P_.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CrILrx6m.js} +97 -94
- package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-BuLymzS3.js} +179 -150
- package/dist/vue-ui-xy-CSmObuR7.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BQ0Lbxbd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-DPnb5mqS.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-BN3-_2DI.cjs +0 -1
- package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
- package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
- package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
- package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
- package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
- package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
- package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
- package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
- package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
- package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
- package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
- package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
- package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
- package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
- package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
- package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
- package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
- package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
- package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
- package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
- package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
- package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
- package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
- package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
- package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
- package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
- package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
- package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
- package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
- package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
- package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
- package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
- package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
- package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
- package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
- package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { useSlots 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 Ge } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
1
|
+
import { useSlots as st, onMounted as Ie, computed as k, ref as f, watch as rt, onBeforeUnmount as ut, createElementBlock as C, openBlock as p, unref as g, normalizeStyle as D, normalizeClass as Le, createBlock as E, createCommentVNode as P, createElementVNode as z, createVNode as De, createSlots as it, withCtx as T, renderSlot as x, normalizeProps as X, guardReactiveProps as j, Fragment as Me, renderList as Ve, toDisplayString as Y, mergeProps as ct, createTextVNode as Ue, nextTick as dt } from "vue";
|
|
2
|
+
import { u as vt, c as Be, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as He, G as We, x as Ee, q as bt, r as wt, y as kt } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { _ as Ct } from "./Title-DePxeqVl.js";
|
|
4
|
+
import { u as $t, U as xt } from "./usePrinter-D-sSdR2l.js";
|
|
5
|
+
import { _ as Tt } from "./Tooltip-DRw9RoFp.js";
|
|
6
|
+
import { L as Ot } from "./Legend-Oaw0MY8Y.js";
|
|
7
|
+
import _t from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
8
|
+
import { D as St } from "./DataTable-D0-zzsJg.js";
|
|
9
|
+
import Nt from "./vue-ui-accordion-DVtmOO3I.js";
|
|
10
|
+
import { t as Pt, u as zt } from "./useResponsive-BWapHhVH.js";
|
|
11
|
+
import { u as Ge } from "./useNestedProp-Cg0NIwr6.js";
|
|
12
|
+
import { _ as At } from "./PackageVersion-J_USnljf.js";
|
|
13
|
+
import { P as Ft } from "./PenAndPaper-CoEXEMcN.js";
|
|
14
|
+
import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { u as It } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
17
|
function qe(a, u) {
|
|
17
18
|
const s = a.length;
|
|
18
19
|
if (s === 0)
|
|
@@ -38,7 +39,7 @@ function Xe(a) {
|
|
|
38
39
|
y1: s + n
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function Dt(a, u, s) {
|
|
42
43
|
if (a.length === 0)
|
|
43
44
|
return !0;
|
|
44
45
|
{
|
|
@@ -49,7 +50,7 @@ function Lt(a, u, s) {
|
|
|
49
50
|
return n >= d;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function Mt(a) {
|
|
53
54
|
const u = [], s = a.length;
|
|
54
55
|
for (let i = 0; i < s; i += 1) {
|
|
55
56
|
const n = a[i], d = n.length;
|
|
@@ -58,14 +59,14 @@ function Rt(a) {
|
|
|
58
59
|
}
|
|
59
60
|
return u;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function Vt(a, u) {
|
|
62
63
|
const s = {
|
|
63
64
|
...u,
|
|
64
65
|
children: a
|
|
65
66
|
};
|
|
66
67
|
return Ye(s);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function Ut(a) {
|
|
69
70
|
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
70
71
|
}
|
|
71
72
|
function je(a, u) {
|
|
@@ -96,11 +97,11 @@ function je(a, u) {
|
|
|
96
97
|
return w;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function Bt(a) {
|
|
100
101
|
const u = de(a), s = u.width, i = u.height;
|
|
101
102
|
return Math.min(s, i);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function Ht(a, u) {
|
|
104
105
|
const s = a.length, i = a.map((h) => h.value ?? 0).reduce((h, S) => h + S, 0), n = u / i, d = [];
|
|
105
106
|
let c, v;
|
|
106
107
|
for (let h = 0; h < s; h += 1)
|
|
@@ -118,7 +119,7 @@ function de(a) {
|
|
|
118
119
|
height: n - s
|
|
119
120
|
};
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function Wt(a, u, s, i) {
|
|
122
123
|
let n = a, d = u, c = s, v = i;
|
|
123
124
|
for (; ; ) {
|
|
124
125
|
const h = n.length;
|
|
@@ -126,8 +127,8 @@ function Bt(a, u, s, i) {
|
|
|
126
127
|
const w = je(d, c);
|
|
127
128
|
return v.concat(w);
|
|
128
129
|
}
|
|
129
|
-
const S =
|
|
130
|
-
if (
|
|
130
|
+
const S = Bt(c), _ = n[0], N = n.slice(1, h);
|
|
131
|
+
if (Dt(d, _, S)) {
|
|
131
132
|
const w = d.concat(_);
|
|
132
133
|
n = N, d = w, c = c, v = v;
|
|
133
134
|
} else {
|
|
@@ -135,7 +136,7 @@ function Bt(a, u, s, i) {
|
|
|
135
136
|
let b = 0;
|
|
136
137
|
for (let A = 0; A < w; A += 1)
|
|
137
138
|
b += d[A].normalizedValue;
|
|
138
|
-
const y =
|
|
139
|
+
const y = Et(c, b), $ = je(d, c), M = v.concat($);
|
|
139
140
|
n = n, d = [], c = y, v = M;
|
|
140
141
|
}
|
|
141
142
|
}
|
|
@@ -144,16 +145,16 @@ function Ye(a) {
|
|
|
144
145
|
if (typeof a.children > "u" || !a.children.length)
|
|
145
146
|
return [a];
|
|
146
147
|
{
|
|
147
|
-
const u =
|
|
148
|
+
const u = Ht(
|
|
148
149
|
a.children,
|
|
149
|
-
|
|
150
|
-
), s =
|
|
150
|
+
Ut(a)
|
|
151
|
+
), s = Wt(u, [], a, []), i = s.length, n = [];
|
|
151
152
|
for (let c = 0; c < i; c += 1)
|
|
152
153
|
n.push(Ye(s[c]));
|
|
153
|
-
return
|
|
154
|
+
return Mt(n);
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
|
-
function
|
|
157
|
+
function Et(a, u) {
|
|
157
158
|
const { width: s, height: i, xOffset: n, yOffset: d } = de(a);
|
|
158
159
|
if (s >= i) {
|
|
159
160
|
const c = u / i, v = s - c, h = {
|
|
@@ -173,13 +174,13 @@ function Ht(a, u) {
|
|
|
173
174
|
return Xe(h);
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
|
-
const
|
|
177
|
+
const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt = ["stop-color"], Zt = ["stop-color"], Jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Kt = ["x", "y", "height", "width"], Qt = {
|
|
177
178
|
style: { width: "100%", height: "100%" },
|
|
178
179
|
class: "vue-ui-treemap-cell"
|
|
179
|
-
},
|
|
180
|
+
}, eo = {
|
|
180
181
|
key: 5,
|
|
181
182
|
class: "vue-data-ui-watermark"
|
|
182
|
-
},
|
|
183
|
+
}, to = ["onClick"], oo = { key: 0 }, lo = { key: 1 }, ao = ["innerHTML"], no = {
|
|
183
184
|
__name: "vue-ui-treemap",
|
|
184
185
|
props: {
|
|
185
186
|
config: {
|
|
@@ -197,14 +198,14 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
197
198
|
},
|
|
198
199
|
emits: ["selectLegend", "selectDatapoint"],
|
|
199
200
|
setup(a, { expose: u, emit: s }) {
|
|
200
|
-
const { vue_ui_treemap: i } =
|
|
201
|
-
|
|
201
|
+
const { vue_ui_treemap: i } = vt(), n = a, d = s, c = st();
|
|
202
|
+
Ie(() => {
|
|
202
203
|
c["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
203
204
|
});
|
|
204
205
|
const v = k(() => !!n.dataset && n.dataset.length), h = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), S = f(Be()), _ = f(!1), N = f(""), w = f(!1), b = f(0), y = f([]), $ = f(null), M = f(null), A = f(null), ve = f(null), he = f(null), fe = f(0), pe = f(0), ge = f(0), e = k({
|
|
205
206
|
get: () => be(),
|
|
206
207
|
set: (t) => t
|
|
207
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: ye, keepUserOptionState: me } =
|
|
208
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: ye, keepUserOptionState: me } = Rt({ config: e.value }), { svgRef: Ze } = It({ config: e.value.style.chart.title });
|
|
208
209
|
function be() {
|
|
209
210
|
const t = Ge({
|
|
210
211
|
userConfig: n.config,
|
|
@@ -212,19 +213,19 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
212
213
|
});
|
|
213
214
|
return t.theme ? {
|
|
214
215
|
...Ge({
|
|
215
|
-
userConfig:
|
|
216
|
+
userConfig: ft.vue_ui_treemap[t.theme] || n.config,
|
|
216
217
|
defaultConfig: t
|
|
217
218
|
}),
|
|
218
|
-
customPalette:
|
|
219
|
+
customPalette: ht[t.theme] || O
|
|
219
220
|
} : t;
|
|
220
221
|
}
|
|
221
|
-
|
|
222
|
+
rt(() => n.config, (t) => {
|
|
222
223
|
e.value = be(), se.value = !e.value.userOptions.showOnChartHover, fe.value += 1, pe.value += 1, ge.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
223
224
|
}, { deep: !0 });
|
|
224
|
-
const { isPrinting: we, isImaging: ke, generatePdf: Ce, generateImage: $e } =
|
|
225
|
+
const { isPrinting: we, isImaging: ke, generatePdf: Ce, generateImage: $e } = $t({
|
|
225
226
|
elementId: `treemap_${S.value}`,
|
|
226
227
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap"
|
|
227
|
-
}),
|
|
228
|
+
}), Je = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = k(() => pt(e.value.customPalette)), F = f({
|
|
228
229
|
showTable: e.value.table.show,
|
|
229
230
|
showTooltip: e.value.style.chart.tooltip.show
|
|
230
231
|
}), V = f({
|
|
@@ -248,16 +249,16 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
248
249
|
});
|
|
249
250
|
}
|
|
250
251
|
const H = f(n.dataset), ee = f(null);
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
Ie(() => {
|
|
253
|
+
Ke();
|
|
253
254
|
});
|
|
254
|
-
function
|
|
255
|
-
if (
|
|
255
|
+
function Ke() {
|
|
256
|
+
if (gt(n.dataset) && yt({
|
|
256
257
|
componentName: "VueUiTreemap",
|
|
257
258
|
type: "dataset"
|
|
258
259
|
}), xe(H.value), e.value.responsive) {
|
|
259
|
-
const t =
|
|
260
|
-
const { width: l, height: o } =
|
|
260
|
+
const t = Pt(() => {
|
|
261
|
+
const { width: l, height: o } = zt({
|
|
261
262
|
chart: $.value,
|
|
262
263
|
title: e.value.style.chart.title.text ? M.value : null,
|
|
263
264
|
legend: e.value.style.chart.legend.show ? A.value : null,
|
|
@@ -271,7 +272,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
271
272
|
ee.value = new ResizeObserver(t), ee.value.observe($.value.parentNode);
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
|
-
|
|
275
|
+
ut(() => {
|
|
275
276
|
ee.value && ee.value.disconnect();
|
|
276
277
|
});
|
|
277
278
|
const re = f(H.value), Z = k(() => re.value.map((t, l) => ({
|
|
@@ -291,23 +292,23 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
291
292
|
function Oe(t, l) {
|
|
292
293
|
return t.value / l;
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
+
function Qe(t, l, o) {
|
|
295
296
|
const r = e.value.style.chart.layout.rects.colorRatio - Oe(l, o);
|
|
296
297
|
return He(t, r < 0 ? 0 : r);
|
|
297
298
|
}
|
|
298
299
|
function _e(t, l, o, r) {
|
|
299
300
|
return t.map((m, U) => {
|
|
300
|
-
const le =
|
|
301
|
+
const le = Qe(ae(l) || Q.value[U] || O[U] || O[U % O.length], m, r), nt = Oe(m, r);
|
|
301
302
|
return {
|
|
302
303
|
...m,
|
|
303
304
|
color: le,
|
|
304
|
-
proportion:
|
|
305
|
+
proportion: nt,
|
|
305
306
|
parentName: o,
|
|
306
307
|
children: m.children ? _e(m.children, le, m.name, r) : void 0
|
|
307
308
|
};
|
|
308
309
|
});
|
|
309
310
|
}
|
|
310
|
-
const J = k(() =>
|
|
311
|
+
const J = k(() => Vt(
|
|
311
312
|
Te.value.map((t, l) => {
|
|
312
313
|
const o = t.children ? t.children.reduce((r, m) => r + m.value, 0) : t.value;
|
|
313
314
|
return {
|
|
@@ -330,7 +331,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
330
331
|
const l = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
331
332
|
return l < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : l;
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function et(t) {
|
|
334
335
|
w.value = t, b.value += 1;
|
|
335
336
|
}
|
|
336
337
|
const q = k(() => ({
|
|
@@ -338,7 +339,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
338
339
|
startY: 0,
|
|
339
340
|
width: B.value.vbWidth,
|
|
340
341
|
height: B.value.vbHeight
|
|
341
|
-
})),
|
|
342
|
+
})), R = f(!1);
|
|
342
343
|
function ue(t, l = H.value) {
|
|
343
344
|
for (const o of l) {
|
|
344
345
|
if (o.id === t)
|
|
@@ -351,17 +352,17 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
351
352
|
}
|
|
352
353
|
return null;
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
-
if (
|
|
355
|
+
function tt(t) {
|
|
356
|
+
if (R.value)
|
|
356
357
|
d("selectDatapoint", void 0), re.value = H.value;
|
|
357
358
|
else {
|
|
358
359
|
if (d("selectDatapoint", t), !ue(t.parentId))
|
|
359
360
|
return;
|
|
360
361
|
re.value = [ue(t.parentId)];
|
|
361
362
|
}
|
|
362
|
-
|
|
363
|
+
R.value = !R.value;
|
|
363
364
|
}
|
|
364
|
-
const
|
|
365
|
+
const I = f(null), Pe = k(() => H.value.map((t, l) => ({
|
|
365
366
|
...t,
|
|
366
367
|
color: ae(t.color) || Q.value[l] || O[l] || O[l % O.length],
|
|
367
368
|
shape: "square"
|
|
@@ -369,7 +370,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
369
370
|
...t,
|
|
370
371
|
proportion: t.value / H.value.map((o) => o.value).reduce((o, r) => o + r, 0),
|
|
371
372
|
opacity: y.value.includes(t.id) ? 0.5 : 1
|
|
372
|
-
}))),
|
|
373
|
+
}))), ot = k(() => ({
|
|
373
374
|
cy: "treemap-div-legend",
|
|
374
375
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
375
376
|
color: e.value.style.chart.legend.color,
|
|
@@ -378,13 +379,13 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
378
379
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
379
380
|
}));
|
|
380
381
|
function ze(t) {
|
|
381
|
-
|
|
382
|
+
R.value = !1, I.value = null, y.value.includes(t.id) ? y.value = y.value.filter((l) => l !== t.id) : y.value.length < n.dataset.length - 1 && y.value.push(t.id), d("selectLegend", Te.value);
|
|
382
383
|
}
|
|
383
384
|
const ie = f(null);
|
|
384
|
-
function
|
|
385
|
-
|
|
385
|
+
function lt({ datapoint: t, seriesIndex: l }) {
|
|
386
|
+
I.value = t, ie.value = { datapoint: t, seriesIndex: l, config: e.value, series: Z.value };
|
|
386
387
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
387
|
-
if (Ee(o) &&
|
|
388
|
+
if (Ee(o) && kt(() => o({
|
|
388
389
|
seriesIndex: l,
|
|
389
390
|
datapoint: t,
|
|
390
391
|
series: Z.value,
|
|
@@ -412,7 +413,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
412
413
|
}
|
|
413
414
|
_.value = !0;
|
|
414
415
|
}
|
|
415
|
-
const
|
|
416
|
+
const L = k(() => {
|
|
416
417
|
const t = J.value.map((o) => ({
|
|
417
418
|
name: o.name,
|
|
418
419
|
color: o.color
|
|
@@ -420,11 +421,11 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
420
421
|
return { head: t, body: l };
|
|
421
422
|
});
|
|
422
423
|
function Ae() {
|
|
423
|
-
|
|
424
|
-
const t =
|
|
424
|
+
dt(() => {
|
|
425
|
+
const t = L.value.head.map((r, m) => [[
|
|
425
426
|
r.name
|
|
426
|
-
], [
|
|
427
|
-
|
|
427
|
+
], [L.value.body[m]], [isNaN(L.value.body[m] / G.value) ? "-" : L.value.body[m] / G.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = bt(l);
|
|
428
|
+
wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
431
|
const te = k(() => {
|
|
@@ -432,13 +433,13 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
432
433
|
e.value.table.columnNames.series,
|
|
433
434
|
e.value.table.columnNames.value,
|
|
434
435
|
e.value.table.columnNames.percentage
|
|
435
|
-
], l =
|
|
436
|
+
], l = L.value.head.map((m, U) => {
|
|
436
437
|
const le = ne(
|
|
437
438
|
e.value.style.chart.layout.labels.formatter,
|
|
438
|
-
|
|
439
|
+
L.value.body[U],
|
|
439
440
|
K({
|
|
440
441
|
p: e.value.style.chart.layout.labels.prefix,
|
|
441
|
-
v:
|
|
442
|
+
v: L.value.body[U],
|
|
442
443
|
s: e.value.style.chart.layout.labels.suffix,
|
|
443
444
|
r: e.value.table.td.roundingValue
|
|
444
445
|
})
|
|
@@ -450,8 +451,8 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
450
451
|
shape: "square"
|
|
451
452
|
},
|
|
452
453
|
le,
|
|
453
|
-
isNaN(
|
|
454
|
-
v:
|
|
454
|
+
isNaN(L.value.body[U] / G.value) ? "-" : K({
|
|
455
|
+
v: L.value.body[U] / G.value * 100,
|
|
455
456
|
s: "%",
|
|
456
457
|
r: e.value.table.td.roundingPercentage
|
|
457
458
|
})
|
|
@@ -479,13 +480,13 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
479
480
|
config: o
|
|
480
481
|
};
|
|
481
482
|
});
|
|
482
|
-
function
|
|
483
|
+
function at() {
|
|
483
484
|
return J.value;
|
|
484
485
|
}
|
|
485
486
|
function Fe() {
|
|
486
487
|
F.value.showTable = !F.value.showTable;
|
|
487
488
|
}
|
|
488
|
-
function
|
|
489
|
+
function Re() {
|
|
489
490
|
F.value.showTooltip = !F.value.showTooltip;
|
|
490
491
|
}
|
|
491
492
|
const oe = f(!1);
|
|
@@ -493,23 +494,23 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
493
494
|
oe.value = !oe.value;
|
|
494
495
|
}
|
|
495
496
|
return u({
|
|
496
|
-
getData:
|
|
497
|
+
getData: at,
|
|
497
498
|
generateCsv: Ae,
|
|
498
499
|
generateImage: $e,
|
|
499
500
|
generatePdf: Ce,
|
|
500
501
|
toggleTable: Fe,
|
|
501
|
-
toggleTooltip:
|
|
502
|
+
toggleTooltip: Re,
|
|
502
503
|
toggleAnnotator: ce
|
|
503
504
|
}), (t, l) => (p(), C("div", {
|
|
504
505
|
ref_key: "treemapChart",
|
|
505
506
|
ref: $,
|
|
506
|
-
class:
|
|
507
|
+
class: Le(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
507
508
|
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
508
509
|
id: `treemap_${S.value}`,
|
|
509
510
|
onMouseenter: l[3] || (l[3] = () => g(ye)(!0)),
|
|
510
511
|
onMouseleave: l[4] || (l[4] = () => g(ye)(!1))
|
|
511
512
|
}, [
|
|
512
|
-
e.value.userOptions.buttons.annotator ? (p(), E(
|
|
513
|
+
e.value.userOptions.buttons.annotator ? (p(), E(Ft, {
|
|
513
514
|
key: 0,
|
|
514
515
|
parent: $.value,
|
|
515
516
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -517,7 +518,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
517
518
|
active: oe.value,
|
|
518
519
|
onClose: ce
|
|
519
520
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : P("", !0),
|
|
520
|
-
|
|
521
|
+
Je.value ? (p(), C("div", {
|
|
521
522
|
key: 1,
|
|
522
523
|
ref_key: "noTitle",
|
|
523
524
|
ref: he,
|
|
@@ -530,7 +531,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
530
531
|
ref: M,
|
|
531
532
|
style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
532
533
|
}, [
|
|
533
|
-
(p(), E(
|
|
534
|
+
(p(), E(Ct, {
|
|
534
535
|
key: `title_${fe.value}`,
|
|
535
536
|
config: {
|
|
536
537
|
title: {
|
|
@@ -544,7 +545,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
544
545
|
}
|
|
545
546
|
}, null, 8, ["config"]))
|
|
546
547
|
], 4)) : P("", !0),
|
|
547
|
-
e.value.userOptions.show && v.value && (g(me) || g(se)) ? (p(), E(
|
|
548
|
+
e.value.userOptions.show && v.value && (g(me) || g(se)) ? (p(), E(xt, {
|
|
548
549
|
ref: "details",
|
|
549
550
|
key: `user_option_${b.value}`,
|
|
550
551
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -565,17 +566,17 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
565
566
|
position: e.value.userOptions.position,
|
|
566
567
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
567
568
|
isAnnotation: oe.value,
|
|
568
|
-
onToggleFullscreen:
|
|
569
|
+
onToggleFullscreen: et,
|
|
569
570
|
onGeneratePdf: g(Ce),
|
|
570
571
|
onGenerateCsv: Ae,
|
|
571
572
|
onGenerateImage: g($e),
|
|
572
573
|
onToggleTable: Fe,
|
|
573
|
-
onToggleTooltip:
|
|
574
|
+
onToggleTooltip: Re,
|
|
574
575
|
onToggleAnnotator: ce,
|
|
575
576
|
style: D({
|
|
576
577
|
visibility: g(me) ? g(se) ? "visible" : "hidden" : "visible"
|
|
577
578
|
})
|
|
578
|
-
},
|
|
579
|
+
}, it({ _: 2 }, [
|
|
579
580
|
t.$slots.optionTooltip ? {
|
|
580
581
|
name: "optionTooltip",
|
|
581
582
|
fn: T(() => [
|
|
@@ -628,14 +629,16 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
628
629
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : P("", !0),
|
|
629
630
|
v.value ? (p(), C("svg", {
|
|
630
631
|
key: 4,
|
|
631
|
-
|
|
632
|
-
|
|
632
|
+
ref_key: "svgRef",
|
|
633
|
+
ref: Ze,
|
|
634
|
+
xmlns: g(mt),
|
|
635
|
+
class: Le({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !R.value, "vue-data-ui-zoom-minus": R.value }),
|
|
633
636
|
viewBox: `${q.value.startX} ${q.value.startY} ${q.value.width <= 0 ? 10 : q.value.width} ${q.value.height <= 0 ? 10 : q.value.height}`,
|
|
634
637
|
style: D(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
635
638
|
}, [
|
|
636
|
-
De(
|
|
639
|
+
De(At),
|
|
637
640
|
(p(!0), C(Me, null, Ve(J.value, (o, r) => (p(), C("g", null, [
|
|
638
|
-
e.value.style.chart.layout.rects.gradient.show ? (p(), C("defs",
|
|
641
|
+
e.value.style.chart.layout.rects.gradient.show ? (p(), C("defs", Xt, [
|
|
639
642
|
z("radialGradient", {
|
|
640
643
|
id: `tgrad_${o.id}`,
|
|
641
644
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -643,12 +646,12 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
643
646
|
z("stop", {
|
|
644
647
|
offset: "18%",
|
|
645
648
|
"stop-color": o.color
|
|
646
|
-
}, null, 8,
|
|
649
|
+
}, null, 8, Yt),
|
|
647
650
|
z("stop", {
|
|
648
651
|
offset: "100%",
|
|
649
652
|
"stop-color": g(He)(o.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
650
|
-
}, null, 8,
|
|
651
|
-
], 8,
|
|
653
|
+
}, null, 8, Zt)
|
|
654
|
+
], 8, jt)
|
|
652
655
|
])) : P("", !0)
|
|
653
656
|
]))), 256)),
|
|
654
657
|
(p(!0), C(Me, null, Ve(J.value, (o, r) => (p(), C("g", null, [
|
|
@@ -659,19 +662,19 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
659
662
|
width: Ne(o),
|
|
660
663
|
fill: h.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
661
664
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
662
|
-
stroke:
|
|
663
|
-
"stroke-width":
|
|
664
|
-
onClick: (m) =>
|
|
665
|
-
onMouseenter: () =>
|
|
665
|
+
stroke: I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
666
|
+
"stroke-width": I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
667
|
+
onClick: (m) => tt(o),
|
|
668
|
+
onMouseenter: () => lt({
|
|
666
669
|
datapoint: o,
|
|
667
670
|
seriesIndex: r
|
|
668
671
|
}),
|
|
669
672
|
onMouseleave: l[0] || (l[0] = (m) => {
|
|
670
|
-
|
|
673
|
+
I.value = null, _.value = !1;
|
|
671
674
|
}),
|
|
672
|
-
style: D(`opacity:${
|
|
675
|
+
style: D(`opacity:${I.value ? I.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
673
676
|
class: "vue-ui-treemap-rect"
|
|
674
|
-
}, null, 44,
|
|
677
|
+
}, null, 44, Jt),
|
|
675
678
|
(p(), C("foreignObject", {
|
|
676
679
|
x: o.x0,
|
|
677
680
|
y: o.y0,
|
|
@@ -679,8 +682,8 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
679
682
|
width: Ne(o),
|
|
680
683
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
681
684
|
}, [
|
|
682
|
-
z("div",
|
|
683
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
685
|
+
z("div", Qt, [
|
|
686
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || R.value) ? (p(), C("div", {
|
|
684
687
|
key: 0,
|
|
685
688
|
class: "vue-ui-treemap-cell-default",
|
|
686
689
|
style: D(`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:${g(We)(o.color)}`)
|
|
@@ -703,22 +706,22 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
703
706
|
{ datapoint: o }
|
|
704
707
|
)), 5)
|
|
705
708
|
], 4)) : P("", !0),
|
|
706
|
-
x(t.$slots, "rect",
|
|
709
|
+
x(t.$slots, "rect", ct({ ref_for: !0 }, {
|
|
707
710
|
rect: o,
|
|
708
|
-
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
711
|
+
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || R.value,
|
|
709
712
|
fontSize: W(o),
|
|
710
|
-
isZoom:
|
|
713
|
+
isZoom: R.value,
|
|
711
714
|
textColor: g(We)(o.color)
|
|
712
715
|
}), void 0, !0)
|
|
713
716
|
])
|
|
714
|
-
], 8,
|
|
717
|
+
], 8, Kt))
|
|
715
718
|
]))), 256)),
|
|
716
|
-
x(t.$slots, "svg", X(j({ svg: B.value, isZoom:
|
|
717
|
-
], 14,
|
|
718
|
-
t.$slots.watermark ? (p(), C("div",
|
|
719
|
+
x(t.$slots, "svg", X(j({ svg: B.value, isZoom: R.value, rect: I.value, config: e.value })), void 0, !0)
|
|
720
|
+
], 14, qt)) : P("", !0),
|
|
721
|
+
t.$slots.watermark ? (p(), C("div", eo, [
|
|
719
722
|
x(t.$slots, "watermark", X(j({ isPrinting: g(we) || g(ke) })), void 0, !0)
|
|
720
723
|
])) : P("", !0),
|
|
721
|
-
v.value ? P("", !0) : (p(), E(
|
|
724
|
+
v.value ? P("", !0) : (p(), E(_t, {
|
|
722
725
|
key: 6,
|
|
723
726
|
config: {
|
|
724
727
|
type: "treemap",
|
|
@@ -734,10 +737,10 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
734
737
|
ref_key: "chartLegend",
|
|
735
738
|
ref: A
|
|
736
739
|
}, [
|
|
737
|
-
e.value.style.chart.legend.show ? (p(), E(
|
|
740
|
+
e.value.style.chart.legend.show ? (p(), E(Ot, {
|
|
738
741
|
key: `legend_${ge.value}`,
|
|
739
742
|
legendSet: Pe.value,
|
|
740
|
-
config:
|
|
743
|
+
config: ot.value,
|
|
741
744
|
id: `treemap_legend_${S.value}`,
|
|
742
745
|
onClickMarker: l[1] || (l[1] = ({ legend: o }) => ze(o))
|
|
743
746
|
}, {
|
|
@@ -757,8 +760,8 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
757
760
|
}),
|
|
758
761
|
{ datapoint: o }
|
|
759
762
|
)) + " ", 1),
|
|
760
|
-
y.value.includes(o.id) ? (p(), C("span",
|
|
761
|
-
], 12,
|
|
763
|
+
y.value.includes(o.id) ? (p(), C("span", lo, " ( - % ) ")) : (p(), C("span", oo, " (" + Y(isNaN(o.value / G.value) ? "-" : (o.value / G.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
764
|
+
], 12, to)
|
|
762
765
|
]),
|
|
763
766
|
_: 1
|
|
764
767
|
}, 8, ["legendSet", "config", "id"])) : x(t.$slots, "legend", {
|
|
@@ -774,7 +777,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
774
777
|
}, [
|
|
775
778
|
x(t.$slots, "source", {}, void 0, !0)
|
|
776
779
|
], 512)) : P("", !0),
|
|
777
|
-
De(
|
|
780
|
+
De(Tt, {
|
|
778
781
|
show: F.value.showTooltip && _.value,
|
|
779
782
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
780
783
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -798,7 +801,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
798
801
|
]),
|
|
799
802
|
_: 3
|
|
800
803
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
801
|
-
v.value ? (p(), E(
|
|
804
|
+
v.value ? (p(), E(Nt, {
|
|
802
805
|
key: 8,
|
|
803
806
|
hideDetails: "",
|
|
804
807
|
config: {
|
|
@@ -815,7 +818,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
815
818
|
}
|
|
816
819
|
}, {
|
|
817
820
|
content: T(() => [
|
|
818
|
-
(p(), E(
|
|
821
|
+
(p(), E(St, {
|
|
819
822
|
key: `table_${pe.value}`,
|
|
820
823
|
colNames: te.value.colNames,
|
|
821
824
|
head: te.value.head,
|
|
@@ -828,7 +831,7 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
828
831
|
z("div", {
|
|
829
832
|
innerHTML: o,
|
|
830
833
|
style: { display: "flex", "align-items": "center" }
|
|
831
|
-
}, null, 8,
|
|
834
|
+
}, null, 8, ao)
|
|
832
835
|
]),
|
|
833
836
|
td: T(({ td: o }) => [
|
|
834
837
|
Ue(Y(o.name || o), 1)
|
|
@@ -838,9 +841,9 @@ const Wt = ["id"], Et = ["xmlns", "viewBox"], Gt = { key: 0 }, qt = ["id"], Xt =
|
|
|
838
841
|
]),
|
|
839
842
|
_: 1
|
|
840
843
|
}, 8, ["config"])) : P("", !0)
|
|
841
|
-
], 46,
|
|
844
|
+
], 46, Gt));
|
|
842
845
|
}
|
|
843
|
-
},
|
|
846
|
+
}, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-d8ef1a35"]]);
|
|
844
847
|
export {
|
|
845
|
-
|
|
848
|
+
$o as default
|
|
846
849
|
};
|