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,34 +1,35 @@
|
|
|
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 _t } from "./Legend-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import { computed as m, ref as d, watch as De, onMounted as Ze, onBeforeUnmount as je, openBlock as u, createElementBlock as n, normalizeClass as P, normalizeStyle as re, createBlock as D, createCommentVNode as f, unref as r, createSlots as et, withCtx as g, renderSlot as k, normalizeProps as R, guardReactiveProps as E, createVNode as ze, createElementVNode as y, Fragment as L, renderList as S, toDisplayString as N, createTextVNode as Q, nextTick as tt, pushScopeId as lt, popScopeId as at } from "vue";
|
|
2
|
+
import { u as ot, c as st, t as ut, a as nt, p as Z, o as rt, e as V, b as it, I as Ve, d as dt, m as Me, f as x, X as ct, s as Be, K as vt, k as M, n as ie, i as G, x as Ue, y as ft, q as ht, r as pt } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { t as yt, u as bt } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as gt } from "./Title-C5pIfQAz.js";
|
|
5
|
+
import { u as mt, U as kt } from "./usePrinter-CiHd1FwD.js";
|
|
6
|
+
import { D as $t } from "./DataTable-DYqC2pqu.js";
|
|
7
|
+
import { _ as wt } from "./Tooltip-Cz24YLfw.js";
|
|
8
|
+
import { L as _t } from "./Legend-DNgTCgEK.js";
|
|
9
|
+
import Lt from "./vue-ui-skeleton-BYssP0K4.js";
|
|
10
|
+
import xt from "./vue-ui-accordion-DfUfL2dI.js";
|
|
11
|
+
import { u as Re } from "./useNestedProp-B33hazbH.js";
|
|
12
|
+
import { _ as Ct } from "./PackageVersion-VkaUzgmt.js";
|
|
13
|
+
import { P as Ft } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const de = (B) => (lt("data-v-65f48b0a"), B = B(), at(), B), Tt = ["id"], Nt = ["xmlns", "viewBox"], It = ["id"], At = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
15
16
|
offset: "0%",
|
|
16
17
|
"stop-color": "#FFFFFF",
|
|
17
18
|
"stop-opacity": "0"
|
|
18
|
-
}, null, -1)),
|
|
19
|
+
}, null, -1)), Ot = ["offset", "stop-color"], Pt = ["offset", "stop-opacity"], Dt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
|
|
19
20
|
offset: "100%",
|
|
20
21
|
"stop-color": "#FFFFFF",
|
|
21
22
|
"stop-opacity": "0"
|
|
22
|
-
}, null, -1)),
|
|
23
|
+
}, null, -1)), zt = ["id"], Vt = ["id"], Mt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("feColorMatrix", {
|
|
23
24
|
type: "saturate",
|
|
24
25
|
values: "0"
|
|
25
|
-
}, null, -1)),
|
|
26
|
-
key:
|
|
26
|
+
}, null, -1)), Bt = ["id"], Ut = ["flood-color"], Rt = ["d", "fill", "stroke", "stroke-width", "filter"], Et = { key: 0 }, Gt = ["d", "fill"], Yt = { key: 1 }, Xt = ["x", "y", "font-size", "font-weight", "fill"], Wt = { key: 2 }, Ht = ["filter"], qt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Jt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Qt = ["d", "fill", "onMouseenter", "onClick"], Zt = {
|
|
27
|
+
key: 4,
|
|
27
28
|
class: "vue-data-ui-watermark"
|
|
28
|
-
},
|
|
29
|
+
}, jt = {
|
|
29
30
|
key: 0,
|
|
30
31
|
class: "vue-ui-nested-donuts-legend-title"
|
|
31
|
-
},
|
|
32
|
+
}, el = ["onClick"], tl = ["innerHTML"], ll = {
|
|
32
33
|
__name: "vue-ui-nested-donuts",
|
|
33
34
|
props: {
|
|
34
35
|
config: {
|
|
@@ -45,93 +46,94 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
45
46
|
}
|
|
46
47
|
},
|
|
47
48
|
emits: ["selectLegend", "selectDatapoint"],
|
|
48
|
-
setup(
|
|
49
|
-
const I =
|
|
50
|
-
function
|
|
51
|
-
U.value = t,
|
|
49
|
+
setup(B, { expose: Ee, emit: ce }) {
|
|
50
|
+
const I = B, { vue_ui_nested_donuts: Ge } = ot(), Y = m(() => !!I.dataset && I.dataset.length), $ = d(st()), j = d(!1), ee = d(""), Ye = d(null), ve = d(0), z = d(null), fe = d(null), te = d(null), he = d(null), pe = d(0), ye = d(0), be = d(0), U = d(!1);
|
|
51
|
+
function Xe(t) {
|
|
52
|
+
U.value = t, ve.value += 1;
|
|
52
53
|
}
|
|
53
|
-
const e =
|
|
54
|
-
get: () =>
|
|
54
|
+
const e = m({
|
|
55
|
+
get: () => ge(),
|
|
55
56
|
set: (t) => t
|
|
56
57
|
});
|
|
57
|
-
function
|
|
58
|
-
const t =
|
|
58
|
+
function ge() {
|
|
59
|
+
const t = Re({
|
|
59
60
|
userConfig: I.config,
|
|
60
|
-
defaultConfig:
|
|
61
|
+
defaultConfig: Ge
|
|
61
62
|
});
|
|
62
63
|
return t.theme ? {
|
|
63
|
-
...
|
|
64
|
-
userConfig:
|
|
64
|
+
...Re({
|
|
65
|
+
userConfig: ut.vue_ui_nested_donuts[t.theme] || I.config,
|
|
65
66
|
defaultConfig: t
|
|
66
67
|
}),
|
|
67
|
-
customPalette:
|
|
68
|
+
customPalette: nt[t.theme] || Z
|
|
68
69
|
} : t;
|
|
69
70
|
}
|
|
70
71
|
De(() => I.config, (t) => {
|
|
71
|
-
e.value =
|
|
72
|
+
e.value = ge(), me(), pe.value += 1, ye.value += 1, be.value += 1;
|
|
72
73
|
}, { deep: !0 });
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const X = d(null);
|
|
75
|
+
Ze(() => {
|
|
76
|
+
me();
|
|
76
77
|
});
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
78
|
+
function me() {
|
|
79
|
+
if (rt(I.dataset) && V({
|
|
79
80
|
componentName: "VueUiNestedDonuts",
|
|
80
81
|
type: "dataset"
|
|
81
82
|
}), e.value.responsive) {
|
|
82
|
-
const t =
|
|
83
|
-
const { width: s, height: a } =
|
|
84
|
-
chart:
|
|
85
|
-
title: e.value.style.chart.title.text ?
|
|
86
|
-
legend: e.value.style.chart.legend.show ?
|
|
83
|
+
const t = yt(() => {
|
|
84
|
+
const { width: s, height: a } = bt({
|
|
85
|
+
chart: z.value,
|
|
86
|
+
title: e.value.style.chart.title.text ? fe.value : null,
|
|
87
|
+
legend: e.value.style.chart.legend.show ? te.value : null,
|
|
88
|
+
source: he.value
|
|
87
89
|
});
|
|
88
|
-
|
|
90
|
+
h.value.width = s, h.value.height = a;
|
|
89
91
|
});
|
|
90
|
-
|
|
92
|
+
X.value = new ResizeObserver(t), X.value.observe(z.value.parentNode);
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
je(() => {
|
|
96
|
+
X.value && X.value.disconnect();
|
|
95
97
|
});
|
|
96
|
-
const { isPrinting:
|
|
97
|
-
elementId: `nested_donuts_${
|
|
98
|
+
const { isPrinting: ke, isImaging: $e, generatePdf: we, generateImage: _e } = mt({
|
|
99
|
+
elementId: `nested_donuts_${$.value}`,
|
|
98
100
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
99
|
-
}),
|
|
101
|
+
}), We = m(() => it(e.value.customPalette)), w = d({
|
|
100
102
|
dataLabels: {
|
|
101
103
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
102
104
|
},
|
|
103
105
|
showTable: e.value.table.show,
|
|
104
106
|
showTooltip: e.value.style.chart.tooltip.show
|
|
105
|
-
}),
|
|
107
|
+
}), h = d({
|
|
106
108
|
height: 512,
|
|
107
109
|
width: 512
|
|
108
110
|
});
|
|
109
|
-
function
|
|
110
|
-
|
|
111
|
+
function He({ datapoint: t, index: s }) {
|
|
112
|
+
ce("selectDatapoint", { datapoint: t, index: s });
|
|
111
113
|
}
|
|
112
|
-
const
|
|
113
|
-
[null, void 0].includes(t.name) &&
|
|
114
|
+
const p = d([]), C = m(() => (I.dataset.forEach((t, s) => {
|
|
115
|
+
[null, void 0].includes(t.name) && V({
|
|
114
116
|
componentName: "VueUiNestedDonuts",
|
|
115
117
|
type: "datasetSerieAttribute",
|
|
116
118
|
property: "name",
|
|
117
119
|
index: s
|
|
118
|
-
}), [null, void 0].includes(t.series) ?
|
|
120
|
+
}), [null, void 0].includes(t.series) ? V({
|
|
119
121
|
componentName: "VueUiNestedDonuts",
|
|
120
122
|
type: "datasetSerieAttribute",
|
|
121
123
|
property: "series",
|
|
122
124
|
index: s
|
|
123
|
-
}) : t.series.length === 0 ?
|
|
125
|
+
}) : t.series.length === 0 ? V({
|
|
124
126
|
componentName: "VueUiNestedDonuts",
|
|
125
127
|
type: "datasetAttributeEmpty",
|
|
126
128
|
property: `series at index ${s}`
|
|
127
129
|
}) : t.series.forEach((a, o) => {
|
|
128
|
-
[null, void 0].includes(a.name) &&
|
|
130
|
+
[null, void 0].includes(a.name) && V({
|
|
129
131
|
componentName: "VueUiNestedDonuts",
|
|
130
132
|
type: "datasetSerieAttribute",
|
|
131
133
|
property: "name",
|
|
132
134
|
index: o,
|
|
133
135
|
key: "serie"
|
|
134
|
-
}), [null, void 0].includes(a.values) &&
|
|
136
|
+
}), [null, void 0].includes(a.values) && V({
|
|
135
137
|
componentName: "VueUiNestedDonuts",
|
|
136
138
|
type: "datasetSerieAttribute",
|
|
137
139
|
property: "values",
|
|
@@ -141,90 +143,90 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
141
143
|
});
|
|
142
144
|
}), I.dataset.map((t, s) => ({
|
|
143
145
|
...t,
|
|
144
|
-
total: t.series.filter((a) => !
|
|
146
|
+
total: t.series.filter((a) => !p.value.includes(a.id)).map((a) => Ve(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
|
|
145
147
|
datasetIndex: s,
|
|
146
|
-
id: `${
|
|
148
|
+
id: `${$.value}_${s}`,
|
|
147
149
|
series: t.series.map((a, o) => ({
|
|
148
150
|
name: a.name,
|
|
149
151
|
arcOf: t.name,
|
|
150
|
-
arcOfId: `${
|
|
151
|
-
id: `${
|
|
152
|
+
arcOfId: `${$.value}_${s}`,
|
|
153
|
+
id: `${$.value}_${s}_${o}`,
|
|
152
154
|
seriesIndex: o,
|
|
153
155
|
datasetIndex: s,
|
|
154
|
-
color:
|
|
155
|
-
value:
|
|
156
|
+
color: dt(a.color) || We.value[o] || Z[o] || Z[o % Z.length],
|
|
157
|
+
value: Ve(a.values).reduce((l, i) => l + i, 0),
|
|
156
158
|
absoluteValues: a.values || []
|
|
157
159
|
}))
|
|
158
|
-
})))), F =
|
|
159
|
-
const a = t.series.filter((o) => !
|
|
160
|
+
})))), F = m(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Le = m(() => [...C.value].map((t, s) => {
|
|
161
|
+
const a = t.series.filter((o) => !p.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
160
162
|
return {
|
|
161
163
|
...t,
|
|
162
164
|
total: a,
|
|
163
|
-
series: t.series.filter((o) => !
|
|
165
|
+
series: t.series.filter((o) => !p.value.includes(o.id)).map((o) => ({
|
|
164
166
|
...o,
|
|
165
167
|
proportion: o.value / a
|
|
166
168
|
}))
|
|
167
169
|
};
|
|
168
170
|
}));
|
|
169
|
-
function
|
|
171
|
+
function qe(t, s, a) {
|
|
170
172
|
let o = 0;
|
|
171
173
|
for (let l = 0; l < t.length; l += 1)
|
|
172
174
|
a.includes(t[l]) && (o += 1);
|
|
173
175
|
return o < s;
|
|
174
176
|
}
|
|
175
|
-
const v = d(
|
|
176
|
-
De(() =>
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
|
|
177
|
+
const v = d(Le.value);
|
|
178
|
+
De(() => Le.value, (t) => v.value = t);
|
|
179
|
+
const xe = d(null), Ce = d(null);
|
|
180
|
+
function le(t) {
|
|
181
|
+
ce("selectLegend", t);
|
|
180
182
|
const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = v.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
181
183
|
let l = a ? a.value : 0;
|
|
182
|
-
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b =
|
|
183
|
-
if (
|
|
184
|
+
const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = qe(i, i.length - 1, p.value);
|
|
185
|
+
if (p.value.includes(t.id)) {
|
|
184
186
|
let c = function() {
|
|
185
|
-
l > s.value ? (cancelAnimationFrame(
|
|
186
|
-
...
|
|
187
|
-
series:
|
|
188
|
-
...
|
|
187
|
+
l > s.value ? (cancelAnimationFrame(xe.value), v.value = v.value.map((_) => ({
|
|
188
|
+
..._,
|
|
189
|
+
series: _.series.map((T) => T.id == t.id ? {
|
|
190
|
+
...T,
|
|
189
191
|
value: s.value
|
|
190
|
-
} :
|
|
191
|
-
}))) : (l += s.value * 0.025, v.value = v.value.map((
|
|
192
|
-
...
|
|
193
|
-
series:
|
|
194
|
-
...
|
|
192
|
+
} : T)
|
|
193
|
+
}))) : (l += s.value * 0.025, v.value = v.value.map((_) => ({
|
|
194
|
+
..._,
|
|
195
|
+
series: _.series.map((T) => T.id === t.id ? {
|
|
196
|
+
...T,
|
|
195
197
|
value: l
|
|
196
|
-
} :
|
|
197
|
-
})),
|
|
198
|
+
} : T)
|
|
199
|
+
})), xe.value = requestAnimationFrame(c));
|
|
198
200
|
};
|
|
199
|
-
|
|
201
|
+
p.value = p.value.filter((_) => _ !== t.id), c();
|
|
200
202
|
} else if (b) {
|
|
201
203
|
let c = function() {
|
|
202
|
-
l < 0.1 ? (cancelAnimationFrame(
|
|
203
|
-
...
|
|
204
|
-
series:
|
|
204
|
+
l < 0.1 ? (cancelAnimationFrame(Ce.value), p.value.push(t.id), v.value = v.value.map((_, T) => ({
|
|
205
|
+
..._,
|
|
206
|
+
series: _.series.map((O) => O.id === t.id ? {
|
|
205
207
|
...O,
|
|
206
208
|
value: 0
|
|
207
209
|
} : O)
|
|
208
|
-
}))) : (l /= 1.1, v.value = v.value.map((
|
|
209
|
-
...
|
|
210
|
-
series:
|
|
210
|
+
}))) : (l /= 1.1, v.value = v.value.map((_, T) => ({
|
|
211
|
+
..._,
|
|
212
|
+
series: _.series.map((O) => O.id === t.id ? {
|
|
211
213
|
...O,
|
|
212
214
|
value: l
|
|
213
215
|
} : O)
|
|
214
|
-
})),
|
|
216
|
+
})), Ce.value = requestAnimationFrame(c));
|
|
215
217
|
};
|
|
216
218
|
c();
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
|
-
const
|
|
221
|
+
const ae = m(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), Fe = m(() => v.value.map((t, s) => F.value - s * F.value / C.value.length)), W = m(() => v.value.map((t, s) => {
|
|
220
222
|
const a = s * F.value / C.value.length;
|
|
221
223
|
return {
|
|
222
224
|
...t,
|
|
223
225
|
radius: F.value - a,
|
|
224
|
-
donut:
|
|
226
|
+
donut: Me(
|
|
225
227
|
{ series: t.series },
|
|
226
|
-
|
|
227
|
-
|
|
228
|
+
h.value.width / 2,
|
|
229
|
+
h.value.height / 2,
|
|
228
230
|
F.value - a,
|
|
229
231
|
F.value - a,
|
|
230
232
|
1.99999,
|
|
@@ -232,17 +234,17 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
232
234
|
1,
|
|
233
235
|
360,
|
|
234
236
|
105.25,
|
|
235
|
-
|
|
237
|
+
ae.value
|
|
236
238
|
)
|
|
237
239
|
};
|
|
238
|
-
})),
|
|
240
|
+
})), Se = m(() => [...C.value].map((t, s) => {
|
|
239
241
|
const a = s * F.value / C.value.length;
|
|
240
242
|
return {
|
|
241
243
|
sizeRatio: a,
|
|
242
|
-
donut:
|
|
244
|
+
donut: Me(
|
|
243
245
|
{ series: [{ value: 1 }] },
|
|
244
|
-
|
|
245
|
-
|
|
246
|
+
h.value.width / 2,
|
|
247
|
+
h.value.height / 2,
|
|
246
248
|
F.value - a,
|
|
247
249
|
F.value - a,
|
|
248
250
|
1.99999,
|
|
@@ -253,22 +255,22 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
253
255
|
F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
254
256
|
)[0]
|
|
255
257
|
};
|
|
256
|
-
})),
|
|
257
|
-
function
|
|
258
|
-
|
|
258
|
+
})), Te = d(null), H = d(null), q = d(null), oe = d(null);
|
|
259
|
+
function Ke({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
|
|
260
|
+
Te.value = t.arcOfId, H.value = t.id, q.value = a, oe.value = {
|
|
259
261
|
datapoint: t,
|
|
260
262
|
seriesIndex: a,
|
|
261
263
|
series: v.value,
|
|
262
264
|
config: e.value
|
|
263
265
|
};
|
|
264
266
|
const o = e.value.style.chart.tooltip.customFormat;
|
|
265
|
-
if (
|
|
267
|
+
if (Ue(o) && ft(() => o({
|
|
266
268
|
seriesIndex: a,
|
|
267
269
|
datapoint: t,
|
|
268
270
|
series: v.value,
|
|
269
271
|
config: e.value
|
|
270
272
|
})))
|
|
271
|
-
|
|
273
|
+
ee.value = o({
|
|
272
274
|
seriesIndex: a,
|
|
273
275
|
datapoint: t,
|
|
274
276
|
series: v.value,
|
|
@@ -276,7 +278,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
276
278
|
});
|
|
277
279
|
else {
|
|
278
280
|
let l = "";
|
|
279
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
281
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0) {
|
|
280
282
|
const i = v.value.map((b) => b.series.find((c) => c.seriesIndex === a));
|
|
281
283
|
i.forEach((b, c) => {
|
|
282
284
|
if (!b) return "";
|
|
@@ -291,10 +293,10 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
291
293
|
</span>
|
|
292
294
|
</div>
|
|
293
295
|
<span>
|
|
294
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
296
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${G(
|
|
295
297
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
296
298
|
t.value,
|
|
297
|
-
|
|
299
|
+
x({
|
|
298
300
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
299
301
|
v: t.value,
|
|
300
302
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -303,7 +305,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
303
305
|
{ datapoint: t, seriesIndex: a }
|
|
304
306
|
)}
|
|
305
307
|
</b>` : ""}
|
|
306
|
-
${e.value.style.chart.tooltip.showPercentage ? `(${
|
|
308
|
+
${e.value.style.chart.tooltip.showPercentage ? `(${x({
|
|
307
309
|
v: b.proportion * 100,
|
|
308
310
|
s: "%",
|
|
309
311
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -313,41 +315,41 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
313
315
|
`;
|
|
314
316
|
});
|
|
315
317
|
} else
|
|
316
|
-
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${
|
|
318
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${G(
|
|
317
319
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
318
320
|
t.value,
|
|
319
|
-
|
|
321
|
+
x({
|
|
320
322
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
321
323
|
v: t.value,
|
|
322
324
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
323
325
|
r: e.value.style.chart.tooltip.roundingValue
|
|
324
326
|
}),
|
|
325
327
|
{ datapoint: t, seriesIndex: a }
|
|
326
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${
|
|
328
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${x({
|
|
327
329
|
v: t.proportion * 100,
|
|
328
330
|
s: "%",
|
|
329
331
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
330
|
-
})})</span></div>` : l += `<b>${
|
|
332
|
+
})})</span></div>` : l += `<b>${x({
|
|
331
333
|
v: t.proportion * 100,
|
|
332
334
|
s: "%",
|
|
333
335
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
334
336
|
})}</b></div>`);
|
|
335
|
-
|
|
337
|
+
ee.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
|
|
336
338
|
}
|
|
337
|
-
|
|
339
|
+
j.value = !0;
|
|
338
340
|
}
|
|
339
|
-
function
|
|
341
|
+
function se(t) {
|
|
340
342
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
341
343
|
}
|
|
342
|
-
function
|
|
344
|
+
function Ne(t, s) {
|
|
343
345
|
if (!e.value.useBlurOnHover)
|
|
344
346
|
return "";
|
|
345
|
-
if (e.value.style.chart.tooltip.showAllItemsAtIndex &&
|
|
346
|
-
return [null, void 0].includes(
|
|
347
|
-
if (!e.value.style.chart.tooltip.showAllItemsAtIndex ||
|
|
348
|
-
return [null, void 0].includes(
|
|
347
|
+
if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0)
|
|
348
|
+
return [null, void 0].includes(q.value) || q.value === s ? "" : `url(#blur_${$.value})`;
|
|
349
|
+
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || p.value.length)
|
|
350
|
+
return [null, void 0].includes(H.value) || H.value === t.id ? "" : `url(#blur_${$.value})`;
|
|
349
351
|
}
|
|
350
|
-
const
|
|
352
|
+
const ue = m(() => C.value.map((t, s) => t.series.map((a, o) => ({
|
|
351
353
|
name: a.name,
|
|
352
354
|
color: a.color,
|
|
353
355
|
value: a.value,
|
|
@@ -356,20 +358,20 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
356
358
|
id: a.id,
|
|
357
359
|
seriesIndex: o,
|
|
358
360
|
datasetIndex: s,
|
|
359
|
-
total: t.series.filter((l) => !
|
|
361
|
+
total: t.series.filter((l) => !p.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
|
|
360
362
|
})).map((a) => ({
|
|
361
363
|
...a,
|
|
362
|
-
opacity:
|
|
363
|
-
segregate: () =>
|
|
364
|
-
isSegregated:
|
|
365
|
-
})))),
|
|
364
|
+
opacity: p.value.includes(a.id) ? 0.5 : 1,
|
|
365
|
+
segregate: () => le(a),
|
|
366
|
+
isSegregated: p.value.includes(a.id)
|
|
367
|
+
})))), Je = m(() => ({
|
|
366
368
|
cy: "nested-donuts-legend",
|
|
367
369
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
368
370
|
color: e.value.style.chart.legend.color,
|
|
369
371
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
370
372
|
paddingBottom: 12,
|
|
371
373
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
372
|
-
})),
|
|
374
|
+
})), A = m(() => {
|
|
373
375
|
const t = v.value.flatMap((a) => a.series.map((o) => ({
|
|
374
376
|
name: `${a.name} - ${o.name}`,
|
|
375
377
|
color: o.color,
|
|
@@ -377,29 +379,29 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
377
379
|
}))), s = v.value.flatMap((a) => a.series.map((o) => o.value));
|
|
378
380
|
return { head: t, body: s };
|
|
379
381
|
});
|
|
380
|
-
function
|
|
381
|
-
|
|
382
|
-
const t =
|
|
382
|
+
function Ie() {
|
|
383
|
+
tt(() => {
|
|
384
|
+
const t = A.value.head.map((o, l) => [[
|
|
383
385
|
o.name
|
|
384
|
-
], [
|
|
385
|
-
|
|
386
|
+
], [A.value.body[l]], [isNaN(A.value.body[l] / o.total) ? "-" : A.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = ht(s);
|
|
387
|
+
pt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
386
388
|
});
|
|
387
389
|
}
|
|
388
|
-
const
|
|
390
|
+
const K = m(() => {
|
|
389
391
|
const t = [
|
|
390
392
|
e.value.table.columnNames.series,
|
|
391
393
|
e.value.table.columnNames.value,
|
|
392
394
|
e.value.table.columnNames.percentage
|
|
393
|
-
], s =
|
|
394
|
-
const b =
|
|
395
|
+
], s = A.value.head.map((l, i) => {
|
|
396
|
+
const b = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
|
|
395
397
|
return [
|
|
396
398
|
{
|
|
397
399
|
color: l.color,
|
|
398
400
|
name: l.name
|
|
399
401
|
},
|
|
400
402
|
b,
|
|
401
|
-
isNaN(
|
|
402
|
-
v:
|
|
403
|
+
isNaN(A.value.body[i] / l.total) ? "-" : x({
|
|
404
|
+
v: A.value.body[i] / l.total * 100,
|
|
403
405
|
s: "%",
|
|
404
406
|
r: e.value.table.td.roundingPercentage
|
|
405
407
|
})
|
|
@@ -428,40 +430,53 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
428
430
|
config: a
|
|
429
431
|
};
|
|
430
432
|
});
|
|
431
|
-
function
|
|
433
|
+
function Qe() {
|
|
432
434
|
return C.value;
|
|
433
435
|
}
|
|
434
|
-
function
|
|
436
|
+
function Ae() {
|
|
435
437
|
w.value.showTable = !w.value.showTable;
|
|
436
438
|
}
|
|
437
|
-
function
|
|
439
|
+
function Oe() {
|
|
438
440
|
w.value.dataLabels.show = !w.value.dataLabels.show;
|
|
439
441
|
}
|
|
440
|
-
function
|
|
442
|
+
function Pe() {
|
|
441
443
|
w.value.showTooltip = !w.value.showTooltip;
|
|
442
444
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
const J = d(!1);
|
|
446
|
+
function ne() {
|
|
447
|
+
J.value = !J.value;
|
|
448
|
+
}
|
|
449
|
+
return Ee({
|
|
450
|
+
getData: Qe,
|
|
451
|
+
generatePdf: we,
|
|
452
|
+
generateCsv: Ie,
|
|
447
453
|
generateImage: _e,
|
|
448
|
-
toggleTable:
|
|
449
|
-
toggleLabels:
|
|
450
|
-
toggleTooltip:
|
|
454
|
+
toggleTable: Ae,
|
|
455
|
+
toggleLabels: Oe,
|
|
456
|
+
toggleTooltip: Pe,
|
|
457
|
+
toggleAnnotator: ne
|
|
451
458
|
}), (t, s) => (u(), n("div", {
|
|
452
459
|
ref_key: "nestedDonutsChart",
|
|
453
|
-
ref:
|
|
454
|
-
class:
|
|
455
|
-
style:
|
|
456
|
-
id: `nested_donuts_${
|
|
460
|
+
ref: z,
|
|
461
|
+
class: P(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
462
|
+
style: re(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
|
|
463
|
+
id: `nested_donuts_${$.value}`
|
|
457
464
|
}, [
|
|
458
|
-
e.value.
|
|
465
|
+
e.value.userOptions.buttons.annotator ? (u(), D(Ft, {
|
|
459
466
|
key: 0,
|
|
467
|
+
parent: z.value,
|
|
468
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
469
|
+
color: e.value.style.chart.color,
|
|
470
|
+
active: J.value,
|
|
471
|
+
onClose: ne
|
|
472
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
473
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
474
|
+
key: 1,
|
|
460
475
|
ref_key: "chartTitle",
|
|
461
|
-
ref:
|
|
476
|
+
ref: fe
|
|
462
477
|
}, [
|
|
463
|
-
(u(),
|
|
464
|
-
key: `title_${
|
|
478
|
+
(u(), D(gt, {
|
|
479
|
+
key: `title_${pe.value}`,
|
|
465
480
|
config: {
|
|
466
481
|
title: {
|
|
467
482
|
cy: "donut-div-title",
|
|
@@ -473,15 +488,15 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
473
488
|
}
|
|
474
489
|
}
|
|
475
490
|
}, null, 8, ["config"]))
|
|
476
|
-
], 512)) :
|
|
477
|
-
e.value.userOptions.show &&
|
|
491
|
+
], 512)) : f("", !0),
|
|
492
|
+
e.value.userOptions.show && Y.value ? (u(), D(kt, {
|
|
478
493
|
ref: "details",
|
|
479
|
-
key: `user_option_${
|
|
494
|
+
key: `user_option_${ve.value}`,
|
|
480
495
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
481
496
|
color: e.value.style.chart.color,
|
|
482
|
-
isPrinting: r(
|
|
483
|
-
isImaging: r(
|
|
484
|
-
uid:
|
|
497
|
+
isPrinting: r(ke),
|
|
498
|
+
isImaging: r($e),
|
|
499
|
+
uid: $.value,
|
|
485
500
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
486
501
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
487
502
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -492,241 +507,251 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
492
507
|
isFullscreen: U.value,
|
|
493
508
|
isTooltip: w.value.showTooltip,
|
|
494
509
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
495
|
-
chartElement:
|
|
510
|
+
chartElement: z.value,
|
|
496
511
|
position: e.value.userOptions.position,
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
512
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
513
|
+
isAnnotation: J.value,
|
|
514
|
+
onToggleFullscreen: Xe,
|
|
515
|
+
onGeneratePdf: r(we),
|
|
516
|
+
onGenerateCsv: Ie,
|
|
500
517
|
onGenerateImage: r(_e),
|
|
501
|
-
onToggleTable:
|
|
502
|
-
onToggleLabels:
|
|
503
|
-
onToggleTooltip:
|
|
504
|
-
|
|
518
|
+
onToggleTable: Ae,
|
|
519
|
+
onToggleLabels: Oe,
|
|
520
|
+
onToggleTooltip: Pe,
|
|
521
|
+
onToggleAnnotator: ne
|
|
522
|
+
}, et({ _: 2 }, [
|
|
505
523
|
t.$slots.optionTooltip ? {
|
|
506
524
|
name: "optionTooltip",
|
|
507
|
-
fn:
|
|
508
|
-
|
|
525
|
+
fn: g(() => [
|
|
526
|
+
k(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
509
527
|
]),
|
|
510
528
|
key: "0"
|
|
511
529
|
} : void 0,
|
|
512
530
|
t.$slots.optionPdf ? {
|
|
513
531
|
name: "optionPdf",
|
|
514
|
-
fn:
|
|
515
|
-
|
|
532
|
+
fn: g(() => [
|
|
533
|
+
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
516
534
|
]),
|
|
517
535
|
key: "1"
|
|
518
536
|
} : void 0,
|
|
519
537
|
t.$slots.optionCsv ? {
|
|
520
538
|
name: "optionCsv",
|
|
521
|
-
fn:
|
|
522
|
-
|
|
539
|
+
fn: g(() => [
|
|
540
|
+
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
523
541
|
]),
|
|
524
542
|
key: "2"
|
|
525
543
|
} : void 0,
|
|
526
544
|
t.$slots.optionImg ? {
|
|
527
545
|
name: "optionImg",
|
|
528
|
-
fn:
|
|
529
|
-
|
|
546
|
+
fn: g(() => [
|
|
547
|
+
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
530
548
|
]),
|
|
531
549
|
key: "3"
|
|
532
550
|
} : void 0,
|
|
533
551
|
t.$slots.optionTable ? {
|
|
534
552
|
name: "optionTable",
|
|
535
|
-
fn:
|
|
536
|
-
|
|
553
|
+
fn: g(() => [
|
|
554
|
+
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
537
555
|
]),
|
|
538
556
|
key: "4"
|
|
539
557
|
} : void 0,
|
|
540
558
|
t.$slots.optionLabels ? {
|
|
541
559
|
name: "optionLabels",
|
|
542
|
-
fn:
|
|
543
|
-
|
|
560
|
+
fn: g(() => [
|
|
561
|
+
k(t.$slots, "optionLabels", {}, void 0, !0)
|
|
544
562
|
]),
|
|
545
563
|
key: "5"
|
|
546
564
|
} : void 0,
|
|
547
565
|
t.$slots.optionFullscreen ? {
|
|
548
566
|
name: "optionFullscreen",
|
|
549
|
-
fn:
|
|
550
|
-
|
|
567
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
568
|
+
k(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
551
569
|
]),
|
|
552
570
|
key: "6"
|
|
571
|
+
} : void 0,
|
|
572
|
+
t.$slots.optionAnnotator ? {
|
|
573
|
+
name: "optionAnnotator",
|
|
574
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
575
|
+
k(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
576
|
+
]),
|
|
577
|
+
key: "7"
|
|
553
578
|
} : void 0
|
|
554
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
555
|
-
|
|
556
|
-
key:
|
|
557
|
-
xmlns: r(
|
|
558
|
-
class:
|
|
559
|
-
viewBox: `0 0 ${
|
|
560
|
-
style:
|
|
579
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
580
|
+
Y.value ? (u(), n("svg", {
|
|
581
|
+
key: 3,
|
|
582
|
+
xmlns: r(ct),
|
|
583
|
+
class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
584
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
585
|
+
style: re(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
561
586
|
}, [
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
(u(!0), n(
|
|
565
|
-
id: `radial_${
|
|
587
|
+
ze(Ct),
|
|
588
|
+
y("defs", null, [
|
|
589
|
+
(u(!0), n(L, null, S(Se.value, (a, o) => (u(), n("radialGradient", {
|
|
590
|
+
id: `radial_${$.value}_${o}`
|
|
566
591
|
}, [
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
offset: `${(1 -
|
|
570
|
-
"stop-color": r(
|
|
592
|
+
At,
|
|
593
|
+
y("stop", {
|
|
594
|
+
offset: `${(1 - ae.value / Fe.value[o]) * 100}%`,
|
|
595
|
+
"stop-color": r(Be)("#FFFFFF", 0),
|
|
571
596
|
"stop-opacity": "0"
|
|
572
|
-
}, null, 8,
|
|
573
|
-
|
|
574
|
-
offset: `${(1 -
|
|
597
|
+
}, null, 8, Ot),
|
|
598
|
+
y("stop", {
|
|
599
|
+
offset: `${(1 - ae.value / Fe.value[o] / 2) * 100}%`,
|
|
575
600
|
"stop-color": "#FFFFFF",
|
|
576
601
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
577
|
-
}, null, 8,
|
|
578
|
-
|
|
579
|
-
], 8,
|
|
602
|
+
}, null, 8, Pt),
|
|
603
|
+
Dt
|
|
604
|
+
], 8, It))), 256))
|
|
580
605
|
]),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
id: `blur_${
|
|
606
|
+
y("defs", null, [
|
|
607
|
+
y("filter", {
|
|
608
|
+
id: `blur_${$.value}`,
|
|
584
609
|
x: "-50%",
|
|
585
610
|
y: "-50%",
|
|
586
611
|
width: "200%",
|
|
587
612
|
height: "200%"
|
|
588
613
|
}, [
|
|
589
|
-
|
|
614
|
+
y("feGaussianBlur", {
|
|
590
615
|
in: "SourceGraphic",
|
|
591
616
|
stdDeviation: 2,
|
|
592
|
-
id: `blur_std_${
|
|
593
|
-
}, null, 8,
|
|
594
|
-
|
|
595
|
-
], 8,
|
|
596
|
-
|
|
597
|
-
id: `shadow_${
|
|
617
|
+
id: `blur_std_${$.value}`
|
|
618
|
+
}, null, 8, Vt),
|
|
619
|
+
Mt
|
|
620
|
+
], 8, zt),
|
|
621
|
+
y("filter", {
|
|
622
|
+
id: `shadow_${$.value}`,
|
|
598
623
|
"color-interpolation-filters": "sRGB"
|
|
599
624
|
}, [
|
|
600
|
-
|
|
625
|
+
y("feDropShadow", {
|
|
601
626
|
dx: "0",
|
|
602
627
|
dy: "0",
|
|
603
628
|
stdDeviation: "10",
|
|
604
629
|
"flood-opacity": "0.5",
|
|
605
630
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
606
|
-
}, null, 8,
|
|
607
|
-
], 8,
|
|
631
|
+
}, null, 8, Ut)
|
|
632
|
+
], 8, Bt)
|
|
608
633
|
]),
|
|
609
|
-
(u(!0), n(
|
|
610
|
-
(u(!0), n(
|
|
611
|
-
|
|
634
|
+
(u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
635
|
+
(u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
636
|
+
y("path", {
|
|
612
637
|
class: "vue-ui-donut-arc-path",
|
|
613
638
|
d: l.arcSlice,
|
|
614
|
-
fill: r(
|
|
639
|
+
fill: r(Be)(l.color, 80),
|
|
615
640
|
stroke: e.value.style.chart.backgroundColor,
|
|
616
641
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
617
|
-
filter:
|
|
618
|
-
}, null, 8,
|
|
642
|
+
filter: Ne(l, i)
|
|
643
|
+
}, null, 8, Rt)
|
|
619
644
|
]))), 256))
|
|
620
645
|
]))), 256)),
|
|
621
|
-
e.value.style.chart.useGradient ? (u(), n("g",
|
|
622
|
-
(u(!0), n(
|
|
623
|
-
|
|
646
|
+
e.value.style.chart.useGradient ? (u(), n("g", Et, [
|
|
647
|
+
(u(!0), n(L, null, S(Se.value, (a, o) => (u(), n("g", null, [
|
|
648
|
+
y("path", {
|
|
624
649
|
d: a.donut.arcSlice,
|
|
625
|
-
fill: `url(#radial_${
|
|
650
|
+
fill: `url(#radial_${$.value}_${o})`,
|
|
626
651
|
stroke: "transparent",
|
|
627
652
|
"stroke-width": "0"
|
|
628
|
-
}, null, 8,
|
|
653
|
+
}, null, 8, Gt)
|
|
629
654
|
]))), 256))
|
|
630
|
-
])) :
|
|
631
|
-
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g",
|
|
632
|
-
(u(!0), n(
|
|
633
|
-
(u(!0), n(
|
|
634
|
-
i === 0 &&
|
|
655
|
+
])) : f("", !0),
|
|
656
|
+
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Yt, [
|
|
657
|
+
(u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
658
|
+
(u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
659
|
+
i === 0 && h.value.width && h.value.height ? (u(), n("text", {
|
|
635
660
|
key: 0,
|
|
636
|
-
class:
|
|
637
|
-
x:
|
|
661
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
662
|
+
x: h.value.width / 2,
|
|
638
663
|
y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
639
664
|
"text-anchor": "middle",
|
|
640
665
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
641
666
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
642
667
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
643
|
-
},
|
|
668
|
+
}, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(vt)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Xt)) : f("", !0)
|
|
644
669
|
]))), 256))
|
|
645
670
|
]))), 256))
|
|
646
|
-
])) :
|
|
647
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g",
|
|
648
|
-
(u(!0), n(
|
|
649
|
-
(u(!0), n(
|
|
650
|
-
filter:
|
|
671
|
+
])) : f("", !0),
|
|
672
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Wt, [
|
|
673
|
+
(u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
674
|
+
(u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", {
|
|
675
|
+
filter: Ne(l, i)
|
|
651
676
|
}, [
|
|
652
|
-
|
|
677
|
+
se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
|
|
653
678
|
key: 0,
|
|
654
|
-
class:
|
|
655
|
-
"text-anchor": r(
|
|
656
|
-
x: r(
|
|
657
|
-
y: r(
|
|
679
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
680
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
681
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
682
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
658
683
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
659
684
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
660
685
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
661
|
-
},
|
|
662
|
-
|
|
686
|
+
}, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, qt)) : f("", !0),
|
|
687
|
+
se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
663
688
|
key: 1,
|
|
664
|
-
class:
|
|
665
|
-
"text-anchor": r(
|
|
666
|
-
x: r(
|
|
667
|
-
y: r(
|
|
689
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
690
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
691
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
692
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
668
693
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
669
694
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
670
695
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
671
|
-
}, " (" +
|
|
696
|
+
}, " (" + N(r(G)(
|
|
672
697
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
673
698
|
l.value,
|
|
674
|
-
r(
|
|
699
|
+
r(x)({
|
|
675
700
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
676
701
|
v: l.value,
|
|
677
702
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
678
703
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
679
704
|
}),
|
|
680
705
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
681
|
-
)) + ") ", 11,
|
|
682
|
-
|
|
706
|
+
)) + ") ", 11, Kt)) : f("", !0),
|
|
707
|
+
se(l) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
|
|
683
708
|
key: 2,
|
|
684
|
-
class:
|
|
685
|
-
"text-anchor": r(
|
|
686
|
-
x: r(
|
|
687
|
-
y: r(
|
|
709
|
+
class: P({ animated: e.value.useCssAnimation }),
|
|
710
|
+
"text-anchor": r(M)(l, !0).anchor,
|
|
711
|
+
x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
712
|
+
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
688
713
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
689
714
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
690
715
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
691
|
-
},
|
|
716
|
+
}, N(r(G)(
|
|
692
717
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
693
718
|
l.value,
|
|
694
|
-
r(
|
|
719
|
+
r(x)({
|
|
695
720
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
696
721
|
v: l.value,
|
|
697
722
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
698
723
|
r: e.value.style.chart.layout.labels.dataLabels.roundingValue
|
|
699
724
|
}),
|
|
700
725
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
701
|
-
)), 11,
|
|
702
|
-
], 8,
|
|
726
|
+
)), 11, Jt)) : f("", !0)
|
|
727
|
+
], 8, Ht))), 256))
|
|
703
728
|
]))), 256))
|
|
704
|
-
])) :
|
|
705
|
-
(u(!0), n(
|
|
706
|
-
(u(!0), n(
|
|
707
|
-
|
|
729
|
+
])) : f("", !0),
|
|
730
|
+
(u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
|
|
731
|
+
(u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
|
|
732
|
+
y("path", {
|
|
708
733
|
"data-cy-donut-trap": "",
|
|
709
734
|
d: l.arcSlice,
|
|
710
|
-
fill:
|
|
711
|
-
onMouseenter: (b) =>
|
|
735
|
+
fill: Ye.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
736
|
+
onMouseenter: (b) => Ke({
|
|
712
737
|
datapoint: l,
|
|
713
738
|
relativeIndex: o,
|
|
714
739
|
seriesIndex: l.seriesIndex
|
|
715
740
|
}),
|
|
716
|
-
onClick: (b) =>
|
|
741
|
+
onClick: (b) => He({ datapoint: l, index: i }),
|
|
717
742
|
onMouseleave: s[0] || (s[0] = (b) => {
|
|
718
|
-
|
|
743
|
+
j.value = !1, Te.value = null, H.value = null, q.value = null;
|
|
719
744
|
})
|
|
720
|
-
}, null, 40,
|
|
745
|
+
}, null, 40, Qt)
|
|
721
746
|
]))), 256))
|
|
722
747
|
]))), 256)),
|
|
723
|
-
|
|
724
|
-
], 14,
|
|
725
|
-
t.$slots.watermark ? (u(), n("div",
|
|
726
|
-
|
|
727
|
-
])) :
|
|
728
|
-
|
|
729
|
-
key:
|
|
748
|
+
k(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
749
|
+
], 14, Nt)) : f("", !0),
|
|
750
|
+
t.$slots.watermark ? (u(), n("div", Zt, [
|
|
751
|
+
k(t.$slots, "watermark", R(E({ isPrinting: r(ke) || r($e) })), void 0, !0)
|
|
752
|
+
])) : f("", !0),
|
|
753
|
+
Y.value ? f("", !0) : (u(), D(Lt, {
|
|
754
|
+
key: 5,
|
|
730
755
|
config: {
|
|
731
756
|
type: "donut",
|
|
732
757
|
style: {
|
|
@@ -737,8 +762,8 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
737
762
|
}
|
|
738
763
|
}
|
|
739
764
|
}, null, 8, ["config"])),
|
|
740
|
-
|
|
741
|
-
show: w.value.showTooltip &&
|
|
765
|
+
ze(wt, {
|
|
766
|
+
show: w.value.showTooltip && j.value,
|
|
742
767
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
743
768
|
color: e.value.style.chart.tooltip.color,
|
|
744
769
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -748,42 +773,42 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
748
773
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
749
774
|
position: e.value.style.chart.tooltip.position,
|
|
750
775
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
752
|
-
content:
|
|
753
|
-
isCustom: r(
|
|
776
|
+
parent: z.value,
|
|
777
|
+
content: ee.value,
|
|
778
|
+
isCustom: r(Ue)(e.value.style.chart.tooltip.customFormat)
|
|
754
779
|
}, {
|
|
755
|
-
"tooltip-before":
|
|
756
|
-
|
|
780
|
+
"tooltip-before": g(() => [
|
|
781
|
+
k(t.$slots, "tooltip-before", R(E({ ...oe.value })), void 0, !0)
|
|
757
782
|
]),
|
|
758
|
-
"tooltip-after":
|
|
759
|
-
|
|
783
|
+
"tooltip-after": g(() => [
|
|
784
|
+
k(t.$slots, "tooltip-after", R(E({ ...oe.value })), void 0, !0)
|
|
760
785
|
]),
|
|
761
786
|
_: 3
|
|
762
787
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
763
788
|
e.value.style.chart.legend.show ? (u(), n("div", {
|
|
764
|
-
key:
|
|
789
|
+
key: 6,
|
|
765
790
|
ref_key: "chartLegend",
|
|
766
|
-
ref:
|
|
767
|
-
class:
|
|
791
|
+
ref: te,
|
|
792
|
+
class: P({ "vue-ui-nested-donuts-legend": ue.value.length > 1 })
|
|
768
793
|
}, [
|
|
769
|
-
(u(!0), n(
|
|
770
|
-
key: `legend_${o}_${
|
|
794
|
+
(u(!0), n(L, null, S(ue.value, (a, o) => (u(), D(_t, {
|
|
795
|
+
key: `legend_${o}_${be.value}`,
|
|
771
796
|
legendSet: a,
|
|
772
|
-
config:
|
|
773
|
-
onClickMarker: s[1] || (s[1] = ({ legend: l }) =>
|
|
797
|
+
config: Je.value,
|
|
798
|
+
onClickMarker: s[1] || (s[1] = ({ legend: l }) => le(l))
|
|
774
799
|
}, {
|
|
775
|
-
legendTitle:
|
|
776
|
-
l[0] && l[0].arcOf ? (u(), n("div",
|
|
800
|
+
legendTitle: g(({ titleSet: l }) => [
|
|
801
|
+
l[0] && l[0].arcOf ? (u(), n("div", jt, N(l[0].arcOf), 1)) : f("", !0)
|
|
777
802
|
]),
|
|
778
|
-
item:
|
|
779
|
-
|
|
780
|
-
onClick: (b) =>
|
|
781
|
-
style:
|
|
803
|
+
item: g(({ legend: l, index: i }) => [
|
|
804
|
+
y("div", {
|
|
805
|
+
onClick: (b) => le(l),
|
|
806
|
+
style: re(`opacity:${p.value.includes(l.id) ? 0.5 : 1}`)
|
|
782
807
|
}, [
|
|
783
|
-
|
|
808
|
+
Q(N(l.name) + ": " + N(r(G)(
|
|
784
809
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
785
810
|
l.value,
|
|
786
|
-
r(
|
|
811
|
+
r(x)({
|
|
787
812
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
788
813
|
v: l.value,
|
|
789
814
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -791,25 +816,33 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
791
816
|
}),
|
|
792
817
|
{ datapoint: l, seriesIndex: i }
|
|
793
818
|
)) + " ", 1),
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
], 64)) : (u(), n(
|
|
797
|
-
|
|
819
|
+
p.value.includes(l.id) ? (u(), n(L, { key: 1 }, [
|
|
820
|
+
Q(" ( - % ) ")
|
|
821
|
+
], 64)) : (u(), n(L, { key: 0 }, [
|
|
822
|
+
Q(" (" + N(isNaN(l.value / l.total) ? "-" : r(x)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
798
823
|
], 64))
|
|
799
|
-
], 12,
|
|
824
|
+
], 12, el)
|
|
800
825
|
]),
|
|
801
826
|
_: 2
|
|
802
827
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
803
|
-
], 2)) :
|
|
804
|
-
e.value.style.chart.legend.show ?
|
|
805
|
-
key:
|
|
828
|
+
], 2)) : f("", !0),
|
|
829
|
+
e.value.style.chart.legend.show ? f("", !0) : (u(), n("div", {
|
|
830
|
+
key: 7,
|
|
806
831
|
ref_key: "chartLegend",
|
|
807
|
-
ref:
|
|
832
|
+
ref: te
|
|
808
833
|
}, [
|
|
809
|
-
|
|
834
|
+
k(t.$slots, "legend", { legend: ue.value }, void 0, !0)
|
|
810
835
|
], 512)),
|
|
811
|
-
|
|
812
|
-
key:
|
|
836
|
+
t.$slots.source ? (u(), n("div", {
|
|
837
|
+
key: 8,
|
|
838
|
+
ref_key: "source",
|
|
839
|
+
ref: he,
|
|
840
|
+
dir: "auto"
|
|
841
|
+
}, [
|
|
842
|
+
k(t.$slots, "source", {}, void 0, !0)
|
|
843
|
+
], 512)) : f("", !0),
|
|
844
|
+
Y.value ? (u(), D(xt, {
|
|
845
|
+
key: 9,
|
|
813
846
|
hideDetails: "",
|
|
814
847
|
config: {
|
|
815
848
|
open: w.value.showTable,
|
|
@@ -824,33 +857,33 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
824
857
|
}
|
|
825
858
|
}
|
|
826
859
|
}, {
|
|
827
|
-
content:
|
|
828
|
-
(u(),
|
|
829
|
-
key: `table_${
|
|
830
|
-
colNames:
|
|
831
|
-
head:
|
|
832
|
-
body:
|
|
833
|
-
config:
|
|
860
|
+
content: g(() => [
|
|
861
|
+
(u(), D($t, {
|
|
862
|
+
key: `table_${ye.value}`,
|
|
863
|
+
colNames: K.value.colNames,
|
|
864
|
+
head: K.value.head,
|
|
865
|
+
body: K.value.body,
|
|
866
|
+
config: K.value.config,
|
|
834
867
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
835
868
|
onClose: s[2] || (s[2] = (a) => w.value.showTable = !1)
|
|
836
869
|
}, {
|
|
837
|
-
th:
|
|
838
|
-
|
|
870
|
+
th: g(({ th: a }) => [
|
|
871
|
+
y("div", {
|
|
839
872
|
innerHTML: a,
|
|
840
873
|
style: { display: "flex", "align-items": "center" }
|
|
841
|
-
}, null, 8,
|
|
874
|
+
}, null, 8, tl)
|
|
842
875
|
]),
|
|
843
|
-
td:
|
|
844
|
-
|
|
876
|
+
td: g(({ td: a }) => [
|
|
877
|
+
Q(N(a.name || a), 1)
|
|
845
878
|
]),
|
|
846
879
|
_: 1
|
|
847
880
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
848
881
|
]),
|
|
849
882
|
_: 1
|
|
850
|
-
}, 8, ["config"])) :
|
|
851
|
-
], 14,
|
|
883
|
+
}, 8, ["config"])) : f("", !0)
|
|
884
|
+
], 14, Tt));
|
|
852
885
|
}
|
|
853
|
-
},
|
|
886
|
+
}, bl = /* @__PURE__ */ St(ll, [["__scopeId", "data-v-65f48b0a"]]);
|
|
854
887
|
export {
|
|
855
|
-
|
|
888
|
+
bl as default
|
|
856
889
|
};
|