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,22 +1,22 @@
|
|
|
1
|
-
import { computed as p, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { L as
|
|
10
|
-
import
|
|
11
|
-
import { D as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { computed as p, ref as g, onMounted as Xe, watch as Ue, openBlock as s, createElementBlock as n, normalizeClass as ye, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as se, unref as z, createSlots as xt, withCtx as C, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as f, createElementVNode as H, toDisplayString as S, createTextVNode as kt } from "vue";
|
|
2
|
+
import { u as wt, c as Ye, t as Ct, a as _t, p as ie, M as Ge, b as zt, o as Lt, e as Je, g as St, d as $t, a4 as ne, a0 as qe, C as Ze, X as Mt, l as Tt, F as Ke, f as B, x as Qe, i as je, y as Nt, q as Ot, r as Pt } from "./index-DCsPHn9C.js";
|
|
3
|
+
import { u as et } from "./useNestedProp-DdSlLeTW.js";
|
|
4
|
+
import { t as At, u as Rt } from "./useResponsive-CoxXLe23.js";
|
|
5
|
+
import { u as It, U as Ft } from "./usePrinter-siG3sKWo.js";
|
|
6
|
+
import { S as Vt } from "./Slicer-DFPDip5U.js";
|
|
7
|
+
import { _ as Dt } from "./Tooltip-CPlG_yQU.js";
|
|
8
|
+
import { _ as Et } from "./Title-710895ks.js";
|
|
9
|
+
import { L as Ht } from "./Legend-CRMHjbGw.js";
|
|
10
|
+
import Bt from "./vue-ui-accordion-D4Er5Dy5.js";
|
|
11
|
+
import { D as Wt } from "./DataTable-BI1tjiA_.js";
|
|
12
|
+
import Xt from "./vue-ui-skeleton-DNuwx6_y.js";
|
|
13
|
+
import { _ as Ut } from "./PackageVersion-Clrfvyd8.js";
|
|
14
|
+
import { P as Yt } from "./PenAndPaper-BQzgk5kO.js";
|
|
15
|
+
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt = ["stop-color"], jt = ["stop-color"], ea = ["stop-color"], ta = ["x1", "x2", "y1", "y2", "stroke"], aa = ["x1", "x2", "y1", "y2", "stroke"], la = ["x1", "x2", "y1", "y2", "stroke"], oa = ["x1", "x2", "y1", "y2", "stroke"], ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x", "y", "font-size", "fill", "font-weight"], ca = ["transform", "font-size", "fill", "font-weight"], va = ["x", "y", "font-size", "fill", "font-weight"], ha = { key: 0 }, da = ["x", "y", "font-size", "font-weight", "fill"], ya = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 0 }, ba = ["x", "y", "font-size", "font-weight", "fill"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x", "y", "font-size", "font-weight", "fill"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ka = ["text-anchor", "font-size", "font-weight", "fill", "transform"], wa = ["font-size", "font-weight", "fill", "x", "y"], Ca = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], _a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], za = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, La = ["onClick"], Sa = ["innerHTML"], $a = {
|
|
20
20
|
__name: "vue-ui-stackbar",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,51 +33,51 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint", "selectLegend"],
|
|
36
|
-
setup(ge, { expose:
|
|
37
|
-
const x = ge, { vue_ui_stackbar:
|
|
36
|
+
setup(ge, { expose: tt, emit: be }) {
|
|
37
|
+
const x = ge, { vue_ui_stackbar: at } = wt(), W = p({
|
|
38
38
|
get() {
|
|
39
39
|
return !!x.dataset && x.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(a) {
|
|
42
42
|
return a;
|
|
43
43
|
}
|
|
44
|
-
}), X =
|
|
45
|
-
|
|
44
|
+
}), X = g(null), ue = g(Ye()), j = g(!1), fe = g(null), ce = g(""), L = g([]), me = g(0), pe = g(null), xe = g(null), ke = g(null), we = g(null), Ce = g(0), ve = g(!1), G = g(null), J = g(!1), lt = g(0), ot = g(0), rt = g(0);
|
|
45
|
+
Xe(() => {
|
|
46
46
|
he();
|
|
47
47
|
});
|
|
48
48
|
const e = p({
|
|
49
|
-
get: () =>
|
|
49
|
+
get: () => _e(),
|
|
50
50
|
set: (a) => a
|
|
51
51
|
});
|
|
52
|
-
function
|
|
53
|
-
const a =
|
|
52
|
+
function _e() {
|
|
53
|
+
const a = et({
|
|
54
54
|
userConfig: x.config,
|
|
55
|
-
defaultConfig:
|
|
55
|
+
defaultConfig: at
|
|
56
56
|
});
|
|
57
57
|
let o = {};
|
|
58
58
|
return a.theme ? o = {
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
59
|
+
...et({
|
|
60
|
+
userConfig: Ct.vue_ui_stackbar[a.theme] || x.config,
|
|
61
61
|
defaultConfig: a
|
|
62
62
|
}),
|
|
63
|
-
customPalette:
|
|
64
|
-
} : o = a, x.config &&
|
|
63
|
+
customPalette: _t[a.theme] || ie
|
|
64
|
+
} : o = a, x.config && Ge(x.config, "style.chart.grid.scale.scaleMin") ? o.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : o.style.chart.grid.scale.scaleMin = null, x.config && Ge(x.config, "style.chart.grid.scale.scaleMax") ? o.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : o.style.chart.grid.scale.scaleMax = null, o;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
e.value =
|
|
68
|
-
}, { deep: !0 }),
|
|
69
|
-
|
|
66
|
+
Ue(() => x.config, (a) => {
|
|
67
|
+
e.value = _e(), he(), lt.value += 1, ot.value += 1, rt.value += 1;
|
|
68
|
+
}, { deep: !0 }), Ue(() => x.dataset, (a) => {
|
|
69
|
+
Ne();
|
|
70
70
|
}, { deep: !0 });
|
|
71
|
-
const _ =
|
|
71
|
+
const _ = g({
|
|
72
72
|
dataLabels: {
|
|
73
73
|
show: e.value.style.chart.bars.dataLabels.show
|
|
74
74
|
},
|
|
75
75
|
showTable: e.value.table.show,
|
|
76
76
|
showTooltip: e.value.style.chart.tooltip.show
|
|
77
|
-
}), { isPrinting:
|
|
77
|
+
}), { isPrinting: ze, isImaging: Le, generatePdf: Se, generateImage: $e } = It({
|
|
78
78
|
elementId: `stackbar_${ue.value}`,
|
|
79
79
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
80
|
-
}), ee =
|
|
80
|
+
}), ee = g({
|
|
81
81
|
width: e.value.style.chart.width,
|
|
82
82
|
height: e.value.style.chart.height,
|
|
83
83
|
paddingRatio: {
|
|
@@ -86,20 +86,20 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
86
86
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
87
87
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
90
|
-
|
|
89
|
+
}), st = p(() => zt(e.value.customPalette)), Me = g(null), Te = g(null);
|
|
90
|
+
Xe(() => {
|
|
91
91
|
he();
|
|
92
92
|
});
|
|
93
93
|
function he() {
|
|
94
|
-
if (
|
|
94
|
+
if (Lt(x.dataset) ? Je({
|
|
95
95
|
componentName: "VueUiStackbar",
|
|
96
96
|
type: "dataset"
|
|
97
97
|
}) : x.dataset.forEach((a, o) => {
|
|
98
|
-
|
|
98
|
+
St({
|
|
99
99
|
datasetObject: a,
|
|
100
100
|
requiredAttributes: ["name", "series"]
|
|
101
101
|
}).forEach((t) => {
|
|
102
|
-
W.value = !1,
|
|
102
|
+
W.value = !1, Je({
|
|
103
103
|
componentName: "VueUiStackbar",
|
|
104
104
|
type: "datasetSerieAttribute",
|
|
105
105
|
property: t,
|
|
@@ -109,35 +109,36 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
109
109
|
}), setTimeout(() => {
|
|
110
110
|
J.value = !0;
|
|
111
111
|
}, 10), e.value.responsive) {
|
|
112
|
-
const a =
|
|
112
|
+
const a = At(() => {
|
|
113
113
|
J.value = !1;
|
|
114
|
-
const { width: o, height: t } =
|
|
114
|
+
const { width: o, height: t } = Rt({
|
|
115
115
|
chart: X.value,
|
|
116
116
|
title: e.value.style.chart.title.text ? pe.value : null,
|
|
117
117
|
legend: e.value.style.chart.legend.show ? xe.value : null,
|
|
118
|
-
slicer: e.value.style.chart.zoom.show && A.value > 1 ? ke.value : null
|
|
118
|
+
slicer: e.value.style.chart.zoom.show && A.value > 1 ? ke.value : null,
|
|
119
|
+
source: we.value
|
|
119
120
|
});
|
|
120
|
-
ee.value.width = o, ee.value.height = t, clearTimeout(
|
|
121
|
+
ee.value.width = o, ee.value.height = t, clearTimeout(Te.value), Te.value = setTimeout(() => {
|
|
121
122
|
J.value = !0;
|
|
122
123
|
}, 10);
|
|
123
124
|
});
|
|
124
|
-
|
|
125
|
+
Me.value = new ResizeObserver(a), Me.value.observe(X.value.parentNode);
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
const r = p(() => {
|
|
128
|
-
const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, u = a - e.value.style.chart.padding.bottom,
|
|
129
|
+
const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, R = o - w - o * t, I = a - l - e.value.style.chart.padding.bottom;
|
|
129
130
|
return {
|
|
130
131
|
chartHeight: a,
|
|
131
132
|
chartWidth: o,
|
|
132
133
|
top: l,
|
|
133
134
|
right: i,
|
|
134
135
|
bottom: u,
|
|
135
|
-
left:
|
|
136
|
+
left: w,
|
|
136
137
|
width: R,
|
|
137
138
|
height: I < 0 ? 0 : I
|
|
138
139
|
};
|
|
139
140
|
}), P = p(() => x.dataset.map((a, o) => {
|
|
140
|
-
const t =
|
|
141
|
+
const t = $t(a.color) || st.value[o] || ie[o] || ie[o % ie.length];
|
|
141
142
|
return {
|
|
142
143
|
...a,
|
|
143
144
|
// In distributed mode, all values are converted to positive
|
|
@@ -145,23 +146,23 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
145
146
|
// Store signs to manage display of neg values in distributed mode
|
|
146
147
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
147
148
|
absoluteIndex: o,
|
|
148
|
-
id:
|
|
149
|
+
id: Ye(),
|
|
149
150
|
color: t
|
|
150
151
|
};
|
|
151
|
-
})), A = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c =
|
|
152
|
+
})), A = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
|
|
152
153
|
start: 0,
|
|
153
154
|
end: Math.max(...x.dataset.map((a) => a.series.length))
|
|
154
155
|
});
|
|
155
|
-
function
|
|
156
|
+
function Ne() {
|
|
156
157
|
c.value = {
|
|
157
158
|
start: 0,
|
|
158
159
|
end: Math.max(...x.dataset.map((a) => a.series.length))
|
|
159
|
-
},
|
|
160
|
+
}, Ce.value += 1;
|
|
160
161
|
}
|
|
161
162
|
const d = p(() => {
|
|
162
163
|
let a;
|
|
163
164
|
return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
164
|
-
}), q = p(() => ne(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)),
|
|
165
|
+
}), q = p(() => ne(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), it = p(() => ne(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
165
166
|
...a,
|
|
166
167
|
series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
|
|
167
168
|
}))).slice(c.value.start, c.value.end)), te = p(() => {
|
|
@@ -177,7 +178,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
177
178
|
})))
|
|
178
179
|
};
|
|
179
180
|
}), N = p(() => {
|
|
180
|
-
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(...te.value.positive), o = Math.min(...te.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(o) ? 0 : o, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
181
|
+
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(...te.value.positive), o = Math.min(...te.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(o) ? 0 : o, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ze(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
181
182
|
return l.ticks.map((i) => ({
|
|
182
183
|
zero: r.value.bottom - r.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
183
184
|
y: r.value.bottom - r.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -190,43 +191,43 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
190
191
|
}), Z = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
|
|
191
192
|
if (!W.value) return [];
|
|
192
193
|
let a = Array(A.value).fill(0), o = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
|
|
193
|
-
const i = Math.max(...te.value.positive) || 0, u = Math.min(...te.value.negative),
|
|
194
|
+
const i = Math.max(...te.value.positive) || 0, u = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, R = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Ze(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: I, max: K } = R, F = K + (I >= 0 ? 0 : Math.abs(I)) || 1, $ = r.value.height, re = r.value.width, Be = N.value[0] ? N.value[0].zero : r.value.bottom, We = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
|
|
194
195
|
return P.value.filter((Q) => !L.value.includes(Q.id)).map((Q) => {
|
|
195
|
-
const O = Q.series.slice(c.value.start, c.value.end),
|
|
196
|
-
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[
|
|
196
|
+
const O = Q.series.slice(c.value.start, c.value.end), ht = Q.signedSeries.slice(c.value.start, c.value.end), dt = O.map((y, b) => r.value.left + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), yt = O.map((y, b) => r.value.top + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), gt = O.map((y, b) => {
|
|
197
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
|
|
197
198
|
let V, T;
|
|
198
|
-
return y > 0 ? (T = $ * M, V =
|
|
199
|
-
}),
|
|
200
|
-
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[
|
|
199
|
+
return y > 0 ? (T = $ * M, V = Be - T - a[b], a[b] += T) : (T = $ * M, V = Be + t[b], t[b] += Math.abs(T)), V;
|
|
200
|
+
}), bt = O.map((y, b) => {
|
|
201
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
|
|
201
202
|
let V, T;
|
|
202
|
-
return y > 0 ? (T = re * M, V =
|
|
203
|
-
}),
|
|
204
|
-
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[
|
|
203
|
+
return y > 0 ? (T = re * M, V = We + o[b], o[b] += T) : (T = re * M, V = We - Math.abs(T) - l[b], l[b] += Math.abs(T)), V;
|
|
204
|
+
}), ft = O.map((y, b) => {
|
|
205
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
|
|
205
206
|
return y > 0 ? $ * M : $ * Math.abs(M);
|
|
206
|
-
}),
|
|
207
|
-
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[
|
|
207
|
+
}), mt = O.map((y, b) => {
|
|
208
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
|
|
208
209
|
return y > 0 ? re * M : re * Math.abs(M);
|
|
209
|
-
}),
|
|
210
|
+
}), pt = O.map((y) => Math.abs(y)).reduce((y, b) => y + b, 0);
|
|
210
211
|
return {
|
|
211
212
|
...Q,
|
|
212
|
-
proportions: O.map((y,
|
|
213
|
+
proportions: O.map((y, b) => e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / pt),
|
|
213
214
|
series: O,
|
|
214
|
-
signedSeries:
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
217
|
-
height:
|
|
218
|
-
horizontal_width:
|
|
219
|
-
horizontal_y:
|
|
220
|
-
horizontal_x:
|
|
215
|
+
signedSeries: ht,
|
|
216
|
+
x: dt,
|
|
217
|
+
y: gt,
|
|
218
|
+
height: ft,
|
|
219
|
+
horizontal_width: mt,
|
|
220
|
+
horizontal_y: yt,
|
|
221
|
+
horizontal_x: bt
|
|
221
222
|
};
|
|
222
223
|
});
|
|
223
|
-
}),
|
|
224
|
+
}), Oe = p(() => it.value.map((a, o) => ({
|
|
224
225
|
value: a,
|
|
225
226
|
sign: a >= 0 ? 1 : -1
|
|
226
227
|
})));
|
|
227
228
|
function ae(a, o, t, l, i) {
|
|
228
229
|
const u = i === -1 && a >= 0 ? -a : a;
|
|
229
|
-
return
|
|
230
|
+
return je(
|
|
230
231
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
231
232
|
u,
|
|
232
233
|
B({
|
|
@@ -238,8 +239,8 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
238
239
|
{ datapoint: o, seriesIndex: t, datapointIndex: l }
|
|
239
240
|
);
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
-
return
|
|
242
|
+
function Pe(a, o, t, l) {
|
|
243
|
+
return je(
|
|
243
244
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
244
245
|
a,
|
|
245
246
|
B({
|
|
@@ -250,7 +251,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
250
251
|
{ datapoint: o, seriesIndex: t, datapointIndex: l }
|
|
251
252
|
);
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function Ae(a) {
|
|
254
255
|
const o = JSON.parse(JSON.stringify(m.value)).map((t) => ({
|
|
255
256
|
name: t.name,
|
|
256
257
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -260,7 +261,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
260
261
|
}));
|
|
261
262
|
be("selectDatapoint", { datapoint: o, period: Z.value[a] });
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
+
function Re(a) {
|
|
264
265
|
G.value = a, j.value = !0;
|
|
265
266
|
const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
|
|
266
267
|
name: i.name,
|
|
@@ -269,7 +270,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
269
270
|
color: i.color,
|
|
270
271
|
id: i.id
|
|
271
272
|
})), l = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
|
|
272
|
-
if (
|
|
273
|
+
if (Qe(o) && Nt(() => o({
|
|
273
274
|
seriesIndex: a,
|
|
274
275
|
datapoint: t,
|
|
275
276
|
series: m.value,
|
|
@@ -285,12 +286,12 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
285
286
|
const {
|
|
286
287
|
showValue: i,
|
|
287
288
|
showPercentage: u,
|
|
288
|
-
borderColor:
|
|
289
|
+
borderColor: w,
|
|
289
290
|
roundingValue: R,
|
|
290
291
|
roundingPercentage: I
|
|
291
292
|
} = e.value.style.chart.tooltip;
|
|
292
293
|
let K = "";
|
|
293
|
-
Z.value[a] && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
294
|
+
Z.value[a] && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${Z.value[a]}</div>`);
|
|
294
295
|
const F = [
|
|
295
296
|
i && u ? "(" : "",
|
|
296
297
|
i && u ? ")" : ""
|
|
@@ -315,22 +316,22 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
315
316
|
}), ce.value = `<div>${K}</div>`;
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function nt(a) {
|
|
319
320
|
ve.value = a, me.value += 1;
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
+
function Ie() {
|
|
322
323
|
_.value.showTable = !_.value.showTable;
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
+
function Fe() {
|
|
325
326
|
_.value.dataLabels.show = !_.value.dataLabels.show;
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
+
function Ve() {
|
|
328
329
|
_.value.showTooltip = !_.value.showTooltip;
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
+
function ut() {
|
|
331
332
|
return m.value;
|
|
332
333
|
}
|
|
333
|
-
const
|
|
334
|
+
const De = p(() => {
|
|
334
335
|
if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
335
336
|
const a = m.value.map(({ name: t, color: l }) => ({
|
|
336
337
|
label: t,
|
|
@@ -344,16 +345,16 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
344
345
|
}
|
|
345
346
|
return { head: a, body: o };
|
|
346
347
|
});
|
|
347
|
-
function
|
|
348
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...
|
|
349
|
-
|
|
348
|
+
function Ee() {
|
|
349
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...De.value.head.map((u) => u.label)], t = De.value.body, l = a.concat([o]).concat(t), i = Ot(l);
|
|
350
|
+
Pt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
350
351
|
}
|
|
351
352
|
const le = p(() => {
|
|
352
353
|
const a = [""].concat(m.value.map((i) => i.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>');
|
|
353
354
|
let o = [];
|
|
354
355
|
for (let i = 0; i < A.value; i += 1) {
|
|
355
|
-
const u = m.value.map((
|
|
356
|
-
o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((
|
|
356
|
+
const u = m.value.map((w) => w.series[i] ?? 0).reduce((w, R) => w + R, 0);
|
|
357
|
+
o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
357
358
|
}
|
|
358
359
|
const t = {
|
|
359
360
|
th: {
|
|
@@ -370,7 +371,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
370
371
|
}, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
|
|
371
372
|
return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
372
373
|
});
|
|
373
|
-
function
|
|
374
|
+
function ct(a, o) {
|
|
374
375
|
if (be("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(o.id))
|
|
375
376
|
L.value = L.value.filter((t) => t !== o.id);
|
|
376
377
|
else {
|
|
@@ -378,33 +379,33 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
378
379
|
L.value.push(o.id);
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
|
-
const
|
|
382
|
+
const He = p(() => P.value.map((a, o) => ({
|
|
382
383
|
...a,
|
|
383
384
|
shape: "square"
|
|
384
385
|
})).map((a) => ({
|
|
385
386
|
...a,
|
|
386
387
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
387
|
-
segregate: () =>
|
|
388
|
+
segregate: () => ct(a.absoluteIndex, a),
|
|
388
389
|
isSegregated: L.value.includes(a.id)
|
|
389
|
-
}))),
|
|
390
|
+
}))), vt = p(() => ({
|
|
390
391
|
cy: "stackbar-legend",
|
|
391
392
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
392
393
|
color: e.value.style.chart.legend.color,
|
|
393
394
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
394
395
|
paddingBottom: 12,
|
|
395
396
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
396
|
-
})), oe =
|
|
397
|
+
})), oe = g(!1);
|
|
397
398
|
function de() {
|
|
398
399
|
oe.value = !oe.value;
|
|
399
400
|
}
|
|
400
|
-
return
|
|
401
|
-
getData:
|
|
402
|
-
generatePdf:
|
|
403
|
-
generateCsv:
|
|
404
|
-
generateImage:
|
|
405
|
-
toggleTable:
|
|
406
|
-
toggleLabels:
|
|
407
|
-
toggleTooltip:
|
|
401
|
+
return tt({
|
|
402
|
+
getData: ut,
|
|
403
|
+
generatePdf: Se,
|
|
404
|
+
generateCsv: Ee,
|
|
405
|
+
generateImage: $e,
|
|
406
|
+
toggleTable: Ie,
|
|
407
|
+
toggleLabels: Fe,
|
|
408
|
+
toggleTooltip: Ve,
|
|
408
409
|
toggleAnnotator: de
|
|
409
410
|
}), (a, o) => (s(), n("div", {
|
|
410
411
|
id: `stackbar_${ue.value}`,
|
|
@@ -413,7 +414,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
413
414
|
class: ye({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ve.value }),
|
|
414
415
|
style: U(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
415
416
|
}, [
|
|
416
|
-
e.value.userOptions.buttons.annotator ? (s(), Y(
|
|
417
|
+
e.value.userOptions.buttons.annotator ? (s(), Y(Yt, {
|
|
417
418
|
key: 0,
|
|
418
419
|
parent: X.value,
|
|
419
420
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -421,14 +422,14 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
421
422
|
active: oe.value,
|
|
422
423
|
onClose: de
|
|
423
424
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
424
|
-
|
|
425
|
+
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
425
426
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
426
427
|
key: 1,
|
|
427
428
|
ref_key: "chartTitle",
|
|
428
429
|
ref: pe,
|
|
429
430
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
430
431
|
}, [
|
|
431
|
-
se(
|
|
432
|
+
se(Et, {
|
|
432
433
|
config: {
|
|
433
434
|
title: {
|
|
434
435
|
cy: "stackbar-title",
|
|
@@ -441,13 +442,13 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
441
442
|
}
|
|
442
443
|
}, null, 8, ["config"])
|
|
443
444
|
], 512)) : v("", !0),
|
|
444
|
-
e.value.userOptions.show && W.value ? (s(), Y(
|
|
445
|
+
e.value.userOptions.show && W.value ? (s(), Y(Ft, {
|
|
445
446
|
ref: "details",
|
|
446
447
|
key: `user_option_${me.value}`,
|
|
447
448
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
448
449
|
color: e.value.style.chart.color,
|
|
449
|
-
isPrinting: z(
|
|
450
|
-
isImaging: z(
|
|
450
|
+
isPrinting: z(ze),
|
|
451
|
+
isImaging: z(Le),
|
|
451
452
|
uid: ue.value,
|
|
452
453
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
453
454
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -463,80 +464,80 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
463
464
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
464
465
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
465
466
|
isAnnotation: oe.value,
|
|
466
|
-
onToggleFullscreen:
|
|
467
|
-
onGeneratePdf: z(
|
|
468
|
-
onGenerateCsv:
|
|
469
|
-
onGenerateImage: z(
|
|
470
|
-
onToggleTable:
|
|
471
|
-
onToggleLabels:
|
|
472
|
-
onToggleTooltip:
|
|
467
|
+
onToggleFullscreen: nt,
|
|
468
|
+
onGeneratePdf: z(Se),
|
|
469
|
+
onGenerateCsv: Ee,
|
|
470
|
+
onGenerateImage: z($e),
|
|
471
|
+
onToggleTable: Ie,
|
|
472
|
+
onToggleLabels: Fe,
|
|
473
|
+
onToggleTooltip: Ve,
|
|
473
474
|
onToggleAnnotator: de
|
|
474
|
-
},
|
|
475
|
+
}, xt({ _: 2 }, [
|
|
475
476
|
a.$slots.optionTooltip ? {
|
|
476
477
|
name: "optionTooltip",
|
|
477
478
|
fn: C(() => [
|
|
478
|
-
|
|
479
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
479
480
|
]),
|
|
480
481
|
key: "0"
|
|
481
482
|
} : void 0,
|
|
482
483
|
a.$slots.optionPdf ? {
|
|
483
484
|
name: "optionPdf",
|
|
484
485
|
fn: C(() => [
|
|
485
|
-
|
|
486
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
486
487
|
]),
|
|
487
488
|
key: "1"
|
|
488
489
|
} : void 0,
|
|
489
490
|
a.$slots.optionCsv ? {
|
|
490
491
|
name: "optionCsv",
|
|
491
492
|
fn: C(() => [
|
|
492
|
-
|
|
493
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
493
494
|
]),
|
|
494
495
|
key: "2"
|
|
495
496
|
} : void 0,
|
|
496
497
|
a.$slots.optionImg ? {
|
|
497
498
|
name: "optionImg",
|
|
498
499
|
fn: C(() => [
|
|
499
|
-
|
|
500
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
500
501
|
]),
|
|
501
502
|
key: "3"
|
|
502
503
|
} : void 0,
|
|
503
504
|
a.$slots.optionTable ? {
|
|
504
505
|
name: "optionTable",
|
|
505
506
|
fn: C(() => [
|
|
506
|
-
|
|
507
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
507
508
|
]),
|
|
508
509
|
key: "4"
|
|
509
510
|
} : void 0,
|
|
510
511
|
a.$slots.optionLabels ? {
|
|
511
512
|
name: "optionLabels",
|
|
512
513
|
fn: C(() => [
|
|
513
|
-
|
|
514
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
514
515
|
]),
|
|
515
516
|
key: "5"
|
|
516
517
|
} : void 0,
|
|
517
518
|
a.$slots.optionFullscreen ? {
|
|
518
519
|
name: "optionFullscreen",
|
|
519
520
|
fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
520
|
-
|
|
521
|
+
k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
521
522
|
]),
|
|
522
523
|
key: "6"
|
|
523
524
|
} : void 0,
|
|
524
525
|
a.$slots.optionAnnotator ? {
|
|
525
526
|
name: "optionAnnotator",
|
|
526
527
|
fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
527
|
-
|
|
528
|
+
k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
528
529
|
]),
|
|
529
530
|
key: "7"
|
|
530
531
|
} : void 0
|
|
531
532
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
532
533
|
W.value ? (s(), n("svg", {
|
|
533
534
|
key: 3,
|
|
534
|
-
xmlns: z(
|
|
535
|
+
xmlns: z(Mt),
|
|
535
536
|
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
536
537
|
style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
537
538
|
}, [
|
|
538
|
-
se(
|
|
539
|
-
e.value.style.chart.bars.gradient.show ? (s(), n("defs",
|
|
539
|
+
se(Ut),
|
|
540
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", Zt, [
|
|
540
541
|
(s(!0), n(h, null, f(m.value, (t, l) => (s(), n("linearGradient", {
|
|
541
542
|
id: `gradient_${t.id}`,
|
|
542
543
|
x1: "0%",
|
|
@@ -547,16 +548,16 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
547
548
|
H("stop", {
|
|
548
549
|
offset: "0%",
|
|
549
550
|
"stop-color": t.color
|
|
550
|
-
}, null, 8,
|
|
551
|
+
}, null, 8, Qt),
|
|
551
552
|
H("stop", {
|
|
552
553
|
offset: "61.8%",
|
|
553
|
-
"stop-color": z(
|
|
554
|
-
}, null, 8,
|
|
554
|
+
"stop-color": z(Tt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
555
|
+
}, null, 8, jt),
|
|
555
556
|
H("stop", {
|
|
556
557
|
offset: "100%",
|
|
557
558
|
"stop-color": t.color
|
|
558
|
-
}, null, 8,
|
|
559
|
-
], 8,
|
|
559
|
+
}, null, 8, ea)
|
|
560
|
+
], 8, Kt))), 256))
|
|
560
561
|
])) : v("", !0),
|
|
561
562
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, f(N.value, (t, l) => (s(), n("line", {
|
|
562
563
|
x1: r.value.left,
|
|
@@ -566,7 +567,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
566
567
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
567
568
|
"stroke-width": 1,
|
|
568
569
|
"stroke-linecap": "round"
|
|
569
|
-
}, null, 8,
|
|
570
|
+
}, null, 8, ta))), 256)) : v("", !0),
|
|
570
571
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
|
|
571
572
|
x1: r.value.left,
|
|
572
573
|
x2: r.value.right,
|
|
@@ -575,7 +576,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
575
576
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
576
577
|
"stroke-width": 1,
|
|
577
578
|
"stroke-linecap": "round"
|
|
578
|
-
}, null, 8,
|
|
579
|
+
}, null, 8, aa))), 256)) : v("", !0),
|
|
579
580
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
|
|
580
581
|
x1: r.value.left + d.value * l,
|
|
581
582
|
x2: r.value.left + d.value * l,
|
|
@@ -584,7 +585,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
584
585
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
585
586
|
"stroke-width": 1,
|
|
586
587
|
"stroke-linecap": "round"
|
|
587
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, la))), 256)) : v("", !0),
|
|
588
589
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, f(N.value, (t, l) => (s(), n("line", {
|
|
589
590
|
x1: t.horizontal_x,
|
|
590
591
|
x2: t.horizontal_x,
|
|
@@ -593,7 +594,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
593
594
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
594
595
|
"stroke-width": 1,
|
|
595
596
|
"stroke-linecap": "round"
|
|
596
|
-
}, null, 8,
|
|
597
|
+
}, null, 8, oa))), 256)) : v("", !0),
|
|
597
598
|
(s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
|
|
598
599
|
e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, f(t.x, (i, u) => (s(), n("rect", {
|
|
599
600
|
x: i,
|
|
@@ -607,7 +608,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
607
608
|
"stroke-linecap": "round",
|
|
608
609
|
"stroke-linejoin": "round",
|
|
609
610
|
class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
|
|
610
|
-
}, null, 10,
|
|
611
|
+
}, null, 10, ra))), 256)) : (s(!0), n(h, { key: 1 }, f(t.horizontal_x, (i, u) => (s(), n("rect", {
|
|
611
612
|
x: i,
|
|
612
613
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
613
614
|
width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
|
|
@@ -619,7 +620,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
619
620
|
"stroke-linecap": "round",
|
|
620
621
|
"stroke-linejoin": "round",
|
|
621
622
|
class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
|
|
622
|
-
}, null, 10,
|
|
623
|
+
}, null, 10, sa))), 256))
|
|
623
624
|
]))), 256)),
|
|
624
625
|
e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
|
|
625
626
|
key: 5,
|
|
@@ -631,7 +632,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
631
632
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
632
633
|
"stroke-linecap": "round",
|
|
633
634
|
"stroke-linejoin": "round"
|
|
634
|
-
}, null, 8,
|
|
635
|
+
}, null, 8, ia)) : v("", !0),
|
|
635
636
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
636
637
|
key: 6,
|
|
637
638
|
x1: r.value.left,
|
|
@@ -642,7 +643,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
642
643
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
643
644
|
"stroke-linecap": "round",
|
|
644
645
|
"stroke-linejoin": "round"
|
|
645
|
-
}, null, 8,
|
|
646
|
+
}, null, 8, na)) : v("", !0),
|
|
646
647
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
647
648
|
key: 7,
|
|
648
649
|
x: r.value.left + r.value.width / 2,
|
|
@@ -651,7 +652,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
651
652
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
652
653
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
653
654
|
"text-anchor": "middle"
|
|
654
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9,
|
|
655
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, ua)) : v("", !0),
|
|
655
656
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
656
657
|
key: 8,
|
|
657
658
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
@@ -659,27 +660,27 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
659
660
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
660
661
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
661
662
|
"text-anchor": "middle"
|
|
662
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9,
|
|
663
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, ca)) : v("", !0),
|
|
663
664
|
_.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
|
|
664
665
|
(s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
|
|
665
666
|
(s(!0), n(h, null, f(t.x, (i, u) => (s(), n("text", {
|
|
666
667
|
x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
667
668
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
668
669
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
669
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(
|
|
670
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
670
671
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
671
672
|
"text-anchor": "middle"
|
|
672
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
673
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, va))), 256))
|
|
673
674
|
]))), 256)),
|
|
674
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g",
|
|
675
|
-
(s(!0), n(h, null, f(
|
|
675
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ha, [
|
|
676
|
+
(s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
|
|
676
677
|
x: r.value.left + d.value * l + d.value / 2,
|
|
677
678
|
y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
678
679
|
"text-anchor": "middle",
|
|
679
680
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
680
681
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
681
682
|
fill: e.value.style.chart.bars.totalValues.color
|
|
682
|
-
}, S(ae(t.value, t, l, t.sign)), 9,
|
|
683
|
+
}, S(ae(t.value, t, l, t.sign)), 9, da))), 256))
|
|
683
684
|
])) : v("", !0)
|
|
684
685
|
], 64)) : v("", !0),
|
|
685
686
|
_.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
|
|
@@ -688,20 +689,20 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
688
689
|
x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
689
690
|
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
690
691
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
691
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(
|
|
692
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
692
693
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
693
694
|
"text-anchor": "middle"
|
|
694
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
695
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, ya))), 256))
|
|
695
696
|
]))), 256)),
|
|
696
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g",
|
|
697
|
-
(s(!0), n(h, null, f(
|
|
697
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ga, [
|
|
698
|
+
(s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
|
|
698
699
|
x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
699
700
|
y: r.value.top + d.value * l + d.value / 2,
|
|
700
701
|
"text-anchor": "start",
|
|
701
702
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
702
703
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
703
704
|
fill: e.value.style.chart.bars.totalValues.color
|
|
704
|
-
}, S(ae(t.value, t, l, t.sign)), 9,
|
|
705
|
+
}, S(ae(t.value, t, l, t.sign)), 9, ba))), 256))
|
|
705
706
|
])) : v("", !0)
|
|
706
707
|
], 64)) : v("", !0),
|
|
707
708
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
|
|
@@ -712,7 +713,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
712
713
|
y2: t.y,
|
|
713
714
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
714
715
|
"stroke-width": 1
|
|
715
|
-
}, null, 8,
|
|
716
|
+
}, null, 8, fa))), 256)),
|
|
716
717
|
(s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
|
|
717
718
|
x: t.x,
|
|
718
719
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -725,7 +726,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
725
726
|
v: t.value,
|
|
726
727
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
727
728
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
728
|
-
})), 9,
|
|
729
|
+
})), 9, ma))), 256))
|
|
729
730
|
], 64)) : v("", !0),
|
|
730
731
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
|
|
731
732
|
(s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
|
|
@@ -736,7 +737,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
736
737
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
737
738
|
"stroke-width": 1,
|
|
738
739
|
"stroke-linecap": "round"
|
|
739
|
-
}, null, 8,
|
|
740
|
+
}, null, 8, pa))), 256)),
|
|
740
741
|
(s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
|
|
741
742
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
742
743
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -748,7 +749,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
748
749
|
v: t.value,
|
|
749
750
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
750
751
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
751
|
-
})), 9,
|
|
752
|
+
})), 9, xa))), 256))
|
|
752
753
|
], 64)) : v("", !0),
|
|
753
754
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, f(Z.value, (t, l) => (s(), n("text", {
|
|
754
755
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -756,7 +757,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
756
757
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
757
758
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
758
759
|
transform: `translate(${r.value.left + d.value * l + d.value / 2}, ${r.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})`
|
|
759
|
-
}, S(t), 9,
|
|
760
|
+
}, S(t), 9, ka))), 256)) : v("", !0),
|
|
760
761
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, f(Z.value, (t, l) => (s(), n("text", {
|
|
761
762
|
"text-anchor": "end",
|
|
762
763
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -764,39 +765,39 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
764
765
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
765
766
|
x: r.value.left - 8,
|
|
766
767
|
y: r.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
|
|
767
|
-
}, S(t), 9,
|
|
768
|
+
}, S(t), 9, wa))), 256)) : v("", !0),
|
|
768
769
|
_.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
|
|
769
770
|
x: r.value.left + l * d.value,
|
|
770
771
|
y: r.value.top,
|
|
771
772
|
width: d.value,
|
|
772
773
|
height: r.value.height < 0 ? 0 : r.value.height,
|
|
773
|
-
onClick: (i) =>
|
|
774
|
-
onMouseenter: (i) =>
|
|
774
|
+
onClick: (i) => Ae(l),
|
|
775
|
+
onMouseenter: (i) => Re(l),
|
|
775
776
|
onMouseleave: o[0] || (o[0] = (i) => {
|
|
776
777
|
G.value = null, j.value = !1;
|
|
777
778
|
}),
|
|
778
779
|
fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
779
780
|
style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
780
|
-
}, null, 44,
|
|
781
|
+
}, null, 44, Ca))), 256)) : v("", !0),
|
|
781
782
|
_.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
|
|
782
783
|
x: r.value.left,
|
|
783
784
|
y: r.value.top + l * d.value,
|
|
784
785
|
width: r.value.width < 0 ? 0 : r.value.width,
|
|
785
786
|
height: d.value,
|
|
786
|
-
onClick: (i) =>
|
|
787
|
-
onMouseenter: (i) =>
|
|
787
|
+
onClick: (i) => Ae(l),
|
|
788
|
+
onMouseenter: (i) => Re(l),
|
|
788
789
|
onMouseleave: o[1] || (o[1] = (i) => {
|
|
789
790
|
G.value = null, j.value = !1;
|
|
790
791
|
}),
|
|
791
792
|
fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
792
793
|
style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
793
|
-
}, null, 44,
|
|
794
|
-
|
|
795
|
-
], 12,
|
|
796
|
-
a.$slots.watermark ? (s(), n("div",
|
|
797
|
-
|
|
794
|
+
}, null, 44, _a))), 256)) : v("", !0),
|
|
795
|
+
k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
|
|
796
|
+
], 12, qt)) : v("", !0),
|
|
797
|
+
a.$slots.watermark ? (s(), n("div", za, [
|
|
798
|
+
k(a.$slots, "watermark", D(E({ isPrinting: z(ze) || z(Le) })), void 0, !0)
|
|
798
799
|
])) : v("", !0),
|
|
799
|
-
W.value ? v("", !0) : (s(), Y(
|
|
800
|
+
W.value ? v("", !0) : (s(), Y(Xt, {
|
|
800
801
|
key: 5,
|
|
801
802
|
config: {
|
|
802
803
|
type: "bar",
|
|
@@ -817,8 +818,8 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
817
818
|
style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
818
819
|
"data-html2canvas-ignore": ""
|
|
819
820
|
}, [
|
|
820
|
-
e.value.style.chart.zoom.show && A.value > 1 ? (s(), Y(
|
|
821
|
-
key: `slicer_${
|
|
821
|
+
e.value.style.chart.zoom.show && A.value > 1 ? (s(), Y(Vt, {
|
|
822
|
+
key: `slicer_${Ce.value}`,
|
|
822
823
|
background: e.value.style.chart.zoom.color,
|
|
823
824
|
borderColor: e.value.style.chart.backgroundColor,
|
|
824
825
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -836,15 +837,15 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
836
837
|
"onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
|
|
837
838
|
end: c.value.end,
|
|
838
839
|
"onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
|
|
839
|
-
onReset:
|
|
840
|
+
onReset: Ne
|
|
840
841
|
}, {
|
|
841
842
|
"reset-action": C(({ reset: t }) => [
|
|
842
|
-
|
|
843
|
+
k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
|
|
843
844
|
]),
|
|
844
845
|
_: 3
|
|
845
846
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
|
|
846
847
|
], 4),
|
|
847
|
-
se(
|
|
848
|
+
se(Dt, {
|
|
848
849
|
show: _.value.showTooltip && j.value,
|
|
849
850
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
850
851
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -857,13 +858,13 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
857
858
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
858
859
|
parent: X.value,
|
|
859
860
|
content: ce.value,
|
|
860
|
-
isCustom: z(
|
|
861
|
+
isCustom: z(Qe)(e.value.style.chart.tooltip.customFormat)
|
|
861
862
|
}, {
|
|
862
863
|
"tooltip-before": C(() => [
|
|
863
|
-
|
|
864
|
+
k(a.$slots, "tooltip-before", D(E({ ...fe.value })), void 0, !0)
|
|
864
865
|
]),
|
|
865
866
|
"tooltip-after": C(() => [
|
|
866
|
-
|
|
867
|
+
k(a.$slots, "tooltip-after", D(E({ ...fe.value })), void 0, !0)
|
|
867
868
|
]),
|
|
868
869
|
_: 3
|
|
869
870
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -871,26 +872,34 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
871
872
|
ref_key: "chartLegend",
|
|
872
873
|
ref: xe
|
|
873
874
|
}, [
|
|
874
|
-
e.value.style.chart.legend.show && W.value ? (s(), Y(
|
|
875
|
+
e.value.style.chart.legend.show && W.value ? (s(), Y(Ht, {
|
|
875
876
|
key: 0,
|
|
876
|
-
legendSet:
|
|
877
|
-
config:
|
|
877
|
+
legendSet: He.value,
|
|
878
|
+
config: vt.value,
|
|
878
879
|
onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
|
|
879
880
|
}, {
|
|
880
881
|
item: C(({ legend: t }) => [
|
|
881
882
|
H("div", {
|
|
882
883
|
onClick: (l) => t.segregate(),
|
|
883
884
|
style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
884
|
-
}, S(t.name), 13,
|
|
885
|
+
}, S(t.name), 13, La)
|
|
885
886
|
]),
|
|
886
887
|
_: 1
|
|
887
|
-
}, 8, ["legendSet", "config"])) :
|
|
888
|
+
}, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
888
889
|
key: 1,
|
|
889
|
-
legend:
|
|
890
|
+
legend: He.value
|
|
890
891
|
}, void 0, !0)
|
|
891
892
|
], 512),
|
|
892
|
-
|
|
893
|
+
a.$slots.source ? (s(), n("div", {
|
|
893
894
|
key: 6,
|
|
895
|
+
ref_key: "source",
|
|
896
|
+
ref: we,
|
|
897
|
+
dir: "auto"
|
|
898
|
+
}, [
|
|
899
|
+
k(a.$slots, "source", {}, void 0, !0)
|
|
900
|
+
], 512)) : v("", !0),
|
|
901
|
+
c.value.end - c.value.start < 200 ? (s(), Y(Bt, {
|
|
902
|
+
key: 7,
|
|
894
903
|
hideDetails: "",
|
|
895
904
|
config: {
|
|
896
905
|
open: _.value.showTable,
|
|
@@ -906,7 +915,7 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
906
915
|
}
|
|
907
916
|
}, {
|
|
908
917
|
content: C(() => [
|
|
909
|
-
se(
|
|
918
|
+
se(Wt, {
|
|
910
919
|
colNames: le.value.colNames,
|
|
911
920
|
head: le.value.head,
|
|
912
921
|
body: le.value.body,
|
|
@@ -915,10 +924,10 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
915
924
|
onClose: o[5] || (o[5] = (t) => _.value.showTable = !1)
|
|
916
925
|
}, {
|
|
917
926
|
th: C(({ th: t }) => [
|
|
918
|
-
H("div", { innerHTML: t }, null, 8,
|
|
927
|
+
H("div", { innerHTML: t }, null, 8, Sa)
|
|
919
928
|
]),
|
|
920
929
|
td: C(({ td: t }) => [
|
|
921
|
-
|
|
930
|
+
kt(S(isNaN(Number(t)) ? t : z(B)({
|
|
922
931
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
923
932
|
v: t,
|
|
924
933
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -930,9 +939,9 @@ const Gt = ["id"], Jt = ["xmlns", "viewBox"], qt = { key: 0 }, Zt = ["id"], Kt =
|
|
|
930
939
|
]),
|
|
931
940
|
_: 1
|
|
932
941
|
}, 8, ["config"])) : v("", !0)
|
|
933
|
-
], 14,
|
|
942
|
+
], 14, Jt));
|
|
934
943
|
}
|
|
935
|
-
},
|
|
944
|
+
}, Xa = /* @__PURE__ */ Gt($a, [["__scopeId", "data-v-d80dd138"]]);
|
|
936
945
|
export {
|
|
937
|
-
|
|
946
|
+
Xa as default
|
|
938
947
|
};
|