vue-data-ui 2.4.1 → 2.4.3
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/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { useCssVars as J, computed as _, onMounted as K, ref as N, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as F } from "./useNestedProp-
|
|
4
|
-
import { _ as ie } from "./Shape-
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
1
|
+
import { useCssVars as J, computed as _, onMounted as K, ref as N, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as g, unref as n, createCommentVNode as h, createVNode as ee, Fragment as f, renderList as p, normalizeClass as D, createBlock as I, renderSlot as te } from "vue";
|
|
2
|
+
import { u as le, o as ae, e as V, g as se, c as oe, t as ue, s as m, i as H, f as E, X as re, w as z } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { u as F } from "./useNestedProp-B33hazbH.js";
|
|
4
|
+
import { _ as ie } from "./Shape-Bwon0l0g.js";
|
|
5
|
+
import ne from "./vue-ui-skeleton-BYssP0K4.js";
|
|
6
|
+
import { _ as ve } from "./PackageVersion-VkaUzgmt.js";
|
|
7
|
+
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], me = ["id"], be = ["stop-color"], _e = ["stop-color"], xe = ["id"], ke = ["stop-color"], we = ["stop-color"], $e = { key: 0 }, Ce = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Le = { key: 1 }, ze = ["x", "y", "font-size", "font-weight", "fill"], Se = ["x", "y", "font-size", "fill"], Me = ["x", "y", "font-size", "fill"], Ae = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ne = {
|
|
9
|
+
key: 2,
|
|
10
|
+
ref: "source",
|
|
11
|
+
dir: "auto"
|
|
12
|
+
}, De = {
|
|
9
13
|
__name: "vue-ui-sparkhistogram",
|
|
10
14
|
props: {
|
|
11
15
|
config: {
|
|
@@ -25,18 +29,18 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
25
29
|
setup(W, { emit: B }) {
|
|
26
30
|
const v = W;
|
|
27
31
|
J((l) => ({
|
|
28
|
-
|
|
32
|
+
"3d57fabd": G.value
|
|
29
33
|
}));
|
|
30
|
-
const { vue_ui_sparkhistogram: O } =
|
|
34
|
+
const { vue_ui_sparkhistogram: O } = le(), S = _(() => !!v.dataset && v.dataset.length);
|
|
31
35
|
K(() => {
|
|
32
36
|
M();
|
|
33
37
|
});
|
|
34
38
|
function M() {
|
|
35
|
-
|
|
39
|
+
ae(v.dataset) ? V({
|
|
36
40
|
componentName: "VueUiSparkHistogram",
|
|
37
41
|
type: "dataset"
|
|
38
|
-
}) : v.dataset.forEach((l,
|
|
39
|
-
|
|
42
|
+
}) : v.dataset.forEach((l, r) => {
|
|
43
|
+
se({
|
|
40
44
|
datasetObject: l,
|
|
41
45
|
requiredAttributes: ["value"]
|
|
42
46
|
}).forEach((t) => {
|
|
@@ -44,12 +48,12 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
44
48
|
componentName: "VueUiSparkHistogram",
|
|
45
49
|
type: "datasetSerieAttribute",
|
|
46
50
|
property: t,
|
|
47
|
-
index:
|
|
51
|
+
index: r
|
|
48
52
|
});
|
|
49
53
|
});
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
|
-
const b = N(
|
|
56
|
+
const b = N(oe()), e = _({
|
|
53
57
|
get: () => A(),
|
|
54
58
|
set: (l) => l
|
|
55
59
|
});
|
|
@@ -60,7 +64,7 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
60
64
|
});
|
|
61
65
|
return l.theme ? {
|
|
62
66
|
...F({
|
|
63
|
-
userConfig:
|
|
67
|
+
userConfig: ue.vue_ui_sparkhistogram[l.theme] || v.config,
|
|
64
68
|
defaultConfig: l
|
|
65
69
|
})
|
|
66
70
|
} : l;
|
|
@@ -69,7 +73,7 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
69
73
|
e.value = A(), M();
|
|
70
74
|
}, { deep: !0 });
|
|
71
75
|
const d = _(() => {
|
|
72
|
-
const l = e.value.style.layout.height,
|
|
76
|
+
const l = e.value.style.layout.height, r = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, c = e.value.style.layout.padding.left, x = r - 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 = r - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
73
77
|
return {
|
|
74
78
|
bottom: o,
|
|
75
79
|
centerY: k,
|
|
@@ -79,14 +83,14 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
79
83
|
left: c,
|
|
80
84
|
right: x,
|
|
81
85
|
top: t,
|
|
82
|
-
width:
|
|
86
|
+
width: r
|
|
83
87
|
};
|
|
84
88
|
}), U = _(() => Math.max(...v.dataset.map((l) => Math.abs(l.value || 0))));
|
|
85
89
|
function X(l) {
|
|
86
90
|
return Math.abs(l) / U.value;
|
|
87
91
|
}
|
|
88
|
-
const
|
|
89
|
-
const t = X(l.value || 0), o = d.value.drawingHeight * t, c = d.value.drawingWidth / v.dataset.length, x = c * (e.value.style.bars.gap / 100), k = c - x, C = d.value.centerY - o / 2, w = d.value.left + (x / 2 +
|
|
92
|
+
const i = _(() => v.dataset.map((l, r) => {
|
|
93
|
+
const t = X(l.value || 0), o = d.value.drawingHeight * t, c = d.value.drawingWidth / v.dataset.length, x = c * (e.value.style.bars.gap / 100), k = c - x, C = d.value.centerY - o / 2, w = d.value.left + (x / 2 + r * c), Y = d.value.left + r * c, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), q = l.color ? l.color : l.value >= 0 ? m(e.value.style.bars.colors.positive, L) : m(e.value.style.bars.colors.negative, L), R = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, T = l.color ? `url(#gradient_datapoint_${r}_${b.value})` : l.value >= 0 ? `url(#gradient_positive_${r}_${b.value})` : `url(#gradient_negative_${r}_${b.value})`, P = w + k / 2;
|
|
90
94
|
return {
|
|
91
95
|
...l,
|
|
92
96
|
color: q,
|
|
@@ -103,13 +107,13 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
103
107
|
y: C
|
|
104
108
|
};
|
|
105
109
|
})), u = N(null);
|
|
106
|
-
function j(l,
|
|
107
|
-
B("selectDatapoint", { datapoint: l, index:
|
|
110
|
+
function j(l, r) {
|
|
111
|
+
B("selectDatapoint", { datapoint: l, index: r });
|
|
108
112
|
}
|
|
109
113
|
const G = _(() => `${e.value.style.animation.speedMs}ms`);
|
|
110
|
-
return (l,
|
|
114
|
+
return (l, r) => (a(), s("div", {
|
|
111
115
|
style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
112
|
-
onMouseleave:
|
|
116
|
+
onMouseleave: r[1] || (r[1] = (t) => u.value = null)
|
|
113
117
|
}, [
|
|
114
118
|
e.value.style.title.text ? (a(), s("div", {
|
|
115
119
|
key: 0,
|
|
@@ -118,34 +122,34 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
118
122
|
y("div", {
|
|
119
123
|
style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
120
124
|
}, [
|
|
121
|
-
Z(
|
|
122
|
-
u.value !== null ? (a(), s("span",
|
|
125
|
+
Z(g(e.value.style.title.text) + " ", 1),
|
|
126
|
+
u.value !== null ? (a(), s("span", ce, "- " + g(i.value[u.value].timeLabel || "") + " " + g(n(H)(
|
|
123
127
|
e.value.style.labels.value.formatter,
|
|
124
|
-
|
|
128
|
+
i.value[u.value].value,
|
|
125
129
|
n(E)({
|
|
126
130
|
p: e.value.style.labels.value.prefix,
|
|
127
|
-
v:
|
|
131
|
+
v: i.value[u.value].value,
|
|
128
132
|
s: e.value.style.labels.value.suffix,
|
|
129
133
|
r: e.value.style.labels.value.rounding
|
|
130
134
|
}),
|
|
131
|
-
{ datapoint:
|
|
132
|
-
)), 1)) :
|
|
133
|
-
![void 0, null].includes(u.value) && ![null, void 0].includes(
|
|
135
|
+
{ datapoint: i.value[u.value], seriesIndex: u.value }
|
|
136
|
+
)), 1)) : h("", !0),
|
|
137
|
+
![void 0, null].includes(u.value) && ![null, void 0].includes(i.value[u.value].valueLabel) ? (a(), s("span", ye, "(" + g(i.value[u.value].valueLabel || 0) + ")", 1)) : h("", !0)
|
|
134
138
|
], 4),
|
|
135
139
|
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
136
140
|
key: 0,
|
|
137
141
|
style: $(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
138
|
-
},
|
|
139
|
-
], 4)) :
|
|
142
|
+
}, g(e.value.style.title.subtitle.text), 5)) : h("", !0)
|
|
143
|
+
], 4)) : h("", !0),
|
|
140
144
|
S.value ? (a(), s("svg", {
|
|
141
145
|
key: 1,
|
|
142
|
-
xmlns: n(
|
|
146
|
+
xmlns: n(re),
|
|
143
147
|
viewBox: `0 0 ${d.value.width} ${d.value.height}`,
|
|
144
148
|
style: { overflow: "visible" }
|
|
145
149
|
}, [
|
|
146
|
-
ee(
|
|
150
|
+
ee(ve),
|
|
147
151
|
y("defs", null, [
|
|
148
|
-
(a(!0), s(f, null,
|
|
152
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
|
|
149
153
|
id: `gradient_positive_${o}_${b.value}`,
|
|
150
154
|
cy: "50%",
|
|
151
155
|
cx: "50%",
|
|
@@ -156,13 +160,13 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
156
160
|
y("stop", {
|
|
157
161
|
offset: "0%",
|
|
158
162
|
"stop-color": n(m)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
159
|
-
}, null, 8,
|
|
163
|
+
}, null, 8, pe),
|
|
160
164
|
y("stop", {
|
|
161
165
|
offset: "100%",
|
|
162
166
|
"stop-color": n(m)(e.value.style.bars.colors.positive, t.intensity)
|
|
163
|
-
}, null, 8,
|
|
167
|
+
}, null, 8, ge)
|
|
164
168
|
], 8, fe))), 256)),
|
|
165
|
-
(a(!0), s(f, null,
|
|
169
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
|
|
166
170
|
id: `gradient_negative_${o}_${b.value}`,
|
|
167
171
|
cy: "50%",
|
|
168
172
|
cx: "50%",
|
|
@@ -173,13 +177,13 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
173
177
|
y("stop", {
|
|
174
178
|
offset: "0%",
|
|
175
179
|
"stop-color": n(m)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
176
|
-
}, null, 8,
|
|
180
|
+
}, null, 8, be),
|
|
177
181
|
y("stop", {
|
|
178
182
|
offset: "100%",
|
|
179
183
|
"stop-color": n(m)(e.value.style.bars.colors.negative, t.intensity)
|
|
180
|
-
}, null, 8,
|
|
181
|
-
], 8,
|
|
182
|
-
(a(!0), s(f, null,
|
|
184
|
+
}, null, 8, _e)
|
|
185
|
+
], 8, me))), 256)),
|
|
186
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
|
|
183
187
|
id: `gradient_datapoint_${o}_${b.value}`,
|
|
184
188
|
cy: "50%",
|
|
185
189
|
cx: "50%",
|
|
@@ -190,15 +194,15 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
190
194
|
y("stop", {
|
|
191
195
|
offset: "0%",
|
|
192
196
|
"stop-color": n(m)(n(z)(t.color, 0.05), t.intensity)
|
|
193
|
-
}, null, 8,
|
|
197
|
+
}, null, 8, ke),
|
|
194
198
|
y("stop", {
|
|
195
199
|
offset: "100%",
|
|
196
200
|
"stop-color": n(m)(t.color, t.intensity)
|
|
197
|
-
}, null, 8,
|
|
198
|
-
], 8,
|
|
201
|
+
}, null, 8, we)
|
|
202
|
+
], 8, xe))), 256))
|
|
199
203
|
]),
|
|
200
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g",
|
|
201
|
-
(a(!0), s(f, null,
|
|
204
|
+
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", $e, [
|
|
205
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("rect", {
|
|
202
206
|
x: t.x,
|
|
203
207
|
y: t.y,
|
|
204
208
|
height: t.height,
|
|
@@ -208,9 +212,9 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
208
212
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
209
213
|
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
210
214
|
class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
211
|
-
}, null, 10,
|
|
212
|
-
])) : (a(), s("g",
|
|
213
|
-
(a(!0), s(f, null,
|
|
215
|
+
}, null, 10, Ce))), 256))
|
|
216
|
+
])) : (a(), s("g", Le, [
|
|
217
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), I(ie, {
|
|
214
218
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
215
219
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
216
220
|
shape: e.value.style.bars.shape,
|
|
@@ -218,14 +222,14 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
218
222
|
class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
219
223
|
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
220
224
|
])),
|
|
221
|
-
(a(!0), s(f, null,
|
|
225
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("text", {
|
|
222
226
|
"text-anchor": "middle",
|
|
223
227
|
x: t.textAnchor,
|
|
224
228
|
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
225
229
|
"font-size": e.value.style.labels.value.fontSize,
|
|
226
230
|
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
227
231
|
fill: e.value.style.labels.value.color
|
|
228
|
-
},
|
|
232
|
+
}, g(n(H)(
|
|
229
233
|
e.value.style.labels.value.formatter,
|
|
230
234
|
t.value,
|
|
231
235
|
n(E)({
|
|
@@ -234,9 +238,9 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
234
238
|
s: e.value.style.labels.value.suffix,
|
|
235
239
|
r: e.value.style.labels.value.rounding
|
|
236
240
|
}),
|
|
237
|
-
{ datapoint:
|
|
238
|
-
)), 9,
|
|
239
|
-
(a(!0), s(f, null,
|
|
241
|
+
{ datapoint: i.value[u.value], seriesIndex: u.value }
|
|
242
|
+
)), 9, ze))), 256)),
|
|
243
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
|
|
240
244
|
t.valueLabel ? (a(), s("text", {
|
|
241
245
|
key: 0,
|
|
242
246
|
x: t.textAnchor,
|
|
@@ -244,9 +248,9 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
244
248
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
245
249
|
"text-anchor": "middle",
|
|
246
250
|
fill: e.value.style.labels.valueLabel.color
|
|
247
|
-
},
|
|
251
|
+
}, g(t.valueLabel), 9, Se)) : h("", !0)
|
|
248
252
|
]))), 256)),
|
|
249
|
-
(a(!0), s(f, null,
|
|
253
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
|
|
250
254
|
t.timeLabel ? (a(), s("text", {
|
|
251
255
|
key: 0,
|
|
252
256
|
x: t.textAnchor,
|
|
@@ -254,9 +258,9 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
254
258
|
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
255
259
|
fill: e.value.style.labels.timeLabel.color,
|
|
256
260
|
"text-anchor": "middle"
|
|
257
|
-
},
|
|
261
|
+
}, g(t.timeLabel), 9, Me)) : h("", !0)
|
|
258
262
|
]))), 256)),
|
|
259
|
-
(a(!0), s(f, null,
|
|
263
|
+
(a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
|
|
260
264
|
y("rect", {
|
|
261
265
|
height: d.value.height,
|
|
262
266
|
width: t.unitWidth,
|
|
@@ -264,17 +268,20 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
264
268
|
x: t.trapX,
|
|
265
269
|
y: 0,
|
|
266
270
|
onMouseover: (c) => u.value = o,
|
|
267
|
-
onMouseleave:
|
|
271
|
+
onMouseleave: r[0] || (r[0] = (c) => u.value = null),
|
|
268
272
|
stroke: u.value !== null && u.value === o ? e.value.style.selector.stroke : "",
|
|
269
273
|
"stroke-width": u.value !== null && u.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
270
274
|
rx: e.value.style.selector.borderRadius,
|
|
271
275
|
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
272
276
|
onClick: () => j(t, o)
|
|
273
|
-
}, null, 40,
|
|
277
|
+
}, null, 40, Ae)
|
|
274
278
|
]))), 256))
|
|
275
|
-
], 8,
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
], 8, he)) : h("", !0),
|
|
280
|
+
l.$slots.source ? (a(), s("div", Ne, [
|
|
281
|
+
te(l.$slots, "source", {}, void 0, !0)
|
|
282
|
+
], 512)) : h("", !0),
|
|
283
|
+
S.value ? h("", !0) : (a(), I(ne, {
|
|
284
|
+
key: 3,
|
|
278
285
|
config: {
|
|
279
286
|
type: "sparkHistogram",
|
|
280
287
|
style: {
|
|
@@ -287,7 +294,7 @@ const de = { key: 0 }, ce = { key: 1 }, ye = ["xmlns", "viewBox"], fe = ["id"],
|
|
|
287
294
|
}, null, 8, ["config"]))
|
|
288
295
|
], 36));
|
|
289
296
|
}
|
|
290
|
-
},
|
|
297
|
+
}, Oe = /* @__PURE__ */ de(De, [["__scopeId", "data-v-4e962555"]]);
|
|
291
298
|
export {
|
|
292
|
-
|
|
299
|
+
Oe as default
|
|
293
300
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-eFox7weK.cjs"),_=require("./useNestedProp-BkgEhTQY.cjs"),F=require("./Shape-D2Dpshg1.cjs"),M=require("./vue-ui-skeleton-BqKzuhkB.cjs"),O=require("./PackageVersion-DwI-KhXH.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["id"],W=["stop-color"],P=["stop-color"],j=["id"],G=["stop-color"],T=["stop-color"],X=["id"],Y=["stop-color"],R=["stop-color"],J={key:0},K=["x","y","height","width","fill","stroke","stroke-width","rx"],Q={key:1},Z=["x","y","font-size","font-weight","fill"],ee=["x","y","font-size","fill"],te=["x","y","font-size","fill"],le=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],oe={key:2,ref:"source",dir:"auto"},ae={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(x,{emit:B}){const i=x;e.useCssVars(o=>({"3d57fabd":S.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),h=e.computed(()=>!!i.dataset&&i.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(i.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):i.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});function b(){const o=_.useNestedProp({userConfig:i.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||i.config,defaultConfig:o})}:o}e.watch(()=>i.config,o=>{t.value=b(),k()},{deep:!0});const c=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,f=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:f,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),w=e.computed(()=>Math.max(...i.dataset.map(o=>Math.abs(o.value||0))));function C(o){return Math.abs(o)/w.value}const u=e.computed(()=>i.dataset.map((o,r)=>{const l=C(o.value||0),s=c.value.drawingHeight*l,d=c.value.drawingWidth/i.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,f=c.value.centerY-s/2,m=c.value.left+(y/2+r*d),L=c.value.left+r*d,g=typeof o.intensity>"u"?100:Math.round(o.intensity*100),N=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,g):a.setOpacity(t.value.style.bars.colors.negative,g),V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,D=m+p/2;return{...o,color:N,gradient:z,height:s,intensity:g,proportion:l,stroke:V,textAnchor:D,trapX:L,unitWidth:d,width:p,x:m,y:f}})),n=e.ref(null);function $(o,r){B("selectDatapoint",{datapoint:o,index:r})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{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",H,"- "+e.toDisplayString(u.value[n.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,u.value[n.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:u.value[n.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:u.value[n.value],seriesIndex:n.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(n.value)&&![null,void 0].includes(u.value[n.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(u.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),h.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${c.value.width} ${c.value.height}`,style:{overflow:"visible"}},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.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,W),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,P)],8,U))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.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,G),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,T)],8,j))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.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,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,R)],8,X))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.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,K))),256))])):(e.openBlock(),e.createElementBlock("g",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createBlock(F._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(u.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:u.value[n.value],seriesIndex:n.value})),9,Z))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.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,ee)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:c.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,te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:c.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:()=>$(l,s)},null,40,le)]))),256))],8,I)):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:3,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},se=A._export_sfc(ae,[["__scopeId","data-v-4e962555"]]);exports.default=se;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-eFox7weK.cjs"),S=require("./useNestedProp-BkgEhTQY.cjs"),G=require("./vue-ui-skeleton-BqKzuhkB.cjs"),M=require("./useResponsive-CodiGUOE.cjs"),j=require("./PackageVersion-DwI-KhXH.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],U=["xmlns","viewBox"],X=["id"],Z=["stop-color"],Y=["stop-color"],J=["id"],K=["stop-color"],Q=["stop-color"],ee=["id"],te=["stop-color"],le=["stop-color"],ae={key:0},oe=["d","fill"],ne=["d","fill"],ue=["d","stroke","stroke-width"],re=["x1","x2","y1","y2","stroke","stroke-width"],se=["x","y","width","height","fill","rx"],ie=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],de=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],ce=["cx","cy","r","fill","stroke","stroke-width"],ve=["x","y","font-size","font-weight","fill"],he=["x","y","height","width","onMouseenter","onClick"],ye={__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0}},emits:["hoverIndex","selectDatapoint"],setup(f,{emit:_}){const i=f,{vue_ui_sparkline:z}=u.useConfig(),g=e.computed(()=>!!i.dataset&&i.dataset.length),v=e.ref(u.createUid()),x=e.ref(null),B=e.ref(null),L=e.ref(null),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=S.useNestedProp({userConfig:i.config,defaultConfig:z});return l.theme?{...S.useNestedProp({userConfig:u.themes.vue_ui_sparkline[l.theme]||i.config,defaultConfig:l})}:l}e.watch(()=>i.config,l=>{t.value=C(),E(),o.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>i.dataset,l=>{p.value=i.dataset.map(n=>({...n,value:[void 0].includes(n.value)?null:n.value}))},{deep:!0});const p=e.ref(P());function P(){return i.dataset.map(l=>t.value.style.animation.show?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value})}const V=e.ref(null);e.onMounted(()=>{if(E(),t.value.style.animation.show&&i.dataset.length>1){let a=function(){n<i.dataset.length?(p.value.push(i.dataset[n]),setTimeout(()=>{requestAnimationFrame(a)},l)):p.value=i.dataset,n+=1};p.value=[];const l=t.value.style.animation.animationFrames/i.dataset.length;let n=0;a()}});function E(){if(u.objectIsEmpty(i.dataset)?u.error({componentName:"VueUiSparkline",type:"dataset"}):i.dataset.forEach((l,n)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{u.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:n})})}),t.value.responsive){const l=M.throttle(()=>{const{width:n,height:a}=M.useResponsive({chart:x.value,title:t.value.style.title.show&&i.showInfo?B.value:null,source:L.value});o.value.width=n,o.value.height=a,o.value.chartWidth=t.value.style.chartWidth/500*n,o.value.padding=.06*n});V.value=new ResizeObserver(l),V.value.observe(x.value.parentNode)}}const o=e.ref({height:80,width:500,chartWidth:t.value.style.chartWidth,padding:30}),D=e.ref(6),r=e.computed(()=>({top:12,left:0,right:o.value.width,bottom:o.value.height-3,start:i.showInfo&&t.value.style.dataLabel.show&&t.value.style.dataLabel.position==="left"?o.value.width-o.value.chartWidth:o.value.padding,width:i.showInfo&&t.value.style.dataLabel.show?o.value.chartWidth:o.value.width-o.value.padding,height:o.value.height-12})),w=e.computed(()=>Math.min(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),W=e.computed(()=>Math.max(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),m=e.computed(()=>{const l=w.value>=0?0:w.value;return Math.abs(l)}),A=e.computed(()=>W.value+m.value+D.value),b=e.computed(()=>r.value.bottom-r.value.height*N(m.value));function N(l){return l/A.value}const h=e.computed(()=>i.dataset.length-1),s=e.computed(()=>p.value.map((l,n)=>{const a=isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0;return{absoluteValue:a,period:l.period,plotValue:a+m.value,toMax:N(a+m.value),x:r.value.start+n*(r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)),y:r.value.bottom-r.value.height*N(a+m.value),id:`plot_${v.value}_${n}`,color:k.value?t.value.style.bar.color:t.value.style.area.useGradient?u.shiftHue(t.value.style.line.color,.05*(1-n/h.value)):t.value.style.line.color,width:r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)}})),O=e.computed(()=>{const l={x:s.value[0].x,y:o.value.height-6},n={x:s.value[s.value.length-1].x,y:o.value.height-6},a=[];return s.value.forEach(d=>{a.push(`${d.x},${d.y} `)}),[l.x,l.y,...a,n.x,n.y].toString()}),c=e.ref(void 0);function F(l,n){c.value=l,_("hoverIndex",{index:n})}function q(){c.value=void 0,_("hoverIndex",{index:void 0})}const y=e.computed(()=>{if(g.value){const l=s.value.map(a=>a.absoluteValue),n=l.reduce((a,d)=>a+d,0);return{latest:s.value[s.value.length-1].absoluteValue,sum:n,average:n/s.value.length,median:u.calcMedian(l),trend:u.calcLinearProgression(s.value.map(({x:a,y:d,absoluteValue:I})=>({x:a,y:d,value:I}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),$=e.computed(()=>g.value?t.value.style.dataLabel.valueType==="latest"?y.value.latest:t.value.style.dataLabel.valueType==="sum"?y.value.sum:t.value.style.dataLabel.valueType==="average"?y.value.average:0:0),k=e.computed(()=>t.value.type&&t.value.type==="bar");function T(l,n){_("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:x,class:"vue-ui-sparkline",id:v.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily}`)},[e.renderSlot(l.$slots,"before",e.normalizeProps(e.guardReactiveProps({selected:c.value,latest:y.value.latest,sum:y.value.sum,average:y.value.average,median:y.value.median,trend:y.value.trend})),void 0,!0),t.value.style.title.show&&f.showInfo?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:B,class:"vue-ui-sparkline-title",style:e.normalizeStyle(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign==="left"?"flex-start":t.value.style.title.textAlign==="right"?"flex-end":"center"};height:${t.value.style.title.fontSize*2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold?"bold":"normal"};`)},[e.createElementVNode("span",{style:e.normalizeStyle(`padding:${t.value.style.title.textAlign==="left"?"0 0 0 12px":t.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},e.toDisplayString(c.value?c.value.period:t.value.style.title.text),5)],4)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor};overflow:visible`)},[e.createVNode(j._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.setOpacity)(e.unref(u.shiftHue)(t.value.style.area.color,.05),t.value.style.area.opacity)},null,8,Z),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,Y)],8,X),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.bar.color},null,8,K),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.shiftHue)(t.value.style.bar.color,.05)},null,8,Q)],8,J),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(u.shiftHue)(t.value.style.bar.color,.05)},null,8,te),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,le)],8,ee)]),t.value.style.area.show&&!k.value&&s.value[0]?(e.openBlock(),e.createElementBlock("g",ae,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${s.value[0].x},${r.value.bottom} ${e.unref(u.createSmoothPath)(s.value)} L ${s.value.at(-1).x},${r.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,oe)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${O.value}Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(u.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,ne))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(u.createSmoothPath)(s.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,ue)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[d<s.value.length-1&&!t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:s.value[d+1].x,y1:a.y,y2:s.value[d+1].y,stroke:a.color,"stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"geometricPrecision"},null,8,re)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.width/2,y:a.absoluteValue>0?a.y:b.value,width:a.width,height:Math.abs(a.y-b.value),fill:a.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${v.value})`:`url(#sparkline_bar_gradient_neg_${v.value})`,rx:t.value.style.bar.borderRadius},null,8,se)):e.createCommentVNode("",!0),t.value.style.verticalIndicator.show&&(c.value&&a.id===c.value.id||f.selectedIndex===d)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.x,x2:a.x,y1:r.value.top-6,y2:r.value.bottom,stroke:t.value.style.verticalIndicator.color||a.color,"stroke-width":t.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.verticalIndicator.strokeDasharray||0},null,8,ie)):e.createCommentVNode("",!0)]))),256)),w.value<0?(e.openBlock(),e.createElementBlock("line",{key:2,x1:r.value.start,x2:r.value.start+r.value.width-16,y1:b.value,y2:b.value,stroke:t.value.style.zeroLine.color,"stroke-dasharray":t.value.style.zeroLine.strokeWidth*2,"stroke-width":t.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,de)):e.createCommentVNode("",!0),t.value.style.plot.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[c.value&&a.id===c.value.id||f.selectedIndex===d?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:a.x,cy:a.y,r:t.value.style.plot.radius,fill:a.color,stroke:t.value.style.plot.stroke,"stroke-width":t.value.style.plot.strokeWidth},null,8,ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),f.showInfo&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:t.value.style.dataLabel.position==="left"?12+t.value.style.dataLabel.offsetX:r.value.width+12+t.value.style.dataLabel.offsetX,y:o.value.height/2+t.value.style.dataLabel.fontSize/2.5+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,"font-weight":t.value.style.dataLabel.bold?"bold":"normal",fill:t.value.style.dataLabel.color},e.toDisplayString(c.value?e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,c.value.absoluteValue,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:c.value.absoluteValue,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}),{datapoint:c.value}):e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,$.value,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:$.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,ve)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-(r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1))/2,y:r.value.top-6,height:r.value.height+6,width:r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1),fill:"transparent",onMouseenter:I=>F(a,d),onMouseleave:q,onClick:()=>T(a,d)},null,40,he))),256)),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],12,U)):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"source",ref:L,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G.default,{key:3,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,H))}},pe=R._export_sfc(ye,[["__scopeId","data-v-afa97ea1"]]);exports.default=pe;
|