vue-data-ui 2.10.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
@@ -0,0 +1,1259 @@
1
+ import { useSlots as xt, computed as p, ref as d, onMounted as Qe, onBeforeUnmount as $t, watch as Ze, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as x, normalizeClass as pe, createBlock as j, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as ge, createSlots as et, withCtx as C, normalizeProps as Q, guardReactiveProps as Z, Fragment as m, renderList as T, mergeProps as tt, toDisplayString as S, createTextVNode as lt, nextTick as Ct } from "vue";
2
+ import { u as Pt, o as St, e as at, g as Ft, c as Lt, b as Tt, d as ot, p as E, m as zt, Y as At, f as N, X as Ot, s as oe, w as Nt, j as Yt, L as z, i as X, k as ue, n as w, t as Xt, a as It, q as Mt, r as Dt, x as Vt } from "./index-BqAuY8YO.js";
3
+ import { t as Bt, u as Gt } from "./useResponsive-Cw4oZ8sQ.js";
4
+ import { _ as Rt } from "./Title-Hz1-uq3Z.js";
5
+ import { u as Ut, U as Wt } from "./usePrinter-CYDRiSnN.js";
6
+ import { D as jt } from "./DataTable-CqpvgLhR.js";
7
+ import { _ as Et } from "./Tooltip-D_aFdI-k.js";
8
+ import { L as Ht } from "./Legend-Chgo5qJ9.js";
9
+ import qt from "./vue-ui-skeleton-Ddje55hh.js";
10
+ import Jt from "./vue-ui-accordion-DHobGrxA.js";
11
+ import { u as ut } from "./useNestedProp-KHLCjp3b.js";
12
+ import { _ as Kt } from "./PackageVersion-Do_gkQuR.js";
13
+ import { _ as Qt } from "./PenAndPaper-BeVm8Gw_.js";
14
+ import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { _ as el } from "./Shape-CvjmV_jA.js";
16
+ import { u as tl } from "./useChartAccessibility-BWojgys7.js";
17
+ import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const al = ["id"], ol = ["xmlns", "viewBox"], ul = ["width", "height"], sl = { key: 1 }, nl = ["id"], rl = ["stop-color"], il = ["offset", "stop-color"], vl = ["offset", "stop-color"], cl = ["stop-color"], dl = { key: 2 }, hl = ["id", "cx", "cy"], yl = ["stop-color", "stop-opacity"], fl = ["stop-color"], pl = ["id"], gl = ["id"], ml = ["id"], bl = ["flood-color"], wl = ["id"], kl = ["flood-color"], _l = ["d", "stroke", "filter"], xl = ["x1", "y1", "x2", "y2", "stroke", "filter"], $l = ["cx", "cy", "r", "fill", "filter"], Cl = { key: 6 }, Pl = ["stroke", "d"], Sl = { key: 0 }, Fl = ["d", "fill", "stroke", "stroke-width", "filter"], Ll = ["d", "fill", "stroke", "stroke-width", "filter"], Tl = { key: 0 }, zl = ["stroke", "d"], Al = { key: 0 }, Ol = ["d", "stroke", "stroke-width", "filter"], Nl = { key: 1 }, Yl = ["d", "fill", "stroke", "stroke-width", "filter"], Xl = ["d", "fill", "stroke", "stroke-width", "filter"], Il = { key: 1 }, Ml = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Vl = ["cx", "cy", "r", "stroke"], Bl = ["cx", "cy", "r", "fill"], Gl = { key: 0 }, Rl = ["d", "fill", "onMouseenter", "onClick"], Ul = { key: 1 }, Wl = ["cx", "cy", "r", "fill"], jl = ["x", "y", "fill", "font-size"], El = ["x", "y", "fill", "font-size"], Hl = ["x", "y", "fill", "font-size"], ql = ["x", "y", "fill", "font-size"], Jl = ["filter"], Kl = { key: 0 }, Ql = ["x", "y"], Zl = { key: 1 }, ea = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ta = ["cx", "cy", "fill", "stroke", "filter", "onClick"], la = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], aa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], oa = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], sa = { key: 2 }, na = ["x", "y", "width"], ra = ["x", "y", "width"], ia = {
19
+ key: 5,
20
+ class: "vue-data-ui-watermark"
21
+ }, va = ["onClick"], ca = {
22
+ key: 0,
23
+ style: { "font-variant-numeric": "tabular-nums" }
24
+ }, da = { key: 1 }, ha = ["innerHTML"], ya = {
25
+ __name: "vue-ui-donut",
26
+ props: {
27
+ config: {
28
+ type: Object,
29
+ default() {
30
+ return {};
31
+ }
32
+ },
33
+ dataset: {
34
+ type: Array,
35
+ default() {
36
+ return [];
37
+ }
38
+ }
39
+ },
40
+ emits: ["selectLegend", "selectDatapoint"],
41
+ setup(me, { expose: st, emit: nt }) {
42
+ const { vue_ui_donut: rt } = Pt(), it = xt(), A = me, ee = p({
43
+ get() {
44
+ return !!A.dataset && A.dataset.length;
45
+ },
46
+ set(l) {
47
+ return l;
48
+ }
49
+ }), te = d(null), be = d(null), we = d(null), se = d(null), ke = d(null), _e = d(null), xe = d(0), $e = d(0), Ce = d(0);
50
+ Qe(() => {
51
+ Pe();
52
+ }), $t(() => {
53
+ se.value && se.value.disconnect();
54
+ });
55
+ function Pe() {
56
+ if (St(A.dataset) ? at({
57
+ componentName: "VueUiDonut",
58
+ type: "dataset"
59
+ }) : A.dataset.forEach((l, u) => {
60
+ Ft({
61
+ datasetObject: l,
62
+ requiredAttributes: ["name", "values"]
63
+ }).forEach((t) => {
64
+ ee.value = !1, at({
65
+ componentName: "VueUiDonut",
66
+ type: "datasetSerieAttribute",
67
+ property: t,
68
+ index: u
69
+ });
70
+ });
71
+ }), e.value.responsive) {
72
+ const l = Bt(() => {
73
+ const { width: u, height: t } = Gt({
74
+ chart: te.value,
75
+ title: e.value.style.chart.title.text ? be.value : null,
76
+ legend: e.value.style.chart.legend.show ? we.value : null,
77
+ source: ke.value,
78
+ noTitle: _e.value,
79
+ padding: ze.value
80
+ });
81
+ requestAnimationFrame(() => {
82
+ s.value.width = u, s.value.height = t;
83
+ });
84
+ });
85
+ se.value = new ResizeObserver(l), se.value.observe(te.value.parentNode);
86
+ }
87
+ }
88
+ const y = d(Lt()), vt = d(null), ne = d(!1), ve = d(""), F = d(null), Se = d(0);
89
+ function Fe() {
90
+ const l = ut({
91
+ userConfig: A.config,
92
+ defaultConfig: rt
93
+ });
94
+ return l.theme ? {
95
+ ...ut({
96
+ userConfig: It.vue_ui_donut[l.theme] || A.config,
97
+ defaultConfig: l
98
+ }),
99
+ customPalette: Xt[l.theme] || E
100
+ } : l;
101
+ }
102
+ const e = p({
103
+ get: () => Fe(),
104
+ set: (l) => l
105
+ }), M = d(!0), D = d([]);
106
+ function ct(l) {
107
+ return 1 - Math.pow(1 - l, 3);
108
+ }
109
+ function dt(l, u = 1e3, t = 50) {
110
+ return new Promise((a) => {
111
+ const v = l.length;
112
+ D.value = Array(v).fill(0);
113
+ let b = 0;
114
+ l.forEach((_, P) => {
115
+ setTimeout(() => {
116
+ const ae = performance.now();
117
+ function Je(kt) {
118
+ const Ke = Math.min((kt - ae) / u, 1), _t = ct(Ke);
119
+ D.value[P] = _ * _t, D.value = [...D.value], Ke < 1 ? requestAnimationFrame(Je) : (D.value[P] = _, D.value = [...D.value], b += 1, b === v && a());
120
+ }
121
+ requestAnimationFrame(Je);
122
+ }, P * t);
123
+ });
124
+ });
125
+ }
126
+ Qe(async () => {
127
+ const l = A.dataset.map((u) => u.values.reduce((t, a) => t + a, 0));
128
+ e.value.startAnimation.show && await dt(
129
+ l,
130
+ e.value.startAnimation.durationMs,
131
+ e.value.startAnimation.staggerMs
132
+ ), M.value = !1;
133
+ });
134
+ const { userOptionsVisible: ce, setUserOptionsVisibility: Le, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: de } = tl({ config: e.value.style.chart.title });
135
+ Ze(() => A.config, (l) => {
136
+ e.value = Fe(), ce.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1, $e.value += 1, Ce.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
137
+ }, { deep: !0 });
138
+ const ze = p(() => {
139
+ const { top: l, right: u, bottom: t, left: a } = e.value.style.chart.padding;
140
+ return {
141
+ css: `padding:${l}px ${u}px ${t}px ${a}px`,
142
+ top: l,
143
+ right: u,
144
+ bottom: t,
145
+ left: a
146
+ };
147
+ }), { isPrinting: Ae, isImaging: Oe, generatePdf: Ne, generateImage: Ye } = Ut({
148
+ elementId: `donut__${y.value}`,
149
+ fileName: e.value.style.chart.title.text || "vue-ui-donut",
150
+ options: e.value.userOptions.print
151
+ }), ht = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = p(() => Tt(e.value.customPalette)), h = d({
152
+ dataLabels: {
153
+ show: e.value.style.chart.layout.labels.dataLabels.show
154
+ },
155
+ showTable: e.value.table.show,
156
+ showTooltip: e.value.style.chart.tooltip.show
157
+ }), s = d({
158
+ height: 360,
159
+ width: 512
160
+ }), H = p(() => {
161
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, u = Math.min(s.value.width, s.value.height) * l, t = u > $.value ? $.value : u;
162
+ return Math.max(t, 3);
163
+ }), Ie = nt, V = p(() => A.dataset.map((l, u) => ({
164
+ name: l.name,
165
+ color: ot(l.color) || Xe.value[u] || E[u] || E[u % E.length],
166
+ value: l.values.reduce((t, a) => t + a, 0),
167
+ absoluteValues: l.values,
168
+ comment: l.comment || "",
169
+ patternIndex: u,
170
+ pattern: `pattern_${y.value}_${u}`
171
+ }))), O = d(V.value);
172
+ Ze(() => V.value, (l) => O.value = l);
173
+ function yt() {
174
+ return V.value.map((l) => ({
175
+ name: l.name,
176
+ color: l.color,
177
+ value: l.value
178
+ }));
179
+ }
180
+ const I = d([]), Me = d(null), De = d(null), U = d(!1);
181
+ function Ve(l) {
182
+ const u = V.value.find((v, b) => b === l), t = O.value.find((v, b) => b === l);
183
+ let a = t.value;
184
+ if (I.value.includes(l)) {
185
+ let b = function() {
186
+ O.value = O.value.map((P, ae) => l === ae ? {
187
+ ...P,
188
+ value: v
189
+ } : P);
190
+ }, _ = function() {
191
+ a > v ? (cancelAnimationFrame(Me.value), b(), U.value = !1) : (U.value = !0, a += v * (e.value.type === "polar" ? 1 : 0.045), O.value = O.value.map((P, ae) => l === ae ? {
192
+ ...P,
193
+ value: a
194
+ } : P), Me.value = requestAnimationFrame(_));
195
+ };
196
+ I.value = I.value.filter((P) => P !== l);
197
+ const v = u.value;
198
+ e.value.useSerieToggleAnimation ? _() : b();
199
+ } else if (I.value.length < V.value.length - 1) {
200
+ let v = function() {
201
+ I.value.push(l), O.value = O.value.map((_, P) => l === P ? {
202
+ ..._,
203
+ value: 0
204
+ } : _);
205
+ }, b = function() {
206
+ a < t.value / 100 ? (cancelAnimationFrame(De.value), v(), U.value = !1) : (U.value = !0, a /= e.value.type === "polar" ? 20 : 1.18, O.value = O.value.map((_, P) => l === P ? {
207
+ ..._,
208
+ value: a
209
+ } : _), De.value = requestAnimationFrame(b));
210
+ };
211
+ e.value.useSerieToggleAnimation ? b() : v();
212
+ }
213
+ Ie("selectLegend", B.value.map((v) => ({
214
+ name: v.name,
215
+ color: v.color,
216
+ value: v.value
217
+ })));
218
+ }
219
+ const ft = p(() => A.dataset.reduce((l, u) => l + u.values.reduce((t, a) => t + a, 0), 0)), B = p(() => {
220
+ if (M.value) {
221
+ const l = D.value.map((t, a) => ({
222
+ ...V.value[a],
223
+ value: t,
224
+ color: V.value[a].color,
225
+ ghost: !1
226
+ })), u = ft.value - D.value.reduce((t, a) => t + a, 0);
227
+ return u > 0 && l.push({
228
+ name: "__ghost__",
229
+ value: u,
230
+ color: "transparent",
231
+ ghost: !0
232
+ }), l;
233
+ } else
234
+ return O.value.forEach((l, u) => {
235
+ if ([null, void 0].includes(l.values))
236
+ return {
237
+ ...l,
238
+ values: []
239
+ };
240
+ }), O.value.map((l, u) => ({
241
+ ...l,
242
+ seriesIndex: u
243
+ })).filter((l, u) => !I.value.includes(u));
244
+ }), Be = p(() => A.dataset.map((l, u) => ({
245
+ name: l.name,
246
+ color: ot(l.color) || Xe.value[u] || E[u] || E[u % E.length],
247
+ value: (l.values || []).reduce((t, a) => t + a, 0),
248
+ shape: "circle",
249
+ patternIndex: u
250
+ })).map((l, u) => ({
251
+ ...l,
252
+ proportion: l.value / A.dataset.map((t) => (t.values || []).reduce((a, v) => a + v, 0)).reduce((t, a) => t + a, 0),
253
+ opacity: I.value.includes(u) ? 0.5 : 1,
254
+ segregate: () => !U.value && Ve(u),
255
+ isSegregated: I.value.includes(u)
256
+ }))), pt = p(() => ({
257
+ cy: "donut-div-legend",
258
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
259
+ color: e.value.style.chart.legend.color,
260
+ fontSize: e.value.style.chart.legend.fontSize,
261
+ paddingBottom: 12,
262
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
263
+ })), $ = p(() => {
264
+ const l = Math.min(s.value.width / 3, s.value.height / 3);
265
+ return l < 55 ? 55 : l;
266
+ }), k = p(() => zt({ series: B.value }, s.value.width / 2, s.value.height / 2, $.value, $.value, 1.99999, 2, 1, 360, 105.25, H.value)), q = p(() => k.value.filter((l) => !l.ghost)), c = p(() => {
267
+ const l = Math.max(...B.value.map((t) => t.value)), u = B.value.map((t) => t.value / l);
268
+ return At({
269
+ series: u,
270
+ center: {
271
+ x: s.value.width / 2,
272
+ y: s.value.height / 2
273
+ },
274
+ maxRadius: Math.min(s.value.width, s.value.height) / 3,
275
+ hasGhost: M.value
276
+ });
277
+ });
278
+ function J(l) {
279
+ return l.x > s.value.width / 2 + 6 ? "start" : l.x < s.value.width / 2 - 6 ? "end" : "middle";
280
+ }
281
+ function gt(l) {
282
+ return l.middlePoint.y > s.value.height / 2 ? z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y : z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y - 100;
283
+ }
284
+ function Y(l) {
285
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
286
+ }
287
+ function he(l, u) {
288
+ const t = l.value / mt(u);
289
+ return isNaN(t) ? 0 : X(
290
+ e.value.style.chart.layout.labels.percentage.formatter,
291
+ t * 100,
292
+ N({
293
+ v: t * 100,
294
+ s: "%",
295
+ r: e.value.style.chart.layout.labels.percentage.rounding
296
+ }),
297
+ { datapoint: l }
298
+ );
299
+ }
300
+ function mt(l) {
301
+ return [...l].map((u) => u.value).reduce((u, t) => u + t, 0);
302
+ }
303
+ const L = p(() => B.value.map((l) => l.value).reduce((l, u) => l + u, 0)), Ge = p(() => L.value / B.value.length), Re = p(() => (l) => U.value ? l.proportion * 100 : l.value / L.value * 100), ye = d(null), le = d(!1);
304
+ function Ue({ datapoint: l, relativeIndex: u, seriesIndex: t, show: a = !1 }) {
305
+ ye.value = { datapoint: l, seriesIndex: t, config: e.value, series: V.value }, ne.value = a, F.value = u;
306
+ let v = "";
307
+ const b = e.value.style.chart.tooltip.customFormat;
308
+ if (le.value = !1, Vt(b))
309
+ try {
310
+ const _ = b({
311
+ seriesIndex: t,
312
+ datapoint: l,
313
+ series: V.value,
314
+ config: e.value
315
+ });
316
+ typeof _ == "string" && (ve.value = _, le.value = !0);
317
+ } catch {
318
+ console.warn("Custom format cannot be applied."), le.value = !1;
319
+ }
320
+ if (!le.value) {
321
+ if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<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="${l.color}"/>${it.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${X(
322
+ e.value.style.chart.layout.labels.value.formatter,
323
+ l.value,
324
+ N({
325
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
326
+ v: l.value,
327
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
328
+ r: e.value.style.chart.tooltip.roundingValue
329
+ }),
330
+ {
331
+ datapoint: l,
332
+ relativeIndex: u,
333
+ seriesIndex: t
334
+ }
335
+ )}</b>`), e.value.style.chart.tooltip.showPercentage) {
336
+ const _ = X(
337
+ e.value.style.chart.layout.labels.percentage.formatter,
338
+ l.proportion * 100,
339
+ N({
340
+ v: l.proportion * 100,
341
+ s: "%",
342
+ r: e.value.style.chart.tooltip.roundingPercentage
343
+ }),
344
+ {
345
+ datapoint: l,
346
+ relativeIndex: u,
347
+ seriesIndex: t
348
+ }
349
+ );
350
+ e.value.style.chart.tooltip.showValue ? v += `<span>(${_})</span></div>` : v += `<b>${_}</b></div>`;
351
+ }
352
+ e.value.style.chart.comments.showInTooltip && l.comment && (v += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ve.value = `<div>${v}</div>`;
353
+ }
354
+ }
355
+ function W(l) {
356
+ return e.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== l ? `url(#blur_${y.value})` : "";
357
+ }
358
+ const G = p(() => {
359
+ const l = B.value.map((t) => ({
360
+ name: t.name,
361
+ color: t.color
362
+ })), u = B.value.map((t) => t.value);
363
+ return { head: l, body: u };
364
+ });
365
+ function We() {
366
+ Ct(() => {
367
+ const l = G.value.head.map((a, v) => [[
368
+ a.name
369
+ ], [G.value.body[v]], [isNaN(G.value.body[v] / L.value) ? "-" : G.value.body[v] / L.value * 100]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Mt(u);
370
+ Dt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
371
+ });
372
+ }
373
+ const re = p(() => {
374
+ const l = [
375
+ ' <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>',
376
+ N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: L.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
377
+ "100%"
378
+ ], u = G.value.head.map((v, b) => [
379
+ {
380
+ color: v.color,
381
+ name: v.name
382
+ },
383
+ G.value.body[b],
384
+ isNaN(G.value.body[b] / L.value) ? "-" : (G.value.body[b] / L.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
385
+ ]), t = {
386
+ th: {
387
+ backgroundColor: e.value.table.th.backgroundColor,
388
+ color: e.value.table.th.color,
389
+ outline: e.value.table.th.outline
390
+ },
391
+ td: {
392
+ backgroundColor: e.value.table.td.backgroundColor,
393
+ color: e.value.table.td.color,
394
+ outline: e.value.table.td.outline
395
+ },
396
+ breakpoint: e.value.table.responsiveBreakpoint
397
+ };
398
+ return {
399
+ colNames: [
400
+ e.value.table.columnNames.series,
401
+ e.value.table.columnNames.value,
402
+ e.value.table.columnNames.percentage
403
+ ],
404
+ head: l,
405
+ body: u,
406
+ config: t
407
+ };
408
+ }), K = d(!1);
409
+ function bt(l) {
410
+ K.value = l, Se.value += 1;
411
+ }
412
+ const je = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
413
+ function wt(l) {
414
+ return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((u) => "-").join("");
415
+ }
416
+ function R(l, u) {
417
+ Ie("selectDatapoint", { datapoint: l, index: u });
418
+ }
419
+ function Ee() {
420
+ h.value.showTable = !h.value.showTable;
421
+ }
422
+ function He() {
423
+ h.value.dataLabels.show = !h.value.dataLabels.show;
424
+ }
425
+ function qe() {
426
+ h.value.showTooltip = !h.value.showTooltip;
427
+ }
428
+ const ie = d(!1);
429
+ function fe() {
430
+ ie.value = !ie.value;
431
+ }
432
+ return st({
433
+ getData: yt,
434
+ generatePdf: Ne,
435
+ generateCsv: We,
436
+ generateImage: Ye,
437
+ toggleTable: Ee,
438
+ toggleLabels: He,
439
+ toggleTooltip: qe,
440
+ toggleAnnotator: fe
441
+ }), (l, u) => (o(), n("div", {
442
+ ref_key: "donutChart",
443
+ ref: te,
444
+ class: pe(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
445
+ style: x(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
446
+ id: `donut__${y.value}`,
447
+ onMouseenter: u[6] || (u[6] = () => r(Le)(!0)),
448
+ onMouseleave: u[7] || (u[7] = () => r(Le)(!1))
449
+ }, [
450
+ e.value.userOptions.buttons.annotator && r(de) ? (o(), j(Qt, {
451
+ key: 0,
452
+ color: e.value.style.chart.color,
453
+ backgroundColor: e.value.style.chart.backgroundColor,
454
+ active: ie.value,
455
+ svgRef: r(de),
456
+ onClose: fe
457
+ }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
458
+ g(l.$slots, "userConfig", {}, void 0, !0),
459
+ ht.value ? (o(), n("div", {
460
+ key: 1,
461
+ ref_key: "noTitle",
462
+ ref: _e,
463
+ class: "vue-data-ui-no-title-space",
464
+ style: "height:36px; width: 100%;background:transparent"
465
+ }, null, 512)) : i("", !0),
466
+ e.value.style.chart.title.text ? (o(), n("div", {
467
+ key: 2,
468
+ ref_key: "chartTitle",
469
+ ref: be,
470
+ style: "width:100%;background:transparent;padding-bottom:24px"
471
+ }, [
472
+ (o(), j(Rt, {
473
+ key: `title_${xe.value}`,
474
+ config: {
475
+ title: {
476
+ cy: "donut-div-title",
477
+ ...e.value.style.chart.title
478
+ },
479
+ subtitle: {
480
+ cy: "donut-div-subtitle",
481
+ ...e.value.style.chart.title.subtitle
482
+ }
483
+ }
484
+ }, null, 8, ["config"]))
485
+ ], 512)) : i("", !0),
486
+ e.value.userOptions.show && ee.value && (r(Te) || r(ce)) ? (o(), j(Wt, {
487
+ ref_key: "details",
488
+ ref: vt,
489
+ key: `user_option_${Se.value}`,
490
+ backgroundColor: e.value.style.chart.backgroundColor,
491
+ color: e.value.style.chart.color,
492
+ isPrinting: r(Ae),
493
+ isImaging: r(Oe),
494
+ uid: y.value,
495
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
496
+ hasPdf: e.value.userOptions.buttons.pdf,
497
+ hasImg: e.value.userOptions.buttons.img,
498
+ hasXls: e.value.userOptions.buttons.csv,
499
+ hasTable: e.value.userOptions.buttons.table,
500
+ hasLabel: e.value.userOptions.buttons.labels,
501
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
502
+ isFullscreen: K.value,
503
+ chartElement: te.value,
504
+ position: e.value.userOptions.position,
505
+ isTooltip: h.value.showTooltip,
506
+ titles: { ...e.value.userOptions.buttonTitles },
507
+ hasAnnotator: e.value.userOptions.buttons.annotator,
508
+ isAnnotation: ie.value,
509
+ onToggleFullscreen: bt,
510
+ onGeneratePdf: r(Ne),
511
+ onGenerateCsv: We,
512
+ onGenerateImage: r(Ye),
513
+ onToggleTable: Ee,
514
+ onToggleLabels: He,
515
+ onToggleTooltip: qe,
516
+ onToggleAnnotator: fe,
517
+ style: x({
518
+ visibility: r(Te) ? r(ce) ? "visible" : "hidden" : "visible"
519
+ })
520
+ }, et({ _: 2 }, [
521
+ l.$slots.menuIcon ? {
522
+ name: "menuIcon",
523
+ fn: C(({ isOpen: t, color: a }) => [
524
+ g(l.$slots, "menuIcon", Q(Z({ isOpen: t, color: a })), void 0, !0)
525
+ ]),
526
+ key: "0"
527
+ } : void 0,
528
+ l.$slots.optionTooltip ? {
529
+ name: "optionTooltip",
530
+ fn: C(() => [
531
+ g(l.$slots, "optionTooltip", {}, void 0, !0)
532
+ ]),
533
+ key: "1"
534
+ } : void 0,
535
+ l.$slots.optionPdf ? {
536
+ name: "optionPdf",
537
+ fn: C(() => [
538
+ g(l.$slots, "optionPdf", {}, void 0, !0)
539
+ ]),
540
+ key: "2"
541
+ } : void 0,
542
+ l.$slots.optionCsv ? {
543
+ name: "optionCsv",
544
+ fn: C(() => [
545
+ g(l.$slots, "optionCsv", {}, void 0, !0)
546
+ ]),
547
+ key: "3"
548
+ } : void 0,
549
+ l.$slots.optionImg ? {
550
+ name: "optionImg",
551
+ fn: C(() => [
552
+ g(l.$slots, "optionImg", {}, void 0, !0)
553
+ ]),
554
+ key: "4"
555
+ } : void 0,
556
+ l.$slots.optionTable ? {
557
+ name: "optionTable",
558
+ fn: C(() => [
559
+ g(l.$slots, "optionTable", {}, void 0, !0)
560
+ ]),
561
+ key: "5"
562
+ } : void 0,
563
+ l.$slots.optionLabels ? {
564
+ name: "optionLabels",
565
+ fn: C(() => [
566
+ g(l.$slots, "optionLabels", {}, void 0, !0)
567
+ ]),
568
+ key: "6"
569
+ } : void 0,
570
+ l.$slots.optionFullscreen ? {
571
+ name: "optionFullscreen",
572
+ fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
573
+ g(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
574
+ ]),
575
+ key: "7"
576
+ } : void 0,
577
+ l.$slots.optionAnnotator ? {
578
+ name: "optionAnnotator",
579
+ fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
580
+ g(l.$slots, "optionAnnotator", Q(Z({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
581
+ ]),
582
+ key: "8"
583
+ } : void 0
584
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
585
+ ee.value ? (o(), n("svg", {
586
+ key: 4,
587
+ ref_key: "svgRef",
588
+ ref: de,
589
+ xmlns: r(Ot),
590
+ class: pe({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
591
+ viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
592
+ style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${ze.value.css}`)
593
+ }, [
594
+ ge(Kt),
595
+ l.$slots["chart-background"] ? (o(), n("foreignObject", {
596
+ key: 0,
597
+ x: 0,
598
+ y: 0,
599
+ width: s.value.width <= 0 ? 10 : s.value.width,
600
+ height: s.value.height <= 0 ? 10 : s.value.height,
601
+ style: {
602
+ pointerEvents: "none"
603
+ }
604
+ }, [
605
+ g(l.$slots, "chart-background", {}, void 0, !0)
606
+ ], 8, ul)) : i("", !0),
607
+ e.value.type === "classic" && !isNaN(H.value / $.value) ? (o(), n("defs", sl, [
608
+ e.value.style.chart.useGradient ? (o(), n("radialGradient", {
609
+ key: 0,
610
+ id: `gradient_${y.value}`
611
+ }, [
612
+ f("stop", {
613
+ offset: "0%",
614
+ "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
615
+ "stop-opacity": "0"
616
+ }, null, 8, rl),
617
+ f("stop", {
618
+ offset: `${(1 - H.value / $.value) * 100}%`,
619
+ "stop-color": r(oe)("#FFFFFF", 0),
620
+ "stop-opacity": "0"
621
+ }, null, 8, il),
622
+ f("stop", {
623
+ offset: `${(1 - H.value / $.value / 2) * 100}%`,
624
+ "stop-color": r(oe)("#FFFFFF", e.value.style.chart.gradientIntensity)
625
+ }, null, 8, vl),
626
+ f("stop", {
627
+ offset: "100%",
628
+ "stop-color": r(oe)(e.value.style.chart.backgroundColor, 0),
629
+ "stop-opacity": "0"
630
+ }, null, 8, cl)
631
+ ], 8, nl)) : i("", !0)
632
+ ])) : i("", !0),
633
+ e.value.type === "polar" ? (o(), n("defs", dl, [
634
+ (o(!0), n(m, null, T(c.value, (t, a) => (o(), n("radialGradient", {
635
+ id: `polar_gradient_${a}_${y.value}`,
636
+ cx: (isNaN(t.middlePoint.x / s.value.width * 100) ? 0 : t.middlePoint.x / s.value.width * 100) + "%",
637
+ cy: (isNaN(t.middlePoint.y / s.value.height * 100) ? 0 : t.middlePoint.y / s.value.height * 100) + "%",
638
+ r: "62%"
639
+ }, [
640
+ f("stop", {
641
+ offset: "0%",
642
+ "stop-color": r(Nt)(k.value[a].color, 0.05),
643
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
644
+ }, null, 8, yl),
645
+ f("stop", {
646
+ offset: "100%",
647
+ "stop-color": k.value[a].color
648
+ }, null, 8, fl)
649
+ ], 8, hl))), 256))
650
+ ])) : i("", !0),
651
+ f("defs", null, [
652
+ f("filter", {
653
+ id: `blur_${y.value}`,
654
+ x: "-50%",
655
+ y: "-50%",
656
+ width: "200%",
657
+ height: "200%"
658
+ }, [
659
+ f("feGaussianBlur", {
660
+ in: "SourceGraphic",
661
+ stdDeviation: 2,
662
+ id: `blur_std_${y.value}`
663
+ }, null, 8, gl),
664
+ u[8] || (u[8] = f("feColorMatrix", {
665
+ type: "saturate",
666
+ values: "0"
667
+ }, null, -1))
668
+ ], 8, pl),
669
+ f("filter", {
670
+ id: `shadow_${y.value}`,
671
+ "color-interpolation-filters": "sRGB"
672
+ }, [
673
+ f("feDropShadow", {
674
+ dx: "0",
675
+ dy: "0",
676
+ stdDeviation: "10",
677
+ "flood-opacity": "0.5",
678
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
679
+ }, null, 8, bl)
680
+ ], 8, ml),
681
+ f("filter", {
682
+ id: `drop_shadow_${y.value}`,
683
+ "color-interpolation-filters": "sRGB",
684
+ x: "-50%",
685
+ y: "-50%",
686
+ width: "200%",
687
+ height: "200%"
688
+ }, [
689
+ f("feDropShadow", {
690
+ dx: "0",
691
+ dy: "0",
692
+ stdDeviation: "3",
693
+ "flood-opacity": "1",
694
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
695
+ }, null, 8, kl)
696
+ ], 8, wl)
697
+ ]),
698
+ e.value.type === "classic" ? (o(!0), n(m, { key: 3 }, T(k.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
699
+ Y(t) && h.value.dataLabels.show ? (o(), n("path", {
700
+ key: 0,
701
+ d: r(Yt)(t, { x: s.value.width / 2, y: s.value.height / 2 }, 16, 16, !1, !1, H.value, 12, e.value.style.chart.layout.curvedMarkers),
702
+ stroke: t.color,
703
+ "stroke-width": "1",
704
+ "stroke-linecap": "round",
705
+ "stroke-linejoin": "round",
706
+ fill: "none",
707
+ filter: W(a)
708
+ }, null, 8, _l)) : i("", !0)
709
+ ]))), 256)) : i("", !0),
710
+ e.value.type === "polar" ? (o(!0), n(m, { key: 4 }, T(k.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", null, [
711
+ Y(t) && h.value.dataLabels.show ? (o(), n("line", {
712
+ key: 0,
713
+ x1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
714
+ y1: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
715
+ x2: c.value[a].middlePoint.x,
716
+ y2: c.value[a].middlePoint.y,
717
+ stroke: t.color,
718
+ "stroke-width": "1",
719
+ "stroke-linecap": "round",
720
+ "stroke-linejoin": "round",
721
+ fill: "none",
722
+ filter: W(a),
723
+ style: x({
724
+ transition: M.value ? "" : "all 0.1s ease-in-out"
725
+ })
726
+ }, null, 12, xl)) : i("", !0)
727
+ ]))), 256)) : i("", !0),
728
+ e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (o(), n("circle", {
729
+ key: 5,
730
+ cx: s.value.width / 2,
731
+ cy: s.value.height / 2,
732
+ r: $.value <= 0 ? 10 : $.value,
733
+ fill: e.value.style.chart.backgroundColor,
734
+ filter: `url(#shadow_${y.value})`
735
+ }, null, 8, $l)) : i("", !0),
736
+ l.$slots.pattern ? (o(), n("g", Cl, [
737
+ (o(!0), n(m, null, T(me.dataset, (t, a) => (o(), n("defs", {
738
+ key: `pattern-${t.patternIndex}`
739
+ }, [
740
+ g(l.$slots, "pattern", tt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
741
+ ]))), 128))
742
+ ])) : i("", !0),
743
+ L.value && e.value.type === "classic" ? (o(), n(m, { key: 7 }, [
744
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
745
+ stroke: e.value.style.chart.backgroundColor,
746
+ d: t.arcSlice,
747
+ fill: "#FFFFFF"
748
+ }, null, 8, Pl))), 256)),
749
+ l.$slots.pattern ? (o(), n("g", Sl, [
750
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
751
+ class: "vue-ui-donut-arc-path",
752
+ d: t.arcSlice,
753
+ fill: `url(#${t.pattern})`,
754
+ stroke: e.value.style.chart.backgroundColor,
755
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
756
+ filter: W(a)
757
+ }, null, 8, Fl))), 256))
758
+ ])) : i("", !0),
759
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
760
+ class: "vue-ui-donut-arc-path",
761
+ d: t.arcSlice,
762
+ fill: r(oe)(t.color, 80),
763
+ stroke: e.value.style.chart.backgroundColor,
764
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
765
+ filter: W(a)
766
+ }, null, 8, Ll))), 256))
767
+ ], 64)) : i("", !0),
768
+ L.value && e.value.type === "polar" ? (o(), n(m, { key: 8 }, [
769
+ k.value.length > 1 ? (o(), n("g", Tl, [
770
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
771
+ stroke: e.value.style.chart.backgroundColor,
772
+ d: c.value[a].path,
773
+ fill: "#FFFFFF",
774
+ style: x({
775
+ transition: M.value ? "" : "all 0.1s ease-in-out"
776
+ })
777
+ }, null, 12, zl))), 256)),
778
+ e.value.style.chart.layout.donut.useShadow ? (o(), n("g", Al, [
779
+ (o(!0), n(m, null, T(k.value, (t, a) => (o(), n("path", {
780
+ class: "vue-ui-donut-arc-path",
781
+ d: c.value[a].path,
782
+ fill: "transparent",
783
+ stroke: e.value.style.chart.backgroundColor,
784
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
785
+ filter: `url(#drop_shadow_${y.value})`,
786
+ style: x({
787
+ transition: M.value ? "" : "all 0.1s ease-in-out"
788
+ })
789
+ }, null, 12, Ol))), 256))
790
+ ])) : i("", !0),
791
+ l.$slots.pattern ? (o(), n("g", Nl, [
792
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
793
+ class: "vue-ui-donut-arc-path",
794
+ d: c.value[a].path,
795
+ fill: `url(#${t.pattern})`,
796
+ stroke: e.value.style.chart.backgroundColor,
797
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
798
+ filter: W(a),
799
+ style: x({
800
+ transition: M.value ? "" : "all 0.1s ease-in-out"
801
+ })
802
+ }, null, 12, Yl))), 256))
803
+ ])) : i("", !0),
804
+ (o(!0), n(m, null, T(q.value, (t, a) => (o(), n("path", {
805
+ class: "vue-ui-donut-arc-path",
806
+ d: c.value[a].path,
807
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
808
+ stroke: e.value.style.chart.backgroundColor,
809
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
810
+ filter: W(a),
811
+ style: x({
812
+ transition: M.value ? "" : "all 0.1s ease-in-out"
813
+ })
814
+ }, null, 12, Xl))), 256))
815
+ ])) : (o(), n("g", Il, [
816
+ l.$slots.pattern ? (o(), n("circle", {
817
+ key: 0,
818
+ cx: s.value.width / 2,
819
+ cy: s.value.height / 2,
820
+ r: $.value,
821
+ fill: `url(#pattern_${y.value}_${k.value[0].patternIndex})`,
822
+ stroke: e.value.style.chart.backgroundColor,
823
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
824
+ }, null, 8, Ml)) : i("", !0),
825
+ f("circle", {
826
+ cx: s.value.width / 2,
827
+ cy: s.value.height / 2,
828
+ r: $.value,
829
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : k.value[0].color,
830
+ stroke: e.value.style.chart.backgroundColor,
831
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth
832
+ }, null, 8, Dl)
833
+ ]))
834
+ ], 64)) : (o(), n("circle", {
835
+ key: 9,
836
+ cx: s.value.width / 2,
837
+ cy: s.value.height / 2,
838
+ r: $.value <= 0 ? 10 : $.value,
839
+ fill: "transparent",
840
+ stroke: e.value.style.chart.backgroundColor
841
+ }, null, 8, Vl)),
842
+ e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
843
+ key: 10,
844
+ cx: s.value.width / 2,
845
+ cy: s.value.height / 2,
846
+ r: (
847
+ /* This might require adjustments */
848
+ $.value <= 0 ? 10 : $.value
849
+ ),
850
+ fill: `url(#gradient_${y.value})`
851
+ }, null, 8, Bl)) : i("", !0),
852
+ L.value ? (o(), n(m, { key: 11 }, [
853
+ k.value.length > 1 || e.value.type === "classic" ? (o(), n("g", Gl, [
854
+ (o(!0), n(m, null, T(k.value.filter((t) => !t.ghost), (t, a) => (o(), n("path", {
855
+ d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
856
+ fill: F.value === a ? "rgba(0,0,0,0.1)" : "transparent",
857
+ onMouseenter: (v) => Ue({
858
+ datapoint: t,
859
+ relativeIndex: a,
860
+ seriesIndex: t.seriesIndex,
861
+ show: !0
862
+ }),
863
+ onMouseleave: u[0] || (u[0] = (v) => {
864
+ ne.value = !1, F.value = null;
865
+ }),
866
+ onClick: (v) => R(t, a)
867
+ }, null, 40, Rl))), 256))
868
+ ])) : (o(), n("g", Ul, [
869
+ f("circle", {
870
+ cx: s.value.width / 2,
871
+ cy: s.value.height / 2,
872
+ r: $.value,
873
+ fill: F.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
874
+ onMouseenter: u[1] || (u[1] = (t) => Ue({
875
+ datapoint: k.value[0],
876
+ relativeIndex: 0,
877
+ seriesIndex: k.value[0].seriesIndex,
878
+ show: !0
879
+ })),
880
+ onMouseleave: u[2] || (u[2] = (t) => {
881
+ ne.value = !1, F.value = null;
882
+ }),
883
+ onClick: u[3] || (u[3] = (t) => R(k.value[0], l.i))
884
+ }, null, 40, Wl)
885
+ ]))
886
+ ], 64)) : i("", !0),
887
+ e.value.type === "classic" ? (o(), n(m, { key: 12 }, [
888
+ e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
889
+ key: 0,
890
+ "text-anchor": "middle",
891
+ x: s.value.width / 2,
892
+ y: s.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
893
+ fill: e.value.style.chart.layout.labels.hollow.total.color,
894
+ "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
895
+ style: x(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
896
+ }, S(e.value.style.chart.layout.labels.hollow.total.text), 13, jl)) : i("", !0),
897
+ e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
898
+ key: 1,
899
+ "text-anchor": "middle",
900
+ x: s.value.width / 2,
901
+ y: s.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
902
+ fill: e.value.style.chart.layout.labels.hollow.total.value.color,
903
+ "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
904
+ style: x(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
905
+ }, S(r(X)(
906
+ e.value.style.chart.layout.labels.hollow.total.value.formatter,
907
+ L.value,
908
+ r(N)({
909
+ p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
910
+ v: L.value,
911
+ s: e.value.style.chart.layout.labels.hollow.total.value.suffix
912
+ })
913
+ )), 13, El)) : i("", !0),
914
+ e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
915
+ key: 2,
916
+ "text-anchor": "middle",
917
+ x: s.value.width / 2,
918
+ y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
919
+ fill: e.value.style.chart.layout.labels.hollow.average.color,
920
+ "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
921
+ style: x(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
922
+ }, S(e.value.style.chart.layout.labels.hollow.average.text), 13, Hl)) : i("", !0),
923
+ e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
924
+ key: 3,
925
+ "text-anchor": "middle",
926
+ x: s.value.width / 2,
927
+ y: s.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
928
+ fill: e.value.style.chart.layout.labels.hollow.average.value.color,
929
+ "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
930
+ style: x(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
931
+ }, S(U.value || M.value ? "--" : r(X)(
932
+ e.value.style.chart.layout.labels.hollow.average.value.formatter,
933
+ Ge.value,
934
+ r(N)({
935
+ p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
936
+ v: Ge.value,
937
+ s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
938
+ r: e.value.style.chart.layout.labels.hollow.average.value.rounding
939
+ })
940
+ )), 13, ql)) : i("", !0)
941
+ ], 64)) : i("", !0),
942
+ (o(!0), n(m, null, T(k.value.filter((t) => !t.ghost), (t, a) => (o(), n("g", {
943
+ filter: W(a),
944
+ class: pe({ animated: e.value.useCssAnimation })
945
+ }, [
946
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", Kl, [
947
+ (o(), n("foreignObject", {
948
+ x: r(w)(t, !0).anchor === "end" ? r(w)(t).x - 120 : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - 60 : r(w)(t).x,
949
+ y: r(ue)(t) - (je.value ? 20 : 0),
950
+ width: "120",
951
+ height: "60",
952
+ style: { overflow: "visible" }
953
+ }, [
954
+ f("div", null, [
955
+ g(l.$slots, "dataLabel", tt({ ref_for: !0 }, {
956
+ datapoint: t,
957
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a,
958
+ isSafari: je.value,
959
+ isVisible: Y(t) && h.value.dataLabels.show,
960
+ textAlign: r(w)(t, !0, 16, !0).anchor,
961
+ flexAlign: r(w)(t, !0, 16).anchor,
962
+ percentage: he(t, k.value)
963
+ }), void 0, !0)
964
+ ])
965
+ ], 8, Ql))
966
+ ])) : (o(), n("g", Zl, [
967
+ e.value.type === "classic" ? (o(), n(m, { key: 0 }, [
968
+ Y(t) && h.value.dataLabels.show ? (o(), n("circle", {
969
+ key: 0,
970
+ cx: r(w)(t).x,
971
+ cy: r(ue)(t) - 3.5,
972
+ fill: t.color,
973
+ stroke: e.value.style.chart.backgroundColor,
974
+ "stroke-width": 1,
975
+ r: 3,
976
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
977
+ onClick: (v) => R(t, a)
978
+ }, null, 8, ea)) : i("", !0)
979
+ ], 64)) : i("", !0),
980
+ e.value.type === "polar" ? (o(), n(m, { key: 1 }, [
981
+ Y(t) && h.value.dataLabels.show ? (o(), n("circle", {
982
+ key: 0,
983
+ cx: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
984
+ cy: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
985
+ fill: t.color,
986
+ stroke: e.value.style.chart.backgroundColor,
987
+ "stroke-width": 1,
988
+ r: 3,
989
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === a ? "" : `url(#blur_${y.value})`,
990
+ onClick: (v) => R(t, a)
991
+ }, null, 8, ta)) : i("", !0)
992
+ ], 64)) : i("", !0),
993
+ e.value.type === "classic" ? (o(), n(m, { key: 2 }, [
994
+ Y(t) && h.value.dataLabels.show ? (o(), n("text", {
995
+ key: 0,
996
+ "text-anchor": r(w)(t, !0, 12).anchor,
997
+ x: r(w)(t, !0, 12).x,
998
+ y: r(ue)(t),
999
+ fill: e.value.style.chart.layout.labels.percentage.color,
1000
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1001
+ style: x(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1002
+ onClick: (v) => R(t, a)
1003
+ }, S(he(t, k.value)) + " " + S(e.value.style.chart.layout.labels.value.show ? `(${r(X)(
1004
+ e.value.style.chart.layout.labels.value.formatter,
1005
+ t.value,
1006
+ r(N)({
1007
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1008
+ v: t.value,
1009
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1010
+ r: e.value.style.chart.layout.labels.value.rounding
1011
+ }),
1012
+ { datapoint: t }
1013
+ )})` : ""), 13, la)) : i("", !0),
1014
+ Y(t) && h.value.dataLabels.show ? (o(), n("text", {
1015
+ key: 1,
1016
+ "text-anchor": r(w)(t).anchor,
1017
+ x: r(w)(t, !0, 12).x,
1018
+ y: r(ue)(t) + e.value.style.chart.layout.labels.percentage.fontSize,
1019
+ fill: e.value.style.chart.layout.labels.name.color,
1020
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
1021
+ style: x(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1022
+ onClick: (v) => R(t, a)
1023
+ }, S(t.name), 13, aa)) : i("", !0)
1024
+ ], 64)) : i("", !0),
1025
+ e.value.type === "polar" ? (o(), n(m, { key: 3 }, [
1026
+ Y(t) && h.value.dataLabels.show ? (o(), n("text", {
1027
+ key: 0,
1028
+ "text-anchor": J(c.value[a].middlePoint),
1029
+ x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1030
+ y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y,
1031
+ fill: e.value.style.chart.layout.labels.percentage.color,
1032
+ "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
1033
+ style: x(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1034
+ onClick: (v) => R(t, a)
1035
+ }, S(he(t, k.value)) + " " + S(e.value.style.chart.layout.labels.value.show ? `(${r(X)(
1036
+ e.value.style.chart.layout.labels.value.formatter,
1037
+ t.value,
1038
+ r(N)({
1039
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1040
+ v: t.value,
1041
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1042
+ r: e.value.style.chart.layout.labels.value.rounding
1043
+ }),
1044
+ { datapoint: t }
1045
+ )})` : ""), 13, oa)) : i("", !0),
1046
+ Y(t) && h.value.dataLabels.show ? (o(), n("text", {
1047
+ key: 1,
1048
+ "text-anchor": J(c.value[a].middlePoint),
1049
+ x: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x,
1050
+ y: r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
1051
+ fill: e.value.style.chart.layout.labels.name.color,
1052
+ "font-size": e.value.style.chart.layout.labels.name.fontSize,
1053
+ style: x(`transition: all 0.1s ease-in-out; font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1054
+ onClick: (v) => R(t, a)
1055
+ }, S(t.name), 13, ua)) : i("", !0)
1056
+ ], 64)) : i("", !0)
1057
+ ])),
1058
+ h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", sa, [
1059
+ Y(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
1060
+ key: 0,
1061
+ x: e.value.style.chart.comments.offsetX + (r(w)(t, !0).anchor === "end" ? r(w)(t).x - e.value.style.chart.comments.width : r(w)(t, !0).anchor === "middle" ? r(w)(t).x - e.value.style.chart.comments.width / 2 : r(w)(t).x),
1062
+ y: r(ue)(t) + 24 + e.value.style.chart.comments.offsetY,
1063
+ width: e.value.style.chart.comments.width,
1064
+ height: "200",
1065
+ style: { overflow: "visible", "pointer-events": "none" }
1066
+ }, [
1067
+ f("div", null, [
1068
+ g(l.$slots, "plot-comment", {
1069
+ plot: { ...t, textAlign: r(w)(t, !0, 16, !0).anchor, flexAlign: r(w)(t, !0, 16).anchor }
1070
+ }, void 0, !0)
1071
+ ])
1072
+ ], 8, na)) : i("", !0),
1073
+ Y(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
1074
+ key: 1,
1075
+ x: e.value.style.chart.comments.offsetX + (J(c.value[a].middlePoint) === "end" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width : J(c.value[a].middlePoint) === "middle" ? r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(z)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: s.value.width / 2, centerY: s.value.height / 2 }).x),
1076
+ y: gt(c.value[a]) + e.value.style.chart.comments.offsetY,
1077
+ width: e.value.style.chart.comments.width,
1078
+ height: "200",
1079
+ style: { overflow: "visible", "pointer-events": "none" }
1080
+ }, [
1081
+ f("div", null, [
1082
+ g(l.$slots, "plot-comment", {
1083
+ plot: { ...t, textAlign: J(c.value[a].middlePoint), flexAlign: J(c.value[a].middlePoint) }
1084
+ }, void 0, !0)
1085
+ ])
1086
+ ], 8, ra)) : i("", !0)
1087
+ ])) : i("", !0)
1088
+ ], 10, Jl))), 256)),
1089
+ g(l.$slots, "svg", { svg: s.value }, void 0, !0)
1090
+ ], 14, ol)) : i("", !0),
1091
+ l.$slots.watermark ? (o(), n("div", ia, [
1092
+ g(l.$slots, "watermark", Q(Z({ isPrinting: r(Ae) || r(Oe) })), void 0, !0)
1093
+ ])) : i("", !0),
1094
+ ee.value ? i("", !0) : (o(), j(qt, {
1095
+ key: 6,
1096
+ config: {
1097
+ type: "donut",
1098
+ style: {
1099
+ backgroundColor: e.value.style.chart.backgroundColor,
1100
+ donut: {
1101
+ color: "#CCCCCC",
1102
+ strokeWidth: H.value * 0.8
1103
+ }
1104
+ }
1105
+ }
1106
+ }, null, 8, ["config"])),
1107
+ f("div", {
1108
+ ref_key: "chartLegend",
1109
+ ref: we
1110
+ }, [
1111
+ e.value.style.chart.legend.show ? (o(), j(Ht, {
1112
+ key: `legend_${Ce.value}`,
1113
+ legendSet: Be.value,
1114
+ config: pt.value,
1115
+ onClickMarker: u[4] || (u[4] = ({ i: t }) => Ve(t))
1116
+ }, et({
1117
+ item: C(({ legend: t, index: a }) => [
1118
+ f("div", {
1119
+ style: x(`opacity:${I.value.includes(a) ? 0.5 : 1}`),
1120
+ onClick: (v) => t.segregate()
1121
+ }, [
1122
+ lt(S(t.name) + ": " + S(r(X)(
1123
+ e.value.style.chart.layout.labels.value.formatter,
1124
+ t.value,
1125
+ r(N)({
1126
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1127
+ v: t.value,
1128
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1129
+ r: e.value.style.chart.legend.roundingValue
1130
+ }),
1131
+ {
1132
+ datapoint: t,
1133
+ index: a
1134
+ }
1135
+ )) + " ", 1),
1136
+ I.value.includes(a) ? (o(), n("span", da, " ( " + S(wt(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", ca, " (" + S(isNaN(t.value / L.value) ? "-" : r(X)(
1137
+ e.value.style.chart.layout.labels.percentage.formatter,
1138
+ Re.value(t),
1139
+ r(N)({
1140
+ v: Re.value(t),
1141
+ s: "%",
1142
+ r: e.value.style.chart.legend.roundingPercentage
1143
+ })
1144
+ )) + ") ", 1))
1145
+ ], 12, va)
1146
+ ]),
1147
+ _: 2
1148
+ }, [
1149
+ l.$slots.pattern ? {
1150
+ name: "legend-pattern",
1151
+ fn: C(({ legend: t, index: a }) => [
1152
+ ge(el, {
1153
+ shape: t.shape,
1154
+ radius: 30,
1155
+ stroke: "none",
1156
+ plot: { x: 30, y: 30 },
1157
+ fill: `url(#pattern_${y.value}_${a})`
1158
+ }, null, 8, ["shape", "fill"])
1159
+ ]),
1160
+ key: "0"
1161
+ } : void 0
1162
+ ]), 1032, ["legendSet", "config"])) : i("", !0),
1163
+ g(l.$slots, "legend", { legend: Be.value }, void 0, !0)
1164
+ ], 512),
1165
+ l.$slots.source ? (o(), n("div", {
1166
+ key: 7,
1167
+ ref_key: "source",
1168
+ ref: ke,
1169
+ dir: "auto"
1170
+ }, [
1171
+ g(l.$slots, "source", {}, void 0, !0)
1172
+ ], 512)) : i("", !0),
1173
+ ge(Et, {
1174
+ show: h.value.showTooltip && ne.value,
1175
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1176
+ color: e.value.style.chart.tooltip.color,
1177
+ fontSize: e.value.style.chart.tooltip.fontSize,
1178
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1179
+ borderColor: e.value.style.chart.tooltip.borderColor,
1180
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1181
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1182
+ position: e.value.style.chart.tooltip.position,
1183
+ offsetY: e.value.style.chart.tooltip.offsetY,
1184
+ parent: te.value,
1185
+ content: ve.value,
1186
+ isCustom: le.value,
1187
+ isFullscreen: K.value
1188
+ }, {
1189
+ "tooltip-before": C(() => [
1190
+ g(l.$slots, "tooltip-before", Q(Z({ ...ye.value })), void 0, !0)
1191
+ ]),
1192
+ "tooltip-after": C(() => [
1193
+ g(l.$slots, "tooltip-after", Q(Z({ ...ye.value })), void 0, !0)
1194
+ ]),
1195
+ _: 3
1196
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
1197
+ ee.value ? (o(), j(Jt, {
1198
+ key: 8,
1199
+ hideDetails: "",
1200
+ config: {
1201
+ open: h.value.showTable,
1202
+ maxHeight: 1e4,
1203
+ body: {
1204
+ backgroundColor: e.value.style.chart.backgroundColor,
1205
+ color: e.value.style.chart.color
1206
+ },
1207
+ head: {
1208
+ backgroundColor: e.value.style.chart.backgroundColor,
1209
+ color: e.value.style.chart.color
1210
+ }
1211
+ }
1212
+ }, {
1213
+ content: C(() => [
1214
+ (o(), j(jt, {
1215
+ key: `table_${$e.value}`,
1216
+ colNames: re.value.colNames,
1217
+ head: re.value.head,
1218
+ body: re.value.body,
1219
+ config: re.value.config,
1220
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1221
+ onClose: u[5] || (u[5] = (t) => h.value.showTable = !1)
1222
+ }, {
1223
+ th: C(({ th: t }) => [
1224
+ f("div", {
1225
+ innerHTML: t,
1226
+ style: { display: "flex", "align-items": "center" }
1227
+ }, null, 8, ha)
1228
+ ]),
1229
+ td: C(({ td: t }) => [
1230
+ lt(S(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(X)(
1231
+ e.value.style.chart.layout.labels.percentage.formatter,
1232
+ t,
1233
+ r(N)({
1234
+ v: t,
1235
+ s: "%",
1236
+ r: e.value.style.chart.layout.labels.percentage.rounding
1237
+ })
1238
+ ) : r(X)(
1239
+ e.value.style.chart.layout.labels.value.formatter,
1240
+ t,
1241
+ r(N)({
1242
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1243
+ v: t,
1244
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1245
+ r: e.value.style.chart.layout.labels.value.rounding
1246
+ })
1247
+ )), 1)
1248
+ ]),
1249
+ _: 1
1250
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1251
+ ]),
1252
+ _: 1
1253
+ }, 8, ["config"])) : i("", !0)
1254
+ ], 46, al));
1255
+ }
1256
+ }, Aa = /* @__PURE__ */ ll(ya, [["__scopeId", "data-v-fcb2e642"]]);
1257
+ export {
1258
+ Aa as default
1259
+ };