vue-data-ui 2.4.2 → 2.4.4
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 +3 -1
- package/dist/{Arrow-JuK2z9IB.js → Arrow-AxsI-FAh.js} +1 -1
- package/dist/{Arrow-DLTRnzcG.cjs → Arrow-W6XO2WVI.cjs} +1 -1
- package/dist/{BaseIcon-BGExhz6v.cjs → BaseIcon-BTn_oML7.cjs} +1 -1
- package/dist/{BaseIcon-rRli6Sfv.js → BaseIcon-BX3x6oa7.js} +1 -1
- package/dist/{DataTable-DTk7C4Pr.js → DataTable-BI1tjiA_.js} +2 -2
- package/dist/{DataTable-DJzhv96s.cjs → DataTable-RUQ1G_6L.cjs} +1 -1
- package/dist/{Legend-YZ7Hz3o1.cjs → Legend-B86sMXn7.cjs} +1 -1
- package/dist/{Legend-CYF2gpXG.js → Legend-CRMHjbGw.js} +1 -1
- package/dist/{PackageVersion-CvCRsT5_.js → PackageVersion-Clrfvyd8.js} +1 -1
- package/dist/{PackageVersion-DVZtsuy4.cjs → PackageVersion-CowXQ4IM.cjs} +1 -1
- package/dist/{PenAndPaper-Jb0pLt3G.js → PenAndPaper-BQzgk5kO.js} +2 -2
- package/dist/{PenAndPaper-CyXm-yVL.cjs → PenAndPaper-DBSxk9Xk.cjs} +1 -1
- package/dist/{Shape-BpPn4eWR.js → Shape-DYNtRer6.js} +1 -1
- package/dist/{Shape-X2F-QV_B.cjs → Shape-qK3MNdTg.cjs} +1 -1
- package/dist/{Slicer-CU7dRZR0.js → Slicer-DFPDip5U.js} +3 -3
- package/dist/{Slicer-CL0tP5a5.cjs → Slicer-NlxLkUso.cjs} +1 -1
- package/dist/{Title-5VmBwT4i.js → Title-710895ks.js} +1 -1
- package/dist/{Title-Co5jI5ed.cjs → Title-CUN1T6KC.cjs} +1 -1
- package/dist/{Tooltip-Bl6W8Zn7.cjs → Tooltip-BapDtYOM.cjs} +1 -1
- package/dist/{Tooltip-Cj4EF7v1.js → Tooltip-CPlG_yQU.js} +1 -1
- package/dist/index-CcykRspI.cjs +9 -0
- package/dist/{index-DnVHQ2xI.js → index-DCsPHn9C.js} +4 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -1
- package/dist/types/vue-data-ui.d.ts +4 -1
- package/dist/{useNestedProp-Cox0K0Y5.js → useNestedProp-DdSlLeTW.js} +1 -1
- package/dist/{useNestedProp-q7byAAIJ.cjs → useNestedProp-XtPlFP9O.cjs} +1 -1
- package/dist/{usePrinter-BCAFeO_J.cjs → usePrinter-BcE45wW6.cjs} +1 -1
- package/dist/{usePrinter-BEeNAqS5.js → usePrinter-siG3sKWo.js} +1 -1
- package/dist/useResponsive-BJ7DTGpm.cjs +1 -0
- package/dist/useResponsive-CoxXLe23.js +189 -0
- package/dist/{vue-data-ui-CRLLZpt0.cjs → vue-data-ui-C0o1kZzC.cjs} +1 -1
- package/dist/{vue-data-ui-W7nnqn0v.js → vue-data-ui-D_MTGc8j.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BwBrUabe.js → vue-ui-3d-bar-BdzWvy4d.js} +41 -34
- package/dist/{vue-ui-3d-bar-bD_n6qL_.cjs → vue-ui-3d-bar-C298Bf3V.cjs} +2 -2
- package/dist/{vue-ui-accordion-xXgqfR2l.cjs → vue-ui-accordion-B7PTyFVk.cjs} +1 -1
- package/dist/{vue-ui-accordion-DspS4q3f.js → vue-ui-accordion-D4Er5Dy5.js} +3 -3
- package/dist/vue-ui-age-pyramid-BIcB5vtU.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CxBvm3uM.js → vue-ui-age-pyramid-CHEdFQb7.js} +185 -168
- package/dist/{vue-ui-annotator-BOofWpzv.js → vue-ui-annotator-CqM_1HlB.js} +1 -1
- package/dist/{vue-ui-annotator-C6T5_7ZV.cjs → vue-ui-annotator-eGtZcHeb.cjs} +1 -1
- package/dist/{vue-ui-bullet-DraC-oFu.js → vue-ui-bullet-DBk50kIe.js} +195 -158
- package/dist/vue-ui-bullet-DURgZGgp.cjs +34 -0
- package/dist/{vue-ui-candlestick-DQZ5eT1f.js → vue-ui-candlestick-Bo41qkGe.js} +263 -246
- package/dist/vue-ui-candlestick-CP4Z-29b.cjs +2 -0
- package/dist/{vue-ui-carousel-table-PdLjpH1p.js → vue-ui-carousel-table-CkNOqa9q.js} +76 -69
- package/dist/vue-ui-carousel-table-lMqx64wd.cjs +1 -0
- package/dist/{vue-ui-chestnut-ByI_O5hB.js → vue-ui-chestnut-CNWq-epB.js} +299 -286
- package/dist/vue-ui-chestnut-qxzF2ND7.cjs +6 -0
- package/dist/{vue-ui-cursor-BM74l93B.js → vue-ui-cursor-B4m30Gqz.js} +2 -2
- package/dist/{vue-ui-cursor-BvadpA2m.cjs → vue-ui-cursor-BEv39HVY.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CoANBhAM.js → vue-ui-dashboard-BL9IgDDx.js} +2 -2
- package/dist/{vue-ui-dashboard-OP51Gs8I.cjs → vue-ui-dashboard-DnoXstlp.cjs} +1 -1
- package/dist/{vue-ui-digits-DioaBnkB.js → vue-ui-digits-CVPDJ6tl.js} +2 -2
- package/dist/{vue-ui-digits-C7jJJg9k.cjs → vue-ui-digits-D1RaU4V-.cjs} +1 -1
- package/dist/{vue-ui-donut-ldqSm_JV.js → vue-ui-donut-C65SAJKb.js} +374 -357
- package/dist/vue-ui-donut-CMC92CXL.cjs +1 -0
- package/dist/vue-ui-donut-evolution-7gIM4bVk.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DAb1xzNd.js → vue-ui-donut-evolution-BFbBlmBx.js} +240 -226
- package/dist/{vue-ui-dumbbell-Dg7PkiKJ.js → vue-ui-dumbbell-BnxRfvv0.js} +227 -210
- package/dist/vue-ui-dumbbell-OCo67ZKp.cjs +9 -0
- package/dist/vue-ui-flow-BPnpYrzb.cjs +1 -0
- package/dist/{vue-ui-flow-DKT7ZEnr.js → vue-ui-flow-Cra_F-tK.js} +150 -137
- package/dist/vue-ui-galaxy-3zTk9Pr1.cjs +1 -0
- package/dist/{vue-ui-galaxy-qAA9be3S.js → vue-ui-galaxy-DlJ7v0aD.js} +145 -132
- package/dist/{vue-ui-gauge-D8yVTIgP.js → vue-ui-gauge-CsqVvNxE.js} +210 -193
- package/dist/vue-ui-gauge-DcUNJZI1.cjs +1 -0
- package/dist/{vue-ui-gizmo-W6bTkg59.cjs → vue-ui-gizmo-BkkLoCyx.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DC0uUwI3.js → vue-ui-gizmo-Peyy8li7.js} +3 -3
- package/dist/vue-ui-heatmap-DYb831An.cjs +1 -0
- package/dist/{vue-ui-heatmap-u1raIzBQ.js → vue-ui-heatmap-i4HFM04D.js} +203 -189
- package/dist/{vue-ui-kpi-DY_2WF7U.cjs → vue-ui-kpi-CCrdcv3r.cjs} +1 -1
- package/dist/{vue-ui-kpi-C-iTxMD2.js → vue-ui-kpi-gSKVVqZg.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bfq2MNWu.cjs → vue-ui-mini-loader-CqutMcQI.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7x7S0hi.js → vue-ui-mini-loader-D7Jk1LJb.js} +2 -2
- package/dist/{vue-ui-molecule-BFnOIxxs.js → vue-ui-molecule-CgdepnhM.js} +164 -151
- package/dist/vue-ui-molecule-CwUObXAx.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CR1v5v2x.js → vue-ui-mood-radar-Bxro4962.js} +217 -203
- package/dist/vue-ui-mood-radar-RQFKS7Br.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DEiloQzq.js → vue-ui-nested-donuts-B7dXBejH.js} +342 -325
- package/dist/vue-ui-nested-donuts-D8ZGqIGC.cjs +17 -0
- package/dist/vue-ui-onion-Dtt0kw8E.cjs +5 -0
- package/dist/{vue-ui-onion-LsEhBe4x.js → vue-ui-onion-i52wztm0.js} +267 -250
- package/dist/vue-ui-parallel-coordinate-plot-DNK0BrBy.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CTlIjJqG.js → vue-ui-parallel-coordinate-plot-DUssrm08.js} +241 -224
- package/dist/{vue-ui-quadrant-DKVVFufb.js → vue-ui-quadrant-BORPtgQO.js} +236 -219
- package/dist/vue-ui-quadrant-a_I5E71f.cjs +1 -0
- package/dist/vue-ui-quick-chart-BpPDfK78.cjs +15 -0
- package/dist/{vue-ui-quick-chart-8vJikiGH.js → vue-ui-quick-chart-yb1FzVdt.js} +469 -452
- package/dist/{vue-ui-radar-20QhOUer.js → vue-ui-radar-CoCbl19A.js} +198 -181
- package/dist/vue-ui-radar-DZMngiqq.cjs +1 -0
- package/dist/{vue-ui-rating-DRWJsve1.js → vue-ui-rating-D-zwuvLK.js} +2 -2
- package/dist/{vue-ui-rating-Bbzm5nUK.cjs → vue-ui-rating-nTJ8DDhG.cjs} +1 -1
- package/dist/vue-ui-relation-circle-CW9qozhJ.js +366 -0
- package/dist/vue-ui-relation-circle-Wj_yrVJc.cjs +1 -0
- package/dist/vue-ui-rings-BZaZIGEz.cjs +2 -0
- package/dist/{vue-ui-rings-DG8GCi3y.js → vue-ui-rings-Bx2GEh6d.js} +221 -204
- package/dist/{vue-ui-scatter-Hqu5-F2H.js → vue-ui-scatter-BARiPzro.js} +375 -358
- package/dist/vue-ui-scatter-C-i1NZgz.cjs +1 -0
- package/dist/{vue-ui-screenshot-cjiqbtLK.js → vue-ui-screenshot-CuiJqlfo.js} +1 -1
- package/dist/{vue-ui-screenshot-D8nxd5RV.cjs → vue-ui-screenshot-CwOoftGV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-aZmkNzAe.js → vue-ui-skeleton-DNuwx6_y.js} +419 -379
- package/dist/vue-ui-skeleton-DpfJbsNA.cjs +41 -0
- package/dist/{vue-ui-smiley-ChNvxygm.js → vue-ui-smiley-BnX27B0k.js} +2 -2
- package/dist/{vue-ui-smiley-B1TA19Hv.cjs → vue-ui-smiley-DGE9NFBY.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CQxELQcf.js → vue-ui-spark-trend-CgCLrMox.js} +86 -79
- package/dist/vue-ui-spark-trend-aW-de-rX.cjs +1 -0
- package/dist/vue-ui-sparkbar-BLUXUlTY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-0ixbKZzf.js → vue-ui-sparkbar-BXku33sq.js} +90 -83
- package/dist/{vue-ui-sparkgauge-pdYb7OwH.js → vue-ui-sparkgauge-Doi0iu0L.js} +57 -50
- package/dist/vue-ui-sparkgauge-RTiKvSMp.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-N69h2q0U.js → vue-ui-sparkhistogram-BnMvXlAP.js} +74 -67
- package/dist/vue-ui-sparkhistogram-C6AgJH1C.cjs +1 -0
- package/dist/{vue-ui-sparkline-2BKYZMOb.js → vue-ui-sparkline-DI7fq_MR.js} +134 -125
- package/dist/vue-ui-sparkline-DpVCQ6W9.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-Bvuq2sLW.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-sh03cuOU.js → vue-ui-sparkstackbar-oNnE5z1C.js} +84 -77
- package/dist/{vue-ui-stackbar-B1si-1RM.js → vue-ui-stackbar-6g7b3yyu.js} +205 -196
- package/dist/{vue-ui-stackbar-Dy_saeSe.cjs → vue-ui-stackbar-aWJDGIKV.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-BYn-QrTQ.js → vue-ui-strip-plot-BFM8HIM8.js} +265 -248
- package/dist/vue-ui-strip-plot-GdjjVxMN.cjs +1 -0
- package/dist/{vue-ui-table-DQORPCDJ.js → vue-ui-table-Cw4Yz-IE.js} +1 -1
- package/dist/{vue-ui-table-Ce4waJaj.cjs → vue-ui-table-XOPmDCOB.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-Bh48bMuU.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-Csp7Tx8N.js → vue-ui-table-heatmap-DeRCR8l6.js} +55 -48
- package/dist/vue-ui-table-sparkline-C25qj1w_.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DdwVrfUj.js → vue-ui-table-sparkline-w3H-od91.js} +88 -81
- package/dist/{vue-ui-thermometer-I6ZnlfAv.js → vue-ui-thermometer-BySEVhT8.js} +162 -149
- package/dist/vue-ui-thermometer-DZrusaGY.cjs +1 -0
- package/dist/{vue-ui-timer-COOXcn14.cjs → vue-ui-timer-1p6J6hTn.cjs} +1 -1
- package/dist/{vue-ui-timer-pi1SazTU.js → vue-ui-timer-BN-9a2lj.js} +6 -6
- package/dist/vue-ui-tiremarks-CvIJeWKE.cjs +1 -0
- package/dist/vue-ui-tiremarks-EzYdOMyf.js +317 -0
- package/dist/vue-ui-treemap-CzNOr1iR.cjs +1 -0
- package/dist/{vue-ui-treemap-3FNUlKxL.js → vue-ui-treemap-Da0f6vaF.js} +283 -266
- package/dist/vue-ui-vertical-bar-B9shdfqo.cjs +4 -0
- package/dist/vue-ui-vertical-bar-D1cBfu5p.js +869 -0
- package/dist/vue-ui-waffle-Cg-7Fazv.cjs +1 -0
- package/dist/{vue-ui-waffle-XecHJIc-.js → vue-ui-waffle-DM2LsEP7.js} +258 -241
- package/dist/vue-ui-wheel-B9cmixxi.js +299 -0
- package/dist/vue-ui-wheel-C-JukdTy.cjs +1 -0
- package/dist/vue-ui-word-cloud-BLMWYOPy.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DnhXUn5x.js → vue-ui-word-cloud-Baz7RXN2.js} +192 -183
- package/dist/vue-ui-xy-BHeSkJQ3.cjs +3 -0
- package/dist/{vue-ui-xy-CqlRuFMc.js → vue-ui-xy-DVnzVSqE.js} +339 -319
- package/dist/{vue-ui-xy-canvas-C8c2X5fk.js → vue-ui-xy-canvas-A7PKnWBs.js} +255 -246
- package/dist/vue-ui-xy-canvas-DAd-B98z.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-FfZRtJ6A.cjs +0 -9
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +0 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +0 -23
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +0 -2
- package/dist/vue-ui-carousel-table-DpRQklDZ.cjs +0 -1
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +0 -6
- package/dist/vue-ui-donut-CplNylps.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +0 -1
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +0 -9
- package/dist/vue-ui-flow-BPt35d5K.cjs +0 -1
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +0 -1
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +0 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +0 -1
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +0 -1
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +0 -17
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +0 -8
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +0 -1
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +0 -15
- package/dist/vue-ui-radar-CAaHjDO7.cjs +0 -1
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +0 -1
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +0 -349
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +0 -2
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +0 -1
- package/dist/vue-ui-skeleton-Djv08J67.cjs +0 -41
- package/dist/vue-ui-spark-trend-BqrPr63O.cjs +0 -1
- package/dist/vue-ui-sparkbar-CrTEPTU5.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BYxpe_WV.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D21XDUH2.cjs +0 -1
- package/dist/vue-ui-sparkline-Cf4m-Fxo.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-dAS8XoJs.cjs +0 -1
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-EqHt-O7Y.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DONmVOMh.cjs +0 -1
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +0 -1
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +0 -1
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +0 -303
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DwxpB46q.js +0 -852
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +0 -1
- package/dist/vue-ui-wheel-Bbih5sSL.js +0 -282
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +0 -1
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +0 -1
- package/dist/vue-ui-xy-BDpqVzAq.cjs +0 -3
- package/dist/vue-ui-xy-canvas-Cansjd3L.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-DCsPHn9C.js";
|
|
3
|
+
import { u as F } from "./useNestedProp-DdSlLeTW.js";
|
|
4
|
+
import { _ as ie } from "./Shape-DYNtRer6.js";
|
|
5
|
+
import ne from "./vue-ui-skeleton-DNuwx6_y.js";
|
|
6
|
+
import { _ as ve } from "./PackageVersion-Clrfvyd8.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-CcykRspI.cjs"),_=require("./useNestedProp-XtPlFP9O.cjs"),F=require("./Shape-qK3MNdTg.cjs"),M=require("./vue-ui-skeleton-DpfJbsNA.cjs"),O=require("./PackageVersion-CowXQ4IM.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;
|