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,27 +1,28 @@
|
|
|
1
|
-
import { computed as m, ref as d, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { computed as m, ref as d, onMounted as ut, onBeforeUnmount as st, watch as Ue, openBlock as o, createElementBlock as r, normalizeClass as ce, normalizeStyle as z, unref as u, createBlock as G, createCommentVNode as i, renderSlot as w, createSlots as nt, withCtx as $, normalizeProps as E, guardReactiveProps as W, createVNode as je, createElementVNode as h, Fragment as k, renderList as X, toDisplayString as x, createTextVNode as He, nextTick as rt, pushScopeId as it, popScopeId as vt } from "vue";
|
|
2
|
+
import { u as ct, o as dt, e as Re, g as ht, c as yt, b as ft, d as Ee, p as U, m as pt, H as gt, f as F, X as bt, s as ee, w as mt, j as wt, I as L, i as Y, k as b, n as te, t as kt, a as _t, x as xt, q as Ct, r as $t } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { t as Pt, u as St } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Ft } from "./Title-aSAft5dl.js";
|
|
5
|
+
import { u as Lt, U as Tt } from "./usePrinter-DaybDVqP.js";
|
|
6
|
+
import { D as zt } from "./DataTable-DGf6RrOJ.js";
|
|
7
|
+
import { _ as Ot } from "./Tooltip-smutPF--.js";
|
|
8
|
+
import { L as Yt } from "./Legend-BLaZxMge.js";
|
|
9
|
+
import At from "./vue-ui-skeleton-Bniq21d9.js";
|
|
10
|
+
import Nt from "./vue-ui-accordion-5d5iVpr7.js";
|
|
11
|
+
import { u as We } from "./useNestedProp-BN8claGG.js";
|
|
12
|
+
import { _ as Xt } from "./PackageVersion-CxJghxYD.js";
|
|
13
|
+
import { P as It } from "./PenAndPaper-ZdZEumki.js";
|
|
14
|
+
import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Bt = (q) => (it("data-v-d4fdff95"), q = q(), vt(), q), Vt = ["id"], Gt = ["xmlns", "viewBox"], Ut = { key: 0 }, jt = ["id"], Ht = ["stop-color"], Rt = ["offset", "stop-color"], Et = ["offset", "stop-color"], Wt = ["stop-color"], qt = { key: 1 }, Jt = ["id", "cx", "cy"], Kt = ["stop-color", "stop-opacity"], Qt = ["stop-color"], Zt = ["id"], el = ["id"], tl = /* @__PURE__ */ Bt(() => /* @__PURE__ */ h("feColorMatrix", {
|
|
16
17
|
type: "saturate",
|
|
17
18
|
values: "0"
|
|
18
|
-
}, null, -1)),
|
|
19
|
+
}, null, -1)), ll = ["id"], al = ["flood-color"], ol = ["id"], ul = ["flood-color"], sl = ["d", "stroke", "filter"], nl = ["x1", "y1", "x2", "y2", "stroke", "filter"], rl = ["cx", "cy", "r", "fill", "filter"], il = ["stroke", "d"], vl = ["d", "fill", "stroke", "stroke-width", "filter"], cl = { key: 0 }, dl = ["stroke", "d"], hl = { key: 0 }, yl = ["d", "stroke", "stroke-width", "filter"], fl = ["d", "fill", "stroke", "stroke-width", "filter"], pl = { key: 1 }, gl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bl = ["cx", "cy", "r", "stroke"], ml = ["cx", "cy", "r", "fill"], wl = { key: 0 }, kl = ["d", "fill", "onMouseenter", "onClick"], _l = { key: 1 }, xl = ["cx", "cy", "r", "fill"], Cl = ["x", "y", "fill", "font-size"], $l = ["x", "y", "fill", "font-size"], Pl = ["x", "y", "fill", "font-size"], Sl = ["x", "y", "fill", "font-size"], Fl = ["filter"], Ll = { key: 0 }, Tl = ["x", "y"], zl = { key: 1 }, Ol = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Yl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Al = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Nl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Il = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Dl = { key: 2 }, Ml = ["x", "y", "width"], Bl = ["x", "y", "width"], Vl = {
|
|
19
20
|
key: 5,
|
|
20
21
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
22
|
+
}, Gl = ["onClick"], Ul = {
|
|
22
23
|
key: 0,
|
|
23
24
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
24
|
-
},
|
|
25
|
+
}, jl = { key: 1 }, Hl = ["innerHTML"], Rl = {
|
|
25
26
|
__name: "vue-ui-donut",
|
|
26
27
|
props: {
|
|
27
28
|
config: {
|
|
@@ -38,127 +39,127 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
emits: ["selectLegend", "selectDatapoint"],
|
|
41
|
-
setup(q, { expose:
|
|
42
|
-
const
|
|
42
|
+
setup(q, { expose: qe, emit: de }) {
|
|
43
|
+
const A = q, { vue_ui_donut: Je } = ct(), J = m({
|
|
43
44
|
get() {
|
|
44
|
-
return !!
|
|
45
|
+
return !!A.dataset && A.dataset.length;
|
|
45
46
|
},
|
|
46
47
|
set(l) {
|
|
47
48
|
return l;
|
|
48
49
|
}
|
|
49
|
-
}),
|
|
50
|
-
|
|
50
|
+
}), j = d(null), he = d(null), ye = d(null), le = d(null), fe = d(null), pe = d(null), ge = d(0), be = d(0), me = d(0);
|
|
51
|
+
ut(() => {
|
|
51
52
|
we();
|
|
52
|
-
}),
|
|
53
|
+
}), st(() => {
|
|
53
54
|
le.value && le.value.disconnect();
|
|
54
55
|
});
|
|
55
56
|
function we() {
|
|
56
|
-
if (
|
|
57
|
+
if (dt(A.dataset) ? Re({
|
|
57
58
|
componentName: "VueUiDonut",
|
|
58
59
|
type: "dataset"
|
|
59
|
-
}) :
|
|
60
|
-
|
|
60
|
+
}) : A.dataset.forEach((l, n) => {
|
|
61
|
+
ht({
|
|
61
62
|
datasetObject: l,
|
|
62
63
|
requiredAttributes: ["name", "values"]
|
|
63
64
|
}).forEach((t) => {
|
|
64
|
-
J.value = !1,
|
|
65
|
+
J.value = !1, Re({
|
|
65
66
|
componentName: "VueUiDonut",
|
|
66
67
|
type: "datasetSerieAttribute",
|
|
67
68
|
property: t,
|
|
68
|
-
index:
|
|
69
|
+
index: n
|
|
69
70
|
});
|
|
70
71
|
});
|
|
71
72
|
}), e.value.responsive) {
|
|
72
|
-
const l =
|
|
73
|
-
const { width:
|
|
74
|
-
chart:
|
|
73
|
+
const l = Pt(() => {
|
|
74
|
+
const { width: n, height: t } = St({
|
|
75
|
+
chart: j.value,
|
|
75
76
|
title: e.value.style.chart.title.text ? he.value : null,
|
|
76
77
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
77
78
|
source: fe.value,
|
|
78
79
|
noTitle: pe.value
|
|
79
80
|
});
|
|
80
|
-
|
|
81
|
+
s.value.width = n, s.value.height = t;
|
|
81
82
|
});
|
|
82
|
-
le.value = new ResizeObserver(l), le.value.observe(
|
|
83
|
+
le.value = new ResizeObserver(l), le.value.observe(j.value.parentNode);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
const _ = d(
|
|
86
|
+
const _ = d(yt()), Ke = d(null), ae = d(!1), se = d(""), P = d(null), ke = d(0);
|
|
86
87
|
function _e() {
|
|
87
|
-
const l =
|
|
88
|
-
userConfig:
|
|
89
|
-
defaultConfig:
|
|
88
|
+
const l = We({
|
|
89
|
+
userConfig: A.config,
|
|
90
|
+
defaultConfig: Je
|
|
90
91
|
});
|
|
91
92
|
return l.theme ? {
|
|
92
|
-
...
|
|
93
|
-
userConfig:
|
|
93
|
+
...We({
|
|
94
|
+
userConfig: kt.vue_ui_donut[l.theme] || A.config,
|
|
94
95
|
defaultConfig: l
|
|
95
96
|
}),
|
|
96
|
-
customPalette:
|
|
97
|
+
customPalette: _t[l.theme] || U
|
|
97
98
|
} : l;
|
|
98
99
|
}
|
|
99
100
|
const e = m({
|
|
100
101
|
get: () => _e(),
|
|
101
102
|
set: (l) => l
|
|
102
|
-
});
|
|
103
|
-
|
|
103
|
+
}), { userOptionsVisible: xe, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Dt({ config: e.value });
|
|
104
|
+
Ue(() => A.config, (l) => {
|
|
104
105
|
e.value = _e(), we(), ge.value += 1, be.value += 1, me.value += 1;
|
|
105
106
|
}, { deep: !0 });
|
|
106
|
-
const { isPrinting:
|
|
107
|
+
const { isPrinting: Pe, isImaging: Se, generatePdf: Fe, generateImage: Le } = Lt({
|
|
107
108
|
elementId: `donut__${_.value}`,
|
|
108
109
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
109
|
-
}),
|
|
110
|
+
}), Qe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = m(() => ft(e.value.customPalette)), y = d({
|
|
110
111
|
dataLabels: {
|
|
111
112
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
112
113
|
},
|
|
113
114
|
showTable: e.value.table.show,
|
|
114
115
|
showTooltip: e.value.style.chart.tooltip.show
|
|
115
|
-
}),
|
|
116
|
+
}), s = d({
|
|
116
117
|
height: 360,
|
|
117
118
|
width: 512
|
|
118
119
|
}), K = m(() => {
|
|
119
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512,
|
|
120
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, n = s.value.width * l, t = n > C.value ? C.value : n;
|
|
120
121
|
return t < 24 ? 24 : t;
|
|
121
|
-
}),
|
|
122
|
+
}), B = m(() => A.dataset.map((l, n) => ({
|
|
122
123
|
name: l.name,
|
|
123
|
-
color:
|
|
124
|
+
color: Ee(l.color) || Te.value[n] || U[n] || U[n % U.length],
|
|
124
125
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
125
126
|
absoluteValues: l.values,
|
|
126
127
|
comment: l.comment || ""
|
|
127
|
-
}))), T = d(
|
|
128
|
-
|
|
129
|
-
function
|
|
130
|
-
return
|
|
128
|
+
}))), T = d(B.value);
|
|
129
|
+
Ue(() => B.value, (l) => T.value = l);
|
|
130
|
+
function Ze() {
|
|
131
|
+
return B.value.map((l) => ({
|
|
131
132
|
name: l.name,
|
|
132
133
|
color: l.color,
|
|
133
134
|
value: l.value
|
|
134
135
|
}));
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
-
function
|
|
138
|
-
const
|
|
137
|
+
const N = d([]), ze = d(null), Oe = d(null), V = d(!1);
|
|
138
|
+
function Ye(l) {
|
|
139
|
+
const n = B.value.find((v, g) => g === l);
|
|
139
140
|
let a = T.value.find((v, g) => g === l).value;
|
|
140
|
-
if (
|
|
141
|
+
if (N.value.includes(l)) {
|
|
141
142
|
let g = function() {
|
|
142
|
-
a > v ? (cancelAnimationFrame(
|
|
143
|
+
a > v ? (cancelAnimationFrame(ze.value), T.value = T.value.map((p, ve) => l === ve ? {
|
|
143
144
|
...p,
|
|
144
145
|
value: v
|
|
145
146
|
} : p), V.value = !1) : (V.value = !0, a += v * 0.025, T.value = T.value.map((p, ve) => l === ve ? {
|
|
146
147
|
...p,
|
|
147
148
|
value: a
|
|
148
|
-
} : p),
|
|
149
|
+
} : p), ze.value = requestAnimationFrame(g));
|
|
149
150
|
};
|
|
150
|
-
|
|
151
|
-
const v =
|
|
151
|
+
N.value = N.value.filter((p) => p !== l);
|
|
152
|
+
const v = n.value;
|
|
152
153
|
g();
|
|
153
|
-
} else if (
|
|
154
|
+
} else if (N.value.length < B.value.length - 1) {
|
|
154
155
|
let v = function() {
|
|
155
|
-
a < 0.1 ? (cancelAnimationFrame(
|
|
156
|
+
a < 0.1 ? (cancelAnimationFrame(Oe.value), N.value.push(l), T.value = T.value.map((g, p) => l === p ? {
|
|
156
157
|
...g,
|
|
157
158
|
value: 0
|
|
158
159
|
} : g), V.value = !1) : (V.value = !0, a /= 1.1, T.value = T.value.map((g, p) => l === p ? {
|
|
159
160
|
...g,
|
|
160
161
|
value: a
|
|
161
|
-
} : g),
|
|
162
|
+
} : g), Oe.value = requestAnimationFrame(v));
|
|
162
163
|
};
|
|
163
164
|
v();
|
|
164
165
|
}
|
|
@@ -168,27 +169,27 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
168
169
|
value: v.value
|
|
169
170
|
})));
|
|
170
171
|
}
|
|
171
|
-
const I = m(() => (T.value.forEach((l,
|
|
172
|
+
const I = m(() => (T.value.forEach((l, n) => {
|
|
172
173
|
if ([null, void 0].includes(l.values))
|
|
173
174
|
return {
|
|
174
175
|
...l,
|
|
175
176
|
values: []
|
|
176
177
|
};
|
|
177
|
-
}), T.value.map((l,
|
|
178
|
+
}), T.value.map((l, n) => ({
|
|
178
179
|
...l,
|
|
179
|
-
seriesIndex:
|
|
180
|
-
})).filter((l,
|
|
180
|
+
seriesIndex: n
|
|
181
|
+
})).filter((l, n) => !N.value.includes(n)))), Ae = m(() => A.dataset.map((l, n) => ({
|
|
181
182
|
name: l.name,
|
|
182
|
-
color:
|
|
183
|
+
color: Ee(l.color) || Te.value[n] || U[n] || U[n % U.length],
|
|
183
184
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
184
185
|
shape: "circle"
|
|
185
|
-
})).map((l,
|
|
186
|
+
})).map((l, n) => ({
|
|
186
187
|
...l,
|
|
187
|
-
proportion: l.value /
|
|
188
|
-
opacity:
|
|
189
|
-
segregate: () => !V.value &&
|
|
190
|
-
isSegregated:
|
|
191
|
-
}))),
|
|
188
|
+
proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
|
|
189
|
+
opacity: N.value.includes(n) ? 0.5 : 1,
|
|
190
|
+
segregate: () => !V.value && Ye(n),
|
|
191
|
+
isSegregated: N.value.includes(n)
|
|
192
|
+
}))), et = m(() => ({
|
|
192
193
|
cy: "donut-div-legend",
|
|
193
194
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
194
195
|
color: e.value.style.chart.legend.color,
|
|
@@ -196,31 +197,31 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
196
197
|
paddingBottom: 12,
|
|
197
198
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
198
199
|
})), C = m(() => {
|
|
199
|
-
const l = Math.min(
|
|
200
|
+
const l = Math.min(s.value.width / 3, s.value.height / 3);
|
|
200
201
|
return l < 55 ? 55 : l;
|
|
201
|
-
}), f = m(() =>
|
|
202
|
-
const l = Math.max(...I.value.map((t) => t.value)),
|
|
203
|
-
return
|
|
204
|
-
series:
|
|
202
|
+
}), f = m(() => pt({ series: I.value }, s.value.width / 2, s.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, K.value)), c = m(() => {
|
|
203
|
+
const l = Math.max(...I.value.map((t) => t.value)), n = I.value.map((t) => t.value / l);
|
|
204
|
+
return gt({
|
|
205
|
+
series: n,
|
|
205
206
|
center: {
|
|
206
|
-
x:
|
|
207
|
-
y:
|
|
207
|
+
x: s.value.width / 2,
|
|
208
|
+
y: s.value.height / 2
|
|
208
209
|
},
|
|
209
|
-
maxRadius: Math.min(
|
|
210
|
+
maxRadius: Math.min(s.value.width, s.value.height) / 3
|
|
210
211
|
});
|
|
211
212
|
});
|
|
212
|
-
function
|
|
213
|
-
return l.x >
|
|
213
|
+
function H(l) {
|
|
214
|
+
return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
-
return l.middlePoint.y >
|
|
216
|
+
function tt(l) {
|
|
217
|
+
return l.middlePoint.y > s.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
|
|
217
218
|
}
|
|
218
|
-
function
|
|
219
|
+
function O(l) {
|
|
219
220
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
220
221
|
}
|
|
221
|
-
function ne(l,
|
|
222
|
-
const t = l.value /
|
|
223
|
-
return isNaN(t) ? 0 :
|
|
222
|
+
function ne(l, n) {
|
|
223
|
+
const t = l.value / lt(n);
|
|
224
|
+
return isNaN(t) ? 0 : Y(
|
|
224
225
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
225
226
|
t * 100,
|
|
226
227
|
F({
|
|
@@ -231,20 +232,20 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
231
232
|
{ datapoint: l }
|
|
232
233
|
);
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
-
return [...l].map((
|
|
235
|
+
function lt(l) {
|
|
236
|
+
return [...l].map((n) => n.value).reduce((n, t) => n + t, 0);
|
|
236
237
|
}
|
|
237
|
-
const S = m(() => I.value.map((l) => l.value).reduce((l,
|
|
238
|
-
function
|
|
239
|
-
re.value = { datapoint: l, seriesIndex: t, config: e.value, series:
|
|
238
|
+
const S = m(() => I.value.map((l) => l.value).reduce((l, n) => l + n, 0)), Ne = m(() => S.value / I.value.length), Xe = m(() => (l) => V.value ? l.proportion * 100 : l.value / S.value * 100), re = d(null), Q = d(!1);
|
|
239
|
+
function Ie({ datapoint: l, relativeIndex: n, seriesIndex: t, show: a = !1 }) {
|
|
240
|
+
re.value = { datapoint: l, seriesIndex: t, config: e.value, series: B.value }, ae.value = a, P.value = n;
|
|
240
241
|
let v = "";
|
|
241
242
|
const g = e.value.style.chart.tooltip.customFormat;
|
|
242
|
-
if (Q.value = !1,
|
|
243
|
+
if (Q.value = !1, xt(g))
|
|
243
244
|
try {
|
|
244
245
|
const p = g({
|
|
245
246
|
seriesIndex: t,
|
|
246
247
|
datapoint: l,
|
|
247
|
-
series:
|
|
248
|
+
series: B.value,
|
|
248
249
|
config: e.value
|
|
249
250
|
});
|
|
250
251
|
typeof p == "string" && (se.value = p, Q.value = !0);
|
|
@@ -252,7 +253,7 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
252
253
|
console.warn("Custom format cannot be applied."), Q.value = !1;
|
|
253
254
|
}
|
|
254
255
|
if (!Q.value) {
|
|
255
|
-
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${
|
|
256
|
+
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${Y(
|
|
256
257
|
e.value.style.chart.layout.labels.value.formatter,
|
|
257
258
|
l.value,
|
|
258
259
|
F({
|
|
@@ -263,11 +264,11 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
263
264
|
}),
|
|
264
265
|
{
|
|
265
266
|
datapoint: l,
|
|
266
|
-
relativeIndex:
|
|
267
|
+
relativeIndex: n,
|
|
267
268
|
seriesIndex: t
|
|
268
269
|
}
|
|
269
270
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
270
|
-
const p =
|
|
271
|
+
const p = Y(
|
|
271
272
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
272
273
|
l.proportion * 100,
|
|
273
274
|
F({
|
|
@@ -277,7 +278,7 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
277
278
|
}),
|
|
278
279
|
{
|
|
279
280
|
datapoint: l,
|
|
280
|
-
relativeIndex:
|
|
281
|
+
relativeIndex: n,
|
|
281
282
|
seriesIndex: t
|
|
282
283
|
}
|
|
283
284
|
);
|
|
@@ -293,15 +294,15 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
293
294
|
const l = I.value.map((t) => ({
|
|
294
295
|
name: t.name,
|
|
295
296
|
color: t.color
|
|
296
|
-
})),
|
|
297
|
-
return { head: l, body:
|
|
297
|
+
})), n = I.value.map((t) => t.value);
|
|
298
|
+
return { head: l, body: n };
|
|
298
299
|
});
|
|
299
|
-
function
|
|
300
|
-
|
|
300
|
+
function De() {
|
|
301
|
+
rt(() => {
|
|
301
302
|
const l = D.value.head.map((a, v) => [[
|
|
302
303
|
a.name
|
|
303
|
-
], [D.value.body[v]], [isNaN(D.value.body[v] / S.value) ? "-" : D.value.body[v] / S.value * 100]]),
|
|
304
|
-
|
|
304
|
+
], [D.value.body[v]], [isNaN(D.value.body[v] / S.value) ? "-" : D.value.body[v] / S.value * 100]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Ct(n);
|
|
305
|
+
$t({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
305
306
|
});
|
|
306
307
|
}
|
|
307
308
|
const oe = m(() => {
|
|
@@ -309,7 +310,7 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
309
310
|
' <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>',
|
|
310
311
|
F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
311
312
|
"100%"
|
|
312
|
-
],
|
|
313
|
+
], n = D.value.head.map((v, g) => {
|
|
313
314
|
const p = F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
314
315
|
return [
|
|
315
316
|
{
|
|
@@ -339,72 +340,74 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
339
340
|
e.value.table.columnNames.percentage
|
|
340
341
|
],
|
|
341
342
|
head: l,
|
|
342
|
-
body:
|
|
343
|
+
body: n,
|
|
343
344
|
config: t
|
|
344
345
|
};
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
347
|
-
|
|
346
|
+
}), R = d(!1);
|
|
347
|
+
function at(l) {
|
|
348
|
+
R.value = l, ke.value += 1;
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((
|
|
350
|
+
const Me = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
351
|
+
function ot(l) {
|
|
352
|
+
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((n) => "-").join("");
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
de("selectDatapoint", { datapoint: l, index:
|
|
354
|
+
function M(l, n) {
|
|
355
|
+
de("selectDatapoint", { datapoint: l, index: n });
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function Be() {
|
|
357
358
|
y.value.showTable = !y.value.showTable;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
+
function Ve() {
|
|
360
361
|
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Ge() {
|
|
363
364
|
y.value.showTooltip = !y.value.showTooltip;
|
|
364
365
|
}
|
|
365
366
|
const ue = d(!1);
|
|
366
367
|
function ie() {
|
|
367
368
|
ue.value = !ue.value;
|
|
368
369
|
}
|
|
369
|
-
return
|
|
370
|
-
getData:
|
|
371
|
-
generatePdf:
|
|
372
|
-
generateCsv:
|
|
373
|
-
generateImage:
|
|
374
|
-
toggleTable:
|
|
375
|
-
toggleLabels:
|
|
376
|
-
toggleTooltip:
|
|
370
|
+
return qe({
|
|
371
|
+
getData: Ze,
|
|
372
|
+
generatePdf: Fe,
|
|
373
|
+
generateCsv: De,
|
|
374
|
+
generateImage: Le,
|
|
375
|
+
toggleTable: Be,
|
|
376
|
+
toggleLabels: Ve,
|
|
377
|
+
toggleTooltip: Ge,
|
|
377
378
|
toggleAnnotator: ie
|
|
378
|
-
}), (l,
|
|
379
|
+
}), (l, n) => (o(), r("div", {
|
|
379
380
|
ref_key: "donutChart",
|
|
380
|
-
ref:
|
|
381
|
-
class: ce(`vue-ui-donut ${
|
|
382
|
-
style:
|
|
383
|
-
id: `donut__${_.value}
|
|
381
|
+
ref: j,
|
|
382
|
+
class: ce(`vue-ui-donut ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
383
|
+
style: z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
384
|
+
id: `donut__${_.value}`,
|
|
385
|
+
onMouseenter: n[6] || (n[6] = () => u(Ce)(!0)),
|
|
386
|
+
onMouseleave: n[7] || (n[7] = () => u(Ce)(!1))
|
|
384
387
|
}, [
|
|
385
|
-
e.value.userOptions.buttons.annotator ? (o(), G(
|
|
388
|
+
e.value.userOptions.buttons.annotator ? (o(), G(It, {
|
|
386
389
|
key: 0,
|
|
387
|
-
parent:
|
|
390
|
+
parent: j.value,
|
|
388
391
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
389
392
|
color: e.value.style.chart.color,
|
|
390
393
|
active: ue.value,
|
|
391
394
|
onClose: ie
|
|
392
395
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
|
|
393
396
|
w(l.$slots, "userConfig", {}, void 0, !0),
|
|
394
|
-
|
|
397
|
+
Qe.value ? (o(), r("div", {
|
|
395
398
|
key: 1,
|
|
396
399
|
ref_key: "noTitle",
|
|
397
400
|
ref: pe,
|
|
398
401
|
class: "vue-data-ui-no-title-space",
|
|
399
402
|
style: "height:36px; width: 100%;background:transparent"
|
|
400
403
|
}, null, 512)) : i("", !0),
|
|
401
|
-
e.value.style.chart.title.text ? (o(),
|
|
404
|
+
e.value.style.chart.title.text ? (o(), r("div", {
|
|
402
405
|
key: 2,
|
|
403
406
|
ref_key: "chartTitle",
|
|
404
407
|
ref: he,
|
|
405
408
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
406
409
|
}, [
|
|
407
|
-
(o(), G(
|
|
410
|
+
(o(), G(Ft, {
|
|
408
411
|
key: `title_${ge.value}`,
|
|
409
412
|
config: {
|
|
410
413
|
title: {
|
|
@@ -418,14 +421,14 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
418
421
|
}
|
|
419
422
|
}, null, 8, ["config"]))
|
|
420
423
|
], 512)) : i("", !0),
|
|
421
|
-
e.value.userOptions.show && J.value ? (o(), G(
|
|
424
|
+
e.value.userOptions.show && J.value && (u($e) || u(xe)) ? (o(), G(Tt, {
|
|
422
425
|
ref_key: "details",
|
|
423
|
-
ref:
|
|
426
|
+
ref: Ke,
|
|
424
427
|
key: `user_option_${ke.value}`,
|
|
425
428
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
426
429
|
color: e.value.style.chart.color,
|
|
427
|
-
isPrinting:
|
|
428
|
-
isImaging:
|
|
430
|
+
isPrinting: u(Pe),
|
|
431
|
+
isImaging: u(Se),
|
|
429
432
|
uid: _.value,
|
|
430
433
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
431
434
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -434,22 +437,25 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
434
437
|
hasTable: e.value.userOptions.buttons.table,
|
|
435
438
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
436
439
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
437
|
-
isFullscreen:
|
|
438
|
-
chartElement:
|
|
440
|
+
isFullscreen: R.value,
|
|
441
|
+
chartElement: j.value,
|
|
439
442
|
position: e.value.userOptions.position,
|
|
440
443
|
isTooltip: y.value.showTooltip,
|
|
441
444
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
442
445
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
443
446
|
isAnnotation: ue.value,
|
|
444
|
-
onToggleFullscreen:
|
|
445
|
-
onGeneratePdf:
|
|
446
|
-
onGenerateCsv:
|
|
447
|
-
onGenerateImage:
|
|
448
|
-
onToggleTable:
|
|
449
|
-
onToggleLabels:
|
|
450
|
-
onToggleTooltip:
|
|
451
|
-
onToggleAnnotator: ie
|
|
452
|
-
|
|
447
|
+
onToggleFullscreen: at,
|
|
448
|
+
onGeneratePdf: u(Fe),
|
|
449
|
+
onGenerateCsv: De,
|
|
450
|
+
onGenerateImage: u(Le),
|
|
451
|
+
onToggleTable: Be,
|
|
452
|
+
onToggleLabels: Ve,
|
|
453
|
+
onToggleTooltip: Ge,
|
|
454
|
+
onToggleAnnotator: ie,
|
|
455
|
+
style: z({
|
|
456
|
+
visibility: u($e) ? u(xe) ? "visible" : "hidden" : "visible"
|
|
457
|
+
})
|
|
458
|
+
}, nt({ _: 2 }, [
|
|
453
459
|
l.$slots.optionTooltip ? {
|
|
454
460
|
name: "optionTooltip",
|
|
455
461
|
fn: $(() => [
|
|
@@ -506,58 +512,58 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
506
512
|
]),
|
|
507
513
|
key: "7"
|
|
508
514
|
} : void 0
|
|
509
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
|
|
510
|
-
J.value ? (o(),
|
|
515
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
516
|
+
J.value ? (o(), r("svg", {
|
|
511
517
|
key: 4,
|
|
512
|
-
xmlns:
|
|
513
|
-
class: ce({ "vue-data-ui-fullscreen--on":
|
|
514
|
-
viewBox: `0 0 ${
|
|
515
|
-
style:
|
|
518
|
+
xmlns: u(bt),
|
|
519
|
+
class: ce({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
520
|
+
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
521
|
+
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
516
522
|
}, [
|
|
517
|
-
|
|
518
|
-
e.value.type === "classic" ? (o(),
|
|
519
|
-
e.value.style.chart.useGradient ? (o(),
|
|
523
|
+
je(Xt),
|
|
524
|
+
e.value.type === "classic" ? (o(), r("defs", Ut, [
|
|
525
|
+
e.value.style.chart.useGradient ? (o(), r("radialGradient", {
|
|
520
526
|
key: 0,
|
|
521
527
|
id: `gradient_${_.value}`
|
|
522
528
|
}, [
|
|
523
529
|
h("stop", {
|
|
524
530
|
offset: "0%",
|
|
525
|
-
"stop-color":
|
|
531
|
+
"stop-color": u(ee)(e.value.style.chart.backgroundColor, 0),
|
|
526
532
|
"stop-opacity": "0"
|
|
527
|
-
}, null, 8,
|
|
533
|
+
}, null, 8, Ht),
|
|
528
534
|
h("stop", {
|
|
529
535
|
offset: `${(1 - K.value / C.value) * 100}%`,
|
|
530
|
-
"stop-color":
|
|
536
|
+
"stop-color": u(ee)("#FFFFFF", 0),
|
|
531
537
|
"stop-opacity": "0"
|
|
532
|
-
}, null, 8,
|
|
538
|
+
}, null, 8, Rt),
|
|
533
539
|
h("stop", {
|
|
534
540
|
offset: `${(1 - K.value / C.value / 2) * 100}%`,
|
|
535
|
-
"stop-color":
|
|
536
|
-
}, null, 8,
|
|
541
|
+
"stop-color": u(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
542
|
+
}, null, 8, Et),
|
|
537
543
|
h("stop", {
|
|
538
544
|
offset: "100%",
|
|
539
|
-
"stop-color":
|
|
545
|
+
"stop-color": u(ee)(e.value.style.chart.backgroundColor, 0),
|
|
540
546
|
"stop-opacity": "0"
|
|
541
|
-
}, null, 8,
|
|
542
|
-
], 8,
|
|
547
|
+
}, null, 8, Wt)
|
|
548
|
+
], 8, jt)) : i("", !0)
|
|
543
549
|
])) : i("", !0),
|
|
544
|
-
e.value.type === "polar" ? (o(),
|
|
545
|
-
(o(!0),
|
|
550
|
+
e.value.type === "polar" ? (o(), r("defs", qt, [
|
|
551
|
+
(o(!0), r(k, null, X(c.value, (t, a) => (o(), r("radialGradient", {
|
|
546
552
|
id: `polar_gradient_${a}_${_.value}`,
|
|
547
|
-
cx: t.middlePoint.x /
|
|
548
|
-
cy: t.middlePoint.y /
|
|
553
|
+
cx: t.middlePoint.x / s.value.width * 100 + "%",
|
|
554
|
+
cy: t.middlePoint.y / s.value.height * 100 + "%",
|
|
549
555
|
r: "62%"
|
|
550
556
|
}, [
|
|
551
557
|
h("stop", {
|
|
552
558
|
offset: "0%",
|
|
553
|
-
"stop-color":
|
|
559
|
+
"stop-color": u(mt)(f.value[a].color, 0.05),
|
|
554
560
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
555
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, Kt),
|
|
556
562
|
h("stop", {
|
|
557
563
|
offset: "100%",
|
|
558
564
|
"stop-color": f.value[a].color
|
|
559
|
-
}, null, 8,
|
|
560
|
-
], 8,
|
|
565
|
+
}, null, 8, Qt)
|
|
566
|
+
], 8, Jt))), 256))
|
|
561
567
|
])) : i("", !0),
|
|
562
568
|
h("defs", null, [
|
|
563
569
|
h("filter", {
|
|
@@ -571,9 +577,9 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
571
577
|
in: "SourceGraphic",
|
|
572
578
|
stdDeviation: 2,
|
|
573
579
|
id: `blur_std_${_.value}`
|
|
574
|
-
}, null, 8,
|
|
575
|
-
|
|
576
|
-
], 8,
|
|
580
|
+
}, null, 8, el),
|
|
581
|
+
tl
|
|
582
|
+
], 8, Zt),
|
|
577
583
|
h("filter", {
|
|
578
584
|
id: `shadow_${_.value}`,
|
|
579
585
|
"color-interpolation-filters": "sRGB"
|
|
@@ -584,8 +590,8 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
584
590
|
stdDeviation: "10",
|
|
585
591
|
"flood-opacity": "0.5",
|
|
586
592
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
587
|
-
}, null, 8,
|
|
588
|
-
], 8,
|
|
593
|
+
}, null, 8, al)
|
|
594
|
+
], 8, ll),
|
|
589
595
|
h("filter", {
|
|
590
596
|
id: `drop_shadow_${_.value}`,
|
|
591
597
|
"color-interpolation-filters": "sRGB",
|
|
@@ -600,26 +606,26 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
600
606
|
stdDeviation: "3",
|
|
601
607
|
"flood-opacity": "1",
|
|
602
608
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
603
|
-
}, null, 8,
|
|
604
|
-
], 8,
|
|
609
|
+
}, null, 8, ul)
|
|
610
|
+
], 8, ol)
|
|
605
611
|
]),
|
|
606
|
-
e.value.type === "classic" ? (o(!0),
|
|
607
|
-
|
|
612
|
+
e.value.type === "classic" ? (o(!0), r(k, { key: 2 }, X(f.value, (t, a) => (o(), r("g", null, [
|
|
613
|
+
O(t) && y.value.dataLabels.show ? (o(), r("path", {
|
|
608
614
|
key: 0,
|
|
609
|
-
d:
|
|
615
|
+
d: u(wt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, K.value),
|
|
610
616
|
stroke: t.color,
|
|
611
617
|
"stroke-width": "1",
|
|
612
618
|
"stroke-linecap": "round",
|
|
613
619
|
"stroke-linejoin": "round",
|
|
614
620
|
fill: "none",
|
|
615
621
|
filter: Z(a)
|
|
616
|
-
}, null, 8,
|
|
622
|
+
}, null, 8, sl)) : i("", !0)
|
|
617
623
|
]))), 256)) : i("", !0),
|
|
618
|
-
e.value.type === "polar" ? (o(!0),
|
|
619
|
-
|
|
624
|
+
e.value.type === "polar" ? (o(!0), r(k, { key: 3 }, X(f.value, (t, a) => (o(), r("g", null, [
|
|
625
|
+
O(t) && y.value.dataLabels.show ? (o(), r("line", {
|
|
620
626
|
key: 0,
|
|
621
|
-
x1:
|
|
622
|
-
y1:
|
|
627
|
+
x1: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
628
|
+
y1: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
623
629
|
x2: c.value[a].middlePoint.x,
|
|
624
630
|
y2: c.value[a].middlePoint.y,
|
|
625
631
|
stroke: t.color,
|
|
@@ -628,184 +634,184 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
628
634
|
"stroke-linejoin": "round",
|
|
629
635
|
fill: "none",
|
|
630
636
|
filter: Z(a)
|
|
631
|
-
}, null, 8,
|
|
637
|
+
}, null, 8, nl)) : i("", !0)
|
|
632
638
|
]))), 256)) : i("", !0),
|
|
633
|
-
e.value.type === "classic" ? (o(),
|
|
639
|
+
e.value.type === "classic" ? (o(), r("circle", {
|
|
634
640
|
key: 4,
|
|
635
|
-
cx:
|
|
636
|
-
cy:
|
|
641
|
+
cx: s.value.width / 2,
|
|
642
|
+
cy: s.value.height / 2,
|
|
637
643
|
r: C.value <= 0 ? 10 : C.value,
|
|
638
644
|
fill: e.value.style.chart.backgroundColor,
|
|
639
645
|
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${_.value})` : ""
|
|
640
|
-
}, null, 8,
|
|
641
|
-
S.value && e.value.type === "classic" ? (o(),
|
|
642
|
-
(o(!0),
|
|
646
|
+
}, null, 8, rl)) : i("", !0),
|
|
647
|
+
S.value && e.value.type === "classic" ? (o(), r(k, { key: 5 }, [
|
|
648
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
643
649
|
stroke: e.value.style.chart.backgroundColor,
|
|
644
650
|
d: t.arcSlice,
|
|
645
651
|
fill: "#FFFFFF"
|
|
646
|
-
}, null, 8,
|
|
647
|
-
(o(!0),
|
|
652
|
+
}, null, 8, il))), 256)),
|
|
653
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
648
654
|
class: "vue-ui-donut-arc-path",
|
|
649
655
|
d: t.arcSlice,
|
|
650
|
-
fill:
|
|
656
|
+
fill: u(ee)(t.color, 80),
|
|
651
657
|
stroke: e.value.style.chart.backgroundColor,
|
|
652
658
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
653
659
|
filter: Z(a)
|
|
654
|
-
}, null, 8,
|
|
660
|
+
}, null, 8, vl))), 256))
|
|
655
661
|
], 64)) : i("", !0),
|
|
656
|
-
S.value && e.value.type === "polar" ? (o(),
|
|
657
|
-
f.value.length > 1 ? (o(),
|
|
658
|
-
(o(!0),
|
|
662
|
+
S.value && e.value.type === "polar" ? (o(), r(k, { key: 6 }, [
|
|
663
|
+
f.value.length > 1 ? (o(), r("g", cl, [
|
|
664
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
659
665
|
stroke: e.value.style.chart.backgroundColor,
|
|
660
666
|
d: c.value[a].path,
|
|
661
667
|
fill: "#FFFFFF"
|
|
662
|
-
}, null, 8,
|
|
663
|
-
e.value.style.chart.layout.donut.useShadow ? (o(),
|
|
664
|
-
(o(!0),
|
|
668
|
+
}, null, 8, dl))), 256)),
|
|
669
|
+
e.value.style.chart.layout.donut.useShadow ? (o(), r("g", hl, [
|
|
670
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
665
671
|
class: "vue-ui-donut-arc-path",
|
|
666
672
|
d: c.value[a].path,
|
|
667
673
|
fill: "transparent",
|
|
668
674
|
stroke: e.value.style.chart.backgroundColor,
|
|
669
675
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
670
676
|
filter: `url(#drop_shadow_${_.value})`
|
|
671
|
-
}, null, 8,
|
|
677
|
+
}, null, 8, yl))), 256))
|
|
672
678
|
])) : i("", !0),
|
|
673
|
-
(o(!0),
|
|
679
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
674
680
|
class: "vue-ui-donut-arc-path",
|
|
675
681
|
d: c.value[a].path,
|
|
676
682
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${_.value})` : t.color,
|
|
677
683
|
stroke: e.value.style.chart.backgroundColor,
|
|
678
684
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
679
685
|
filter: Z(a)
|
|
680
|
-
}, null, 8,
|
|
681
|
-
])) : (o(),
|
|
686
|
+
}, null, 8, fl))), 256))
|
|
687
|
+
])) : (o(), r("g", pl, [
|
|
682
688
|
h("circle", {
|
|
683
|
-
cx:
|
|
684
|
-
cy:
|
|
689
|
+
cx: s.value.width / 2,
|
|
690
|
+
cy: s.value.height / 2,
|
|
685
691
|
r: C.value,
|
|
686
692
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${_.value})` : f.value[0].color,
|
|
687
693
|
stroke: e.value.style.chart.backgroundColor,
|
|
688
694
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
689
|
-
}, null, 8,
|
|
695
|
+
}, null, 8, gl)
|
|
690
696
|
]))
|
|
691
|
-
], 64)) : (o(),
|
|
697
|
+
], 64)) : (o(), r("circle", {
|
|
692
698
|
key: 7,
|
|
693
|
-
cx:
|
|
694
|
-
cy:
|
|
699
|
+
cx: s.value.width / 2,
|
|
700
|
+
cy: s.value.height / 2,
|
|
695
701
|
r: C.value <= 0 ? 10 : C.value,
|
|
696
702
|
fill: "transparent",
|
|
697
703
|
stroke: e.value.style.chart.backgroundColor
|
|
698
|
-
}, null, 8,
|
|
699
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(),
|
|
704
|
+
}, null, 8, bl)),
|
|
705
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), r("circle", {
|
|
700
706
|
key: 8,
|
|
701
|
-
cx:
|
|
702
|
-
cy:
|
|
707
|
+
cx: s.value.width / 2,
|
|
708
|
+
cy: s.value.height / 2,
|
|
703
709
|
r: (
|
|
704
710
|
/* This might require adjustments */
|
|
705
711
|
C.value <= 0 ? 10 : C.value
|
|
706
712
|
),
|
|
707
713
|
fill: `url(#gradient_${_.value})`
|
|
708
|
-
}, null, 8,
|
|
709
|
-
S.value ? (o(),
|
|
710
|
-
f.value.length > 1 || e.value.type === "classic" ? (o(),
|
|
711
|
-
(o(!0),
|
|
714
|
+
}, null, 8, ml)) : i("", !0),
|
|
715
|
+
S.value ? (o(), r(k, { key: 9 }, [
|
|
716
|
+
f.value.length > 1 || e.value.type === "classic" ? (o(), r("g", wl, [
|
|
717
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("path", {
|
|
712
718
|
"data-cy-donut-trap": "",
|
|
713
719
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
714
720
|
fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
715
|
-
onMouseenter: (v) =>
|
|
721
|
+
onMouseenter: (v) => Ie({
|
|
716
722
|
datapoint: t,
|
|
717
723
|
relativeIndex: a,
|
|
718
724
|
seriesIndex: t.seriesIndex,
|
|
719
725
|
show: !0
|
|
720
726
|
}),
|
|
721
|
-
onMouseleave:
|
|
727
|
+
onMouseleave: n[0] || (n[0] = (v) => {
|
|
722
728
|
ae.value = !1, P.value = null;
|
|
723
729
|
}),
|
|
724
|
-
onClick: (v) =>
|
|
725
|
-
}, null, 40,
|
|
726
|
-
])) : (o(),
|
|
730
|
+
onClick: (v) => M(t, a)
|
|
731
|
+
}, null, 40, kl))), 256))
|
|
732
|
+
])) : (o(), r("g", _l, [
|
|
727
733
|
h("circle", {
|
|
728
|
-
cx:
|
|
729
|
-
cy:
|
|
734
|
+
cx: s.value.width / 2,
|
|
735
|
+
cy: s.value.height / 2,
|
|
730
736
|
r: C.value,
|
|
731
737
|
fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
|
|
732
738
|
"data-cy-donut-trap": "",
|
|
733
|
-
onMouseenter:
|
|
739
|
+
onMouseenter: n[1] || (n[1] = (t) => Ie({
|
|
734
740
|
datapoint: f.value[0],
|
|
735
741
|
relativeIndex: 0,
|
|
736
742
|
seriesIndex: f.value[0].seriesIndex,
|
|
737
743
|
show: !0
|
|
738
744
|
})),
|
|
739
|
-
onMouseleave:
|
|
745
|
+
onMouseleave: n[2] || (n[2] = (t) => {
|
|
740
746
|
ae.value = !1, P.value = null;
|
|
741
747
|
}),
|
|
742
|
-
onClick:
|
|
743
|
-
}, null, 40,
|
|
748
|
+
onClick: n[3] || (n[3] = (t) => M(f.value[0], l.i))
|
|
749
|
+
}, null, 40, xl)
|
|
744
750
|
]))
|
|
745
751
|
], 64)) : i("", !0),
|
|
746
|
-
e.value.type === "classic" ? (o(),
|
|
747
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(),
|
|
752
|
+
e.value.type === "classic" ? (o(), r(k, { key: 10 }, [
|
|
753
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
748
754
|
key: 0,
|
|
749
755
|
"text-anchor": "middle",
|
|
750
|
-
x:
|
|
751
|
-
y:
|
|
756
|
+
x: s.value.width / 2,
|
|
757
|
+
y: s.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
752
758
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
753
759
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
754
|
-
style:
|
|
755
|
-
}, x(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
756
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (o(),
|
|
760
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
761
|
+
}, x(e.value.style.chart.layout.labels.hollow.total.text), 13, Cl)) : i("", !0),
|
|
762
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
757
763
|
key: 1,
|
|
758
764
|
"text-anchor": "middle",
|
|
759
|
-
x:
|
|
760
|
-
y:
|
|
765
|
+
x: s.value.width / 2,
|
|
766
|
+
y: s.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
761
767
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
762
768
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
763
|
-
style:
|
|
764
|
-
}, x(
|
|
769
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
770
|
+
}, x(u(Y)(
|
|
765
771
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
766
772
|
S.value,
|
|
767
|
-
|
|
773
|
+
u(F)({
|
|
768
774
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
769
775
|
v: S.value,
|
|
770
776
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
771
777
|
})
|
|
772
|
-
)), 13,
|
|
773
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(),
|
|
778
|
+
)), 13, $l)) : i("", !0),
|
|
779
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
774
780
|
key: 2,
|
|
775
781
|
"text-anchor": "middle",
|
|
776
|
-
x:
|
|
777
|
-
y:
|
|
782
|
+
x: s.value.width / 2,
|
|
783
|
+
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
778
784
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
779
785
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
780
|
-
style:
|
|
781
|
-
}, x(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
782
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (o(),
|
|
786
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
787
|
+
}, x(e.value.style.chart.layout.labels.hollow.average.text), 13, Pl)) : i("", !0),
|
|
788
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (o(), r("text", {
|
|
783
789
|
key: 3,
|
|
784
790
|
"text-anchor": "middle",
|
|
785
|
-
x:
|
|
786
|
-
y:
|
|
791
|
+
x: s.value.width / 2,
|
|
792
|
+
y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
787
793
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
788
794
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
789
|
-
style:
|
|
790
|
-
}, x(V.value ? "--" :
|
|
795
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
796
|
+
}, x(V.value ? "--" : u(Y)(
|
|
791
797
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
792
|
-
|
|
793
|
-
|
|
798
|
+
Ne.value,
|
|
799
|
+
u(F)({
|
|
794
800
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
795
|
-
v:
|
|
801
|
+
v: Ne.value,
|
|
796
802
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
797
803
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
798
804
|
})
|
|
799
|
-
)), 13,
|
|
805
|
+
)), 13, Sl)) : i("", !0)
|
|
800
806
|
], 64)) : i("", !0),
|
|
801
|
-
(o(!0),
|
|
807
|
+
(o(!0), r(k, null, X(f.value, (t, a) => (o(), r("g", {
|
|
802
808
|
filter: Z(a),
|
|
803
809
|
class: ce({ animated: e.value.useCssAnimation })
|
|
804
810
|
}, [
|
|
805
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(),
|
|
806
|
-
(o(),
|
|
807
|
-
x:
|
|
808
|
-
y:
|
|
811
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), r("g", Ll, [
|
|
812
|
+
(o(), r("foreignObject", {
|
|
813
|
+
x: u(b)(t, !0).anchor === "end" ? u(b)(t).x - 120 : u(b)(t, !0).anchor === "middle" ? u(b)(t).x - 60 : u(b)(t).x,
|
|
814
|
+
y: u(te)(t) - (Me.value ? 20 : 0),
|
|
809
815
|
width: "120",
|
|
810
816
|
height: "60",
|
|
811
817
|
style: { overflow: "visible" }
|
|
@@ -814,143 +820,143 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
814
820
|
w(l.$slots, "dataLabel", E(W({
|
|
815
821
|
datapoint: t,
|
|
816
822
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
|
|
817
|
-
isSafari:
|
|
818
|
-
isVisible:
|
|
819
|
-
textAlign:
|
|
820
|
-
flexAlign:
|
|
823
|
+
isSafari: Me.value,
|
|
824
|
+
isVisible: O(t) && y.value.dataLabels.show,
|
|
825
|
+
textAlign: u(b)(t, !0, 16, !0).anchor,
|
|
826
|
+
flexAlign: u(b)(t, !0, 16).anchor,
|
|
821
827
|
percentage: ne(t, f.value)
|
|
822
828
|
})), void 0, !0)
|
|
823
829
|
])
|
|
824
|
-
], 8,
|
|
825
|
-
])) : (o(),
|
|
826
|
-
e.value.type === "classic" ? (o(),
|
|
827
|
-
|
|
830
|
+
], 8, Tl))
|
|
831
|
+
])) : (o(), r("g", zl, [
|
|
832
|
+
e.value.type === "classic" ? (o(), r(k, { key: 0 }, [
|
|
833
|
+
O(t) && y.value.dataLabels.show ? (o(), r("circle", {
|
|
828
834
|
key: 0,
|
|
829
|
-
cx:
|
|
830
|
-
cy:
|
|
835
|
+
cx: u(b)(t).x,
|
|
836
|
+
cy: u(te)(t) - 3.5,
|
|
831
837
|
fill: t.color,
|
|
832
838
|
stroke: e.value.style.chart.backgroundColor,
|
|
833
839
|
"stroke-width": 1,
|
|
834
840
|
r: 3,
|
|
835
841
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${_.value})`,
|
|
836
|
-
onClick: (v) =>
|
|
837
|
-
}, null, 8,
|
|
842
|
+
onClick: (v) => M(t, a)
|
|
843
|
+
}, null, 8, Ol)) : i("", !0)
|
|
838
844
|
], 64)) : i("", !0),
|
|
839
|
-
e.value.type === "polar" ? (o(),
|
|
840
|
-
|
|
845
|
+
e.value.type === "polar" ? (o(), r(k, { key: 1 }, [
|
|
846
|
+
O(t) && y.value.dataLabels.show ? (o(), r("circle", {
|
|
841
847
|
key: 0,
|
|
842
|
-
cx:
|
|
843
|
-
cy:
|
|
848
|
+
cx: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
849
|
+
cy: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
844
850
|
fill: t.color,
|
|
845
851
|
stroke: e.value.style.chart.backgroundColor,
|
|
846
852
|
"stroke-width": 1,
|
|
847
853
|
r: 3,
|
|
848
854
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${_.value})`,
|
|
849
|
-
onClick: (v) =>
|
|
850
|
-
}, null, 8,
|
|
855
|
+
onClick: (v) => M(t, a)
|
|
856
|
+
}, null, 8, Yl)) : i("", !0)
|
|
851
857
|
], 64)) : i("", !0),
|
|
852
|
-
e.value.type === "classic" ? (o(),
|
|
853
|
-
|
|
858
|
+
e.value.type === "classic" ? (o(), r(k, { key: 2 }, [
|
|
859
|
+
O(t) && y.value.dataLabels.show ? (o(), r("text", {
|
|
854
860
|
key: 0,
|
|
855
|
-
"text-anchor":
|
|
856
|
-
x:
|
|
857
|
-
y:
|
|
861
|
+
"text-anchor": u(b)(t, !0, 12).anchor,
|
|
862
|
+
x: u(b)(t, !0, 12).x,
|
|
863
|
+
y: u(te)(t),
|
|
858
864
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
859
865
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
860
|
-
style:
|
|
861
|
-
onClick: (v) =>
|
|
862
|
-
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${
|
|
866
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
867
|
+
onClick: (v) => M(t, a)
|
|
868
|
+
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${u(Y)(
|
|
863
869
|
e.value.style.chart.layout.labels.value.formatter,
|
|
864
870
|
t.value,
|
|
865
|
-
|
|
871
|
+
u(F)({
|
|
866
872
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
867
873
|
v: t.value,
|
|
868
874
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
869
875
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
870
876
|
}),
|
|
871
877
|
{ datapoint: t }
|
|
872
|
-
)})` : ""), 13,
|
|
873
|
-
|
|
878
|
+
)})` : ""), 13, Al)) : i("", !0),
|
|
879
|
+
O(t) && y.value.dataLabels.show ? (o(), r("text", {
|
|
874
880
|
key: 1,
|
|
875
|
-
"text-anchor":
|
|
876
|
-
x:
|
|
877
|
-
y:
|
|
881
|
+
"text-anchor": u(b)(t).anchor,
|
|
882
|
+
x: u(b)(t, !0, 12).x,
|
|
883
|
+
y: u(te)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
878
884
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
879
885
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
880
|
-
style:
|
|
881
|
-
onClick: (v) =>
|
|
882
|
-
}, x(t.name), 13,
|
|
886
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
887
|
+
onClick: (v) => M(t, a)
|
|
888
|
+
}, x(t.name), 13, Nl)) : i("", !0)
|
|
883
889
|
], 64)) : i("", !0),
|
|
884
|
-
e.value.type === "polar" ? (o(),
|
|
885
|
-
|
|
890
|
+
e.value.type === "polar" ? (o(), r(k, { key: 3 }, [
|
|
891
|
+
O(t) && y.value.dataLabels.show ? (o(), r("text", {
|
|
886
892
|
key: 0,
|
|
887
|
-
"text-anchor":
|
|
888
|
-
x:
|
|
889
|
-
y:
|
|
893
|
+
"text-anchor": H(c.value[a].middlePoint),
|
|
894
|
+
x: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
895
|
+
y: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
|
|
890
896
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
891
897
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
892
|
-
style:
|
|
893
|
-
onClick: (v) =>
|
|
894
|
-
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${
|
|
898
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
899
|
+
onClick: (v) => M(t, a)
|
|
900
|
+
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${u(Y)(
|
|
895
901
|
e.value.style.chart.layout.labels.value.formatter,
|
|
896
902
|
t.value,
|
|
897
|
-
|
|
903
|
+
u(F)({
|
|
898
904
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
899
905
|
v: t.value,
|
|
900
906
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
901
907
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
902
908
|
}),
|
|
903
909
|
{ datapoint: t }
|
|
904
|
-
)})` : ""), 13,
|
|
905
|
-
|
|
910
|
+
)})` : ""), 13, Xl)) : i("", !0),
|
|
911
|
+
O(t) && y.value.dataLabels.show ? (o(), r("text", {
|
|
906
912
|
key: 1,
|
|
907
|
-
"text-anchor":
|
|
908
|
-
x:
|
|
909
|
-
y:
|
|
913
|
+
"text-anchor": H(c.value[a].middlePoint),
|
|
914
|
+
x: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
|
|
915
|
+
y: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
910
916
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
911
917
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
912
|
-
style:
|
|
913
|
-
onClick: (v) =>
|
|
914
|
-
}, x(t.name), 13,
|
|
918
|
+
style: z(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
919
|
+
onClick: (v) => M(t, a)
|
|
920
|
+
}, x(t.name), 13, Il)) : i("", !0)
|
|
915
921
|
], 64)) : i("", !0)
|
|
916
922
|
])),
|
|
917
|
-
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(),
|
|
918
|
-
|
|
923
|
+
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), r("g", Dl, [
|
|
924
|
+
O(t) && e.value.type === "classic" ? (o(), r("foreignObject", {
|
|
919
925
|
key: 0,
|
|
920
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
921
|
-
y:
|
|
926
|
+
x: e.value.style.chart.comments.offsetX + (u(b)(t, !0).anchor === "end" ? u(b)(t).x - e.value.style.chart.comments.width : u(b)(t, !0).anchor === "middle" ? u(b)(t).x - e.value.style.chart.comments.width / 2 : u(b)(t).x),
|
|
927
|
+
y: u(te)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
922
928
|
width: e.value.style.chart.comments.width,
|
|
923
929
|
height: "200",
|
|
924
930
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
925
931
|
}, [
|
|
926
932
|
h("div", null, [
|
|
927
933
|
w(l.$slots, "plot-comment", {
|
|
928
|
-
plot: { ...t, textAlign:
|
|
934
|
+
plot: { ...t, textAlign: u(b)(t, !0, 16, !0).anchor, flexAlign: u(b)(t, !0, 16).anchor }
|
|
929
935
|
}, void 0, !0)
|
|
930
936
|
])
|
|
931
|
-
], 8,
|
|
932
|
-
|
|
937
|
+
], 8, Ml)) : i("", !0),
|
|
938
|
+
O(t) && e.value.type === "polar" ? (o(), r("foreignObject", {
|
|
933
939
|
key: 1,
|
|
934
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
935
|
-
y:
|
|
940
|
+
x: e.value.style.chart.comments.offsetX + (H(c.value[a].middlePoint) === "end" ? u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : H(c.value[a].middlePoint) === "middle" ? u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
|
|
941
|
+
y: tt(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
936
942
|
width: e.value.style.chart.comments.width,
|
|
937
943
|
height: "200",
|
|
938
944
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
939
945
|
}, [
|
|
940
946
|
h("div", null, [
|
|
941
947
|
w(l.$slots, "plot-comment", {
|
|
942
|
-
plot: { ...t, textAlign:
|
|
948
|
+
plot: { ...t, textAlign: H(c.value[a].middlePoint), flexAlign: H(c.value[a].middlePoint) }
|
|
943
949
|
}, void 0, !0)
|
|
944
950
|
])
|
|
945
|
-
], 8,
|
|
951
|
+
], 8, Bl)) : i("", !0)
|
|
946
952
|
])) : i("", !0)
|
|
947
|
-
], 10,
|
|
948
|
-
w(l.$slots, "svg", { svg:
|
|
949
|
-
], 14,
|
|
950
|
-
l.$slots.watermark ? (o(),
|
|
951
|
-
w(l.$slots, "watermark", E(W({ isPrinting:
|
|
953
|
+
], 10, Fl))), 256)),
|
|
954
|
+
w(l.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
955
|
+
], 14, Gt)) : i("", !0),
|
|
956
|
+
l.$slots.watermark ? (o(), r("div", Vl, [
|
|
957
|
+
w(l.$slots, "watermark", E(W({ isPrinting: u(Pe) || u(Se) })), void 0, !0)
|
|
952
958
|
])) : i("", !0),
|
|
953
|
-
J.value ? i("", !0) : (o(), G(
|
|
959
|
+
J.value ? i("", !0) : (o(), G(At, {
|
|
954
960
|
key: 6,
|
|
955
961
|
config: {
|
|
956
962
|
type: "donut",
|
|
@@ -967,21 +973,21 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
967
973
|
ref_key: "chartLegend",
|
|
968
974
|
ref: ye
|
|
969
975
|
}, [
|
|
970
|
-
e.value.style.chart.legend.show ? (o(), G(
|
|
976
|
+
e.value.style.chart.legend.show ? (o(), G(Yt, {
|
|
971
977
|
key: `legend_${me.value}`,
|
|
972
|
-
legendSet:
|
|
973
|
-
config:
|
|
974
|
-
onClickMarker:
|
|
978
|
+
legendSet: Ae.value,
|
|
979
|
+
config: et.value,
|
|
980
|
+
onClickMarker: n[4] || (n[4] = ({ i: t }) => Ye(t))
|
|
975
981
|
}, {
|
|
976
982
|
item: $(({ legend: t, index: a }) => [
|
|
977
983
|
h("div", {
|
|
978
|
-
style:
|
|
984
|
+
style: z(`opacity:${N.value.includes(a) ? 0.5 : 1}`),
|
|
979
985
|
onClick: (v) => t.segregate()
|
|
980
986
|
}, [
|
|
981
|
-
|
|
987
|
+
He(x(t.name) + ": " + x(u(Y)(
|
|
982
988
|
e.value.style.chart.layout.labels.value.formatter,
|
|
983
989
|
t.value,
|
|
984
|
-
|
|
990
|
+
u(F)({
|
|
985
991
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
986
992
|
v: t.value,
|
|
987
993
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -992,22 +998,22 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
992
998
|
index: a
|
|
993
999
|
}
|
|
994
1000
|
)) + " ", 1),
|
|
995
|
-
|
|
1001
|
+
N.value.includes(a) ? (o(), r("span", jl, " ( " + x(ot(t.proportion * 100)) + " % ) ", 1)) : (o(), r("span", Ul, " (" + x(isNaN(t.value / S.value) ? "-" : u(Y)(
|
|
996
1002
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
v:
|
|
1003
|
+
Xe.value(t),
|
|
1004
|
+
u(F)({
|
|
1005
|
+
v: Xe.value(t),
|
|
1000
1006
|
s: "%",
|
|
1001
1007
|
r: e.value.style.chart.legend.roundingPercentage
|
|
1002
1008
|
})
|
|
1003
1009
|
)) + ") ", 1))
|
|
1004
|
-
], 12,
|
|
1010
|
+
], 12, Gl)
|
|
1005
1011
|
]),
|
|
1006
1012
|
_: 1
|
|
1007
1013
|
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
1008
|
-
w(l.$slots, "legend", { legend:
|
|
1014
|
+
w(l.$slots, "legend", { legend: Ae.value }, void 0, !0)
|
|
1009
1015
|
], 512),
|
|
1010
|
-
l.$slots.source ? (o(),
|
|
1016
|
+
l.$slots.source ? (o(), r("div", {
|
|
1011
1017
|
key: 7,
|
|
1012
1018
|
ref_key: "source",
|
|
1013
1019
|
ref: fe,
|
|
@@ -1015,7 +1021,7 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
1015
1021
|
}, [
|
|
1016
1022
|
w(l.$slots, "source", {}, void 0, !0)
|
|
1017
1023
|
], 512)) : i("", !0),
|
|
1018
|
-
|
|
1024
|
+
je(Ot, {
|
|
1019
1025
|
show: y.value.showTooltip && ae.value,
|
|
1020
1026
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1021
1027
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1026,10 +1032,10 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
1026
1032
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1027
1033
|
position: e.value.style.chart.tooltip.position,
|
|
1028
1034
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1029
|
-
parent:
|
|
1035
|
+
parent: j.value,
|
|
1030
1036
|
content: se.value,
|
|
1031
1037
|
isCustom: Q.value,
|
|
1032
|
-
isFullscreen:
|
|
1038
|
+
isFullscreen: R.value
|
|
1033
1039
|
}, {
|
|
1034
1040
|
"tooltip-before": $(() => [
|
|
1035
1041
|
w(l.$slots, "tooltip-before", E(W({ ...re.value })), void 0, !0)
|
|
@@ -1039,7 +1045,7 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
1039
1045
|
]),
|
|
1040
1046
|
_: 3
|
|
1041
1047
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
1042
|
-
J.value ? (o(), G(
|
|
1048
|
+
J.value ? (o(), G(Nt, {
|
|
1043
1049
|
key: 8,
|
|
1044
1050
|
hideDetails: "",
|
|
1045
1051
|
config: {
|
|
@@ -1056,34 +1062,34 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
1056
1062
|
}
|
|
1057
1063
|
}, {
|
|
1058
1064
|
content: $(() => [
|
|
1059
|
-
(o(), G(
|
|
1065
|
+
(o(), G(zt, {
|
|
1060
1066
|
key: `table_${be.value}`,
|
|
1061
1067
|
colNames: oe.value.colNames,
|
|
1062
1068
|
head: oe.value.head,
|
|
1063
1069
|
body: oe.value.body,
|
|
1064
1070
|
config: oe.value.config,
|
|
1065
1071
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1066
|
-
onClose:
|
|
1072
|
+
onClose: n[5] || (n[5] = (t) => y.value.showTable = !1)
|
|
1067
1073
|
}, {
|
|
1068
1074
|
th: $(({ th: t }) => [
|
|
1069
1075
|
h("div", {
|
|
1070
1076
|
innerHTML: t,
|
|
1071
1077
|
style: { display: "flex", "align-items": "center" }
|
|
1072
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, Hl)
|
|
1073
1079
|
]),
|
|
1074
1080
|
td: $(({ td: t }) => [
|
|
1075
|
-
|
|
1081
|
+
He(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(Y)(
|
|
1076
1082
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1077
1083
|
t,
|
|
1078
|
-
|
|
1084
|
+
u(F)({
|
|
1079
1085
|
v: t,
|
|
1080
1086
|
s: "%",
|
|
1081
1087
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1082
1088
|
})
|
|
1083
|
-
) :
|
|
1089
|
+
) : u(Y)(
|
|
1084
1090
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1085
1091
|
t,
|
|
1086
|
-
|
|
1092
|
+
u(F)({
|
|
1087
1093
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1088
1094
|
v: t,
|
|
1089
1095
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1096,9 +1102,9 @@ const Xt = (q) => (st("data-v-e317c02f"), q = q(), nt(), q), It = ["id"], Dt = [
|
|
|
1096
1102
|
]),
|
|
1097
1103
|
_: 1
|
|
1098
1104
|
}, 8, ["config"])) : i("", !0)
|
|
1099
|
-
],
|
|
1105
|
+
], 46, Vt));
|
|
1100
1106
|
}
|
|
1101
|
-
},
|
|
1107
|
+
}, ra = /* @__PURE__ */ Mt(Rl, [["__scopeId", "data-v-d4fdff95"]]);
|
|
1102
1108
|
export {
|
|
1103
|
-
|
|
1109
|
+
ra as default
|
|
1104
1110
|
};
|