vue-data-ui 2.10.4 → 2.10.6
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 +1 -1
- package/dist/{Arrow-D5FZABKM.cjs → Arrow-Cl3tB80E.cjs} +1 -1
- package/dist/{Arrow-rShoZLPF.js → Arrow-rRiIHng2.js} +1 -1
- package/dist/{BaseIcon-DOAYHMqC.js → BaseIcon-COlnFbOq.js} +1 -1
- package/dist/{BaseIcon-YEUagT3T.cjs → BaseIcon-CiINppo2.cjs} +1 -1
- package/dist/{ColorPicker-BvmBswSD.cjs → ColorPicker-9QCAgrqp.cjs} +1 -1
- package/dist/{ColorPicker-C2sp7L2o.js → ColorPicker-UNzkvlGG.js} +3 -3
- package/dist/{DataTable-BcZpw2Di.js → DataTable-CXbN2mJi.js} +2 -2
- package/dist/{DataTable-xRbw3M1w.cjs → DataTable-DOiZOQ3J.cjs} +1 -1
- package/dist/{Legend-BkMSze3l.js → Legend-BU9C5fBQ.js} +2 -2
- package/dist/{Legend-BgW2m6h5.cjs → Legend-CFqKBI0j.cjs} +1 -1
- package/dist/{PackageVersion-DfvwvFMQ.js → PackageVersion-0Lu6RIig.js} +1 -1
- package/dist/{PackageVersion-DMBva7ES.cjs → PackageVersion-BMNt7NsQ.cjs} +1 -1
- package/dist/{PenAndPaper-C4nRoDeG.cjs → PenAndPaper-BUwLP3Wx.cjs} +1 -1
- package/dist/{PenAndPaper-Hpxqpf-9.js → PenAndPaper-D4Uu-GqW.js} +3 -3
- package/dist/{Shape-Bo-gVwFn.cjs → Shape-2NRWULE_.cjs} +1 -1
- package/dist/{Shape-DSzj99gT.js → Shape-BavMx2aa.js} +1 -1
- package/dist/{Slicer-DTzGSpQM.js → Slicer-B_qJHvNR.js} +2 -2
- package/dist/{Slicer-TTZu2wl_.cjs → Slicer-Ct8BAk8F.cjs} +1 -1
- package/dist/{Title-D5Q-MAw-.cjs → Title-BkfQdTEX.cjs} +1 -1
- package/dist/{Title-DmYM5yAv.js → Title-DrVDm1wy.js} +1 -1
- package/dist/{Tooltip-jO3E09l_.js → Tooltip-BFT6mZ5a.js} +1 -1
- package/dist/{Tooltip-BHaUk1Am.cjs → Tooltip-BK88meti.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{dom-to-png-BXOrDSxu.js → dom-to-png-0WSGIcUV.js} +1 -1
- package/dist/{dom-to-png-BvQvLpA3.cjs → dom-to-png-CyVwBzNm.cjs} +1 -1
- package/dist/{img-Buxs9IJl.js → img-BT-UmGcu.js} +1 -1
- package/dist/{img-BtrW_ClW.cjs → img-DqK-SXIP.cjs} +1 -1
- package/dist/index-Cai0fWP7.cjs +9 -0
- package/dist/{index-gaj0gmhW.js → index-hMo72hAq.js} +18 -9
- package/dist/{pdf-Bk3zFpjP.cjs → pdf-DY3kwqSx.cjs} +1 -1
- package/dist/{pdf-U6PPEV5v.js → pdf-G7o-GM_m.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +9 -0
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useNestedProp-BItlw8tg.cjs → useNestedProp-DcWhlk8h.cjs} +1 -1
- package/dist/{useNestedProp-R77oENB4.js → useNestedProp-DhEaBTgF.js} +1 -1
- package/dist/{usePrinter-C-PBqYFC.cjs → usePrinter-B4ojFS2B.cjs} +1 -1
- package/dist/{usePrinter-BAF6jSop.js → usePrinter-D2z-bUtX.js} +3 -3
- package/dist/{vue-data-ui-cxE28JIm.cjs → vue-data-ui-BR4hs3ky.cjs} +1 -1
- package/dist/{vue-data-ui-7sxceCOs.js → vue-data-ui-BTkU5knB.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-WgsqJXq8.cjs → vue-ui-3d-bar-Cx2zND3j.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DYgZ1gpv.js → vue-ui-3d-bar-DD3_LLbq.js} +9 -9
- package/dist/{vue-ui-accordion-DiPdvaEC.js → vue-ui-accordion-CHMdpjnX.js} +3 -3
- package/dist/{vue-ui-accordion-DPRiCTQ4.cjs → vue-ui-accordion-DUGBjyB1.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-VH8hdgnJ.js → vue-ui-age-pyramid-CUS2cIAl.js} +10 -10
- package/dist/{vue-ui-age-pyramid-Bwb1ij77.cjs → vue-ui-age-pyramid-WpMKbqUM.cjs} +1 -1
- package/dist/{vue-ui-annotator-CDnvUWKy.cjs → vue-ui-annotator-B5VYzARK.cjs} +1 -1
- package/dist/{vue-ui-annotator-CH5MDZDG.js → vue-ui-annotator-Ckyjvy1h.js} +2 -2
- package/dist/{vue-ui-bullet-Dd3zjxP1.cjs → vue-ui-bullet-Clccjys0.cjs} +1 -1
- package/dist/{vue-ui-bullet-DVd_q5Un.js → vue-ui-bullet-i97qMAx7.js} +8 -8
- package/dist/{vue-ui-candlestick-DlXoO49B.cjs → vue-ui-candlestick-B35fn-Jo.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CxP2KPB8.js → vue-ui-candlestick-Dmu21ktX.js} +11 -11
- package/dist/{vue-ui-carousel-table-CNbutc12.cjs → vue-ui-carousel-table-23ggTo5D.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DOnU2A0U.js → vue-ui-carousel-table-cvW3wpY7.js} +4 -4
- package/dist/{vue-ui-chestnut-p9hkQsyK.js → vue-ui-chestnut-CZpShJyS.js} +8 -8
- package/dist/{vue-ui-chestnut-DhqbQ1sS.cjs → vue-ui-chestnut-CkuDV8dp.cjs} +1 -1
- package/dist/{vue-ui-circle-pack---RzxPp6.js → vue-ui-circle-pack-B6d9PjE2.js} +9 -9
- package/dist/{vue-ui-circle-pack-B3W2Y1t8.cjs → vue-ui-circle-pack-C2IQV5_6.cjs} +1 -1
- package/dist/{vue-ui-cursor-CglmYKER.js → vue-ui-cursor-CG4bTWjj.js} +2 -2
- package/dist/{vue-ui-cursor-5dWqpQFo.cjs → vue-ui-cursor-CZBmEqOC.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BWOv55Rq.cjs → vue-ui-dashboard-D-95GOHa.cjs} +1 -1
- package/dist/vue-ui-dashboard-DqM_deY-.js +325 -0
- package/dist/{vue-ui-digits-JrJAbiv1.js → vue-ui-digits-CKpey7p1.js} +2 -2
- package/dist/{vue-ui-digits-BOvznf5b.cjs → vue-ui-digits-Cdauuy8X.cjs} +1 -1
- package/dist/{vue-ui-donut-l56OERlb.js → vue-ui-donut-Dp2Yy4fh.js} +36 -36
- package/dist/{vue-ui-donut-evolution-C01vP_bJ.cjs → vue-ui-donut-evolution-Cg1VnagT.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BeFnRUkD.js → vue-ui-donut-evolution-ClL_5jhm.js} +11 -11
- package/dist/{vue-ui-donut-sN_2gTJP.cjs → vue-ui-donut-j519aqqU.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-6i03Kc-b.js → vue-ui-dumbbell-C8tOQUbs.js} +10 -10
- package/dist/{vue-ui-dumbbell-CUe41gOr.cjs → vue-ui-dumbbell-CNJ9en-A.cjs} +1 -1
- package/dist/{vue-ui-flow-Ck5SOd1u.cjs → vue-ui-flow-BYypzs-j.cjs} +1 -1
- package/dist/{vue-ui-flow-CbufmJJA.js → vue-ui-flow-Ouw_lvpb.js} +9 -9
- package/dist/{vue-ui-funnel-hwI_EP3E.js → vue-ui-funnel-CfxmaNEA.js} +9 -9
- package/dist/{vue-ui-funnel-GFfZuzKx.cjs → vue-ui-funnel-DbVCaDxm.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D53mRATC.js → vue-ui-galaxy-dm_p5xAR.js} +11 -11
- package/dist/{vue-ui-galaxy-CZLFsZ-H.cjs → vue-ui-galaxy-zBDItFVz.cjs} +1 -1
- package/dist/{vue-ui-gauge-DQkS_KRm.cjs → vue-ui-gauge-Dr-7ojj9.cjs} +1 -1
- package/dist/{vue-ui-gauge-CGYibwq2.js → vue-ui-gauge-DwwvbGca.js} +7 -7
- package/dist/{vue-ui-gizmo-BjqQd4dy.cjs → vue-ui-gizmo-CB5NfNit.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DSackCMx.js → vue-ui-gizmo-Cq0SpTfm.js} +3 -3
- package/dist/{vue-ui-heatmap-dP-JR5__.js → vue-ui-heatmap-DNSOppoO.js} +10 -10
- package/dist/{vue-ui-heatmap-C0A7hdO3.cjs → vue-ui-heatmap-DtRSx7DO.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CiGA7yW6.cjs → vue-ui-history-plot-BvC3L9g3.cjs} +1 -1
- package/dist/{vue-ui-history-plot-tmASFo_J.js → vue-ui-history-plot-r9eLYJCe.js} +11 -11
- package/dist/{vue-ui-kpi-DRvyo41m.js → vue-ui-kpi-BBpxo07S.js} +3 -3
- package/dist/{vue-ui-kpi-CIs7-KON.cjs → vue-ui-kpi-raHWFHjI.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DG07RzCx.js → vue-ui-mini-loader-CGtQXPzk.js} +2 -2
- package/dist/{vue-ui-mini-loader-DWqpp3i2.cjs → vue-ui-mini-loader-STx0NSvX.cjs} +1 -1
- package/dist/{vue-ui-molecule-Du_Xk6K3.cjs → vue-ui-molecule-B4WJo2V5.cjs} +1 -1
- package/dist/{vue-ui-molecule-Tfp48uxj.js → vue-ui-molecule-EYSvyl-h.js} +11 -11
- package/dist/{vue-ui-mood-radar-HHIsYVgB.cjs → vue-ui-mood-radar-CfHUyyMY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Bk9g5Nb7.js → vue-ui-mood-radar-Crk-XB3O.js} +11 -11
- package/dist/vue-ui-nested-donuts-DRJZT5Bv.cjs +17 -0
- package/dist/vue-ui-nested-donuts-Rm4P3uEP.js +1137 -0
- package/dist/{vue-ui-onion-CAJFRvBG.cjs → vue-ui-onion-Bgvs96ms.cjs} +1 -1
- package/dist/{vue-ui-onion-B4sfUuJR.js → vue-ui-onion-Dzl_kjlE.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-PoPTvKXt.js → vue-ui-parallel-coordinate-plot-98c0XRsu.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DWjcM8x6.cjs → vue-ui-parallel-coordinate-plot-YuLiWTox.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DNVWkP6Q.cjs → vue-ui-quadrant-CiqJKJu1.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DyWGltEe.js → vue-ui-quadrant-Dd1ryxBx.js} +40 -40
- package/dist/{vue-ui-quick-chart-DpFle9Th.js → vue-ui-quick-chart-CTsvK-CY.js} +9 -9
- package/dist/{vue-ui-quick-chart-jrs7sM-L.cjs → vue-ui-quick-chart-DMceIo39.cjs} +1 -1
- package/dist/{vue-ui-radar-uGd1724l.js → vue-ui-radar-CHYpedpk.js} +12 -12
- package/dist/{vue-ui-radar-DlJcEKBT.cjs → vue-ui-radar-Dp8-SmYd.cjs} +1 -1
- package/dist/{vue-ui-rating-zlL_fohp.js → vue-ui-rating-DSsm92zG.js} +10 -10
- package/dist/{vue-ui-rating-DyT2cuTa.cjs → vue-ui-rating-uVphq_sK.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-C_mwuWBA.cjs → vue-ui-relation-circle-46wKUZTv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BSJWSSj3.js → vue-ui-relation-circle-BPVBRieo.js} +7 -7
- package/dist/{vue-ui-ridgeline-huB4GUmG.js → vue-ui-ridgeline-B6GA2tXb.js} +49 -49
- package/dist/{vue-ui-ridgeline-Itzed46M.cjs → vue-ui-ridgeline-OULIMr6I.cjs} +1 -1
- package/dist/{vue-ui-rings-DdxMJYrC.js → vue-ui-rings-Cl-607b8.js} +12 -12
- package/dist/{vue-ui-rings-OmEU3StJ.cjs → vue-ui-rings-HVHIYYrh.cjs} +1 -1
- package/dist/{vue-ui-scatter-vvzbobaJ.cjs → vue-ui-scatter-BZ4DPyoL.cjs} +1 -1
- package/dist/{vue-ui-scatter-BMr3eo6N.js → vue-ui-scatter-ClYbim5F.js} +44 -44
- package/dist/{vue-ui-skeleton-JA0W8tXn.js → vue-ui-skeleton-C3t9bL6f.js} +19 -19
- package/dist/{vue-ui-skeleton-DO7G5Y5g.cjs → vue-ui-skeleton-C954hFY-.cjs} +1 -1
- package/dist/{vue-ui-smiley-BO0MFGFu.cjs → vue-ui-smiley-BBGCa2S0.cjs} +1 -1
- package/dist/{vue-ui-smiley-CIw8667G.js → vue-ui-smiley-DsKnKBFv.js} +2 -2
- package/dist/{vue-ui-spark-trend-CuQH76Jo.cjs → vue-ui-spark-trend-CBa0FhIy.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C1DXyadL.js → vue-ui-spark-trend-Da-HE7x2.js} +5 -5
- package/dist/{vue-ui-sparkbar-kvbWgfWC.cjs → vue-ui-sparkbar-CUul3e3U.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BmhE-99J.js → vue-ui-sparkbar-DgQxbUeJ.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CYJpGB9W.js → vue-ui-sparkgauge-BKA5GnGO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BbxVytfF.cjs → vue-ui-sparkgauge-DYPVqz6I.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DPwQshte.cjs → vue-ui-sparkhistogram-CNN9tXh1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-jt13-xyA.js → vue-ui-sparkhistogram-CdZy4SfH.js} +5 -5
- package/dist/{vue-ui-sparkline-DzFmdpXy.cjs → vue-ui-sparkline-BCP4gyTp.cjs} +1 -1
- package/dist/{vue-ui-sparkline-EaNvjpb9.js → vue-ui-sparkline-DCNNoruu.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-D20-H_RH.js → vue-ui-sparkstackbar-BAXGFcPk.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BIfIWVD6.cjs → vue-ui-sparkstackbar-sgehFSit.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BlQFS50f.cjs → vue-ui-stackbar-87l909wS.cjs} +1 -1
- package/dist/{vue-ui-stackbar-IfVjvxly.js → vue-ui-stackbar-Cto9A9WG.js} +13 -13
- package/dist/{vue-ui-strip-plot-C0JJwLZs.js → vue-ui-strip-plot-C0F8_S_g.js} +11 -11
- package/dist/{vue-ui-strip-plot-Cj7pyIjv.cjs → vue-ui-strip-plot-Deegqmms.cjs} +1 -1
- package/dist/{vue-ui-table-Dv15sJ0a.js → vue-ui-table-1vUkkwSp.js} +3 -3
- package/dist/{vue-ui-table-DtRcQV5j.cjs → vue-ui-table-BUxFdYM7.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-2yiRD9Ye.js → vue-ui-table-heatmap-PPGfjMxh.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BPbQGrNC.cjs → vue-ui-table-heatmap-uDH3owRO.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DYRqyIVx.cjs → vue-ui-table-sparkline-CPSlJVB1.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DLmFiLHF.js → vue-ui-table-sparkline-D9LEgrxj.js} +5 -5
- package/dist/{vue-ui-thermometer-DLCjJe6v.js → vue-ui-thermometer-BxngpuEZ.js} +7 -7
- package/dist/{vue-ui-thermometer-gL74aWA3.cjs → vue-ui-thermometer-D8P88pea.cjs} +1 -1
- package/dist/{vue-ui-timer-BIk_79G3.cjs → vue-ui-timer-B_dh6otW.cjs} +1 -1
- package/dist/{vue-ui-timer-C7-qvY5L.js → vue-ui-timer-C3dxY--Q.js} +5 -5
- package/dist/{vue-ui-tiremarks-BxAQR-XE.js → vue-ui-tiremarks-_oZ6wL6K.js} +7 -7
- package/dist/{vue-ui-tiremarks-1_fqbLdG.cjs → vue-ui-tiremarks-mISKtpmD.cjs} +1 -1
- package/dist/{vue-ui-treemap-DRyEb-BU.cjs → vue-ui-treemap-CZZXcX0f.cjs} +1 -1
- package/dist/{vue-ui-treemap-DQD2Xuuh.js → vue-ui-treemap-D5Dcd84h.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BJel3_6V.cjs → vue-ui-vertical-bar-C-KAVKXj.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BaIRmMNm.js → vue-ui-vertical-bar-CtWXk6co.js} +12 -12
- package/dist/{vue-ui-waffle-DkvyTGgQ.js → vue-ui-waffle-BD2GnRkO.js} +12 -12
- package/dist/{vue-ui-waffle-DeOPUPQx.cjs → vue-ui-waffle-C9qyTIzz.cjs} +1 -1
- package/dist/{vue-ui-wheel-CG5T2hIG.cjs → vue-ui-wheel-CKfr_7kH.cjs} +1 -1
- package/dist/{vue-ui-wheel-YF9GWFaZ.js → vue-ui-wheel-HydW49fo.js} +7 -7
- package/dist/{vue-ui-word-cloud-BuZu35M3.cjs → vue-ui-word-cloud-C4ISeFpy.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-_D3SXGDc.js → vue-ui-word-cloud-C9Pbi6ey.js} +10 -10
- package/dist/{vue-ui-world-Dfe3q7_e.cjs → vue-ui-world-BlAD3UPb.cjs} +1 -1
- package/dist/{vue-ui-world-DZED00QY.js → vue-ui-world-D-AsGwlW.js} +11 -11
- package/dist/{vue-ui-xy-g8d2AKdu.js → vue-ui-xy-CMw6P4C0.js} +16 -16
- package/dist/{vue-ui-xy-BWkU6RgD.cjs → vue-ui-xy-CS-xjZVI.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-OMHgq4d8.cjs → vue-ui-xy-canvas-Dd7IFwSK.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CQaxl6Cr.js → vue-ui-xy-canvas-DtKI-IQA.js} +12 -12
- package/package.json +1 -1
- package/dist/index-C992Ntxe.cjs +0 -9
- package/dist/vue-ui-dashboard-Dl0OuKWA.js +0 -317
- package/dist/vue-ui-nested-donuts-C4bZMsu7.js +0 -937
- package/dist/vue-ui-nested-donuts-CmPyTnt9.cjs +0 -17
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-C992Ntxe.cjs"),me=require("./useResponsive-DQmBAoBf.cjs"),Te=require("./Title-D5Q-MAw-.cjs"),be=require("./usePrinter-C-PBqYFC.cjs"),Oe=require("./DataTable-xRbw3M1w.cjs"),Pe=require("./Tooltip-BHaUk1Am.cjs"),ze=require("./Legend-BgW2m6h5.cjs"),De=require("./vue-ui-skeleton-DO7G5Y5g.cjs"),Ae=require("./vue-ui-accordion-DPRiCTQ4.cjs"),ge=require("./useNestedProp-BItlw8tg.cjs"),Ie=require("./PackageVersion-DMBva7ES.cjs"),Me=require("./PenAndPaper-C4nRoDeG.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ue=require("./useChartAccessibility-Cm7nkzTG.cjs"),qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ye=["id"],Xe=["xmlns","viewBox"],Ge=["width","height"],He=["id"],We=["offset","stop-color"],Je=["offset","stop-opacity"],Ke=["id"],Qe=["id"],Ze=["id"],je=["flood-color"],et=["d","fill","stroke","stroke-width","filter"],tt={key:1},lt=["d","fill"],at={key:2},ot=["x","y","font-size","font-weight","fill"],nt={key:3},rt=["filter"],st=["text-anchor","x","y","fill","font-size","font-weight"],ut=["text-anchor","x","y","fill","font-size","font-weight"],it=["text-anchor","x","y","fill","font-size","font-weight"],ct=["d","fill","onMouseenter","onClick"],dt={key:5,class:"vue-data-ui-watermark"},vt={key:0,class:"vue-ui-nested-donuts-legend-title"},ft=["onClick"],pt=["innerHTML"],ht={__name:"vue-ui-nested-donuts",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ke,{expose:Ce,emit:we}){const{vue_ui_nested_donuts:Le}=s.useConfig(),k=ke,x=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(s.createUid()),F=e.ref(!1),T=e.ref(""),Be=e.ref(null),U=e.ref(0),B=e.ref(null),q=e.ref(null),O=e.ref(null),Y=e.ref(null),X=e.ref(null),G=e.ref(0),H=e.ref(0),W=e.ref(0),L=e.ref(!1);function xe(l){L.value=l,U.value+=1}const t=e.computed({get:()=>Z(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:J,keepUserOptionState:K}=Re.useUserOptionState({config:t.value}),{svgRef:Q}=Ue.useChartAccessibility({config:t.value.style.chart.title});function Z(){const l=ge.useNestedProp({userConfig:k.config,defaultConfig:Le});return l.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_nested_donuts[l.theme]||k.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>k.config,l=>{t.value=Z(),P.value=!t.value.userOptions.showOnChartHover,ee(),G.value+=1,H.value+=1,W.value+=1,v.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const j=e.computed(()=>{const{top:l,right:r,bottom:o,left:n}=t.value.style.chart.padding;return{css:`padding:${l}px ${r}px ${o}px ${n}px`,top:l,right:r,bottom:o,left:n}}),$=e.ref(null);e.onMounted(()=>{ee()});function ee(){if(s.objectIsEmpty(k.dataset)&&s.error({componentName:"VueUiNestedDonuts",type:"dataset"}),t.value.responsive){const l=me.throttle(()=>{const{width:r,height:o}=me.useResponsive({chart:B.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:Y.value,noTitle:X.value,padding:j.value});requestAnimationFrame(()=>{c.value.width=r,c.value.height=o})});$.value=new ResizeObserver(l),$.value.observe(B.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:te,isImaging:le,generatePdf:ae,generateImage:oe}=be.usePrinter({elementId:`nested_donuts_${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-nested-donuts",options:t.value.userOptions.print}),$e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Ne=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),c=e.ref({height:512,width:512}),ne=we;function Se({datapoint:l,index:r}){ne("selectDatapoint",{datapoint:l,index:r})}const f=e.ref([]),m=e.computed(()=>(k.dataset.forEach((l,r)=>{[null,void 0].includes(l.name)&&s.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:r}),[null,void 0].includes(l.series)?s.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"series",index:r}):l.series.length===0?s.error({componentName:"VueUiNestedDonuts",type:"datasetAttributeEmpty",property:`series at index ${r}`}):l.series.forEach((o,n)=>{[null,void 0].includes(o.name)&&s.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:n,key:"serie"}),[null,void 0].includes(o.values)&&s.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"values",index:n,key:"serie"})})}),k.dataset.map((l,r)=>({...l,total:l.series.filter(o=>!f.value.includes(o.id)).map(o=>s.sanitizeArray(o.values).reduce((n,a)=>n+a,0)).reduce((o,n)=>o+n,0),datasetIndex:r,id:`${h.value}_${r}`,series:l.series.map((o,n)=>({name:o.name,arcOf:l.name,arcOfId:`${h.value}_${r}`,id:`${h.value}_${r}_${n}`,seriesIndex:n,datasetIndex:r,color:s.convertColorToHex(o.color)||Ne.value[n]||s.palette[n]||s.palette[n%s.palette.length],value:s.sanitizeArray(o.values).reduce((a,u)=>a+u,0),absoluteValues:o.values||[]}))})))),b=e.computed(()=>Math.min(c.value.height,c.value.width)*(t.value.style.chart.layout.donut.strokeWidth/512)),re=e.computed(()=>[...m.value].map((l,r)=>{const o=l.series.filter(n=>!f.value.includes(n.id)).map(n=>n.value).reduce((n,a)=>n+a,0);return{...l,total:o,series:l.series.filter(n=>!f.value.includes(n.id)).map(n=>({...n,proportion:n.value/o}))}}));function _e(l,r,o){let n=0;for(let a=0;a<l.length;a+=1)o.includes(l[a])&&(n+=1);return n<r}const d=e.ref(re.value);e.watch(()=>re.value,l=>d.value=l);const se=e.ref(null),ue=e.ref(null);function z(l){ne("selectLegend",l);const r=m.value.flatMap(i=>i.series).find(i=>i.id===l.id),o=d.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===r.arcOfId).series.map(i=>i.id),p=_e(u,u.length-1,f.value);if(f.value.includes(l.id)){let i=function(){a>r.value?(cancelAnimationFrame(se.value),d.value=d.value.map(y=>({...y,series:y.series.map(g=>g.id==l.id?{...g,value:r.value}:g)}))):(a+=r.value*.025,d.value=d.value.map(y=>({...y,series:y.series.map(g=>g.id===l.id?{...g,value:a}:g)})),se.value=requestAnimationFrame(i))};f.value=f.value.filter(y=>y!==l.id),i()}else if(p){let i=function(){a<.1?(cancelAnimationFrame(ue.value),f.value.push(l.id),d.value=d.value.map((y,g)=>({...y,series:y.series.map(w=>w.id===l.id?{...w,value:0}:w)}))):(a/=1.1,d.value=d.value.map((y,g)=>({...y,series:y.series.map(w=>w.id===l.id?{...w,value:a}:w)})),ue.value=requestAnimationFrame(i))};i()}}const D=e.computed(()=>b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio),ie=e.computed(()=>d.value.map((l,r)=>b.value-r*b.value/m.value.length)),N=e.computed(()=>d.value.map((l,r)=>{const o=r*b.value/m.value.length;return{...l,radius:b.value-o,donut:s.makeDonut({series:l.series},c.value.width/2,c.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,D.value)}})),ce=e.computed(()=>[...m.value].map((l,r)=>{const o=r*b.value/m.value.length;return{sizeRatio:o,donut:s.makeDonut({series:[{value:1}]},c.value.width/2,c.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]}})),de=e.ref(null),S=e.ref(null),_=e.ref(null),A=e.ref(null);function Ve({datapoint:l,_relativeIndex:r,seriesIndex:o}){de.value=l.arcOfId,S.value=l.id,_.value=o,A.value={datapoint:l,seriesIndex:o,series:d.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(s.isFunction(n)&&s.functionReturnsString(()=>n({seriesIndex:o,datapoint:l,series:d.value,config:t.value})))T.value=n({seriesIndex:o,datapoint:l,series:d.value,config:t.value});else{let a="";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&f.value.length===0){const u=d.value.map(p=>p.series.find(i=>i.seriesIndex===o));u.forEach((p,i)=>{if(!p)return"";a+=`
|
|
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
|
-
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
4
|
-
<svg viewBox="0 0 20 20" height="${t.value.style.chart.tooltip.fontSize}" width="${t.value.style.chart.tooltip.fontSize}">
|
|
5
|
-
<circle cx="10" cy="10" r="10" fill="${p.color}"/>
|
|
6
|
-
</svg>
|
|
7
|
-
<span>
|
|
8
|
-
${p.arcOf??""} - ${p.name}
|
|
9
|
-
</span>
|
|
10
|
-
</div>
|
|
11
|
-
<span>
|
|
12
|
-
${t.value.style.chart.tooltip.showValue?`<b>${s.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,s.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})}
|
|
13
|
-
</b>`:""}
|
|
14
|
-
${t.value.style.chart.tooltip.showPercentage?`(${s.dataLabel({v:p.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})`:""}
|
|
15
|
-
</span>
|
|
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>${s.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,s.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>(${s.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:a+=`<b>${s.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`);T.value=`<div style="font-size:${t.value.style.chart.tooltip.fontSize}px">${a}</div>`}F.value=!0}function I(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ve(l,r){if(!t.value.useBlurOnHover)return"";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&f.value.length===0)return[null,void 0].includes(_.value)||_.value===r?"":`url(#blur_${h.value})`;if(!t.value.style.chart.tooltip.showAllItemsAtIndex||f.value.length)return[null,void 0].includes(S.value)||S.value===l.id?"":`url(#blur_${h.value})`}const M=e.computed(()=>m.value.map((l,r)=>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:r,total:l.series.filter(a=>!f.value.includes(a.id)).map(a=>a.value).reduce((a,u)=>a+u,0)})).map(o=>({...o,opacity:f.value.includes(o.id)?.5:1,segregate:()=>z(o),isSegregated:f.value.includes(o.id)})))),Ee=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=d.value.flatMap(o=>o.series.map(n=>({name:`${o.name} - ${n.name}`,color:n.color,total:o.total}))),r=d.value.flatMap(o=>o.series.map(n=>n.value));return{head:l,body:r}});function fe(){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]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=s.createCsvContent(r);s.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],r=C.value.head.map((a,u)=>{const p=s.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},p,isNaN(C.value.body[u]/a.total)?"-":s.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:r,config:o}});function Fe(){return m.value}function pe(){v.value.showTable=!v.value.showTable}function he(){v.value.dataLabels.show=!v.value.dataLabels.show}function ye(){v.value.showTooltip=!v.value.showTooltip}const E=e.ref(!1);function R(){E.value=!E.value}return Ce({getData:Fe,generatePdf:ae,generateCsv:fe,generateImage:oe,toggleTable:pe,toggleLabels:he,toggleTooltip:ye,toggleAnnotator:R}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"nestedDonutsChart",ref:B,class:e.normalizeClass(`vue-ui-nested-donuts ${L.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_${h.value}`,onMouseenter:r[3]||(r[3]=()=>e.unref(J)(!0)),onMouseleave:r[4]||(r[4]=()=>e.unref(J)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Me._sfc_main,{key:0,svgRef:e.unref(Q),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:E.value,onClose:R},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),$e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:X,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:q},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${G.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&&x.value&&(e.unref(K)||e.unref(P))?(e.openBlock(),e.createBlock(be.UserOptions,{ref:"details",key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(le),uid:h.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:L.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:E.value,onToggleFullscreen:xe,onGeneratePdf:e.unref(ae),onGenerateCsv:fe,onGenerateImage:e.unref(oe),onToggleTable:pe,onToggleLabels:he,onToggleTooltip:ye,onToggleAnnotator:R,style:e.normalizeStyle({visibility:e.unref(K)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:n})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:n})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"6"}: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:"7"}: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:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Q,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${c.value.width<=0?.001:c.value.width} ${c.value.height<0?.001:c.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${j.value.css}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:c.value.width<=0?.001:c.value.width,height:c.value.height<0?.001:c.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`radial_${h.value}_${n}`},[r[5]||(r[5]=e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),e.createElementVNode("stop",{offset:`${(1-D.value/ie.value[n])*100}%`,"stop-color":e.unref(s.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,We),e.createElementVNode("stop",{offset:`${(1-D.value/ie.value[n]/2)*100}%`,"stop-color":"#FFFFFF","stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,Je),r[6]||(r[6]=e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1))],8,He))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${h.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${h.value}`},null,8,Qe),r[7]||(r[7]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,Ke),e.createElementVNode("filter",{id:`shadow_${h.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,je)],8,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,[e.createElementVNode("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(s.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:ve(a,u)},null,8,et)]))),256))]))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:o.donut.arcSlice,fill:`url(#radial_${h.value}_${n})`,stroke:"transparent","stroke-width":"0"},null,8,lt)]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.showDonutName?(e.openBlock(),e.createElementBlock("g",at,[(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&&c.value.width&&c.value.height?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),x:c.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(s.abbreviate)({source:o.name,length:t.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize}):o.name),11,ot)):e.createCommentVNode("",!0)]))),256))]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",nt,[(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:ve(a,u)},[I(a)&&v.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(s.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(s.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(s.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(s.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.layout.labels.dataLabels.roundingPercentage})),11,st)):e.createCommentVNode("",!0),I(a)&&v.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(s.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(s.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(s.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(s.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(s.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,ut)):e.createCommentVNode("",!0),I(a)&&v.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(s.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(s.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(s.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(s.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(s.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,it)):e.createCommentVNode("",!0)],8,rt))),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",{d:a.arcSlice,fill:Be.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:p=>Ve({datapoint:a,seriesIndex:a.seriesIndex}),onClick:p=>Se({datapoint:a,index:u}),onMouseleave:r[0]||(r[0]=p=>{F.value=!1,de.value=null,S.value=null,_.value=null})},null,40,ct)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:c.value},void 0,!0)],14,Xe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(le)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(De.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Pe._sfc_main,{show:v.value.showTooltip&&F.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:B.value,content:T.value,isFullscreen:L.value,isCustom:e.unref(s.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...A.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...A.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:O,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(ze.Legend,{key:`legend_${n}_${W.value}`,legendSet:o,config:Ee.value,onClickMarker:r[1]||(r[1]=({legend:a})=>z(a))},{legendTitle:e.withCtx(({titleSet:a})=>[a[0]&&a[0].arcOf?(e.openBlock(),e.createElementBlock("div",vt,e.toDisplayString(a[0].arcOf),1)):e.createCommentVNode("",!0)]),item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:p=>z(a),style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(s.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),f.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(s.dataLabel)({v:a.value/a.total*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],64))],12,ft)]),_: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:O},[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:Y,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createBlock(Ae.default,{key:10,hideDetails:"",config:{open:v.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(Oe.DataTable,{key:`table_${H.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:r[2]||(r[2]=o=>v.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,pt)]),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)],46,Ye))}},yt=qe._export_sfc(ht,[["__scopeId","data-v-23284122"]]);exports.default=yt;
|