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,33 +1,34 @@
|
|
|
1
|
-
import { computed as h, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { L as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { D as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as be } from "./useNestedProp-
|
|
11
|
-
import { _ as
|
|
12
|
-
import { P as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as h, onMounted as Ae, ref as u, watch as Ie, createElementBlock as n, openBlock as o, unref as i, normalizeStyle as E, normalizeClass as V, createBlock as $, createCommentVNode as c, renderSlot as v, createVNode as ie, createSlots as Ee, withCtx as d, normalizeProps as S, guardReactiveProps as N, createElementVNode as _, Fragment as ce, renderList as ve, createTextVNode as de, toDisplayString as M, nextTick as Ve } from "vue";
|
|
2
|
+
import { u as Me, o as De, e as he, g as Be, c as pe, t as Ge, p as D, a as ze, b as Ue, J as ye, d as We, M as He, f as k, X as Re, i as fe, x as ge, q as Xe, r as je, y as Ye } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { L as qe } from "./Legend-Oaw0MY8Y.js";
|
|
4
|
+
import { _ as Je } from "./Title-DePxeqVl.js";
|
|
5
|
+
import { _ as Ke } from "./Tooltip-DRw9RoFp.js";
|
|
6
|
+
import { D as Qe } from "./DataTable-D0-zzsJg.js";
|
|
7
|
+
import { u as Ze, U as et } from "./usePrinter-D-sSdR2l.js";
|
|
8
|
+
import tt from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
9
|
+
import lt from "./vue-ui-accordion-DVtmOO3I.js";
|
|
10
|
+
import { u as be } from "./useNestedProp-Cg0NIwr6.js";
|
|
11
|
+
import { _ as at } from "./PackageVersion-J_USnljf.js";
|
|
12
|
+
import { P as ot } from "./PenAndPaper-CoEXEMcN.js";
|
|
13
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
|
+
import { u as rt } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const nt = ["id"], it = {
|
|
16
17
|
key: 1,
|
|
17
18
|
ref: "noTitle",
|
|
18
19
|
class: "vue-data-ui-no-title-space",
|
|
19
20
|
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
-
},
|
|
21
|
+
}, ct = {
|
|
21
22
|
key: 2,
|
|
22
23
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
23
|
-
},
|
|
24
|
+
}, vt = ["xmlns", "viewBox"], dt = ["width", "height"], ht = ["id"], pt = ["stdDeviation"], yt = ["d", "stroke", "stroke-width"], ft = ["d", "stroke", "stroke-width"], gt = ["filter"], bt = ["d", "stroke", "stroke-width"], mt = ["d", "stroke-width", "onMouseenter", "onClick"], kt = {
|
|
24
25
|
key: 5,
|
|
25
26
|
class: "vue-data-ui-watermark"
|
|
26
|
-
},
|
|
27
|
+
}, Ct = ["onClick"], wt = { key: 0 }, $t = { key: 1 }, xt = {
|
|
27
28
|
key: 8,
|
|
28
29
|
ref: "source",
|
|
29
30
|
dir: "auto"
|
|
30
|
-
},
|
|
31
|
+
}, _t = ["innerHTML"], Tt = {
|
|
31
32
|
__name: "vue-ui-galaxy",
|
|
32
33
|
props: {
|
|
33
34
|
config: {
|
|
@@ -44,17 +45,17 @@ const rt = ["id"], ut = {
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
emits: ["selectLegend", "selectDatapoint"],
|
|
47
|
-
setup(me, { expose: ke, emit:
|
|
48
|
-
const { vue_ui_galaxy:
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
setup(me, { expose: ke, emit: Ce }) {
|
|
49
|
+
const { vue_ui_galaxy: we } = Me(), f = me, L = h(() => !!f.dataset && f.dataset.length);
|
|
50
|
+
Ae(() => {
|
|
51
|
+
R();
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
-
|
|
53
|
+
function R() {
|
|
54
|
+
De(f.dataset) ? he({
|
|
54
55
|
componentName: "VueUiGalaxy",
|
|
55
56
|
type: "dataset"
|
|
56
|
-
}) :
|
|
57
|
-
|
|
57
|
+
}) : f.dataset.forEach((t, a) => {
|
|
58
|
+
Be({
|
|
58
59
|
datasetObject: t,
|
|
59
60
|
requiredAttributes: ["name", "values"]
|
|
60
61
|
}).forEach((l) => {
|
|
@@ -67,30 +68,30 @@ const rt = ["id"], ut = {
|
|
|
67
68
|
});
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
const
|
|
71
|
+
const T = u(pe()), F = u(null), $e = u(null), B = u(!1), G = u(""), g = u(null), X = u(0), j = u(0), Y = u(0), q = u(0), e = h({
|
|
71
72
|
get: () => Q(),
|
|
72
73
|
set: (t) => t
|
|
73
|
-
}), { userOptionsVisible: z, setUserOptionsVisibility: J, keepUserOptionState: K } =
|
|
74
|
+
}), { userOptionsVisible: z, setUserOptionsVisibility: J, keepUserOptionState: K } = st({ config: e.value }), { svgRef: xe } = rt({ config: e.value.style.chart.title });
|
|
74
75
|
function Q() {
|
|
75
76
|
const t = be({
|
|
76
|
-
userConfig:
|
|
77
|
-
defaultConfig:
|
|
77
|
+
userConfig: f.config,
|
|
78
|
+
defaultConfig: we
|
|
78
79
|
});
|
|
79
80
|
return t.theme ? {
|
|
80
81
|
...be({
|
|
81
|
-
userConfig:
|
|
82
|
+
userConfig: ze.vue_ui_galaxy[t.theme] || f.config,
|
|
82
83
|
defaultConfig: t
|
|
83
84
|
}),
|
|
84
|
-
customPalette:
|
|
85
|
+
customPalette: Ge[t.theme] || D
|
|
85
86
|
} : t;
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
e.value = Q(), z.value = !e.value.userOptions.showOnChartHover,
|
|
88
|
+
Ie(() => f.config, (t) => {
|
|
89
|
+
e.value = Q(), z.value = !e.value.userOptions.showOnChartHover, R(), j.value += 1, Y.value += 1, q.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
89
90
|
}, { deep: !0 });
|
|
90
|
-
const { isPrinting: Z, isImaging: ee, generatePdf: te, generateImage: le } =
|
|
91
|
-
elementId: `galaxy_${
|
|
91
|
+
const { isPrinting: Z, isImaging: ee, generatePdf: te, generateImage: le } = Ze({
|
|
92
|
+
elementId: `galaxy_${T.value}`,
|
|
92
93
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy"
|
|
93
|
-
}),
|
|
94
|
+
}), _e = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = h(() => Ue(e.value.customPalette)), p = u({
|
|
94
95
|
dataLabels: {
|
|
95
96
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
96
97
|
},
|
|
@@ -100,7 +101,7 @@ const rt = ["id"], ut = {
|
|
|
100
101
|
height: 180,
|
|
101
102
|
// or 250 if non fibo
|
|
102
103
|
width: 250
|
|
103
|
-
}), ae =
|
|
104
|
+
}), ae = Ce, y = u([]);
|
|
104
105
|
function U(t) {
|
|
105
106
|
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), ae("selectLegend", O.value.map((a) => ({
|
|
106
107
|
name: a.name,
|
|
@@ -108,32 +109,32 @@ const rt = ["id"], ut = {
|
|
|
108
109
|
value: a.value
|
|
109
110
|
})));
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
+
const C = h(() => f.dataset.map((t, a) => ({
|
|
112
113
|
name: t.name,
|
|
113
|
-
color:
|
|
114
|
+
color: We(t.color) || Te.value[a] || D[a] || D[a % D.length],
|
|
114
115
|
value: t.values ? ye(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
115
116
|
absoluteValues: ye(t.values),
|
|
116
117
|
id: pe(),
|
|
117
118
|
seriesIndex: a
|
|
118
119
|
})).sort((t, a) => a.value - t.value));
|
|
119
|
-
function
|
|
120
|
-
return
|
|
120
|
+
function Pe() {
|
|
121
|
+
return C.value.map((t) => ({
|
|
121
122
|
name: t.name,
|
|
122
123
|
color: t.color,
|
|
123
124
|
value: t.value
|
|
124
125
|
}));
|
|
125
126
|
}
|
|
126
|
-
const b = h(() =>
|
|
127
|
+
const b = h(() => C.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), Oe = u(190), oe = h(() => C.value.filter((t) => !y.value.includes(t.id))), O = h(() => {
|
|
127
128
|
const t = [];
|
|
128
129
|
for (let a = 0; a < oe.value.length; a += 1) {
|
|
129
130
|
const l = oe.value[a];
|
|
130
|
-
let s = l.value / b.value *
|
|
131
|
+
let s = l.value / b.value * Oe.value;
|
|
131
132
|
a > 0 && t.length && (s += t[a - 1].points), t.push({
|
|
132
133
|
points: s,
|
|
133
134
|
...l,
|
|
134
135
|
seriesIndex: a,
|
|
135
136
|
proportion: l.value / b.value,
|
|
136
|
-
path:
|
|
137
|
+
path: He({
|
|
137
138
|
points: s,
|
|
138
139
|
startX: 115 + e.value.style.chart.layout.arcs.offsetX,
|
|
139
140
|
startY: 90 + e.value.style.chart.layout.arcs.offsetY
|
|
@@ -142,30 +143,30 @@ const rt = ["id"], ut = {
|
|
|
142
143
|
}
|
|
143
144
|
return t.filter((a, l) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
144
145
|
}), x = u(!1);
|
|
145
|
-
function
|
|
146
|
-
x.value = t,
|
|
146
|
+
function Se(t) {
|
|
147
|
+
x.value = t, X.value += 1;
|
|
147
148
|
}
|
|
148
149
|
const W = u(null);
|
|
149
|
-
function
|
|
150
|
+
function Ne({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
150
151
|
W.value = {
|
|
151
152
|
datapoint: t,
|
|
152
153
|
seriesIndex: l,
|
|
153
|
-
series:
|
|
154
|
+
series: C.value,
|
|
154
155
|
config: e.value
|
|
155
|
-
}, B.value = s,
|
|
156
|
+
}, B.value = s, g.value = t.id;
|
|
156
157
|
let r = "";
|
|
157
|
-
const
|
|
158
|
-
|
|
158
|
+
const w = e.value.style.chart.tooltip.customFormat;
|
|
159
|
+
ge(w) && Ye(() => w({
|
|
159
160
|
seriesIndex: l,
|
|
160
161
|
datapoint: t,
|
|
161
|
-
series:
|
|
162
|
+
series: C.value,
|
|
162
163
|
config: e.value
|
|
163
|
-
})) ? G.value =
|
|
164
|
+
})) ? G.value = w({
|
|
164
165
|
seriesIndex: l,
|
|
165
166
|
datapoint: t,
|
|
166
|
-
series:
|
|
167
|
+
series: C.value,
|
|
167
168
|
config: e.value
|
|
168
|
-
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
169
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${fe(
|
|
169
170
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
170
171
|
t.value,
|
|
171
172
|
k({
|
|
@@ -185,14 +186,14 @@ const rt = ["id"], ut = {
|
|
|
185
186
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
186
187
|
})}</b></div>`), G.value = `<div>${r}</div>`);
|
|
187
188
|
}
|
|
188
|
-
const se = h(() =>
|
|
189
|
+
const se = h(() => C.value.map((t, a) => ({
|
|
189
190
|
...t,
|
|
190
|
-
proportion: (t.value || 0) /
|
|
191
|
+
proportion: (t.value || 0) / f.dataset.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
191
192
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
192
193
|
shape: t.shape || "circle",
|
|
193
194
|
segregate: () => U(t),
|
|
194
195
|
isSegregated: y.value.includes(t.id)
|
|
195
|
-
}))),
|
|
196
|
+
}))), Le = h(() => ({
|
|
196
197
|
cy: "galaxy-div-legend",
|
|
197
198
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
198
199
|
color: e.value.style.chart.legend.color,
|
|
@@ -207,7 +208,7 @@ const rt = ["id"], ut = {
|
|
|
207
208
|
return { head: t, body: a };
|
|
208
209
|
});
|
|
209
210
|
function re() {
|
|
210
|
-
|
|
211
|
+
Ve(() => {
|
|
211
212
|
const t = m.value.head.map((s, r) => [[
|
|
212
213
|
s.name
|
|
213
214
|
], [m.value.body[r]], [isNaN(m.value.body[r] / b.value) ? "-" : m.value.body[r] / b.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Xe(a);
|
|
@@ -219,16 +220,16 @@ const rt = ["id"], ut = {
|
|
|
219
220
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
220
221
|
k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: b.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
221
222
|
"100%"
|
|
222
|
-
], a = m.value.head.map((r,
|
|
223
|
-
const
|
|
223
|
+
], a = m.value.head.map((r, w) => {
|
|
224
|
+
const Fe = k({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value.body[w], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
224
225
|
return [
|
|
225
226
|
{
|
|
226
227
|
color: r.color,
|
|
227
228
|
name: r.name
|
|
228
229
|
},
|
|
229
|
-
|
|
230
|
-
isNaN(m.value.body[
|
|
231
|
-
v: m.value.body[
|
|
230
|
+
Fe,
|
|
231
|
+
isNaN(m.value.body[w] / b.value) ? "-" : k({
|
|
232
|
+
v: m.value.body[w] / b.value * 100,
|
|
232
233
|
s: "%",
|
|
233
234
|
r: e.value.table.td.roundingPercentage
|
|
234
235
|
})
|
|
@@ -268,7 +269,7 @@ const rt = ["id"], ut = {
|
|
|
268
269
|
I.value = !I.value;
|
|
269
270
|
}
|
|
270
271
|
return ke({
|
|
271
|
-
getData:
|
|
272
|
+
getData: Pe,
|
|
272
273
|
generatePdf: te,
|
|
273
274
|
generateCsv: re,
|
|
274
275
|
generateImage: le,
|
|
@@ -280,11 +281,11 @@ const rt = ["id"], ut = {
|
|
|
280
281
|
ref: F,
|
|
281
282
|
class: V(`vue-ui-galaxy ${x.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
282
283
|
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
283
|
-
id: `galaxy_${
|
|
284
|
+
id: `galaxy_${T.value}`,
|
|
284
285
|
onMouseenter: a[3] || (a[3] = () => i(J)(!0)),
|
|
285
286
|
onMouseleave: a[4] || (a[4] = () => i(J)(!1))
|
|
286
287
|
}, [
|
|
287
|
-
e.value.userOptions.buttons.annotator ? (o(), $(
|
|
288
|
+
e.value.userOptions.buttons.annotator ? (o(), $(ot, {
|
|
288
289
|
key: 0,
|
|
289
290
|
parent: F.value,
|
|
290
291
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -292,10 +293,10 @@ const rt = ["id"], ut = {
|
|
|
292
293
|
active: I.value,
|
|
293
294
|
onClose: H
|
|
294
295
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
295
|
-
|
|
296
|
-
e.value.style.chart.title.text ? (o(), n("div",
|
|
297
|
-
(o(), $(
|
|
298
|
-
key: `title_${
|
|
296
|
+
_e.value ? (o(), n("div", it, null, 512)) : c("", !0),
|
|
297
|
+
e.value.style.chart.title.text ? (o(), n("div", ct, [
|
|
298
|
+
(o(), $(Je, {
|
|
299
|
+
key: `title_${j.value}`,
|
|
299
300
|
config: {
|
|
300
301
|
title: {
|
|
301
302
|
cy: "galaxy-div-title",
|
|
@@ -308,15 +309,15 @@ const rt = ["id"], ut = {
|
|
|
308
309
|
}
|
|
309
310
|
}, null, 8, ["config"]))
|
|
310
311
|
])) : c("", !0),
|
|
311
|
-
e.value.userOptions.show && L.value && (i(K) || i(z)) ? (o(), $(
|
|
312
|
+
e.value.userOptions.show && L.value && (i(K) || i(z)) ? (o(), $(et, {
|
|
312
313
|
ref_key: "details",
|
|
313
314
|
ref: $e,
|
|
314
|
-
key: `user_option_${
|
|
315
|
+
key: `user_option_${X.value}`,
|
|
315
316
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
316
317
|
color: e.value.style.chart.color,
|
|
317
318
|
isPrinting: i(Z),
|
|
318
319
|
isImaging: i(ee),
|
|
319
|
-
uid:
|
|
320
|
+
uid: T.value,
|
|
320
321
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
321
322
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
322
323
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -330,7 +331,7 @@ const rt = ["id"], ut = {
|
|
|
330
331
|
position: e.value.userOptions.position,
|
|
331
332
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
332
333
|
isAnnotation: I.value,
|
|
333
|
-
onToggleFullscreen:
|
|
334
|
+
onToggleFullscreen: Se,
|
|
334
335
|
onGeneratePdf: i(te),
|
|
335
336
|
onGenerateCsv: re,
|
|
336
337
|
onGenerateImage: i(le),
|
|
@@ -340,7 +341,7 @@ const rt = ["id"], ut = {
|
|
|
340
341
|
style: E({
|
|
341
342
|
visibility: i(K) ? i(z) ? "visible" : "hidden" : "visible"
|
|
342
343
|
})
|
|
343
|
-
},
|
|
344
|
+
}, Ee({ _: 2 }, [
|
|
344
345
|
t.$slots.optionTooltip ? {
|
|
345
346
|
name: "optionTooltip",
|
|
346
347
|
fn: d(() => [
|
|
@@ -393,12 +394,14 @@ const rt = ["id"], ut = {
|
|
|
393
394
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
394
395
|
L.value ? (o(), n("svg", {
|
|
395
396
|
key: 4,
|
|
396
|
-
|
|
397
|
+
ref_key: "svgRef",
|
|
398
|
+
ref: xe,
|
|
399
|
+
xmlns: i(Re),
|
|
397
400
|
class: V({ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value }),
|
|
398
401
|
viewBox: `0 0 ${P.value.width} ${P.value.height}`,
|
|
399
402
|
style: E(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
400
403
|
}, [
|
|
401
|
-
ie(
|
|
404
|
+
ie(at),
|
|
402
405
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
403
406
|
key: 0,
|
|
404
407
|
x: 0,
|
|
@@ -410,20 +413,20 @@ const rt = ["id"], ut = {
|
|
|
410
413
|
}
|
|
411
414
|
}, [
|
|
412
415
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
413
|
-
], 8,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
id: `blur_${
|
|
416
|
+
], 8, dt)) : c("", !0),
|
|
417
|
+
_("defs", null, [
|
|
418
|
+
_("filter", {
|
|
419
|
+
id: `blur_${T.value}`,
|
|
417
420
|
x: "-50%",
|
|
418
421
|
y: "-50%",
|
|
419
422
|
width: "200%",
|
|
420
423
|
height: "200%"
|
|
421
424
|
}, [
|
|
422
|
-
|
|
425
|
+
_("feGaussianBlur", {
|
|
423
426
|
in: "SourceGraphic",
|
|
424
427
|
stdDeviation: 100 / e.value.style.chart.layout.arcs.gradient.intensity
|
|
425
|
-
}, null, 8,
|
|
426
|
-
], 8,
|
|
428
|
+
}, null, 8, pt)
|
|
429
|
+
], 8, ht)
|
|
427
430
|
]),
|
|
428
431
|
(o(!0), n(ce, null, ve(O.value, (l) => (o(), n("g", null, [
|
|
429
432
|
l.value ? (o(), n("path", {
|
|
@@ -431,31 +434,31 @@ const rt = ["id"], ut = {
|
|
|
431
434
|
d: l.path,
|
|
432
435
|
fill: "none",
|
|
433
436
|
stroke: e.value.style.chart.backgroundColor,
|
|
434
|
-
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (
|
|
437
|
+
"stroke-width": (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
435
438
|
"stroke-linecap": "round"
|
|
436
|
-
}, null, 8,
|
|
439
|
+
}, null, 8, yt)) : c("", !0),
|
|
437
440
|
l.value ? (o(), n("path", {
|
|
438
441
|
key: 1,
|
|
439
442
|
d: l.path,
|
|
440
443
|
fill: "none",
|
|
441
444
|
stroke: l.color,
|
|
442
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (
|
|
445
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
443
446
|
"stroke-linecap": "round",
|
|
444
|
-
class: V(`${
|
|
445
|
-
}, null, 10,
|
|
447
|
+
class: V(`${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
448
|
+
}, null, 10, ft)) : c("", !0),
|
|
446
449
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (o(), n("g", {
|
|
447
450
|
key: 2,
|
|
448
|
-
filter: `url(#blur_${
|
|
451
|
+
filter: `url(#blur_${T.value})`
|
|
449
452
|
}, [
|
|
450
|
-
|
|
453
|
+
_("path", {
|
|
451
454
|
d: l.path,
|
|
452
455
|
fill: "none",
|
|
453
456
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
454
|
-
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (
|
|
457
|
+
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth / 2 * (g.value === l.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1),
|
|
455
458
|
"stroke-linecap": "round",
|
|
456
|
-
class: V(`vue-ui-galaxy-gradient ${
|
|
457
|
-
}, null, 10,
|
|
458
|
-
], 8,
|
|
459
|
+
class: V(`vue-ui-galaxy-gradient ${g.value && g.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
460
|
+
}, null, 10, bt)
|
|
461
|
+
], 8, gt)) : c("", !0)
|
|
459
462
|
]))), 256)),
|
|
460
463
|
(o(!0), n(ce, null, ve(O.value, (l, s) => (o(), n("g", null, [
|
|
461
464
|
l.value ? (o(), n("path", {
|
|
@@ -465,23 +468,23 @@ const rt = ["id"], ut = {
|
|
|
465
468
|
stroke: "transparent",
|
|
466
469
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
467
470
|
"stroke-linecap": "round",
|
|
468
|
-
onMouseenter: (r) =>
|
|
471
|
+
onMouseenter: (r) => Ne({
|
|
469
472
|
datapoint: l,
|
|
470
473
|
seriesIndex: l.seriesIndex,
|
|
471
474
|
show: !0
|
|
472
475
|
}),
|
|
473
476
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
474
|
-
B.value = !1,
|
|
477
|
+
B.value = !1, g.value = null;
|
|
475
478
|
}),
|
|
476
479
|
onClick: (r) => ae("selectDatapoint", l)
|
|
477
|
-
}, null, 40,
|
|
480
|
+
}, null, 40, mt)) : c("", !0)
|
|
478
481
|
]))), 256)),
|
|
479
482
|
v(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
480
|
-
], 14,
|
|
481
|
-
t.$slots.watermark ? (o(), n("div",
|
|
483
|
+
], 14, vt)) : c("", !0),
|
|
484
|
+
t.$slots.watermark ? (o(), n("div", kt, [
|
|
482
485
|
v(t.$slots, "watermark", S(N({ isPrinting: i(Z) || i(ee) })), void 0, !0)
|
|
483
486
|
])) : c("", !0),
|
|
484
|
-
L.value ? c("", !0) : (o(), $(
|
|
487
|
+
L.value ? c("", !0) : (o(), $(tt, {
|
|
485
488
|
key: 6,
|
|
486
489
|
config: {
|
|
487
490
|
type: "galaxy",
|
|
@@ -493,18 +496,18 @@ const rt = ["id"], ut = {
|
|
|
493
496
|
}
|
|
494
497
|
}
|
|
495
498
|
}, null, 8, ["config"])),
|
|
496
|
-
e.value.style.chart.legend.show ? (o(), $(
|
|
499
|
+
e.value.style.chart.legend.show ? (o(), $(qe, {
|
|
497
500
|
key: `legend_${q.value}`,
|
|
498
501
|
legendSet: se.value,
|
|
499
|
-
config:
|
|
502
|
+
config: Le.value,
|
|
500
503
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => U(l))
|
|
501
504
|
}, {
|
|
502
505
|
item: d(({ legend: l, index: s }) => [
|
|
503
|
-
|
|
506
|
+
_("div", {
|
|
504
507
|
onClick: (r) => U(l),
|
|
505
508
|
style: E(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
506
509
|
}, [
|
|
507
|
-
de(M(l.name) + ": " + M(i(
|
|
510
|
+
de(M(l.name) + ": " + M(i(fe)(
|
|
508
511
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
509
512
|
l.value,
|
|
510
513
|
i(k)({
|
|
@@ -515,20 +518,20 @@ const rt = ["id"], ut = {
|
|
|
515
518
|
}),
|
|
516
519
|
{ datapoint: l, seriesIndex: s }
|
|
517
520
|
)) + " ", 1),
|
|
518
|
-
y.value.includes(l.id) ? (o(), n("span",
|
|
521
|
+
y.value.includes(l.id) ? (o(), n("span", $t, " ( - % ) ")) : (o(), n("span", wt, " (" + M(isNaN(l.value / b.value) ? "-" : i(k)({
|
|
519
522
|
v: l.value / b.value * 100,
|
|
520
523
|
s: "%",
|
|
521
524
|
r: e.value.style.chart.legend.roundingPercentage
|
|
522
525
|
})) + ") ", 1))
|
|
523
|
-
], 12,
|
|
526
|
+
], 12, Ct)
|
|
524
527
|
]),
|
|
525
528
|
_: 1
|
|
526
529
|
}, 8, ["legendSet", "config"])) : c("", !0),
|
|
527
530
|
v(t.$slots, "legend", { legend: se.value }, void 0, !0),
|
|
528
|
-
t.$slots.source ? (o(), n("div",
|
|
531
|
+
t.$slots.source ? (o(), n("div", xt, [
|
|
529
532
|
v(t.$slots, "source", {}, void 0, !0)
|
|
530
533
|
], 512)) : c("", !0),
|
|
531
|
-
ie(
|
|
534
|
+
ie(Ke, {
|
|
532
535
|
show: p.value.showTooltip && B.value,
|
|
533
536
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
534
537
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -542,7 +545,7 @@ const rt = ["id"], ut = {
|
|
|
542
545
|
parent: F.value,
|
|
543
546
|
content: G.value,
|
|
544
547
|
isFullscreen: x.value,
|
|
545
|
-
isCustom: i(
|
|
548
|
+
isCustom: i(ge)(e.value.style.chart.tooltip.customFormat)
|
|
546
549
|
}, {
|
|
547
550
|
"tooltip-before": d(() => [
|
|
548
551
|
v(t.$slots, "tooltip-before", S(N({ ...W.value })), void 0, !0)
|
|
@@ -552,7 +555,7 @@ const rt = ["id"], ut = {
|
|
|
552
555
|
]),
|
|
553
556
|
_: 3
|
|
554
557
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
555
|
-
L.value ? (o(), $(
|
|
558
|
+
L.value ? (o(), $(lt, {
|
|
556
559
|
key: 9,
|
|
557
560
|
hideDetails: "",
|
|
558
561
|
config: {
|
|
@@ -569,7 +572,7 @@ const rt = ["id"], ut = {
|
|
|
569
572
|
}
|
|
570
573
|
}, {
|
|
571
574
|
content: d(() => [
|
|
572
|
-
(o(), $(
|
|
575
|
+
(o(), $(Qe, {
|
|
573
576
|
key: `table_${Y.value}`,
|
|
574
577
|
colNames: A.value.colNames,
|
|
575
578
|
head: A.value.head,
|
|
@@ -579,10 +582,10 @@ const rt = ["id"], ut = {
|
|
|
579
582
|
onClose: a[2] || (a[2] = (l) => p.value.showTable = !1)
|
|
580
583
|
}, {
|
|
581
584
|
th: d(({ th: l }) => [
|
|
582
|
-
|
|
585
|
+
_("div", {
|
|
583
586
|
innerHTML: l,
|
|
584
587
|
style: { display: "flex", "align-items": "center" }
|
|
585
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, _t)
|
|
586
589
|
]),
|
|
587
590
|
td: d(({ td: l }) => [
|
|
588
591
|
de(M(l.name || l), 1)
|
|
@@ -592,9 +595,9 @@ const rt = ["id"], ut = {
|
|
|
592
595
|
]),
|
|
593
596
|
_: 1
|
|
594
597
|
}, 8, ["config"])) : c("", !0)
|
|
595
|
-
], 46,
|
|
598
|
+
], 46, nt));
|
|
596
599
|
}
|
|
597
|
-
},
|
|
600
|
+
}, Ut = /* @__PURE__ */ ut(Tt, [["__scopeId", "data-v-67e1681a"]]);
|
|
598
601
|
export {
|
|
599
|
-
|
|
602
|
+
Ut as default
|
|
600
603
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DD4PT0Pl.cjs"),W=require("./useResponsive-YQYQrAZ_.cjs"),H=require("./usePrinter-BtJq2wwh.cjs"),he=require("./vue-ui-skeleton-Tk4j6G2D.cjs"),me=require("./Title-BQSh4ukk.cjs"),Z=require("./useNestedProp-DU7JFxpL.cjs"),fe=require("./PackageVersion-CCgJTyH9.cjs"),ye=require("./PenAndPaper-DvNBHCpq.cjs"),pe=require("./useUserOptionState-BgepsfED.cjs"),ke=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=["id"],Be={key:0},_e=["xmlns","viewBox"],Se=["width","height"],xe=["id"],Ce=["stop-color"],we=["stop-color"],Ne=["stop-color"],Fe=["id"],Ee=["stdDeviation"],ze={key:1},$e=["d","fill","stroke"],Pe=["d","fill","stroke"],Oe=["d","fill"],Me=["id","d"],Ve=["fill","font-size","font-weight"],Xe=["href","startOffset"],Ae=["x","y","text-anchor","fill","font-size","font-weight"],Ie=["d","filter"],Ye=["stroke","stroke-width"],Re=["stroke","stroke-width"],Le=["stroke","stroke-width"],De=["stroke","stroke-width"],qe={key:8},Ge=["x","y","text-anchor","font-size","font-weight","fill"],je=["x","y","font-size","font-weight","fill"],Te={key:0},Ue=["x1","y1","x2","y2","stroke","stroke-width"],We=["x1","y1","x2","y2","stroke","stroke-width"],He=["x1","y1","x2","y2","stroke-width","filter"],Ze={key:1},Je=["d","fill","stroke","stroke-width"],Ke=["cx","cy","fill","r","stroke-width","stroke"],Qe=["x","y","font-size","fill"],et={key:5,class:"vue-data-ui-watermark"},tt={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(w,{expose:J}){const{vue_ui_gauge:K}=s.useConfig(),c=w,S=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),m=e.ref(s.createUid()),Q=e.ref(null),z=e.ref(0),B=e.ref(null),$=e.ref(null),P=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:A}=pe.useUserOptionState({config:t.value}),{svgRef:ee}=ke.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>c.config,a=>{t.value=I(),N.value=!t.value.userOptions.showOnChartHover,G(),V.value+=1},{deep:!0});function I(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:s.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}const{isPrinting:Y,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ae=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),k=e.computed(()=>{if(!S.value||s.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(l=>{a.push(l.from||1e-7),a.push(l.to||1e-7)});const n=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((l,o)=>({...l,color:s.convertColorToHex(l.color)||ae.value[o]||s.palette[o],value:((l.to||0)-(l.from||0))/n*100}))}}),h=e.ref(512),r=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),p=e.ref(0),d=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{j(c.dataset.value)});const u=e.computed(()=>{const a=r.value.width/2,n=i.value.base,l=Math.PI*((d.value+0-p.value)/(b.value-p.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*r.value.pointerSize*.9*Math.cos(l),y2:n+i.value.pointerSize*r.value.pointerSize*.9*Math.sin(l)}}),q=e.computed(()=>{const a=r.value.width/2,n=i.value.base,l=Math.PI*((d.value+0-p.value)/(b.value-p.value))+Math.PI,o=a+i.value.pointerSize*r.value.pointerSize*.9*Math.cos(l),f=n+i.value.pointerSize*r.value.pointerSize*.9*Math.sin(l),y=r.value.pointerRadius,ie=a+y*Math.cos(l+Math.PI/2),ce=n+y*Math.sin(l+Math.PI/2),ve=a+y*Math.cos(l-Math.PI/2),de=n+y*Math.sin(l-Math.PI/2);return isNaN(o)?null:`M ${o},${f} ${ie},${ce} ${ve},${de} Z`}),F=e.computed(()=>{for(let a=0;a<k.value.series.length;a+=1){const{color:n,from:l,to:o}=k.value.series[a];if(d.value>=l&&d.value<=o)return n}return"#2D353C"}),x=e.ref(null);function G(){if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiGauge",type:"dataset"}):(s.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{s.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(l=>{s.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:l,index:n})})}):s.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),j(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:n,height:l}=W.useResponsive({chart:B.value,title:t.value.style.chart.title.text?$.value:null,legend:P.value,source:O.value,noTitle:M.value});requestAnimationFrame(()=>{r.value.width=n,r.value.height=l,r.value.centerX=n/2,r.value.centerY=h.value/2/358.4*l,r.value.bottom=l,r.value.labelFontSize=18/h.value*Math.min(l,n)<10?10:18/h.value*Math.min(l,n),r.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(l,n)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(l,n),r.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(l,n),r.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(l,n),r.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),r.value.markerOffset=s.translateSize({relator:Math.max(n,l),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),r.value.segmentFontSize=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})})});x.value=new ResizeObserver(a),x.value.observe(B.value.parentNode)}}e.onMounted(()=>{G()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function j(a){const n=[];(k.value.series||[]).forEach(y=>{n.push(y.from||0),n.push(y.to||0)}),b.value=Math.max(...n),p.value=Math.min(...n);let l=t.value.style.chart.animation.speed;const o=Math.abs(a-d.value)/(l*60);function f(){d.value<a?d.value=Math.min(d.value+o,a):d.value>a&&(d.value=Math.max(d.value-o,a)),d.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(r.value.width,r.value.height):r.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?r.value.height/2:r.value.height*.7,ratingBase:t.value.responsive?r.value.height/2+r.value.height/4:r.value.height*.9,pointerSize:t.value.responsive?Math.min(r.value.width,r.value.height)/3:r.value.width/3.2}}),v=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*r.value.trackSize)),le=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*r.value.trackSize)),g=e.computed(()=>v.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:n}=s.offsetFromCenterPoint({initX:v.value[0].firstSeparator.x,initY:v.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:l,y:o}=s.offsetFromCenterPoint({initX:v.value[0].startX,initY:v.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:n,x2:l,y2:o}}),U=e.computed(()=>v.value.map(a=>{const{x:n,y:l}=s.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:f}=s.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:n,y1:l,x2:o,y2:f}}));function re(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const l=50;let o=0;return a.map(f=>(o+=f,`${o/100*l-f/4}%`))}const oe=e.computed(()=>re(v.value.map(a=>a.proportion*100))),ne=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*r.value.trackSize)),se=e.computed(()=>{const a=p.value>=0?-p.value:Math.abs(p.value);return s.createHalfCircleArc({radius:t.value.style.chart.layout.indicatorArc.radius*r.value.trackSize,centerX:r.value.width/2,centerY:i.value.base,percentage:(d.value+a)/(b.value+a)})}),_=e.ref(!1);function ue(a){_.value=a,z.value+=1}const C=e.ref(!1);function E(){C.value=!C.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${_.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:B,id:`vue-ui-gauge_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(X)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&w.dataset.base?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(w.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value&&(e.unref(A)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(Y),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ee,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Se)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${m.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Ce),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Ne)],8,xe)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ee)],8,Fe)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o,patternId:`pattern_${m.value}_${o}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,$e))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:`url(#pattern_${m.value}_${o})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Pe))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.indicatorArc.show?(e.openBlock(),e.createElementBlock("path",{key:3,d:se.value,fill:t.value.style.chart.layout.indicatorArc.fill},null,8,Oe)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${o}`,d:`M ${u.value.x1},${u.value.y1} m -${g.value[o]},0 a ${g.value[o]},${g.value[o]} 0 1,1 ${2*g.value[o]},0 a ${g.value[o]},${g.value[o]} 0 1,1 -${2*g.value[o]},0`,fill:"transparent"},null,8,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":r.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${o}`,startOffset:oe.value[o]},e.toDisplayString(l.name||""),9,Xe)],8,Ve))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(le.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:l.center.endX,y:l.center.endY,"text-anchor":e.unref(s.calcMarkerOffsetX)(l,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":r.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(l.name||""),9,Ae))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:6},e.renderList(ne.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Ie))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ye),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Re),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps({ref_for:!0},l,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps({ref_for:!0},l,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,De))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:r.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:r.value.markerOffset}).y,"text-anchor":l.center.startX<u.value.x1-5?"end":l.center.startX>u.value.x1+5?"start":"middle","font-size":r.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,l.from,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:l.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ge))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:9,x:e.unref(s.offsetFromCenterPoint)({centerX:r.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:r.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:r.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:r.value.markerOffset}).y,"text-anchor":"start","font-size":r.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,je)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Te,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":r.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Ue)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":r.value.pointerStrokeWidth*.7},null,8,We)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":r.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,He)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ze,[q.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:q.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Je)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:r.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:r.value.pointerRadius<=0?1e-4:r.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ke)],64)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:r.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":r.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.legend.formatter,d.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&d.value>0?"+":""),v:d.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Qe)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",et,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,be))}},at=ge._export_sfc(tt,[["__scopeId","data-v-b25b19d0"]]);exports.default=at;
|