vue-data-ui 2.3.80 → 2.3.82

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.
Files changed (141) hide show
  1. package/dist/{Arrow-BwOfAkTh.cjs → Arrow-BTO6BS7p.cjs} +1 -1
  2. package/dist/{Arrow-BI2HWbkl.js → Arrow-D-Ef1hLL.js} +1 -1
  3. package/dist/{BaseIcon-BhdIp3HQ.js → BaseIcon-CVe5ECp8.js} +1 -1
  4. package/dist/{BaseIcon-DU-oJKBy.cjs → BaseIcon-DS9Fpauh.cjs} +1 -1
  5. package/dist/{DataTable-ysqfWT9v.cjs → DataTable-BfvpbyB5.cjs} +1 -1
  6. package/dist/{DataTable-CThhaAYT.js → DataTable-OKHTStDc.js} +2 -2
  7. package/dist/{Legend-DtnPX_Dc.cjs → Legend-B3B4K_lr.cjs} +1 -1
  8. package/dist/{Legend-DxRA5XXC.js → Legend-Bt4nNAHo.js} +1 -1
  9. package/dist/{Shape-EntBaNbX.js → Shape-C0HIiqHY.js} +1 -1
  10. package/dist/{Shape-DJdHakOl.cjs → Shape-Dg4DHNlU.cjs} +1 -1
  11. package/dist/{Slicer-xJl1pkRn.cjs → Slicer-BPvgOo6Z.cjs} +1 -1
  12. package/dist/{Slicer-BLFTdmNs.js → Slicer-CB-YgfIM.js} +2 -2
  13. package/dist/{Title-DOzi72Pu.cjs → Title-B238VbIb.cjs} +1 -1
  14. package/dist/{Title-Bgh58KWs.js → Title-CXeDgAE7.js} +1 -1
  15. package/dist/{Tooltip-HqwVgkYT.js → Tooltip-_e0VoMC-.js} +1 -1
  16. package/dist/{Tooltip-DWx3KcqE.cjs → Tooltip-hihJcWT0.cjs} +1 -1
  17. package/dist/{index-C_xZ1jJj.js → index-B6m-GhsP.js} +1 -1
  18. package/dist/{index-BofUHMEw.cjs → index-CeMgFh6-.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-9QKvGow8.js → useNestedProp-BrcBWysp.js} +1 -1
  21. package/dist/{useNestedProp-DGK0LGfN.cjs → useNestedProp-CD3RA8XO.cjs} +1 -1
  22. package/dist/{usePrinter-BJ7GxAOO.js → usePrinter-BkKBQlCO.js} +1 -1
  23. package/dist/{usePrinter-_JYb_33H.cjs → usePrinter-_rbdfvVi.cjs} +1 -1
  24. package/dist/{vue-data-ui-BDRU4x1z.cjs → vue-data-ui-BgHHdUNr.cjs} +1 -1
  25. package/dist/{vue-data-ui-MIo8xmC1.js → vue-data-ui-wvh5ZEeD.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Dul4M5zs.js → vue-ui-3d-bar-DNHZheVL.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-Clct1WMZ.cjs → vue-ui-3d-bar-ia_wUTc1.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-issoIPFd.js → vue-ui-accordion-BygOGjRr.js} +3 -3
  31. package/dist/{vue-ui-accordion-XtygMpX7.cjs → vue-ui-accordion-CH_rY04P.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-DnfnIupT.js → vue-ui-age-pyramid-BZrN9gk2.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-EsCLRd6s.cjs → vue-ui-age-pyramid-DftioDeW.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-zFbcfeEs.cjs → vue-ui-annotator-BGYJrkr0.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-CmrenuBi.js → vue-ui-annotator-DRpBiqTN.js} +1 -1
  36. package/dist/{vue-ui-candlestick-DlwYwMdG.js → vue-ui-candlestick-BP5nrvrA.js} +9 -9
  37. package/dist/{vue-ui-candlestick-Bdo2RhhM.cjs → vue-ui-candlestick-CVgaOkTY.cjs} +1 -1
  38. package/dist/{vue-ui-carousel-table-IN0an_Jc.cjs → vue-ui-carousel-table-Cd93n0fJ.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-mo9C1GJ9.js → vue-ui-carousel-table-Dtkm1_OH.js} +4 -4
  40. package/dist/{vue-ui-chestnut-C9jiVBGB.cjs → vue-ui-chestnut-B6_rC31R.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-DUeStDzz.js → vue-ui-chestnut-CKviQSxK.js} +6 -6
  42. package/dist/{vue-ui-cursor-BoetT349.cjs → vue-ui-cursor-C4FRP_Nc.cjs} +1 -1
  43. package/dist/{vue-ui-cursor-x_Ai6P6S.js → vue-ui-cursor-_egqr6DD.js} +2 -2
  44. package/dist/{vue-ui-dashboard-B8IRsFc3.js → vue-ui-dashboard-DUgt8PIq.js} +2 -2
  45. package/dist/{vue-ui-dashboard-DUH23G5u.cjs → vue-ui-dashboard-iPdvuNQ9.cjs} +1 -1
  46. package/dist/{vue-ui-digits-BO5Bxyib.js → vue-ui-digits-CcrjtXtk.js} +2 -2
  47. package/dist/{vue-ui-digits-ByNeTvE4.cjs → vue-ui-digits-OWEvFsfq.cjs} +1 -1
  48. package/dist/{vue-ui-donut-CDizH2x3.cjs → vue-ui-donut-D2SQezST.cjs} +1 -1
  49. package/dist/{vue-ui-donut-DC6mZWdM.js → vue-ui-donut-Dmr11NmB.js} +9 -9
  50. package/dist/{vue-ui-donut-evolution-B2U3g0Yw.js → vue-ui-donut-evolution-D1LXnQfC.js} +48 -48
  51. package/dist/{vue-ui-donut-evolution-B7G4UB_e.cjs → vue-ui-donut-evolution-PtyzK7G6.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-DD7RtYjl.cjs → vue-ui-dumbbell-Bbv_WYY2.cjs} +1 -1
  53. package/dist/{vue-ui-dumbbell-81Azsrmw.js → vue-ui-dumbbell-CNX0gxiM.js} +8 -8
  54. package/dist/{vue-ui-flow-BbJmSWr4.cjs → vue-ui-flow-DRjha-Xx.cjs} +1 -1
  55. package/dist/{vue-ui-flow-CTobijfD.js → vue-ui-flow-FsawfZQj.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BxkH3rZs.cjs → vue-ui-galaxy-BCMTqPX1.cjs} +1 -1
  57. package/dist/{vue-ui-galaxy-B9U-hTWd.js → vue-ui-galaxy-Eev5Q8w4.js} +9 -9
  58. package/dist/{vue-ui-gauge-DezT9Iw3.cjs → vue-ui-gauge-CPMlQvxU.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-BvS6Ep8K.js → vue-ui-gauge-DBxTCkge.js} +5 -5
  60. package/dist/{vue-ui-gizmo-CCSV95Cw.js → vue-ui-gizmo-BAiNxz8X.js} +2 -2
  61. package/dist/{vue-ui-gizmo-CdGlyolL.cjs → vue-ui-gizmo-CxnoYWwd.cjs} +1 -1
  62. package/dist/{vue-ui-heatmap-DQntMs3y.js → vue-ui-heatmap-BpHByyVR.js} +8 -8
  63. package/dist/{vue-ui-heatmap-Decb4BRV.cjs → vue-ui-heatmap-DvsH2Au0.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-yDsCX1qh.js → vue-ui-kpi-CyvW8X1f.js} +3 -3
  65. package/dist/{vue-ui-kpi-MZSJlc3i.cjs → vue-ui-kpi-DFquN6Ls.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-DluKyWjA.js → vue-ui-mini-loader--6qogu7d.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-Dz3LxxFJ.cjs → vue-ui-mini-loader-DIa_OVyM.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-rmhSL2tT.cjs → vue-ui-molecule-CbLmk-Fv.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-BG1BbGts.js → vue-ui-molecule-YJ0bXwbB.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-EO6jRkGF.js → vue-ui-mood-radar-B8QHrApG.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-owAd1Twe.cjs → vue-ui-mood-radar-BV5RnpiH.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-HDfFuFhB.js → vue-ui-nested-donuts-CLhrY6y1.js} +9 -9
  73. package/dist/{vue-ui-nested-donuts-u-4RFRIE.cjs → vue-ui-nested-donuts-DKAkxEPd.cjs} +1 -1
  74. package/dist/{vue-ui-onion-DqMY1iPE.js → vue-ui-onion-BXdEzlmA.js} +9 -9
  75. package/dist/{vue-ui-onion-BUOOD3WG.cjs → vue-ui-onion-CkknGnDm.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-CUU74I_R.js → vue-ui-parallel-coordinate-plot-4XBOTcO8.js} +10 -10
  77. package/dist/{vue-ui-parallel-coordinate-plot-2JGpf8SJ.cjs → vue-ui-parallel-coordinate-plot-CE31yJK_.cjs} +1 -1
  78. package/dist/{vue-ui-quadrant-BrbrrHLN.js → vue-ui-quadrant-CgMsyw3Q.js} +10 -10
  79. package/dist/{vue-ui-quadrant-BXUtKBlK.cjs → vue-ui-quadrant-D9_7g38o.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-BeJMzQZr.js → vue-ui-quick-chart-Cgbq5tLg.js} +334 -334
  81. package/dist/vue-ui-quick-chart-sMi9mLRt.cjs +15 -0
  82. package/dist/{vue-ui-radar-BMbWx0XC.js → vue-ui-radar-BvN2WTtC.js} +10 -10
  83. package/dist/{vue-ui-radar-yFYbYYI9.cjs → vue-ui-radar-CkcPJX_6.cjs} +1 -1
  84. package/dist/{vue-ui-rating-Ckh6xyv1.cjs → vue-ui-rating-Cl-ncmAS.cjs} +1 -1
  85. package/dist/{vue-ui-rating-D19QGpzZ.js → vue-ui-rating-DfKMxLTK.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-YH6EpWSC.cjs → vue-ui-relation-circle-CJP9zuqV.cjs} +1 -1
  87. package/dist/{vue-ui-relation-circle-DqdXa6V6.js → vue-ui-relation-circle-DV5lMEvZ.js} +5 -5
  88. package/dist/{vue-ui-rings-CDqf78PA.js → vue-ui-rings-Bu-zVpHc.js} +9 -9
  89. package/dist/{vue-ui-rings-Dbi3uWQh.cjs → vue-ui-rings-C8u__5v-.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-Ch3iYYoX.cjs → vue-ui-scatter-D3FTfnsR.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-D3IFY9II.js → vue-ui-scatter-WeSsnz6H.js} +10 -10
  92. package/dist/{vue-ui-screenshot-Xtz1BC-w.js → vue-ui-screenshot-B9Mbp_0-.js} +1 -1
  93. package/dist/{vue-ui-screenshot-DBmmftjw.cjs → vue-ui-screenshot-BFL-8cPa.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-C3UWXP3Q.js → vue-ui-skeleton-BOhyMEA5.js} +2 -2
  95. package/dist/{vue-ui-skeleton-Bx_kbjKr.cjs → vue-ui-skeleton-dfikkXQa.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-BCorPn2E.cjs → vue-ui-smiley-BVd6D7fu.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-FhcqViE3.js → vue-ui-smiley-CwYjTYN8.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-RJUm-CJC.js → vue-ui-spark-trend-D6IwslA-.js} +4 -4
  99. package/dist/{vue-ui-spark-trend-C1BmsVRe.cjs → vue-ui-spark-trend-DuIEXk8W.cjs} +1 -1
  100. package/dist/{vue-ui-sparkbar-C6sZ4mYK.js → vue-ui-sparkbar-1v_BypP0.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-CtQSQySy.cjs → vue-ui-sparkbar-woU3TqMe.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-CoyqAUDp.cjs → vue-ui-sparkgauge-B4wnbfIi.cjs} +1 -1
  103. package/dist/{vue-ui-sparkgauge-C1pOZo8V.js → vue-ui-sparkgauge-Cwu4aQUR.js} +3 -3
  104. package/dist/{vue-ui-sparkhistogram-Mh93EuLF.js → vue-ui-sparkhistogram-BTdWXIO8.js} +4 -4
  105. package/dist/{vue-ui-sparkhistogram-DvBJHfyk.cjs → vue-ui-sparkhistogram-wRqt6OJx.cjs} +1 -1
  106. package/dist/{vue-ui-sparkline-DiAIsoI3.js → vue-ui-sparkline-B2v0wJH3.js} +3 -3
  107. package/dist/{vue-ui-sparkline-CXIAmE5m.cjs → vue-ui-sparkline-DE3oMNsY.cjs} +1 -1
  108. package/dist/{vue-ui-sparkstackbar-Bb8ZtMfn.js → vue-ui-sparkstackbar-B4lRHLJK.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-BePzQn-H.cjs → vue-ui-sparkstackbar-DIk48oMu.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-B7KyGHZZ.js → vue-ui-stackbar-DSc8j8LH.js} +10 -10
  111. package/dist/{vue-ui-stackbar-BiNZ2pBZ.cjs → vue-ui-stackbar-DVdBUu5U.cjs} +1 -1
  112. package/dist/{vue-ui-strip-plot-8d_juyi7.js → vue-ui-strip-plot-6hhRMLCq.js} +9 -9
  113. package/dist/{vue-ui-strip-plot-CY5rDwjh.cjs → vue-ui-strip-plot-Cjays3PT.cjs} +1 -1
  114. package/dist/{vue-ui-table-CoGh4xvF.cjs → vue-ui-table-D-_a1UzS.cjs} +1 -1
  115. package/dist/{vue-ui-table-CSm91gHM.js → vue-ui-table-DQkiNDaZ.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CwDproVr.cjs → vue-ui-table-heatmap-BRvVWrf1.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-B30TipjK.js → vue-ui-table-heatmap-_KVKSH7q.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-BcFIKA8V.js → vue-ui-table-sparkline-C_0i15kC.js} +5 -5
  119. package/dist/{vue-ui-table-sparkline-B8lCOsfc.cjs → vue-ui-table-sparkline-kyYy6tk8.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-D6rDq4hj.cjs → vue-ui-thermometer-BjU-T5A0.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-CPqFKYwL.js → vue-ui-thermometer-y3Hm1mwz.js} +5 -5
  122. package/dist/{vue-ui-timer-DdQB8bF5.js → vue-ui-timer-7ouUkgHq.js} +4 -4
  123. package/dist/{vue-ui-timer-C70sw9Rc.cjs → vue-ui-timer-CVHz7dT6.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-DDCOUKU9.js → vue-ui-tiremarks-8-riUzAT.js} +5 -5
  125. package/dist/{vue-ui-tiremarks-o-KdCzZV.cjs → vue-ui-tiremarks-Dr9qSWVo.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-BOCZ8x4F.js → vue-ui-treemap-ChYWvnSf.js} +9 -9
  127. package/dist/{vue-ui-treemap-C3XRZk0P.cjs → vue-ui-treemap-CmoQK2_G.cjs} +1 -1
  128. package/dist/{vue-ui-vertical-bar-C2ZIoY0I.cjs → vue-ui-vertical-bar-Doj3k8dI.cjs} +1 -1
  129. package/dist/{vue-ui-vertical-bar-CAlQekf-.js → vue-ui-vertical-bar-Ecx25LWQ.js} +9 -9
  130. package/dist/{vue-ui-waffle-D1eYO-NM.cjs → vue-ui-waffle-BgoDu9wa.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-CasLSUzY.js → vue-ui-waffle-BlqBRA5E.js} +9 -9
  132. package/dist/{vue-ui-wheel-C4ODblPX.cjs → vue-ui-wheel-BlVmj1yz.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-CHn24pYD.js → vue-ui-wheel-DNndo4fU.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-uGJLXPYv.js → vue-ui-word-cloud-C9XDZjPt.js} +7 -7
  135. package/dist/{vue-ui-word-cloud-XCS_A5_a.cjs → vue-ui-word-cloud-Cvyev8yY.cjs} +1 -1
  136. package/dist/{vue-ui-xy-KnfMOUv4.js → vue-ui-xy-DkNi0ZJ4.js} +12 -12
  137. package/dist/{vue-ui-xy-canvas-DVjSzeFt.js → vue-ui-xy-canvas-DIFlyxki.js} +10 -10
  138. package/dist/{vue-ui-xy-canvas-Yy7FaFLS.cjs → vue-ui-xy-canvas-a3pNJKYd.cjs} +1 -1
  139. package/dist/{vue-ui-xy-CH9wvh8w.cjs → vue-ui-xy-x5TSd-hr.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-quick-chart-CNn9Wt0K.cjs +0 -15
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BofUHMEw.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-DOzi72Pu.cjs"),ve=require("./usePrinter-_JYb_33H.cjs"),xe=require("./DataTable-ysqfWT9v.cjs"),_e=require("./Tooltip-DWx3KcqE.cjs"),Be=require("./Legend-DtnPX_Dc.cjs"),Se=require("./vue-ui-skeleton-Bx_kbjKr.cjs"),$e=require("./vue-ui-accordion-XtygMpX7.cjs"),de=require("./useNestedProp-DGK0LGfN.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CeMgFh6-.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-B238VbIb.cjs"),ve=require("./usePrinter-_rbdfvVi.cjs"),xe=require("./DataTable-BfvpbyB5.cjs"),_e=require("./Tooltip-hihJcWT0.cjs"),Be=require("./Legend-B3B4K_lr.cjs"),Se=require("./vue-ui-skeleton-dfikkXQa.cjs"),$e=require("./vue-ui-accordion-CH_rY04P.cjs"),de=require("./useNestedProp-CD3RA8XO.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;
@@ -1,14 +1,14 @@
1
1
  import { computed as b, ref as v, onMounted as Ye, onBeforeUnmount as He, watch as Ne, openBlock as s, createElementBlock as n, normalizeClass as ue, normalizeStyle as F, renderSlot as g, createBlock as V, createCommentVNode as d, unref as o, createSlots as We, withCtx as w, normalizeProps as H, guardReactiveProps as W, createElementVNode as y, Fragment as M, renderList as X, toDisplayString as C, createTextVNode as Pe, createVNode as Xe, nextTick as qe, pushScopeId as Je, popScopeId as Ke } from "vue";
2
- import { u as Qe, o as Ze, e as Oe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as x, X as ol, s as q, j as ul, F as sl, i as T, k as f, n as J, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-C_xZ1jJj.js";
2
+ import { u as Qe, o as Ze, e as Oe, g as el, c as ll, b as tl, d as Ae, p as D, m as al, f as x, X as ol, s as q, j as ul, F as sl, i as T, k as f, n as J, t as rl, a as nl, x as il, q as vl, r as cl } from "./index-B6m-GhsP.js";
3
3
  import { t as dl, u as hl } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as fl } from "./Title-Bgh58KWs.js";
5
- import { u as yl, U as pl } from "./usePrinter-BJ7GxAOO.js";
6
- import { D as bl } from "./DataTable-CThhaAYT.js";
7
- import { _ as gl } from "./Tooltip-HqwVgkYT.js";
8
- import { L as ml } from "./Legend-DxRA5XXC.js";
9
- import wl from "./vue-ui-skeleton-C3UWXP3Q.js";
10
- import kl from "./vue-ui-accordion-issoIPFd.js";
11
- import { u as De } from "./useNestedProp-9QKvGow8.js";
4
+ import { _ as fl } from "./Title-CXeDgAE7.js";
5
+ import { u as yl, U as pl } from "./usePrinter-BkKBQlCO.js";
6
+ import { D as bl } from "./DataTable-OKHTStDc.js";
7
+ import { _ as gl } from "./Tooltip-_e0VoMC-.js";
8
+ import { L as ml } from "./Legend-Bt4nNAHo.js";
9
+ import wl from "./vue-ui-skeleton-BOhyMEA5.js";
10
+ import kl from "./vue-ui-accordion-BygOGjRr.js";
11
+ import { u as De } from "./useNestedProp-BrcBWysp.js";
12
12
  import { _ as _l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  const Cl = (G) => (Je("data-v-036ff913"), G = G(), Ke(), G), xl = ["id"], $l = ["xmlns", "viewBox"], Sl = ["id"], Ll = ["stop-color"], Fl = ["offset", "stop-color"], Tl = ["offset", "stop-color"], zl = ["stop-color"], Nl = ["id"], Pl = ["id"], Ol = /* @__PURE__ */ Cl(() => /* @__PURE__ */ y("feColorMatrix", {
14
14
  type: "saturate",
@@ -1,13 +1,13 @@
1
1
  import { computed as x, ref as m, onMounted as Ke, watch as Fe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as B, createBlock as E, createCommentVNode as d, unref as c, createSlots as qe, withCtx as P, renderSlot as T, normalizeProps as ue, guardReactiveProps as oe, createElementVNode as v, Fragment as p, renderList as k, toDisplayString as b, withKeys as Je, createTextVNode as Pe, nextTick as Qe } from "vue";
2
- import { u as Ze, o as et, e as Y, g as tt, c as De, t as lt, a as at, p as K, b as ut, G as ot, d as se, C as Te, m as re, X as st, s as U, D as rt, i as ne, f as q, j as Ie, k as J, n as Ee, H as Oe, q as nt, r as it } from "./index-C_xZ1jJj.js";
3
- import { _ as ct } from "./Title-Bgh58KWs.js";
4
- import { u as vt, U as dt } from "./usePrinter-BJ7GxAOO.js";
5
- import { D as ht } from "./DataTable-CThhaAYT.js";
6
- import { L as yt } from "./Legend-DxRA5XXC.js";
7
- import ft from "./vue-ui-skeleton-C3UWXP3Q.js";
8
- import { S as gt } from "./Slicer-BLFTdmNs.js";
9
- import bt from "./vue-ui-accordion-issoIPFd.js";
10
- import { u as He } from "./useNestedProp-9QKvGow8.js";
2
+ import { u as Ze, o as et, e as Y, g as tt, c as De, t as lt, a as at, p as K, b as ut, G as ot, d as se, C as Te, m as re, X as st, s as U, D as rt, i as ne, f as q, j as Ie, k as J, n as Ee, H as Oe, q as nt, r as it } from "./index-B6m-GhsP.js";
3
+ import { _ as ct } from "./Title-CXeDgAE7.js";
4
+ import { u as vt, U as dt } from "./usePrinter-BkKBQlCO.js";
5
+ import { D as ht } from "./DataTable-OKHTStDc.js";
6
+ import { L as yt } from "./Legend-Bt4nNAHo.js";
7
+ import gt from "./vue-ui-skeleton-BOhyMEA5.js";
8
+ import { S as ft } from "./Slicer-CB-YgfIM.js";
9
+ import bt from "./vue-ui-accordion-BygOGjRr.js";
10
+ import { u as He } from "./useNestedProp-BrcBWysp.js";
11
11
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"], Ct = ["stop-color"], wt = ["id"], Lt = ["stop-color"], $t = ["stop-color"], St = ["stop-color"], At = { key: 0 }, Nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = { key: 0 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "fill", "font-weight"], It = ["text-anchor", "font-size", "fill", "transform"], Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = { key: 1 }, Ht = ["cx", "cy", "r", "fill"], Mt = { key: 0 }, Vt = { key: 0 }, Wt = ["d", "stroke"], Rt = ["text-anchor", "x", "y", "fill"], Ut = ["cx", "cy", "r", "fill"], Xt = { key: 0 }, Gt = ["cx", "cy", "fill"], jt = { key: 1 }, Bt = ["d", "fill", "stroke"], Yt = { key: 2 }, Kt = ["d", "fill", "stroke"], qt = ["x", "y", "font-size", "fill"], Jt = ["x", "y", "width", "fill", "onClick"], Qt = ["x", "y", "width", "height", "onMouseenter", "onClick"], Zt = {
13
13
  key: 3,
@@ -16,7 +16,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
16
16
  }, el = ["x", "y", "width", "height", "fill"], tl = ["x1", "y1", "x2", "y2", "stroke"], ll = ["x1", "y2", "x2", "y1", "stroke"], al = ["onKeypress", "cx", "cy", "r"], ul = ["d", "stroke"], ol = ["cx", "cy", "r", "fill"], sl = ["d", "fill", "stroke"], rl = { class: "vue-ui-donut-evolution-focus" }, nl = ["text-anchor", "x", "y", "fill"], il = ["cx", "cy", "r", "fill"], cl = ["cx", "cy", "r", "fill"], vl = ["x", "y", "fill"], dl = ["x", "y", "font-size", "fill"], hl = {
17
17
  key: 3,
18
18
  class: "vue-data-ui-watermark"
19
- }, yl = ["onClick"], fl = { key: 0 }, gl = { key: 1 }, bl = { key: 0 }, xl = { key: 1 }, ml = {
19
+ }, yl = ["onClick"], gl = { key: 0 }, fl = { key: 1 }, bl = { key: 0 }, xl = { key: 1 }, ml = {
20
20
  __name: "vue-ui-donut-evolution",
21
21
  props: {
22
22
  config: {
@@ -65,7 +65,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
65
65
  });
66
66
  });
67
67
  }
68
- const I = m(De()), _ = m([]), g = m(null), Q = m(null), S = m(!1), A = m(null), de = m(null), he = m(0), ye = m(0), fe = m(0), ge = m(0), be = m(0), e = x({
68
+ const I = m(De()), _ = m([]), f = m(null), Q = m(null), S = m(!1), A = m(null), de = m(null), he = m(0), ye = m(0), ge = m(0), fe = m(0), be = m(0), e = x({
69
69
  get: () => xe(),
70
70
  set: (l) => l
71
71
  });
@@ -83,7 +83,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
83
83
  } : l;
84
84
  }
85
85
  Fe(() => $.config, (l) => {
86
- e.value = xe(), ve(), fe.value += 1, ge.value += 1, be.value += 1;
86
+ e.value = xe(), ve(), ge.value += 1, fe.value += 1, be.value += 1;
87
87
  }, { deep: !0 }), Fe(() => $.dataset, (l) => {
88
88
  ce();
89
89
  }, { deep: !0 });
@@ -131,18 +131,18 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
131
131
  }))), W = x(() => Math.max(...V.value.map((l) => l.length))), w = x(() => r.value.width / (h.value.end - h.value.start)), C = x(() => {
132
132
  const l = [];
133
133
  for (let o = 0; o < h.value.end - h.value.start; o += 1) {
134
- const f = V.value.map((z) => z.values[o] ?? null), y = f.filter((z) => [void 0, null].includes(z)).length === f.length, N = f.reduce((z, L) => z + L, 0), ae = f.map((z) => z / N), M = s.value.left + w.value * o + w.value / 2;
134
+ const g = V.value.map((z) => z.values[o] ?? null), y = g.filter((z) => [void 0, null].includes(z)).length === g.length, N = g.reduce((z, L) => z + L, 0), ae = g.map((z) => z / N), M = s.value.left + w.value * o + w.value / 2;
135
135
  l.push({
136
136
  index: o,
137
137
  percentages: ae,
138
138
  subtotal: y || N < 0 ? null : N,
139
- values: f,
139
+ values: g,
140
140
  x: M
141
141
  });
142
142
  }
143
143
  const i = 0, t = Math.max(...l.map((o) => o.subtotal)), n = l.length === 1 ? t * 2 : t;
144
- return l.map((o, f) => {
145
- const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, ae = g.value === o.index ? r.value.width / 16 : N, M = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Te(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
144
+ return l.map((o, g) => {
145
+ const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, ae = f.value === o.index ? r.value.width / 16 : N, M = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Te(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
146
146
  return {
147
147
  ...o,
148
148
  y: z,
@@ -153,21 +153,21 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
153
153
  series: V.value.map((L, ze) => ({
154
154
  color: L.color,
155
155
  name: L.name,
156
- value: L.values[f] ?? 0
156
+ value: L.values[g] ?? 0
157
157
  }))
158
158
  }, o.x, z, N, N, 1.99999, 2, 1, 360, 105.25, N / 2),
159
159
  donutHover: re({
160
160
  series: V.value.map((L, ze) => ({
161
161
  color: L.color,
162
162
  name: L.name,
163
- value: L.values[f] ?? 0
163
+ value: L.values[g] ?? 0
164
164
  }))
165
165
  }, o.x, z, M, M, 1.99999, 2, 1, 360, 105.25, M / 2),
166
166
  donutFocus: re({
167
167
  series: V.value.map((L, ze) => ({
168
168
  color: L.color,
169
169
  name: L.name,
170
- value: L.values[f] ?? 0
170
+ value: L.values[g] ?? 0
171
171
  }))
172
172
  }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
173
173
  };
@@ -204,14 +204,14 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
204
204
  return isNaN(l.value / Oe(i, "value")) ? 0 : (l.value / Oe(i, "value") * 100).toFixed(0) + "%";
205
205
  }
206
206
  function we() {
207
- S.value || (g.value = null, Q.value = null);
207
+ S.value || (f.value = null, Q.value = null);
208
208
  }
209
209
  function Ge(l) {
210
- S.value || (g.value = l.index, Q.value = l);
210
+ S.value || (f.value = l.index, Q.value = l);
211
211
  }
212
212
  const ee = m(null);
213
213
  function te(l, i) {
214
- l.subtotal && (Q.value = null, g.value = null, S.value = !0, A.value = l, [null, void 0].includes(i) || (ee.value = i));
214
+ l.subtotal && (Q.value = null, f.value = null, S.value = !0, A.value = l, [null, void 0].includes(i) || (ee.value = i));
215
215
  }
216
216
  function Le() {
217
217
  A.value = null, S.value = !1, ee.value = null;
@@ -251,11 +251,11 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
251
251
  }))).concat(["Σ"]);
252
252
  let i = [];
253
253
  for (let o = 0; o < W.value; o += 1) {
254
- const f = D.value.filter((y) => !_.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, N) => y + N, 0);
254
+ const g = D.value.filter((y) => !_.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, N) => y + N, 0);
255
255
  i.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[o] ?? "-"].concat(D.value.filter((y) => !_.value.includes(y.uid)).map((y) => ({
256
256
  value: y.values[o] ?? 0,
257
- percentage: y.values[o] ? y.values[o] / f * 100 : 0
258
- }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
257
+ percentage: y.values[o] ? y.values[o] / g * 100 : 0
258
+ }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
259
259
  }
260
260
  const t = {
261
261
  th: {
@@ -279,7 +279,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
279
279
  }
280
280
  function Ae() {
281
281
  Qe(() => {
282
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...H.value.head.map((f) => f.name ?? f)], t = [...H.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = nt(n);
282
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...H.value.head.map((g) => g.name ?? g)], t = [...H.value.body.map((g) => g.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = nt(n);
283
283
  it({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
284
284
  });
285
285
  }
@@ -309,7 +309,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
309
309
  onMouseleave: we
310
310
  }, [
311
311
  (a(), E(ct, {
312
- key: `title_${fe.value}`,
312
+ key: `title_${ge.value}`,
313
313
  config: {
314
314
  title: {
315
315
  cy: "donut-evolution-div-title",
@@ -454,7 +454,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
454
454
  ])) : d("", !0),
455
455
  e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), u("g", {
456
456
  key: 1,
457
- class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || S.value })
457
+ class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || S.value })
458
458
  }, [
459
459
  (a(!0), u(p, null, k(Xe.value, (t, n) => (a(), u("g", null, [
460
460
  t.value >= O.value.min && t.value <= O.value.max ? (a(), u("line", {
@@ -504,7 +504,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
504
504
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", null, [
505
505
  e.value.style.chart.layout.line.show && n < C.value.length - 1 && ![t.subtotal, C.value[n + 1].subtotal].includes(null) ? (a(), u("line", {
506
506
  key: 0,
507
- class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || S.value }),
507
+ class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || S.value }),
508
508
  x1: t.x,
509
509
  y1: t.y,
510
510
  x2: C.value[n + 1].x,
@@ -525,13 +525,13 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
525
525
  ])) : d("", !0)
526
526
  ]))), 256)),
527
527
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
528
- class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
528
+ class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
529
529
  }, [
530
530
  t.subtotal ? (a(), u("g", Mt, [
531
- g.value !== null && g.value === n ? (a(), u("g", Vt, [
531
+ f.value !== null && f.value === n ? (a(), u("g", Vt, [
532
532
  (a(!0), u(p, null, k(t.donutHover, (o) => (a(), u("g", null, [
533
533
  v("path", {
534
- d: c(Ie)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0),
534
+ d: c(Ie)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0, 20),
535
535
  stroke: o.color,
536
536
  "stroke-width": "1",
537
537
  "stroke-linecap": "round",
@@ -539,7 +539,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
539
539
  fill: "none"
540
540
  }, null, 8, Wt)
541
541
  ]))), 256)),
542
- (a(!0), u(p, null, k(t.donutHover, (o, f) => (a(), u("g", null, [
542
+ (a(!0), u(p, null, k(t.donutHover, (o, g) => (a(), u("g", null, [
543
543
  v("text", {
544
544
  "data-cy-hover-label": "",
545
545
  "text-anchor": c(J)(o, !0, 0).anchor,
@@ -548,7 +548,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
548
548
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
549
549
  "font-size": 8,
550
550
  "font-weight": "bold"
551
- }, b(o.name) + ": " + b(Ce(o, t.donut)) + " (" + b(o.value === null ? "-" : j(o.value, o, f)) + ") ", 9, Rt)
551
+ }, b(o.name) + ": " + b(Ce(o, t.donut)) + " (" + b(o.value === null ? "-" : j(o.value, o, g)) + ") ", 9, Rt)
552
552
  ]))), 256)),
553
553
  v("g", null, [
554
554
  v("circle", {
@@ -562,7 +562,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
562
562
  ])) : d("", !0)
563
563
  ], 2))), 256)),
564
564
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
565
- class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
565
+ class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
566
566
  }, [
567
567
  t.subtotal !== null ? (a(), u("g", Xt, [
568
568
  t.subtotal === 0 ? (a(), u("circle", {
@@ -571,15 +571,15 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
571
571
  cy: t.y,
572
572
  r: 3,
573
573
  fill: e.value.style.chart.color
574
- }, null, 8, Gt)) : g.value !== null && g.value === n ? (a(), u("g", jt, [
575
- (a(!0), u(p, null, k(t.donutHover, (o, f) => (a(), u("path", {
574
+ }, null, 8, Gt)) : f.value !== null && f.value === n ? (a(), u("g", jt, [
575
+ (a(!0), u(p, null, k(t.donutHover, (o, g) => (a(), u("path", {
576
576
  d: o.arcSlice,
577
577
  fill: `${o.color}`,
578
578
  "stroke-width": 1,
579
579
  stroke: e.value.style.chart.backgroundColor
580
580
  }, null, 8, Bt))), 256))
581
581
  ])) : (a(), u("g", Yt, [
582
- (a(!0), u(p, null, k(t.donut, (o, f) => (a(), u("path", {
582
+ (a(!0), u(p, null, k(t.donut, (o, g) => (a(), u("path", {
583
583
  d: o.arcSlice,
584
584
  fill: `${o.color}`,
585
585
  "stroke-width": 0.5,
@@ -589,13 +589,13 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
589
589
  ])) : d("", !0)
590
590
  ], 2))), 256)),
591
591
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
592
- class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
592
+ class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
593
593
  }, [
594
594
  t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), u("text", {
595
595
  key: 0,
596
596
  "text-anchor": "middle",
597
597
  x: t.x,
598
- y: g.value === t.index && t.subtotal ? t.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : t.y - t.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
598
+ y: f.value === t.index && t.subtotal ? t.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : t.y - t.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
599
599
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
600
600
  "font-weight": "bold",
601
601
  fill: e.value.style.chart.layout.dataLabels.color
@@ -606,9 +606,9 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
606
606
  y: r.value.absoluteHeight - s.value.bottom - 10,
607
607
  width: w.value,
608
608
  height: 10,
609
- fill: g.value === t.index ? `url(#hover_${I.value})` : "transparent",
609
+ fill: f.value === t.index ? `url(#hover_${I.value})` : "transparent",
610
610
  onClick: (o) => te(t, n),
611
- class: F({ "donut-hover": g.value === t.index && t.subtotal })
611
+ class: F({ "donut-hover": f.value === t.index && t.subtotal })
612
612
  }, null, 10, Jt))), 256)),
613
613
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("rect", {
614
614
  "data-cy-trap": "",
@@ -620,7 +620,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
620
620
  onMouseenter: (o) => Ge(t),
621
621
  onMouseleave: we,
622
622
  onClick: (o) => te(t, n),
623
- class: F({ "donut-hover": g.value === t.index && t.subtotal })
623
+ class: F({ "donut-hover": f.value === t.index && t.subtotal })
624
624
  }, null, 42, Qt))), 256)),
625
625
  S.value ? (a(), u("g", Zt, [
626
626
  v("rect", {
@@ -732,7 +732,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
732
732
  l.$slots.watermark ? (a(), u("div", hl, [
733
733
  T(l.$slots, "watermark", ue(oe({ isPrinting: c(me) || c(pe) })), void 0, !0)
734
734
  ])) : d("", !0),
735
- X.value ? d("", !0) : (a(), E(ft, {
735
+ X.value ? d("", !0) : (a(), E(gt, {
736
736
  key: 4,
737
737
  config: {
738
738
  type: "donutEvolution",
@@ -749,7 +749,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
749
749
  }
750
750
  }
751
751
  }, null, 8, ["config"])),
752
- W.value > 1 && e.value.style.chart.zoom.show ? (a(), E(gt, {
752
+ W.value > 1 && e.value.style.chart.zoom.show ? (a(), E(ft, {
753
753
  key: `slicer_${ye.value}`,
754
754
  background: e.value.style.chart.zoom.color,
755
755
  borderColor: e.value.style.chart.backgroundColor,
@@ -798,7 +798,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
798
798
  }),
799
799
  { datapoint: t, seriesIndex: n }
800
800
  )) + " ", 1),
801
- _.value.includes(t.uid) ? (a(), u("span", gl, " ( - % ) ")) : (a(), u("span", fl, " (" + b(isNaN(t.value / Se.value) ? "-" : c(q)({
801
+ _.value.includes(t.uid) ? (a(), u("span", fl, " ( - % ) ")) : (a(), u("span", gl, " (" + b(isNaN(t.value / Se.value) ? "-" : c(q)({
802
802
  v: t.value / Se.value * 100,
803
803
  s: "%",
804
804
  r: e.value.style.chart.legend.roundingPercentage
@@ -826,7 +826,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
826
826
  }, {
827
827
  content: P(() => [
828
828
  (a(), E(ht, {
829
- key: `table_${ge.value}`,
829
+ key: `table_${fe.value}`,
830
830
  colNames: H.value.colNames,
831
831
  head: H.value.head,
832
832
  body: H.value.body,
@@ -848,7 +848,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
848
848
  }, 8, ["config"])) : d("", !0)
849
849
  ], 14, mt));
850
850
  }
851
- }, Fl = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-df485855"]]);
851
+ }, Fl = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-dae11ca7"]]);
852
852
  export {
853
853
  Fl as default
854
854
  };