vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { computed 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 {
|
|
14
|
-
|
|
1
|
+
import { computed as _, ref as d, onMounted as Ze, onBeforeUnmount as et, watch as De, openBlock as o, createElementBlock as n, normalizeClass as ce, normalizeStyle as Y, createBlock as V, createCommentVNode as v, renderSlot as m, unref as s, createSlots as tt, withCtx as P, normalizeProps as U, guardReactiveProps as E, createVNode as Be, createElementVNode as h, Fragment as w, renderList as O, toDisplayString as x, createTextVNode as Me, nextTick as lt, pushScopeId as at, popScopeId as ot } from "vue";
|
|
2
|
+
import { u as ut, o as st, e as Ge, g as nt, c as rt, b as it, d as Ve, p as j, m as vt, G as ct, f as L, X as dt, s as ee, w as ht, j as yt, H as F, i as A, k as b, n as te, t as ft, a as pt, x as gt, q as bt, r as mt } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as wt, u as kt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as _t } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { u as xt, U as Ct } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { D as $t } from "./DataTable-DYqC2pqu.js";
|
|
7
|
+
import { _ as Pt } from "./Tooltip-Cz24YLfw.js";
|
|
8
|
+
import { L as St } from "./Legend-DNgTCgEK.js";
|
|
9
|
+
import Lt from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-DfUfL2dI.js";
|
|
11
|
+
import { u as je } from "./useNestedProp-B33hazbH.js";
|
|
12
|
+
import { _ as Tt } from "./PackageVersion-VkaUzgmt.js";
|
|
13
|
+
import { P as zt } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const At = (W) => (at("data-v-f76d6ac3"), W = W(), ot(), W), Xt = ["id"], Nt = ["xmlns", "viewBox"], Ot = { key: 0 }, It = ["id"], Dt = ["stop-color"], Bt = ["offset", "stop-color"], Mt = ["offset", "stop-color"], Gt = ["stop-color"], Vt = { key: 1 }, jt = ["id", "cx", "cy"], Ht = ["stop-color", "stop-opacity"], Rt = ["stop-color"], Ut = ["id"], Et = ["id"], Wt = /* @__PURE__ */ At(() => /* @__PURE__ */ h("feColorMatrix", {
|
|
15
16
|
type: "saturate",
|
|
16
17
|
values: "0"
|
|
17
|
-
}, null, -1)),
|
|
18
|
-
key:
|
|
18
|
+
}, null, -1)), qt = ["id"], Jt = ["flood-color"], Kt = ["id"], Qt = ["flood-color"], Zt = ["d", "stroke", "filter"], el = ["x1", "y1", "x2", "y2", "stroke", "filter"], tl = ["cx", "cy", "r", "fill", "filter"], ll = ["stroke", "d"], al = ["d", "fill", "stroke", "stroke-width", "filter"], ol = { key: 0 }, ul = ["stroke", "d"], sl = { key: 0 }, nl = ["d", "stroke", "stroke-width", "filter"], rl = ["d", "fill", "stroke", "stroke-width", "filter"], il = { key: 1 }, vl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], cl = ["cx", "cy", "r", "stroke"], dl = ["cx", "cy", "r", "fill"], hl = { key: 0 }, yl = ["d", "fill", "onMouseenter", "onClick"], fl = { key: 1 }, pl = ["cx", "cy", "r", "fill"], gl = ["x", "y", "fill", "font-size"], bl = ["x", "y", "fill", "font-size"], ml = ["x", "y", "fill", "font-size"], wl = ["x", "y", "fill", "font-size"], kl = ["filter"], _l = { key: 0 }, xl = ["x", "y"], Cl = { key: 1 }, $l = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Pl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Sl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Ll = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Fl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Tl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], zl = { key: 2 }, Yl = ["x", "y", "width"], Al = ["x", "y", "width"], Xl = {
|
|
19
|
+
key: 4,
|
|
19
20
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
21
|
+
}, Nl = ["onClick"], Ol = {
|
|
21
22
|
key: 0,
|
|
22
23
|
style: { "font-variant-numeric": "tabular-nums" }
|
|
23
|
-
},
|
|
24
|
+
}, Il = { key: 1 }, Dl = ["innerHTML"], Bl = {
|
|
24
25
|
__name: "vue-ui-donut",
|
|
25
26
|
props: {
|
|
26
27
|
config: {
|
|
@@ -37,30 +38,30 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
emits: ["selectLegend", "selectDatapoint"],
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
41
|
+
setup(W, { expose: He, emit: de }) {
|
|
42
|
+
const X = W, { vue_ui_donut: Re } = ut(), q = _({
|
|
42
43
|
get() {
|
|
43
|
-
return !!
|
|
44
|
+
return !!X.dataset && X.dataset.length;
|
|
44
45
|
},
|
|
45
46
|
set(l) {
|
|
46
47
|
return l;
|
|
47
48
|
}
|
|
48
|
-
}),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}),
|
|
49
|
+
}), H = d(null), he = d(null), ye = d(null), le = d(null), fe = d(null), pe = d(0), ge = d(0), be = d(0);
|
|
50
|
+
Ze(() => {
|
|
51
|
+
me();
|
|
52
|
+
}), et(() => {
|
|
52
53
|
le.value && le.value.disconnect();
|
|
53
54
|
});
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
55
|
+
function me() {
|
|
56
|
+
if (st(X.dataset) ? Ge({
|
|
56
57
|
componentName: "VueUiDonut",
|
|
57
58
|
type: "dataset"
|
|
58
|
-
}) :
|
|
59
|
-
|
|
59
|
+
}) : X.dataset.forEach((l, r) => {
|
|
60
|
+
nt({
|
|
60
61
|
datasetObject: l,
|
|
61
62
|
requiredAttributes: ["name", "values"]
|
|
62
63
|
}).forEach((t) => {
|
|
63
|
-
|
|
64
|
+
q.value = !1, Ge({
|
|
64
65
|
componentName: "VueUiDonut",
|
|
65
66
|
type: "datasetSerieAttribute",
|
|
66
67
|
property: t,
|
|
@@ -68,42 +69,43 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
68
69
|
});
|
|
69
70
|
});
|
|
70
71
|
}), e.value.responsive) {
|
|
71
|
-
const l =
|
|
72
|
-
const { width: r, height: t } =
|
|
73
|
-
chart:
|
|
74
|
-
title: e.value.style.chart.title.text ?
|
|
75
|
-
legend: e.value.style.chart.legend.show ?
|
|
72
|
+
const l = wt(() => {
|
|
73
|
+
const { width: r, height: t } = kt({
|
|
74
|
+
chart: H.value,
|
|
75
|
+
title: e.value.style.chart.title.text ? he.value : null,
|
|
76
|
+
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
77
|
+
source: fe.value
|
|
76
78
|
});
|
|
77
79
|
u.value.width = r, u.value.height = t;
|
|
78
80
|
});
|
|
79
|
-
le.value = new ResizeObserver(l), le.value.observe(
|
|
81
|
+
le.value = new ResizeObserver(l), le.value.observe(H.value.parentNode);
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
|
-
const
|
|
83
|
-
function
|
|
84
|
-
const l =
|
|
85
|
-
userConfig:
|
|
86
|
-
defaultConfig:
|
|
84
|
+
const k = d(rt()), Ue = d(null), ae = d(!1), se = d(""), S = d(null), we = d(0);
|
|
85
|
+
function ke() {
|
|
86
|
+
const l = je({
|
|
87
|
+
userConfig: X.config,
|
|
88
|
+
defaultConfig: Re
|
|
87
89
|
});
|
|
88
90
|
return l.theme ? {
|
|
89
|
-
...
|
|
90
|
-
userConfig:
|
|
91
|
+
...je({
|
|
92
|
+
userConfig: ft.vue_ui_donut[l.theme] || X.config,
|
|
91
93
|
defaultConfig: l
|
|
92
94
|
}),
|
|
93
|
-
customPalette:
|
|
95
|
+
customPalette: pt[l.theme] || j
|
|
94
96
|
} : l;
|
|
95
97
|
}
|
|
96
|
-
const e =
|
|
97
|
-
get: () =>
|
|
98
|
+
const e = _({
|
|
99
|
+
get: () => ke(),
|
|
98
100
|
set: (l) => l
|
|
99
101
|
});
|
|
100
|
-
|
|
101
|
-
e.value =
|
|
102
|
+
De(() => X.config, (l) => {
|
|
103
|
+
e.value = ke(), me(), pe.value += 1, ge.value += 1, be.value += 1;
|
|
102
104
|
}, { deep: !0 });
|
|
103
|
-
const { isPrinting:
|
|
104
|
-
elementId: `donut__${
|
|
105
|
+
const { isPrinting: _e, isImaging: xe, generatePdf: Ce, generateImage: $e } = xt({
|
|
106
|
+
elementId: `donut__${k.value}`,
|
|
105
107
|
fileName: e.value.style.chart.title.text || "vue-ui-donut"
|
|
106
|
-
}),
|
|
108
|
+
}), Pe = _(() => it(e.value.customPalette)), y = d({
|
|
107
109
|
dataLabels: {
|
|
108
110
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
109
111
|
},
|
|
@@ -112,92 +114,92 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
112
114
|
}), u = d({
|
|
113
115
|
height: 360,
|
|
114
116
|
width: 512
|
|
115
|
-
}),
|
|
117
|
+
}), J = _(() => {
|
|
116
118
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = u.value.width * l, t = r > C.value ? C.value : r;
|
|
117
119
|
return t < 24 ? 24 : t;
|
|
118
|
-
}), M =
|
|
120
|
+
}), M = _(() => X.dataset.map((l, r) => ({
|
|
119
121
|
name: l.name,
|
|
120
|
-
color:
|
|
122
|
+
color: Ve(l.color) || Pe.value[r] || j[r] || j[r % j.length],
|
|
121
123
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
122
124
|
absoluteValues: l.values,
|
|
123
125
|
comment: l.comment || ""
|
|
124
|
-
}))),
|
|
125
|
-
|
|
126
|
-
function
|
|
126
|
+
}))), T = d(M.value);
|
|
127
|
+
De(() => M.value, (l) => T.value = l);
|
|
128
|
+
function Ee() {
|
|
127
129
|
return M.value.map((l) => ({
|
|
128
130
|
name: l.name,
|
|
129
131
|
color: l.color,
|
|
130
132
|
value: l.value
|
|
131
133
|
}));
|
|
132
134
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
135
|
+
const N = d([]), Se = d(null), Le = d(null), G = d(!1);
|
|
136
|
+
function Fe(l) {
|
|
135
137
|
const r = M.value.find((i, g) => g === l);
|
|
136
|
-
let a =
|
|
137
|
-
if (
|
|
138
|
+
let a = T.value.find((i, g) => g === l).value;
|
|
139
|
+
if (N.value.includes(l)) {
|
|
138
140
|
let g = function() {
|
|
139
|
-
a > i ? (cancelAnimationFrame(
|
|
141
|
+
a > i ? (cancelAnimationFrame(Se.value), T.value = T.value.map((p, ve) => l === ve ? {
|
|
140
142
|
...p,
|
|
141
143
|
value: i
|
|
142
|
-
} : p), G.value = !1) : (G.value = !0, a += i * 0.025,
|
|
144
|
+
} : p), G.value = !1) : (G.value = !0, a += i * 0.025, T.value = T.value.map((p, ve) => l === ve ? {
|
|
143
145
|
...p,
|
|
144
146
|
value: a
|
|
145
|
-
} : p),
|
|
147
|
+
} : p), Se.value = requestAnimationFrame(g));
|
|
146
148
|
};
|
|
147
|
-
|
|
149
|
+
N.value = N.value.filter((p) => p !== l);
|
|
148
150
|
const i = r.value;
|
|
149
151
|
g();
|
|
150
|
-
} else if (
|
|
152
|
+
} else if (N.value.length < M.value.length - 1) {
|
|
151
153
|
let i = function() {
|
|
152
|
-
a < 0.1 ? (cancelAnimationFrame(
|
|
154
|
+
a < 0.1 ? (cancelAnimationFrame(Le.value), N.value.push(l), T.value = T.value.map((g, p) => l === p ? {
|
|
153
155
|
...g,
|
|
154
156
|
value: 0
|
|
155
|
-
} : g), G.value = !1) : (G.value = !0, a /= 1.1,
|
|
157
|
+
} : g), G.value = !1) : (G.value = !0, a /= 1.1, T.value = T.value.map((g, p) => l === p ? {
|
|
156
158
|
...g,
|
|
157
159
|
value: a
|
|
158
|
-
} : g),
|
|
160
|
+
} : g), Le.value = requestAnimationFrame(i));
|
|
159
161
|
};
|
|
160
162
|
i();
|
|
161
163
|
}
|
|
162
|
-
|
|
164
|
+
de("selectLegend", I.value.map((i) => ({
|
|
163
165
|
name: i.name,
|
|
164
166
|
color: i.color,
|
|
165
167
|
value: i.value
|
|
166
168
|
})));
|
|
167
169
|
}
|
|
168
|
-
const
|
|
170
|
+
const I = _(() => (T.value.forEach((l, r) => {
|
|
169
171
|
if ([null, void 0].includes(l.values))
|
|
170
172
|
return {
|
|
171
173
|
...l,
|
|
172
174
|
values: []
|
|
173
175
|
};
|
|
174
|
-
}),
|
|
176
|
+
}), T.value.map((l, r) => ({
|
|
175
177
|
...l,
|
|
176
178
|
seriesIndex: r
|
|
177
|
-
})).filter((l, r) => !
|
|
179
|
+
})).filter((l, r) => !N.value.includes(r)))), Te = _(() => X.dataset.map((l, r) => ({
|
|
178
180
|
name: l.name,
|
|
179
|
-
color:
|
|
181
|
+
color: Ve(l.color) || Pe.value[r] || j[r] || j[r % j.length],
|
|
180
182
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
181
183
|
shape: "circle"
|
|
182
184
|
})).map((l, r) => ({
|
|
183
185
|
...l,
|
|
184
|
-
proportion: l.value /
|
|
185
|
-
opacity:
|
|
186
|
-
segregate: () =>
|
|
187
|
-
isSegregated:
|
|
188
|
-
}))),
|
|
186
|
+
proportion: l.value / X.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
|
|
187
|
+
opacity: N.value.includes(r) ? 0.5 : 1,
|
|
188
|
+
segregate: () => Fe(r),
|
|
189
|
+
isSegregated: N.value.includes(r)
|
|
190
|
+
}))), We = _(() => ({
|
|
189
191
|
cy: "donut-div-legend",
|
|
190
192
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
191
193
|
color: e.value.style.chart.legend.color,
|
|
192
194
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
193
195
|
paddingBottom: 12,
|
|
194
196
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
195
|
-
})), C =
|
|
197
|
+
})), C = _(() => {
|
|
196
198
|
const l = Math.min(u.value.width / 3, u.value.height / 3);
|
|
197
199
|
return l < 55 ? 55 : l;
|
|
198
|
-
}), f =
|
|
199
|
-
const l = Math.max(...
|
|
200
|
-
return
|
|
200
|
+
}), f = _(() => vt({ series: I.value }, u.value.width / 2, u.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, J.value)), c = _(() => {
|
|
201
|
+
const l = Math.max(...I.value.map((t) => t.value)), r = I.value.map((t) => t.value / l);
|
|
202
|
+
return ct({
|
|
201
203
|
series: r,
|
|
202
204
|
center: {
|
|
203
205
|
x: u.value.width / 2,
|
|
@@ -206,18 +208,18 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
206
208
|
maxRadius: Math.min(u.value.width, u.value.height) / 3
|
|
207
209
|
});
|
|
208
210
|
});
|
|
209
|
-
function
|
|
211
|
+
function R(l) {
|
|
210
212
|
return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
|
|
211
213
|
}
|
|
212
|
-
function
|
|
214
|
+
function qe(l) {
|
|
213
215
|
return l.middlePoint.y > u.value.height / 2 ? F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
|
|
214
216
|
}
|
|
215
|
-
function
|
|
217
|
+
function z(l) {
|
|
216
218
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
217
219
|
}
|
|
218
|
-
function
|
|
219
|
-
const t = l.value /
|
|
220
|
-
return isNaN(t) ? 0 :
|
|
220
|
+
function ne(l, r) {
|
|
221
|
+
const t = l.value / Je(r);
|
|
222
|
+
return isNaN(t) ? 0 : A(
|
|
221
223
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
222
224
|
t * 100,
|
|
223
225
|
L({
|
|
@@ -228,15 +230,15 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
228
230
|
{ datapoint: l }
|
|
229
231
|
);
|
|
230
232
|
}
|
|
231
|
-
function
|
|
233
|
+
function Je(l) {
|
|
232
234
|
return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
233
235
|
}
|
|
234
|
-
const $ =
|
|
235
|
-
function
|
|
236
|
-
|
|
236
|
+
const $ = _(() => I.value.map((l) => l.value).reduce((l, r) => l + r, 0)), ze = _(() => $.value / I.value.length), re = d(null), K = d(!1);
|
|
237
|
+
function Ye({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
|
|
238
|
+
re.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, S.value = r;
|
|
237
239
|
let i = "";
|
|
238
240
|
const g = e.value.style.chart.tooltip.customFormat;
|
|
239
|
-
if (
|
|
241
|
+
if (K.value = !1, gt(g))
|
|
240
242
|
try {
|
|
241
243
|
const p = g({
|
|
242
244
|
seriesIndex: t,
|
|
@@ -244,12 +246,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
244
246
|
series: M.value,
|
|
245
247
|
config: e.value
|
|
246
248
|
});
|
|
247
|
-
typeof p == "string" && (
|
|
249
|
+
typeof p == "string" && (se.value = p, K.value = !0);
|
|
248
250
|
} catch {
|
|
249
|
-
console.warn("Custom format cannot be applied."),
|
|
251
|
+
console.warn("Custom format cannot be applied."), K.value = !1;
|
|
250
252
|
}
|
|
251
|
-
if (!
|
|
252
|
-
if (i += `<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>`, i += `<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 && (i += `<b>${
|
|
253
|
+
if (!K.value) {
|
|
254
|
+
if (i += `<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>`, i += `<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 && (i += `<b>${A(
|
|
253
255
|
e.value.style.chart.layout.labels.value.formatter,
|
|
254
256
|
l.value,
|
|
255
257
|
L({
|
|
@@ -264,7 +266,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
264
266
|
seriesIndex: t
|
|
265
267
|
}
|
|
266
268
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
267
|
-
const p =
|
|
269
|
+
const p = A(
|
|
268
270
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
269
271
|
l.proportion * 100,
|
|
270
272
|
L({
|
|
@@ -280,41 +282,41 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
280
282
|
);
|
|
281
283
|
e.value.style.chart.tooltip.showValue ? i += `<span>(${p})</span></div>` : i += `<b>${p}</b></div>`;
|
|
282
284
|
}
|
|
283
|
-
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`),
|
|
285
|
+
e.value.style.chart.comments.showInTooltip && l.comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), se.value = `<div>${i}</div>`;
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
|
-
function
|
|
287
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
288
|
+
function Q(l) {
|
|
289
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l ? `url(#blur_${k.value})` : "";
|
|
288
290
|
}
|
|
289
|
-
const
|
|
290
|
-
const l =
|
|
291
|
+
const D = _(() => {
|
|
292
|
+
const l = I.value.map((t) => ({
|
|
291
293
|
name: t.name,
|
|
292
294
|
color: t.color
|
|
293
|
-
})), r =
|
|
295
|
+
})), r = I.value.map((t) => t.value);
|
|
294
296
|
return { head: l, body: r };
|
|
295
297
|
});
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
const l =
|
|
298
|
+
function Ae() {
|
|
299
|
+
lt(() => {
|
|
300
|
+
const l = D.value.head.map((a, i) => [[
|
|
299
301
|
a.name
|
|
300
|
-
], [
|
|
301
|
-
|
|
302
|
+
], [D.value.body[i]], [isNaN(D.value.body[i] / $.value) ? "-" : D.value.body[i] / $.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = bt(r);
|
|
303
|
+
mt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
302
304
|
});
|
|
303
305
|
}
|
|
304
|
-
const oe =
|
|
306
|
+
const oe = _(() => {
|
|
305
307
|
const l = [
|
|
306
308
|
' <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>',
|
|
307
309
|
L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
308
310
|
"100%"
|
|
309
|
-
], r =
|
|
310
|
-
const p = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
311
|
+
], r = D.value.head.map((i, g) => {
|
|
312
|
+
const p = L({ 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 });
|
|
311
313
|
return [
|
|
312
314
|
{
|
|
313
315
|
color: i.color,
|
|
314
316
|
name: i.name
|
|
315
317
|
},
|
|
316
318
|
p,
|
|
317
|
-
isNaN(
|
|
319
|
+
isNaN(D.value.body[g] / $.value) ? "-" : (D.value.body[g] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
318
320
|
];
|
|
319
321
|
}), t = {
|
|
320
322
|
th: {
|
|
@@ -339,50 +341,63 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
339
341
|
body: r,
|
|
340
342
|
config: t
|
|
341
343
|
};
|
|
342
|
-
}),
|
|
343
|
-
function
|
|
344
|
-
|
|
344
|
+
}), Z = d(!1);
|
|
345
|
+
function Ke(l) {
|
|
346
|
+
Z.value = l, we.value += 1;
|
|
345
347
|
}
|
|
346
|
-
const
|
|
347
|
-
function
|
|
348
|
+
const Xe = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
349
|
+
function Qe(l) {
|
|
348
350
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
|
|
349
351
|
}
|
|
350
352
|
function B(l, r) {
|
|
351
|
-
|
|
353
|
+
de("selectDatapoint", { datapoint: l, index: r });
|
|
352
354
|
}
|
|
353
|
-
function
|
|
355
|
+
function Ne() {
|
|
354
356
|
y.value.showTable = !y.value.showTable;
|
|
355
357
|
}
|
|
356
|
-
function
|
|
358
|
+
function Oe() {
|
|
357
359
|
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
358
360
|
}
|
|
359
|
-
function
|
|
361
|
+
function Ie() {
|
|
360
362
|
y.value.showTooltip = !y.value.showTooltip;
|
|
361
363
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
364
|
+
const ue = d(!1);
|
|
365
|
+
function ie() {
|
|
366
|
+
ue.value = !ue.value;
|
|
367
|
+
}
|
|
368
|
+
return He({
|
|
369
|
+
getData: Ee,
|
|
370
|
+
generatePdf: Ce,
|
|
371
|
+
generateCsv: Ae,
|
|
372
|
+
generateImage: $e,
|
|
373
|
+
toggleTable: Ne,
|
|
374
|
+
toggleLabels: Oe,
|
|
375
|
+
toggleTooltip: Ie,
|
|
376
|
+
toggleAnnotator: ie
|
|
370
377
|
}), (l, r) => (o(), n("div", {
|
|
371
378
|
ref_key: "donutChart",
|
|
372
|
-
ref:
|
|
373
|
-
class:
|
|
379
|
+
ref: H,
|
|
380
|
+
class: ce(`vue-ui-donut ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
374
381
|
style: Y(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
375
|
-
id: `donut__${
|
|
382
|
+
id: `donut__${k.value}`
|
|
376
383
|
}, [
|
|
377
|
-
|
|
378
|
-
e.value.style.chart.title.text ? (o(), n("div", {
|
|
384
|
+
e.value.userOptions.buttons.annotator ? (o(), V(zt, {
|
|
379
385
|
key: 0,
|
|
386
|
+
parent: H.value,
|
|
387
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
388
|
+
color: e.value.style.chart.color,
|
|
389
|
+
active: ue.value,
|
|
390
|
+
onClose: ie
|
|
391
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
392
|
+
m(l.$slots, "userConfig", {}, void 0, !0),
|
|
393
|
+
e.value.style.chart.title.text ? (o(), n("div", {
|
|
394
|
+
key: 1,
|
|
380
395
|
ref_key: "chartTitle",
|
|
381
|
-
ref:
|
|
396
|
+
ref: he,
|
|
382
397
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
383
398
|
}, [
|
|
384
|
-
(o(),
|
|
385
|
-
key: `title_${
|
|
399
|
+
(o(), V(_t, {
|
|
400
|
+
key: `title_${pe.value}`,
|
|
386
401
|
config: {
|
|
387
402
|
title: {
|
|
388
403
|
cy: "donut-div-title",
|
|
@@ -395,15 +410,15 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
395
410
|
}
|
|
396
411
|
}, null, 8, ["config"]))
|
|
397
412
|
], 512)) : v("", !0),
|
|
398
|
-
e.value.userOptions.show &&
|
|
413
|
+
e.value.userOptions.show && q.value ? (o(), V(Ct, {
|
|
399
414
|
ref_key: "details",
|
|
400
|
-
ref:
|
|
401
|
-
key: `user_option_${
|
|
415
|
+
ref: Ue,
|
|
416
|
+
key: `user_option_${we.value}`,
|
|
402
417
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
403
418
|
color: e.value.style.chart.color,
|
|
404
|
-
isPrinting: s(
|
|
405
|
-
isImaging: s(
|
|
406
|
-
uid:
|
|
419
|
+
isPrinting: s(_e),
|
|
420
|
+
isImaging: s(xe),
|
|
421
|
+
uid: k.value,
|
|
407
422
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
408
423
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
409
424
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -411,124 +426,134 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
411
426
|
hasTable: e.value.userOptions.buttons.table,
|
|
412
427
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
413
428
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
414
|
-
isFullscreen:
|
|
415
|
-
chartElement:
|
|
429
|
+
isFullscreen: Z.value,
|
|
430
|
+
chartElement: H.value,
|
|
416
431
|
position: e.value.userOptions.position,
|
|
417
432
|
isTooltip: y.value.showTooltip,
|
|
418
433
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
434
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
435
|
+
isAnnotation: ue.value,
|
|
436
|
+
onToggleFullscreen: Ke,
|
|
437
|
+
onGeneratePdf: s(Ce),
|
|
438
|
+
onGenerateCsv: Ae,
|
|
439
|
+
onGenerateImage: s($e),
|
|
440
|
+
onToggleTable: Ne,
|
|
441
|
+
onToggleLabels: Oe,
|
|
442
|
+
onToggleTooltip: Ie,
|
|
443
|
+
onToggleAnnotator: ie
|
|
444
|
+
}, tt({ _: 2 }, [
|
|
427
445
|
l.$slots.optionTooltip ? {
|
|
428
446
|
name: "optionTooltip",
|
|
429
|
-
fn:
|
|
430
|
-
|
|
447
|
+
fn: P(() => [
|
|
448
|
+
m(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
431
449
|
]),
|
|
432
450
|
key: "0"
|
|
433
451
|
} : void 0,
|
|
434
452
|
l.$slots.optionPdf ? {
|
|
435
453
|
name: "optionPdf",
|
|
436
|
-
fn:
|
|
437
|
-
|
|
454
|
+
fn: P(() => [
|
|
455
|
+
m(l.$slots, "optionPdf", {}, void 0, !0)
|
|
438
456
|
]),
|
|
439
457
|
key: "1"
|
|
440
458
|
} : void 0,
|
|
441
459
|
l.$slots.optionCsv ? {
|
|
442
460
|
name: "optionCsv",
|
|
443
|
-
fn:
|
|
444
|
-
|
|
461
|
+
fn: P(() => [
|
|
462
|
+
m(l.$slots, "optionCsv", {}, void 0, !0)
|
|
445
463
|
]),
|
|
446
464
|
key: "2"
|
|
447
465
|
} : void 0,
|
|
448
466
|
l.$slots.optionImg ? {
|
|
449
467
|
name: "optionImg",
|
|
450
|
-
fn:
|
|
451
|
-
|
|
468
|
+
fn: P(() => [
|
|
469
|
+
m(l.$slots, "optionImg", {}, void 0, !0)
|
|
452
470
|
]),
|
|
453
471
|
key: "3"
|
|
454
472
|
} : void 0,
|
|
455
473
|
l.$slots.optionTable ? {
|
|
456
474
|
name: "optionTable",
|
|
457
|
-
fn:
|
|
458
|
-
|
|
475
|
+
fn: P(() => [
|
|
476
|
+
m(l.$slots, "optionTable", {}, void 0, !0)
|
|
459
477
|
]),
|
|
460
478
|
key: "4"
|
|
461
479
|
} : void 0,
|
|
462
480
|
l.$slots.optionLabels ? {
|
|
463
481
|
name: "optionLabels",
|
|
464
|
-
fn:
|
|
465
|
-
|
|
482
|
+
fn: P(() => [
|
|
483
|
+
m(l.$slots, "optionLabels", {}, void 0, !0)
|
|
466
484
|
]),
|
|
467
485
|
key: "5"
|
|
468
486
|
} : void 0,
|
|
469
487
|
l.$slots.optionFullscreen ? {
|
|
470
488
|
name: "optionFullscreen",
|
|
471
|
-
fn:
|
|
472
|
-
|
|
489
|
+
fn: P(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
490
|
+
m(l.$slots, "optionFullscreen", U(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
473
491
|
]),
|
|
474
492
|
key: "6"
|
|
493
|
+
} : void 0,
|
|
494
|
+
l.$slots.optionAnnotator ? {
|
|
495
|
+
name: "optionAnnotator",
|
|
496
|
+
fn: P(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
497
|
+
m(l.$slots, "optionAnnotator", U(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
498
|
+
]),
|
|
499
|
+
key: "7"
|
|
475
500
|
} : void 0
|
|
476
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
477
|
-
|
|
478
|
-
key:
|
|
479
|
-
xmlns: s(
|
|
480
|
-
class:
|
|
501
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
502
|
+
q.value ? (o(), n("svg", {
|
|
503
|
+
key: 3,
|
|
504
|
+
xmlns: s(dt),
|
|
505
|
+
class: ce({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
|
|
481
506
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
482
507
|
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
483
508
|
}, [
|
|
484
|
-
|
|
485
|
-
e.value.type === "classic" ? (o(), n("defs",
|
|
509
|
+
Be(Tt),
|
|
510
|
+
e.value.type === "classic" ? (o(), n("defs", Ot, [
|
|
486
511
|
e.value.style.chart.useGradient ? (o(), n("radialGradient", {
|
|
487
512
|
key: 0,
|
|
488
|
-
id: `gradient_${
|
|
513
|
+
id: `gradient_${k.value}`
|
|
489
514
|
}, [
|
|
490
515
|
h("stop", {
|
|
491
516
|
offset: "0%",
|
|
492
517
|
"stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
|
|
493
518
|
"stop-opacity": "0"
|
|
494
|
-
}, null, 8,
|
|
519
|
+
}, null, 8, Dt),
|
|
495
520
|
h("stop", {
|
|
496
|
-
offset: `${(1 -
|
|
521
|
+
offset: `${(1 - J.value / C.value) * 100}%`,
|
|
497
522
|
"stop-color": s(ee)("#FFFFFF", 0),
|
|
498
523
|
"stop-opacity": "0"
|
|
499
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Bt),
|
|
500
525
|
h("stop", {
|
|
501
|
-
offset: `${(1 -
|
|
526
|
+
offset: `${(1 - J.value / C.value / 2) * 100}%`,
|
|
502
527
|
"stop-color": s(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
503
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, Mt),
|
|
504
529
|
h("stop", {
|
|
505
530
|
offset: "100%",
|
|
506
531
|
"stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
|
|
507
532
|
"stop-opacity": "0"
|
|
508
|
-
}, null, 8,
|
|
509
|
-
], 8,
|
|
533
|
+
}, null, 8, Gt)
|
|
534
|
+
], 8, It)) : v("", !0)
|
|
510
535
|
])) : v("", !0),
|
|
511
|
-
e.value.type === "polar" ? (o(), n("defs",
|
|
512
|
-
(o(!0), n(
|
|
513
|
-
id: `polar_gradient_${a}_${
|
|
536
|
+
e.value.type === "polar" ? (o(), n("defs", Vt, [
|
|
537
|
+
(o(!0), n(w, null, O(c.value, (t, a) => (o(), n("radialGradient", {
|
|
538
|
+
id: `polar_gradient_${a}_${k.value}`,
|
|
514
539
|
cx: t.middlePoint.x / u.value.width * 100 + "%",
|
|
515
540
|
cy: t.middlePoint.y / u.value.height * 100 + "%",
|
|
516
541
|
r: "62%"
|
|
517
542
|
}, [
|
|
518
543
|
h("stop", {
|
|
519
544
|
offset: "0%",
|
|
520
|
-
"stop-color": s(
|
|
545
|
+
"stop-color": s(ht)(f.value[a].color, 0.05),
|
|
521
546
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
522
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, Ht),
|
|
523
548
|
h("stop", {
|
|
524
549
|
offset: "100%",
|
|
525
550
|
"stop-color": f.value[a].color
|
|
526
|
-
}, null, 8,
|
|
527
|
-
], 8,
|
|
551
|
+
}, null, 8, Rt)
|
|
552
|
+
], 8, jt))), 256))
|
|
528
553
|
])) : v("", !0),
|
|
529
554
|
h("defs", null, [
|
|
530
555
|
h("filter", {
|
|
531
|
-
id: `blur_${
|
|
556
|
+
id: `blur_${k.value}`,
|
|
532
557
|
x: "-50%",
|
|
533
558
|
y: "-50%",
|
|
534
559
|
width: "200%",
|
|
@@ -537,12 +562,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
537
562
|
h("feGaussianBlur", {
|
|
538
563
|
in: "SourceGraphic",
|
|
539
564
|
stdDeviation: 2,
|
|
540
|
-
id: `blur_std_${
|
|
541
|
-
}, null, 8,
|
|
542
|
-
|
|
543
|
-
], 8,
|
|
565
|
+
id: `blur_std_${k.value}`
|
|
566
|
+
}, null, 8, Et),
|
|
567
|
+
Wt
|
|
568
|
+
], 8, Ut),
|
|
544
569
|
h("filter", {
|
|
545
|
-
id: `shadow_${
|
|
570
|
+
id: `shadow_${k.value}`,
|
|
546
571
|
"color-interpolation-filters": "sRGB"
|
|
547
572
|
}, [
|
|
548
573
|
h("feDropShadow", {
|
|
@@ -551,10 +576,10 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
551
576
|
stdDeviation: "10",
|
|
552
577
|
"flood-opacity": "0.5",
|
|
553
578
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
554
|
-
}, null, 8,
|
|
555
|
-
], 8,
|
|
579
|
+
}, null, 8, Jt)
|
|
580
|
+
], 8, qt),
|
|
556
581
|
h("filter", {
|
|
557
|
-
id: `drop_shadow_${
|
|
582
|
+
id: `drop_shadow_${k.value}`,
|
|
558
583
|
"color-interpolation-filters": "sRGB",
|
|
559
584
|
x: "-50%",
|
|
560
585
|
y: "-50%",
|
|
@@ -567,23 +592,23 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
567
592
|
stdDeviation: "3",
|
|
568
593
|
"flood-opacity": "1",
|
|
569
594
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
570
|
-
}, null, 8,
|
|
571
|
-
], 8,
|
|
595
|
+
}, null, 8, Qt)
|
|
596
|
+
], 8, Kt)
|
|
572
597
|
]),
|
|
573
|
-
e.value.type === "classic" ? (o(!0), n(
|
|
574
|
-
|
|
598
|
+
e.value.type === "classic" ? (o(!0), n(w, { key: 2 }, O(f.value, (t, a) => (o(), n("g", null, [
|
|
599
|
+
z(t) && y.value.dataLabels.show ? (o(), n("path", {
|
|
575
600
|
key: 0,
|
|
576
|
-
d: s(
|
|
601
|
+
d: s(yt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, J.value),
|
|
577
602
|
stroke: t.color,
|
|
578
603
|
"stroke-width": "1",
|
|
579
604
|
"stroke-linecap": "round",
|
|
580
605
|
"stroke-linejoin": "round",
|
|
581
606
|
fill: "none",
|
|
582
|
-
filter:
|
|
583
|
-
}, null, 8,
|
|
607
|
+
filter: Q(a)
|
|
608
|
+
}, null, 8, Zt)) : v("", !0)
|
|
584
609
|
]))), 256)) : v("", !0),
|
|
585
|
-
e.value.type === "polar" ? (o(!0), n(
|
|
586
|
-
|
|
610
|
+
e.value.type === "polar" ? (o(!0), n(w, { key: 3 }, O(f.value, (t, a) => (o(), n("g", null, [
|
|
611
|
+
z(t) && y.value.dataLabels.show ? (o(), n("line", {
|
|
587
612
|
key: 0,
|
|
588
613
|
x1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
589
614
|
y1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
@@ -594,8 +619,8 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
594
619
|
"stroke-linecap": "round",
|
|
595
620
|
"stroke-linejoin": "round",
|
|
596
621
|
fill: "none",
|
|
597
|
-
filter:
|
|
598
|
-
}, null, 8,
|
|
622
|
+
filter: Q(a)
|
|
623
|
+
}, null, 8, el)) : v("", !0)
|
|
599
624
|
]))), 256)) : v("", !0),
|
|
600
625
|
e.value.type === "classic" ? (o(), n("circle", {
|
|
601
626
|
key: 4,
|
|
@@ -603,57 +628,57 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
603
628
|
cy: u.value.height / 2,
|
|
604
629
|
r: C.value <= 0 ? 10 : C.value,
|
|
605
630
|
fill: e.value.style.chart.backgroundColor,
|
|
606
|
-
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${
|
|
607
|
-
}, null, 8,
|
|
608
|
-
$.value && e.value.type === "classic" ? (o(), n(
|
|
609
|
-
(o(!0), n(
|
|
631
|
+
filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${k.value})` : ""
|
|
632
|
+
}, null, 8, tl)) : v("", !0),
|
|
633
|
+
$.value && e.value.type === "classic" ? (o(), n(w, { key: 5 }, [
|
|
634
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
610
635
|
stroke: e.value.style.chart.backgroundColor,
|
|
611
636
|
d: t.arcSlice,
|
|
612
637
|
fill: "#FFFFFF"
|
|
613
|
-
}, null, 8,
|
|
614
|
-
(o(!0), n(
|
|
638
|
+
}, null, 8, ll))), 256)),
|
|
639
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
615
640
|
class: "vue-ui-donut-arc-path",
|
|
616
641
|
d: t.arcSlice,
|
|
617
642
|
fill: s(ee)(t.color, 80),
|
|
618
643
|
stroke: e.value.style.chart.backgroundColor,
|
|
619
644
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
620
|
-
filter:
|
|
621
|
-
}, null, 8,
|
|
645
|
+
filter: Q(a)
|
|
646
|
+
}, null, 8, al))), 256))
|
|
622
647
|
], 64)) : v("", !0),
|
|
623
|
-
$.value && e.value.type === "polar" ? (o(), n(
|
|
624
|
-
f.value.length > 1 ? (o(), n("g",
|
|
625
|
-
(o(!0), n(
|
|
648
|
+
$.value && e.value.type === "polar" ? (o(), n(w, { key: 6 }, [
|
|
649
|
+
f.value.length > 1 ? (o(), n("g", ol, [
|
|
650
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
626
651
|
stroke: e.value.style.chart.backgroundColor,
|
|
627
652
|
d: c.value[a].path,
|
|
628
653
|
fill: "#FFFFFF"
|
|
629
|
-
}, null, 8,
|
|
630
|
-
e.value.style.chart.layout.donut.useShadow ? (o(), n("g",
|
|
631
|
-
(o(!0), n(
|
|
654
|
+
}, null, 8, ul))), 256)),
|
|
655
|
+
e.value.style.chart.layout.donut.useShadow ? (o(), n("g", sl, [
|
|
656
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
632
657
|
class: "vue-ui-donut-arc-path",
|
|
633
658
|
d: c.value[a].path,
|
|
634
659
|
fill: "transparent",
|
|
635
660
|
stroke: e.value.style.chart.backgroundColor,
|
|
636
661
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
637
|
-
filter: `url(#drop_shadow_${
|
|
638
|
-
}, null, 8,
|
|
662
|
+
filter: `url(#drop_shadow_${k.value})`
|
|
663
|
+
}, null, 8, nl))), 256))
|
|
639
664
|
])) : v("", !0),
|
|
640
|
-
(o(!0), n(
|
|
665
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
641
666
|
class: "vue-ui-donut-arc-path",
|
|
642
667
|
d: c.value[a].path,
|
|
643
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
668
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${k.value})` : t.color,
|
|
644
669
|
stroke: e.value.style.chart.backgroundColor,
|
|
645
670
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
646
|
-
filter:
|
|
647
|
-
}, null, 8,
|
|
648
|
-
])) : (o(), n("g",
|
|
671
|
+
filter: Q(a)
|
|
672
|
+
}, null, 8, rl))), 256))
|
|
673
|
+
])) : (o(), n("g", il, [
|
|
649
674
|
h("circle", {
|
|
650
675
|
cx: u.value.width / 2,
|
|
651
676
|
cy: u.value.height / 2,
|
|
652
677
|
r: C.value,
|
|
653
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
678
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${k.value})` : f.value[0].color,
|
|
654
679
|
stroke: e.value.style.chart.backgroundColor,
|
|
655
680
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
656
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, vl)
|
|
657
682
|
]))
|
|
658
683
|
], 64)) : (o(), n("circle", {
|
|
659
684
|
key: 7,
|
|
@@ -662,7 +687,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
662
687
|
r: C.value <= 0 ? 10 : C.value,
|
|
663
688
|
fill: "transparent",
|
|
664
689
|
stroke: e.value.style.chart.backgroundColor
|
|
665
|
-
}, null, 8,
|
|
690
|
+
}, null, 8, cl)),
|
|
666
691
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
|
|
667
692
|
key: 8,
|
|
668
693
|
cx: u.value.width / 2,
|
|
@@ -671,46 +696,46 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
671
696
|
/* This might require adjustments */
|
|
672
697
|
C.value <= 0 ? 10 : C.value
|
|
673
698
|
),
|
|
674
|
-
fill: `url(#gradient_${
|
|
675
|
-
}, null, 8,
|
|
676
|
-
$.value ? (o(), n(
|
|
677
|
-
f.value.length > 1 || e.value.type === "classic" ? (o(), n("g",
|
|
678
|
-
(o(!0), n(
|
|
699
|
+
fill: `url(#gradient_${k.value})`
|
|
700
|
+
}, null, 8, dl)) : v("", !0),
|
|
701
|
+
$.value ? (o(), n(w, { key: 9 }, [
|
|
702
|
+
f.value.length > 1 || e.value.type === "classic" ? (o(), n("g", hl, [
|
|
703
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
|
|
679
704
|
"data-cy-donut-trap": "",
|
|
680
705
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
681
|
-
fill:
|
|
682
|
-
onMouseenter: (i) =>
|
|
706
|
+
fill: S.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
707
|
+
onMouseenter: (i) => Ye({
|
|
683
708
|
datapoint: t,
|
|
684
709
|
relativeIndex: a,
|
|
685
710
|
seriesIndex: t.seriesIndex,
|
|
686
711
|
show: !0
|
|
687
712
|
}),
|
|
688
713
|
onMouseleave: r[0] || (r[0] = (i) => {
|
|
689
|
-
ae.value = !1,
|
|
714
|
+
ae.value = !1, S.value = null;
|
|
690
715
|
}),
|
|
691
716
|
onClick: (i) => B(t, a)
|
|
692
|
-
}, null, 40,
|
|
693
|
-
])) : (o(), n("g",
|
|
717
|
+
}, null, 40, yl))), 256))
|
|
718
|
+
])) : (o(), n("g", fl, [
|
|
694
719
|
h("circle", {
|
|
695
720
|
cx: u.value.width / 2,
|
|
696
721
|
cy: u.value.height / 2,
|
|
697
722
|
r: C.value,
|
|
698
|
-
fill:
|
|
723
|
+
fill: S.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
|
|
699
724
|
"data-cy-donut-trap": "",
|
|
700
|
-
onMouseenter: r[1] || (r[1] = (t) =>
|
|
725
|
+
onMouseenter: r[1] || (r[1] = (t) => Ye({
|
|
701
726
|
datapoint: f.value[0],
|
|
702
727
|
relativeIndex: 0,
|
|
703
728
|
seriesIndex: f.value[0].seriesIndex,
|
|
704
729
|
show: !0
|
|
705
730
|
})),
|
|
706
731
|
onMouseleave: r[2] || (r[2] = (t) => {
|
|
707
|
-
ae.value = !1,
|
|
732
|
+
ae.value = !1, S.value = null;
|
|
708
733
|
}),
|
|
709
734
|
onClick: r[3] || (r[3] = (t) => B(f.value[0], l.i))
|
|
710
|
-
}, null, 40,
|
|
735
|
+
}, null, 40, pl)
|
|
711
736
|
]))
|
|
712
737
|
], 64)) : v("", !0),
|
|
713
|
-
e.value.type === "classic" ? (o(), n(
|
|
738
|
+
e.value.type === "classic" ? (o(), n(w, { key: 10 }, [
|
|
714
739
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
715
740
|
key: 0,
|
|
716
741
|
"text-anchor": "middle",
|
|
@@ -719,7 +744,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
719
744
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
720
745
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
721
746
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
722
|
-
}, x(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
747
|
+
}, x(e.value.style.chart.layout.labels.hollow.total.text), 13, gl)) : v("", !0),
|
|
723
748
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
|
|
724
749
|
key: 1,
|
|
725
750
|
"text-anchor": "middle",
|
|
@@ -728,7 +753,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
728
753
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
729
754
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
730
755
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
731
|
-
}, x(s(
|
|
756
|
+
}, x(s(A)(
|
|
732
757
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
733
758
|
$.value,
|
|
734
759
|
s(L)({
|
|
@@ -736,7 +761,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
736
761
|
v: $.value,
|
|
737
762
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
738
763
|
})
|
|
739
|
-
)), 13,
|
|
764
|
+
)), 13, bl)) : v("", !0),
|
|
740
765
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
741
766
|
key: 2,
|
|
742
767
|
"text-anchor": "middle",
|
|
@@ -745,7 +770,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
745
770
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
746
771
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
747
772
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
748
|
-
}, x(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
773
|
+
}, x(e.value.style.chart.layout.labels.hollow.average.text), 13, ml)) : v("", !0),
|
|
749
774
|
e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
|
|
750
775
|
key: 3,
|
|
751
776
|
"text-anchor": "middle",
|
|
@@ -754,44 +779,44 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
754
779
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
755
780
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
756
781
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
757
|
-
}, x(G.value ? "--" : s(
|
|
782
|
+
}, x(G.value ? "--" : s(A)(
|
|
758
783
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
759
|
-
|
|
784
|
+
ze.value,
|
|
760
785
|
s(L)({
|
|
761
786
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
762
|
-
v:
|
|
787
|
+
v: ze.value,
|
|
763
788
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
764
789
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
765
790
|
})
|
|
766
|
-
)), 13,
|
|
791
|
+
)), 13, wl)) : v("", !0)
|
|
767
792
|
], 64)) : v("", !0),
|
|
768
|
-
(o(!0), n(
|
|
769
|
-
filter:
|
|
770
|
-
class:
|
|
793
|
+
(o(!0), n(w, null, O(f.value, (t, a) => (o(), n("g", {
|
|
794
|
+
filter: Q(a),
|
|
795
|
+
class: ce({ animated: e.value.useCssAnimation })
|
|
771
796
|
}, [
|
|
772
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g",
|
|
797
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", _l, [
|
|
773
798
|
(o(), n("foreignObject", {
|
|
774
799
|
x: s(b)(t, !0).anchor === "end" ? s(b)(t).x - 120 : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - 60 : s(b)(t).x,
|
|
775
|
-
y: s(te)(t) - (
|
|
800
|
+
y: s(te)(t) - (Xe.value ? 20 : 0),
|
|
776
801
|
width: "120",
|
|
777
802
|
height: "60",
|
|
778
803
|
style: { overflow: "visible" }
|
|
779
804
|
}, [
|
|
780
805
|
h("div", null, [
|
|
781
|
-
|
|
806
|
+
m(l.$slots, "dataLabel", U(E({
|
|
782
807
|
datapoint: t,
|
|
783
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
784
|
-
isSafari:
|
|
785
|
-
isVisible:
|
|
808
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a,
|
|
809
|
+
isSafari: Xe.value,
|
|
810
|
+
isVisible: z(t) && y.value.dataLabels.show,
|
|
786
811
|
textAlign: s(b)(t, !0, 16, !0).anchor,
|
|
787
812
|
flexAlign: s(b)(t, !0, 16).anchor,
|
|
788
|
-
percentage:
|
|
813
|
+
percentage: ne(t, f.value)
|
|
789
814
|
})), void 0, !0)
|
|
790
815
|
])
|
|
791
|
-
], 8,
|
|
792
|
-
])) : (o(), n("g",
|
|
793
|
-
e.value.type === "classic" ? (o(), n(
|
|
794
|
-
|
|
816
|
+
], 8, xl))
|
|
817
|
+
])) : (o(), n("g", Cl, [
|
|
818
|
+
e.value.type === "classic" ? (o(), n(w, { key: 0 }, [
|
|
819
|
+
z(t) && y.value.dataLabels.show ? (o(), n("circle", {
|
|
795
820
|
key: 0,
|
|
796
821
|
cx: s(b)(t).x,
|
|
797
822
|
cy: s(te)(t) - 3.5,
|
|
@@ -799,12 +824,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
799
824
|
stroke: e.value.style.chart.backgroundColor,
|
|
800
825
|
"stroke-width": 1,
|
|
801
826
|
r: 3,
|
|
802
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
827
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${k.value})`,
|
|
803
828
|
onClick: (i) => B(t, a)
|
|
804
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, $l)) : v("", !0)
|
|
805
830
|
], 64)) : v("", !0),
|
|
806
|
-
e.value.type === "polar" ? (o(), n(
|
|
807
|
-
|
|
831
|
+
e.value.type === "polar" ? (o(), n(w, { key: 1 }, [
|
|
832
|
+
z(t) && y.value.dataLabels.show ? (o(), n("circle", {
|
|
808
833
|
key: 0,
|
|
809
834
|
cx: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
810
835
|
cy: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
@@ -812,12 +837,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
812
837
|
stroke: e.value.style.chart.backgroundColor,
|
|
813
838
|
"stroke-width": 1,
|
|
814
839
|
r: 3,
|
|
815
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
840
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${k.value})`,
|
|
816
841
|
onClick: (i) => B(t, a)
|
|
817
|
-
}, null, 8,
|
|
842
|
+
}, null, 8, Pl)) : v("", !0)
|
|
818
843
|
], 64)) : v("", !0),
|
|
819
|
-
e.value.type === "classic" ? (o(), n(
|
|
820
|
-
|
|
844
|
+
e.value.type === "classic" ? (o(), n(w, { key: 2 }, [
|
|
845
|
+
z(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
821
846
|
key: 0,
|
|
822
847
|
"text-anchor": s(b)(t, !0, 12).anchor,
|
|
823
848
|
x: s(b)(t, !0, 12).x,
|
|
@@ -826,7 +851,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
826
851
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
827
852
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
828
853
|
onClick: (i) => B(t, a)
|
|
829
|
-
}, x(
|
|
854
|
+
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(A)(
|
|
830
855
|
e.value.style.chart.layout.labels.value.formatter,
|
|
831
856
|
t.value,
|
|
832
857
|
s(L)({
|
|
@@ -836,8 +861,8 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
836
861
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
837
862
|
}),
|
|
838
863
|
{ datapoint: t }
|
|
839
|
-
)})` : ""), 13,
|
|
840
|
-
|
|
864
|
+
)})` : ""), 13, Sl)) : v("", !0),
|
|
865
|
+
z(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
841
866
|
key: 1,
|
|
842
867
|
"text-anchor": s(b)(t).anchor,
|
|
843
868
|
x: s(b)(t, !0, 12).x,
|
|
@@ -846,19 +871,19 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
846
871
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
847
872
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
848
873
|
onClick: (i) => B(t, a)
|
|
849
|
-
}, x(t.name), 13,
|
|
874
|
+
}, x(t.name), 13, Ll)) : v("", !0)
|
|
850
875
|
], 64)) : v("", !0),
|
|
851
|
-
e.value.type === "polar" ? (o(), n(
|
|
852
|
-
|
|
876
|
+
e.value.type === "polar" ? (o(), n(w, { key: 3 }, [
|
|
877
|
+
z(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
853
878
|
key: 0,
|
|
854
|
-
"text-anchor":
|
|
879
|
+
"text-anchor": R(c.value[a].middlePoint),
|
|
855
880
|
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
856
881
|
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
|
|
857
882
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
858
883
|
"font-size": e.value.style.chart.layout.labels.percentage.fontSize,
|
|
859
884
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
860
885
|
onClick: (i) => B(t, a)
|
|
861
|
-
}, x(
|
|
886
|
+
}, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(A)(
|
|
862
887
|
e.value.style.chart.layout.labels.value.formatter,
|
|
863
888
|
t.value,
|
|
864
889
|
s(L)({
|
|
@@ -868,21 +893,21 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
868
893
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
869
894
|
}),
|
|
870
895
|
{ datapoint: t }
|
|
871
|
-
)})` : ""), 13,
|
|
872
|
-
|
|
896
|
+
)})` : ""), 13, Fl)) : v("", !0),
|
|
897
|
+
z(t) && y.value.dataLabels.show ? (o(), n("text", {
|
|
873
898
|
key: 1,
|
|
874
|
-
"text-anchor":
|
|
899
|
+
"text-anchor": R(c.value[a].middlePoint),
|
|
875
900
|
x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
|
|
876
901
|
y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
|
|
877
902
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
878
903
|
"font-size": e.value.style.chart.layout.labels.name.fontSize,
|
|
879
904
|
style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
880
905
|
onClick: (i) => B(t, a)
|
|
881
|
-
}, x(t.name), 13,
|
|
906
|
+
}, x(t.name), 13, Tl)) : v("", !0)
|
|
882
907
|
], 64)) : v("", !0)
|
|
883
908
|
])),
|
|
884
|
-
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g",
|
|
885
|
-
|
|
909
|
+
y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", zl, [
|
|
910
|
+
z(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
|
|
886
911
|
key: 0,
|
|
887
912
|
x: e.value.style.chart.comments.offsetX + (s(b)(t, !0).anchor === "end" ? s(b)(t).x - e.value.style.chart.comments.width : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - e.value.style.chart.comments.width / 2 : s(b)(t).x),
|
|
888
913
|
y: s(te)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
@@ -891,61 +916,61 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
891
916
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
892
917
|
}, [
|
|
893
918
|
h("div", null, [
|
|
894
|
-
|
|
919
|
+
m(l.$slots, "plot-comment", {
|
|
895
920
|
plot: { ...t, textAlign: s(b)(t, !0, 16, !0).anchor, flexAlign: s(b)(t, !0, 16).anchor }
|
|
896
921
|
}, void 0, !0)
|
|
897
922
|
])
|
|
898
|
-
], 8,
|
|
899
|
-
|
|
923
|
+
], 8, Yl)) : v("", !0),
|
|
924
|
+
z(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
|
|
900
925
|
key: 1,
|
|
901
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
902
|
-
y:
|
|
926
|
+
x: e.value.style.chart.comments.offsetX + (R(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : R(c.value[a].middlePoint) === "middle" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
|
|
927
|
+
y: qe(c.value[a]) + e.value.style.chart.comments.offsetY,
|
|
903
928
|
width: e.value.style.chart.comments.width,
|
|
904
929
|
height: "200",
|
|
905
930
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
906
931
|
}, [
|
|
907
932
|
h("div", null, [
|
|
908
|
-
|
|
909
|
-
plot: { ...t, textAlign:
|
|
933
|
+
m(l.$slots, "plot-comment", {
|
|
934
|
+
plot: { ...t, textAlign: R(c.value[a].middlePoint), flexAlign: R(c.value[a].middlePoint) }
|
|
910
935
|
}, void 0, !0)
|
|
911
936
|
])
|
|
912
|
-
], 8,
|
|
937
|
+
], 8, Al)) : v("", !0)
|
|
913
938
|
])) : v("", !0)
|
|
914
|
-
], 10,
|
|
915
|
-
|
|
916
|
-
], 14,
|
|
917
|
-
l.$slots.watermark ? (o(), n("div",
|
|
918
|
-
|
|
939
|
+
], 10, kl))), 256)),
|
|
940
|
+
m(l.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
941
|
+
], 14, Nt)) : v("", !0),
|
|
942
|
+
l.$slots.watermark ? (o(), n("div", Xl, [
|
|
943
|
+
m(l.$slots, "watermark", U(E({ isPrinting: s(_e) || s(xe) })), void 0, !0)
|
|
919
944
|
])) : v("", !0),
|
|
920
|
-
|
|
921
|
-
key:
|
|
945
|
+
q.value ? v("", !0) : (o(), V(Lt, {
|
|
946
|
+
key: 5,
|
|
922
947
|
config: {
|
|
923
948
|
type: "donut",
|
|
924
949
|
style: {
|
|
925
950
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
926
951
|
donut: {
|
|
927
952
|
color: "#CCCCCC",
|
|
928
|
-
strokeWidth:
|
|
953
|
+
strokeWidth: J.value * 0.8
|
|
929
954
|
}
|
|
930
955
|
}
|
|
931
956
|
}
|
|
932
957
|
}, null, 8, ["config"])),
|
|
933
958
|
h("div", {
|
|
934
959
|
ref_key: "chartLegend",
|
|
935
|
-
ref:
|
|
960
|
+
ref: ye
|
|
936
961
|
}, [
|
|
937
|
-
e.value.style.chart.legend.show ? (o(),
|
|
938
|
-
key: `legend_${
|
|
939
|
-
legendSet:
|
|
940
|
-
config:
|
|
941
|
-
onClickMarker: r[4] || (r[4] = ({ i: t }) =>
|
|
962
|
+
e.value.style.chart.legend.show ? (o(), V(St, {
|
|
963
|
+
key: `legend_${be.value}`,
|
|
964
|
+
legendSet: Te.value,
|
|
965
|
+
config: We.value,
|
|
966
|
+
onClickMarker: r[4] || (r[4] = ({ i: t }) => Fe(t))
|
|
942
967
|
}, {
|
|
943
|
-
item:
|
|
968
|
+
item: P(({ legend: t, index: a }) => [
|
|
944
969
|
h("div", {
|
|
945
970
|
onClick: (i) => t.segregate(),
|
|
946
|
-
style: Y(`opacity:${
|
|
971
|
+
style: Y(`opacity:${N.value.includes(a) ? 0.5 : 1}`)
|
|
947
972
|
}, [
|
|
948
|
-
|
|
973
|
+
Me(x(t.name) + ": " + x(s(A)(
|
|
949
974
|
e.value.style.chart.layout.labels.value.formatter,
|
|
950
975
|
t.value,
|
|
951
976
|
s(L)({
|
|
@@ -959,7 +984,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
959
984
|
index: a
|
|
960
985
|
}
|
|
961
986
|
)) + " ", 1),
|
|
962
|
-
|
|
987
|
+
N.value.includes(a) ? (o(), n("span", Il, " ( " + x(Qe(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", Ol, " (" + x(isNaN(t.value / $.value) ? "-" : s(A)(
|
|
963
988
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
964
989
|
G.value ? t.proportion * 100 : t.value / $.value * 100,
|
|
965
990
|
s(L)({
|
|
@@ -968,13 +993,21 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
968
993
|
r: e.value.style.chart.legend.roundingPercentage
|
|
969
994
|
})
|
|
970
995
|
)) + ") ", 1))
|
|
971
|
-
], 12,
|
|
996
|
+
], 12, Nl)
|
|
972
997
|
]),
|
|
973
998
|
_: 1
|
|
974
999
|
}, 8, ["legendSet", "config"])) : v("", !0),
|
|
975
|
-
|
|
1000
|
+
m(l.$slots, "legend", { legend: Te.value }, void 0, !0)
|
|
976
1001
|
], 512),
|
|
977
|
-
|
|
1002
|
+
l.$slots.source ? (o(), n("div", {
|
|
1003
|
+
key: 6,
|
|
1004
|
+
ref_key: "source",
|
|
1005
|
+
ref: fe,
|
|
1006
|
+
dir: "auto"
|
|
1007
|
+
}, [
|
|
1008
|
+
m(l.$slots, "source", {}, void 0, !0)
|
|
1009
|
+
], 512)) : v("", !0),
|
|
1010
|
+
Be(Pt, {
|
|
978
1011
|
show: y.value.showTooltip && ae.value,
|
|
979
1012
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
980
1013
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -985,20 +1018,20 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
985
1018
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
986
1019
|
position: e.value.style.chart.tooltip.position,
|
|
987
1020
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
988
|
-
parent:
|
|
989
|
-
content:
|
|
990
|
-
isCustom:
|
|
1021
|
+
parent: H.value,
|
|
1022
|
+
content: se.value,
|
|
1023
|
+
isCustom: K.value
|
|
991
1024
|
}, {
|
|
992
|
-
"tooltip-before":
|
|
993
|
-
|
|
1025
|
+
"tooltip-before": P(() => [
|
|
1026
|
+
m(l.$slots, "tooltip-before", U(E({ ...re.value })), void 0, !0)
|
|
994
1027
|
]),
|
|
995
|
-
"tooltip-after":
|
|
996
|
-
|
|
1028
|
+
"tooltip-after": P(() => [
|
|
1029
|
+
m(l.$slots, "tooltip-after", U(E({ ...re.value })), void 0, !0)
|
|
997
1030
|
]),
|
|
998
1031
|
_: 3
|
|
999
1032
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
1000
|
-
|
|
1001
|
-
key:
|
|
1033
|
+
q.value ? (o(), V(Ft, {
|
|
1034
|
+
key: 7,
|
|
1002
1035
|
hideDetails: "",
|
|
1003
1036
|
config: {
|
|
1004
1037
|
open: y.value.showTable,
|
|
@@ -1013,9 +1046,9 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
1013
1046
|
}
|
|
1014
1047
|
}
|
|
1015
1048
|
}, {
|
|
1016
|
-
content:
|
|
1017
|
-
(o(),
|
|
1018
|
-
key: `table_${
|
|
1049
|
+
content: P(() => [
|
|
1050
|
+
(o(), V($t, {
|
|
1051
|
+
key: `table_${ge.value}`,
|
|
1019
1052
|
colNames: oe.value.colNames,
|
|
1020
1053
|
head: oe.value.head,
|
|
1021
1054
|
body: oe.value.body,
|
|
@@ -1023,14 +1056,14 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
1023
1056
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1024
1057
|
onClose: r[5] || (r[5] = (t) => y.value.showTable = !1)
|
|
1025
1058
|
}, {
|
|
1026
|
-
th:
|
|
1059
|
+
th: P(({ th: t }) => [
|
|
1027
1060
|
h("div", {
|
|
1028
1061
|
innerHTML: t,
|
|
1029
1062
|
style: { display: "flex", "align-items": "center" }
|
|
1030
|
-
}, null, 8,
|
|
1063
|
+
}, null, 8, Dl)
|
|
1031
1064
|
]),
|
|
1032
|
-
td:
|
|
1033
|
-
|
|
1065
|
+
td: P(({ td: t }) => [
|
|
1066
|
+
Me(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(A)(
|
|
1034
1067
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1035
1068
|
t,
|
|
1036
1069
|
s(L)({
|
|
@@ -1038,7 +1071,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
1038
1071
|
s: "%",
|
|
1039
1072
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1040
1073
|
})
|
|
1041
|
-
) : s(
|
|
1074
|
+
) : s(A)(
|
|
1042
1075
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1043
1076
|
t,
|
|
1044
1077
|
s(L)({
|
|
@@ -1054,9 +1087,9 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
|
|
|
1054
1087
|
]),
|
|
1055
1088
|
_: 1
|
|
1056
1089
|
}, 8, ["config"])) : v("", !0)
|
|
1057
|
-
], 14,
|
|
1090
|
+
], 14, Xt));
|
|
1058
1091
|
}
|
|
1059
|
-
},
|
|
1092
|
+
}, ea = /* @__PURE__ */ Yt(Bl, [["__scopeId", "data-v-f76d6ac3"]]);
|
|
1060
1093
|
export {
|
|
1061
|
-
|
|
1094
|
+
ea as default
|
|
1062
1095
|
};
|