vue-data-ui 2.4.41 → 2.4.42
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/dist/{Arrow-6z0ZQva_.js → Arrow-DE71uBJZ.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DTscDttD.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-C8XxmpRq.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DEdQvqB1.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-D_w08xos.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-BWDoQii_.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-C4rlR-Ge.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CH6MCx6T.js} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-BWTR3U2d.js} +3 -3
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BLS-KzBD.cjs} +1 -1
- package/dist/{Shape-C3ywBhkW.js → Shape-xrlfL_v4.js} +1 -1
- package/dist/Slicer-8gKX0l4Q.cjs +1 -0
- package/dist/Slicer-DIYseEL1.js +423 -0
- package/dist/{Title-D9gPXVTT.cjs → Title-B-xkTfi8.cjs} +1 -1
- package/dist/{Title-BB0O0yol.js → Title-Cnl9ySNH.js} +1 -1
- package/dist/Tooltip-Brbj6DqX.cjs +1 -0
- package/dist/{Tooltip-GvLaModr.js → Tooltip-DEAOBZ8h.js} +33 -25
- package/dist/index-B68kzBN9.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-DnukYspq.js} +45 -41
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-CVOQGx-X.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-C9yUesCc.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-DVIALk5e.js} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-BmmjmNbb.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-f9NTID9e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-C82vEb7R.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
- package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
- package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DtNvb8lM.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-C028OlzU.js} +99 -98
- package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-QRimZUXT.js} +46 -46
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-CBymVSdd.js} +19 -19
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-CZi84tUl.js} +26 -25
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-CIRGvycb.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
- package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-CXXAYowO.js} +38 -37
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-DOqMciYJ.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-BEv568py.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-CR3iWQV_.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-B--CFaNX.js} +49 -48
- package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-C-RD4h73.js} +26 -25
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
- package/dist/{vue-ui-stackbar-BZbOagnf.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-CS-NSZjj.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DYdcFM17.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-B3346TfB.js} +195 -185
- package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
- package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as g, ref as i, watch as ze, onMounted as et, onBeforeUnmount as tt, openBlock as s, createElementBlock as n, normalizeClass as P, normalizeStyle as re, createBlock as D, createCommentVNode as v, unref as r, createSlots as lt, withCtx as m, renderSlot as k, normalizeProps as R, guardReactiveProps as E, createVNode as Ve, createElementVNode as p, Fragment as L, renderList as
|
|
2
|
-
import { u as ut, c as nt, t as rt, a as it, p as Z, o as dt, e as
|
|
1
|
+
import { computed as g, ref as i, watch as ze, onMounted as et, onBeforeUnmount as tt, openBlock as s, createElementBlock as n, normalizeClass as P, normalizeStyle as re, createBlock as D, createCommentVNode as v, unref as r, createSlots as lt, withCtx as m, renderSlot as k, normalizeProps as R, guardReactiveProps as E, createVNode as Ve, createElementVNode as p, Fragment as L, renderList as T, toDisplayString as N, createTextVNode as Q, nextTick as at, pushScopeId as ot, popScopeId as st } from "vue";
|
|
2
|
+
import { u as ut, c as nt, t as rt, a as it, p as Z, o as dt, e as M, b as ct, J as Me, d as vt, m as Be, f as x, X as ft, s as Ue, L as ht, k as B, n as ie, i as G, x as Re, y as yt, q as pt, r as bt } from "./index-DnukYspq.js";
|
|
3
3
|
import { t as gt, u as mt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as kt } from "./Title-
|
|
5
|
-
import { u as wt, U as _t } from "./usePrinter-
|
|
6
|
-
import { D as $t } from "./DataTable-
|
|
7
|
-
import { _ as Lt } from "./Tooltip-
|
|
8
|
-
import { L as xt } from "./Legend-
|
|
9
|
-
import Ct from "./vue-ui-skeleton-
|
|
10
|
-
import
|
|
11
|
-
import { u as Ee } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as St } from "./PenAndPaper-
|
|
4
|
+
import { _ as kt } from "./Title-Cnl9ySNH.js";
|
|
5
|
+
import { u as wt, U as _t } from "./usePrinter-DVIALk5e.js";
|
|
6
|
+
import { D as $t } from "./DataTable-D_w08xos.js";
|
|
7
|
+
import { _ as Lt } from "./Tooltip-DEAOBZ8h.js";
|
|
8
|
+
import { L as xt } from "./Legend-BWDoQii_.js";
|
|
9
|
+
import Ct from "./vue-ui-skeleton-CXdyOF4T.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-f9NTID9e.js";
|
|
11
|
+
import { u as Ee } from "./useNestedProp-CVOQGx-X.js";
|
|
12
|
+
import { _ as Tt } from "./PackageVersion-CH6MCx6T.js";
|
|
13
|
+
import { P as St } from "./PenAndPaper-BWTR3U2d.js";
|
|
14
14
|
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const de = (
|
|
15
|
+
const de = (U) => (ot("data-v-02bfd901"), U = U(), st(), U), It = ["id"], At = ["xmlns", "viewBox"], Ot = ["id"], Pt = /* @__PURE__ */ de(() => /* @__PURE__ */ p("stop", {
|
|
16
16
|
offset: "0%",
|
|
17
17
|
"stop-color": "#FFFFFF",
|
|
18
18
|
"stop-opacity": "0"
|
|
@@ -23,7 +23,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
23
23
|
}, null, -1)), Mt = ["id"], Bt = ["id"], Ut = /* @__PURE__ */ de(() => /* @__PURE__ */ p("feColorMatrix", {
|
|
24
24
|
type: "saturate",
|
|
25
25
|
values: "0"
|
|
26
|
-
}, null, -1)), Rt = ["id"], Et = ["flood-color"], Gt = ["d", "fill", "stroke", "stroke-width", "filter"], Yt = { key: 0 }, Xt = ["d", "fill"], Wt = { key: 1 }, Ht = ["x", "y", "font-size", "font-weight", "fill"], qt = { key: 2 },
|
|
26
|
+
}, null, -1)), Rt = ["id"], Et = ["flood-color"], Gt = ["d", "fill", "stroke", "stroke-width", "filter"], Yt = { key: 0 }, Xt = ["d", "fill"], Wt = { key: 1 }, Ht = ["x", "y", "font-size", "font-weight", "fill"], qt = { key: 2 }, Jt = ["filter"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Qt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Zt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], jt = ["d", "fill", "onMouseenter", "onClick"], el = {
|
|
27
27
|
key: 5,
|
|
28
28
|
class: "vue-data-ui-watermark"
|
|
29
29
|
}, tl = {
|
|
@@ -46,10 +46,10 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectLegend", "selectDatapoint"],
|
|
49
|
-
setup(
|
|
50
|
-
const I =
|
|
49
|
+
setup(U, { expose: Ge, emit: ce }) {
|
|
50
|
+
const I = U, { vue_ui_nested_donuts: Ye } = ut(), Y = g(() => !!I.dataset && I.dataset.length), w = i(nt()), j = i(!1), ee = i(""), Xe = i(null), ve = i(0), z = i(null), fe = i(null), te = i(null), he = i(null), ye = i(null), pe = i(0), be = i(0), ge = i(0), V = i(!1);
|
|
51
51
|
function We(t) {
|
|
52
|
-
|
|
52
|
+
V.value = t, ve.value += 1;
|
|
53
53
|
}
|
|
54
54
|
const e = g({
|
|
55
55
|
get: () => me(),
|
|
@@ -76,7 +76,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
76
76
|
ke();
|
|
77
77
|
});
|
|
78
78
|
function ke() {
|
|
79
|
-
if (dt(I.dataset) &&
|
|
79
|
+
if (dt(I.dataset) && M({
|
|
80
80
|
componentName: "VueUiNestedDonuts",
|
|
81
81
|
type: "dataset"
|
|
82
82
|
}), e.value.responsive) {
|
|
@@ -109,32 +109,32 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
109
109
|
height: 512,
|
|
110
110
|
width: 512
|
|
111
111
|
});
|
|
112
|
-
function
|
|
112
|
+
function Je({ datapoint: t, index: u }) {
|
|
113
113
|
ce("selectDatapoint", { datapoint: t, index: u });
|
|
114
114
|
}
|
|
115
115
|
const y = i([]), C = g(() => (I.dataset.forEach((t, u) => {
|
|
116
|
-
[null, void 0].includes(t.name) &&
|
|
116
|
+
[null, void 0].includes(t.name) && M({
|
|
117
117
|
componentName: "VueUiNestedDonuts",
|
|
118
118
|
type: "datasetSerieAttribute",
|
|
119
119
|
property: "name",
|
|
120
120
|
index: u
|
|
121
|
-
}), [null, void 0].includes(t.series) ?
|
|
121
|
+
}), [null, void 0].includes(t.series) ? M({
|
|
122
122
|
componentName: "VueUiNestedDonuts",
|
|
123
123
|
type: "datasetSerieAttribute",
|
|
124
124
|
property: "series",
|
|
125
125
|
index: u
|
|
126
|
-
}) : t.series.length === 0 ?
|
|
126
|
+
}) : t.series.length === 0 ? M({
|
|
127
127
|
componentName: "VueUiNestedDonuts",
|
|
128
128
|
type: "datasetAttributeEmpty",
|
|
129
129
|
property: `series at index ${u}`
|
|
130
130
|
}) : t.series.forEach((a, o) => {
|
|
131
|
-
[null, void 0].includes(a.name) &&
|
|
131
|
+
[null, void 0].includes(a.name) && M({
|
|
132
132
|
componentName: "VueUiNestedDonuts",
|
|
133
133
|
type: "datasetSerieAttribute",
|
|
134
134
|
property: "name",
|
|
135
135
|
index: o,
|
|
136
136
|
key: "serie"
|
|
137
|
-
}), [null, void 0].includes(a.values) &&
|
|
137
|
+
}), [null, void 0].includes(a.values) && M({
|
|
138
138
|
componentName: "VueUiNestedDonuts",
|
|
139
139
|
type: "datasetSerieAttribute",
|
|
140
140
|
property: "values",
|
|
@@ -158,7 +158,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
158
158
|
value: Me(a.values).reduce((l, d) => l + d, 0),
|
|
159
159
|
absoluteValues: a.values || []
|
|
160
160
|
}))
|
|
161
|
-
})))),
|
|
161
|
+
})))), F = g(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), xe = g(() => [...C.value].map((t, u) => {
|
|
162
162
|
const a = t.series.filter((o) => !y.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
163
163
|
return {
|
|
164
164
|
...t,
|
|
@@ -169,7 +169,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
169
169
|
}))
|
|
170
170
|
};
|
|
171
171
|
}));
|
|
172
|
-
function
|
|
172
|
+
function Ke(t, u, a) {
|
|
173
173
|
let o = 0;
|
|
174
174
|
for (let l = 0; l < t.length; l += 1)
|
|
175
175
|
a.includes(t[l]) && (o += 1);
|
|
@@ -177,12 +177,12 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
177
177
|
}
|
|
178
178
|
const f = i(xe.value);
|
|
179
179
|
ze(() => xe.value, (t) => f.value = t);
|
|
180
|
-
const Ce = i(null),
|
|
180
|
+
const Ce = i(null), Fe = i(null);
|
|
181
181
|
function le(t) {
|
|
182
182
|
ce("selectLegend", t);
|
|
183
183
|
const u = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = f.value.flatMap((c) => c.series).find((c) => c.id === t.id);
|
|
184
184
|
let l = a ? a.value : 0;
|
|
185
|
-
const d = C.value.find((c) => c.id === u.arcOfId).series.map((c) => c.id), b =
|
|
185
|
+
const d = C.value.find((c) => c.id === u.arcOfId).series.map((c) => c.id), b = Ke(d, d.length - 1, y.value);
|
|
186
186
|
if (y.value.includes(t.id)) {
|
|
187
187
|
let c = function() {
|
|
188
188
|
l > u.value ? (cancelAnimationFrame(Ce.value), f.value = f.value.map(($) => ({
|
|
@@ -202,7 +202,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
202
202
|
y.value = y.value.filter(($) => $ !== t.id), c();
|
|
203
203
|
} else if (b) {
|
|
204
204
|
let c = function() {
|
|
205
|
-
l < 0.1 ? (cancelAnimationFrame(
|
|
205
|
+
l < 0.1 ? (cancelAnimationFrame(Fe.value), y.value.push(t.id), f.value = f.value.map(($, S) => ({
|
|
206
206
|
...$,
|
|
207
207
|
series: $.series.map((O) => O.id === t.id ? {
|
|
208
208
|
...O,
|
|
@@ -214,22 +214,22 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
214
214
|
...O,
|
|
215
215
|
value: l
|
|
216
216
|
} : O)
|
|
217
|
-
})),
|
|
217
|
+
})), Fe.value = requestAnimationFrame(c));
|
|
218
218
|
};
|
|
219
219
|
c();
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
const ae = g(() =>
|
|
223
|
-
const a = u *
|
|
222
|
+
const ae = g(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), Te = g(() => f.value.map((t, u) => F.value - u * F.value / C.value.length)), W = g(() => f.value.map((t, u) => {
|
|
223
|
+
const a = u * F.value / C.value.length;
|
|
224
224
|
return {
|
|
225
225
|
...t,
|
|
226
|
-
radius:
|
|
226
|
+
radius: F.value - a,
|
|
227
227
|
donut: Be(
|
|
228
228
|
{ series: t.series },
|
|
229
229
|
h.value.width / 2,
|
|
230
230
|
h.value.height / 2,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
F.value - a,
|
|
232
|
+
F.value - a,
|
|
233
233
|
1.99999,
|
|
234
234
|
2,
|
|
235
235
|
1,
|
|
@@ -239,21 +239,21 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
239
239
|
)
|
|
240
240
|
};
|
|
241
241
|
})), Se = g(() => [...C.value].map((t, u) => {
|
|
242
|
-
const a = u *
|
|
242
|
+
const a = u * F.value / C.value.length;
|
|
243
243
|
return {
|
|
244
244
|
sizeRatio: a,
|
|
245
245
|
donut: Be(
|
|
246
246
|
{ series: [{ value: 1 }] },
|
|
247
247
|
h.value.width / 2,
|
|
248
248
|
h.value.height / 2,
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
F.value - a,
|
|
250
|
+
F.value - a,
|
|
251
251
|
1.99999,
|
|
252
252
|
2,
|
|
253
253
|
1,
|
|
254
254
|
360,
|
|
255
255
|
105.25,
|
|
256
|
-
|
|
256
|
+
F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
257
257
|
)[0]
|
|
258
258
|
};
|
|
259
259
|
})), Ne = i(null), H = i(null), q = i(null), oe = i(null);
|
|
@@ -388,7 +388,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
388
388
|
bt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
const
|
|
391
|
+
const J = g(() => {
|
|
392
392
|
const t = [
|
|
393
393
|
e.value.table.columnNames.series,
|
|
394
394
|
e.value.table.columnNames.value,
|
|
@@ -443,9 +443,9 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
443
443
|
function De() {
|
|
444
444
|
_.value.showTooltip = !_.value.showTooltip;
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const K = i(!1);
|
|
447
447
|
function ne() {
|
|
448
|
-
|
|
448
|
+
K.value = !K.value;
|
|
449
449
|
}
|
|
450
450
|
return Ge({
|
|
451
451
|
getData: je,
|
|
@@ -459,7 +459,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
459
459
|
}), (t, u) => (s(), n("div", {
|
|
460
460
|
ref_key: "nestedDonutsChart",
|
|
461
461
|
ref: z,
|
|
462
|
-
class: P(`vue-ui-nested-donuts ${
|
|
462
|
+
class: P(`vue-ui-nested-donuts ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
463
463
|
style: re(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
464
464
|
id: `nested_donuts_${w.value}`
|
|
465
465
|
}, [
|
|
@@ -468,7 +468,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
468
468
|
parent: z.value,
|
|
469
469
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
470
470
|
color: e.value.style.chart.color,
|
|
471
|
-
active:
|
|
471
|
+
active: K.value,
|
|
472
472
|
onClose: ne
|
|
473
473
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
474
474
|
He.value ? (s(), n("div", {
|
|
@@ -512,13 +512,13 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
512
512
|
hasTable: e.value.userOptions.buttons.table,
|
|
513
513
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
514
514
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
515
|
-
isFullscreen:
|
|
515
|
+
isFullscreen: V.value,
|
|
516
516
|
isTooltip: _.value.showTooltip,
|
|
517
517
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
518
518
|
chartElement: z.value,
|
|
519
519
|
position: e.value.userOptions.position,
|
|
520
520
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
521
|
-
isAnnotation:
|
|
521
|
+
isAnnotation: K.value,
|
|
522
522
|
onToggleFullscreen: We,
|
|
523
523
|
onGeneratePdf: r($e),
|
|
524
524
|
onGenerateCsv: Ae,
|
|
@@ -588,23 +588,23 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
588
588
|
Y.value ? (s(), n("svg", {
|
|
589
589
|
key: 4,
|
|
590
590
|
xmlns: r(ft),
|
|
591
|
-
class: P({ "vue-data-ui-fullscreen--on":
|
|
591
|
+
class: P({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
592
592
|
viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
|
|
593
593
|
style: re(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
594
594
|
}, [
|
|
595
|
-
Ve(
|
|
595
|
+
Ve(Tt),
|
|
596
596
|
p("defs", null, [
|
|
597
|
-
(s(!0), n(L, null,
|
|
597
|
+
(s(!0), n(L, null, T(Se.value, (a, o) => (s(), n("radialGradient", {
|
|
598
598
|
id: `radial_${w.value}_${o}`
|
|
599
599
|
}, [
|
|
600
600
|
Pt,
|
|
601
601
|
p("stop", {
|
|
602
|
-
offset: `${(1 - ae.value /
|
|
602
|
+
offset: `${(1 - ae.value / Te.value[o]) * 100}%`,
|
|
603
603
|
"stop-color": r(Ue)("#FFFFFF", 0),
|
|
604
604
|
"stop-opacity": "0"
|
|
605
605
|
}, null, 8, Dt),
|
|
606
606
|
p("stop", {
|
|
607
|
-
offset: `${(1 - ae.value /
|
|
607
|
+
offset: `${(1 - ae.value / Te.value[o] / 2) * 100}%`,
|
|
608
608
|
"stop-color": "#FFFFFF",
|
|
609
609
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
610
610
|
}, null, 8, zt),
|
|
@@ -639,8 +639,8 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
639
639
|
}, null, 8, Et)
|
|
640
640
|
], 8, Rt)
|
|
641
641
|
]),
|
|
642
|
-
(s(!0), n(L, null,
|
|
643
|
-
(s(!0), n(L, null,
|
|
642
|
+
(s(!0), n(L, null, T(W.value, (a, o) => (s(), n("g", null, [
|
|
643
|
+
(s(!0), n(L, null, T(a.donut, (l, d) => (s(), n("g", null, [
|
|
644
644
|
p("path", {
|
|
645
645
|
class: "vue-ui-donut-arc-path",
|
|
646
646
|
d: l.arcSlice,
|
|
@@ -652,7 +652,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
652
652
|
]))), 256))
|
|
653
653
|
]))), 256)),
|
|
654
654
|
e.value.style.chart.useGradient ? (s(), n("g", Yt, [
|
|
655
|
-
(s(!0), n(L, null,
|
|
655
|
+
(s(!0), n(L, null, T(Se.value, (a, o) => (s(), n("g", null, [
|
|
656
656
|
p("path", {
|
|
657
657
|
d: a.donut.arcSlice,
|
|
658
658
|
fill: `url(#radial_${w.value}_${o})`,
|
|
@@ -662,8 +662,8 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
662
662
|
]))), 256))
|
|
663
663
|
])) : v("", !0),
|
|
664
664
|
e.value.style.chart.layout.labels.dataLabels.showDonutName ? (s(), n("g", Wt, [
|
|
665
|
-
(s(!0), n(L, null,
|
|
666
|
-
(s(!0), n(L, null,
|
|
665
|
+
(s(!0), n(L, null, T(W.value, (a, o) => (s(), n("g", null, [
|
|
666
|
+
(s(!0), n(L, null, T(a.donut, (l, d) => (s(), n("g", null, [
|
|
667
667
|
d === 0 && h.value.width && h.value.height ? (s(), n("text", {
|
|
668
668
|
key: 0,
|
|
669
669
|
class: P({ animated: e.value.useCssAnimation }),
|
|
@@ -678,25 +678,25 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
678
678
|
]))), 256))
|
|
679
679
|
])) : v("", !0),
|
|
680
680
|
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", qt, [
|
|
681
|
-
(s(!0), n(L, null,
|
|
682
|
-
(s(!0), n(L, null,
|
|
681
|
+
(s(!0), n(L, null, T(W.value, (a, o) => (s(), n("g", null, [
|
|
682
|
+
(s(!0), n(L, null, T(a.donut, (l, d) => (s(), n("g", {
|
|
683
683
|
filter: Ie(l, d)
|
|
684
684
|
}, [
|
|
685
685
|
se(l) && _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (s(), n("text", {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: P({ animated: e.value.useCssAnimation }),
|
|
688
|
-
"text-anchor": r(
|
|
689
|
-
x: r(
|
|
688
|
+
"text-anchor": r(B)(l, !0).anchor,
|
|
689
|
+
x: r(B)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
690
690
|
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
691
691
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
692
692
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
693
693
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
694
|
-
}, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11,
|
|
694
|
+
}, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Kt)) : v("", !0),
|
|
695
695
|
se(l) && _.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (s(), n("text", {
|
|
696
696
|
key: 1,
|
|
697
697
|
class: P({ animated: e.value.useCssAnimation }),
|
|
698
|
-
"text-anchor": r(
|
|
699
|
-
x: r(
|
|
698
|
+
"text-anchor": r(B)(l, !0).anchor,
|
|
699
|
+
x: r(B)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
700
700
|
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,
|
|
701
701
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
702
702
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -715,8 +715,8 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
715
715
|
se(l) && _.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (s(), n("text", {
|
|
716
716
|
key: 2,
|
|
717
717
|
class: P({ animated: e.value.useCssAnimation }),
|
|
718
|
-
"text-anchor": r(
|
|
719
|
-
x: r(
|
|
718
|
+
"text-anchor": r(B)(l, !0).anchor,
|
|
719
|
+
x: r(B)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
|
|
720
720
|
y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
|
|
721
721
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
722
722
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
@@ -732,11 +732,11 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
732
732
|
}),
|
|
733
733
|
{ datapoint: l, seriesIndex: o, datapointIndex: d }
|
|
734
734
|
)), 11, Zt)) : v("", !0)
|
|
735
|
-
], 8,
|
|
735
|
+
], 8, Jt))), 256))
|
|
736
736
|
]))), 256))
|
|
737
737
|
])) : v("", !0),
|
|
738
|
-
(s(!0), n(L, null,
|
|
739
|
-
(s(!0), n(L, null,
|
|
738
|
+
(s(!0), n(L, null, T(W.value, (a, o) => (s(), n("g", null, [
|
|
739
|
+
(s(!0), n(L, null, T(a.donut, (l, d) => (s(), n("g", null, [
|
|
740
740
|
p("path", {
|
|
741
741
|
"data-cy-donut-trap": "",
|
|
742
742
|
d: l.arcSlice,
|
|
@@ -746,7 +746,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
746
746
|
relativeIndex: o,
|
|
747
747
|
seriesIndex: l.seriesIndex
|
|
748
748
|
}),
|
|
749
|
-
onClick: (b) =>
|
|
749
|
+
onClick: (b) => Je({ datapoint: l, index: d }),
|
|
750
750
|
onMouseleave: u[0] || (u[0] = (b) => {
|
|
751
751
|
j.value = !1, Ne.value = null, H.value = null, q.value = null;
|
|
752
752
|
})
|
|
@@ -783,6 +783,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
783
783
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
784
784
|
parent: z.value,
|
|
785
785
|
content: ee.value,
|
|
786
|
+
isFullscreen: V.value,
|
|
786
787
|
isCustom: r(Re)(e.value.style.chart.tooltip.customFormat)
|
|
787
788
|
}, {
|
|
788
789
|
"tooltip-before": m(() => [
|
|
@@ -792,14 +793,14 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
792
793
|
k(t.$slots, "tooltip-after", R(E({ ...oe.value })), void 0, !0)
|
|
793
794
|
]),
|
|
794
795
|
_: 3
|
|
795
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
796
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
796
797
|
e.value.style.chart.legend.show ? (s(), n("div", {
|
|
797
798
|
key: 7,
|
|
798
799
|
ref_key: "chartLegend",
|
|
799
800
|
ref: te,
|
|
800
801
|
class: P({ "vue-ui-nested-donuts-legend": ue.value.length > 1 })
|
|
801
802
|
}, [
|
|
802
|
-
(s(!0), n(L, null,
|
|
803
|
+
(s(!0), n(L, null, T(ue.value, (a, o) => (s(), D(xt, {
|
|
803
804
|
key: `legend_${o}_${ge.value}`,
|
|
804
805
|
legendSet: a,
|
|
805
806
|
config: Ze.value,
|
|
@@ -849,7 +850,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
849
850
|
}, [
|
|
850
851
|
k(t.$slots, "source", {}, void 0, !0)
|
|
851
852
|
], 512)) : v("", !0),
|
|
852
|
-
Y.value ? (s(), D(
|
|
853
|
+
Y.value ? (s(), D(Ft, {
|
|
853
854
|
key: 10,
|
|
854
855
|
hideDetails: "",
|
|
855
856
|
config: {
|
|
@@ -868,10 +869,10 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
868
869
|
content: m(() => [
|
|
869
870
|
(s(), D($t, {
|
|
870
871
|
key: `table_${be.value}`,
|
|
871
|
-
colNames:
|
|
872
|
-
head:
|
|
873
|
-
body:
|
|
874
|
-
config:
|
|
872
|
+
colNames: J.value.colNames,
|
|
873
|
+
head: J.value.head,
|
|
874
|
+
body: J.value.body,
|
|
875
|
+
config: J.value.config,
|
|
875
876
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
876
877
|
onClose: u[2] || (u[2] = (a) => _.value.showTable = !1)
|
|
877
878
|
}, {
|
|
@@ -891,7 +892,7 @@ const de = (B) => (ot("data-v-038450b3"), B = B(), st(), B), It = ["id"], At = [
|
|
|
891
892
|
}, 8, ["config"])) : v("", !0)
|
|
892
893
|
], 14, It));
|
|
893
894
|
}
|
|
894
|
-
}, ml = /* @__PURE__ */ Nt(ol, [["__scopeId", "data-v-
|
|
895
|
+
}, ml = /* @__PURE__ */ Nt(ol, [["__scopeId", "data-v-02bfd901"]]);
|
|
895
896
|
export {
|
|
896
897
|
ml as default
|
|
897
898
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-B68kzBN9.cjs"),pe=require("./useResponsive-BJ7DTGpm.cjs"),Ne=require("./Title-B-xkTfi8.cjs"),he=require("./usePrinter-C9yUesCc.cjs"),Se=require("./DataTable-DEdQvqB1.cjs"),Ee=require("./Tooltip-Brbj6DqX.cjs"),Ve=require("./Legend-C4rlR-Ge.cjs"),Fe=require("./vue-ui-skeleton-DGCkWrND.cjs"),Te=require("./vue-ui-accordion-D_K9gNUR.cjs"),ye=require("./useNestedProp-es9bVqY_.cjs"),Pe=require("./PackageVersion-DKyD7D76.cjs"),De=require("./PenAndPaper-Dc2zn4C0.cjs"),ze=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=x=>(e.pushScopeId("data-v-02bfd901"),x=x(),e.popScopeId(),x),Oe=["id"],Ie=["xmlns","viewBox"],Ae=["id"],Me=q(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),Re=["offset","stop-color"],qe=["offset","stop-opacity"],Ue=q(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),Ye=["id"],Xe=["id"],Ge=q(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),He=["id"],We=["flood-color"],Je=["d","fill","stroke","stroke-width","filter"],Ke={key:0},Qe=["d","fill"],Ze={key:1},je=["x","y","font-size","font-weight","fill"],et={key:2},tt=["filter"],lt=["text-anchor","x","y","fill","font-size","font-weight"],at=["text-anchor","x","y","fill","font-size","font-weight"],ot=["text-anchor","x","y","fill","font-size","font-weight"],nt=["d","fill","onMouseenter","onClick"],rt={key:5,class:"vue-data-ui-watermark"},st={key:0,class:"vue-ui-nested-donuts-legend-title"},ut=["onClick"],it=["innerHTML"],ct={__name:"vue-ui-nested-donuts",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(x,{expose:me,emit:U}){const k=x,{vue_ui_nested_donuts:be}=r.useConfig(),_=e.computed(()=>!!k.dataset&&k.dataset.length),p=e.ref(r.createUid()),T=e.ref(!1),P=e.ref(""),ge=e.ref(null),Y=e.ref(0),w=e.ref(null),X=e.ref(null),D=e.ref(null),G=e.ref(null),H=e.ref(null),W=e.ref(0),J=e.ref(0),K=e.ref(0),B=e.ref(!1);function ke(l){B.value=l,Y.value+=1}const t=e.computed({get:()=>Q(),set:l=>l});function Q(){const l=ye.useNestedProp({userConfig:k.config,defaultConfig:be});return l.theme?{...ye.useNestedProp({userConfig:r.themes.vue_ui_nested_donuts[l.theme]||k.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>k.config,l=>{t.value=Q(),Z(),W.value+=1,J.value+=1,K.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{Z()});function Z(){if(r.objectIsEmpty(k.dataset)&&r.error({componentName:"VueUiNestedDonuts",type:"dataset"}),t.value.responsive){const l=pe.throttle(()=>{const{width:s,height:o}=pe.useResponsive({chart:w.value,title:t.value.style.chart.title.text?X.value:null,legend:t.value.style.chart.legend.show?D.value:null,source:G.value,noTitle:H.value});d.value.width=s,d.value.height=o});$.value=new ResizeObserver(l),$.value.observe(w.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:j,isImaging:ee,generatePdf:te,generateImage:le}=he.usePrinter({elementId:`nested_donuts_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-nested-donuts"}),Ce=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Le=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),h=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({height:512,width:512});function we({datapoint:l,index:s}){U("selectDatapoint",{datapoint:l,index:s})}const v=e.ref([]),m=e.computed(()=>(k.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:s}),[null,void 0].includes(l.series)?r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"series",index:s}):l.series.length===0?r.error({componentName:"VueUiNestedDonuts",type:"datasetAttributeEmpty",property:`series at index ${s}`}):l.series.forEach((o,n)=>{[null,void 0].includes(o.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:n,key:"serie"}),[null,void 0].includes(o.values)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"values",index:n,key:"serie"})})}),k.dataset.map((l,s)=>({...l,total:l.series.filter(o=>!v.value.includes(o.id)).map(o=>r.sanitizeArray(o.values).reduce((n,a)=>n+a,0)).reduce((o,n)=>o+n,0),datasetIndex:s,id:`${p.value}_${s}`,series:l.series.map((o,n)=>({name:o.name,arcOf:l.name,arcOfId:`${p.value}_${s}`,id:`${p.value}_${s}_${n}`,seriesIndex:n,datasetIndex:s,color:r.convertColorToHex(o.color)||Le.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:r.sanitizeArray(o.values).reduce((a,u)=>a+u,0),absoluteValues:o.values||[]}))})))),b=e.computed(()=>Math.min(d.value.height,d.value.width)*(t.value.style.chart.layout.donut.strokeWidth/512)),ae=e.computed(()=>[...m.value].map((l,s)=>{const o=l.series.filter(n=>!v.value.includes(n.id)).map(n=>n.value).reduce((n,a)=>n+a,0);return{...l,total:o,series:l.series.filter(n=>!v.value.includes(n.id)).map(n=>({...n,proportion:n.value/o}))}}));function Be(l,s,o){let n=0;for(let a=0;a<l.length;a+=1)o.includes(l[a])&&(n+=1);return n<s}const c=e.ref(ae.value);e.watch(()=>ae.value,l=>c.value=l);const oe=e.ref(null),ne=e.ref(null);function z(l){U("selectLegend",l);const s=m.value.flatMap(i=>i.series).find(i=>i.id===l.id),o=c.value.flatMap(i=>i.series).find(i=>i.id===l.id);let a=o?o.value:0;const u=m.value.find(i=>i.id===s.arcOfId).series.map(i=>i.id),f=Be(u,u.length-1,v.value);if(v.value.includes(l.id)){let i=function(){a>s.value?(cancelAnimationFrame(oe.value),c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id==l.id?{...g,value:s.value}:g)}))):(a+=s.value*.025,c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id===l.id?{...g,value:a}:g)})),oe.value=requestAnimationFrame(i))};v.value=v.value.filter(y=>y!==l.id),i()}else if(f){let i=function(){a<.1?(cancelAnimationFrame(ne.value),v.value.push(l.id),c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:0}:L)}))):(a/=1.1,c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:a}:L)})),ne.value=requestAnimationFrame(i))};i()}}const O=e.computed(()=>b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio),re=e.computed(()=>c.value.map((l,s)=>b.value-s*b.value/m.value.length)),N=e.computed(()=>c.value.map((l,s)=>{const o=s*b.value/m.value.length;return{...l,radius:b.value-o,donut:r.makeDonut({series:l.series},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,O.value)}})),se=e.computed(()=>[...m.value].map((l,s)=>{const o=s*b.value/m.value.length;return{sizeRatio:o,donut:r.makeDonut({series:[{value:1}]},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio)[0]}})),ue=e.ref(null),S=e.ref(null),E=e.ref(null),I=e.ref(null);function xe({datapoint:l,_relativeIndex:s,seriesIndex:o}){ue.value=l.arcOfId,S.value=l.id,E.value=o,I.value={datapoint:l,seriesIndex:o,series:c.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:l,series:c.value,config:t.value})))P.value=n({seriesIndex:o,datapoint:l,series:c.value,config:t.value});else{let a="";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0){const u=c.value.map(f=>f.series.find(i=>i.seriesIndex===o));u.forEach((f,i)=>{if(!f)return"";a+=`
|
|
2
2
|
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${i<u.length-1?`border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor}`:""}">
|
|
3
3
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
4
4
|
<svg viewBox="0 0 20 20" height="${t.value.style.chart.tooltip.fontSize}" width="${t.value.style.chart.tooltip.fontSize}">
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
${t.value.style.chart.tooltip.showPercentage?`(${r.dataLabel({v:f.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})`:""}
|
|
15
15
|
</span>
|
|
16
16
|
</div>
|
|
17
|
-
`})}else a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf??""} - ${l.name}</div>`,a+=`<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>`,t.value.style.chart.tooltip.showValue&&(a+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?a+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:a+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`);P.value=`<div style="font-size:${t.value.style.chart.tooltip.fontSize}px">${a}</div>`}T.value=!0}function A(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ie(l,s){if(!t.value.useBlurOnHover)return"";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0)return[null,void 0].includes(E.value)||E.value===s?"":`url(#blur_${p.value})`;if(!t.value.style.chart.tooltip.showAllItemsAtIndex||v.value.length)return[null,void 0].includes(S.value)||S.value===l.id?"":`url(#blur_${p.value})`}const M=e.computed(()=>m.value.map((l,s)=>l.series.map((o,n)=>({name:o.name,color:o.color,value:o.value,shape:"circle",arcOf:o.arcOf,id:o.id,seriesIndex:n,datasetIndex:s,total:l.series.filter(a=>!v.value.includes(a.id)).map(a=>a.value).reduce((a,u)=>a+u,0)})).map(o=>({...o,opacity:v.value.includes(o.id)?.5:1,segregate:()=>z(o),isSegregated:v.value.includes(o.id)})))),_e=e.computed(()=>({cy:"nested-donuts-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),C=e.computed(()=>{const l=c.value.flatMap(o=>o.series.map(n=>({name:`${o.name} - ${n.name}`,color:n.color,total:o.total}))),s=c.value.flatMap(o=>o.series.map(n=>n.value));return{head:l,body:s}});function ce(){e.nextTick(()=>{const l=C.value.head.map((n,a)=>[[n.name],[C.value.body[a]],[isNaN(C.value.body[a]/n.total)?"-":C.value.body[a]/n.total*100]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-nested-donuts"})})}const V=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],s=C.value.head.map((a,u)=>{const f=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:C.value.body[u],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:a.color,name:a.name},f,isNaN(C.value.body[u]/a.total)?"-":r.dataLabel({v:C.value.body[u]/a.total*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:s,config:o}});function $e(){return m.value}function de(){h.value.showTable=!h.value.showTable}function ve(){h.value.dataLabels.show=!h.value.dataLabels.show}function fe(){h.value.showTooltip=!h.value.showTooltip}const F=e.ref(!1);function R(){F.value=!F.value}return me({getData:$e,generatePdf:te,generateCsv:ce,generateImage:le,toggleTable:de,toggleLabels:ve,toggleTooltip:fe,toggleAnnotator:R}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"nestedDonutsChart",ref:w,class:e.normalizeClass(`vue-ui-nested-donuts ${x.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`nested_donuts_${p.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(De.PenAndPaper,{key:0,parent:w.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ce.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:H,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:X},[(e.openBlock(),e.createBlock(Ne._sfc_main,{key:`title_${W.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value?(e.openBlock(),e.createBlock(he.UserOptions,{ref:"details",key:`user_option_${Y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(ee),uid:p.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(te),onGenerateCsv:ce,onGenerateImage:e.unref(le),onToggleTable:de,onToggleLabels:ve,onToggleTooltip:fe,onToggleAnnotator:R},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${d.value.width<=0?.001:d.value.width} ${d.value.height<0?.001:d.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`radial_${p.value}_${n}`},[Me,e.createElementVNode("stop",{offset:`${(1-O.value/re.value[n])*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Re),e.createElementVNode("stop",{offset:`${(1-O.value/re.value[n]/2)*100}%`,"stop-color":"#FFFFFF","stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,qe),Ue],8,Ae))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${p.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${p.value}`},null,8,Xe),Ge],8,Ye),e.createElementVNode("filter",{id:`shadow_${p.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,We)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(r.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:ie(a,u)},null,8,Je)]))),256))]))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:o.donut.arcSlice,fill:`url(#radial_${p.value}_${n})`,stroke:"transparent","stroke-width":"0"},null,8,Qe)]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.showDonutName?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[u===0&&d.value.width&&d.value.height?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),x:d.value.width/2,y:a.startY-t.value.style.chart.layout.labels.dataLabels.fontSize+t.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,"text-anchor":"middle","font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldDonutName?"bold":"normal",fill:t.value.style.chart.layout.labels.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation?e.unref(r.abbreviate)({source:o.name,length:t.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize}):o.name),11,je)):e.createCommentVNode("",!0)]))),256))]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",{filter:ie(a,u)},[A(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldPercentage?"bold":"normal"},e.toDisplayString(e.unref(r.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.layout.labels.dataLabels.roundingPercentage})),11,lt)):e.createCommentVNode("",!0),A(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY)+t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"}," ("+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u}))+") ",11,at)):e.createCommentVNode("",!0),A(a)&&h.value.dataLabels.show&&!t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u})),11,ot)):e.createCommentVNode("",!0)],8,tt))),256))]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-donut-trap":"",d:a.arcSlice,fill:ge.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:f=>xe({datapoint:a,relativeIndex:n,seriesIndex:a.seriesIndex}),onClick:f=>we({datapoint:a,index:u}),onMouseleave:s[0]||(s[0]=f=>{T.value=!1,ue.value=null,S.value=null,E.value=null})},null,40,nt)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Ie)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Ee._sfc_main,{show:h.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:w.value,content:P.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartLegend",ref:D,class:e.normalizeClass({"vue-ui-nested-donuts-legend":M.value.length>1})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(o,n)=>(e.openBlock(),e.createBlock(Ve.Legend,{key:`legend_${n}_${K.value}`,legendSet:o,config:_e.value,onClickMarker:s[1]||(s[1]=({legend:a})=>z(a))},{legendTitle:e.withCtx(({titleSet:a})=>[a[0]&&a[0].arcOf?(e.openBlock(),e.createElementBlock("div",st,e.toDisplayString(a[0].arcOf),1)):e.createCommentVNode("",!0)]),item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:f=>z(a),style:e.normalizeStyle(`opacity:${v.value.includes(a.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:u}))+" ",1),v.value.includes(a.id)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ( - % ) ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(isNaN(a.value/a.total)?"-":e.unref(r.dataLabel)({v:a.value/a.total*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],64))],12,ut)]),_:2},1032,["legendSet","config"]))),128))],2)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"chartLegend",ref:D},[e.renderSlot(l.$slots,"legend",{legend:M.value},void 0,!0)],512)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:G,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createBlock(Te.default,{key:10,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Se.DataTable,{key:`table_${J.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,it)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Oe))}},dt=ze._export_sfc(ct,[["__scopeId","data-v-038450b3"]]);exports.default=dt;
|
|
17
|
+
`})}else a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf??""} - ${l.name}</div>`,a+=`<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>`,t.value.style.chart.tooltip.showValue&&(a+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?a+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:a+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`);P.value=`<div style="font-size:${t.value.style.chart.tooltip.fontSize}px">${a}</div>`}T.value=!0}function A(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ie(l,s){if(!t.value.useBlurOnHover)return"";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0)return[null,void 0].includes(E.value)||E.value===s?"":`url(#blur_${p.value})`;if(!t.value.style.chart.tooltip.showAllItemsAtIndex||v.value.length)return[null,void 0].includes(S.value)||S.value===l.id?"":`url(#blur_${p.value})`}const M=e.computed(()=>m.value.map((l,s)=>l.series.map((o,n)=>({name:o.name,color:o.color,value:o.value,shape:"circle",arcOf:o.arcOf,id:o.id,seriesIndex:n,datasetIndex:s,total:l.series.filter(a=>!v.value.includes(a.id)).map(a=>a.value).reduce((a,u)=>a+u,0)})).map(o=>({...o,opacity:v.value.includes(o.id)?.5:1,segregate:()=>z(o),isSegregated:v.value.includes(o.id)})))),_e=e.computed(()=>({cy:"nested-donuts-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),C=e.computed(()=>{const l=c.value.flatMap(o=>o.series.map(n=>({name:`${o.name} - ${n.name}`,color:n.color,total:o.total}))),s=c.value.flatMap(o=>o.series.map(n=>n.value));return{head:l,body:s}});function ce(){e.nextTick(()=>{const l=C.value.head.map((n,a)=>[[n.name],[C.value.body[a]],[isNaN(C.value.body[a]/n.total)?"-":C.value.body[a]/n.total*100]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-nested-donuts"})})}const V=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],s=C.value.head.map((a,u)=>{const f=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:C.value.body[u],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:a.color,name:a.name},f,isNaN(C.value.body[u]/a.total)?"-":r.dataLabel({v:C.value.body[u]/a.total*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:s,config:o}});function $e(){return m.value}function de(){h.value.showTable=!h.value.showTable}function ve(){h.value.dataLabels.show=!h.value.dataLabels.show}function fe(){h.value.showTooltip=!h.value.showTooltip}const F=e.ref(!1);function R(){F.value=!F.value}return me({getData:$e,generatePdf:te,generateCsv:ce,generateImage:le,toggleTable:de,toggleLabels:ve,toggleTooltip:fe,toggleAnnotator:R}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"nestedDonutsChart",ref:w,class:e.normalizeClass(`vue-ui-nested-donuts ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`nested_donuts_${p.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(De.PenAndPaper,{key:0,parent:w.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ce.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:H,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:X},[(e.openBlock(),e.createBlock(Ne._sfc_main,{key:`title_${W.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value?(e.openBlock(),e.createBlock(he.UserOptions,{ref:"details",key:`user_option_${Y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(ee),uid:p.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:ke,onGeneratePdf:e.unref(te),onGenerateCsv:ce,onGenerateImage:e.unref(le),onToggleTable:de,onToggleLabels:ve,onToggleTooltip:fe,onToggleAnnotator:R},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${d.value.width<=0?.001:d.value.width} ${d.value.height<0?.001:d.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Pe._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`radial_${p.value}_${n}`},[Me,e.createElementVNode("stop",{offset:`${(1-O.value/re.value[n])*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Re),e.createElementVNode("stop",{offset:`${(1-O.value/re.value[n]/2)*100}%`,"stop-color":"#FFFFFF","stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,qe),Ue],8,Ae))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${p.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${p.value}`},null,8,Xe),Ge],8,Ye),e.createElementVNode("filter",{id:`shadow_${p.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,We)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(r.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:ie(a,u)},null,8,Je)]))),256))]))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(se.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:o.donut.arcSlice,fill:`url(#radial_${p.value}_${n})`,stroke:"transparent","stroke-width":"0"},null,8,Qe)]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.showDonutName?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[u===0&&d.value.width&&d.value.height?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),x:d.value.width/2,y:a.startY-t.value.style.chart.layout.labels.dataLabels.fontSize+t.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,"text-anchor":"middle","font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldDonutName?"bold":"normal",fill:t.value.style.chart.layout.labels.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation?e.unref(r.abbreviate)({source:o.name,length:t.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize}):o.name),11,je)):e.createCommentVNode("",!0)]))),256))]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",{filter:ie(a,u)},[A(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldPercentage?"bold":"normal"},e.toDisplayString(e.unref(r.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.layout.labels.dataLabels.roundingPercentage})),11,lt)):e.createCommentVNode("",!0),A(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY)+t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"}," ("+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u}))+") ",11,at)):e.createCommentVNode("",!0),A(a)&&h.value.dataLabels.show&&!t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u})),11,ot)):e.createCommentVNode("",!0)],8,tt))),256))]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-donut-trap":"",d:a.arcSlice,fill:ge.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:f=>xe({datapoint:a,relativeIndex:n,seriesIndex:a.seriesIndex}),onClick:f=>we({datapoint:a,index:u}),onMouseleave:s[0]||(s[0]=f=>{T.value=!1,ue.value=null,S.value=null,E.value=null})},null,40,nt)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Ie)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",rt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Ee._sfc_main,{show:h.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:w.value,content:P.value,isFullscreen:B.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"chartLegend",ref:D,class:e.normalizeClass({"vue-ui-nested-donuts-legend":M.value.length>1})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(o,n)=>(e.openBlock(),e.createBlock(Ve.Legend,{key:`legend_${n}_${K.value}`,legendSet:o,config:_e.value,onClickMarker:s[1]||(s[1]=({legend:a})=>z(a))},{legendTitle:e.withCtx(({titleSet:a})=>[a[0]&&a[0].arcOf?(e.openBlock(),e.createElementBlock("div",st,e.toDisplayString(a[0].arcOf),1)):e.createCommentVNode("",!0)]),item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:f=>z(a),style:e.normalizeStyle(`opacity:${v.value.includes(a.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:u}))+" ",1),v.value.includes(a.id)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ( - % ) ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(isNaN(a.value/a.total)?"-":e.unref(r.dataLabel)({v:a.value/a.total*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],64))],12,ut)]),_:2},1032,["legendSet","config"]))),128))],2)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"chartLegend",ref:D},[e.renderSlot(l.$slots,"legend",{legend:M.value},void 0,!0)],512)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:G,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createBlock(Te.default,{key:10,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Se.DataTable,{key:`table_${J.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,it)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Oe))}},dt=ze._export_sfc(ct,[["__scopeId","data-v-02bfd901"]]);exports.default=dt;
|