vue-data-ui 2.10.2-beta.2 → 2.10.3-beta.0

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 (168) hide show
  1. package/dist/{Arrow-B2-rOYz8.js → Arrow-Bumy-rfd.js} +1 -1
  2. package/dist/{Arrow-D6UBVyNr.cjs → Arrow-D3wZDJiJ.cjs} +1 -1
  3. package/dist/{BaseIcon-DfoJJxST.cjs → BaseIcon-Cq2eFZ52.cjs} +1 -1
  4. package/dist/{BaseIcon-Br5G8Cdk.js → BaseIcon-Dwgmj_qL.js} +1 -1
  5. package/dist/{ColorPicker-Dvgprgpv.cjs → ColorPicker-B5sIe2fM.cjs} +1 -1
  6. package/dist/{ColorPicker-CiQzB3a-.js → ColorPicker-C7HGlp41.js} +3 -3
  7. package/dist/{DataTable-Dk-94kK2.js → DataTable-CqpvgLhR.js} +2 -2
  8. package/dist/{DataTable-CGucPqAQ.cjs → DataTable-mJxOnAtF.cjs} +1 -1
  9. package/dist/{Legend-B9aoKeq3.cjs → Legend-C8L_Z6Ik.cjs} +1 -1
  10. package/dist/{Legend-Cx6NYPTA.js → Legend-Chgo5qJ9.js} +2 -2
  11. package/dist/{PackageVersion-BdNfnIm2.js → PackageVersion-Do_gkQuR.js} +3 -3
  12. package/dist/PackageVersion-Yra8stiB.cjs +1 -0
  13. package/dist/{PenAndPaper-wrVNMaG8.js → PenAndPaper-BeVm8Gw_.js} +3 -3
  14. package/dist/{PenAndPaper-CJIFAI78.cjs → PenAndPaper-Ck4J-N0f.cjs} +1 -1
  15. package/dist/{Shape-Cn2RU1NY.cjs → Shape-BzzRLhdD.cjs} +1 -1
  16. package/dist/{Shape-vIKj52KP.js → Shape-CvjmV_jA.js} +1 -1
  17. package/dist/{Slicer-yki6JqTB.js → Slicer-Cv3oVUkB.js} +2 -2
  18. package/dist/{Slicer-t3EfI94H.cjs → Slicer-Dk5MzzXJ.cjs} +1 -1
  19. package/dist/{Title-Bae0QJu7.cjs → Title-Dm0Mve4x.cjs} +1 -1
  20. package/dist/{Title-CDYBDpu3.js → Title-Hz1-uq3Z.js} +1 -1
  21. package/dist/{Tooltip-CfqYTd5O.cjs → Tooltip-Cndiepq8.cjs} +1 -1
  22. package/dist/{Tooltip-BzsAOdBd.js → Tooltip-D_aFdI-k.js} +1 -1
  23. package/dist/{dom-to-png-IAiARGiU.js → dom-to-png-CjGqSFTh.js} +1 -1
  24. package/dist/{dom-to-png-DgRl9bEH.cjs → dom-to-png-D43ddGU-.cjs} +1 -1
  25. package/dist/{img-DxEvbX77.cjs → img-DDTs4XTo.cjs} +1 -1
  26. package/dist/{img-DaDUVggy.js → img-oevKz27t.js} +1 -1
  27. package/dist/index-B-gGjNsT.cjs +9 -0
  28. package/dist/{index-BI6O7K58.js → index-BqAuY8YO.js} +243 -236
  29. package/dist/{pdf-DBVNp7s2.js → pdf-C4D1wSDl.js} +1 -1
  30. package/dist/{pdf-Dq3h9PEr.cjs → pdf-DrJEYjvv.cjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +7 -1
  33. package/dist/types/vue-data-ui.d.ts +7 -1
  34. package/dist/{useNestedProp-CCR03NVM.cjs → useNestedProp-DgX4T8TO.cjs} +1 -1
  35. package/dist/{useNestedProp-Cvz4MkSy.js → useNestedProp-KHLCjp3b.js} +1 -1
  36. package/dist/{usePrinter-Jr3eyr8H.js → usePrinter-CYDRiSnN.js} +3 -3
  37. package/dist/{usePrinter-B2xVvtiy.cjs → usePrinter-D6exRhr5.cjs} +1 -1
  38. package/dist/{vue-data-ui-bm5wfGa_.js → vue-data-ui-Cm9vpJvb.js} +62 -62
  39. package/dist/{vue-data-ui-DhWKehHS.cjs → vue-data-ui-DWGDpg6O.cjs} +1 -1
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +1 -1
  42. package/dist/{vue-ui-3d-bar-Bpm8dKya.cjs → vue-ui-3d-bar-B4uKEahX.cjs} +1 -1
  43. package/dist/{vue-ui-3d-bar-CHOAZoDV.js → vue-ui-3d-bar-CIV72Eqi.js} +9 -9
  44. package/dist/{vue-ui-accordion-DE1isSE9.cjs → vue-ui-accordion-B5gHS5Ty.cjs} +1 -1
  45. package/dist/{vue-ui-accordion-ldF7KsjV.js → vue-ui-accordion-DHobGrxA.js} +3 -3
  46. package/dist/{vue-ui-age-pyramid-BnHOxOPT.cjs → vue-ui-age-pyramid-0xBHgxli.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-BuKSta-B.js → vue-ui-age-pyramid-CUCSwF_R.js} +10 -10
  48. package/dist/{vue-ui-annotator-BBuH-QB4.js → vue-ui-annotator-CwaPRuNd.js} +2 -2
  49. package/dist/{vue-ui-annotator-B9j16TKW.cjs → vue-ui-annotator-DCxKDa_f.cjs} +1 -1
  50. package/dist/{vue-ui-bullet-B0C_rPTQ.js → vue-ui-bullet-0Rw6Te3z.js} +8 -8
  51. package/dist/{vue-ui-bullet-CRChR0Qe.cjs → vue-ui-bullet-Df80ArZY.cjs} +1 -1
  52. package/dist/{vue-ui-candlestick-Bq66GLxw.cjs → vue-ui-candlestick-CwssaEPI.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-By5MsCcS.js → vue-ui-candlestick-D1tpxi8L.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-CyywZulq.cjs → vue-ui-carousel-table-Cka-p4av.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-BOtjI2Ov.js → vue-ui-carousel-table-jJq33mu9.js} +4 -4
  56. package/dist/{vue-ui-chestnut-D8QPZS8n.cjs → vue-ui-chestnut-DApLcH2S.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-BS2kXrPU.js → vue-ui-chestnut-DGja6XYi.js} +8 -8
  58. package/dist/{vue-ui-circle-pack-iOxdB75t.cjs → vue-ui-circle-pack-CWbR-Pfe.cjs} +1 -1
  59. package/dist/{vue-ui-circle-pack-C8m10WZ0.js → vue-ui-circle-pack-Cylfx9-W.js} +9 -9
  60. package/dist/{vue-ui-cursor-Ccym3tFb.cjs → vue-ui-cursor--1udElwj.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-Bn-CCFO0.js → vue-ui-cursor-PBkTDCT1.js} +2 -2
  62. package/dist/{vue-ui-dashboard-Cw4IXhXY.cjs → vue-ui-dashboard-DcgkkeLu.cjs} +1 -1
  63. package/dist/{vue-ui-dashboard-D-vs2N_7.js → vue-ui-dashboard-W6ldLtpR.js} +62 -62
  64. package/dist/{vue-ui-digits-D66h3nUw.cjs → vue-ui-digits-BzOm_izd.cjs} +1 -1
  65. package/dist/{vue-ui-digits-BXBXg7wv.js → vue-ui-digits-DljDm2K-.js} +2 -2
  66. package/dist/vue-ui-donut-BznGR_Pv.cjs +1 -0
  67. package/dist/vue-ui-donut-DNclMe34.js +1259 -0
  68. package/dist/{vue-ui-donut-evolution-xxrUJzgG.cjs → vue-ui-donut-evolution-BusvcTbs.cjs} +1 -1
  69. package/dist/{vue-ui-donut-evolution-5yOibvNM.js → vue-ui-donut-evolution-C252mEPR.js} +11 -11
  70. package/dist/{vue-ui-dumbbell-CWn7cNsm.cjs → vue-ui-dumbbell-1FsNzown.cjs} +1 -1
  71. package/dist/{vue-ui-dumbbell-C-KqKhxI.js → vue-ui-dumbbell-IxKoeDaO.js} +10 -10
  72. package/dist/{vue-ui-flow-D4_2VnaB.js → vue-ui-flow-DOSWbb_j.js} +9 -9
  73. package/dist/{vue-ui-flow-DFxWNRRJ.cjs → vue-ui-flow-DfJiWvjW.cjs} +1 -1
  74. package/dist/{vue-ui-funnel-DIoqpwbm.cjs → vue-ui-funnel-BuBdPPAD.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-ADEjZ8yz.js → vue-ui-funnel-CSTYYBs8.js} +9 -9
  76. package/dist/{vue-ui-galaxy-DLtA9Ebb.js → vue-ui-galaxy-BBe3Vdj7.js} +11 -11
  77. package/dist/{vue-ui-galaxy-BRle40mR.cjs → vue-ui-galaxy-DkbxVxf5.cjs} +1 -1
  78. package/dist/{vue-ui-gauge-BVj-IBdi.js → vue-ui-gauge-DC3iic8u.js} +7 -7
  79. package/dist/{vue-ui-gauge-B4vEWkRk.cjs → vue-ui-gauge-DFlBuTMt.cjs} +1 -1
  80. package/dist/{vue-ui-gizmo-BwBtkZ5z.cjs → vue-ui-gizmo-BBMAfyj3.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-BTe8CPyi.js → vue-ui-gizmo-Cfvr-UXI.js} +3 -3
  82. package/dist/{vue-ui-heatmap-DrXMOxbe.js → vue-ui-heatmap-BM56izP9.js} +10 -10
  83. package/dist/{vue-ui-heatmap-VdFtflO6.cjs → vue-ui-heatmap-CpXR1mzq.cjs} +1 -1
  84. package/dist/{vue-ui-history-plot-B-ScOcEy.cjs → vue-ui-history-plot-CSP8TC8A.cjs} +1 -1
  85. package/dist/{vue-ui-history-plot-_DfuZIMP.js → vue-ui-history-plot-IOSBb5Qn.js} +11 -11
  86. package/dist/{vue-ui-kpi-DfFiDtCP.js → vue-ui-kpi-Dgfg9GR0.js} +3 -3
  87. package/dist/{vue-ui-kpi-DSQV0Kf2.cjs → vue-ui-kpi-fHB7esA1.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-1JZipPcP.js → vue-ui-mini-loader-BZ2GPcR2.js} +2 -2
  89. package/dist/{vue-ui-mini-loader-CDOlO_1_.cjs → vue-ui-mini-loader-CYNEvgUJ.cjs} +1 -1
  90. package/dist/{vue-ui-molecule-jEcRTe4V.cjs → vue-ui-molecule-DrZVhiXO.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-Db_C7mVS.js → vue-ui-molecule-u-eGaTE3.js} +11 -11
  92. package/dist/{vue-ui-mood-radar-m48vvkft.js → vue-ui-mood-radar-BkC7hC7V.js} +11 -11
  93. package/dist/{vue-ui-mood-radar-BoKSTE-Y.cjs → vue-ui-mood-radar-CTiMfM1y.cjs} +1 -1
  94. package/dist/{vue-ui-nested-donuts-DNhMOryo.js → vue-ui-nested-donuts-DZMDijJ4.js} +11 -11
  95. package/dist/{vue-ui-nested-donuts-ihd00Tpn.cjs → vue-ui-nested-donuts-nEgRtofQ.cjs} +1 -1
  96. package/dist/{vue-ui-onion-D9AHOWa5.cjs → vue-ui-onion-Mtdb4cAZ.cjs} +1 -1
  97. package/dist/{vue-ui-onion-YKxsqnI7.js → vue-ui-onion-nuYVFd93.js} +11 -11
  98. package/dist/{vue-ui-parallel-coordinate-plot-7SCwFkrU.js → vue-ui-parallel-coordinate-plot-BTmrUV-C.js} +12 -12
  99. package/dist/{vue-ui-parallel-coordinate-plot-BmO6zenq.cjs → vue-ui-parallel-coordinate-plot-CO4Zxhfp.cjs} +1 -1
  100. package/dist/{vue-ui-quadrant-Bi0by7IK.js → vue-ui-quadrant-DCTtsWB9.js} +12 -12
  101. package/dist/{vue-ui-quadrant-CAJ4dTBu.cjs → vue-ui-quadrant-DPpFxvPe.cjs} +1 -1
  102. package/dist/{vue-ui-quick-chart-DlV0Qv_x.js → vue-ui-quick-chart-DR9X_LD9.js} +9 -9
  103. package/dist/{vue-ui-quick-chart-C37lGqa1.cjs → vue-ui-quick-chart-tC6DpSV-.cjs} +1 -1
  104. package/dist/{vue-ui-radar-H08KmB3s.cjs → vue-ui-radar-DMWgcTCk.cjs} +1 -1
  105. package/dist/{vue-ui-radar-B14zLIww.js → vue-ui-radar-DNcTO8W-.js} +12 -12
  106. package/dist/{vue-ui-rating-CdSQUBG6.js → vue-ui-rating-b2iWUEkV.js} +2 -2
  107. package/dist/{vue-ui-rating-CYarWaTf.cjs → vue-ui-rating-jdX6DH4v.cjs} +1 -1
  108. package/dist/{vue-ui-relation-circle-IzAvPPGl.js → vue-ui-relation-circle-B1a7eORw.js} +7 -7
  109. package/dist/{vue-ui-relation-circle-A4Vw8kYl.cjs → vue-ui-relation-circle-BC6_QCeg.cjs} +1 -1
  110. package/dist/{vue-ui-ridgeline-BaHgOn_p.cjs → vue-ui-ridgeline-C2DXbb0I.cjs} +1 -1
  111. package/dist/{vue-ui-ridgeline-BF5X6KQR.js → vue-ui-ridgeline-I-6Is-n4.js} +12 -12
  112. package/dist/{vue-ui-rings-DUhnXy1h.js → vue-ui-rings-DXX2SBLG.js} +12 -12
  113. package/dist/{vue-ui-rings-DnVeMrOw.cjs → vue-ui-rings-ThgBQeT1.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-D7bXuxob.js → vue-ui-scatter-CV8gkb-Q.js} +12 -12
  115. package/dist/{vue-ui-scatter-DoGX7iHp.cjs → vue-ui-scatter-D2m2bMpR.cjs} +1 -1
  116. package/dist/{vue-ui-skeleton-DeEGdJEn.cjs → vue-ui-skeleton-BYqsYQ4h.cjs} +1 -1
  117. package/dist/{vue-ui-skeleton-Dxm7rqic.js → vue-ui-skeleton-Ddje55hh.js} +3 -3
  118. package/dist/{vue-ui-smiley-DmAtXVht.cjs → vue-ui-smiley-BRn0xayM.cjs} +1 -1
  119. package/dist/{vue-ui-smiley-95l4UiqT.js → vue-ui-smiley-D3KPrtnP.js} +2 -2
  120. package/dist/{vue-ui-spark-trend-C3CO25Jy.cjs → vue-ui-spark-trend-COQGi1sX.cjs} +1 -1
  121. package/dist/{vue-ui-spark-trend-DdH43oVm.js → vue-ui-spark-trend-D97nzZaD.js} +5 -5
  122. package/dist/{vue-ui-sparkbar-C2roDWfv.cjs → vue-ui-sparkbar-BXUJgWZG.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-DTe3QrR3.js → vue-ui-sparkbar-F-1VVXo8.js} +4 -4
  124. package/dist/{vue-ui-sparkgauge-nq6-9TjT.cjs → vue-ui-sparkgauge-6abJlb6T.cjs} +1 -1
  125. package/dist/{vue-ui-sparkgauge-BwclNj3C.js → vue-ui-sparkgauge-B7Rv-U7s.js} +4 -4
  126. package/dist/{vue-ui-sparkhistogram-Brau127G.js → vue-ui-sparkhistogram-B4H9goyw.js} +5 -5
  127. package/dist/{vue-ui-sparkhistogram-BdWirDjI.cjs → vue-ui-sparkhistogram-CsR44dxt.cjs} +1 -1
  128. package/dist/{vue-ui-sparkline-qqfyQyVz.js → vue-ui-sparkline-Bl6lI2Hf.js} +4 -4
  129. package/dist/{vue-ui-sparkline-B2mOJzkG.cjs → vue-ui-sparkline-Ck77aev4.cjs} +1 -1
  130. package/dist/{vue-ui-sparkstackbar-DLlDU0B2.js → vue-ui-sparkstackbar-CVDvoryM.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-BJl9lbBp.cjs → vue-ui-sparkstackbar-tgyiyk1O.cjs} +1 -1
  132. package/dist/{vue-ui-stackbar-RRGnblUm.js → vue-ui-stackbar-BGDTPfoR.js} +13 -13
  133. package/dist/{vue-ui-stackbar-CEvmDjq3.cjs → vue-ui-stackbar-YgiHH1a2.cjs} +1 -1
  134. package/dist/{vue-ui-strip-plot-C9LKjSkW.js → vue-ui-strip-plot-D3bgR8XL.js} +11 -11
  135. package/dist/{vue-ui-strip-plot-Dlsv-yRI.cjs → vue-ui-strip-plot-hn4z1rhV.cjs} +1 -1
  136. package/dist/{vue-ui-table-DxdJ151X.js → vue-ui-table-B0bcyF4M.js} +3 -3
  137. package/dist/{vue-ui-table-qULtmHGA.cjs → vue-ui-table-Ckxsotd8.cjs} +1 -1
  138. package/dist/{vue-ui-table-heatmap-CzGeU_uL.js → vue-ui-table-heatmap-CYA9xsnY.js} +4 -4
  139. package/dist/{vue-ui-table-heatmap-BhxOvDDW.cjs → vue-ui-table-heatmap-CyYGu7nd.cjs} +1 -1
  140. package/dist/{vue-ui-table-sparkline-D1hriLB0.cjs → vue-ui-table-sparkline-BRO7LDbN.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-DSZhEDKX.js → vue-ui-table-sparkline-C65k-q8K.js} +5 -5
  142. package/dist/{vue-ui-thermometer-Pw4X3Bun.js → vue-ui-thermometer-BpeWgB2o.js} +7 -7
  143. package/dist/{vue-ui-thermometer-Cvnh4jvE.cjs → vue-ui-thermometer-DARrujvQ.cjs} +1 -1
  144. package/dist/{vue-ui-timer-CvvexEeN.js → vue-ui-timer-BSwNbGDR.js} +5 -5
  145. package/dist/{vue-ui-timer-BlmIXPv6.cjs → vue-ui-timer-C1Bvofxb.cjs} +1 -1
  146. package/dist/{vue-ui-tiremarks-BAkMBz3o.cjs → vue-ui-tiremarks-BdrEeoqL.cjs} +1 -1
  147. package/dist/{vue-ui-tiremarks-DbZQvV_2.js → vue-ui-tiremarks-bIb0oA6e.js} +7 -7
  148. package/dist/{vue-ui-treemap-CF-RjM16.js → vue-ui-treemap-9M2bI-wV.js} +12 -12
  149. package/dist/{vue-ui-treemap-a6b1vWy-.cjs → vue-ui-treemap-DrJgENbP.cjs} +1 -1
  150. package/dist/{vue-ui-vertical-bar-ZJbSI-xR.js → vue-ui-vertical-bar-ClbY74d-.js} +12 -12
  151. package/dist/{vue-ui-vertical-bar-Dm5zMIeE.cjs → vue-ui-vertical-bar-D4XrZQkI.cjs} +1 -1
  152. package/dist/{vue-ui-waffle-XNiw-qtb.cjs → vue-ui-waffle-BJCkIVRP.cjs} +1 -1
  153. package/dist/{vue-ui-waffle-I9AKkwb4.js → vue-ui-waffle-DkGImTHk.js} +12 -12
  154. package/dist/{vue-ui-wheel-DJUrO6CA.cjs → vue-ui-wheel-BTw-ybex.cjs} +1 -1
  155. package/dist/{vue-ui-wheel-BA7wZUZL.js → vue-ui-wheel-Cd7gw2RB.js} +7 -7
  156. package/dist/{vue-ui-word-cloud-BVqb1Yix.js → vue-ui-word-cloud-CTK01N6Y.js} +10 -10
  157. package/dist/{vue-ui-word-cloud-ByjkRq1g.cjs → vue-ui-word-cloud-rQGgIEAR.cjs} +1 -1
  158. package/dist/{vue-ui-world-DkYRlp5s.js → vue-ui-world-DLBxsj8V.js} +11 -11
  159. package/dist/{vue-ui-world-9nlcZMH1.cjs → vue-ui-world-DXi9YTS8.cjs} +1 -1
  160. package/dist/{vue-ui-xy-B4sqGuw6.cjs → vue-ui-xy-DCvVPrTQ.cjs} +2 -2
  161. package/dist/{vue-ui-xy-B1HwPMFi.js → vue-ui-xy-WuNFctyV.js} +16 -16
  162. package/dist/{vue-ui-xy-canvas-C-rykR_6.cjs → vue-ui-xy-canvas-BPOUkOoA.cjs} +1 -1
  163. package/dist/{vue-ui-xy-canvas-CGCtkn9g.js → vue-ui-xy-canvas-BjE3V0Gd.js} +12 -12
  164. package/package.json +1 -1
  165. package/dist/PackageVersion-C2bjLIu9.cjs +0 -1
  166. package/dist/index-DgIVCHLv.cjs +0 -9
  167. package/dist/vue-ui-donut-BGZIwC5D.js +0 -1191
  168. package/dist/vue-ui-donut-Bf3THSxi.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-CCR03NVM.cjs"),L=require("./index-DgIVCHLv.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const $=e,u=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes($.quanta)?u.value.X:u.value[$.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const{vue_ui_digits:$}=L.useConfig(),u=e,l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),i=[],n={x:10,y:10};let d=0;for(let y=0;y<c.length;y+=1){const o=c[y];i.push({x:n.x+d,y:n.y,quanta:o}),o=="."?d+=2:d+=44}return i}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,i)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-ui-digits",xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-DgX4T8TO.cjs"),L=require("./index-B-gGjNsT.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const $=e,u=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes($.quanta)?u.value.X:u.value[$.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const{vue_ui_digits:$}=L.useConfig(),u=e,l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),i=[],n={x:10,y:10};let d=0;for(let y=0;y<c.length;y+=1){const o=c[y];i.push({x:n.x+d,y:n.y,quanta:o}),o=="."?d+=2:d+=44}return i}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,i)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-ui-digits",xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
@@ -1,6 +1,6 @@
1
1
  import { ref as k, computed as d, createElementBlock as i, openBlock as $, Fragment as o, createCommentVNode as m, createElementVNode as l, normalizeStyle as v, unref as C, renderList as b, createBlock as N } from "vue";
2
- import { u as q } from "./useNestedProp-Cvz4MkSy.js";
3
- import { u as M, X as S } from "./index-BI6O7K58.js";
2
+ import { u as q } from "./useNestedProp-KHLCjp3b.js";
3
+ import { u as M, X as S } from "./index-BqAuY8YO.js";
4
4
  const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
5
5
  __name: "Digit",
6
6
  props: {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B-gGjNsT.cjs"),Ee=require("./useResponsive-DQmBAoBf.cjs"),He=require("./Title-Dm0Mve4x.cjs"),Pe=require("./usePrinter-D6exRhr5.cjs"),Je=require("./DataTable-mJxOnAtF.cjs"),Ke=require("./Tooltip-Cndiepq8.cjs"),Qe=require("./Legend-C8L_Z6Ik.cjs"),Ze=require("./vue-ui-skeleton-BYqsYQ4h.cjs"),et=require("./vue-ui-accordion-B5gHS5Ty.cjs"),Fe=require("./useNestedProp-DgX4T8TO.cjs"),tt=require("./PackageVersion-Yra8stiB.cjs"),lt=require("./PenAndPaper-Ck4J-N0f.cjs"),ot=require("./useUserOptionState-BgepsfED.cjs"),at=require("./Shape-BzzRLhdD.cjs"),nt=require("./useChartAccessibility-Cm7nkzTG.cjs"),rt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=["id"],st=["xmlns","viewBox"],it=["width","height"],ct={key:1},dt=["id"],vt=["stop-color"],ht=["offset","stop-color"],ft=["offset","stop-color"],yt=["stop-color"],mt={key:2},pt=["id","cx","cy"],gt=["stop-color","stop-opacity"],kt=["stop-color"],bt=["id"],wt=["id"],Ct=["id"],Bt=["flood-color"],_t=["id"],xt=["flood-color"],$t=["d","stroke","filter"],St=["x1","y1","x2","y2","stroke","filter"],Nt=["cx","cy","r","fill","filter"],Et={key:6},Pt=["stroke","d"],Ft={key:0},Vt=["d","fill","stroke","stroke-width","filter"],Lt=["d","fill","stroke","stroke-width","filter"],Ot={key:0},zt=["stroke","d"],Tt={key:0},Mt=["d","stroke","stroke-width","filter"],Xt={key:1},Dt=["d","fill","stroke","stroke-width","filter"],At=["d","fill","stroke","stroke-width","filter"],Yt={key:1},It=["cx","cy","r","fill","stroke","stroke-width"],qt=["cx","cy","r","fill","stroke","stroke-width"],Rt=["cx","cy","r","stroke"],Gt=["cx","cy","r","fill"],Ut={key:0},Wt=["d","fill","onMouseenter","onClick"],jt={key:1},Ht=["cx","cy","r","fill"],Jt=["x","y","fill","font-size"],Kt=["x","y","fill","font-size"],Qt=["x","y","fill","font-size"],Zt=["x","y","fill","font-size"],el=["filter"],tl={key:0},ll=["x","y"],ol={key:1},al=["cx","cy","fill","stroke","filter","onClick"],nl=["cx","cy","fill","stroke","filter","onClick"],rl=["text-anchor","x","y","fill","font-size","onClick"],ul=["text-anchor","x","y","fill","font-size","onClick"],sl=["text-anchor","x","y","fill","font-size","onClick"],il=["text-anchor","x","y","fill","font-size","onClick"],cl={key:2},dl=["x","y","width"],vl=["x","y","width"],hl={key:5,class:"vue-data-ui-watermark"},fl=["onClick"],yl={key:0,style:{"font-variant-numeric":"tabular-nums"}},ml={key:1},pl=["innerHTML"],gl={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(H,{expose:Ve,emit:Le}){const{vue_ui_donut:Oe}=n.useConfig(),ze=e.useSlots(),k=H,z=e.computed({get(){return!!k.dataset&&k.dataset.length},set(o){return o}}),T=e.ref(null),J=e.ref(null),K=e.ref(null),D=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(0),te=e.ref(0),le=e.ref(0);e.onMounted(()=>{oe()}),e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});function oe(){if(n.objectIsEmpty(k.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):k.dataset.forEach((o,r)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{z.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const o=Ee.throttle(()=>{const{width:r,height:l}=Ee.useResponsive({chart:T.value,title:t.value.style.chart.title.text?J.value:null,legend:t.value.style.chart.legend.show?K.value:null,source:Q.value,noTitle:Z.value,padding:se.value});requestAnimationFrame(()=>{u.value.width=r,u.value.height=l})});D.value=new ResizeObserver(o),D.value.observe(T.value.parentNode)}}const d=e.ref(n.createUid()),Te=e.ref(null),A=e.ref(!1),q=e.ref(""),p=e.ref(null),ae=e.ref(0);function ne(){const o=Fe.useNestedProp({userConfig:k.config,defaultConfig:Oe});return o.theme?{...Fe.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||k.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>ne(),set:o=>o}),B=e.ref(!0),_=e.ref([]);function Me(o){return 1-Math.pow(1-o,3)}function Xe(o,r=1e3,l=50){return new Promise(a=>{const s=o.length;_.value=Array(s).fill(0);let v=0;o.forEach((f,m)=>{setTimeout(()=>{const X=performance.now();function Se(We){const Ne=Math.min((We-X)/r,1),je=Me(Ne);_.value[m]=f*je,_.value=[..._.value],Ne<1?requestAnimationFrame(Se):(_.value[m]=f,_.value=[..._.value],v+=1,v===s&&a())}requestAnimationFrame(Se)},m*l)})})}e.onMounted(async()=>{const o=k.dataset.map(r=>r.values.reduce((l,a)=>l+a,0));t.value.startAnimation.show&&await Xe(o,t.value.startAnimation.durationMs,t.value.startAnimation.staggerMs),B.value=!1});const{userOptionsVisible:R,setUserOptionsVisibility:re,keepUserOptionState:ue}=ot.useUserOptionState({config:t.value}),{svgRef:G}=nt.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>k.config,o=>{t.value=ne(),R.value=!t.value.userOptions.showOnChartHover,oe(),ee.value+=1,te.value+=1,le.value+=1,c.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const se=e.computed(()=>{const{top:o,right:r,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${r}px ${l}px ${a}px`,top:o,right:r,bottom:l,left:a}}),{isPrinting:ie,isImaging:ce,generatePdf:de,generateImage:ve}=Pe.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),De=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),he=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),u=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,r=Math.min(u.value.width,u.value.height)*o,l=r>y.value?y.value:r;return Math.max(l,3)}),fe=Le,x=e.computed(()=>k.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||he.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:r,pattern:`pattern_${d.value}_${r}`}))),b=e.ref(x.value);e.watch(()=>x.value,o=>b.value=o);function Ae(){return x.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const C=e.ref([]),ye=e.ref(null),me=e.ref(null),E=e.ref(!1);function pe(o){const r=x.value.find((s,v)=>v===o),l=b.value.find((s,v)=>v===o);let a=l.value;if(C.value.includes(o)){let v=function(){b.value=b.value.map((m,X)=>o===X?{...m,value:s}:m)},f=function(){a>s?(cancelAnimationFrame(ye.value),v(),E.value=!1):(E.value=!0,a+=s*(t.value.type==="polar"?1:.045),b.value=b.value.map((m,X)=>o===X?{...m,value:a}:m),ye.value=requestAnimationFrame(f))};C.value=C.value.filter(m=>m!==o);const s=r.value;t.value.useSerieToggleAnimation?f():v()}else if(C.value.length<x.value.length-1){let s=function(){C.value.push(o),b.value=b.value.map((f,m)=>o===m?{...f,value:0}:f)},v=function(){a<l.value/100?(cancelAnimationFrame(me.value),s(),E.value=!1):(E.value=!0,a/=t.value.type==="polar"?20:1.18,b.value=b.value.map((f,m)=>o===m?{...f,value:a}:f),me.value=requestAnimationFrame(v))};t.value.useSerieToggleAnimation?v():s()}fe("selectLegend",$.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const Ye=e.computed(()=>k.dataset.reduce((o,r)=>o+r.values.reduce((l,a)=>l+a,0),0)),$=e.computed(()=>{if(B.value){const o=_.value.map((l,a)=>({...x.value[a],value:l,color:x.value[a].color,ghost:!1})),r=Ye.value-_.value.reduce((l,a)=>l+a,0);return r>0&&o.push({name:"__ghost__",value:r,color:"transparent",ghost:!0}),o}else return b.value.forEach((o,r)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),b.value.map((o,r)=>({...o,seriesIndex:r})).filter((o,r)=>!C.value.includes(r))}),ge=e.computed(()=>k.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||he.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:r})).map((o,r)=>({...o,proportion:o.value/k.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:C.value.includes(r)?.5:1,segregate:()=>!E.value&&pe(r),isSegregated:C.value.includes(r)}))),Ie=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":""})),y=e.computed(()=>{const o=Math.min(u.value.width/3,u.value.height/3);return o<55?55:o}),h=e.computed(()=>n.makeDonut({series:$.value},u.value.width/2,u.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),V=e.computed(()=>h.value.filter(o=>!o.ghost)),i=e.computed(()=>{const o=Math.max(...$.value.map(l=>l.value)),r=$.value.map(l=>l.value/o);return n.createPolarAreas({series:r,center:{x:u.value.width/2,y:u.value.height/2},maxRadius:Math.min(u.value.width,u.value.height)/3,hasGhost:B.value})});function L(o){return o.x>u.value.width/2+6?"start":o.x<u.value.width/2-6?"end":"middle"}function qe(o){return o.middlePoint.y>u.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:u.value.width/2,centerY:u.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:u.value.width/2,centerY:u.value.height/2}).y-100}function w(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function U(o,r){const l=o.value/Re(r);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function Re(o){return[...o].map(r=>r.value).reduce((r,l)=>r+l,0)}const g=e.computed(()=>$.value.map(o=>o.value).reduce((o,r)=>o+r,0)),ke=e.computed(()=>g.value/$.value.length),be=e.computed(()=>o=>E.value?o.proportion*100:o.value/g.value*100),W=e.ref(null),M=e.ref(!1);function we({datapoint:o,relativeIndex:r,seriesIndex:l,show:a=!1}){W.value={datapoint:o,seriesIndex:l,config:t.value,series:x.value},A.value=a,p.value=r;let s="";const v=t.value.style.chart.tooltip.customFormat;if(M.value=!1,n.isFunction(v))try{const f=v({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof f=="string"&&(q.value=f,M.value=!0)}catch{console.warn("Custom format cannot be applied."),M.value=!1}if(!M.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}"/>${ze.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const f=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${f})</span></div>`:s+=`<b>${f}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),q.value=`<div>${s}</div>`}}function P(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const S=e.computed(()=>{const o=$.value.map(l=>({name:l.name,color:l.color})),r=$.value.map(l=>l.value);return{head:o,body:r}});function Ce(){e.nextTick(()=>{const o=S.value.head.map((a,s)=>[[a.name],[S.value.body[s]],[isNaN(S.value.body[s]/g.value)?"-":S.value.body[s]/g.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(r);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const Y=e.computed(()=>{const o=[' <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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=S.value.head.map((s,v)=>[{color:s.color,name:s.name},S.value.body[v],isNaN(S.value.body[v]/g.value)?"-":(S.value.body[v]/g.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:o,body:r,config:l}}),O=e.ref(!1);function Ge(o){O.value=o,ae.value+=1}const Be=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ue(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function N(o,r){fe("selectDatapoint",{datapoint:o,index:r})}function _e(){c.value.showTable=!c.value.showTable}function xe(){c.value.dataLabels.show=!c.value.dataLabels.show}function $e(){c.value.showTooltip=!c.value.showTooltip}const I=e.ref(!1);function j(){I.value=!I.value}return Ve({getData:Ae,generatePdf:de,generateCsv:Ce,generateImage:ve,toggleTable:_e,toggleLabels:xe,toggleTooltip:$e,toggleAnnotator:j}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:T,class:e.normalizeClass(`vue-ui-donut ${O.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;background:${t.value.style.chart.backgroundColor}`),id:`donut__${d.value}`,onMouseenter:r[6]||(r[6]=()=>e.unref(re)(!0)),onMouseleave:r[7]||(r[7]=()=>e.unref(re)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(G)?(e.openBlock(),e.createBlock(lt._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:I.value,svgRef:e.unref(G),onClose:j},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),De.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Z,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:J,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(He._sfc_main,{key:`title_${ee.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(ue)||e.unref(R))?(e.openBlock(),e.createBlock(Pe.UserOptions,{ref_key:"details",ref:Te,key:`user_option_${ae.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ie),isImaging:e.unref(ce),uid:d.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:O.value,chartElement:T.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:I.value,onToggleFullscreen:Ge,onGeneratePdf:e.unref(de),onGenerateCsv:Ce,onGenerateImage:e.unref(ve),onToggleTable:_e,onToggleLabels:xe,onToggleTooltip:$e,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(ue)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"7"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${se.value.css}`)},[e.createVNode(tt._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,it)):e.createCommentVNode("",!0),t.value.type==="classic"&&!isNaN(F.value/y.value)?(e.openBlock(),e.createElementBlock("defs",ct,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,vt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,ht),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,yt)],8,dt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:(isNaN(l.middlePoint.x/u.value.width*100)?0:l.middlePoint.x/u.value.width*100)+"%",cy:(isNaN(l.middlePoint.y/u.value.height*100)?0:l.middlePoint.y/u.value.height*100)+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(h.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,gt),e.createElementVNode("stop",{offset:"100%","stop-color":h.value[a].color},null,8,kt)],8,pt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,wt),r[8]||(r[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,bt),e.createElementVNode("filter",{id:`shadow_${d.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,Bt)],8,Ct),e.createElementVNode("filter",{id:`drop_shadow_${d.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,xt)],8,_t)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(h.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:u.value.width/2,y:u.value.height/2},16,16,!1,!1,F.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(a)},null,8,$t)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(h.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,y1:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(a),style:e.normalizeStyle({transition:B.value?"":"all 0.1s ease-in-out"})},null,12,St)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"&&t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("circle",{key:5,cx:u.value.width/2,cy:u.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,Nt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.dataset,(l,a)=>(e.openBlock(),e.createElementBlock("defs",{key:`pattern-${l.patternIndex}`},[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:a,patternId:`pattern_${d.value}_${a}`}),void 0,!0)]))),128))])):e.createCommentVNode("",!0),g.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Pt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(a)},null,8,Vt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(a)},null,8,Lt))),256))],64)):e.createCommentVNode("",!0),g.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[h.value.length>1?(e.openBlock(),e.createElementBlock("g",Ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF",style:e.normalizeStyle({transition:B.value?"":"all 0.1s ease-in-out"})},null,12,zt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${d.value})`,style:e.normalizeStyle({transition:B.value?"":"all 0.1s ease-in-out"})},null,12,Mt))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(a),style:e.normalizeStyle({transition:B.value?"":"all 0.1s ease-in-out"})},null,12,Dt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(a),style:e.normalizeStyle({transition:B.value?"":"all 0.1s ease-in-out"})},null,12,At))),256))])):(e.openBlock(),e.createElementBlock("g",Yt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.width/2,cy:u.value.height/2,r:y.value,fill:`url(#pattern_${d.value}_${h.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,It)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:h.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,qt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:u.value.width/2,cy:u.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Rt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:u.value.width/2,cy:u.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${d.value})`},null,8,Gt)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[h.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("path",{d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>we({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=s=>{A.value=!1,p.value=null}),onClick:s=>N(l,a)},null,40,Wt))),256))])):(e.openBlock(),e.createElementBlock("g",jt,[e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:r[1]||(r[1]=l=>we({datapoint:h.value[0],relativeIndex:0,seriesIndex:h.value[0].seriesIndex,show:!0})),onMouseleave:r[2]||(r[2]=l=>{A.value=!1,p.value=null}),onClick:r[3]||(r[3]=l=>N(h.value[0],o.i))},null,40,Ht)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:u.value.width/2,y:u.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,Jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:u.value.width/2,y:u.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(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,g.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:g.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Kt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:u.value.width/2,y:u.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,Qt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:u.value.width/2,y:u.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(E.value||B.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,ke.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:ke.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Zt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:P(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",tl,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(Be.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.mergeProps({ref_for:!0},{datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:Be.value,isVisible:w(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:U(l,h.value)}),void 0,!0)])],8,ll))])):(e.openBlock(),e.createElementBlock("g",ol,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>N(l,a)},null,8,al)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>N(l,a)},null,8,nl)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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:s=>N(l,a)},e.toDisplayString(U(l,h.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,rl)):e.createCommentVNode("",!0),w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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:s=>N(l,a)},e.toDisplayString(l.name),13,ul)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":L(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`transition: all 0.1s ease-in-out; font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>N(l,a)},e.toDisplayString(U(l,h.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,sl)):e.createCommentVNode("",!0),w(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":L(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).y+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(`transition: all 0.1s ease-in-out; font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>N(l,a)},e.toDisplayString(l.name),13,il)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",cl,[w(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.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(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,dl)):e.createCommentVNode("",!0),w(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(L(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width:L(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x),y:qe(i.value[a])+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(o.$slots,"plot-comment",{plot:{...l,textAlign:L(i.value[a].middlePoint),flexAlign:L(i.value[a].middlePoint)}},void 0,!0)])],8,vl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,el))),256)),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,st)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",hl,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ie)||e.unref(ce)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ze.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:K},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Qe.Legend,{key:`legend_${le.value}`,legendSet:ge.value,config:Ie.value,onClickMarker:r[4]||(r[4]=({i:l})=>pe(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${C.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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:a}))+" ",1),C.value.includes(a)?(e.openBlock(),e.createElementBlock("span",ml," ( "+e.toDisplayString(Ue(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",yl," ("+e.toDisplayString(isNaN(l.value/g.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,be.value(l),e.unref(n.dataLabel)({v:be.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,fl)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(at._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:ge.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Q,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ke._sfc_main,{show:c.value.showTooltip&&A.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:T.value,content:q.value,isCustom:M.value,isFullscreen:O.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),z.value?(e.openBlock(),e.createBlock(et.default,{key:8,hideDetails:"",config:{open:c.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(Je.DataTable,{key:`table_${te.value}`,colNames:Y.value.colNames,head:Y.value.head,body:Y.value.body,config:Y.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[5]||(r[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,pl)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.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)],46,ut))}},kl=rt._export_sfc(gl,[["__scopeId","data-v-fcb2e642"]]);exports.default=kl;