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,13 +1,14 @@
|
|
|
1
|
-
import { computed as s, onMounted as
|
|
2
|
-
import { u as U, o as q, e as z, g as P, c as
|
|
3
|
-
import { u as O } from "./useNestedProp-
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
1
|
+
import { computed as s, onMounted as A, ref as N, watch as M, createElementBlock as n, openBlock as i, normalizeStyle as m, createCommentVNode as r, createBlock as G, toDisplayString as y, unref as c, createVNode as I, createElementVNode as d, renderSlot as S, normalizeClass as R } from "vue";
|
|
2
|
+
import { u as U, o as q, e as z, g as P, c as T, a as X, O as H, X as V, i as Y, v as g, f as J } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { u as O } from "./useNestedProp-Cg0NIwr6.js";
|
|
4
|
+
import K from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
5
|
+
import { _ as Q } from "./PackageVersion-J_USnljf.js";
|
|
6
|
+
import { u as W } from "./useChartAccessibility-BWojgys7.js";
|
|
7
|
+
const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["stop-color"], le = ["stop-color"], oe = ["d", "stroke", "stroke-linecap"], se = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ue = ["x", "y", "font-size", "fill", "font-weight"], ie = {
|
|
7
8
|
key: 4,
|
|
8
9
|
ref: "source",
|
|
9
10
|
dir: "auto"
|
|
10
|
-
},
|
|
11
|
+
}, me = {
|
|
11
12
|
__name: "vue-ui-sparkgauge",
|
|
12
13
|
props: {
|
|
13
14
|
config: {
|
|
@@ -24,16 +25,16 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
setup(j) {
|
|
27
|
-
const { vue_ui_sparkgauge: E } = U(),
|
|
28
|
-
|
|
28
|
+
const { vue_ui_sparkgauge: E } = U(), a = j, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
29
|
+
A(() => {
|
|
29
30
|
h();
|
|
30
31
|
});
|
|
31
32
|
function h() {
|
|
32
|
-
q(
|
|
33
|
+
q(a.dataset) ? z({
|
|
33
34
|
componentName: "VueUiSparkgauge",
|
|
34
35
|
type: "dataset"
|
|
35
36
|
}) : P({
|
|
36
|
-
datasetObject:
|
|
37
|
+
datasetObject: a.dataset,
|
|
37
38
|
requiredAttributes: ["value", "min", "max"]
|
|
38
39
|
}).forEach((t) => {
|
|
39
40
|
z({
|
|
@@ -43,23 +44,23 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
43
44
|
});
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
const b =
|
|
47
|
+
const b = N(T()), e = s({
|
|
47
48
|
get: () => k(),
|
|
48
49
|
set: (t) => t
|
|
49
|
-
});
|
|
50
|
+
}), { svgRef: F } = W({ config: { text: a.dataset.title } });
|
|
50
51
|
function k() {
|
|
51
52
|
const t = O({
|
|
52
|
-
userConfig:
|
|
53
|
+
userConfig: a.config,
|
|
53
54
|
defaultConfig: E
|
|
54
55
|
});
|
|
55
56
|
return t.theme ? {
|
|
56
57
|
...O({
|
|
57
|
-
userConfig:
|
|
58
|
+
userConfig: X.vue_ui_sparkgauge[t.theme] || a.config,
|
|
58
59
|
defaultConfig: t
|
|
59
60
|
})
|
|
60
61
|
} : t;
|
|
61
62
|
}
|
|
62
|
-
M(() =>
|
|
63
|
+
M(() => a.config, (t) => {
|
|
63
64
|
e.value = k(), h();
|
|
64
65
|
}, { deep: !0 });
|
|
65
66
|
const u = s(() => ({
|
|
@@ -67,44 +68,46 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
67
68
|
width: 128,
|
|
68
69
|
base: e.value.style.basePosition
|
|
69
70
|
})), o = s(() => {
|
|
70
|
-
const t =
|
|
71
|
+
const t = a.dataset.min ?? 0, v = a.dataset.max ?? 0, D = v - t;
|
|
71
72
|
return {
|
|
72
73
|
min: t,
|
|
73
74
|
max: v,
|
|
74
|
-
diff:
|
|
75
|
+
diff: D
|
|
75
76
|
};
|
|
76
|
-
}),
|
|
77
|
-
M(() =>
|
|
78
|
-
x(
|
|
77
|
+
}), l = N(e.value.style.animation.show ? o.value.min : a.dataset.value);
|
|
78
|
+
M(() => a.dataset.value, () => {
|
|
79
|
+
x(a.dataset.value || 0);
|
|
79
80
|
});
|
|
80
|
-
const _ = s(() =>
|
|
81
|
-
|
|
82
|
-
x(
|
|
81
|
+
const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value), $ = s(() => o.value.diff / e.value.style.animation.speedMs);
|
|
82
|
+
A(() => {
|
|
83
|
+
x(a.dataset.value || 0);
|
|
83
84
|
});
|
|
84
85
|
function x(t) {
|
|
85
86
|
function v() {
|
|
86
|
-
|
|
87
|
+
l.value < t ? l.value = Math.min(l.value + $.value, t) : l.value > t && (l.value = Math.max(l.value - $.value, t)), l.value !== t && requestAnimationFrame(v);
|
|
87
88
|
}
|
|
88
89
|
v();
|
|
89
90
|
}
|
|
90
|
-
const f = s(() =>
|
|
91
|
-
return (t, v) => (
|
|
91
|
+
const f = s(() => a.dataset.title ?? ""), C = s(() => l.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => H(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, l.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), B = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
|
|
92
|
+
return (t, v) => (i(), n("div", {
|
|
92
93
|
class: "vue-ui-sparkgauge",
|
|
93
94
|
style: m(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
94
95
|
}, [
|
|
95
|
-
e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (
|
|
96
|
+
e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (i(), n("div", {
|
|
96
97
|
key: 0,
|
|
97
98
|
class: "vue-data-ui-sparkgauge-label",
|
|
98
99
|
style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
99
100
|
}, y(f.value), 5)) : r("", !0),
|
|
100
|
-
p.value ? (
|
|
101
|
+
p.value ? (i(), n("svg", {
|
|
101
102
|
key: 1,
|
|
102
|
-
|
|
103
|
+
ref_key: "svgRef",
|
|
104
|
+
ref: F,
|
|
105
|
+
xmlns: c(V),
|
|
103
106
|
viewBox: `0 0 ${u.value.width} ${u.value.height}`,
|
|
104
107
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
105
108
|
}, [
|
|
106
|
-
|
|
107
|
-
t.$slots["chart-background"] ? (
|
|
109
|
+
I(Q),
|
|
110
|
+
t.$slots["chart-background"] ? (i(), n("foreignObject", {
|
|
108
111
|
key: 0,
|
|
109
112
|
x: 0,
|
|
110
113
|
y: 0,
|
|
@@ -115,7 +118,7 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
115
118
|
}
|
|
116
119
|
}, [
|
|
117
120
|
S(t.$slots, "chart-background")
|
|
118
|
-
], 8,
|
|
121
|
+
], 8, ee)) : r("", !0),
|
|
119
122
|
d("defs", null, [
|
|
120
123
|
d("linearGradient", {
|
|
121
124
|
id: `gradient_${b.value}`,
|
|
@@ -127,12 +130,12 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
127
130
|
d("stop", {
|
|
128
131
|
offset: "0%",
|
|
129
132
|
"stop-color": e.value.style.colors.min
|
|
130
|
-
}, null, 8,
|
|
133
|
+
}, null, 8, ae),
|
|
131
134
|
d("stop", {
|
|
132
135
|
offset: "100%",
|
|
133
136
|
"stop-color": e.value.style.colors.max
|
|
134
|
-
}, null, 8,
|
|
135
|
-
], 8,
|
|
137
|
+
}, null, 8, le)
|
|
138
|
+
], 8, te)
|
|
136
139
|
]),
|
|
137
140
|
d("path", {
|
|
138
141
|
d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
|
|
@@ -140,19 +143,19 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
140
143
|
"stroke-width": 8,
|
|
141
144
|
"stroke-linecap": e.value.style.gutter.strokeLinecap,
|
|
142
145
|
fill: "none"
|
|
143
|
-
}, null, 8,
|
|
144
|
-
|
|
146
|
+
}, null, 8, oe),
|
|
147
|
+
C.value !== 0 ? (i(), n("path", {
|
|
145
148
|
key: 1,
|
|
146
149
|
d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
|
|
147
|
-
stroke: e.value.style.colors.showGradient ? `url(#gradient_${b.value})` :
|
|
150
|
+
stroke: e.value.style.colors.showGradient ? `url(#gradient_${b.value})` : B.value,
|
|
148
151
|
"stroke-width": 8,
|
|
149
152
|
"stroke-linecap": e.value.style.track.strokeLinecap,
|
|
150
153
|
fill: "none",
|
|
151
154
|
"stroke-dasharray": 169.5,
|
|
152
|
-
"stroke-dashoffset": 169.5 - 169.5 *
|
|
153
|
-
class:
|
|
155
|
+
"stroke-dashoffset": 169.5 - 169.5 * C.value,
|
|
156
|
+
class: R({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
|
|
154
157
|
style: m(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
|
|
155
|
-
}, null, 14,
|
|
158
|
+
}, null, 14, se)) : r("", !0),
|
|
156
159
|
d("text", {
|
|
157
160
|
"text-anchor": "middle",
|
|
158
161
|
x: u.value.width / 2,
|
|
@@ -160,19 +163,19 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
160
163
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
161
164
|
fill: L.value,
|
|
162
165
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
163
|
-
}, y(c(
|
|
166
|
+
}, y(c(Y)(
|
|
164
167
|
e.value.style.dataLabel.formatter,
|
|
165
|
-
c(g)(
|
|
166
|
-
c(
|
|
168
|
+
c(g)(l.value),
|
|
169
|
+
c(J)({
|
|
167
170
|
p: e.value.style.dataLabel.prefix,
|
|
168
|
-
v: c(g)(
|
|
171
|
+
v: c(g)(l.value),
|
|
169
172
|
s: e.value.style.dataLabel.suffix,
|
|
170
173
|
r: e.value.style.dataLabel.rounding
|
|
171
174
|
}),
|
|
172
|
-
{ datapoint: c(g)(
|
|
173
|
-
)), 9,
|
|
174
|
-
], 8,
|
|
175
|
-
p.value ? r("", !0) : (
|
|
175
|
+
{ datapoint: c(g)(l.value), color: L.value }
|
|
176
|
+
)), 9, ue)
|
|
177
|
+
], 8, Z)) : r("", !0),
|
|
178
|
+
p.value ? r("", !0) : (i(), G(K, {
|
|
176
179
|
key: 2,
|
|
177
180
|
config: {
|
|
178
181
|
type: "gauge",
|
|
@@ -184,17 +187,17 @@ const Q = ["xmlns", "viewBox"], W = ["width", "height"], Z = ["id"], ee = ["stop
|
|
|
184
187
|
}
|
|
185
188
|
}
|
|
186
189
|
}, null, 8, ["config"])),
|
|
187
|
-
e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (
|
|
190
|
+
e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (i(), n("div", {
|
|
188
191
|
key: 3,
|
|
189
192
|
class: "vue-data-ui-sparkgauge-label",
|
|
190
193
|
style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
191
194
|
}, y(f.value), 5)) : r("", !0),
|
|
192
|
-
t.$slots.source ? (
|
|
195
|
+
t.$slots.source ? (i(), n("div", ie, [
|
|
193
196
|
S(t.$slots, "source")
|
|
194
197
|
], 512)) : r("", !0)
|
|
195
198
|
], 4));
|
|
196
199
|
}
|
|
197
200
|
};
|
|
198
201
|
export {
|
|
199
|
-
|
|
202
|
+
me as default
|
|
200
203
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as O } from "./useNestedProp-
|
|
4
|
-
import { _ as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { useCssVars as Z, computed as _, onMounted as ee, ref as N, watch as te, createElementBlock as s, openBlock as a, normalizeStyle as $, createCommentVNode as c, createBlock as D, createElementVNode as h, createTextVNode as le, toDisplayString as p, unref as n, createVNode as ae, renderSlot as I, Fragment as f, renderList as g, normalizeClass as V } from "vue";
|
|
2
|
+
import { u as se, o as oe, e as E, g as ue, c as ie, a as re, s as m, i as H, f as F, X as ne, w as z } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { u as O } from "./useNestedProp-Cg0NIwr6.js";
|
|
4
|
+
import { _ as ve } from "./Shape-Dtm6toQp.js";
|
|
5
|
+
import de from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
6
|
+
import { _ as ce } from "./PackageVersion-J_USnljf.js";
|
|
7
|
+
import { u as ye } from "./useChartAccessibility-BWojgys7.js";
|
|
8
|
+
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width", "height"], be = ["id"], _e = ["stop-color"], xe = ["stop-color"], ke = ["id"], we = ["stop-color"], $e = ["stop-color"], Ce = ["id"], Le = ["stop-color"], ze = ["stop-color"], Se = { key: 1 }, Ae = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Me = { key: 2 }, Ne = ["x", "y", "font-size", "font-weight", "fill"], De = ["x", "y", "font-size", "fill"], Ie = ["x", "y", "font-size", "fill"], Ve = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ee = {
|
|
9
10
|
key: 2,
|
|
10
11
|
ref: "source",
|
|
11
12
|
dir: "auto"
|
|
12
|
-
},
|
|
13
|
+
}, He = {
|
|
13
14
|
__name: "vue-ui-sparkhistogram",
|
|
14
15
|
props: {
|
|
15
16
|
config: {
|
|
@@ -27,19 +28,19 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
27
28
|
},
|
|
28
29
|
emits: ["selectDatapoint"],
|
|
29
30
|
setup(W, { emit: B }) {
|
|
30
|
-
|
|
31
|
-
"
|
|
31
|
+
Z((l) => ({
|
|
32
|
+
"40b52890": q.value
|
|
32
33
|
}));
|
|
33
|
-
const { vue_ui_sparkhistogram: U } =
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
const { vue_ui_sparkhistogram: U } = se(), d = W, S = _(() => !!d.dataset && d.dataset.length);
|
|
35
|
+
ee(() => {
|
|
36
|
+
A();
|
|
36
37
|
});
|
|
37
|
-
function
|
|
38
|
-
|
|
38
|
+
function A() {
|
|
39
|
+
oe(d.dataset) ? E({
|
|
39
40
|
componentName: "VueUiSparkHistogram",
|
|
40
41
|
type: "dataset"
|
|
41
|
-
}) : d.dataset.forEach((l,
|
|
42
|
-
|
|
42
|
+
}) : d.dataset.forEach((l, i) => {
|
|
43
|
+
ue({
|
|
43
44
|
datasetObject: l,
|
|
44
45
|
requiredAttributes: ["value"]
|
|
45
46
|
}).forEach((t) => {
|
|
@@ -47,16 +48,16 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
47
48
|
componentName: "VueUiSparkHistogram",
|
|
48
49
|
type: "datasetSerieAttribute",
|
|
49
50
|
property: t,
|
|
50
|
-
index:
|
|
51
|
+
index: i
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
-
get: () =>
|
|
56
|
+
const b = N(ie()), e = _({
|
|
57
|
+
get: () => M(),
|
|
57
58
|
set: (l) => l
|
|
58
|
-
});
|
|
59
|
-
function
|
|
59
|
+
}), { svgRef: j } = ye({ config: e.value.style.title });
|
|
60
|
+
function M() {
|
|
60
61
|
const l = O({
|
|
61
62
|
userConfig: d.config,
|
|
62
63
|
defaultConfig: U
|
|
@@ -68,11 +69,11 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
68
69
|
})
|
|
69
70
|
} : l;
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
e.value =
|
|
72
|
+
te(() => d.config, (l) => {
|
|
73
|
+
e.value = M(), A();
|
|
73
74
|
}, { deep: !0 });
|
|
74
75
|
const v = _(() => {
|
|
75
|
-
const l = e.value.style.layout.height,
|
|
76
|
+
const l = e.value.style.layout.height, i = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, y = e.value.style.layout.padding.left, x = i - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, w = i - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
76
77
|
return {
|
|
77
78
|
bottom: o,
|
|
78
79
|
centerY: k,
|
|
@@ -82,38 +83,38 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
82
83
|
left: y,
|
|
83
84
|
right: x,
|
|
84
85
|
top: t,
|
|
85
|
-
width:
|
|
86
|
+
width: i
|
|
86
87
|
};
|
|
87
|
-
}),
|
|
88
|
+
}), R = _(() => Math.max(...d.dataset.map((l) => Math.abs(l.value || 0))));
|
|
88
89
|
function X(l) {
|
|
89
|
-
return Math.abs(l) /
|
|
90
|
+
return Math.abs(l) / R.value;
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
-
const t = X(l.value || 0), o = v.value.drawingHeight * t, y = v.value.drawingWidth / d.dataset.length, x = y * (e.value.style.bars.gap / 100), k = y - x, C = v.value.centerY - o / 2, w = v.value.left + (x / 2 +
|
|
92
|
+
const r = _(() => d.dataset.map((l, i) => {
|
|
93
|
+
const t = X(l.value || 0), o = v.value.drawingHeight * t, y = v.value.drawingWidth / d.dataset.length, x = y * (e.value.style.bars.gap / 100), k = y - x, C = v.value.centerY - o / 2, w = v.value.left + (x / 2 + i * y), T = v.value.left + i * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), P = l.color ? l.color : l.value >= 0 ? m(e.value.style.bars.colors.positive, L) : m(e.value.style.bars.colors.negative, L), J = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, K = l.color ? `url(#gradient_datapoint_${i}_${b.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${b.value})` : `url(#gradient_negative_${i}_${b.value})`, Q = w + k / 2;
|
|
93
94
|
return {
|
|
94
95
|
...l,
|
|
95
|
-
color:
|
|
96
|
-
gradient:
|
|
96
|
+
color: P,
|
|
97
|
+
gradient: K,
|
|
97
98
|
height: o,
|
|
98
99
|
intensity: L,
|
|
99
100
|
proportion: t,
|
|
100
|
-
stroke:
|
|
101
|
-
textAnchor:
|
|
102
|
-
trapX:
|
|
101
|
+
stroke: J,
|
|
102
|
+
textAnchor: Q,
|
|
103
|
+
trapX: T,
|
|
103
104
|
unitWidth: y,
|
|
104
105
|
width: k,
|
|
105
106
|
x: w,
|
|
106
107
|
y: C
|
|
107
108
|
};
|
|
108
109
|
})), u = N(null), G = B;
|
|
109
|
-
function Y(l,
|
|
110
|
-
G("selectDatapoint", { datapoint: l, index:
|
|
110
|
+
function Y(l, i) {
|
|
111
|
+
G("selectDatapoint", { datapoint: l, index: i });
|
|
111
112
|
}
|
|
112
113
|
const q = _(() => `${e.value.style.animation.speedMs}ms`);
|
|
113
|
-
return (l,
|
|
114
|
+
return (l, i) => (a(), s("div", {
|
|
114
115
|
class: "vue-ui-spark-histogram",
|
|
115
116
|
style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
116
|
-
onMouseleave:
|
|
117
|
+
onMouseleave: i[1] || (i[1] = (t) => u.value = null)
|
|
117
118
|
}, [
|
|
118
119
|
e.value.style.title.text ? (a(), s("div", {
|
|
119
120
|
key: 0,
|
|
@@ -122,19 +123,19 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
122
123
|
h("div", {
|
|
123
124
|
style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
124
125
|
}, [
|
|
125
|
-
|
|
126
|
-
u.value !== null ? (a(), s("span",
|
|
126
|
+
le(p(e.value.style.title.text) + " ", 1),
|
|
127
|
+
u.value !== null ? (a(), s("span", fe, "- " + p(r.value[u.value].timeLabel || "") + " " + p(n(H)(
|
|
127
128
|
e.value.style.labels.value.formatter,
|
|
128
|
-
|
|
129
|
+
r.value[u.value].value,
|
|
129
130
|
n(F)({
|
|
130
131
|
p: e.value.style.labels.value.prefix,
|
|
131
|
-
v:
|
|
132
|
+
v: r.value[u.value].value,
|
|
132
133
|
s: e.value.style.labels.value.suffix,
|
|
133
134
|
r: e.value.style.labels.value.rounding
|
|
134
135
|
}),
|
|
135
|
-
{ datapoint:
|
|
136
|
+
{ datapoint: r.value[u.value], seriesIndex: u.value }
|
|
136
137
|
)), 1)) : c("", !0),
|
|
137
|
-
![void 0, null].includes(u.value) && ![null, void 0].includes(
|
|
138
|
+
![void 0, null].includes(u.value) && ![null, void 0].includes(r.value[u.value].valueLabel) ? (a(), s("span", ge, "(" + p(r.value[u.value].valueLabel || 0) + ")", 1)) : c("", !0)
|
|
138
139
|
], 4),
|
|
139
140
|
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
140
141
|
key: 0,
|
|
@@ -143,11 +144,13 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
143
144
|
], 4)) : c("", !0),
|
|
144
145
|
S.value ? (a(), s("svg", {
|
|
145
146
|
key: 1,
|
|
146
|
-
|
|
147
|
+
ref_key: "svgRef",
|
|
148
|
+
ref: j,
|
|
149
|
+
xmlns: n(ne),
|
|
147
150
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
148
151
|
style: { overflow: "visible" }
|
|
149
152
|
}, [
|
|
150
|
-
|
|
153
|
+
ae(ce),
|
|
151
154
|
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
152
155
|
key: 0,
|
|
153
156
|
x: 0,
|
|
@@ -159,10 +162,10 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
159
162
|
}
|
|
160
163
|
}, [
|
|
161
164
|
I(l.$slots, "chart-background", {}, void 0, !0)
|
|
162
|
-
], 8,
|
|
165
|
+
], 8, me)) : c("", !0),
|
|
163
166
|
h("defs", null, [
|
|
164
|
-
(a(!0), s(f, null, g(
|
|
165
|
-
id: `gradient_positive_${o}_${
|
|
167
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
168
|
+
id: `gradient_positive_${o}_${b.value}`,
|
|
166
169
|
cy: "50%",
|
|
167
170
|
cx: "50%",
|
|
168
171
|
r: "50%",
|
|
@@ -171,15 +174,15 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
171
174
|
}, [
|
|
172
175
|
h("stop", {
|
|
173
176
|
offset: "0%",
|
|
174
|
-
"stop-color": n(
|
|
175
|
-
}, null, 8,
|
|
177
|
+
"stop-color": n(m)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
178
|
+
}, null, 8, _e),
|
|
176
179
|
h("stop", {
|
|
177
180
|
offset: "100%",
|
|
178
|
-
"stop-color": n(
|
|
179
|
-
}, null, 8,
|
|
180
|
-
], 8,
|
|
181
|
-
(a(!0), s(f, null, g(
|
|
182
|
-
id: `gradient_negative_${o}_${
|
|
181
|
+
"stop-color": n(m)(e.value.style.bars.colors.positive, t.intensity)
|
|
182
|
+
}, null, 8, xe)
|
|
183
|
+
], 8, be))), 256)),
|
|
184
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
185
|
+
id: `gradient_negative_${o}_${b.value}`,
|
|
183
186
|
cy: "50%",
|
|
184
187
|
cx: "50%",
|
|
185
188
|
r: "50%",
|
|
@@ -188,15 +191,15 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
188
191
|
}, [
|
|
189
192
|
h("stop", {
|
|
190
193
|
offset: "0%",
|
|
191
|
-
"stop-color": n(
|
|
192
|
-
}, null, 8,
|
|
194
|
+
"stop-color": n(m)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
195
|
+
}, null, 8, we),
|
|
193
196
|
h("stop", {
|
|
194
197
|
offset: "100%",
|
|
195
|
-
"stop-color": n(
|
|
196
|
-
}, null, 8,
|
|
197
|
-
], 8,
|
|
198
|
-
(a(!0), s(f, null, g(
|
|
199
|
-
id: `gradient_datapoint_${o}_${
|
|
198
|
+
"stop-color": n(m)(e.value.style.bars.colors.negative, t.intensity)
|
|
199
|
+
}, null, 8, $e)
|
|
200
|
+
], 8, ke))), 256)),
|
|
201
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
202
|
+
id: `gradient_datapoint_${o}_${b.value}`,
|
|
200
203
|
cy: "50%",
|
|
201
204
|
cx: "50%",
|
|
202
205
|
r: "50%",
|
|
@@ -205,16 +208,16 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
205
208
|
}, [
|
|
206
209
|
h("stop", {
|
|
207
210
|
offset: "0%",
|
|
208
|
-
"stop-color": n(
|
|
209
|
-
}, null, 8,
|
|
211
|
+
"stop-color": n(m)(n(z)(t.color, 0.05), t.intensity)
|
|
212
|
+
}, null, 8, Le),
|
|
210
213
|
h("stop", {
|
|
211
214
|
offset: "100%",
|
|
212
|
-
"stop-color": n(
|
|
213
|
-
}, null, 8,
|
|
214
|
-
], 8,
|
|
215
|
+
"stop-color": n(m)(t.color, t.intensity)
|
|
216
|
+
}, null, 8, ze)
|
|
217
|
+
], 8, Ce))), 256))
|
|
215
218
|
]),
|
|
216
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g",
|
|
217
|
-
(a(!0), s(f, null, g(
|
|
219
|
+
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Se, [
|
|
220
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("rect", {
|
|
218
221
|
x: t.x,
|
|
219
222
|
y: t.y,
|
|
220
223
|
height: t.height,
|
|
@@ -224,9 +227,9 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
224
227
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
225
228
|
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
226
229
|
class: V({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
227
|
-
}, null, 10,
|
|
228
|
-
])) : (a(), s("g",
|
|
229
|
-
(a(!0), s(f, null, g(
|
|
230
|
+
}, null, 10, Ae))), 256))
|
|
231
|
+
])) : (a(), s("g", Me, [
|
|
232
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), D(ve, {
|
|
230
233
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
231
234
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
232
235
|
shape: e.value.style.bars.shape,
|
|
@@ -234,7 +237,7 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
234
237
|
class: V({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
235
238
|
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
236
239
|
])),
|
|
237
|
-
(a(!0), s(f, null, g(
|
|
240
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("text", {
|
|
238
241
|
"text-anchor": "middle",
|
|
239
242
|
x: t.textAnchor,
|
|
240
243
|
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
@@ -250,9 +253,9 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
250
253
|
s: e.value.style.labels.value.suffix,
|
|
251
254
|
r: e.value.style.labels.value.rounding
|
|
252
255
|
}),
|
|
253
|
-
{ datapoint:
|
|
254
|
-
)), 9,
|
|
255
|
-
(a(!0), s(f, null, g(
|
|
256
|
+
{ datapoint: r.value[u.value], seriesIndex: u.value }
|
|
257
|
+
)), 9, Ne))), 256)),
|
|
258
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
256
259
|
t.valueLabel ? (a(), s("text", {
|
|
257
260
|
key: 0,
|
|
258
261
|
x: t.textAnchor,
|
|
@@ -260,9 +263,9 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
260
263
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
261
264
|
"text-anchor": "middle",
|
|
262
265
|
fill: e.value.style.labels.valueLabel.color
|
|
263
|
-
}, p(t.valueLabel), 9,
|
|
266
|
+
}, p(t.valueLabel), 9, De)) : c("", !0)
|
|
264
267
|
]))), 256)),
|
|
265
|
-
(a(!0), s(f, null, g(
|
|
268
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
266
269
|
t.timeLabel ? (a(), s("text", {
|
|
267
270
|
key: 0,
|
|
268
271
|
x: t.textAnchor,
|
|
@@ -270,9 +273,9 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
270
273
|
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
271
274
|
fill: e.value.style.labels.timeLabel.color,
|
|
272
275
|
"text-anchor": "middle"
|
|
273
|
-
}, p(t.timeLabel), 9,
|
|
276
|
+
}, p(t.timeLabel), 9, Ie)) : c("", !0)
|
|
274
277
|
]))), 256)),
|
|
275
|
-
(a(!0), s(f, null, g(
|
|
278
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
276
279
|
h("rect", {
|
|
277
280
|
height: v.value.height,
|
|
278
281
|
width: t.unitWidth,
|
|
@@ -280,19 +283,19 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
280
283
|
x: t.trapX,
|
|
281
284
|
y: 0,
|
|
282
285
|
onMouseover: (y) => u.value = o,
|
|
283
|
-
onMouseleave:
|
|
286
|
+
onMouseleave: i[0] || (i[0] = (y) => u.value = null),
|
|
284
287
|
stroke: u.value !== null && u.value === o ? e.value.style.selector.stroke : "",
|
|
285
288
|
"stroke-width": u.value !== null && u.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
286
289
|
rx: e.value.style.selector.borderRadius,
|
|
287
290
|
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
288
291
|
onClick: () => Y(t, o)
|
|
289
|
-
}, null, 40,
|
|
292
|
+
}, null, 40, Ve)
|
|
290
293
|
]))), 256))
|
|
291
|
-
], 8,
|
|
292
|
-
l.$slots.source ? (a(), s("div",
|
|
294
|
+
], 8, pe)) : c("", !0),
|
|
295
|
+
l.$slots.source ? (a(), s("div", Ee, [
|
|
293
296
|
I(l.$slots, "source", {}, void 0, !0)
|
|
294
297
|
], 512)) : c("", !0),
|
|
295
|
-
S.value ? c("", !0) : (a(), D(
|
|
298
|
+
S.value ? c("", !0) : (a(), D(de, {
|
|
296
299
|
key: 3,
|
|
297
300
|
config: {
|
|
298
301
|
type: "sparkHistogram",
|
|
@@ -306,7 +309,7 @@ const ye = { key: 0 }, he = { key: 1 }, fe = ["xmlns", "viewBox"], ge = ["width"
|
|
|
306
309
|
}, null, 8, ["config"]))
|
|
307
310
|
], 36));
|
|
308
311
|
}
|
|
309
|
-
},
|
|
312
|
+
}, Ge = /* @__PURE__ */ he(He, [["__scopeId", "data-v-c92ac914"]]);
|
|
310
313
|
export {
|
|
311
|
-
|
|
314
|
+
Ge as default
|
|
312
315
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DD4PT0Pl.cjs"),_=require("./useNestedProp-DU7JFxpL.cjs"),M=require("./Shape-Cwx-wRaK.cjs"),O=require("./vue-ui-skeleton-Tk4j6G2D.cjs"),q=require("./PackageVersion-CCgJTyH9.cjs"),H=require("./useChartAccessibility-Cm7nkzTG.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U={key:0},W={key:1},j=["xmlns","viewBox"],P=["width","height"],R=["id"],G=["stop-color"],T=["stop-color"],X=["id"],Y=["stop-color"],J=["stop-color"],K=["id"],Q=["stop-color"],Z=["stop-color"],ee={key:1},te=["x","y","height","width","fill","stroke","stroke-width","rx"],le={key:2},oe=["x","y","font-size","font-weight","fill"],ae=["x","y","font-size","fill"],se=["x","y","font-size","fill"],ne=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],re={key:2,ref:"source",dir:"auto"},ie={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(B,{emit:x}){e.useCssVars(o=>({"40b52890":L.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),c=B,f=e.computed(()=>!!c.dataset&&c.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(c.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):c.dataset.forEach((o,r)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:r})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o}),{svgRef:w}=H.useChartAccessibility({config:t.value.style.title});function b(){const o=_.useNestedProp({userConfig:c.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||c.config,defaultConfig:o})}:o}e.watch(()=>c.config,o=>{t.value=b(),k()},{deep:!0});const u=e.computed(()=>{const o=t.value.style.layout.height,r=t.value.style.layout.width,l=t.value.style.layout.padding.top,s=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=r-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,g=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=r-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:s,centerY:p,drawingHeight:g,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),C=e.computed(()=>Math.max(...c.dataset.map(o=>Math.abs(o.value||0))));function $(o){return Math.abs(o)/C.value}const i=e.computed(()=>c.dataset.map((o,r)=>{const l=$(o.value||0),s=u.value.drawingHeight*l,d=u.value.drawingWidth/c.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,g=u.value.centerY-s/2,m=u.value.left+(y/2+r*d),V=u.value.left+r*d,h=typeof o.intensity>"u"?100:Math.round(o.intensity*100),z=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,h):a.setOpacity(t.value.style.bars.colors.negative,h),D=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,A=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,F=m+p/2;return{...o,color:z,gradient:A,height:s,intensity:h,proportion:l,stroke:D,textAnchor:F,trapX:V,unitWidth:d,width:p,x:m,y:g}})),n=e.ref(null),S=x;function N(o,r){S("selectDatapoint",{datapoint:o,index:r})}const L=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-histogram",style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:r[1]||(r[1]=l=>n.value=null)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),n.value!==null?(e.openBlock(),e.createElementBlock("span",U,"- "+e.toDisplayString(i.value[n.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,i.value[n.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:i.value[n.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[n.value],seriesIndex:n.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(n.value)&&![null,void 0].includes(i.value[n.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",W,"("+e.toDisplayString(i.value[n.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:1,ref_key:"svgRef",ref:w,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createVNode(q._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width,height:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,P)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05),l.intensity)},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,T)],8,R))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05),l.intensity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,J)],8,X))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${s}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(l.color,.05),l.intensity)},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,Z)],8,K))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,te))),256))])):(e.openBlock(),e.createElementBlock("g",le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createBlock(M._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,l.value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:l.value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[n.value],seriesIndex:n.value})),9,oe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,ae)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:u.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,se)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>n.value=s,onMouseleave:r[0]||(r[0]=d=>n.value=null),stroke:n.value!==null&&n.value===s?t.value.style.selector.stroke:"","stroke-width":n.value!==null&&n.value===s?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>N(l,s)},null,40,ne)]))),256))],8,j)):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O.default,{key:3,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},ue=I._export_sfc(ie,[["__scopeId","data-v-c92ac914"]]);exports.default=ue;
|