vue-data-ui 2.4.57 → 2.4.59
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 +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as Nt, c as tt, t as It, a as Ot, p as ce, C as ve, b as Pt, o as At, e as at, g as Vt, d as Rt, a7 as he, a3 as lt, D as rt, X as
|
|
3
|
-
import { u as nt } from "./useNestedProp-
|
|
1
|
+
import { computed as w, ref as y, onMounted as je, watch as et, nextTick as ne, openBlock as s, createElementBlock as i, normalizeClass as xe, normalizeStyle as B, unref as p, createBlock as J, createCommentVNode as h, renderSlot as k, createVNode as ue, createSlots as Mt, withCtx as C, normalizeProps as O, guardReactiveProps as P, Fragment as v, renderList as f, createElementVNode as U, toDisplayString as S, createTextVNode as Tt } from "vue";
|
|
2
|
+
import { u as Nt, c as tt, t as It, a as Ot, p as ce, C as ve, b as Pt, o as At, e as at, g as Vt, d as Rt, a7 as he, a3 as lt, D as rt, X as Et, l as Ft, G as ot, f as W, x as st, i as it, y as Dt, q as Ht, r as Bt } from "./index-B9RAElpI.js";
|
|
3
|
+
import { u as nt } from "./useNestedProp-DuruL3Nt.js";
|
|
4
4
|
import { t as Ut, u as Wt } from "./useResponsive-CoxXLe23.js";
|
|
5
|
-
import { u as Yt, U as Xt } from "./usePrinter-
|
|
6
|
-
import { S as Gt } from "./Slicer-
|
|
7
|
-
import { _ as Jt } from "./Tooltip-
|
|
8
|
-
import { _ as qt } from "./Title-
|
|
9
|
-
import { L as Zt } from "./Legend-
|
|
10
|
-
import Kt from "./vue-ui-accordion-
|
|
11
|
-
import { D as Qt } from "./DataTable-
|
|
12
|
-
import jt from "./vue-ui-skeleton-
|
|
13
|
-
import { _ as ea } from "./PackageVersion-
|
|
14
|
-
import { P as ta } from "./PenAndPaper-
|
|
5
|
+
import { u as Yt, U as Xt } from "./usePrinter-CwTAwqtF.js";
|
|
6
|
+
import { S as Gt } from "./Slicer-Duke9qno.js";
|
|
7
|
+
import { _ as Jt } from "./Tooltip-DDJ2Wvjy.js";
|
|
8
|
+
import { _ as qt } from "./Title-zZtEcB9F.js";
|
|
9
|
+
import { L as Zt } from "./Legend-f52bnttJ.js";
|
|
10
|
+
import Kt from "./vue-ui-accordion-rNA598L6.js";
|
|
11
|
+
import { D as Qt } from "./DataTable-CFUKU8PU.js";
|
|
12
|
+
import jt from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
13
|
+
import { _ as ea } from "./PackageVersion-C_FFs0BP.js";
|
|
14
|
+
import { P as ta } from "./PenAndPaper-Dx24BtRW.js";
|
|
15
15
|
import { u as aa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as la } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key:
|
|
17
|
+
const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], ia = { key: 1 }, na = ["id"], ua = ["stop-color"], ca = ["stop-color"], va = ["stop-color"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x1", "x2", "y1", "y2", "stroke"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = ["transform", "font-size", "fill", "font-weight"], wa = ["x", "y", "font-size", "fill", "font-weight"], za = { key: 0 }, Ca = ["x", "y", "font-size", "font-weight", "fill"], La = ["x", "y", "font-size", "fill", "font-weight"], _a = { key: 0 }, Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x", "y", "font-size", "font-weight", "fill"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ia = { key: 0 }, Oa = { key: 1 }, Pa = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Aa = { key: 0 }, Va = { key: 1 }, Ra = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ea = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Da = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, Ha = ["onClick"], Ba = ["innerHTML"], Ua = {
|
|
21
21
|
__name: "vue-ui-stackbar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -35,7 +35,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
37
|
setup(de, { expose: ut, emit: ye }) {
|
|
38
|
-
const g = de, { vue_ui_stackbar: ct } = Nt(), Y =
|
|
38
|
+
const g = de, { vue_ui_stackbar: ct } = Nt(), Y = w({
|
|
39
39
|
get() {
|
|
40
40
|
return !!g.dataset && g.dataset.length;
|
|
41
41
|
},
|
|
@@ -46,7 +46,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
46
46
|
je(() => {
|
|
47
47
|
me();
|
|
48
48
|
});
|
|
49
|
-
const e =
|
|
49
|
+
const e = w({
|
|
50
50
|
get: () => Te(),
|
|
51
51
|
set: (a) => a
|
|
52
52
|
}), { userOptionsVisible: fe, setUserOptionsVisibility: $e, keepUserOptionState: Me } = aa({ config: e.value });
|
|
@@ -87,7 +87,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
87
87
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
88
88
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
89
89
|
}
|
|
90
|
-
}), yt =
|
|
90
|
+
}), yt = w(() => Pt(e.value.customPalette)), Ae = y(null), Ve = y(null);
|
|
91
91
|
je(() => {
|
|
92
92
|
me();
|
|
93
93
|
});
|
|
@@ -125,10 +125,10 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
125
125
|
});
|
|
126
126
|
Ae.value = new ResizeObserver(a), Ae.value.observe(X.value.parentNode);
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
Ee();
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, r = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left,
|
|
130
|
+
const o = w(() => {
|
|
131
|
+
const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, r = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, E = l - z - l * t, F = a - r - e.value.style.chart.padding.bottom;
|
|
132
132
|
return {
|
|
133
133
|
chartHeight: a,
|
|
134
134
|
chartWidth: l,
|
|
@@ -136,10 +136,10 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
136
136
|
right: n,
|
|
137
137
|
bottom: u,
|
|
138
138
|
left: z,
|
|
139
|
-
width:
|
|
140
|
-
height:
|
|
139
|
+
width: E,
|
|
140
|
+
height: F < 0 ? 0 : F
|
|
141
141
|
};
|
|
142
|
-
}), A =
|
|
142
|
+
}), A = w(() => g.dataset.map((a, l) => {
|
|
143
143
|
const t = Rt(a.color) || yt.value[l] || ce[l] || ce[l % ce.length];
|
|
144
144
|
return {
|
|
145
145
|
...a,
|
|
@@ -151,14 +151,14 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
151
151
|
id: tt(),
|
|
152
152
|
color: t
|
|
153
153
|
};
|
|
154
|
-
})), V =
|
|
154
|
+
})), V = w(() => Math.max(...A.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
|
|
155
155
|
start: 0,
|
|
156
156
|
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
157
157
|
});
|
|
158
158
|
function Re() {
|
|
159
|
-
|
|
159
|
+
Ee();
|
|
160
160
|
}
|
|
161
|
-
async function
|
|
161
|
+
async function Ee() {
|
|
162
162
|
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(gt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
163
163
|
start: 0,
|
|
164
164
|
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
@@ -168,13 +168,13 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
168
168
|
const l = Math.max(...g.dataset.map((t) => t.series.length));
|
|
169
169
|
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
170
170
|
}
|
|
171
|
-
const d =
|
|
171
|
+
const d = w(() => {
|
|
172
172
|
let a;
|
|
173
|
-
return e.value.orientation === "vertical" ? a =
|
|
174
|
-
}), K =
|
|
173
|
+
return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
174
|
+
}), K = w(() => he(A.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), bt = w(() => he(A.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
175
175
|
...a,
|
|
176
176
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
177
|
-
}))).slice(c.value.start, c.value.end)), le =
|
|
177
|
+
}))).slice(c.value.start, c.value.end)), le = w(() => {
|
|
178
178
|
const a = A.value.filter((l) => !_.value.includes(l.id));
|
|
179
179
|
return {
|
|
180
180
|
positive: he(a.map((l) => ({
|
|
@@ -186,18 +186,18 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
186
186
|
series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
187
187
|
})))
|
|
188
188
|
};
|
|
189
|
-
}), N =
|
|
189
|
+
}), N = w(() => {
|
|
190
190
|
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...le.value.positive), l = Math.min(...le.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, r = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
191
191
|
return r.ticks.map((n) => ({
|
|
192
|
-
zero:
|
|
193
|
-
y:
|
|
194
|
-
x:
|
|
195
|
-
horizontal_zero:
|
|
196
|
-
horizontal_x:
|
|
197
|
-
horizontal_y:
|
|
192
|
+
zero: o.value.bottom - o.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
193
|
+
y: o.value.bottom - o.value.height * ((n + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
194
|
+
x: o.value.left - 8,
|
|
195
|
+
horizontal_zero: o.value.left + o.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
196
|
+
horizontal_x: o.value.left + o.value.width * ((n + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
197
|
+
horizontal_y: o.value.bottom - 8,
|
|
198
198
|
value: n
|
|
199
199
|
}));
|
|
200
|
-
}), R =
|
|
200
|
+
}), R = w(() => {
|
|
201
201
|
const a = [];
|
|
202
202
|
for (let l = 0; l < V.value; l += 1)
|
|
203
203
|
a.push({
|
|
@@ -205,12 +205,12 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
205
205
|
absoluteIndex: l
|
|
206
206
|
});
|
|
207
207
|
return a.slice(c.value.start, c.value.end);
|
|
208
|
-
}), x =
|
|
208
|
+
}), x = w(() => {
|
|
209
209
|
if (!Y.value) return [];
|
|
210
210
|
let a = Array(V.value).fill(0), l = Array(V.value).fill(0), t = Array(V.value).fill(0), r = Array(V.value).fill(0);
|
|
211
|
-
const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u,
|
|
211
|
+
const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, E = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: F, max: Q } = E, D = Q + (F >= 0 ? 0 : Math.abs(F)) || 1, $ = o.value.height, ie = o.value.width, Ke = N.value[0] ? N.value[0].zero : o.value.bottom, Qe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
|
|
212
212
|
return A.value.filter((j) => !_.value.includes(j.id)).map((j) => {
|
|
213
|
-
const I = j.series.slice(c.value.start, c.value.end), kt = j.signedSeries.slice(c.value.start, c.value.end), wt = I.map((b, m) =>
|
|
213
|
+
const I = j.series.slice(c.value.start, c.value.end), kt = j.signedSeries.slice(c.value.start, c.value.end), wt = I.map((b, m) => o.value.left + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), zt = I.map((b, m) => o.value.top + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), Ct = I.map((b, m) => {
|
|
214
214
|
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / D;
|
|
215
215
|
let H, T;
|
|
216
216
|
return b > 0 ? (T = $ * M, H = Ke - T - a[m], a[m] += T) : (T = $ * M, H = Ke + t[m], t[m] += Math.abs(T)), H;
|
|
@@ -238,7 +238,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
238
238
|
horizontal_x: Lt
|
|
239
239
|
};
|
|
240
240
|
});
|
|
241
|
-
}),
|
|
241
|
+
}), Fe = w(() => bt.value.map((a, l) => ({
|
|
242
242
|
value: a,
|
|
243
243
|
sign: a >= 0 ? 1 : -1
|
|
244
244
|
})));
|
|
@@ -304,8 +304,8 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
304
304
|
showValue: n,
|
|
305
305
|
showPercentage: u,
|
|
306
306
|
borderColor: z,
|
|
307
|
-
roundingValue:
|
|
308
|
-
roundingPercentage:
|
|
307
|
+
roundingValue: E,
|
|
308
|
+
roundingPercentage: F
|
|
309
309
|
} = e.value.style.chart.tooltip;
|
|
310
310
|
let Q = "";
|
|
311
311
|
R.value[a] && R.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${R.value[a].text}</div>`);
|
|
@@ -321,12 +321,12 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
321
321
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
322
322
|
v: $.value,
|
|
323
323
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
324
|
-
r:
|
|
324
|
+
r: E
|
|
325
325
|
}) : ""} ${D[0]}${u ? W({
|
|
326
326
|
v: isNaN($.value / r) ? 0 : Math.abs($.value) / r * 100,
|
|
327
327
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
328
328
|
s: "%",
|
|
329
|
-
r:
|
|
329
|
+
r: F
|
|
330
330
|
}) : ""}${D[1]}
|
|
331
331
|
</div>
|
|
332
332
|
`;
|
|
@@ -348,7 +348,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
348
348
|
function mt() {
|
|
349
349
|
return x.value;
|
|
350
350
|
}
|
|
351
|
-
const Xe =
|
|
351
|
+
const Xe = w(() => {
|
|
352
352
|
if (x.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
353
353
|
const a = x.value.map(({ name: t, color: r }) => ({
|
|
354
354
|
label: t,
|
|
@@ -366,11 +366,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
366
366
|
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...Xe.value.head.map((u) => u.label)], t = Xe.value.body, r = a.concat([l]).concat(t), n = Ht(r);
|
|
367
367
|
Bt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
368
368
|
}
|
|
369
|
-
const oe =
|
|
369
|
+
const oe = w(() => {
|
|
370
370
|
const a = [""].concat(x.value.map((n) => n.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
371
371
|
let l = [];
|
|
372
372
|
for (let n = 0; n < V.value; n += 1) {
|
|
373
|
-
const u = x.value.map((z) => z.series[n] ?? 0).reduce((z,
|
|
373
|
+
const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, E) => z + E, 0);
|
|
374
374
|
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[n] ?? n + 1].concat(x.value.map((z) => (z.series[n] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
375
375
|
}
|
|
376
376
|
const t = {
|
|
@@ -396,7 +396,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
396
396
|
_.value.push(l.id);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
const Je =
|
|
399
|
+
const Je = w(() => A.value.map((a, l) => ({
|
|
400
400
|
...a,
|
|
401
401
|
shape: "square"
|
|
402
402
|
})).map((a) => ({
|
|
@@ -404,7 +404,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
404
404
|
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
405
405
|
segregate: () => pt(a.absoluteIndex, a),
|
|
406
406
|
isSegregated: _.value.includes(a.id)
|
|
407
|
-
}))), xt =
|
|
407
|
+
}))), xt = w(() => ({
|
|
408
408
|
cy: "stackbar-legend",
|
|
409
409
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
410
410
|
color: e.value.style.chart.legend.color,
|
|
@@ -441,7 +441,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
441
441
|
toggleLabels: We,
|
|
442
442
|
toggleTooltip: Ye,
|
|
443
443
|
toggleAnnotator: pe
|
|
444
|
-
}), (a, l) => (
|
|
444
|
+
}), (a, l) => (s(), i("div", {
|
|
445
445
|
id: `stackbar_${ge.value}`,
|
|
446
446
|
ref_key: "stackbarChart",
|
|
447
447
|
ref: X,
|
|
@@ -450,7 +450,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
450
450
|
onMouseenter: l[6] || (l[6] = () => p($e)(!0)),
|
|
451
451
|
onMouseleave: l[7] || (l[7] = () => p($e)(!1))
|
|
452
452
|
}, [
|
|
453
|
-
e.value.userOptions.buttons.annotator ? (
|
|
453
|
+
e.value.userOptions.buttons.annotator ? (s(), J(ta, {
|
|
454
454
|
key: 0,
|
|
455
455
|
parent: X.value,
|
|
456
456
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -458,8 +458,8 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
458
458
|
active: se.value,
|
|
459
459
|
onClose: pe
|
|
460
460
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
461
|
-
|
|
462
|
-
e.value.style.chart.title.text ? (
|
|
461
|
+
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
462
|
+
e.value.style.chart.title.text ? (s(), i("div", {
|
|
463
463
|
key: 1,
|
|
464
464
|
ref_key: "chartTitle",
|
|
465
465
|
ref: ze,
|
|
@@ -478,7 +478,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
478
478
|
}
|
|
479
479
|
}, null, 8, ["config"])
|
|
480
480
|
], 512)) : h("", !0),
|
|
481
|
-
e.value.userOptions.show && Y.value && (p(Me) || p(fe)) ? (
|
|
481
|
+
e.value.userOptions.show && Y.value && (p(Me) || p(fe)) ? (s(), J(Xt, {
|
|
482
482
|
ref: "details",
|
|
483
483
|
key: `user_option_${we.value}`,
|
|
484
484
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -515,69 +515,81 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
515
515
|
a.$slots.optionTooltip ? {
|
|
516
516
|
name: "optionTooltip",
|
|
517
517
|
fn: C(() => [
|
|
518
|
-
|
|
518
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
519
519
|
]),
|
|
520
520
|
key: "0"
|
|
521
521
|
} : void 0,
|
|
522
522
|
a.$slots.optionPdf ? {
|
|
523
523
|
name: "optionPdf",
|
|
524
524
|
fn: C(() => [
|
|
525
|
-
|
|
525
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
526
526
|
]),
|
|
527
527
|
key: "1"
|
|
528
528
|
} : void 0,
|
|
529
529
|
a.$slots.optionCsv ? {
|
|
530
530
|
name: "optionCsv",
|
|
531
531
|
fn: C(() => [
|
|
532
|
-
|
|
532
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
533
533
|
]),
|
|
534
534
|
key: "2"
|
|
535
535
|
} : void 0,
|
|
536
536
|
a.$slots.optionImg ? {
|
|
537
537
|
name: "optionImg",
|
|
538
538
|
fn: C(() => [
|
|
539
|
-
|
|
539
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
540
540
|
]),
|
|
541
541
|
key: "3"
|
|
542
542
|
} : void 0,
|
|
543
543
|
a.$slots.optionTable ? {
|
|
544
544
|
name: "optionTable",
|
|
545
545
|
fn: C(() => [
|
|
546
|
-
|
|
546
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
547
547
|
]),
|
|
548
548
|
key: "4"
|
|
549
549
|
} : void 0,
|
|
550
550
|
a.$slots.optionLabels ? {
|
|
551
551
|
name: "optionLabels",
|
|
552
552
|
fn: C(() => [
|
|
553
|
-
|
|
553
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
554
554
|
]),
|
|
555
555
|
key: "5"
|
|
556
556
|
} : void 0,
|
|
557
557
|
a.$slots.optionFullscreen ? {
|
|
558
558
|
name: "optionFullscreen",
|
|
559
559
|
fn: C(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
560
|
-
|
|
560
|
+
k(a.$slots, "optionFullscreen", O(P({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
561
561
|
]),
|
|
562
562
|
key: "6"
|
|
563
563
|
} : void 0,
|
|
564
564
|
a.$slots.optionAnnotator ? {
|
|
565
565
|
name: "optionAnnotator",
|
|
566
566
|
fn: C(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
567
|
-
|
|
567
|
+
k(a.$slots, "optionAnnotator", O(P({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
568
568
|
]),
|
|
569
569
|
key: "7"
|
|
570
570
|
} : void 0
|
|
571
571
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
572
|
-
Y.value ? (
|
|
572
|
+
Y.value ? (s(), i("svg", {
|
|
573
573
|
key: 3,
|
|
574
|
-
xmlns: p(
|
|
575
|
-
viewBox: `0 0 ${
|
|
574
|
+
xmlns: p(Et),
|
|
575
|
+
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
576
576
|
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
577
577
|
}, [
|
|
578
578
|
ue(ea),
|
|
579
|
-
|
|
580
|
-
|
|
579
|
+
a.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
580
|
+
key: 0,
|
|
581
|
+
x: o.value.left,
|
|
582
|
+
y: o.value.top,
|
|
583
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
584
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
585
|
+
style: {
|
|
586
|
+
pointerEvents: "none"
|
|
587
|
+
}
|
|
588
|
+
}, [
|
|
589
|
+
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
590
|
+
], 8, sa)) : h("", !0),
|
|
591
|
+
e.value.style.chart.bars.gradient.show ? (s(), i("defs", ia, [
|
|
592
|
+
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("linearGradient", {
|
|
581
593
|
id: `gradient_${t.id}`,
|
|
582
594
|
x1: "0%",
|
|
583
595
|
y1: "0%",
|
|
@@ -587,55 +599,55 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
587
599
|
U("stop", {
|
|
588
600
|
offset: "0%",
|
|
589
601
|
"stop-color": t.color
|
|
590
|
-
}, null, 8,
|
|
602
|
+
}, null, 8, ua),
|
|
591
603
|
U("stop", {
|
|
592
604
|
offset: "61.8%",
|
|
593
|
-
"stop-color": p(
|
|
594
|
-
}, null, 8,
|
|
605
|
+
"stop-color": p(Ft)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
606
|
+
}, null, 8, ca),
|
|
595
607
|
U("stop", {
|
|
596
608
|
offset: "100%",
|
|
597
609
|
"stop-color": t.color
|
|
598
|
-
}, null, 8,
|
|
599
|
-
], 8,
|
|
610
|
+
}, null, 8, va)
|
|
611
|
+
], 8, na))), 256))
|
|
600
612
|
])) : h("", !0),
|
|
601
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (
|
|
602
|
-
x1:
|
|
603
|
-
x2:
|
|
613
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 2 }, f(N.value, (t, r) => (s(), i("line", {
|
|
614
|
+
x1: o.value.left,
|
|
615
|
+
x2: o.value.right,
|
|
604
616
|
y1: t.y,
|
|
605
617
|
y2: t.y,
|
|
606
618
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
607
619
|
"stroke-width": 1,
|
|
608
620
|
"stroke-linecap": "round"
|
|
609
|
-
}, null, 8,
|
|
610
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (
|
|
611
|
-
x1:
|
|
612
|
-
x2:
|
|
613
|
-
y1:
|
|
614
|
-
y2:
|
|
621
|
+
}, null, 8, ha))), 256)) : h("", !0),
|
|
622
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 3 }, f(c.value.end - c.value.start + 1, (t, r) => (s(), i("line", {
|
|
623
|
+
x1: o.value.left,
|
|
624
|
+
x2: o.value.right,
|
|
625
|
+
y1: o.value.top + d.value * r,
|
|
626
|
+
y2: o.value.top + d.value * r,
|
|
615
627
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
616
628
|
"stroke-width": 1,
|
|
617
629
|
"stroke-linecap": "round"
|
|
618
|
-
}, null, 8,
|
|
619
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (
|
|
620
|
-
x1:
|
|
621
|
-
x2:
|
|
622
|
-
y1:
|
|
623
|
-
y2:
|
|
630
|
+
}, null, 8, da))), 256)) : h("", !0),
|
|
631
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 4 }, f(c.value.end - c.value.start + 1, (t, r) => (s(), i("line", {
|
|
632
|
+
x1: o.value.left + d.value * r,
|
|
633
|
+
x2: o.value.left + d.value * r,
|
|
634
|
+
y1: o.value.top,
|
|
635
|
+
y2: o.value.bottom,
|
|
624
636
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
625
637
|
"stroke-width": 1,
|
|
626
638
|
"stroke-linecap": "round"
|
|
627
|
-
}, null, 8,
|
|
628
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (
|
|
639
|
+
}, null, 8, ya))), 256)) : h("", !0),
|
|
640
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 5 }, f(N.value, (t, r) => (s(), i("line", {
|
|
629
641
|
x1: t.horizontal_x,
|
|
630
642
|
x2: t.horizontal_x,
|
|
631
|
-
y1:
|
|
632
|
-
y2:
|
|
643
|
+
y1: o.value.top,
|
|
644
|
+
y2: o.value.bottom,
|
|
633
645
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
634
646
|
"stroke-width": 1,
|
|
635
647
|
"stroke-linecap": "round"
|
|
636
|
-
}, null, 8,
|
|
637
|
-
(
|
|
638
|
-
e.value.orientation === "vertical" ? (
|
|
648
|
+
}, null, 8, ga))), 256)) : h("", !0),
|
|
649
|
+
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
650
|
+
e.value.orientation === "vertical" ? (s(!0), i(v, { key: 0 }, f(t.x, (n, u) => (s(), i("rect", {
|
|
639
651
|
x: n,
|
|
640
652
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
641
653
|
height: t.height[u] < 0 ? 1e-4 : t.height[u],
|
|
@@ -647,7 +659,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
647
659
|
"stroke-linecap": "round",
|
|
648
660
|
"stroke-linejoin": "round",
|
|
649
661
|
class: xe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
650
|
-
}, null, 10,
|
|
662
|
+
}, null, 10, ba))), 256)) : (s(!0), i(v, { key: 1 }, f(t.horizontal_x, (n, u) => (s(), i("rect", {
|
|
651
663
|
x: n,
|
|
652
664
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
653
665
|
width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
|
|
@@ -659,51 +671,51 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
659
671
|
"stroke-linecap": "round",
|
|
660
672
|
"stroke-linejoin": "round",
|
|
661
673
|
class: xe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
662
|
-
}, null, 10,
|
|
674
|
+
}, null, 10, fa))), 256))
|
|
663
675
|
]))), 256)),
|
|
664
|
-
e.value.style.chart.grid.x.showAxis ? (
|
|
665
|
-
key:
|
|
666
|
-
x1:
|
|
667
|
-
x2:
|
|
668
|
-
y1:
|
|
669
|
-
y2:
|
|
676
|
+
e.value.style.chart.grid.x.showAxis ? (s(), i("line", {
|
|
677
|
+
key: 6,
|
|
678
|
+
x1: o.value.left,
|
|
679
|
+
x2: o.value.right,
|
|
680
|
+
y1: o.value.bottom,
|
|
681
|
+
y2: o.value.bottom,
|
|
670
682
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
671
683
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
672
684
|
"stroke-linecap": "round",
|
|
673
685
|
"stroke-linejoin": "round"
|
|
674
|
-
}, null, 8,
|
|
675
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (
|
|
676
|
-
key:
|
|
677
|
-
x1:
|
|
678
|
-
x2:
|
|
679
|
-
y1:
|
|
680
|
-
y2:
|
|
686
|
+
}, null, 8, ma)) : h("", !0),
|
|
687
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), i("line", {
|
|
688
|
+
key: 7,
|
|
689
|
+
x1: o.value.left,
|
|
690
|
+
x2: o.value.left,
|
|
691
|
+
y1: o.value.top,
|
|
692
|
+
y2: o.value.bottom,
|
|
681
693
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
682
694
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
683
695
|
"stroke-linecap": "round",
|
|
684
696
|
"stroke-linejoin": "round"
|
|
685
|
-
}, null, 8,
|
|
686
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (
|
|
687
|
-
key:
|
|
688
|
-
x:
|
|
689
|
-
y:
|
|
697
|
+
}, null, 8, pa)) : h("", !0),
|
|
698
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), i("text", {
|
|
699
|
+
key: 8,
|
|
700
|
+
x: o.value.left + o.value.width / 2,
|
|
701
|
+
y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
690
702
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
691
703
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
692
704
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
693
705
|
"text-anchor": "middle"
|
|
694
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9,
|
|
695
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (
|
|
696
|
-
key:
|
|
697
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${
|
|
706
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, xa)) : h("", !0),
|
|
707
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), i("text", {
|
|
708
|
+
key: 9,
|
|
709
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
698
710
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
699
711
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
700
712
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
701
713
|
"text-anchor": "middle"
|
|
702
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9,
|
|
703
|
-
L.value.dataLabels.show && e.value.orientation === "vertical" ? (
|
|
704
|
-
(
|
|
705
|
-
(
|
|
706
|
-
Ze(t.series[u], t.proportions[u]) ? (
|
|
714
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, ka)) : h("", !0),
|
|
715
|
+
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), i(v, { key: 10 }, [
|
|
716
|
+
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
717
|
+
(s(!0), i(v, null, f(t.x, (n, u) => (s(), i(v, null, [
|
|
718
|
+
Ze(t.series[u], t.proportions[u]) ? (s(), i("text", {
|
|
707
719
|
key: 0,
|
|
708
720
|
x: n + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
709
721
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -711,27 +723,27 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
711
723
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
712
724
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
713
725
|
"text-anchor": "middle"
|
|
714
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9,
|
|
726
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, wa)) : h("", !0)
|
|
715
727
|
], 64))), 256))
|
|
716
728
|
]))), 256)),
|
|
717
|
-
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (
|
|
718
|
-
(
|
|
719
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
729
|
+
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", za, [
|
|
730
|
+
(s(!0), i(v, null, f(Fe.value, (t, r) => (s(), i(v, null, [
|
|
731
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
|
|
720
732
|
key: 0,
|
|
721
|
-
x:
|
|
722
|
-
y:
|
|
733
|
+
x: o.value.left + d.value * r + d.value / 2,
|
|
734
|
+
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
723
735
|
"text-anchor": "middle",
|
|
724
736
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
725
737
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
726
738
|
fill: e.value.style.chart.bars.totalValues.color
|
|
727
|
-
}, S(re(t.value, t, r, t.sign)), 9,
|
|
739
|
+
}, S(re(t.value, t, r, t.sign)), 9, Ca)) : h("", !0)
|
|
728
740
|
], 64))), 256))
|
|
729
741
|
])) : h("", !0)
|
|
730
742
|
], 64)) : h("", !0),
|
|
731
|
-
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (
|
|
732
|
-
(
|
|
733
|
-
(
|
|
734
|
-
Ze(t.series[u], t.proportions[u]) ? (
|
|
743
|
+
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), i(v, { key: 11 }, [
|
|
744
|
+
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
745
|
+
(s(!0), i(v, null, f(t.horizontal_x, (n, u) => (s(), i(v, null, [
|
|
746
|
+
Ze(t.series[u], t.proportions[u]) ? (s(), i("text", {
|
|
735
747
|
key: 0,
|
|
736
748
|
x: n + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
737
749
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
@@ -739,33 +751,33 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
739
751
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
740
752
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
741
753
|
"text-anchor": "middle"
|
|
742
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9,
|
|
754
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? De(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, La)) : h("", !0)
|
|
743
755
|
], 64))), 256))
|
|
744
756
|
]))), 256)),
|
|
745
|
-
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (
|
|
746
|
-
(
|
|
747
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (
|
|
757
|
+
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", _a, [
|
|
758
|
+
(s(!0), i(v, null, f(Fe.value, (t, r) => (s(), i(v, null, [
|
|
759
|
+
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
|
|
748
760
|
key: 0,
|
|
749
|
-
x:
|
|
750
|
-
y:
|
|
761
|
+
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
762
|
+
y: o.value.top + d.value * r + d.value / 2,
|
|
751
763
|
"text-anchor": "start",
|
|
752
764
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
753
765
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
754
766
|
fill: e.value.style.chart.bars.totalValues.color
|
|
755
|
-
}, S(re(t.value, t, r, t.sign)), 9,
|
|
767
|
+
}, S(re(t.value, t, r, t.sign)), 9, Sa)) : h("", !0)
|
|
756
768
|
], 64))), 256))
|
|
757
769
|
])) : h("", !0)
|
|
758
770
|
], 64)) : h("", !0),
|
|
759
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (
|
|
760
|
-
(
|
|
761
|
-
x1:
|
|
762
|
-
x2:
|
|
771
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), i(v, { key: 12 }, [
|
|
772
|
+
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("line", {
|
|
773
|
+
x1: o.value.left,
|
|
774
|
+
x2: o.value.left - 6,
|
|
763
775
|
y1: t.y,
|
|
764
776
|
y2: t.y,
|
|
765
777
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
766
778
|
"stroke-width": 1
|
|
767
|
-
}, null, 8,
|
|
768
|
-
(
|
|
779
|
+
}, null, 8, $a))), 256)),
|
|
780
|
+
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("text", {
|
|
769
781
|
x: t.x,
|
|
770
782
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
771
783
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -777,66 +789,66 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
777
789
|
v: t.value,
|
|
778
790
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
779
791
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
780
|
-
})), 9,
|
|
792
|
+
})), 9, Ma))), 256))
|
|
781
793
|
], 64)) : h("", !0),
|
|
782
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (
|
|
783
|
-
(
|
|
794
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), i(v, { key: 13 }, [
|
|
795
|
+
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("line", {
|
|
784
796
|
x1: t.horizontal_x,
|
|
785
797
|
x2: t.horizontal_x,
|
|
786
|
-
y1:
|
|
787
|
-
y2:
|
|
798
|
+
y1: o.value.bottom,
|
|
799
|
+
y2: o.value.bottom + 6,
|
|
788
800
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
789
801
|
"stroke-width": 1,
|
|
790
802
|
"stroke-linecap": "round"
|
|
791
|
-
}, null, 8,
|
|
792
|
-
(
|
|
803
|
+
}, null, 8, Ta))), 256)),
|
|
804
|
+
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("text", {
|
|
793
805
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
794
806
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
795
807
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
796
808
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
797
|
-
transform: `translate(${t.horizontal_x}, ${
|
|
809
|
+
transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
798
810
|
}, S(p(W)({
|
|
799
811
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
800
812
|
v: t.value,
|
|
801
813
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
802
814
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
803
|
-
})), 9,
|
|
815
|
+
})), 9, Na))), 256))
|
|
804
816
|
], 64)) : h("", !0),
|
|
805
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (
|
|
806
|
-
a.$slots["time-label"] ? (
|
|
807
|
-
(
|
|
808
|
-
|
|
809
|
-
x:
|
|
810
|
-
y:
|
|
817
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), i(v, { key: 14 }, [
|
|
818
|
+
a.$slots["time-label"] ? (s(), i("g", Ia, [
|
|
819
|
+
(s(!0), i(v, null, f(R.value, (t, r) => (s(), i("g", null, [
|
|
820
|
+
k(a.$slots, "time-label", O(P({
|
|
821
|
+
x: o.value.left + d.value * r + d.value / 2,
|
|
822
|
+
y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
811
823
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
812
824
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
813
|
-
transform: `translate(${
|
|
825
|
+
transform: `translate(${o.value.left + d.value * r + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
814
826
|
absoluteIndex: t.absoluteIndex,
|
|
815
827
|
content: t.text,
|
|
816
828
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
817
829
|
show: !0
|
|
818
830
|
})), void 0, !0)
|
|
819
831
|
]))), 256))
|
|
820
|
-
])) : (
|
|
821
|
-
(
|
|
832
|
+
])) : (s(), i("g", Oa, [
|
|
833
|
+
(s(!0), i(v, null, f(R.value, (t, r) => (s(), i("text", {
|
|
822
834
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
823
835
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
824
836
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
825
837
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
826
|
-
transform: `translate(${
|
|
838
|
+
transform: `translate(${o.value.left + d.value * r + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
827
839
|
style: {
|
|
828
840
|
cursor: "pointer"
|
|
829
841
|
},
|
|
830
842
|
onClick: () => qe(t, r)
|
|
831
|
-
}, S(t.text), 9,
|
|
843
|
+
}, S(t.text), 9, Pa))), 256))
|
|
832
844
|
]))
|
|
833
845
|
], 64)) : h("", !0),
|
|
834
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (
|
|
835
|
-
a.$slots["time-label"] ? (
|
|
836
|
-
(
|
|
837
|
-
|
|
838
|
-
x:
|
|
839
|
-
y:
|
|
846
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), i(v, { key: 15 }, [
|
|
847
|
+
a.$slots["time-label"] ? (s(), i("g", Aa, [
|
|
848
|
+
(s(!0), i(v, null, f(R.value, (t, r) => (s(), i("g", null, [
|
|
849
|
+
k(a.$slots, "time-label", O(P({
|
|
850
|
+
x: o.value.left - 8,
|
|
851
|
+
y: o.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
840
852
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
841
853
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
842
854
|
transform: null,
|
|
@@ -846,26 +858,26 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
846
858
|
show: !0
|
|
847
859
|
})), void 0, !0)
|
|
848
860
|
]))), 256))
|
|
849
|
-
])) : (
|
|
850
|
-
(
|
|
861
|
+
])) : (s(), i("g", Va, [
|
|
862
|
+
(s(!0), i(v, null, f(R.value, (t, r) => (s(), i("text", {
|
|
851
863
|
"text-anchor": "end",
|
|
852
864
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
853
865
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
854
866
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
855
|
-
x:
|
|
856
|
-
y:
|
|
867
|
+
x: o.value.left - 8,
|
|
868
|
+
y: o.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
857
869
|
style: {
|
|
858
870
|
cursor: "pointer"
|
|
859
871
|
},
|
|
860
872
|
onClick: () => qe(t, r)
|
|
861
|
-
}, S(t.text), 9,
|
|
873
|
+
}, S(t.text), 9, Ra))), 256))
|
|
862
874
|
]))
|
|
863
875
|
], 64)) : h("", !0),
|
|
864
|
-
L.value.showTooltip && e.value.orientation === "vertical" ? (
|
|
865
|
-
x:
|
|
866
|
-
y:
|
|
876
|
+
L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 16 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
|
|
877
|
+
x: o.value.left + r * d.value,
|
|
878
|
+
y: o.value.top,
|
|
867
879
|
width: d.value,
|
|
868
|
-
height:
|
|
880
|
+
height: o.value.height < 0 ? 0 : o.value.height,
|
|
869
881
|
onClick: (n) => He(r),
|
|
870
882
|
onMouseenter: (n) => Be(r),
|
|
871
883
|
onMouseleave: l[0] || (l[0] = (n) => {
|
|
@@ -873,11 +885,11 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
873
885
|
}),
|
|
874
886
|
fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
875
887
|
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
876
|
-
}, null, 44,
|
|
877
|
-
L.value.showTooltip && e.value.orientation === "horizontal" ? (
|
|
878
|
-
x:
|
|
879
|
-
y:
|
|
880
|
-
width:
|
|
888
|
+
}, null, 44, Ea))), 256)) : h("", !0),
|
|
889
|
+
L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 17 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
|
|
890
|
+
x: o.value.left,
|
|
891
|
+
y: o.value.top + r * d.value,
|
|
892
|
+
width: o.value.width < 0 ? 0 : o.value.width,
|
|
881
893
|
height: d.value,
|
|
882
894
|
onClick: (n) => He(r),
|
|
883
895
|
onMouseenter: (n) => Be(r),
|
|
@@ -887,12 +899,12 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
887
899
|
fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
888
900
|
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
889
901
|
}, null, 44, Fa))), 256)) : h("", !0),
|
|
890
|
-
|
|
902
|
+
k(a.$slots, "svg", O(P({ ...o.value })), void 0, !0)
|
|
891
903
|
], 12, oa)) : h("", !0),
|
|
892
|
-
a.$slots.watermark ? (
|
|
893
|
-
|
|
904
|
+
a.$slots.watermark ? (s(), i("div", Da, [
|
|
905
|
+
k(a.$slots, "watermark", O(P({ isPrinting: p(Ne) || p(Ie) })), void 0, !0)
|
|
894
906
|
])) : h("", !0),
|
|
895
|
-
Y.value ? h("", !0) : (
|
|
907
|
+
Y.value ? h("", !0) : (s(), J(jt, {
|
|
896
908
|
key: 5,
|
|
897
909
|
config: {
|
|
898
910
|
type: "bar",
|
|
@@ -913,7 +925,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
913
925
|
style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
914
926
|
"data-html2canvas-ignore": ""
|
|
915
927
|
}, [
|
|
916
|
-
e.value.style.chart.zoom.show && V.value > 1 ? (
|
|
928
|
+
e.value.style.chart.zoom.show && V.value > 1 ? (s(), J(Gt, {
|
|
917
929
|
ref_key: "slicerComponent",
|
|
918
930
|
ref: G,
|
|
919
931
|
key: `slicer_${Se.value}`,
|
|
@@ -939,7 +951,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
939
951
|
onReset: Re
|
|
940
952
|
}, {
|
|
941
953
|
"reset-action": C(({ reset: t }) => [
|
|
942
|
-
|
|
954
|
+
k(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
|
|
943
955
|
]),
|
|
944
956
|
_: 3
|
|
945
957
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : h("", !0)
|
|
@@ -961,10 +973,10 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
961
973
|
isCustom: p(st)(e.value.style.chart.tooltip.customFormat)
|
|
962
974
|
}, {
|
|
963
975
|
"tooltip-before": C(() => [
|
|
964
|
-
|
|
976
|
+
k(a.$slots, "tooltip-before", O(P({ ...ke.value })), void 0, !0)
|
|
965
977
|
]),
|
|
966
978
|
"tooltip-after": C(() => [
|
|
967
|
-
|
|
979
|
+
k(a.$slots, "tooltip-after", O(P({ ...ke.value })), void 0, !0)
|
|
968
980
|
]),
|
|
969
981
|
_: 3
|
|
970
982
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -972,7 +984,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
972
984
|
ref_key: "chartLegend",
|
|
973
985
|
ref: Ce
|
|
974
986
|
}, [
|
|
975
|
-
e.value.style.chart.legend.show && Y.value ? (
|
|
987
|
+
e.value.style.chart.legend.show && Y.value ? (s(), J(Zt, {
|
|
976
988
|
key: 0,
|
|
977
989
|
legendSet: Je.value,
|
|
978
990
|
config: xt.value,
|
|
@@ -982,23 +994,23 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
982
994
|
U("div", {
|
|
983
995
|
onClick: (r) => t.segregate(),
|
|
984
996
|
style: B(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
985
|
-
}, S(t.name), 13,
|
|
997
|
+
}, S(t.name), 13, Ha)
|
|
986
998
|
]),
|
|
987
999
|
_: 1
|
|
988
|
-
}, 8, ["legendSet", "config"])) :
|
|
1000
|
+
}, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
989
1001
|
key: 1,
|
|
990
1002
|
legend: Je.value
|
|
991
1003
|
}, void 0, !0)
|
|
992
1004
|
], 512),
|
|
993
|
-
a.$slots.source ? (
|
|
1005
|
+
a.$slots.source ? (s(), i("div", {
|
|
994
1006
|
key: 6,
|
|
995
1007
|
ref_key: "source",
|
|
996
1008
|
ref: _e,
|
|
997
1009
|
dir: "auto"
|
|
998
1010
|
}, [
|
|
999
|
-
|
|
1011
|
+
k(a.$slots, "source", {}, void 0, !0)
|
|
1000
1012
|
], 512)) : h("", !0),
|
|
1001
|
-
c.value.end - c.value.start < 200 ? (
|
|
1013
|
+
c.value.end - c.value.start < 200 ? (s(), J(Kt, {
|
|
1002
1014
|
key: 7,
|
|
1003
1015
|
hideDetails: "",
|
|
1004
1016
|
config: {
|
|
@@ -1024,7 +1036,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
1024
1036
|
onClose: l[5] || (l[5] = (t) => L.value.showTable = !1)
|
|
1025
1037
|
}, {
|
|
1026
1038
|
th: C(({ th: t }) => [
|
|
1027
|
-
U("div", { innerHTML: t }, null, 8,
|
|
1039
|
+
U("div", { innerHTML: t }, null, 8, Ba)
|
|
1028
1040
|
]),
|
|
1029
1041
|
td: C(({ td: t }) => [
|
|
1030
1042
|
Tt(S(isNaN(Number(t)) ? t : p(W)({
|
|
@@ -1041,7 +1053,7 @@ const ra = ["id"], oa = ["xmlns", "viewBox"], sa = { key: 0 }, ia = ["id"], na =
|
|
|
1041
1053
|
}, 8, ["config"])) : h("", !0)
|
|
1042
1054
|
], 46, ra));
|
|
1043
1055
|
}
|
|
1044
|
-
},
|
|
1056
|
+
}, sl = /* @__PURE__ */ la(Ua, [["__scopeId", "data-v-4cb01f17"]]);
|
|
1045
1057
|
export {
|
|
1046
|
-
|
|
1058
|
+
sl as default
|
|
1047
1059
|
};
|