vue-data-ui 2.3.79 → 2.3.81
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-7KSHNtE9.cjs → Arrow--frEqkM1.cjs} +1 -1
- package/dist/{Arrow-CMz9sUNE.js → Arrow-DgbDnIay.js} +1 -1
- package/dist/{BaseIcon-Dk7dYD2V.cjs → BaseIcon-BFrPffQf.cjs} +1 -1
- package/dist/{BaseIcon--epRsx3h.js → BaseIcon-DAj2M2og.js} +1 -1
- package/dist/{DataTable-BtdSUfo8.cjs → DataTable-CqE9xPi-.cjs} +1 -1
- package/dist/{DataTable-CegPJkZh.js → DataTable-DlM-ptF5.js} +2 -2
- package/dist/{Legend-kh9PzvjQ.cjs → Legend-WjtdD7uU.cjs} +1 -1
- package/dist/{Legend-DHn7PpRX.js → Legend-ktvN6I85.js} +1 -1
- package/dist/{Shape-BYzJgXyX.js → Shape-C7TsCqxL.js} +1 -1
- package/dist/{Shape-C_bea-fx.cjs → Shape-Va4q9CxI.cjs} +1 -1
- package/dist/{Slicer-BCPRbaD9.js → Slicer-BxK7bk1k.js} +2 -2
- package/dist/{Slicer-BY2HfvXm.cjs → Slicer-Cvzscldo.cjs} +1 -1
- package/dist/{Title-CWjHjkKS.cjs → Title-BHQhfv4i.cjs} +1 -1
- package/dist/{Title-CZGFVTAL.js → Title-qba88G9l.js} +1 -1
- package/dist/{Tooltip-C1sNTQ1g.cjs → Tooltip-CF0rqlmz.cjs} +1 -1
- package/dist/{Tooltip-BHnf4YJR.js → Tooltip-_eXFITh9.js} +1 -1
- package/dist/{index-Dzi9DWc6.js → index-BbO9Hp9f.js} +1 -1
- package/dist/{index-CPFtA_2a.cjs → index-CYXApZ53.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BSY0Tspx.js → useNestedProp-BCRH6JNl.js} +1 -1
- package/dist/{useNestedProp-BUMZMzjx.cjs → useNestedProp-pdsq6jGj.cjs} +1 -1
- package/dist/{usePrinter-DGeHPbZW.js → usePrinter-CGrHmZQx.js} +1 -1
- package/dist/{usePrinter-Ctl6AURH.cjs → usePrinter-O35vhanM.cjs} +1 -1
- package/dist/{vue-data-ui-CBAHwmL6.js → vue-data-ui-FgMXDmix.js} +57 -57
- package/dist/{vue-data-ui-BrskASaU.cjs → vue-data-ui-krdo7JvN.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-aPQlBNHD.js → vue-ui-3d-bar-BuvelMgc.js} +7 -7
- package/dist/{vue-ui-3d-bar-G_O_Ncrd.cjs → vue-ui-3d-bar-CkGQe1oU.cjs} +1 -1
- package/dist/{vue-ui-accordion-C4FB0Uy9.js → vue-ui-accordion-BfeRdBUF.js} +3 -3
- package/dist/{vue-ui-accordion-DfUmD2e0.cjs → vue-ui-accordion-CxzLg6-4.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-tXH9_6Cl.js → vue-ui-age-pyramid-BPgLK1Pw.js} +8 -8
- package/dist/{vue-ui-age-pyramid-0bU5epKz.cjs → vue-ui-age-pyramid-Buj7DCF5.cjs} +1 -1
- package/dist/{vue-ui-annotator-CHv_oFC5.cjs → vue-ui-annotator-4OwxG-z_.cjs} +1 -1
- package/dist/{vue-ui-annotator-DoqAR1AJ.js → vue-ui-annotator-tQFLr9CC.js} +1 -1
- package/dist/{vue-ui-candlestick-Bow8ysHR.js → vue-ui-candlestick-BCLakLnY.js} +9 -9
- package/dist/{vue-ui-candlestick-C9hmAjO4.cjs → vue-ui-candlestick-Bc6cPc8C.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DIpy9OcA.cjs → vue-ui-carousel-table-CWyAWzTx.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CFyHgs2G.js → vue-ui-carousel-table-Zj3PLCOz.js} +4 -4
- package/dist/{vue-ui-chestnut-yUQIrA49.js → vue-ui-chestnut-B80QSqfE.js} +6 -6
- package/dist/{vue-ui-chestnut-Bhorci6g.cjs → vue-ui-chestnut-CdKcI1dI.cjs} +1 -1
- package/dist/{vue-ui-cursor-C_XibJ7N.cjs → vue-ui-cursor-CiLp4DOF.cjs} +1 -1
- package/dist/{vue-ui-cursor-lOvrBueD.js → vue-ui-cursor-Cvhe_IiC.js} +2 -2
- package/dist/{vue-ui-dashboard-C83saYpB.js → vue-ui-dashboard-DU5d7SrJ.js} +2 -2
- package/dist/{vue-ui-dashboard-sd5Y5-e-.cjs → vue-ui-dashboard-DicEyUI2.cjs} +1 -1
- package/dist/{vue-ui-digits-BlYPdDPr.js → vue-ui-digits-BbyLlgvc.js} +2 -2
- package/dist/{vue-ui-digits-BebeS9K1.cjs → vue-ui-digits-DX0JesGi.cjs} +1 -1
- package/dist/vue-ui-donut-DobwZrg_.cjs +1 -0
- package/dist/{vue-ui-donut-cu0lTO-k.js → vue-ui-donut-acHeW-dS.js} +240 -240
- package/dist/{vue-ui-donut-evolution-DBtR0KB1.cjs → vue-ui-donut-evolution-BEZoIlGp.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BtLFqMTk.js → vue-ui-donut-evolution-Pv5TB3fm.js} +9 -9
- package/dist/{vue-ui-dumbbell-CD7Q04B4.cjs → vue-ui-dumbbell-BZqseiXM.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C_tCEHzH.js → vue-ui-dumbbell-C_2a3KLt.js} +8 -8
- package/dist/{vue-ui-flow-Cv8PLTaj.js → vue-ui-flow-BjU1ZRIF.js} +7 -7
- package/dist/{vue-ui-flow-CFAqxg-s.cjs → vue-ui-flow-Cqj8kVlG.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DWX8Ncj4.cjs → vue-ui-galaxy-Cyh8CDMJ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BZYKkgAb.js → vue-ui-galaxy-D37VApbk.js} +9 -9
- package/dist/{vue-ui-gauge-CKGYpTFB.cjs → vue-ui-gauge-C-Na1a9e.cjs} +1 -1
- package/dist/{vue-ui-gauge-BhOvSbGz.js → vue-ui-gauge-Dwy5BdwO.js} +5 -5
- package/dist/{vue-ui-gizmo-37rGvXCR.js → vue-ui-gizmo-BrB9IIpm.js} +2 -2
- package/dist/{vue-ui-gizmo-07TDXIaB.cjs → vue-ui-gizmo-DJXhscPd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CTob1F6o.cjs → vue-ui-heatmap-1CtfFCVD.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dm-MMJ4o.js → vue-ui-heatmap-BMiSPaPZ.js} +8 -8
- package/dist/{vue-ui-kpi-CHkOikkJ.cjs → vue-ui-kpi-9gsy5Gwx.cjs} +1 -1
- package/dist/{vue-ui-kpi-oh0aHGO-.js → vue-ui-kpi-Cixa6Nvr.js} +3 -3
- package/dist/{vue-ui-mini-loader-CnXWvlLw.cjs → vue-ui-mini-loader-Bpf_zbIE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BxtLbcPD.js → vue-ui-mini-loader-CC05giKH.js} +2 -2
- package/dist/{vue-ui-molecule-xiiQZhzI.cjs → vue-ui-molecule-2As5Qssu.cjs} +1 -1
- package/dist/{vue-ui-molecule-fywn7YiK.js → vue-ui-molecule-C5BxWUFU.js} +9 -9
- package/dist/{vue-ui-mood-radar-_H-MKxxl.cjs → vue-ui-mood-radar-CRZvzLQh.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D2ZSuRkr.js → vue-ui-mood-radar-Ch03P8jj.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BH3Acqfp.js → vue-ui-nested-donuts-B_Imyk8W.js} +302 -308
- package/dist/vue-ui-nested-donuts-WCjZ0APB.cjs +17 -0
- package/dist/{vue-ui-onion-CLZRFpAv.cjs → vue-ui-onion-Bfx7SSGm.cjs} +1 -1
- package/dist/{vue-ui-onion-DTsCMyrd.js → vue-ui-onion-Bm-v_KEf.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-Pg0ZZqcp.js → vue-ui-parallel-coordinate-plot-B1KhGJ4Z.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-DQ8C3HyY.cjs → vue-ui-parallel-coordinate-plot-CiQmgTT8.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BPC_3kPL.js → vue-ui-quadrant-DiSpZTqI.js} +10 -10
- package/dist/{vue-ui-quadrant-BElvdrp_.cjs → vue-ui-quadrant-JlJ2I28X.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BAkaZJ4p.js → vue-ui-quick-chart-Bd0A7Dhu.js} +334 -334
- package/dist/vue-ui-quick-chart-uyBGnl-w.cjs +15 -0
- package/dist/{vue-ui-radar-CvTIj-lO.cjs → vue-ui-radar-Bsgqps0B.cjs} +1 -1
- package/dist/{vue-ui-radar-CgqDVKuK.js → vue-ui-radar-CZhyNboy.js} +10 -10
- package/dist/{vue-ui-rating-BZLIXnyB.js → vue-ui-rating-CI7sVX06.js} +2 -2
- package/dist/{vue-ui-rating-DpCRpJ4m.cjs → vue-ui-rating-b9XgUFUg.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CSAABiZY.js → vue-ui-relation-circle-CQCXmGgD.js} +5 -5
- package/dist/{vue-ui-relation-circle-DkXrdiiR.cjs → vue-ui-relation-circle-DXesw1L0.cjs} +1 -1
- package/dist/{vue-ui-rings-CJtNdYeX.cjs → vue-ui-rings-BK5EcN7r.cjs} +1 -1
- package/dist/{vue-ui-rings-Dw1BJGXu.js → vue-ui-rings-D2mt8OaW.js} +9 -9
- package/dist/{vue-ui-scatter-kefea2pe.js → vue-ui-scatter-CKNinzEX.js} +10 -10
- package/dist/{vue-ui-scatter-Cn4qQBmG.cjs → vue-ui-scatter-CoP2aqlr.cjs} +1 -1
- package/dist/{vue-ui-screenshot-5LvueVyD.js → vue-ui-screenshot-BhNeQgGO.js} +1 -1
- package/dist/{vue-ui-screenshot-DzrSUfRb.cjs → vue-ui-screenshot-amfsU2ae.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C9gsw9XJ.cjs → vue-ui-skeleton-BALbq0Pw.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BRcmM6et.js → vue-ui-skeleton-BvkcP6ga.js} +2 -2
- package/dist/{vue-ui-smiley-BEaQ1ebG.js → vue-ui-smiley-BphTt9Aw.js} +2 -2
- package/dist/{vue-ui-smiley-BZ9sEYKl.cjs → vue-ui-smiley-CrK0uFbX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DWbduAlI.js → vue-ui-spark-trend-CWy42Ddd.js} +4 -4
- package/dist/{vue-ui-spark-trend-WGCL6qRe.cjs → vue-ui-spark-trend-DjQYG7RI.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BwXBIgap.js → vue-ui-sparkbar-CO2eRf_u.js} +3 -3
- package/dist/{vue-ui-sparkbar-C19NQbzy.cjs → vue-ui-sparkbar-DJ5taUwN.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJzICBM7.js → vue-ui-sparkgauge-7CHJCq2b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-F5uNohHA.cjs → vue-ui-sparkgauge-BLDwV2Jz.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Brxx3lPt.js → vue-ui-sparkhistogram-BH-mOFoW.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CEhbAYJu.cjs → vue-ui-sparkhistogram-D8o3f6O-.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BnMFB2Ei.cjs → vue-ui-sparkline-Bt-V5Mey.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWpO00g3.js → vue-ui-sparkline-Bxj_gOB3.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CDDrOr-n.js → vue-ui-sparkstackbar-BB7RR_hL.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BO9q_oMm.cjs → vue-ui-sparkstackbar-D_-eEiAD.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Bwrbh9it.js → vue-ui-stackbar-7RK8OC3X.js} +10 -10
- package/dist/{vue-ui-stackbar-DfZJRngt.cjs → vue-ui-stackbar-DKew20g-.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Bp-S1Wf9.js → vue-ui-strip-plot-DDGlur5A.js} +9 -9
- package/dist/{vue-ui-strip-plot-BpDR-dkQ.cjs → vue-ui-strip-plot-mC0emksT.cjs} +1 -1
- package/dist/{vue-ui-table-CJDKUKOS.js → vue-ui-table-Ch4nika7.js} +1 -1
- package/dist/{vue-ui-table-Cw6e5yDj.cjs → vue-ui-table-TBwHXWxL.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-_tuoaziA.cjs → vue-ui-table-heatmap-BqeHcw_y.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C0xoBGEZ.js → vue-ui-table-heatmap-CQo_C0s9.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BMVMoE-m.cjs → vue-ui-table-sparkline-CGugekmj.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CKfBnRuq.js → vue-ui-table-sparkline-PyyzmS9i.js} +5 -5
- package/dist/{vue-ui-thermometer-mIYyVxtH.cjs → vue-ui-thermometer-BpJ4VJ93.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DJnGfyb3.js → vue-ui-thermometer-DtYkgBC7.js} +5 -5
- package/dist/{vue-ui-timer-CPImsfNt.cjs → vue-ui-timer-DGkjRJxG.cjs} +1 -1
- package/dist/{vue-ui-timer-D3-ehmrd.js → vue-ui-timer-DZojZEA4.js} +4 -4
- package/dist/{vue-ui-tiremarks-Dyt3JsZe.js → vue-ui-tiremarks-B7t5DKy3.js} +5 -5
- package/dist/{vue-ui-tiremarks-CCw-ctjv.cjs → vue-ui-tiremarks-XeVsRMnt.cjs} +1 -1
- package/dist/{vue-ui-treemap-Q4DN6aY7.js → vue-ui-treemap-Cfgh1jVs.js} +9 -9
- package/dist/{vue-ui-treemap-DbyZr-O6.cjs → vue-ui-treemap-DWkeAVQQ.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CZoUU9_l.cjs → vue-ui-vertical-bar-DLLMJ-aT.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BPkh53kA.js → vue-ui-vertical-bar-KPXSGlhx.js} +9 -9
- package/dist/{vue-ui-waffle-BmQnqY4H.cjs → vue-ui-waffle-B8KBJE1m.cjs} +1 -1
- package/dist/{vue-ui-waffle-BwmVk6Po.js → vue-ui-waffle-CNcqwFpw.js} +9 -9
- package/dist/{vue-ui-wheel-BKXwCIGg.js → vue-ui-wheel-CCCegmg2.js} +5 -5
- package/dist/{vue-ui-wheel-IXkBhBLM.cjs → vue-ui-wheel-CMByFaO_.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Y2uokguh.cjs → vue-ui-word-cloud-DJO1i3Nm.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CqOVJLJt.js → vue-ui-word-cloud-zeoovcoY.js} +7 -7
- package/dist/{vue-ui-xy-DcjUmm61.js → vue-ui-xy-C0Wcn143.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CCDRUUy-.js → vue-ui-xy-canvas-DGldcqqz.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DCm4MdGE.cjs → vue-ui-xy-canvas-hXPjrh1z.cjs} +1 -1
- package/dist/{vue-ui-xy-DaQ4muCU.cjs → vue-ui-xy-iYHxF8Yf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-b6ltmnHo.cjs +0 -1
- package/dist/vue-ui-nested-donuts-C4-O_KFr.cjs +0 -17
- package/dist/vue-ui-quick-chart-bIEVTS1U.cjs +0 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CYXApZ53.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-BHQhfv4i.cjs"),ve=require("./usePrinter-O35vhanM.cjs"),xe=require("./DataTable-CqE9xPi-.cjs"),_e=require("./Tooltip-CF0rqlmz.cjs"),Be=require("./Legend-WjtdD7uU.cjs"),Se=require("./vue-ui-skeleton-BALbq0Pw.cjs"),$e=require("./vue-ui-accordion-CxzLg6-4.cjs"),de=require("./useNestedProp-pdsq6jGj.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=B=>(e.pushScopeId("data-v-036ff913"),B=B(),e.popScopeId(),B),Ee=["id"],Ve=["xmlns","viewBox"],ze=["id"],Oe=["stop-color"],Te=["offset","stop-color"],Fe=["offset","stop-color"],De=["stop-color"],Pe=["id"],Me=["id"],Xe=Ne(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ae=["id"],Ie=["flood-color"],qe=["d","stroke","filter"],Re=["cx","cy","r","fill","filter"],Ge=["stroke","d"],Ye=["d","fill","stroke","stroke-width","filter"],Ue=["cx","cy","r","fill","stroke"],je=["cx","cy","r","fill"],He=["d","fill","onMouseenter","onClick"],We=["x","y","fill","font-size"],Je=["x","y","fill","font-size"],Ke=["x","y","fill","font-size"],Qe=["x","y","fill","font-size"],Ze=["filter"],et={key:0},tt=["x","y"],lt={key:1},at=["cx","cy","fill","filter","onClick"],ot=["text-anchor","x","y","fill","font-size","onClick"],rt=["text-anchor","x","y","fill","font-size","onClick"],ut={key:2},nt=["x","y","width"],st={key:3,class:"vue-data-ui-watermark"},ct=["onClick"],it={key:0,style:{"font-variant-numeric":"tabular-nums"}},vt={key:1},dt=["innerHTML"],ht={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:he,emit:X}){const p=B,{vue_ui_donut:fe}=o.useConfig(),S=e.computed({get(){return!!p.dataset&&p.dataset.length},set(a){return a}}),$=e.ref(null),A=e.ref(null),I=e.ref(null),V=e.ref(null),q=e.ref(0),R=e.ref(0),G=e.ref(0);e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});function Y(){if(o.objectIsEmpty(p.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):p.dataset.forEach((a,r)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{S.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const a=ie.throttle(()=>{const{width:r,height:l}=ie.useResponsive({chart:$.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?I.value:null});s.value.width=r,s.value.height=l});V.value=new ResizeObserver(a),V.value.observe($.value.parentNode)}}const y=e.ref(o.createUid()),ye=e.ref(null),T=e.ref(!1),F=e.ref(""),b=e.ref(null),U=e.ref(0);function j(){const a=de.useNestedProp({userConfig:p.config,defaultConfig:fe});return a.theme?{...de.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||p.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}const t=e.computed({get:()=>j(),set:a=>a});e.watch(()=>p.config,a=>{t.value=j(),Y(),q.value+=1,R.value+=1,G.value+=1},{deep:!0});const{isPrinting:H,isImaging:W,generatePdf:J,generateImage:K}=ve.usePrinter({elementId:`donut__${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Q=e.computed(()=>o.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}),s=e.ref({height:360,width:512}),L=e.computed(()=>{const a=t.value.style.chart.layout.donut.strokeWidth/512,r=s.value.width*a,l=r>f.value?f.value:r;return l<24?24:l}),k=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:a.values.reduce((l,u)=>l+u,0),absoluteValues:a.values,comment:a.comment||""}))),h=e.ref(k.value);e.watch(()=>k.value,a=>h.value=a);function pe(){return k.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const m=e.ref([]),Z=e.ref(null),ee=e.ref(null),w=e.ref(!1);function te(a){const r=k.value.find((n,i)=>i===a);let u=h.value.find((n,i)=>i===a).value;if(m.value.includes(a)){let i=function(){u>n?(cancelAnimationFrame(Z.value),h.value=h.value.map((c,M)=>a===M?{...c,value:n}:c),w.value=!1):(w.value=!0,u+=n*.025,h.value=h.value.map((c,M)=>a===M?{...c,value:u}:c),Z.value=requestAnimationFrame(i))};m.value=m.value.filter(c=>c!==a);const n=r.value;i()}else if(m.value.length<k.value.length-1){let n=function(){u<.1?(cancelAnimationFrame(ee.value),m.value.push(a),h.value=h.value.map((i,c)=>a===c?{...i,value:0}:i),w.value=!1):(w.value=!0,u/=1.1,h.value=h.value.map((i,c)=>a===c?{...i,value:u}:i),ee.value=requestAnimationFrame(n))};n()}X("selectLegend",x.value.map(n=>({name:n.name,color:n.color,value:n.value})))}const x=e.computed(()=>(h.value.forEach((a,r)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),h.value.map((a,r)=>({...a,seriesIndex:r})).filter((a,r)=>!m.value.includes(r)))),le=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:(a.values||[]).reduce((l,u)=>l+u,0),shape:"circle"})).map((a,r)=>({...a,proportion:a.value/p.dataset.map(l=>(l.values||[]).reduce((u,n)=>u+n,0)).reduce((l,u)=>l+u,0),opacity:m.value.includes(r)?.5:1,segregate:()=>te(r),isSegregated:m.value.includes(r)}))),me=e.computed(()=>({cy:"donut-div-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":""})),f=e.computed(()=>{const a=Math.min(s.value.width/3,s.value.height/3);return a<55?55:a}),C=e.computed(()=>o.makeDonut({series:x.value},s.value.width/2,s.value.height/2,f.value,f.value,1.99999,2,1,360,105.25,L.value));function _(a){return a.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ae(a,r){const l=a.value/be(r);return isNaN(l)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,o.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:a})}function be(a){return[...a].map(r=>r.value).reduce((r,l)=>r+l,0)}const d=e.computed(()=>x.value.map(a=>a.value).reduce((a,r)=>a+r,0)),oe=e.computed(()=>d.value/x.value.length),D=e.ref(null),N=e.ref(!1);function ge({datapoint:a,relativeIndex:r,seriesIndex:l,show:u=!1}){D.value={datapoint:a,seriesIndex:l,config:t.value,series:k.value},T.value=u,b.value=r;let n="";const i=t.value.style.chart.tooltip.customFormat;if(N.value=!1,o.isFunction(i))try{const c=i({seriesIndex:l,datapoint:a,series:k.value,config:t.value});typeof c=="string"&&(F.value=c,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){if(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,n+=`<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="${a.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(n+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,o.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.tooltip.roundingValue}),{datapoint:a,relativeIndex:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const c=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a.proportion*100,o.dataLabel({v:a.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:a,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?n+=`<span>(${c})</span></div>`:n+=`<b>${c}%</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(n+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${a.color}">${a.comment}</div>`),F.value=`<div>${n}</div>`}}function P(a){return t.value.useBlurOnHover&&![null,void 0].includes(b.value)&&b.value!==a?`url(#blur_${y.value})`:""}const g=e.computed(()=>{const a=x.value.map(l=>({name:l.name,color:l.color})),r=x.value.map(l=>l.value);return{head:a,body:r}});function re(){e.nextTick(()=>{const a=g.value.head.map((u,n)=>[[u.name],[g.value.body[n]],[isNaN(g.value.body[n]/d.value)?"-":g.value.body[n]/d.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),l=o.createCsvContent(r);o.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const z=e.computed(()=>{const a=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=g.value.head.map((n,i)=>{const c=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},c,isNaN(g.value.body[i]/d.value)?"-":(g.value.body[i]/d.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),l={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:a,body:r,config:l}}),E=e.ref(!1);function ke(a){E.value=a,U.value+=1}const ue=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function we(a){return a.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function O(a,r){X("selectDatapoint",{datapoint:a,index:r})}function ne(){v.value.showTable=!v.value.showTable}function se(){v.value.dataLabels.show=!v.value.dataLabels.show}function ce(){v.value.showTooltip=!v.value.showTooltip}return he({getData:pe,generatePdf:J,generateCsv:re,generateImage:K,toggleTable:ne,toggleLabels:se,toggleTooltip:ce}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:$,class:e.normalizeClass(`vue-ui-donut ${E.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${y.value}`},[e.renderSlot(a.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${q.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"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(ve.UserOptions,{ref_key:"details",ref:ye,key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(H),isImaging:e.unref(W),uid:y.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,chartElement:$.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:ke,onGeneratePdf:e.unref(J),onGenerateCsv:re,onGenerateImage:e.unref(K),onToggleTable:ne,onToggleLabels:se,onToggleTooltip:ce},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Oe),e.createElementVNode("stop",{offset:`${(1-L.value/f.value)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Te),e.createElementVNode("stop",{offset:`${(1-L.value/f.value/2)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,De)],8,ze)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${y.value}`},null,8,Me),Xe],8,Pe),e.createElementVNode("filter",{id:`shadow_${y.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,Ie)],8,Ae)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:s.value.width/2,y:s.value.height/2},16,16,!1,!1,L.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(u)},null,8,qe)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${y.value})`:""},null,8,Re),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Ge))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(o.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(u)},null,8,Ye))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,stroke:e.unref(o.adaptColorToBackground)(t.value.style.chart.background)},null,8,Ue)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:s.value.width/2,cy:s.value.height/2,r:f.value<=0?10:f.value,fill:`url(#gradient_${y.value})`},null,8,je)):e.createCommentVNode("",!0),d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:l.arcSlice,fill:b.value===u?"rgba(0,0,0,0.1)":"transparent",onMouseenter:n=>ge({datapoint:l,relativeIndex:u,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=n=>{T.value=!1,b.value=null}),onClick:n=>O(l,u)},null,40,He))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:4,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,We)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:5,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,d.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:d.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Je)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,Ke)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:7,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(w.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,oe.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:oe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Qe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",{filter:P(u),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-120:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-60:e.unref(o.calcMarkerOffsetX)(l).x,y:e.unref(o.calcMarkerOffsetY)(l)-(ue.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u,isSafari:ue.value,isVisible:_(l)&&v.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor,percentage:ae(l,C.value)})),void 0,!0)])],8,tt))])):(e.openBlock(),e.createElementBlock("g",lt,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(l).x,cy:e.unref(o.calcMarkerOffsetY)(l)-3.5,fill:l.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u?"":`url(#blur_${y.value})`,onClick:n=>O(l,u)},null,8,at)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:n=>O(l,u)},e.toDisplayString(ae(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.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.layout.labels.value.rounding}),{datapoint:l})})`:""),13,ot)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:n=>O(l,u)},e.toDisplayString(l.name),13,rt)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",ut,[_(l)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(l).x),y:e.unref(o.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Ze))),256)),e.renderSlot(a.$slots,"svg",{svg:s.value},void 0,!0)],14,Ve)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(H)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Be.Legend,{key:`legend_${G.value}`,legendSet:le.value,config:me.value,onClickMarker:r[1]||(r[1]=({i:l})=>te(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:n=>l.segregate(),style:e.normalizeStyle(`opacity:${m.value.includes(u)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.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.legend.roundingValue}),{datapoint:l,index:u}))+" ",1),m.value.includes(u)?(e.openBlock(),e.createElementBlock("span",vt," ( "+e.toDisplayString(we(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",it," ("+e.toDisplayString(isNaN(l.value/d.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,w.value?l.proportion*100:l.value/d.value*100,e.unref(o.dataLabel)({v:w.value?l.proportion*100:l.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ct)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:le.value},void 0,!0)],512),e.createVNode(_e._sfc_main,{show:v.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:F.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock($e.default,{key:5,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(xe.DataTable,{key:`table_${R.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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]=l=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,dt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(o.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):l:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ft=Le._export_sfc(ht,[["__scopeId","data-v-036ff913"]]);exports.default=ft;
|