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 { computed as y, ref as f, watch as me, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as _e } from "./useNestedProp-
|
|
8
|
-
import { _ as
|
|
9
|
-
import { P as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { computed as y, ref as f, watch as me, onMounted as Ge, onBeforeUnmount as Ee, createElementBlock as u, openBlock as r, unref as i, normalizeStyle as L, normalizeClass as pe, createBlock as G, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as O, createSlots as Ue, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as We, Fragment as g, renderList as S, mergeProps as I } from "vue";
|
|
2
|
+
import { u as je, c as Te, t as Le, p as ge, a as De, b as Be, o as ke, d as Ve, e as E, g as be, m as V, I as z, N as qe, X as He, s as q, n as Ze, i as H, f as Z, F as J } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { t as Je, u as Ke } from "./useResponsive-BWapHhVH.js";
|
|
4
|
+
import { u as Qe, U as et } from "./usePrinter-D-sSdR2l.js";
|
|
5
|
+
import tt from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
6
|
+
import { _ as at } from "./Title-DePxeqVl.js";
|
|
7
|
+
import { u as _e } from "./useNestedProp-Cg0NIwr6.js";
|
|
8
|
+
import { _ as lt } from "./PackageVersion-J_USnljf.js";
|
|
9
|
+
import { P as rt } from "./PenAndPaper-CoEXEMcN.js";
|
|
10
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ot } from "./useChartAccessibility-BWojgys7.js";
|
|
12
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "height"], ht = ["id"], dt = ["stop-color"], yt = ["stop-color"], ft = ["stop-color"], mt = ["id"], pt = ["stdDeviation"], gt = { key: 1 }, kt = ["d", "fill", "stroke"], bt = ["d", "fill", "stroke"], _t = ["d", "fill"], xt = ["id", "d"], wt = ["fill", "font-size", "font-weight"], St = ["href", "startOffset"], $t = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], zt = ["d", "filter"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Ot = ["stroke", "stroke-width"], Mt = ["stroke", "stroke-width"], Pt = { key: 8 }, Nt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Xt = ["x", "y", "font-size", "font-weight", "fill"], It = { key: 0 }, Yt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Gt = { key: 1 }, Et = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Wt = ["x", "y", "font-size", "fill"], jt = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Tt = {
|
|
16
17
|
__name: "vue-ui-gauge",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,10 +30,10 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(U, { expose: xe }) {
|
|
32
|
-
const { vue_ui_gauge: we } =
|
|
33
|
+
const { vue_ui_gauge: we } = je(), h = U, Y = y(() => !!h.dataset && Object.keys(h.dataset).length > 0 && h.dataset.series && h.dataset.series.length), b = f(Te()), Se = f(null), K = f(0), P = f(null), Q = f(null), ee = f(null), te = f(null), ae = f(null), le = f(0), e = y({
|
|
33
34
|
get: () => oe(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: W, setUserOptionsVisibility: re, keepUserOptionState: se } =
|
|
36
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: re, keepUserOptionState: se } = st({ config: e.value }), { svgRef: $e } = ot({ config: e.value.style.chart.title });
|
|
36
37
|
me(() => h.config, (t) => {
|
|
37
38
|
e.value = oe(), W.value = !e.value.userOptions.showOnChartHover, he(), le.value += 1;
|
|
38
39
|
}, { deep: !0 });
|
|
@@ -43,16 +44,16 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
43
44
|
});
|
|
44
45
|
return t.theme ? {
|
|
45
46
|
..._e({
|
|
46
|
-
userConfig:
|
|
47
|
+
userConfig: De.vue_ui_gauge[t.theme] || h.config,
|
|
47
48
|
defaultConfig: t
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: Le[t.theme] || ge
|
|
50
51
|
} : t;
|
|
51
52
|
}
|
|
52
|
-
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } =
|
|
53
|
+
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Qe({
|
|
53
54
|
elementId: `vue-ui-gauge_${b.value}`,
|
|
54
55
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
55
|
-
}),
|
|
56
|
+
}), ze = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = y(() => Be(e.value.customPalette)), F = y(() => {
|
|
56
57
|
if (!Y.value || ke(h.dataset.series || {}))
|
|
57
58
|
return {
|
|
58
59
|
value: 0,
|
|
@@ -72,7 +73,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
72
73
|
...h.dataset,
|
|
73
74
|
series: (h.dataset.series || []).map((a, s) => ({
|
|
74
75
|
...a,
|
|
75
|
-
color:
|
|
76
|
+
color: Ve(a.color) || Fe.value[s] || ge[s],
|
|
76
77
|
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
77
78
|
}))
|
|
78
79
|
};
|
|
@@ -106,8 +107,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
106
107
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
107
108
|
};
|
|
108
109
|
}), ve = y(() => {
|
|
109
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius,
|
|
110
|
-
return isNaN(s) ? null : `M ${s},${_} ${
|
|
110
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius, Ie = t + x * Math.cos(a + Math.PI / 2), Ye = o + x * Math.sin(a + Math.PI / 2), Ae = t + x * Math.cos(a - Math.PI / 2), Re = o + x * Math.sin(a - Math.PI / 2);
|
|
111
|
+
return isNaN(s) ? null : `M ${s},${_} ${Ie},${Ye} ${Ae},${Re} Z`;
|
|
111
112
|
}), j = y(() => {
|
|
112
113
|
for (let t = 0; t < F.value.series.length; t += 1) {
|
|
113
114
|
const { color: o, from: a, to: s } = F.value.series[t];
|
|
@@ -146,8 +147,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
146
147
|
type: "datasetAttributeEmpty",
|
|
147
148
|
property: "series"
|
|
148
149
|
}))), de(h.dataset.value || 0), e.value.responsive) {
|
|
149
|
-
const t =
|
|
150
|
-
const { width: o, height: a } =
|
|
150
|
+
const t = Je(() => {
|
|
151
|
+
const { width: o, height: a } = Ke({
|
|
151
152
|
chart: P.value,
|
|
152
153
|
title: e.value.style.chart.title.text ? Q.value : null,
|
|
153
154
|
legend: ee.value,
|
|
@@ -179,9 +180,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
179
180
|
A.value = new ResizeObserver(t), A.value.observe(P.value.parentNode);
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
+
Ge(() => {
|
|
183
184
|
he();
|
|
184
|
-
}),
|
|
185
|
+
}), Ee(() => {
|
|
185
186
|
A.value && A.value.disconnect();
|
|
186
187
|
});
|
|
187
188
|
function de(t) {
|
|
@@ -217,7 +218,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
217
218
|
180,
|
|
218
219
|
109.9495,
|
|
219
220
|
40 * l.value.trackSize
|
|
220
|
-
)),
|
|
221
|
+
)), Ce = y(() => V(
|
|
221
222
|
{ series: F.value.series },
|
|
222
223
|
l.value.width / 2,
|
|
223
224
|
v.value.base,
|
|
@@ -260,14 +261,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
260
261
|
});
|
|
261
262
|
return { x1: o, y1: a, x2: s, y2: _ };
|
|
262
263
|
}));
|
|
263
|
-
function
|
|
264
|
+
function Oe(t) {
|
|
264
265
|
if (t.reduce((_, x) => _ + x, 0) > 100)
|
|
265
266
|
throw new Error("Total % must not exceed 100");
|
|
266
267
|
const a = 50;
|
|
267
268
|
let s = 0;
|
|
268
269
|
return t.map((_) => (s += _, `${s / 100 * a - _ / 4}%`));
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const Me = y(() => Oe(d.value.map((t) => t.proportion * 100))), Pe = y(() => V(
|
|
271
272
|
{ series: F.value.series },
|
|
272
273
|
l.value.width / 2,
|
|
273
274
|
v.value.base,
|
|
@@ -279,9 +280,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
279
280
|
180,
|
|
280
281
|
110.02,
|
|
281
282
|
2 * l.value.trackSize
|
|
282
|
-
)),
|
|
283
|
+
)), Ne = y(() => {
|
|
283
284
|
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
284
|
-
return
|
|
285
|
+
return qe(
|
|
285
286
|
{
|
|
286
287
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
287
288
|
centerX: l.value.width / 2,
|
|
@@ -290,7 +291,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
}), N = f(!1);
|
|
293
|
-
function
|
|
294
|
+
function Xe(t) {
|
|
294
295
|
N.value = t, K.value += 1;
|
|
295
296
|
}
|
|
296
297
|
const R = f(!1);
|
|
@@ -310,7 +311,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
310
311
|
onMouseenter: o[0] || (o[0] = () => i(re)(!0)),
|
|
311
312
|
onMouseleave: o[1] || (o[1] = () => i(re)(!1))
|
|
312
313
|
}, [
|
|
313
|
-
e.value.userOptions.buttons.annotator ? (r(), G(
|
|
314
|
+
e.value.userOptions.buttons.annotator ? (r(), G(rt, {
|
|
314
315
|
key: 0,
|
|
315
316
|
parent: P.value,
|
|
316
317
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -318,7 +319,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
318
319
|
active: R.value,
|
|
319
320
|
onClose: T
|
|
320
321
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
321
|
-
|
|
322
|
+
ze.value ? (r(), u("div", {
|
|
322
323
|
key: 1,
|
|
323
324
|
ref_key: "noTitle",
|
|
324
325
|
ref: ae,
|
|
@@ -331,7 +332,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
331
332
|
ref: Q,
|
|
332
333
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
333
334
|
}, [
|
|
334
|
-
(r(), G(
|
|
335
|
+
(r(), G(at, {
|
|
335
336
|
key: `title_${le.value}`,
|
|
336
337
|
config: {
|
|
337
338
|
title: {
|
|
@@ -345,12 +346,12 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
345
346
|
}
|
|
346
347
|
}, {
|
|
347
348
|
default: X(() => [
|
|
348
|
-
e.value.translations.base && U.dataset.base ? (r(), u("span",
|
|
349
|
+
e.value.translations.base && U.dataset.base ? (r(), u("span", it, O(e.value.translations.base) + ": " + O(U.dataset.base), 1)) : c("", !0)
|
|
349
350
|
]),
|
|
350
351
|
_: 1
|
|
351
352
|
}, 8, ["config"]))
|
|
352
353
|
], 512)) : c("", !0),
|
|
353
|
-
e.value.userOptions.show && Y.value && (i(se) || i(W)) ? (r(), G(
|
|
354
|
+
e.value.userOptions.show && Y.value && (i(se) || i(W)) ? (r(), G(et, {
|
|
354
355
|
ref_key: "details",
|
|
355
356
|
ref: Se,
|
|
356
357
|
key: `user_options_${K.value}`,
|
|
@@ -369,14 +370,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
369
370
|
position: e.value.userOptions.position,
|
|
370
371
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
371
372
|
isAnnotation: R.value,
|
|
372
|
-
onToggleFullscreen:
|
|
373
|
+
onToggleFullscreen: Xe,
|
|
373
374
|
onGeneratePdf: i(ie),
|
|
374
375
|
onGenerateImage: i(ce),
|
|
375
376
|
onToggleAnnotator: T,
|
|
376
377
|
style: L({
|
|
377
378
|
visibility: i(se) ? i(W) ? "visible" : "hidden" : "visible"
|
|
378
379
|
})
|
|
379
|
-
},
|
|
380
|
+
}, Ue({ _: 2 }, [
|
|
380
381
|
t.$slots.optionPdf ? {
|
|
381
382
|
name: "optionPdf",
|
|
382
383
|
fn: X(() => [
|
|
@@ -408,12 +409,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
408
409
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
409
410
|
Y.value ? (r(), u("svg", {
|
|
410
411
|
key: 4,
|
|
411
|
-
|
|
412
|
+
ref_key: "svgRef",
|
|
413
|
+
ref: $e,
|
|
414
|
+
xmlns: i(He),
|
|
412
415
|
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
413
416
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
414
417
|
style: L(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
415
418
|
}, [
|
|
416
|
-
|
|
419
|
+
We(lt),
|
|
417
420
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
418
421
|
key: 0,
|
|
419
422
|
x: 0,
|
|
@@ -425,7 +428,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
425
428
|
}
|
|
426
429
|
}, [
|
|
427
430
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
428
|
-
], 8,
|
|
431
|
+
], 8, vt)) : c("", !0),
|
|
429
432
|
p("defs", null, [
|
|
430
433
|
p("radialGradient", {
|
|
431
434
|
id: `gradient_${b.value}`,
|
|
@@ -438,16 +441,16 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
438
441
|
p("stop", {
|
|
439
442
|
offset: "0%",
|
|
440
443
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
441
|
-
}, null, 8,
|
|
444
|
+
}, null, 8, dt),
|
|
442
445
|
p("stop", {
|
|
443
446
|
offset: "80%",
|
|
444
447
|
"stop-color": i(q)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
445
|
-
}, null, 8,
|
|
448
|
+
}, null, 8, yt),
|
|
446
449
|
p("stop", {
|
|
447
450
|
offset: "100%",
|
|
448
451
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
449
|
-
}, null, 8,
|
|
450
|
-
], 8,
|
|
452
|
+
}, null, 8, ft)
|
|
453
|
+
], 8, ht)
|
|
451
454
|
]),
|
|
452
455
|
p("defs", null, [
|
|
453
456
|
p("filter", {
|
|
@@ -460,10 +463,10 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
460
463
|
p("feGaussianBlur", {
|
|
461
464
|
in: "SourceGraphic",
|
|
462
465
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
463
|
-
}, null, 8,
|
|
464
|
-
], 8,
|
|
466
|
+
}, null, 8, pt)
|
|
467
|
+
], 8, mt)
|
|
465
468
|
]),
|
|
466
|
-
t.$slots.pattern ? (r(), u("g",
|
|
469
|
+
t.$slots.pattern ? (r(), u("g", gt, [
|
|
467
470
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("defs", null, [
|
|
468
471
|
w(t.$slots, "pattern", I({ ref_for: !0 }, { seriesIndex: s, patternId: `pattern_${b.value}_${s}` }), void 0, !0)
|
|
469
472
|
]))), 256))
|
|
@@ -474,25 +477,25 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
474
477
|
fill: a.color,
|
|
475
478
|
stroke: e.value.style.chart.backgroundColor,
|
|
476
479
|
"stroke-linecap": "round"
|
|
477
|
-
}, null, 8,
|
|
480
|
+
}, null, 8, kt))), 128)),
|
|
478
481
|
t.$slots.pattern ? (r(!0), u(g, { key: 2 }, S(d.value, (a, s) => (r(), u("path", {
|
|
479
482
|
key: `arc_${s}`,
|
|
480
483
|
d: a.arcSlice,
|
|
481
484
|
fill: `url(#pattern_${b.value}_${s})`,
|
|
482
485
|
stroke: e.value.style.chart.backgroundColor,
|
|
483
486
|
"stroke-linecap": "round"
|
|
484
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, bt))), 128)) : c("", !0),
|
|
485
488
|
e.value.style.chart.layout.indicatorArc.show ? (r(), u("path", {
|
|
486
489
|
key: 3,
|
|
487
|
-
d:
|
|
490
|
+
d: Ne.value,
|
|
488
491
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
489
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, _t)) : c("", !0),
|
|
490
493
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), u(g, { key: 4 }, [
|
|
491
494
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("path", {
|
|
492
495
|
id: `curve_${b.value}_${s}`,
|
|
493
496
|
d: `M ${n.value.x1},${n.value.y1} m -${C.value[s]},0 a ${C.value[s]},${C.value[s]} 0 1,1 ${2 * C.value[s]},0 a ${C.value[s]},${C.value[s]} 0 1,1 -${2 * C.value[s]},0`,
|
|
494
497
|
fill: "transparent"
|
|
495
|
-
}, null, 8,
|
|
498
|
+
}, null, 8, xt))), 256)),
|
|
496
499
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
|
|
497
500
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
498
501
|
"font-size": l.value.segmentFontSize,
|
|
@@ -501,49 +504,49 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
501
504
|
}, [
|
|
502
505
|
p("textPath", {
|
|
503
506
|
href: `#curve_${b.value}_${s}`,
|
|
504
|
-
startOffset:
|
|
505
|
-
}, O(a.name || ""), 9,
|
|
506
|
-
], 8,
|
|
507
|
+
startOffset: Me.value[s]
|
|
508
|
+
}, O(a.name || ""), 9, St)
|
|
509
|
+
], 8, wt))), 256))
|
|
507
510
|
], 64)) : c("", !0),
|
|
508
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(
|
|
511
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(Ce.value, (a, s) => (r(), u("text", {
|
|
509
512
|
x: a.center.endX,
|
|
510
513
|
y: a.center.endY,
|
|
511
|
-
"text-anchor": i(
|
|
514
|
+
"text-anchor": i(Ze)(a, !1, 12).anchor,
|
|
512
515
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
513
516
|
"font-size": l.value.segmentFontSize,
|
|
514
517
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
515
|
-
}, O(a.name || ""), 9,
|
|
516
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(
|
|
518
|
+
}, O(a.name || ""), 9, $t))), 256)) : c("", !0),
|
|
519
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(Pe.value, (a, s) => (r(), u("path", {
|
|
517
520
|
key: `arc_${s}`,
|
|
518
521
|
d: a.arcSlice,
|
|
519
522
|
fill: "#FFFFFF",
|
|
520
523
|
stroke: "none",
|
|
521
524
|
"stroke-linecap": "round",
|
|
522
525
|
filter: `url(#blur_${b.value})`
|
|
523
|
-
}, null, 8,
|
|
526
|
+
}, null, 8, zt))), 128)) : c("", !0),
|
|
524
527
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), u(g, { key: 7 }, [
|
|
525
528
|
p("line", I(ye.value, {
|
|
526
529
|
stroke: e.value.style.chart.backgroundColor,
|
|
527
530
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
528
531
|
"stroke-linecap": "round"
|
|
529
|
-
}), null, 16,
|
|
532
|
+
}), null, 16, Ft),
|
|
530
533
|
p("line", I(ye.value, {
|
|
531
534
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
532
535
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
533
536
|
"stroke-linecap": "round"
|
|
534
|
-
}), null, 16,
|
|
537
|
+
}), null, 16, Ct),
|
|
535
538
|
(r(!0), u(g, null, S(fe.value, (a) => (r(), u("line", I({ ref_for: !0 }, a, {
|
|
536
539
|
stroke: e.value.style.chart.backgroundColor,
|
|
537
540
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
538
541
|
"stroke-linecap": "round"
|
|
539
|
-
}), null, 16,
|
|
542
|
+
}), null, 16, Ot))), 256)),
|
|
540
543
|
(r(!0), u(g, null, S(fe.value, (a) => (r(), u("line", I({ ref_for: !0 }, a, {
|
|
541
544
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
542
545
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
543
546
|
"stroke-linecap": "round"
|
|
544
|
-
}), null, 16,
|
|
547
|
+
}), null, 16, Mt))), 256))
|
|
545
548
|
], 64)) : c("", !0),
|
|
546
|
-
e.value.style.chart.layout.markers.show ? (r(), u("g",
|
|
549
|
+
e.value.style.chart.layout.markers.show ? (r(), u("g", Pt, [
|
|
547
550
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
|
|
548
551
|
x: i(z)({
|
|
549
552
|
centerX: n.value.x1,
|
|
@@ -572,7 +575,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
572
575
|
s: e.value.style.chart.layout.markers.suffix,
|
|
573
576
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
574
577
|
})
|
|
575
|
-
)), 9,
|
|
578
|
+
)), 9, Nt))), 256))
|
|
576
579
|
])) : c("", !0),
|
|
577
580
|
e.value.style.chart.layout.markers.show ? (r(), u("text", {
|
|
578
581
|
key: 9,
|
|
@@ -603,9 +606,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
603
606
|
s: e.value.style.chart.layout.markers.suffix,
|
|
604
607
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
605
608
|
})
|
|
606
|
-
)), 9,
|
|
609
|
+
)), 9, Xt)) : c("", !0),
|
|
607
610
|
e.value.style.chart.layout.pointer.show ? (r(), u(g, { key: 10 }, [
|
|
608
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g",
|
|
611
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g", It, [
|
|
609
612
|
isNaN(n.value.x2) ? c("", !0) : (r(), u("line", {
|
|
610
613
|
key: 0,
|
|
611
614
|
x1: n.value.x1,
|
|
@@ -615,7 +618,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
615
618
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
616
619
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
617
620
|
"stroke-linecap": "round"
|
|
618
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Yt)),
|
|
619
622
|
isNaN(n.value.x2) ? c("", !0) : (r(), u("line", {
|
|
620
623
|
key: 1,
|
|
621
624
|
x1: n.value.x1,
|
|
@@ -625,7 +628,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
625
628
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? j.value : e.value.style.chart.layout.pointer.color,
|
|
626
629
|
"stroke-linecap": "round",
|
|
627
630
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
628
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, At)),
|
|
629
632
|
!isNaN(n.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), u("line", {
|
|
630
633
|
key: 2,
|
|
631
634
|
x1: n.value.x1,
|
|
@@ -636,8 +639,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
636
639
|
"stroke-linecap": "round",
|
|
637
640
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
638
641
|
filter: `url(#blur_${b.value})`
|
|
639
|
-
}, null, 8,
|
|
640
|
-
])) : (r(), u("g",
|
|
642
|
+
}, null, 8, Rt)) : c("", !0)
|
|
643
|
+
])) : (r(), u("g", Gt, [
|
|
641
644
|
ve.value ? (r(), u("path", {
|
|
642
645
|
key: 0,
|
|
643
646
|
d: ve.value,
|
|
@@ -645,7 +648,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
645
648
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
646
649
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
647
650
|
"stroke-linejoin": "round"
|
|
648
|
-
}, null, 8,
|
|
651
|
+
}, null, 8, Et)) : c("", !0)
|
|
649
652
|
])),
|
|
650
653
|
p("circle", {
|
|
651
654
|
cx: l.value.width / 2,
|
|
@@ -654,7 +657,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
654
657
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
655
658
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
656
659
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
657
|
-
}, null, 8,
|
|
660
|
+
}, null, 8, Ut)
|
|
658
661
|
], 64)) : c("", !0),
|
|
659
662
|
e.value.style.chart.legend.show ? (r(), u("text", {
|
|
660
663
|
key: 11,
|
|
@@ -673,13 +676,13 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
673
676
|
s: e.value.style.chart.legend.suffix,
|
|
674
677
|
r: e.value.style.chart.legend.roundingValue
|
|
675
678
|
})
|
|
676
|
-
)), 9,
|
|
679
|
+
)), 9, Wt)) : c("", !0),
|
|
677
680
|
w(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
678
|
-
], 14,
|
|
679
|
-
t.$slots.watermark ? (r(), u("div",
|
|
681
|
+
], 14, ct)) : c("", !0),
|
|
682
|
+
t.$slots.watermark ? (r(), u("div", jt, [
|
|
680
683
|
w(t.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
681
684
|
])) : c("", !0),
|
|
682
|
-
Y.value ? c("", !0) : (r(), G(
|
|
685
|
+
Y.value ? c("", !0) : (r(), G(tt, {
|
|
683
686
|
key: 6,
|
|
684
687
|
config: {
|
|
685
688
|
type: "gauge",
|
|
@@ -705,9 +708,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
705
708
|
}, [
|
|
706
709
|
w(t.$slots, "source", {}, void 0, !0)
|
|
707
710
|
], 512)) : c("", !0)
|
|
708
|
-
], 46,
|
|
711
|
+
], 46, nt));
|
|
709
712
|
}
|
|
710
|
-
},
|
|
713
|
+
}, aa = /* @__PURE__ */ ut(Tt, [["__scopeId", "data-v-b25b19d0"]]);
|
|
711
714
|
export {
|
|
712
|
-
|
|
715
|
+
aa as default
|
|
713
716
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, createElementBlock as a, openBlock as s, normalizeStyle as L, createVNode as N, createCommentVNode as i, createElementVNode as t, Fragment as p, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as $, c as F, e as B, i as k, f as m } from "./index-
|
|
3
|
-
import { u as V } from "./useNestedProp-
|
|
4
|
-
import { _ as P } from "./PackageVersion-
|
|
2
|
+
import { u as $, c as F, e as B, i as k, f as m } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-Cg0NIwr6.js";
|
|
4
|
+
import { _ as P } from "./PackageVersion-J_USnljf.js";
|
|
5
5
|
const U = ["viewBox", "width"], D = { key: 0 }, I = ["id"], M = ["stop-color"], S = ["stop-color"], E = ["stroke"], O = ["stroke"], A = ["width", "fill"], j = ["fill"], T = { key: 0 }, q = ["id"], H = ["stroke"], J = ["stroke", "stroke-dasharray", "stroke-dashoffset"], K = ["filter"], Q = ["stroke", "stroke-dasharray", "stroke-dashoffset"], R = ["fill"], ee = {
|
|
6
6
|
__name: "vue-ui-gizmo",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DD4PT0Pl.cjs"),k=require("./useNestedProp-DU7JFxpL.cjs"),p=require("./PackageVersion-CCgJTyH9.cjs"),g=["viewBox","width"],v={key:0},_=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=["stroke"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["filter"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["fill"],P={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const{vue_ui_gizmo:f}=a.useConfig(),o=i,n=e.ref(a.createUid()),h=e.useSlots();e.onMounted(()=>{c()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:s=>s});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,s=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const r=2*Math.PI*35,m=r-o.dataset/100*r;return{dasharray:`${r} ${r}`,dashoffset:m}});return(s,r)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(p._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",v,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,_)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,C),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,V),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,w),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,x)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},r[0]||(r[0]=[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1)]),8,E)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,b),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,L),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,G)],8,z)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,F)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,g))}};exports.default=P;
|