vue-data-ui 2.6.5 → 2.6.7
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-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
- package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
- package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
- package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
- package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
- package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
- package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
- package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
- package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
- package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
- package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
- package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
- package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
- package/dist/Shape-D_1vUjCL.cjs +1 -0
- package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
- package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
- package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
- package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
- package/dist/Tooltip-ClMeqejQ.cjs +1 -0
- package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
- package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
- package/dist/index-DEnRHTzk.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +89 -62
- package/dist/types/vue-data-ui.d.ts +89 -62
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
- package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
- package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
- package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
- package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
- package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
- package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
- package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
- package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
- package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
- package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
- package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
- package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
- package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
- package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
- package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
- package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
- package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
- package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
- package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
- package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
- package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
- package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
- package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
- package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
- package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
- package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
- package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
- package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
- package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
- package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
- package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
- package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
- package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
- package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
- package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
- package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
- package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
- package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
- package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
- package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
- package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
- package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
- package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
- package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
- package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
- package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
- package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
- package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
- package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
- package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
- package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
- package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
- package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
- package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
- package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
- package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
- package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
- package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
- package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
- package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
- package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
- package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
- package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
- package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
- package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
- package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
- package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
- package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
- package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
- package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
- package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
- package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
- package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
- package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
- package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
- package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
- package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
- package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
- package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
- package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
- package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
- package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
- package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
- package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
- package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
- package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
- package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
- package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
- package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
- package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
- package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
- package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
- package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
- package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
- package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
- package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
- package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
- package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
- package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
- package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
- package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
- package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
- package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-GAZUIBfN.cjs +0 -1
- package/dist/Tooltip-BlGVq6xj.cjs +0 -1
- package/dist/index-DSGAenF3.cjs +0 -9
- package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
- package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
- package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
- package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
- package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
- package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
- package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
- package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
- package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
- package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
- package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
- package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
- package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
- package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
- package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
- package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
- package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
- package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
- package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
- package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
- package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
- package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
- package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
- package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
- package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
- package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
- package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
- package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
- package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
- package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
- package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
- package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
- package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
- package/dist/vue-ui-xy-mEVVQr_U.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-9EeNZMz1.js";
|
|
3
|
+
import { u as O } from "./useNestedProp-df_bKQEI.js";
|
|
4
|
+
import K from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
5
|
+
import { _ as Q } from "./PackageVersion-QRvxRYPv.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-9EeNZMz1.js";
|
|
3
|
+
import { u as O } from "./useNestedProp-df_bKQEI.js";
|
|
4
|
+
import { _ as ve } from "./Shape-58uyOuYc.js";
|
|
5
|
+
import de from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
6
|
+
import { _ as ce } from "./PackageVersion-QRvxRYPv.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-DEnRHTzk.cjs"),_=require("./useNestedProp-BNT60LxO.cjs"),M=require("./Shape-D_1vUjCL.cjs"),O=require("./vue-ui-skeleton-_DN0U6W6.cjs"),q=require("./PackageVersion-DJKkRuOD.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;
|