vue-data-ui 2.4.50 → 2.4.51
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 +12 -0
- package/dist/{Arrow-DuuEh1Nr.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-D1z9KkQN.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-DemqZ_13.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-BHwqOTt4.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CQ8fQnex.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-CovKV5Yy.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-Br7MWNDo.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-Bbz-hKDf.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-BEtuCME5.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-BV3fHO46.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BIcmfBvD.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-CCOywdmm.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-B7Mekpyf.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BD37ZaX9.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-CWvkt-8k.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-ahFReg7h.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-C2siG5N2.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-CIsKiWgN.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-CS4C58T7.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-B1LgrF9R.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-BtL_cLa8.js → index-BbPeL8Gp.js} +5 -1
- package/dist/index-DhDYBLBe.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -1
- package/dist/types/vue-data-ui.d.ts +5 -1
- package/dist/{useNestedProp-CEAfm1tu.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-D_feh7A_.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-B4xDG31F.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-sRt2SKr2.js → usePrinter-DaybDVqP.js} +1 -1
- package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
- package/dist/useUserOptionState-BgepsfED.cjs +1 -0
- package/dist/{vue-data-ui-CuEYAddV.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-NkhaiK6y.js → vue-data-ui-Ckbp-yIf.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-DUgumRsg.cjs +19 -0
- package/dist/{vue-ui-3d-bar-BeXYzdzu.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-Cjc683tN.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CBxsUoGb.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rnt8M-Qz.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-CFU5Zyfk.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-Yu-mHS2N.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-CRbW1ON6.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-D-ERLtI1.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-I1m4HMWf.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
- package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
- package/dist/{vue-ui-chestnut-CqJRKECX.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-S83QIsxQ.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-jrrdh8Lf.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-DW1mIInG.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DR_Bhwa3.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-1jZdiwHJ.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-s5f9eFtW.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DsHTZ9T2.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-BAYiPsxp.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DcMmBxLy.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BTXEmIQG.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BB_h0FKg.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-DlBk1FUz.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
- package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
- package/dist/{vue-ui-gauge-1SFhSMfU.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-C8rLR4n5.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CtX6KFN2.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-BzyvTePn.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-BEoHuZ3N.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-LO4KKRR9.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-BYOyJjYg.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-ChHdx5me.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-wlUD77O6.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bo7XYpf-.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DXj4Ce6l.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BBLpNVwF.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-DC8VIInA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
- package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-Cl1wiHsK.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
- package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
- package/dist/{vue-ui-quadrant-b5cuEH9z.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CFBPYw2J.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DP8360kx.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-D7b-kfyp.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-DIthBSp_.js → vue-ui-rating-DQRuqev5.js} +2 -2
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
- package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
- package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
- package/dist/{vue-ui-rings-y9Zx-DaI.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-Cbu5GDc1.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-oH-YnZBE.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BZh_sgjP.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-DjFU2X3P.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-Nuju6X7l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-DtQVEc4B.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-DdnzzEYS.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-B36zW41F.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CaIGk_53.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-iQKGtxo8.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DixeozKp.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C01VB6KP.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DEvgucF7.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C_6lHF3O.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CTUuxOma.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DrZWPGOG.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Btm4HVgi.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-7pcfCNMr.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D0UGUm-1.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-BPMDmY04.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BfWQMGXy.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-Cdo265Yt.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8GaLhM9.js → vue-ui-table-CsEajH9S.js} +1 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
- package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DMHf03C9.js → vue-ui-table-sparkline-YV8DUOqh.js} +173 -167
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCVqil7E.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-gxiLCP1n.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-DF5HkeeS.js → vue-ui-timer-DvE_nqd9.js} +5 -5
- package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
- package/dist/{vue-ui-treemap-CIZaPmbi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-dQoTddqU.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-CnvWOEVU.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
- package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
- package/dist/{vue-ui-word-cloud-o3zU6r0-.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-GR4PGBDy.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BKGOnjut.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
- package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-DoD-GxZR.cjs +0 -9
- package/dist/vue-ui-3d-bar-RduHvzwG.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DVtbyRJw.cjs +0 -1
- package/dist/vue-ui-bullet-Be5aYhtp.cjs +0 -34
- package/dist/vue-ui-candlestick-B6wSs-JC.cjs +0 -2
- package/dist/vue-ui-carousel-table-7reErH8M.cjs +0 -1
- package/dist/vue-ui-chestnut-D-WzX16q.cjs +0 -6
- package/dist/vue-ui-donut-Ce1SaXNu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DI8yeIa4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CFJkwtM8.cjs +0 -9
- package/dist/vue-ui-flow-B4MtorhO.cjs +0 -1
- package/dist/vue-ui-funnel-DNL12vLQ.cjs +0 -1
- package/dist/vue-ui-galaxy-CmCZGOKz.cjs +0 -1
- package/dist/vue-ui-gauge-B7ieQMud.cjs +0 -1
- package/dist/vue-ui-heatmap-Bfi3KJwS.cjs +0 -1
- package/dist/vue-ui-history-plot-5kZ54hgy.cjs +0 -1
- package/dist/vue-ui-molecule-D-4cRS5w.cjs +0 -1
- package/dist/vue-ui-mood-radar-C3x_LH7Q.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DrL7-SUd.cjs +0 -17
- package/dist/vue-ui-onion-8Vz3lPbn.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-D6q4WQ0B.cjs +0 -8
- package/dist/vue-ui-quadrant-DBZS5jFQ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Cno_1mzu.cjs +0 -15
- package/dist/vue-ui-radar-ChcBO21S.cjs +0 -1
- package/dist/vue-ui-relation-circle-C5pO0iHY.cjs +0 -1
- package/dist/vue-ui-relation-circle-D2iwmChn.js +0 -492
- package/dist/vue-ui-rings-C_NLJYs8.cjs +0 -2
- package/dist/vue-ui-scatter-BNeMGDNk.cjs +0 -1
- package/dist/vue-ui-stackbar-BwRdmPvB.cjs +0 -6
- package/dist/vue-ui-strip-plot-CLN9LikJ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-C4DRSfsE.js +0 -256
- package/dist/vue-ui-table-heatmap-CDAf1IIk.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Cw7NOiYx.cjs +0 -1
- package/dist/vue-ui-thermometer-7BORZJjd.cjs +0 -1
- package/dist/vue-ui-tiremarks-CwGnFx4f.cjs +0 -1
- package/dist/vue-ui-tiremarks-lidhcJsi.js +0 -317
- package/dist/vue-ui-treemap-BZ_LmiBK.cjs +0 -1
- package/dist/vue-ui-vertical-bar-venrkqjM.cjs +0 -4
- package/dist/vue-ui-waffle-oR54BbIg.cjs +0 -1
- package/dist/vue-ui-wheel-BUHZEzPr.cjs +0 -1
- package/dist/vue-ui-wheel-D3itrMku.js +0 -299
- package/dist/vue-ui-word-cloud-87gwksmM.cjs +0 -1
- package/dist/vue-ui-xy-D56pm4L0.cjs +0 -3
- package/dist/vue-ui-xy-canvas-uikeVe72.cjs +0 -9
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { computed 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 {
|
|
16
|
-
|
|
1
|
+
import { computed as k, ref as y, onMounted as Qe, watch as je, nextTick as ne, openBlock as r, createElementBlock as i, normalizeClass as pe, normalizeStyle as B, unref as p, createBlock as J, createCommentVNode as d, renderSlot as w, createVNode as ue, createSlots as $t, withCtx as C, normalizeProps as O, guardReactiveProps as P, Fragment as h, renderList as f, createElementVNode as U, toDisplayString as S, createTextVNode as Mt } from "vue";
|
|
2
|
+
import { u as Tt, c as et, t as Nt, a as It, p as ce, C as ve, b as Ot, o as Pt, e as tt, g as At, d as Rt, a7 as he, a3 as at, D as lt, X as Vt, l as Ft, G as ot, f as W, x as rt, i as st, y as Dt, q as Et, r as Ht } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { u as it } from "./useNestedProp-BN8claGG.js";
|
|
4
|
+
import { t as Bt, u as Ut } from "./useResponsive-CoxXLe23.js";
|
|
5
|
+
import { u as Wt, U as Yt } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { S as Xt } from "./Slicer-Cxdl3cDt.js";
|
|
7
|
+
import { _ as Gt } from "./Tooltip-smutPF--.js";
|
|
8
|
+
import { _ as Jt } from "./Title-aSAft5dl.js";
|
|
9
|
+
import { L as qt } from "./Legend-BLaZxMge.js";
|
|
10
|
+
import Zt from "./vue-ui-accordion-5d5iVpr7.js";
|
|
11
|
+
import { D as Kt } from "./DataTable-DGf6RrOJ.js";
|
|
12
|
+
import Qt from "./vue-ui-skeleton-Bniq21d9.js";
|
|
13
|
+
import { _ as jt } from "./PackageVersion-CxJghxYD.js";
|
|
14
|
+
import { P as ea } from "./PenAndPaper-ZdZEumki.js";
|
|
15
|
+
import { u as ta } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
+
import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const la = ["id"], oa = ["xmlns", "viewBox"], ra = { key: 0 }, sa = ["id"], ia = ["stop-color"], na = ["stop-color"], ua = ["stop-color"], ca = ["x1", "x2", "y1", "y2", "stroke"], va = ["x1", "x2", "y1", "y2", "stroke"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ga = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ma = ["x", "y", "font-size", "fill", "font-weight"], pa = ["transform", "font-size", "fill", "font-weight"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = { key: 0 }, wa = ["x", "y", "font-size", "font-weight", "fill"], za = ["x", "y", "font-size", "fill", "font-weight"], Ca = { key: 0 }, La = ["x", "y", "font-size", "font-weight", "fill"], _a = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ta = { key: 0 }, Na = { key: 1 }, Ia = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Oa = { key: 0 }, Pa = { key: 1 }, Aa = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ra = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Va = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = {
|
|
17
18
|
key: 4,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, Da = ["onClick"], Ea = ["innerHTML"], Ha = {
|
|
20
21
|
__name: "vue-ui-stackbar",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -33,48 +34,48 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
36
|
-
setup(de, { expose:
|
|
37
|
-
const g = de, { vue_ui_stackbar:
|
|
37
|
+
setup(de, { expose: nt, emit: ye }) {
|
|
38
|
+
const g = de, { vue_ui_stackbar: ut } = Tt(), Y = k({
|
|
38
39
|
get() {
|
|
39
40
|
return !!g.dataset && g.dataset.length;
|
|
40
41
|
},
|
|
41
42
|
set(a) {
|
|
42
43
|
return a;
|
|
43
44
|
}
|
|
44
|
-
}), X = y(null), ge = y(
|
|
45
|
-
|
|
45
|
+
}), X = y(null), ge = y(et()), ee = y(!1), xe = y(null), be = y(""), _ = y([]), ke = y(0), we = y(null), ze = y(null), Ce = y(null), Le = y(null), _e = y(0), te = y(!1), q = y(null), Z = y(!1), ct = y(0), vt = y(0), ht = y(0), G = y(null);
|
|
46
|
+
Qe(() => {
|
|
46
47
|
fe();
|
|
47
48
|
});
|
|
48
|
-
const e =
|
|
49
|
-
get: () =>
|
|
49
|
+
const e = k({
|
|
50
|
+
get: () => Te(),
|
|
50
51
|
set: (a) => a
|
|
51
|
-
});
|
|
52
|
-
function
|
|
53
|
-
const a =
|
|
52
|
+
}), { userOptionsVisible: Se, setUserOptionsVisibility: $e, keepUserOptionState: Me } = ta({ config: e.value });
|
|
53
|
+
function Te() {
|
|
54
|
+
const a = it({
|
|
54
55
|
userConfig: g.config,
|
|
55
|
-
defaultConfig:
|
|
56
|
+
defaultConfig: ut
|
|
56
57
|
});
|
|
57
|
-
let
|
|
58
|
-
return a.theme ?
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
58
|
+
let l = {};
|
|
59
|
+
return a.theme ? l = {
|
|
60
|
+
...it({
|
|
61
|
+
userConfig: Nt.vue_ui_stackbar[a.theme] || g.config,
|
|
61
62
|
defaultConfig: a
|
|
62
63
|
}),
|
|
63
|
-
customPalette:
|
|
64
|
-
} :
|
|
64
|
+
customPalette: It[a.theme] || ce
|
|
65
|
+
} : l = a, g.config && ve(g.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = g.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, g.config && ve(g.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = g.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, g.config && ve(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ve(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
e.value =
|
|
68
|
-
}, { deep: !0 }),
|
|
69
|
-
|
|
67
|
+
je(() => g.config, (a) => {
|
|
68
|
+
e.value = Te(), fe(), ct.value += 1, vt.value += 1, ht.value += 1;
|
|
69
|
+
}, { deep: !0 }), je(() => g.dataset, (a) => {
|
|
70
|
+
Ve();
|
|
70
71
|
}, { deep: !0 });
|
|
71
|
-
const
|
|
72
|
+
const L = y({
|
|
72
73
|
dataLabels: {
|
|
73
74
|
show: e.value.style.chart.bars.dataLabels.show
|
|
74
75
|
},
|
|
75
76
|
showTable: e.value.table.show,
|
|
76
77
|
showTooltip: e.value.style.chart.tooltip.show
|
|
77
|
-
}), { isPrinting:
|
|
78
|
+
}), { isPrinting: Ne, isImaging: Ie, generatePdf: Oe, generateImage: Pe } = Wt({
|
|
78
79
|
elementId: `stackbar_${ge.value}`,
|
|
79
80
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
80
81
|
}), ae = y({
|
|
@@ -86,164 +87,164 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
86
87
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
87
88
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
88
89
|
}
|
|
89
|
-
}),
|
|
90
|
-
|
|
90
|
+
}), dt = k(() => Ot(e.value.customPalette)), Ae = y(null), Re = y(null);
|
|
91
|
+
Qe(() => {
|
|
91
92
|
fe();
|
|
92
93
|
});
|
|
93
94
|
function fe() {
|
|
94
|
-
if (
|
|
95
|
+
if (Pt(g.dataset) ? tt({
|
|
95
96
|
componentName: "VueUiStackbar",
|
|
96
97
|
type: "dataset"
|
|
97
|
-
}) : g.dataset.forEach((a,
|
|
98
|
-
|
|
98
|
+
}) : g.dataset.forEach((a, l) => {
|
|
99
|
+
At({
|
|
99
100
|
datasetObject: a,
|
|
100
101
|
requiredAttributes: ["name", "series"]
|
|
101
102
|
}).forEach((t) => {
|
|
102
|
-
Y.value = !1,
|
|
103
|
+
Y.value = !1, tt({
|
|
103
104
|
componentName: "VueUiStackbar",
|
|
104
105
|
type: "datasetSerieAttribute",
|
|
105
106
|
property: t,
|
|
106
|
-
index:
|
|
107
|
+
index: l
|
|
107
108
|
});
|
|
108
109
|
});
|
|
109
110
|
}), setTimeout(() => {
|
|
110
111
|
Z.value = !0;
|
|
111
112
|
}, 10), e.value.responsive) {
|
|
112
|
-
const a =
|
|
113
|
+
const a = Bt(() => {
|
|
113
114
|
Z.value = !1;
|
|
114
|
-
const { width:
|
|
115
|
+
const { width: l, height: t } = Ut({
|
|
115
116
|
chart: X.value,
|
|
116
117
|
title: e.value.style.chart.title.text ? we.value : null,
|
|
117
118
|
legend: e.value.style.chart.legend.show ? ze.value : null,
|
|
118
119
|
slicer: e.value.style.chart.zoom.show && R.value > 1 ? Ce.value : null,
|
|
119
|
-
source:
|
|
120
|
+
source: Le.value
|
|
120
121
|
});
|
|
121
|
-
ae.value.width =
|
|
122
|
+
ae.value.width = l, ae.value.height = t, clearTimeout(Re.value), Re.value = setTimeout(() => {
|
|
122
123
|
Z.value = !0;
|
|
123
124
|
}, 10);
|
|
124
125
|
});
|
|
125
|
-
|
|
126
|
+
Ae.value = new ResizeObserver(a), Ae.value.observe(X.value.parentNode);
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
+
Fe();
|
|
128
129
|
}
|
|
129
|
-
const s =
|
|
130
|
-
const { height: a, width:
|
|
130
|
+
const s = k(() => {
|
|
131
|
+
const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, o = 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, F = l - z - l * t, D = a - o - e.value.style.chart.padding.bottom;
|
|
131
132
|
return {
|
|
132
133
|
chartHeight: a,
|
|
133
|
-
chartWidth:
|
|
134
|
-
top:
|
|
134
|
+
chartWidth: l,
|
|
135
|
+
top: o,
|
|
135
136
|
right: n,
|
|
136
137
|
bottom: u,
|
|
137
|
-
left:
|
|
138
|
+
left: z,
|
|
138
139
|
width: F,
|
|
139
140
|
height: D < 0 ? 0 : D
|
|
140
141
|
};
|
|
141
|
-
}), A =
|
|
142
|
-
const t =
|
|
142
|
+
}), A = k(() => g.dataset.map((a, l) => {
|
|
143
|
+
const t = Rt(a.color) || dt.value[l] || ce[l] || ce[l % ce.length];
|
|
143
144
|
return {
|
|
144
145
|
...a,
|
|
145
146
|
// In distributed mode, all values are converted to positive
|
|
146
|
-
series: JSON.parse(JSON.stringify(a.series)).map((
|
|
147
|
+
series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
|
|
147
148
|
// Store signs to manage display of neg values in distributed mode
|
|
148
|
-
signedSeries: a.series.map((
|
|
149
|
-
absoluteIndex:
|
|
150
|
-
id:
|
|
149
|
+
signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
|
|
150
|
+
absoluteIndex: l,
|
|
151
|
+
id: et(),
|
|
151
152
|
color: t
|
|
152
153
|
};
|
|
153
|
-
})), R =
|
|
154
|
+
})), R = k(() => Math.max(...A.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
|
|
154
155
|
start: 0,
|
|
155
156
|
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
156
157
|
});
|
|
157
|
-
function
|
|
158
|
-
|
|
158
|
+
function Ve() {
|
|
159
|
+
Fe();
|
|
159
160
|
}
|
|
160
|
-
async function
|
|
161
|
-
(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(
|
|
161
|
+
async function Fe() {
|
|
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(yt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
162
163
|
start: 0,
|
|
163
164
|
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
164
|
-
},
|
|
165
|
+
}, _e.value += 1);
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
-
const
|
|
168
|
-
return a >
|
|
167
|
+
function yt(a) {
|
|
168
|
+
const l = Math.max(...g.dataset.map((t) => t.series.length));
|
|
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;
|
|
169
170
|
}
|
|
170
|
-
const v =
|
|
171
|
+
const v = k(() => {
|
|
171
172
|
let a;
|
|
172
173
|
return e.value.orientation === "vertical" ? a = s.value.width / (c.value.end - c.value.start) : a = s.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
173
|
-
}), K =
|
|
174
|
+
}), K = k(() => he(A.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), gt = k(() => he(A.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
174
175
|
...a,
|
|
175
|
-
series: a.series.map((
|
|
176
|
-
}))).slice(c.value.start, c.value.end)), le =
|
|
177
|
-
const a = A.value.filter((
|
|
176
|
+
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
177
|
+
}))).slice(c.value.start, c.value.end)), le = k(() => {
|
|
178
|
+
const a = A.value.filter((l) => !_.value.includes(l.id));
|
|
178
179
|
return {
|
|
179
|
-
positive: he(a.map((
|
|
180
|
-
...
|
|
181
|
-
series:
|
|
180
|
+
positive: he(a.map((l) => ({
|
|
181
|
+
...l,
|
|
182
|
+
series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
182
183
|
}))),
|
|
183
|
-
negative: he(a.map((
|
|
184
|
-
...
|
|
185
|
-
series:
|
|
184
|
+
negative: he(a.map((l) => ({
|
|
185
|
+
...l,
|
|
186
|
+
series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
186
187
|
})))
|
|
187
188
|
};
|
|
188
|
-
}), N =
|
|
189
|
-
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),
|
|
190
|
-
return
|
|
191
|
-
zero: s.value.bottom - s.value.height * (Math.abs(
|
|
192
|
-
y: s.value.bottom - s.value.height * ((n + Math.abs(
|
|
189
|
+
}), N = k(() => {
|
|
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, o = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? at(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : lt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
191
|
+
return o.ticks.map((n) => ({
|
|
192
|
+
zero: s.value.bottom - s.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
193
|
+
y: s.value.bottom - s.value.height * ((n + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
193
194
|
x: s.value.left - 8,
|
|
194
|
-
horizontal_zero: s.value.left + s.value.width * (Math.abs(
|
|
195
|
-
horizontal_x: s.value.left + s.value.width * ((n + Math.abs(
|
|
195
|
+
horizontal_zero: s.value.left + s.value.width * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
|
|
196
|
+
horizontal_x: s.value.left + s.value.width * ((n + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
|
|
196
197
|
horizontal_y: s.value.bottom - 8,
|
|
197
198
|
value: n
|
|
198
199
|
}));
|
|
199
|
-
}), V =
|
|
200
|
+
}), V = k(() => {
|
|
200
201
|
const a = [];
|
|
201
|
-
for (let
|
|
202
|
+
for (let l = 0; l < R.value; l += 1)
|
|
202
203
|
a.push({
|
|
203
|
-
text: e.value.style.chart.grid.x.timeLabels.values[
|
|
204
|
-
absoluteIndex:
|
|
204
|
+
text: e.value.style.chart.grid.x.timeLabels.values[l] || String(l),
|
|
205
|
+
absoluteIndex: l
|
|
205
206
|
});
|
|
206
207
|
return a.slice(c.value.start, c.value.end);
|
|
207
|
-
}),
|
|
208
|
+
}), x = k(() => {
|
|
208
209
|
if (!Y.value) return [];
|
|
209
|
-
let a = Array(R.value).fill(0),
|
|
210
|
-
const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative),
|
|
211
|
-
return A.value.filter((j) => !
|
|
212
|
-
const I = j.series.slice(c.value.start, c.value.end),
|
|
210
|
+
let a = Array(R.value).fill(0), l = Array(R.value).fill(0), t = Array(R.value).fill(0), o = Array(R.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, F = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? at(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) : 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), { min: D, max: Q } = F, E = Q + (D >= 0 ? 0 : Math.abs(D)) || 1, $ = s.value.height, ie = s.value.width, Ze = N.value[0] ? N.value[0].zero : s.value.bottom, Ke = N.value[0] ? N.value[0].horizontal_zero : s.value.left;
|
|
212
|
+
return A.value.filter((j) => !_.value.includes(j.id)).map((j) => {
|
|
213
|
+
const I = j.series.slice(c.value.start, c.value.end), xt = j.signedSeries.slice(c.value.start, c.value.end), kt = I.map((b, m) => s.value.left + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), wt = I.map((b, m) => s.value.top + v.value * m + v.value * e.value.style.chart.bars.gapRatio / 4), zt = I.map((b, m) => {
|
|
213
214
|
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
|
|
214
215
|
let H, T;
|
|
215
|
-
return b > 0 ? (T = $ * M, H =
|
|
216
|
-
}),
|
|
216
|
+
return b > 0 ? (T = $ * M, H = Ze - T - a[m], a[m] += T) : (T = $ * M, H = Ze + t[m], t[m] += Math.abs(T)), H;
|
|
217
|
+
}), Ct = I.map((b, m) => {
|
|
217
218
|
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
|
|
218
219
|
let H, T;
|
|
219
|
-
return b > 0 ? (T = ie * M, H =
|
|
220
|
-
}),
|
|
220
|
+
return b > 0 ? (T = ie * M, H = Ke + l[m], l[m] += T) : (T = ie * M, H = Ke - Math.abs(T) - o[m], o[m] += Math.abs(T)), H;
|
|
221
|
+
}), Lt = I.map((b, m) => {
|
|
221
222
|
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
|
|
222
223
|
return b > 0 ? $ * M : $ * Math.abs(M);
|
|
223
|
-
}),
|
|
224
|
+
}), _t = I.map((b, m) => {
|
|
224
225
|
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / E;
|
|
225
226
|
return b > 0 ? ie * M : ie * Math.abs(M);
|
|
226
|
-
}),
|
|
227
|
+
}), St = I.map((b) => Math.abs(b)).reduce((b, m) => b + m, 0);
|
|
227
228
|
return {
|
|
228
229
|
...j,
|
|
229
|
-
proportions: I.map((b, m) => e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) /
|
|
230
|
+
proportions: I.map((b, m) => e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / St),
|
|
230
231
|
series: I,
|
|
231
|
-
signedSeries:
|
|
232
|
-
x:
|
|
233
|
-
y:
|
|
234
|
-
height:
|
|
235
|
-
horizontal_width:
|
|
236
|
-
horizontal_y:
|
|
237
|
-
horizontal_x:
|
|
232
|
+
signedSeries: xt,
|
|
233
|
+
x: kt,
|
|
234
|
+
y: zt,
|
|
235
|
+
height: Lt,
|
|
236
|
+
horizontal_width: _t,
|
|
237
|
+
horizontal_y: wt,
|
|
238
|
+
horizontal_x: Ct
|
|
238
239
|
};
|
|
239
240
|
});
|
|
240
|
-
}),
|
|
241
|
+
}), De = k(() => gt.value.map((a, l) => ({
|
|
241
242
|
value: a,
|
|
242
243
|
sign: a >= 0 ? 1 : -1
|
|
243
244
|
})));
|
|
244
|
-
function oe(a,
|
|
245
|
+
function oe(a, l, t, o, n) {
|
|
245
246
|
const u = n === -1 && a >= 0 ? -a : a;
|
|
246
|
-
return
|
|
247
|
+
return st(
|
|
247
248
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
248
249
|
u,
|
|
249
250
|
W({
|
|
@@ -252,11 +253,11 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
252
253
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
253
254
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
254
255
|
}),
|
|
255
|
-
{ datapoint:
|
|
256
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
256
257
|
);
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
259
|
+
function Ee(a, l, t, o) {
|
|
260
|
+
return st(
|
|
260
261
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
261
262
|
a,
|
|
262
263
|
W({
|
|
@@ -264,50 +265,50 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
264
265
|
s: "%",
|
|
265
266
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
266
267
|
}),
|
|
267
|
-
{ datapoint:
|
|
268
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
268
269
|
);
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
-
const
|
|
271
|
+
function He(a) {
|
|
272
|
+
const l = JSON.parse(JSON.stringify(x.value)).map((t) => ({
|
|
272
273
|
name: t.name,
|
|
273
274
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
274
275
|
proportion: t.proportions[a] || null,
|
|
275
276
|
color: t.color,
|
|
276
277
|
id: t.id
|
|
277
278
|
}));
|
|
278
|
-
ye("selectDatapoint", { datapoint:
|
|
279
|
+
ye("selectDatapoint", { datapoint: l, period: V.value[a] });
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
+
function Be(a) {
|
|
281
282
|
q.value = a, ee.value = !0;
|
|
282
|
-
const
|
|
283
|
+
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(x.value)).map((n) => ({
|
|
283
284
|
name: n.name,
|
|
284
285
|
value: n.series[a] === 0 ? 0 : (n.signedSeries[a] === -1 && n.series[a] >= 0 ? -n.series[a] : n.series[a]) || null,
|
|
285
286
|
proportion: n.proportions[a] || null,
|
|
286
287
|
color: n.color,
|
|
287
288
|
id: n.id
|
|
288
|
-
})),
|
|
289
|
-
if (
|
|
289
|
+
})), o = t.map((n) => Math.abs(n.value)).reduce((n, u) => n + u, 0);
|
|
290
|
+
if (rt(l) && Dt(() => l({
|
|
290
291
|
seriesIndex: a,
|
|
291
292
|
datapoint: t,
|
|
292
|
-
series:
|
|
293
|
+
series: x.value,
|
|
293
294
|
config: e.value
|
|
294
295
|
})))
|
|
295
|
-
be.value =
|
|
296
|
+
be.value = l({
|
|
296
297
|
seriesIndex: a,
|
|
297
298
|
datapoint: t,
|
|
298
|
-
series:
|
|
299
|
+
series: x.value,
|
|
299
300
|
config: e.value
|
|
300
301
|
});
|
|
301
302
|
else {
|
|
302
303
|
const {
|
|
303
304
|
showValue: n,
|
|
304
305
|
showPercentage: u,
|
|
305
|
-
borderColor:
|
|
306
|
+
borderColor: z,
|
|
306
307
|
roundingValue: F,
|
|
307
308
|
roundingPercentage: D
|
|
308
309
|
} = e.value.style.chart.tooltip;
|
|
309
310
|
let Q = "";
|
|
310
|
-
V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
311
|
+
V.value[a] && V.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;">${V.value[a].text}</div>`);
|
|
311
312
|
const E = [
|
|
312
313
|
n && u ? "(" : "",
|
|
313
314
|
n && u ? ")" : ""
|
|
@@ -322,7 +323,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
322
323
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
323
324
|
r: F
|
|
324
325
|
}) : ""} ${E[0]}${u ? W({
|
|
325
|
-
v: isNaN($.value /
|
|
326
|
+
v: isNaN($.value / o) ? 0 : Math.abs($.value) / o * 100,
|
|
326
327
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
327
328
|
s: "%",
|
|
328
329
|
r: D
|
|
@@ -332,45 +333,45 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
332
333
|
}), be.value = `<div>${Q}</div>`;
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function bt(a) {
|
|
336
337
|
te.value = a, ke.value += 1;
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
-
|
|
339
|
+
function Ue() {
|
|
340
|
+
L.value.showTable = !L.value.showTable;
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
342
|
+
function We() {
|
|
343
|
+
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
343
344
|
}
|
|
344
|
-
function
|
|
345
|
-
|
|
345
|
+
function Ye() {
|
|
346
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
348
|
+
function ft() {
|
|
349
|
+
return x.value;
|
|
349
350
|
}
|
|
350
|
-
const
|
|
351
|
-
if (
|
|
352
|
-
const a =
|
|
351
|
+
const Xe = k(() => {
|
|
352
|
+
if (x.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
353
|
+
const a = x.value.map(({ name: t, color: o }) => ({
|
|
353
354
|
label: t,
|
|
354
|
-
color:
|
|
355
|
-
})),
|
|
355
|
+
color: o
|
|
356
|
+
})), l = [];
|
|
356
357
|
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
357
|
-
const
|
|
358
|
+
const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
358
359
|
A.value.forEach((n) => {
|
|
359
|
-
|
|
360
|
-
}),
|
|
360
|
+
o.push(Number((n.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
361
|
+
}), l.push(o);
|
|
361
362
|
}
|
|
362
|
-
return { head: a, body:
|
|
363
|
+
return { head: a, body: l };
|
|
363
364
|
});
|
|
364
|
-
function
|
|
365
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]],
|
|
366
|
-
|
|
365
|
+
function Ge() {
|
|
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, o = a.concat([l]).concat(t), n = Et(o);
|
|
367
|
+
Ht({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
367
368
|
}
|
|
368
|
-
const re =
|
|
369
|
-
const a = [""].concat(
|
|
370
|
-
let
|
|
369
|
+
const re = k(() => {
|
|
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
|
+
let l = [];
|
|
371
372
|
for (let n = 0; n < R.value; n += 1) {
|
|
372
|
-
const u =
|
|
373
|
-
|
|
373
|
+
const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, F) => z + F, 0);
|
|
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)));
|
|
374
375
|
}
|
|
375
376
|
const t = {
|
|
376
377
|
th: {
|
|
@@ -384,26 +385,26 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
384
385
|
outline: e.value.table.td.outline
|
|
385
386
|
},
|
|
386
387
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
387
|
-
},
|
|
388
|
-
return { head: a, body:
|
|
388
|
+
}, o = [e.value.table.columnNames.period].concat(x.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
|
|
389
|
+
return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
|
|
389
390
|
});
|
|
390
|
-
function
|
|
391
|
-
if (ye("selectLegend",
|
|
392
|
-
|
|
391
|
+
function mt(a, l) {
|
|
392
|
+
if (ye("selectLegend", x.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
|
|
393
|
+
_.value = _.value.filter((t) => t !== l.id);
|
|
393
394
|
else {
|
|
394
|
-
if (
|
|
395
|
-
|
|
395
|
+
if (_.value.length === A.value.length - 1) return;
|
|
396
|
+
_.value.push(l.id);
|
|
396
397
|
}
|
|
397
398
|
}
|
|
398
|
-
const
|
|
399
|
+
const Je = k(() => A.value.map((a, l) => ({
|
|
399
400
|
...a,
|
|
400
401
|
shape: "square"
|
|
401
402
|
})).map((a) => ({
|
|
402
403
|
...a,
|
|
403
|
-
opacity:
|
|
404
|
-
segregate: () =>
|
|
405
|
-
isSegregated:
|
|
406
|
-
}))),
|
|
404
|
+
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
405
|
+
segregate: () => mt(a.absoluteIndex, a),
|
|
406
|
+
isSegregated: _.value.includes(a.id)
|
|
407
|
+
}))), pt = k(() => ({
|
|
407
408
|
cy: "stackbar-legend",
|
|
408
409
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
409
410
|
color: e.value.style.chart.legend.color,
|
|
@@ -414,13 +415,13 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
414
415
|
function me() {
|
|
415
416
|
se.value = !se.value;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
const t = JSON.parse(JSON.stringify(
|
|
419
|
-
name:
|
|
420
|
-
value:
|
|
421
|
-
proportion:
|
|
422
|
-
color:
|
|
423
|
-
id:
|
|
418
|
+
function qe(a, l) {
|
|
419
|
+
const t = JSON.parse(JSON.stringify(x.value)).map((o) => ({
|
|
420
|
+
name: o.name,
|
|
421
|
+
value: o.series[l] === 0 ? 0 : (o.signedSeries[l] === -1 && o.series[l] >= 0 ? -o.series[l] : o.series[l]) || null,
|
|
422
|
+
proportion: o.proportions[l] || null,
|
|
423
|
+
color: o.color,
|
|
424
|
+
id: o.id
|
|
424
425
|
}));
|
|
425
426
|
ye("selectTimeLabel", {
|
|
426
427
|
datapoint: t,
|
|
@@ -428,23 +429,25 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
428
429
|
label: a.text
|
|
429
430
|
});
|
|
430
431
|
}
|
|
431
|
-
return
|
|
432
|
-
getData:
|
|
433
|
-
generatePdf:
|
|
434
|
-
generateCsv:
|
|
435
|
-
generateImage:
|
|
436
|
-
toggleTable:
|
|
437
|
-
toggleLabels:
|
|
438
|
-
toggleTooltip:
|
|
432
|
+
return nt({
|
|
433
|
+
getData: ft,
|
|
434
|
+
generatePdf: Oe,
|
|
435
|
+
generateCsv: Ge,
|
|
436
|
+
generateImage: Pe,
|
|
437
|
+
toggleTable: Ue,
|
|
438
|
+
toggleLabels: We,
|
|
439
|
+
toggleTooltip: Ye,
|
|
439
440
|
toggleAnnotator: me
|
|
440
|
-
}), (a,
|
|
441
|
+
}), (a, l) => (r(), i("div", {
|
|
441
442
|
id: `stackbar_${ge.value}`,
|
|
442
443
|
ref_key: "stackbarChart",
|
|
443
444
|
ref: X,
|
|
444
445
|
class: pe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
|
|
445
|
-
style:
|
|
446
|
+
style: B(`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%" : ""}`),
|
|
447
|
+
onMouseenter: l[6] || (l[6] = () => p($e)(!0)),
|
|
448
|
+
onMouseleave: l[7] || (l[7] = () => p($e)(!1))
|
|
446
449
|
}, [
|
|
447
|
-
e.value.userOptions.buttons.annotator ? (r(), J(
|
|
450
|
+
e.value.userOptions.buttons.annotator ? (r(), J(ea, {
|
|
448
451
|
key: 0,
|
|
449
452
|
parent: X.value,
|
|
450
453
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -452,14 +455,14 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
452
455
|
active: se.value,
|
|
453
456
|
onClose: me
|
|
454
457
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
|
|
455
|
-
|
|
458
|
+
w(a.$slots, "userConfig", {}, void 0, !0),
|
|
456
459
|
e.value.style.chart.title.text ? (r(), i("div", {
|
|
457
460
|
key: 1,
|
|
458
461
|
ref_key: "chartTitle",
|
|
459
462
|
ref: we,
|
|
460
463
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
461
464
|
}, [
|
|
462
|
-
ue(
|
|
465
|
+
ue(Jt, {
|
|
463
466
|
config: {
|
|
464
467
|
title: {
|
|
465
468
|
cy: "stackbar-title",
|
|
@@ -472,13 +475,13 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
472
475
|
}
|
|
473
476
|
}, null, 8, ["config"])
|
|
474
477
|
], 512)) : d("", !0),
|
|
475
|
-
e.value.userOptions.show && Y.value ? (r(), J(
|
|
478
|
+
e.value.userOptions.show && Y.value && (p(Me) || p(Se)) ? (r(), J(Yt, {
|
|
476
479
|
ref: "details",
|
|
477
480
|
key: `user_option_${ke.value}`,
|
|
478
481
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
479
482
|
color: e.value.style.chart.color,
|
|
480
|
-
isPrinting:
|
|
481
|
-
isImaging:
|
|
483
|
+
isPrinting: p(Ne),
|
|
484
|
+
isImaging: p(Ie),
|
|
482
485
|
uid: ge.value,
|
|
483
486
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
484
487
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -490,106 +493,109 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
490
493
|
isFullscreen: te.value,
|
|
491
494
|
chartElement: X.value,
|
|
492
495
|
position: e.value.userOptions.position,
|
|
493
|
-
isTooltip:
|
|
496
|
+
isTooltip: L.value.showTooltip,
|
|
494
497
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
495
498
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
496
499
|
isAnnotation: se.value,
|
|
497
|
-
onToggleFullscreen:
|
|
498
|
-
onGeneratePdf:
|
|
499
|
-
onGenerateCsv:
|
|
500
|
-
onGenerateImage:
|
|
501
|
-
onToggleTable:
|
|
502
|
-
onToggleLabels:
|
|
503
|
-
onToggleTooltip:
|
|
504
|
-
onToggleAnnotator: me
|
|
505
|
-
|
|
500
|
+
onToggleFullscreen: bt,
|
|
501
|
+
onGeneratePdf: p(Oe),
|
|
502
|
+
onGenerateCsv: Ge,
|
|
503
|
+
onGenerateImage: p(Pe),
|
|
504
|
+
onToggleTable: Ue,
|
|
505
|
+
onToggleLabels: We,
|
|
506
|
+
onToggleTooltip: Ye,
|
|
507
|
+
onToggleAnnotator: me,
|
|
508
|
+
style: B({
|
|
509
|
+
visibility: p(Me) ? p(Se) ? "visible" : "hidden" : "visible"
|
|
510
|
+
})
|
|
511
|
+
}, $t({ _: 2 }, [
|
|
506
512
|
a.$slots.optionTooltip ? {
|
|
507
513
|
name: "optionTooltip",
|
|
508
|
-
fn:
|
|
509
|
-
|
|
514
|
+
fn: C(() => [
|
|
515
|
+
w(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
510
516
|
]),
|
|
511
517
|
key: "0"
|
|
512
518
|
} : void 0,
|
|
513
519
|
a.$slots.optionPdf ? {
|
|
514
520
|
name: "optionPdf",
|
|
515
|
-
fn:
|
|
516
|
-
|
|
521
|
+
fn: C(() => [
|
|
522
|
+
w(a.$slots, "optionPdf", {}, void 0, !0)
|
|
517
523
|
]),
|
|
518
524
|
key: "1"
|
|
519
525
|
} : void 0,
|
|
520
526
|
a.$slots.optionCsv ? {
|
|
521
527
|
name: "optionCsv",
|
|
522
|
-
fn:
|
|
523
|
-
|
|
528
|
+
fn: C(() => [
|
|
529
|
+
w(a.$slots, "optionCsv", {}, void 0, !0)
|
|
524
530
|
]),
|
|
525
531
|
key: "2"
|
|
526
532
|
} : void 0,
|
|
527
533
|
a.$slots.optionImg ? {
|
|
528
534
|
name: "optionImg",
|
|
529
|
-
fn:
|
|
530
|
-
|
|
535
|
+
fn: C(() => [
|
|
536
|
+
w(a.$slots, "optionImg", {}, void 0, !0)
|
|
531
537
|
]),
|
|
532
538
|
key: "3"
|
|
533
539
|
} : void 0,
|
|
534
540
|
a.$slots.optionTable ? {
|
|
535
541
|
name: "optionTable",
|
|
536
|
-
fn:
|
|
537
|
-
|
|
542
|
+
fn: C(() => [
|
|
543
|
+
w(a.$slots, "optionTable", {}, void 0, !0)
|
|
538
544
|
]),
|
|
539
545
|
key: "4"
|
|
540
546
|
} : void 0,
|
|
541
547
|
a.$slots.optionLabels ? {
|
|
542
548
|
name: "optionLabels",
|
|
543
|
-
fn:
|
|
544
|
-
|
|
549
|
+
fn: C(() => [
|
|
550
|
+
w(a.$slots, "optionLabels", {}, void 0, !0)
|
|
545
551
|
]),
|
|
546
552
|
key: "5"
|
|
547
553
|
} : void 0,
|
|
548
554
|
a.$slots.optionFullscreen ? {
|
|
549
555
|
name: "optionFullscreen",
|
|
550
|
-
fn:
|
|
551
|
-
|
|
556
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
557
|
+
w(a.$slots, "optionFullscreen", O(P({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
552
558
|
]),
|
|
553
559
|
key: "6"
|
|
554
560
|
} : void 0,
|
|
555
561
|
a.$slots.optionAnnotator ? {
|
|
556
562
|
name: "optionAnnotator",
|
|
557
|
-
fn:
|
|
558
|
-
|
|
563
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
564
|
+
w(a.$slots, "optionAnnotator", O(P({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
559
565
|
]),
|
|
560
566
|
key: "7"
|
|
561
567
|
} : void 0
|
|
562
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
568
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
563
569
|
Y.value ? (r(), i("svg", {
|
|
564
570
|
key: 3,
|
|
565
|
-
xmlns:
|
|
571
|
+
xmlns: p(Vt),
|
|
566
572
|
viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
|
|
567
|
-
style:
|
|
573
|
+
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
568
574
|
}, [
|
|
569
|
-
ue(
|
|
570
|
-
e.value.style.chart.bars.gradient.show ? (r(), i("defs",
|
|
571
|
-
(r(!0), i(h, null, f(
|
|
575
|
+
ue(jt),
|
|
576
|
+
e.value.style.chart.bars.gradient.show ? (r(), i("defs", ra, [
|
|
577
|
+
(r(!0), i(h, null, f(x.value, (t, o) => (r(), i("linearGradient", {
|
|
572
578
|
id: `gradient_${t.id}`,
|
|
573
579
|
x1: "0%",
|
|
574
580
|
y1: "0%",
|
|
575
581
|
x2: "0%",
|
|
576
582
|
y2: "100%"
|
|
577
583
|
}, [
|
|
578
|
-
|
|
584
|
+
U("stop", {
|
|
579
585
|
offset: "0%",
|
|
580
586
|
"stop-color": t.color
|
|
581
|
-
}, null, 8,
|
|
582
|
-
|
|
587
|
+
}, null, 8, ia),
|
|
588
|
+
U("stop", {
|
|
583
589
|
offset: "61.8%",
|
|
584
|
-
"stop-color":
|
|
585
|
-
}, null, 8,
|
|
586
|
-
|
|
590
|
+
"stop-color": p(Ft)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
591
|
+
}, null, 8, na),
|
|
592
|
+
U("stop", {
|
|
587
593
|
offset: "100%",
|
|
588
594
|
"stop-color": t.color
|
|
589
|
-
}, null, 8,
|
|
590
|
-
], 8,
|
|
595
|
+
}, null, 8, ua)
|
|
596
|
+
], 8, sa))), 256))
|
|
591
597
|
])) : d("", !0),
|
|
592
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 1 }, f(N.value, (t,
|
|
598
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 1 }, f(N.value, (t, o) => (r(), i("line", {
|
|
593
599
|
x1: s.value.left,
|
|
594
600
|
x2: s.value.right,
|
|
595
601
|
y1: t.y,
|
|
@@ -597,26 +603,26 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
597
603
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
598
604
|
"stroke-width": 1,
|
|
599
605
|
"stroke-linecap": "round"
|
|
600
|
-
}, null, 8,
|
|
601
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t,
|
|
606
|
+
}, null, 8, ca))), 256)) : d("", !0),
|
|
607
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, o) => (r(), i("line", {
|
|
602
608
|
x1: s.value.left,
|
|
603
609
|
x2: s.value.right,
|
|
604
|
-
y1: s.value.top + v.value *
|
|
605
|
-
y2: s.value.top + v.value *
|
|
610
|
+
y1: s.value.top + v.value * o,
|
|
611
|
+
y2: s.value.top + v.value * o,
|
|
606
612
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
607
613
|
"stroke-width": 1,
|
|
608
614
|
"stroke-linecap": "round"
|
|
609
|
-
}, null, 8,
|
|
610
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t,
|
|
611
|
-
x1: s.value.left + v.value *
|
|
612
|
-
x2: s.value.left + v.value *
|
|
615
|
+
}, null, 8, va))), 256)) : d("", !0),
|
|
616
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, o) => (r(), i("line", {
|
|
617
|
+
x1: s.value.left + v.value * o,
|
|
618
|
+
x2: s.value.left + v.value * o,
|
|
613
619
|
y1: s.value.top,
|
|
614
620
|
y2: s.value.bottom,
|
|
615
621
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
616
622
|
"stroke-width": 1,
|
|
617
623
|
"stroke-linecap": "round"
|
|
618
|
-
}, null, 8,
|
|
619
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 4 }, f(N.value, (t,
|
|
624
|
+
}, null, 8, ha))), 256)) : d("", !0),
|
|
625
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 4 }, f(N.value, (t, o) => (r(), i("line", {
|
|
620
626
|
x1: t.horizontal_x,
|
|
621
627
|
x2: t.horizontal_x,
|
|
622
628
|
y1: s.value.top,
|
|
@@ -624,8 +630,8 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
624
630
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
625
631
|
"stroke-width": 1,
|
|
626
632
|
"stroke-linecap": "round"
|
|
627
|
-
}, null, 8,
|
|
628
|
-
(r(!0), i(h, null, f(
|
|
633
|
+
}, null, 8, da))), 256)) : d("", !0),
|
|
634
|
+
(r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
|
|
629
635
|
e.value.orientation === "vertical" ? (r(!0), i(h, { key: 0 }, f(t.x, (n, u) => (r(), i("rect", {
|
|
630
636
|
x: n,
|
|
631
637
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
@@ -638,7 +644,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
638
644
|
"stroke-linecap": "round",
|
|
639
645
|
"stroke-linejoin": "round",
|
|
640
646
|
class: pe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
641
|
-
}, null, 10,
|
|
647
|
+
}, null, 10, ya))), 256)) : (r(!0), i(h, { key: 1 }, f(t.horizontal_x, (n, u) => (r(), i("rect", {
|
|
642
648
|
x: n,
|
|
643
649
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
644
650
|
width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
|
|
@@ -650,7 +656,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
650
656
|
"stroke-linecap": "round",
|
|
651
657
|
"stroke-linejoin": "round",
|
|
652
658
|
class: pe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
653
|
-
}, null, 10,
|
|
659
|
+
}, null, 10, ga))), 256))
|
|
654
660
|
]))), 256)),
|
|
655
661
|
e.value.style.chart.grid.x.showAxis ? (r(), i("line", {
|
|
656
662
|
key: 5,
|
|
@@ -662,7 +668,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
662
668
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
663
669
|
"stroke-linecap": "round",
|
|
664
670
|
"stroke-linejoin": "round"
|
|
665
|
-
}, null, 8,
|
|
671
|
+
}, null, 8, ba)) : d("", !0),
|
|
666
672
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), i("line", {
|
|
667
673
|
key: 6,
|
|
668
674
|
x1: s.value.left,
|
|
@@ -673,7 +679,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
673
679
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
674
680
|
"stroke-linecap": "round",
|
|
675
681
|
"stroke-linejoin": "round"
|
|
676
|
-
}, null, 8,
|
|
682
|
+
}, null, 8, fa)) : d("", !0),
|
|
677
683
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), i("text", {
|
|
678
684
|
key: 7,
|
|
679
685
|
x: s.value.left + s.value.width / 2,
|
|
@@ -682,7 +688,7 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
682
688
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
683
689
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
684
690
|
"text-anchor": "middle"
|
|
685
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9,
|
|
691
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, ma)) : d("", !0),
|
|
686
692
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), i("text", {
|
|
687
693
|
key: 8,
|
|
688
694
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
@@ -690,76 +696,76 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
690
696
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
691
697
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
692
698
|
"text-anchor": "middle"
|
|
693
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9,
|
|
694
|
-
|
|
695
|
-
(r(!0), i(h, null, f(
|
|
699
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, pa)) : d("", !0),
|
|
700
|
+
L.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), i(h, { key: 9 }, [
|
|
701
|
+
(r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
|
|
696
702
|
(r(!0), i(h, null, f(t.x, (n, u) => (r(), i("text", {
|
|
697
703
|
x: n + v.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
698
704
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
699
705
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
700
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
706
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
701
707
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
702
708
|
"text-anchor": "middle"
|
|
703
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
709
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, xa))), 256))
|
|
704
710
|
]))), 256)),
|
|
705
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
706
|
-
(r(!0), i(h, null, f(
|
|
707
|
-
x: s.value.left + v.value *
|
|
711
|
+
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (r(), i("g", ka, [
|
|
712
|
+
(r(!0), i(h, null, f(De.value, (t, o) => (r(), i("text", {
|
|
713
|
+
x: s.value.left + v.value * o + v.value / 2,
|
|
708
714
|
y: s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
709
715
|
"text-anchor": "middle",
|
|
710
716
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
711
717
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
712
718
|
fill: e.value.style.chart.bars.totalValues.color
|
|
713
|
-
}, S(oe(t.value, t,
|
|
719
|
+
}, S(oe(t.value, t, o, t.sign)), 9, wa))), 256))
|
|
714
720
|
])) : d("", !0)
|
|
715
721
|
], 64)) : d("", !0),
|
|
716
|
-
|
|
717
|
-
(r(!0), i(h, null, f(
|
|
722
|
+
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), i(h, { key: 10 }, [
|
|
723
|
+
(r(!0), i(h, null, f(x.value, (t, o) => (r(), i("g", null, [
|
|
718
724
|
(r(!0), i(h, null, f(t.horizontal_x, (n, u) => (r(), i("text", {
|
|
719
725
|
x: n + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
720
726
|
y: t.horizontal_y[u] + v.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
721
727
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
722
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
728
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
723
729
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
724
730
|
"text-anchor": "middle"
|
|
725
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
731
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, za))), 256))
|
|
726
732
|
]))), 256)),
|
|
727
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
728
|
-
(r(!0), i(h, null, f(
|
|
733
|
+
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (r(), i("g", Ca, [
|
|
734
|
+
(r(!0), i(h, null, f(De.value, (t, o) => (r(), i("text", {
|
|
729
735
|
x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
730
|
-
y: s.value.top + v.value *
|
|
736
|
+
y: s.value.top + v.value * o + v.value / 2,
|
|
731
737
|
"text-anchor": "start",
|
|
732
738
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
733
739
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
734
740
|
fill: e.value.style.chart.bars.totalValues.color
|
|
735
|
-
}, S(oe(t.value, t,
|
|
741
|
+
}, S(oe(t.value, t, o, t.sign)), 9, La))), 256))
|
|
736
742
|
])) : d("", !0)
|
|
737
743
|
], 64)) : d("", !0),
|
|
738
744
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), i(h, { key: 11 }, [
|
|
739
|
-
(r(!0), i(h, null, f(N.value, (t,
|
|
745
|
+
(r(!0), i(h, null, f(N.value, (t, o) => (r(), i("line", {
|
|
740
746
|
x1: s.value.left,
|
|
741
747
|
x2: s.value.left - 6,
|
|
742
748
|
y1: t.y,
|
|
743
749
|
y2: t.y,
|
|
744
750
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
745
751
|
"stroke-width": 1
|
|
746
|
-
}, null, 8,
|
|
747
|
-
(r(!0), i(h, null, f(N.value, (t,
|
|
752
|
+
}, null, 8, _a))), 256)),
|
|
753
|
+
(r(!0), i(h, null, f(N.value, (t, o) => (r(), i("text", {
|
|
748
754
|
x: t.x,
|
|
749
755
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
750
756
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
751
757
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
752
758
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
753
759
|
"text-anchor": "end"
|
|
754
|
-
}, S(
|
|
760
|
+
}, S(p(W)({
|
|
755
761
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
756
762
|
v: t.value,
|
|
757
763
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
758
764
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
759
|
-
})), 9,
|
|
765
|
+
})), 9, Sa))), 256))
|
|
760
766
|
], 64)) : d("", !0),
|
|
761
767
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), i(h, { key: 12 }, [
|
|
762
|
-
(r(!0), i(h, null, f(N.value, (t,
|
|
768
|
+
(r(!0), i(h, null, f(N.value, (t, o) => (r(), i("line", {
|
|
763
769
|
x1: t.horizontal_x,
|
|
764
770
|
x2: t.horizontal_x,
|
|
765
771
|
y1: s.value.bottom,
|
|
@@ -767,55 +773,55 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
767
773
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
768
774
|
"stroke-width": 1,
|
|
769
775
|
"stroke-linecap": "round"
|
|
770
|
-
}, null, 8,
|
|
771
|
-
(r(!0), i(h, null, f(N.value, (t,
|
|
776
|
+
}, null, 8, $a))), 256)),
|
|
777
|
+
(r(!0), i(h, null, f(N.value, (t, o) => (r(), i("text", {
|
|
772
778
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
773
779
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
774
780
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
775
781
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
776
782
|
transform: `translate(${t.horizontal_x}, ${s.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})`
|
|
777
|
-
}, S(
|
|
783
|
+
}, S(p(W)({
|
|
778
784
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
779
785
|
v: t.value,
|
|
780
786
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
781
787
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
782
|
-
})), 9,
|
|
788
|
+
})), 9, Ma))), 256))
|
|
783
789
|
], 64)) : d("", !0),
|
|
784
790
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), i(h, { key: 13 }, [
|
|
785
|
-
a.$slots["time-label"] ? (r(), i("g",
|
|
786
|
-
(r(!0), i(h, null, f(V.value, (t,
|
|
787
|
-
|
|
788
|
-
x: s.value.left + v.value *
|
|
791
|
+
a.$slots["time-label"] ? (r(), i("g", Ta, [
|
|
792
|
+
(r(!0), i(h, null, f(V.value, (t, o) => (r(), i("g", null, [
|
|
793
|
+
w(a.$slots, "time-label", O(P({
|
|
794
|
+
x: s.value.left + v.value * o + v.value / 2,
|
|
789
795
|
y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
790
796
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
791
797
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
792
|
-
transform: `translate(${s.value.left + v.value *
|
|
798
|
+
transform: `translate(${s.value.left + v.value * o + v.value / 2}, ${s.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})`,
|
|
793
799
|
absoluteIndex: t.absoluteIndex,
|
|
794
800
|
content: t.text,
|
|
795
801
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
796
802
|
show: !0
|
|
797
803
|
})), void 0, !0)
|
|
798
804
|
]))), 256))
|
|
799
|
-
])) : (r(), i("g",
|
|
800
|
-
(r(!0), i(h, null, f(V.value, (t,
|
|
805
|
+
])) : (r(), i("g", Na, [
|
|
806
|
+
(r(!0), i(h, null, f(V.value, (t, o) => (r(), i("text", {
|
|
801
807
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
802
808
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
803
809
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
804
810
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
805
|
-
transform: `translate(${s.value.left + v.value *
|
|
811
|
+
transform: `translate(${s.value.left + v.value * o + v.value / 2}, ${s.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})`,
|
|
806
812
|
style: {
|
|
807
813
|
cursor: "pointer"
|
|
808
814
|
},
|
|
809
|
-
onClick: () =>
|
|
810
|
-
}, S(t.text), 9,
|
|
815
|
+
onClick: () => qe(t, o)
|
|
816
|
+
}, S(t.text), 9, Ia))), 256))
|
|
811
817
|
]))
|
|
812
818
|
], 64)) : d("", !0),
|
|
813
819
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), i(h, { key: 14 }, [
|
|
814
|
-
a.$slots["time-label"] ? (r(), i("g",
|
|
815
|
-
(r(!0), i(h, null, f(V.value, (t,
|
|
816
|
-
|
|
820
|
+
a.$slots["time-label"] ? (r(), i("g", Oa, [
|
|
821
|
+
(r(!0), i(h, null, f(V.value, (t, o) => (r(), i("g", null, [
|
|
822
|
+
w(a.$slots, "time-label", O(P({
|
|
817
823
|
x: s.value.left - 8,
|
|
818
|
-
y: s.value.top + v.value *
|
|
824
|
+
y: s.value.top + v.value * o + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
819
825
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
820
826
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
821
827
|
transform: null,
|
|
@@ -825,53 +831,53 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
825
831
|
show: !0
|
|
826
832
|
})), void 0, !0)
|
|
827
833
|
]))), 256))
|
|
828
|
-
])) : (r(), i("g",
|
|
829
|
-
(r(!0), i(h, null, f(V.value, (t,
|
|
834
|
+
])) : (r(), i("g", Pa, [
|
|
835
|
+
(r(!0), i(h, null, f(V.value, (t, o) => (r(), i("text", {
|
|
830
836
|
"text-anchor": "end",
|
|
831
837
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
832
838
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
833
839
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
834
840
|
x: s.value.left - 8,
|
|
835
|
-
y: s.value.top + v.value *
|
|
841
|
+
y: s.value.top + v.value * o + v.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
836
842
|
style: {
|
|
837
843
|
cursor: "pointer"
|
|
838
844
|
},
|
|
839
|
-
onClick: () =>
|
|
840
|
-
}, S(t.text), 9,
|
|
845
|
+
onClick: () => qe(t, o)
|
|
846
|
+
}, S(t.text), 9, Aa))), 256))
|
|
841
847
|
]))
|
|
842
848
|
], 64)) : d("", !0),
|
|
843
|
-
|
|
844
|
-
x: s.value.left +
|
|
849
|
+
L.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), i(h, { key: 15 }, f(c.value.end - c.value.start, (t, o) => (r(), i("rect", {
|
|
850
|
+
x: s.value.left + o * v.value,
|
|
845
851
|
y: s.value.top,
|
|
846
852
|
width: v.value,
|
|
847
853
|
height: s.value.height < 0 ? 0 : s.value.height,
|
|
848
|
-
onClick: (n) =>
|
|
849
|
-
onMouseenter: (n) =>
|
|
850
|
-
onMouseleave:
|
|
854
|
+
onClick: (n) => He(o),
|
|
855
|
+
onMouseenter: (n) => Be(o),
|
|
856
|
+
onMouseleave: l[0] || (l[0] = (n) => {
|
|
851
857
|
q.value = null, ee.value = !1;
|
|
852
858
|
}),
|
|
853
|
-
fill:
|
|
854
|
-
style:
|
|
855
|
-
}, null, 44,
|
|
856
|
-
|
|
859
|
+
fill: o === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
860
|
+
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
861
|
+
}, null, 44, Ra))), 256)) : d("", !0),
|
|
862
|
+
L.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), i(h, { key: 16 }, f(c.value.end - c.value.start, (t, o) => (r(), i("rect", {
|
|
857
863
|
x: s.value.left,
|
|
858
|
-
y: s.value.top +
|
|
864
|
+
y: s.value.top + o * v.value,
|
|
859
865
|
width: s.value.width < 0 ? 0 : s.value.width,
|
|
860
866
|
height: v.value,
|
|
861
|
-
onClick: (n) =>
|
|
862
|
-
onMouseenter: (n) =>
|
|
863
|
-
onMouseleave:
|
|
867
|
+
onClick: (n) => He(o),
|
|
868
|
+
onMouseenter: (n) => Be(o),
|
|
869
|
+
onMouseleave: l[1] || (l[1] = (n) => {
|
|
864
870
|
q.value = null, ee.value = !1;
|
|
865
871
|
}),
|
|
866
|
-
fill:
|
|
867
|
-
style:
|
|
868
|
-
}, null, 44,
|
|
869
|
-
|
|
870
|
-
], 12,
|
|
871
|
-
a.$slots.watermark ? (r(), i("div",
|
|
872
|
-
|
|
872
|
+
fill: o === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
873
|
+
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
874
|
+
}, null, 44, Va))), 256)) : d("", !0),
|
|
875
|
+
w(a.$slots, "svg", O(P({ ...s.value })), void 0, !0)
|
|
876
|
+
], 12, oa)) : d("", !0),
|
|
877
|
+
a.$slots.watermark ? (r(), i("div", Fa, [
|
|
878
|
+
w(a.$slots, "watermark", O(P({ isPrinting: p(Ne) || p(Ie) })), void 0, !0)
|
|
873
879
|
])) : d("", !0),
|
|
874
|
-
Y.value ? d("", !0) : (r(), J(
|
|
880
|
+
Y.value ? d("", !0) : (r(), J(Qt, {
|
|
875
881
|
key: 5,
|
|
876
882
|
config: {
|
|
877
883
|
type: "bar",
|
|
@@ -886,16 +892,16 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
886
892
|
}
|
|
887
893
|
}
|
|
888
894
|
}, null, 8, ["config"])),
|
|
889
|
-
|
|
895
|
+
U("div", {
|
|
890
896
|
ref_key: "chartSlicer",
|
|
891
897
|
ref: Ce,
|
|
892
|
-
style:
|
|
898
|
+
style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
893
899
|
"data-html2canvas-ignore": ""
|
|
894
900
|
}, [
|
|
895
|
-
e.value.style.chart.zoom.show && R.value > 1 ? (r(), J(
|
|
901
|
+
e.value.style.chart.zoom.show && R.value > 1 ? (r(), J(Xt, {
|
|
896
902
|
ref_key: "slicerComponent",
|
|
897
903
|
ref: G,
|
|
898
|
-
key: `slicer_${
|
|
904
|
+
key: `slicer_${_e.value}`,
|
|
899
905
|
background: e.value.style.chart.zoom.color,
|
|
900
906
|
borderColor: e.value.style.chart.backgroundColor,
|
|
901
907
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -910,21 +916,21 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
910
916
|
valueStart: c.value.start,
|
|
911
917
|
valueEnd: c.value.end,
|
|
912
918
|
start: c.value.start,
|
|
913
|
-
"onUpdate:start":
|
|
919
|
+
"onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
|
|
914
920
|
end: c.value.end,
|
|
915
|
-
"onUpdate:end":
|
|
921
|
+
"onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
|
|
916
922
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
917
923
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
|
|
918
|
-
onReset:
|
|
924
|
+
onReset: Ve
|
|
919
925
|
}, {
|
|
920
|
-
"reset-action":
|
|
921
|
-
|
|
926
|
+
"reset-action": C(({ reset: t }) => [
|
|
927
|
+
w(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
|
|
922
928
|
]),
|
|
923
929
|
_: 3
|
|
924
930
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : d("", !0)
|
|
925
931
|
], 4),
|
|
926
|
-
ue(
|
|
927
|
-
show:
|
|
932
|
+
ue(Gt, {
|
|
933
|
+
show: L.value.showTooltip && ee.value,
|
|
928
934
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
929
935
|
color: e.value.style.chart.tooltip.color,
|
|
930
936
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -937,51 +943,51 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
937
943
|
parent: X.value,
|
|
938
944
|
content: be.value,
|
|
939
945
|
isFullscreen: te.value,
|
|
940
|
-
isCustom:
|
|
946
|
+
isCustom: p(rt)(e.value.style.chart.tooltip.customFormat)
|
|
941
947
|
}, {
|
|
942
|
-
"tooltip-before":
|
|
943
|
-
|
|
948
|
+
"tooltip-before": C(() => [
|
|
949
|
+
w(a.$slots, "tooltip-before", O(P({ ...xe.value })), void 0, !0)
|
|
944
950
|
]),
|
|
945
|
-
"tooltip-after":
|
|
946
|
-
|
|
951
|
+
"tooltip-after": C(() => [
|
|
952
|
+
w(a.$slots, "tooltip-after", O(P({ ...xe.value })), void 0, !0)
|
|
947
953
|
]),
|
|
948
954
|
_: 3
|
|
949
955
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
950
|
-
|
|
956
|
+
U("div", {
|
|
951
957
|
ref_key: "chartLegend",
|
|
952
958
|
ref: ze
|
|
953
959
|
}, [
|
|
954
|
-
e.value.style.chart.legend.show && Y.value ? (r(), J(
|
|
960
|
+
e.value.style.chart.legend.show && Y.value ? (r(), J(qt, {
|
|
955
961
|
key: 0,
|
|
956
|
-
legendSet:
|
|
957
|
-
config:
|
|
958
|
-
onClickMarker:
|
|
962
|
+
legendSet: Je.value,
|
|
963
|
+
config: pt.value,
|
|
964
|
+
onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
|
|
959
965
|
}, {
|
|
960
|
-
item:
|
|
961
|
-
|
|
962
|
-
onClick: (
|
|
963
|
-
style:
|
|
964
|
-
}, S(t.name), 13,
|
|
966
|
+
item: C(({ legend: t }) => [
|
|
967
|
+
U("div", {
|
|
968
|
+
onClick: (o) => t.segregate(),
|
|
969
|
+
style: B(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
970
|
+
}, S(t.name), 13, Da)
|
|
965
971
|
]),
|
|
966
972
|
_: 1
|
|
967
|
-
}, 8, ["legendSet", "config"])) :
|
|
973
|
+
}, 8, ["legendSet", "config"])) : w(a.$slots, "legend", {
|
|
968
974
|
key: 1,
|
|
969
|
-
legend:
|
|
975
|
+
legend: Je.value
|
|
970
976
|
}, void 0, !0)
|
|
971
977
|
], 512),
|
|
972
978
|
a.$slots.source ? (r(), i("div", {
|
|
973
979
|
key: 6,
|
|
974
980
|
ref_key: "source",
|
|
975
|
-
ref:
|
|
981
|
+
ref: Le,
|
|
976
982
|
dir: "auto"
|
|
977
983
|
}, [
|
|
978
|
-
|
|
984
|
+
w(a.$slots, "source", {}, void 0, !0)
|
|
979
985
|
], 512)) : d("", !0),
|
|
980
|
-
c.value.end - c.value.start < 200 ? (r(), J(
|
|
986
|
+
c.value.end - c.value.start < 200 ? (r(), J(Zt, {
|
|
981
987
|
key: 7,
|
|
982
988
|
hideDetails: "",
|
|
983
989
|
config: {
|
|
984
|
-
open:
|
|
990
|
+
open: L.value.showTable,
|
|
985
991
|
maxHeight: 1e4,
|
|
986
992
|
body: {
|
|
987
993
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -993,20 +999,20 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
993
999
|
}
|
|
994
1000
|
}
|
|
995
1001
|
}, {
|
|
996
|
-
content:
|
|
997
|
-
ue(
|
|
1002
|
+
content: C(() => [
|
|
1003
|
+
ue(Kt, {
|
|
998
1004
|
colNames: re.value.colNames,
|
|
999
1005
|
head: re.value.head,
|
|
1000
1006
|
body: re.value.body,
|
|
1001
1007
|
config: re.value.config,
|
|
1002
1008
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1003
|
-
onClose:
|
|
1009
|
+
onClose: l[5] || (l[5] = (t) => L.value.showTable = !1)
|
|
1004
1010
|
}, {
|
|
1005
|
-
th:
|
|
1006
|
-
|
|
1011
|
+
th: C(({ th: t }) => [
|
|
1012
|
+
U("div", { innerHTML: t }, null, 8, Ea)
|
|
1007
1013
|
]),
|
|
1008
|
-
td:
|
|
1009
|
-
|
|
1014
|
+
td: C(({ td: t }) => [
|
|
1015
|
+
Mt(S(isNaN(Number(t)) ? t : p(W)({
|
|
1010
1016
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1011
1017
|
v: t,
|
|
1012
1018
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1018,9 +1024,9 @@ const jt = ["id"], ea = ["xmlns", "viewBox"], ta = { key: 0 }, aa = ["id"], la =
|
|
|
1018
1024
|
]),
|
|
1019
1025
|
_: 1
|
|
1020
1026
|
}, 8, ["config"])) : d("", !0)
|
|
1021
|
-
],
|
|
1027
|
+
], 46, la));
|
|
1022
1028
|
}
|
|
1023
|
-
},
|
|
1029
|
+
}, ol = /* @__PURE__ */ aa(Ha, [["__scopeId", "data-v-8c7297e5"]]);
|
|
1024
1030
|
export {
|
|
1025
|
-
|
|
1031
|
+
ol as default
|
|
1026
1032
|
};
|