vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,26 +1,27 @@
1
- import { computed as k, ref as d, onMounted as Je, onBeforeUnmount as Ke, watch as Oe, openBlock as o, createElementBlock as n, normalizeClass as ie, normalizeStyle as Y, renderSlot as _, createBlock as H, createCommentVNode as v, unref as s, createSlots as Qe, withCtx as S, normalizeProps as Q, guardReactiveProps as Z, createVNode as Ie, createElementVNode as h, Fragment as m, renderList as I, toDisplayString as x, createTextVNode as De, nextTick as Ze, pushScopeId as et, popScopeId as tt } from "vue";
2
- import { u as lt, o as at, e as Ae, g as ot, c as ut, b as st, d as Be, p as V, m as nt, G as rt, f as L, X as it, s as ee, w as vt, j as ct, H as F, i as X, k as b, n as te, t as dt, a as ht, x as yt, q as ft, r as pt } from "./index-DDXisDKy.js";
3
- import { t as gt, u as bt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as mt } from "./Title-DYNLqCCT.js";
5
- import { u as wt, U as kt } from "./usePrinter-8ofTb2MJ.js";
6
- import { D as _t } from "./DataTable-DL2agEJ3.js";
7
- import { _ as xt } from "./Tooltip-CICAYyQj.js";
8
- import { L as Ct } from "./Legend-DXLiSLHd.js";
9
- import $t from "./vue-ui-skeleton-B2sRnIXX.js";
10
- import Pt from "./vue-ui-accordion-D_1fE5EF.js";
11
- import { u as Me } from "./useNestedProp-S1UXxUgm.js";
12
- import { _ as St } from "./PackageVersion-DtnhR89q.js";
13
- import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = ["xmlns", "viewBox"], Yt = { key: 0 }, Xt = ["id"], Nt = ["stop-color"], Ot = ["offset", "stop-color"], It = ["offset", "stop-color"], Dt = ["stop-color"], At = { key: 1 }, Bt = ["id", "cx", "cy"], Mt = ["stop-color", "stop-opacity"], Gt = ["stop-color"], Vt = ["id"], jt = ["id"], Ht = /* @__PURE__ */ Ft(() => /* @__PURE__ */ h("feColorMatrix", {
1
+ import { computed as _, ref as d, onMounted as Ze, onBeforeUnmount as et, watch as De, openBlock as o, createElementBlock as n, normalizeClass as ce, normalizeStyle as Y, createBlock as V, createCommentVNode as v, renderSlot as m, unref as s, createSlots as tt, withCtx as P, normalizeProps as U, guardReactiveProps as E, createVNode as Be, createElementVNode as h, Fragment as w, renderList as O, toDisplayString as x, createTextVNode as Me, nextTick as lt, pushScopeId as at, popScopeId as ot } from "vue";
2
+ import { u as ut, o as st, e as Ge, g as nt, c as rt, b as it, d as Ve, p as j, m as vt, G as ct, f as L, X as dt, s as ee, w as ht, j as yt, H as F, i as A, k as b, n as te, t as ft, a as pt, x as gt, q as bt, r as mt } from "./index-Bya_q1J-.js";
3
+ import { t as wt, u as kt } from "./useResponsive-BY8tgM1n.js";
4
+ import { _ as _t } from "./Title-C5pIfQAz.js";
5
+ import { u as xt, U as Ct } from "./usePrinter-CiHd1FwD.js";
6
+ import { D as $t } from "./DataTable-DYqC2pqu.js";
7
+ import { _ as Pt } from "./Tooltip-Cz24YLfw.js";
8
+ import { L as St } from "./Legend-DNgTCgEK.js";
9
+ import Lt from "./vue-ui-skeleton-BYssP0K4.js";
10
+ import Ft from "./vue-ui-accordion-DfUfL2dI.js";
11
+ import { u as je } from "./useNestedProp-B33hazbH.js";
12
+ import { _ as Tt } from "./PackageVersion-VkaUzgmt.js";
13
+ import { P as zt } from "./PenAndPaper-DAZYA8Ew.js";
14
+ import { _ as Yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const At = (W) => (at("data-v-f76d6ac3"), W = W(), ot(), W), Xt = ["id"], Nt = ["xmlns", "viewBox"], Ot = { key: 0 }, It = ["id"], Dt = ["stop-color"], Bt = ["offset", "stop-color"], Mt = ["offset", "stop-color"], Gt = ["stop-color"], Vt = { key: 1 }, jt = ["id", "cx", "cy"], Ht = ["stop-color", "stop-opacity"], Rt = ["stop-color"], Ut = ["id"], Et = ["id"], Wt = /* @__PURE__ */ At(() => /* @__PURE__ */ h("feColorMatrix", {
15
16
  type: "saturate",
16
17
  values: "0"
17
- }, null, -1)), Rt = ["id"], Ut = ["flood-color"], Et = ["id"], Wt = ["flood-color"], qt = ["d", "stroke", "filter"], Jt = ["x1", "y1", "x2", "y2", "stroke", "filter"], Kt = ["cx", "cy", "r", "fill", "filter"], Qt = ["stroke", "d"], Zt = ["d", "fill", "stroke", "stroke-width", "filter"], el = { key: 0 }, tl = ["stroke", "d"], ll = { key: 0 }, al = ["d", "stroke", "stroke-width", "filter"], ol = ["d", "fill", "stroke", "stroke-width", "filter"], ul = { key: 1 }, sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], nl = ["cx", "cy", "r", "stroke"], rl = ["cx", "cy", "r", "fill"], il = { key: 0 }, vl = ["d", "fill", "onMouseenter", "onClick"], cl = { key: 1 }, dl = ["cx", "cy", "r", "fill"], hl = ["x", "y", "fill", "font-size"], yl = ["x", "y", "fill", "font-size"], fl = ["x", "y", "fill", "font-size"], pl = ["x", "y", "fill", "font-size"], gl = ["filter"], bl = { key: 0 }, ml = ["x", "y"], wl = { key: 1 }, kl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], _l = ["cx", "cy", "fill", "stroke", "filter", "onClick"], xl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Cl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], $l = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Pl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Sl = { key: 2 }, Ll = ["x", "y", "width"], Fl = ["x", "y", "width"], zl = {
18
- key: 3,
18
+ }, null, -1)), qt = ["id"], Jt = ["flood-color"], Kt = ["id"], Qt = ["flood-color"], Zt = ["d", "stroke", "filter"], el = ["x1", "y1", "x2", "y2", "stroke", "filter"], tl = ["cx", "cy", "r", "fill", "filter"], ll = ["stroke", "d"], al = ["d", "fill", "stroke", "stroke-width", "filter"], ol = { key: 0 }, ul = ["stroke", "d"], sl = { key: 0 }, nl = ["d", "stroke", "stroke-width", "filter"], rl = ["d", "fill", "stroke", "stroke-width", "filter"], il = { key: 1 }, vl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], cl = ["cx", "cy", "r", "stroke"], dl = ["cx", "cy", "r", "fill"], hl = { key: 0 }, yl = ["d", "fill", "onMouseenter", "onClick"], fl = { key: 1 }, pl = ["cx", "cy", "r", "fill"], gl = ["x", "y", "fill", "font-size"], bl = ["x", "y", "fill", "font-size"], ml = ["x", "y", "fill", "font-size"], wl = ["x", "y", "fill", "font-size"], kl = ["filter"], _l = { key: 0 }, xl = ["x", "y"], Cl = { key: 1 }, $l = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Pl = ["cx", "cy", "fill", "stroke", "filter", "onClick"], Sl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Ll = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Fl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], Tl = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], zl = { key: 2 }, Yl = ["x", "y", "width"], Al = ["x", "y", "width"], Xl = {
19
+ key: 4,
19
20
  class: "vue-data-ui-watermark"
20
- }, Tl = ["onClick"], Yl = {
21
+ }, Nl = ["onClick"], Ol = {
21
22
  key: 0,
22
23
  style: { "font-variant-numeric": "tabular-nums" }
23
- }, Xl = { key: 1 }, Nl = ["innerHTML"], Ol = {
24
+ }, Il = { key: 1 }, Dl = ["innerHTML"], Bl = {
24
25
  __name: "vue-ui-donut",
25
26
  props: {
26
27
  config: {
@@ -37,30 +38,30 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
37
38
  }
38
39
  },
39
40
  emits: ["selectLegend", "selectDatapoint"],
40
- setup(R, { expose: Ge, emit: ve }) {
41
- const N = R, { vue_ui_donut: Ve } = lt(), U = k({
41
+ setup(W, { expose: He, emit: de }) {
42
+ const X = W, { vue_ui_donut: Re } = ut(), q = _({
42
43
  get() {
43
- return !!N.dataset && N.dataset.length;
44
+ return !!X.dataset && X.dataset.length;
44
45
  },
45
46
  set(l) {
46
47
  return l;
47
48
  }
48
- }), E = d(null), ce = d(null), de = d(null), le = d(null), he = d(0), ye = d(0), fe = d(0);
49
- Je(() => {
50
- pe();
51
- }), Ke(() => {
49
+ }), H = d(null), he = d(null), ye = d(null), le = d(null), fe = d(null), pe = d(0), ge = d(0), be = d(0);
50
+ Ze(() => {
51
+ me();
52
+ }), et(() => {
52
53
  le.value && le.value.disconnect();
53
54
  });
54
- function pe() {
55
- if (at(N.dataset) ? Ae({
55
+ function me() {
56
+ if (st(X.dataset) ? Ge({
56
57
  componentName: "VueUiDonut",
57
58
  type: "dataset"
58
- }) : N.dataset.forEach((l, r) => {
59
- ot({
59
+ }) : X.dataset.forEach((l, r) => {
60
+ nt({
60
61
  datasetObject: l,
61
62
  requiredAttributes: ["name", "values"]
62
63
  }).forEach((t) => {
63
- U.value = !1, Ae({
64
+ q.value = !1, Ge({
64
65
  componentName: "VueUiDonut",
65
66
  type: "datasetSerieAttribute",
66
67
  property: t,
@@ -68,42 +69,43 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
68
69
  });
69
70
  });
70
71
  }), e.value.responsive) {
71
- const l = gt(() => {
72
- const { width: r, height: t } = bt({
73
- chart: E.value,
74
- title: e.value.style.chart.title.text ? ce.value : null,
75
- legend: e.value.style.chart.legend.show ? de.value : null
72
+ const l = wt(() => {
73
+ const { width: r, height: t } = kt({
74
+ chart: H.value,
75
+ title: e.value.style.chart.title.text ? he.value : null,
76
+ legend: e.value.style.chart.legend.show ? ye.value : null,
77
+ source: fe.value
76
78
  });
77
79
  u.value.width = r, u.value.height = t;
78
80
  });
79
- le.value = new ResizeObserver(l), le.value.observe(E.value.parentNode);
81
+ le.value = new ResizeObserver(l), le.value.observe(H.value.parentNode);
80
82
  }
81
83
  }
82
- const w = d(ut()), je = d(null), ae = d(!1), ue = d(""), P = d(null), ge = d(0);
83
- function be() {
84
- const l = Me({
85
- userConfig: N.config,
86
- defaultConfig: Ve
84
+ const k = d(rt()), Ue = d(null), ae = d(!1), se = d(""), S = d(null), we = d(0);
85
+ function ke() {
86
+ const l = je({
87
+ userConfig: X.config,
88
+ defaultConfig: Re
87
89
  });
88
90
  return l.theme ? {
89
- ...Me({
90
- userConfig: dt.vue_ui_donut[l.theme] || N.config,
91
+ ...je({
92
+ userConfig: ft.vue_ui_donut[l.theme] || X.config,
91
93
  defaultConfig: l
92
94
  }),
93
- customPalette: ht[l.theme] || V
95
+ customPalette: pt[l.theme] || j
94
96
  } : l;
95
97
  }
96
- const e = k({
97
- get: () => be(),
98
+ const e = _({
99
+ get: () => ke(),
98
100
  set: (l) => l
99
101
  });
100
- Oe(() => N.config, (l) => {
101
- e.value = be(), pe(), he.value += 1, ye.value += 1, fe.value += 1;
102
+ De(() => X.config, (l) => {
103
+ e.value = ke(), me(), pe.value += 1, ge.value += 1, be.value += 1;
102
104
  }, { deep: !0 });
103
- const { isPrinting: me, isImaging: we, generatePdf: ke, generateImage: _e } = wt({
104
- elementId: `donut__${w.value}`,
105
+ const { isPrinting: _e, isImaging: xe, generatePdf: Ce, generateImage: $e } = xt({
106
+ elementId: `donut__${k.value}`,
105
107
  fileName: e.value.style.chart.title.text || "vue-ui-donut"
106
- }), xe = k(() => st(e.value.customPalette)), y = d({
108
+ }), Pe = _(() => it(e.value.customPalette)), y = d({
107
109
  dataLabels: {
108
110
  show: e.value.style.chart.layout.labels.dataLabels.show
109
111
  },
@@ -112,92 +114,92 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
112
114
  }), u = d({
113
115
  height: 360,
114
116
  width: 512
115
- }), W = k(() => {
117
+ }), J = _(() => {
116
118
  const l = e.value.style.chart.layout.donut.strokeWidth / 512, r = u.value.width * l, t = r > C.value ? C.value : r;
117
119
  return t < 24 ? 24 : t;
118
- }), M = k(() => N.dataset.map((l, r) => ({
120
+ }), M = _(() => X.dataset.map((l, r) => ({
119
121
  name: l.name,
120
- color: Be(l.color) || xe.value[r] || V[r] || V[r % V.length],
122
+ color: Ve(l.color) || Pe.value[r] || j[r] || j[r % j.length],
121
123
  value: l.values.reduce((t, a) => t + a, 0),
122
124
  absoluteValues: l.values,
123
125
  comment: l.comment || ""
124
- }))), z = d(M.value);
125
- Oe(() => M.value, (l) => z.value = l);
126
- function He() {
126
+ }))), T = d(M.value);
127
+ De(() => M.value, (l) => T.value = l);
128
+ function Ee() {
127
129
  return M.value.map((l) => ({
128
130
  name: l.name,
129
131
  color: l.color,
130
132
  value: l.value
131
133
  }));
132
134
  }
133
- const O = d([]), Ce = d(null), $e = d(null), G = d(!1);
134
- function Pe(l) {
135
+ const N = d([]), Se = d(null), Le = d(null), G = d(!1);
136
+ function Fe(l) {
135
137
  const r = M.value.find((i, g) => g === l);
136
- let a = z.value.find((i, g) => g === l).value;
137
- if (O.value.includes(l)) {
138
+ let a = T.value.find((i, g) => g === l).value;
139
+ if (N.value.includes(l)) {
138
140
  let g = function() {
139
- a > i ? (cancelAnimationFrame(Ce.value), z.value = z.value.map((p, re) => l === re ? {
141
+ a > i ? (cancelAnimationFrame(Se.value), T.value = T.value.map((p, ve) => l === ve ? {
140
142
  ...p,
141
143
  value: i
142
- } : p), G.value = !1) : (G.value = !0, a += i * 0.025, z.value = z.value.map((p, re) => l === re ? {
144
+ } : p), G.value = !1) : (G.value = !0, a += i * 0.025, T.value = T.value.map((p, ve) => l === ve ? {
143
145
  ...p,
144
146
  value: a
145
- } : p), Ce.value = requestAnimationFrame(g));
147
+ } : p), Se.value = requestAnimationFrame(g));
146
148
  };
147
- O.value = O.value.filter((p) => p !== l);
149
+ N.value = N.value.filter((p) => p !== l);
148
150
  const i = r.value;
149
151
  g();
150
- } else if (O.value.length < M.value.length - 1) {
152
+ } else if (N.value.length < M.value.length - 1) {
151
153
  let i = function() {
152
- a < 0.1 ? (cancelAnimationFrame($e.value), O.value.push(l), z.value = z.value.map((g, p) => l === p ? {
154
+ a < 0.1 ? (cancelAnimationFrame(Le.value), N.value.push(l), T.value = T.value.map((g, p) => l === p ? {
153
155
  ...g,
154
156
  value: 0
155
- } : g), G.value = !1) : (G.value = !0, a /= 1.1, z.value = z.value.map((g, p) => l === p ? {
157
+ } : g), G.value = !1) : (G.value = !0, a /= 1.1, T.value = T.value.map((g, p) => l === p ? {
156
158
  ...g,
157
159
  value: a
158
- } : g), $e.value = requestAnimationFrame(i));
160
+ } : g), Le.value = requestAnimationFrame(i));
159
161
  };
160
162
  i();
161
163
  }
162
- ve("selectLegend", D.value.map((i) => ({
164
+ de("selectLegend", I.value.map((i) => ({
163
165
  name: i.name,
164
166
  color: i.color,
165
167
  value: i.value
166
168
  })));
167
169
  }
168
- const D = k(() => (z.value.forEach((l, r) => {
170
+ const I = _(() => (T.value.forEach((l, r) => {
169
171
  if ([null, void 0].includes(l.values))
170
172
  return {
171
173
  ...l,
172
174
  values: []
173
175
  };
174
- }), z.value.map((l, r) => ({
176
+ }), T.value.map((l, r) => ({
175
177
  ...l,
176
178
  seriesIndex: r
177
- })).filter((l, r) => !O.value.includes(r)))), Se = k(() => N.dataset.map((l, r) => ({
179
+ })).filter((l, r) => !N.value.includes(r)))), Te = _(() => X.dataset.map((l, r) => ({
178
180
  name: l.name,
179
- color: Be(l.color) || xe.value[r] || V[r] || V[r % V.length],
181
+ color: Ve(l.color) || Pe.value[r] || j[r] || j[r % j.length],
180
182
  value: (l.values || []).reduce((t, a) => t + a, 0),
181
183
  shape: "circle"
182
184
  })).map((l, r) => ({
183
185
  ...l,
184
- proportion: l.value / N.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
185
- opacity: O.value.includes(r) ? 0.5 : 1,
186
- segregate: () => Pe(r),
187
- isSegregated: O.value.includes(r)
188
- }))), Re = k(() => ({
186
+ proportion: l.value / X.dataset.map((t) => (t.values || []).reduce((a, i) => a + i, 0)).reduce((t, a) => t + a, 0),
187
+ opacity: N.value.includes(r) ? 0.5 : 1,
188
+ segregate: () => Fe(r),
189
+ isSegregated: N.value.includes(r)
190
+ }))), We = _(() => ({
189
191
  cy: "donut-div-legend",
190
192
  backgroundColor: e.value.style.chart.legend.backgroundColor,
191
193
  color: e.value.style.chart.legend.color,
192
194
  fontSize: e.value.style.chart.legend.fontSize,
193
195
  paddingBottom: 12,
194
196
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
195
- })), C = k(() => {
197
+ })), C = _(() => {
196
198
  const l = Math.min(u.value.width / 3, u.value.height / 3);
197
199
  return l < 55 ? 55 : l;
198
- }), f = k(() => nt({ series: D.value }, u.value.width / 2, u.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, W.value)), c = k(() => {
199
- const l = Math.max(...D.value.map((t) => t.value)), r = D.value.map((t) => t.value / l);
200
- return rt({
200
+ }), f = _(() => vt({ series: I.value }, u.value.width / 2, u.value.height / 2, C.value, C.value, 1.99999, 2, 1, 360, 105.25, J.value)), c = _(() => {
201
+ const l = Math.max(...I.value.map((t) => t.value)), r = I.value.map((t) => t.value / l);
202
+ return ct({
201
203
  series: r,
202
204
  center: {
203
205
  x: u.value.width / 2,
@@ -206,18 +208,18 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
206
208
  maxRadius: Math.min(u.value.width, u.value.height) / 3
207
209
  });
208
210
  });
209
- function j(l) {
211
+ function R(l) {
210
212
  return l.x > u.value.width / 2 + 6 ? "start" : l.x < u.value.width / 2 - 6 ? "end" : "middle";
211
213
  }
212
- function Ue(l) {
214
+ function qe(l) {
213
215
  return l.middlePoint.y > u.value.height / 2 ? F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y : F({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y - 100;
214
216
  }
215
- function T(l) {
217
+ function z(l) {
216
218
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
217
219
  }
218
- function se(l, r) {
219
- const t = l.value / Ee(r);
220
- return isNaN(t) ? 0 : X(
220
+ function ne(l, r) {
221
+ const t = l.value / Je(r);
222
+ return isNaN(t) ? 0 : A(
221
223
  e.value.style.chart.layout.labels.percentage.formatter,
222
224
  t * 100,
223
225
  L({
@@ -228,15 +230,15 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
228
230
  { datapoint: l }
229
231
  );
230
232
  }
231
- function Ee(l) {
233
+ function Je(l) {
232
234
  return [...l].map((r) => r.value).reduce((r, t) => r + t, 0);
233
235
  }
234
- const $ = k(() => D.value.map((l) => l.value).reduce((l, r) => l + r, 0)), Le = k(() => $.value / D.value.length), ne = d(null), q = d(!1);
235
- function Fe({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
236
- ne.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, P.value = r;
236
+ const $ = _(() => I.value.map((l) => l.value).reduce((l, r) => l + r, 0)), ze = _(() => $.value / I.value.length), re = d(null), K = d(!1);
237
+ function Ye({ datapoint: l, relativeIndex: r, seriesIndex: t, show: a = !1 }) {
238
+ re.value = { datapoint: l, seriesIndex: t, config: e.value, series: M.value }, ae.value = a, S.value = r;
237
239
  let i = "";
238
240
  const g = e.value.style.chart.tooltip.customFormat;
239
- if (q.value = !1, yt(g))
241
+ if (K.value = !1, gt(g))
240
242
  try {
241
243
  const p = g({
242
244
  seriesIndex: t,
@@ -244,12 +246,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
244
246
  series: M.value,
245
247
  config: e.value
246
248
  });
247
- typeof p == "string" && (ue.value = p, q.value = !0);
249
+ typeof p == "string" && (se.value = p, K.value = !0);
248
250
  } catch {
249
- console.warn("Custom format cannot be applied."), q.value = !1;
251
+ console.warn("Custom format cannot be applied."), K.value = !1;
250
252
  }
251
- if (!q.value) {
252
- if (i += `<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>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${X(
253
+ if (!K.value) {
254
+ if (i += `<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>`, i += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (i += `<b>${A(
253
255
  e.value.style.chart.layout.labels.value.formatter,
254
256
  l.value,
255
257
  L({
@@ -264,7 +266,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
264
266
  seriesIndex: t
265
267
  }
266
268
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
267
- const p = X(
269
+ const p = A(
268
270
  e.value.style.chart.layout.labels.percentage.formatter,
269
271
  l.proportion * 100,
270
272
  L({
@@ -280,41 +282,41 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
280
282
  );
281
283
  e.value.style.chart.tooltip.showValue ? i += `<span>(${p})</span></div>` : i += `<b>${p}</b></div>`;
282
284
  }
283
- e.value.style.chart.comments.showInTooltip && l.comment && (i += `<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>`), ue.value = `<div>${i}</div>`;
285
+ e.value.style.chart.comments.showInTooltip && l.comment && (i += `<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>`), se.value = `<div>${i}</div>`;
284
286
  }
285
287
  }
286
- function J(l) {
287
- return e.value.useBlurOnHover && ![null, void 0].includes(P.value) && P.value !== l ? `url(#blur_${w.value})` : "";
288
+ function Q(l) {
289
+ return e.value.useBlurOnHover && ![null, void 0].includes(S.value) && S.value !== l ? `url(#blur_${k.value})` : "";
288
290
  }
289
- const A = k(() => {
290
- const l = D.value.map((t) => ({
291
+ const D = _(() => {
292
+ const l = I.value.map((t) => ({
291
293
  name: t.name,
292
294
  color: t.color
293
- })), r = D.value.map((t) => t.value);
295
+ })), r = I.value.map((t) => t.value);
294
296
  return { head: l, body: r };
295
297
  });
296
- function ze() {
297
- Ze(() => {
298
- const l = A.value.head.map((a, i) => [[
298
+ function Ae() {
299
+ lt(() => {
300
+ const l = D.value.head.map((a, i) => [[
299
301
  a.name
300
- ], [A.value.body[i]], [isNaN(A.value.body[i] / $.value) ? "-" : A.value.body[i] / $.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = ft(r);
301
- pt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
302
+ ], [D.value.body[i]], [isNaN(D.value.body[i] / $.value) ? "-" : D.value.body[i] / $.value * 100]]), r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = bt(r);
303
+ mt({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-donut" });
302
304
  });
303
305
  }
304
- const oe = k(() => {
306
+ const oe = _(() => {
305
307
  const l = [
306
308
  ' <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>',
307
309
  L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
308
310
  "100%"
309
- ], r = A.value.head.map((i, g) => {
310
- const p = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
311
+ ], r = D.value.head.map((i, g) => {
312
+ const p = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[g], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
311
313
  return [
312
314
  {
313
315
  color: i.color,
314
316
  name: i.name
315
317
  },
316
318
  p,
317
- isNaN(A.value.body[g] / $.value) ? "-" : (A.value.body[g] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
319
+ isNaN(D.value.body[g] / $.value) ? "-" : (D.value.body[g] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
318
320
  ];
319
321
  }), t = {
320
322
  th: {
@@ -339,50 +341,63 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
339
341
  body: r,
340
342
  config: t
341
343
  };
342
- }), K = d(!1);
343
- function We(l) {
344
- K.value = l, ge.value += 1;
344
+ }), Z = d(!1);
345
+ function Ke(l) {
346
+ Z.value = l, we.value += 1;
345
347
  }
346
- const Te = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
347
- function qe(l) {
348
+ const Xe = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
349
+ function Qe(l) {
348
350
  return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((r) => "-").join("");
349
351
  }
350
352
  function B(l, r) {
351
- ve("selectDatapoint", { datapoint: l, index: r });
353
+ de("selectDatapoint", { datapoint: l, index: r });
352
354
  }
353
- function Ye() {
355
+ function Ne() {
354
356
  y.value.showTable = !y.value.showTable;
355
357
  }
356
- function Xe() {
358
+ function Oe() {
357
359
  y.value.dataLabels.show = !y.value.dataLabels.show;
358
360
  }
359
- function Ne() {
361
+ function Ie() {
360
362
  y.value.showTooltip = !y.value.showTooltip;
361
363
  }
362
- return Ge({
363
- getData: He,
364
- generatePdf: ke,
365
- generateCsv: ze,
366
- generateImage: _e,
367
- toggleTable: Ye,
368
- toggleLabels: Xe,
369
- toggleTooltip: Ne
364
+ const ue = d(!1);
365
+ function ie() {
366
+ ue.value = !ue.value;
367
+ }
368
+ return He({
369
+ getData: Ee,
370
+ generatePdf: Ce,
371
+ generateCsv: Ae,
372
+ generateImage: $e,
373
+ toggleTable: Ne,
374
+ toggleLabels: Oe,
375
+ toggleTooltip: Ie,
376
+ toggleAnnotator: ie
370
377
  }), (l, r) => (o(), n("div", {
371
378
  ref_key: "donutChart",
372
- ref: E,
373
- class: ie(`vue-ui-donut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
379
+ ref: H,
380
+ class: ce(`vue-ui-donut ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
374
381
  style: Y(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
375
- id: `donut__${w.value}`
382
+ id: `donut__${k.value}`
376
383
  }, [
377
- _(l.$slots, "userConfig", {}, void 0, !0),
378
- e.value.style.chart.title.text ? (o(), n("div", {
384
+ e.value.userOptions.buttons.annotator ? (o(), V(zt, {
379
385
  key: 0,
386
+ parent: H.value,
387
+ backgroundColor: e.value.style.chart.backgroundColor,
388
+ color: e.value.style.chart.color,
389
+ active: ue.value,
390
+ onClose: ie
391
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
392
+ m(l.$slots, "userConfig", {}, void 0, !0),
393
+ e.value.style.chart.title.text ? (o(), n("div", {
394
+ key: 1,
380
395
  ref_key: "chartTitle",
381
- ref: ce,
396
+ ref: he,
382
397
  style: "width:100%;background:transparent;padding-bottom:24px"
383
398
  }, [
384
- (o(), H(mt, {
385
- key: `title_${he.value}`,
399
+ (o(), V(_t, {
400
+ key: `title_${pe.value}`,
386
401
  config: {
387
402
  title: {
388
403
  cy: "donut-div-title",
@@ -395,15 +410,15 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
395
410
  }
396
411
  }, null, 8, ["config"]))
397
412
  ], 512)) : v("", !0),
398
- e.value.userOptions.show && U.value ? (o(), H(kt, {
413
+ e.value.userOptions.show && q.value ? (o(), V(Ct, {
399
414
  ref_key: "details",
400
- ref: je,
401
- key: `user_option_${ge.value}`,
415
+ ref: Ue,
416
+ key: `user_option_${we.value}`,
402
417
  backgroundColor: e.value.style.chart.backgroundColor,
403
418
  color: e.value.style.chart.color,
404
- isPrinting: s(me),
405
- isImaging: s(we),
406
- uid: w.value,
419
+ isPrinting: s(_e),
420
+ isImaging: s(xe),
421
+ uid: k.value,
407
422
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
408
423
  hasPdf: e.value.userOptions.buttons.pdf,
409
424
  hasImg: e.value.userOptions.buttons.img,
@@ -411,124 +426,134 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
411
426
  hasTable: e.value.userOptions.buttons.table,
412
427
  hasLabel: e.value.userOptions.buttons.labels,
413
428
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
- isFullscreen: K.value,
415
- chartElement: E.value,
429
+ isFullscreen: Z.value,
430
+ chartElement: H.value,
416
431
  position: e.value.userOptions.position,
417
432
  isTooltip: y.value.showTooltip,
418
433
  titles: { ...e.value.userOptions.buttonTitles },
419
- onToggleFullscreen: We,
420
- onGeneratePdf: s(ke),
421
- onGenerateCsv: ze,
422
- onGenerateImage: s(_e),
423
- onToggleTable: Ye,
424
- onToggleLabels: Xe,
425
- onToggleTooltip: Ne
426
- }, Qe({ _: 2 }, [
434
+ hasAnnotator: e.value.userOptions.buttons.annotator,
435
+ isAnnotation: ue.value,
436
+ onToggleFullscreen: Ke,
437
+ onGeneratePdf: s(Ce),
438
+ onGenerateCsv: Ae,
439
+ onGenerateImage: s($e),
440
+ onToggleTable: Ne,
441
+ onToggleLabels: Oe,
442
+ onToggleTooltip: Ie,
443
+ onToggleAnnotator: ie
444
+ }, tt({ _: 2 }, [
427
445
  l.$slots.optionTooltip ? {
428
446
  name: "optionTooltip",
429
- fn: S(() => [
430
- _(l.$slots, "optionTooltip", {}, void 0, !0)
447
+ fn: P(() => [
448
+ m(l.$slots, "optionTooltip", {}, void 0, !0)
431
449
  ]),
432
450
  key: "0"
433
451
  } : void 0,
434
452
  l.$slots.optionPdf ? {
435
453
  name: "optionPdf",
436
- fn: S(() => [
437
- _(l.$slots, "optionPdf", {}, void 0, !0)
454
+ fn: P(() => [
455
+ m(l.$slots, "optionPdf", {}, void 0, !0)
438
456
  ]),
439
457
  key: "1"
440
458
  } : void 0,
441
459
  l.$slots.optionCsv ? {
442
460
  name: "optionCsv",
443
- fn: S(() => [
444
- _(l.$slots, "optionCsv", {}, void 0, !0)
461
+ fn: P(() => [
462
+ m(l.$slots, "optionCsv", {}, void 0, !0)
445
463
  ]),
446
464
  key: "2"
447
465
  } : void 0,
448
466
  l.$slots.optionImg ? {
449
467
  name: "optionImg",
450
- fn: S(() => [
451
- _(l.$slots, "optionImg", {}, void 0, !0)
468
+ fn: P(() => [
469
+ m(l.$slots, "optionImg", {}, void 0, !0)
452
470
  ]),
453
471
  key: "3"
454
472
  } : void 0,
455
473
  l.$slots.optionTable ? {
456
474
  name: "optionTable",
457
- fn: S(() => [
458
- _(l.$slots, "optionTable", {}, void 0, !0)
475
+ fn: P(() => [
476
+ m(l.$slots, "optionTable", {}, void 0, !0)
459
477
  ]),
460
478
  key: "4"
461
479
  } : void 0,
462
480
  l.$slots.optionLabels ? {
463
481
  name: "optionLabels",
464
- fn: S(() => [
465
- _(l.$slots, "optionLabels", {}, void 0, !0)
482
+ fn: P(() => [
483
+ m(l.$slots, "optionLabels", {}, void 0, !0)
466
484
  ]),
467
485
  key: "5"
468
486
  } : void 0,
469
487
  l.$slots.optionFullscreen ? {
470
488
  name: "optionFullscreen",
471
- fn: S(({ toggleFullscreen: t, isFullscreen: a }) => [
472
- _(l.$slots, "optionFullscreen", Q(Z({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
489
+ fn: P(({ toggleFullscreen: t, isFullscreen: a }) => [
490
+ m(l.$slots, "optionFullscreen", U(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
473
491
  ]),
474
492
  key: "6"
493
+ } : void 0,
494
+ l.$slots.optionAnnotator ? {
495
+ name: "optionAnnotator",
496
+ fn: P(({ toggleAnnotator: t, isAnnotator: a }) => [
497
+ m(l.$slots, "optionAnnotator", U(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
498
+ ]),
499
+ key: "7"
475
500
  } : void 0
476
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
477
- U.value ? (o(), n("svg", {
478
- key: 2,
479
- xmlns: s(it),
480
- class: ie({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
501
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
502
+ q.value ? (o(), n("svg", {
503
+ key: 3,
504
+ xmlns: s(dt),
505
+ class: ce({ "vue-data-ui-fullscreen--on": Z.value, "vue-data-ui-fulscreen--off": !Z.value }),
481
506
  viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
482
507
  style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
483
508
  }, [
484
- Ie(St),
485
- e.value.type === "classic" ? (o(), n("defs", Yt, [
509
+ Be(Tt),
510
+ e.value.type === "classic" ? (o(), n("defs", Ot, [
486
511
  e.value.style.chart.useGradient ? (o(), n("radialGradient", {
487
512
  key: 0,
488
- id: `gradient_${w.value}`
513
+ id: `gradient_${k.value}`
489
514
  }, [
490
515
  h("stop", {
491
516
  offset: "0%",
492
517
  "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
493
518
  "stop-opacity": "0"
494
- }, null, 8, Nt),
519
+ }, null, 8, Dt),
495
520
  h("stop", {
496
- offset: `${(1 - W.value / C.value) * 100}%`,
521
+ offset: `${(1 - J.value / C.value) * 100}%`,
497
522
  "stop-color": s(ee)("#FFFFFF", 0),
498
523
  "stop-opacity": "0"
499
- }, null, 8, Ot),
524
+ }, null, 8, Bt),
500
525
  h("stop", {
501
- offset: `${(1 - W.value / C.value / 2) * 100}%`,
526
+ offset: `${(1 - J.value / C.value / 2) * 100}%`,
502
527
  "stop-color": s(ee)("#FFFFFF", e.value.style.chart.gradientIntensity)
503
- }, null, 8, It),
528
+ }, null, 8, Mt),
504
529
  h("stop", {
505
530
  offset: "100%",
506
531
  "stop-color": s(ee)(e.value.style.chart.backgroundColor, 0),
507
532
  "stop-opacity": "0"
508
- }, null, 8, Dt)
509
- ], 8, Xt)) : v("", !0)
533
+ }, null, 8, Gt)
534
+ ], 8, It)) : v("", !0)
510
535
  ])) : v("", !0),
511
- e.value.type === "polar" ? (o(), n("defs", At, [
512
- (o(!0), n(m, null, I(c.value, (t, a) => (o(), n("radialGradient", {
513
- id: `polar_gradient_${a}_${w.value}`,
536
+ e.value.type === "polar" ? (o(), n("defs", Vt, [
537
+ (o(!0), n(w, null, O(c.value, (t, a) => (o(), n("radialGradient", {
538
+ id: `polar_gradient_${a}_${k.value}`,
514
539
  cx: t.middlePoint.x / u.value.width * 100 + "%",
515
540
  cy: t.middlePoint.y / u.value.height * 100 + "%",
516
541
  r: "62%"
517
542
  }, [
518
543
  h("stop", {
519
544
  offset: "0%",
520
- "stop-color": s(vt)(f.value[a].color, 0.05),
545
+ "stop-color": s(ht)(f.value[a].color, 0.05),
521
546
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
522
- }, null, 8, Mt),
547
+ }, null, 8, Ht),
523
548
  h("stop", {
524
549
  offset: "100%",
525
550
  "stop-color": f.value[a].color
526
- }, null, 8, Gt)
527
- ], 8, Bt))), 256))
551
+ }, null, 8, Rt)
552
+ ], 8, jt))), 256))
528
553
  ])) : v("", !0),
529
554
  h("defs", null, [
530
555
  h("filter", {
531
- id: `blur_${w.value}`,
556
+ id: `blur_${k.value}`,
532
557
  x: "-50%",
533
558
  y: "-50%",
534
559
  width: "200%",
@@ -537,12 +562,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
537
562
  h("feGaussianBlur", {
538
563
  in: "SourceGraphic",
539
564
  stdDeviation: 2,
540
- id: `blur_std_${w.value}`
541
- }, null, 8, jt),
542
- Ht
543
- ], 8, Vt),
565
+ id: `blur_std_${k.value}`
566
+ }, null, 8, Et),
567
+ Wt
568
+ ], 8, Ut),
544
569
  h("filter", {
545
- id: `shadow_${w.value}`,
570
+ id: `shadow_${k.value}`,
546
571
  "color-interpolation-filters": "sRGB"
547
572
  }, [
548
573
  h("feDropShadow", {
@@ -551,10 +576,10 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
551
576
  stdDeviation: "10",
552
577
  "flood-opacity": "0.5",
553
578
  "flood-color": e.value.style.chart.layout.donut.shadowColor
554
- }, null, 8, Ut)
555
- ], 8, Rt),
579
+ }, null, 8, Jt)
580
+ ], 8, qt),
556
581
  h("filter", {
557
- id: `drop_shadow_${w.value}`,
582
+ id: `drop_shadow_${k.value}`,
558
583
  "color-interpolation-filters": "sRGB",
559
584
  x: "-50%",
560
585
  y: "-50%",
@@ -567,23 +592,23 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
567
592
  stdDeviation: "3",
568
593
  "flood-opacity": "1",
569
594
  "flood-color": e.value.style.chart.layout.donut.shadowColor
570
- }, null, 8, Wt)
571
- ], 8, Et)
595
+ }, null, 8, Qt)
596
+ ], 8, Kt)
572
597
  ]),
573
- e.value.type === "classic" ? (o(!0), n(m, { key: 2 }, I(f.value, (t, a) => (o(), n("g", null, [
574
- T(t) && y.value.dataLabels.show ? (o(), n("path", {
598
+ e.value.type === "classic" ? (o(!0), n(w, { key: 2 }, O(f.value, (t, a) => (o(), n("g", null, [
599
+ z(t) && y.value.dataLabels.show ? (o(), n("path", {
575
600
  key: 0,
576
- d: s(ct)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, W.value),
601
+ d: s(yt)(t, { x: u.value.width / 2, y: u.value.height / 2 }, 16, 16, !1, !1, J.value),
577
602
  stroke: t.color,
578
603
  "stroke-width": "1",
579
604
  "stroke-linecap": "round",
580
605
  "stroke-linejoin": "round",
581
606
  fill: "none",
582
- filter: J(a)
583
- }, null, 8, qt)) : v("", !0)
607
+ filter: Q(a)
608
+ }, null, 8, Zt)) : v("", !0)
584
609
  ]))), 256)) : v("", !0),
585
- e.value.type === "polar" ? (o(!0), n(m, { key: 3 }, I(f.value, (t, a) => (o(), n("g", null, [
586
- T(t) && y.value.dataLabels.show ? (o(), n("line", {
610
+ e.value.type === "polar" ? (o(!0), n(w, { key: 3 }, O(f.value, (t, a) => (o(), n("g", null, [
611
+ z(t) && y.value.dataLabels.show ? (o(), n("line", {
587
612
  key: 0,
588
613
  x1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
589
614
  y1: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
@@ -594,8 +619,8 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
594
619
  "stroke-linecap": "round",
595
620
  "stroke-linejoin": "round",
596
621
  fill: "none",
597
- filter: J(a)
598
- }, null, 8, Jt)) : v("", !0)
622
+ filter: Q(a)
623
+ }, null, 8, el)) : v("", !0)
599
624
  ]))), 256)) : v("", !0),
600
625
  e.value.type === "classic" ? (o(), n("circle", {
601
626
  key: 4,
@@ -603,57 +628,57 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
603
628
  cy: u.value.height / 2,
604
629
  r: C.value <= 0 ? 10 : C.value,
605
630
  fill: e.value.style.chart.backgroundColor,
606
- filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${w.value})` : ""
607
- }, null, 8, Kt)) : v("", !0),
608
- $.value && e.value.type === "classic" ? (o(), n(m, { key: 5 }, [
609
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
631
+ filter: e.value.style.chart.layout.donut.useShadow ? `url(#shadow_${k.value})` : ""
632
+ }, null, 8, tl)) : v("", !0),
633
+ $.value && e.value.type === "classic" ? (o(), n(w, { key: 5 }, [
634
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
610
635
  stroke: e.value.style.chart.backgroundColor,
611
636
  d: t.arcSlice,
612
637
  fill: "#FFFFFF"
613
- }, null, 8, Qt))), 256)),
614
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
638
+ }, null, 8, ll))), 256)),
639
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
615
640
  class: "vue-ui-donut-arc-path",
616
641
  d: t.arcSlice,
617
642
  fill: s(ee)(t.color, 80),
618
643
  stroke: e.value.style.chart.backgroundColor,
619
644
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
620
- filter: J(a)
621
- }, null, 8, Zt))), 256))
645
+ filter: Q(a)
646
+ }, null, 8, al))), 256))
622
647
  ], 64)) : v("", !0),
623
- $.value && e.value.type === "polar" ? (o(), n(m, { key: 6 }, [
624
- f.value.length > 1 ? (o(), n("g", el, [
625
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
648
+ $.value && e.value.type === "polar" ? (o(), n(w, { key: 6 }, [
649
+ f.value.length > 1 ? (o(), n("g", ol, [
650
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
626
651
  stroke: e.value.style.chart.backgroundColor,
627
652
  d: c.value[a].path,
628
653
  fill: "#FFFFFF"
629
- }, null, 8, tl))), 256)),
630
- e.value.style.chart.layout.donut.useShadow ? (o(), n("g", ll, [
631
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
654
+ }, null, 8, ul))), 256)),
655
+ e.value.style.chart.layout.donut.useShadow ? (o(), n("g", sl, [
656
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
632
657
  class: "vue-ui-donut-arc-path",
633
658
  d: c.value[a].path,
634
659
  fill: "transparent",
635
660
  stroke: e.value.style.chart.backgroundColor,
636
661
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
637
- filter: `url(#drop_shadow_${w.value})`
638
- }, null, 8, al))), 256))
662
+ filter: `url(#drop_shadow_${k.value})`
663
+ }, null, 8, nl))), 256))
639
664
  ])) : v("", !0),
640
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
665
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
641
666
  class: "vue-ui-donut-arc-path",
642
667
  d: c.value[a].path,
643
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${w.value})` : t.color,
668
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${k.value})` : t.color,
644
669
  stroke: e.value.style.chart.backgroundColor,
645
670
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
646
- filter: J(a)
647
- }, null, 8, ol))), 256))
648
- ])) : (o(), n("g", ul, [
671
+ filter: Q(a)
672
+ }, null, 8, rl))), 256))
673
+ ])) : (o(), n("g", il, [
649
674
  h("circle", {
650
675
  cx: u.value.width / 2,
651
676
  cy: u.value.height / 2,
652
677
  r: C.value,
653
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${w.value})` : f.value[0].color,
678
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${k.value})` : f.value[0].color,
654
679
  stroke: e.value.style.chart.backgroundColor,
655
680
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
656
- }, null, 8, sl)
681
+ }, null, 8, vl)
657
682
  ]))
658
683
  ], 64)) : (o(), n("circle", {
659
684
  key: 7,
@@ -662,7 +687,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
662
687
  r: C.value <= 0 ? 10 : C.value,
663
688
  fill: "transparent",
664
689
  stroke: e.value.style.chart.backgroundColor
665
- }, null, 8, nl)),
690
+ }, null, 8, cl)),
666
691
  e.value.style.chart.useGradient && e.value.type === "classic" ? (o(), n("circle", {
667
692
  key: 8,
668
693
  cx: u.value.width / 2,
@@ -671,46 +696,46 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
671
696
  /* This might require adjustments */
672
697
  C.value <= 0 ? 10 : C.value
673
698
  ),
674
- fill: `url(#gradient_${w.value})`
675
- }, null, 8, rl)) : v("", !0),
676
- $.value ? (o(), n(m, { key: 9 }, [
677
- f.value.length > 1 || e.value.type === "classic" ? (o(), n("g", il, [
678
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("path", {
699
+ fill: `url(#gradient_${k.value})`
700
+ }, null, 8, dl)) : v("", !0),
701
+ $.value ? (o(), n(w, { key: 9 }, [
702
+ f.value.length > 1 || e.value.type === "classic" ? (o(), n("g", hl, [
703
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("path", {
679
704
  "data-cy-donut-trap": "",
680
705
  d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
681
- fill: P.value === a ? "rgba(0,0,0,0.1)" : "transparent",
682
- onMouseenter: (i) => Fe({
706
+ fill: S.value === a ? "rgba(0,0,0,0.1)" : "transparent",
707
+ onMouseenter: (i) => Ye({
683
708
  datapoint: t,
684
709
  relativeIndex: a,
685
710
  seriesIndex: t.seriesIndex,
686
711
  show: !0
687
712
  }),
688
713
  onMouseleave: r[0] || (r[0] = (i) => {
689
- ae.value = !1, P.value = null;
714
+ ae.value = !1, S.value = null;
690
715
  }),
691
716
  onClick: (i) => B(t, a)
692
- }, null, 40, vl))), 256))
693
- ])) : (o(), n("g", cl, [
717
+ }, null, 40, yl))), 256))
718
+ ])) : (o(), n("g", fl, [
694
719
  h("circle", {
695
720
  cx: u.value.width / 2,
696
721
  cy: u.value.height / 2,
697
722
  r: C.value,
698
- fill: P.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
723
+ fill: S.value === l.i ? "rgba(0,0,0,0.1)" : "transparent",
699
724
  "data-cy-donut-trap": "",
700
- onMouseenter: r[1] || (r[1] = (t) => Fe({
725
+ onMouseenter: r[1] || (r[1] = (t) => Ye({
701
726
  datapoint: f.value[0],
702
727
  relativeIndex: 0,
703
728
  seriesIndex: f.value[0].seriesIndex,
704
729
  show: !0
705
730
  })),
706
731
  onMouseleave: r[2] || (r[2] = (t) => {
707
- ae.value = !1, P.value = null;
732
+ ae.value = !1, S.value = null;
708
733
  }),
709
734
  onClick: r[3] || (r[3] = (t) => B(f.value[0], l.i))
710
- }, null, 40, dl)
735
+ }, null, 40, pl)
711
736
  ]))
712
737
  ], 64)) : v("", !0),
713
- e.value.type === "classic" ? (o(), n(m, { key: 10 }, [
738
+ e.value.type === "classic" ? (o(), n(w, { key: 10 }, [
714
739
  e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
715
740
  key: 0,
716
741
  "text-anchor": "middle",
@@ -719,7 +744,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
719
744
  fill: e.value.style.chart.layout.labels.hollow.total.color,
720
745
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
721
746
  style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
722
- }, x(e.value.style.chart.layout.labels.hollow.total.text), 13, hl)) : v("", !0),
747
+ }, x(e.value.style.chart.layout.labels.hollow.total.text), 13, gl)) : v("", !0),
723
748
  e.value.style.chart.layout.labels.hollow.total.show ? (o(), n("text", {
724
749
  key: 1,
725
750
  "text-anchor": "middle",
@@ -728,7 +753,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
728
753
  fill: e.value.style.chart.layout.labels.hollow.total.value.color,
729
754
  "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
730
755
  style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
731
- }, x(s(X)(
756
+ }, x(s(A)(
732
757
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
733
758
  $.value,
734
759
  s(L)({
@@ -736,7 +761,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
736
761
  v: $.value,
737
762
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
738
763
  })
739
- )), 13, yl)) : v("", !0),
764
+ )), 13, bl)) : v("", !0),
740
765
  e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
741
766
  key: 2,
742
767
  "text-anchor": "middle",
@@ -745,7 +770,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
745
770
  fill: e.value.style.chart.layout.labels.hollow.average.color,
746
771
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
747
772
  style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
748
- }, x(e.value.style.chart.layout.labels.hollow.average.text), 13, fl)) : v("", !0),
773
+ }, x(e.value.style.chart.layout.labels.hollow.average.text), 13, ml)) : v("", !0),
749
774
  e.value.style.chart.layout.labels.hollow.average.show ? (o(), n("text", {
750
775
  key: 3,
751
776
  "text-anchor": "middle",
@@ -754,44 +779,44 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
754
779
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
755
780
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
756
781
  style: Y(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
757
- }, x(G.value ? "--" : s(X)(
782
+ }, x(G.value ? "--" : s(A)(
758
783
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
759
- Le.value,
784
+ ze.value,
760
785
  s(L)({
761
786
  p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
762
- v: Le.value,
787
+ v: ze.value,
763
788
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
764
789
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
765
790
  })
766
- )), 13, pl)) : v("", !0)
791
+ )), 13, wl)) : v("", !0)
767
792
  ], 64)) : v("", !0),
768
- (o(!0), n(m, null, I(f.value, (t, a) => (o(), n("g", {
769
- filter: J(a),
770
- class: ie({ animated: e.value.useCssAnimation })
793
+ (o(!0), n(w, null, O(f.value, (t, a) => (o(), n("g", {
794
+ filter: Q(a),
795
+ class: ce({ animated: e.value.useCssAnimation })
771
796
  }, [
772
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", bl, [
797
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (o(), n("g", _l, [
773
798
  (o(), n("foreignObject", {
774
799
  x: s(b)(t, !0).anchor === "end" ? s(b)(t).x - 120 : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - 60 : s(b)(t).x,
775
- y: s(te)(t) - (Te.value ? 20 : 0),
800
+ y: s(te)(t) - (Xe.value ? 20 : 0),
776
801
  width: "120",
777
802
  height: "60",
778
803
  style: { overflow: "visible" }
779
804
  }, [
780
805
  h("div", null, [
781
- _(l.$slots, "dataLabel", Q(Z({
806
+ m(l.$slots, "dataLabel", U(E({
782
807
  datapoint: t,
783
- isBlur: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a,
784
- isSafari: Te.value,
785
- isVisible: T(t) && y.value.dataLabels.show,
808
+ isBlur: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a,
809
+ isSafari: Xe.value,
810
+ isVisible: z(t) && y.value.dataLabels.show,
786
811
  textAlign: s(b)(t, !0, 16, !0).anchor,
787
812
  flexAlign: s(b)(t, !0, 16).anchor,
788
- percentage: se(t, f.value)
813
+ percentage: ne(t, f.value)
789
814
  })), void 0, !0)
790
815
  ])
791
- ], 8, ml))
792
- ])) : (o(), n("g", wl, [
793
- e.value.type === "classic" ? (o(), n(m, { key: 0 }, [
794
- T(t) && y.value.dataLabels.show ? (o(), n("circle", {
816
+ ], 8, xl))
817
+ ])) : (o(), n("g", Cl, [
818
+ e.value.type === "classic" ? (o(), n(w, { key: 0 }, [
819
+ z(t) && y.value.dataLabels.show ? (o(), n("circle", {
795
820
  key: 0,
796
821
  cx: s(b)(t).x,
797
822
  cy: s(te)(t) - 3.5,
@@ -799,12 +824,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
799
824
  stroke: e.value.style.chart.backgroundColor,
800
825
  "stroke-width": 1,
801
826
  r: 3,
802
- filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${w.value})`,
827
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${k.value})`,
803
828
  onClick: (i) => B(t, a)
804
- }, null, 8, kl)) : v("", !0)
829
+ }, null, 8, $l)) : v("", !0)
805
830
  ], 64)) : v("", !0),
806
- e.value.type === "polar" ? (o(), n(m, { key: 1 }, [
807
- T(t) && y.value.dataLabels.show ? (o(), n("circle", {
831
+ e.value.type === "polar" ? (o(), n(w, { key: 1 }, [
832
+ z(t) && y.value.dataLabels.show ? (o(), n("circle", {
808
833
  key: 0,
809
834
  cx: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
810
835
  cy: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
@@ -812,12 +837,12 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
812
837
  stroke: e.value.style.chart.backgroundColor,
813
838
  "stroke-width": 1,
814
839
  r: 3,
815
- filter: !e.value.useBlurOnHover || [null, void 0].includes(P.value) || P.value === a ? "" : `url(#blur_${w.value})`,
840
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(S.value) || S.value === a ? "" : `url(#blur_${k.value})`,
816
841
  onClick: (i) => B(t, a)
817
- }, null, 8, _l)) : v("", !0)
842
+ }, null, 8, Pl)) : v("", !0)
818
843
  ], 64)) : v("", !0),
819
- e.value.type === "classic" ? (o(), n(m, { key: 2 }, [
820
- T(t) && y.value.dataLabels.show ? (o(), n("text", {
844
+ e.value.type === "classic" ? (o(), n(w, { key: 2 }, [
845
+ z(t) && y.value.dataLabels.show ? (o(), n("text", {
821
846
  key: 0,
822
847
  "text-anchor": s(b)(t, !0, 12).anchor,
823
848
  x: s(b)(t, !0, 12).x,
@@ -826,7 +851,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
826
851
  "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
827
852
  style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
828
853
  onClick: (i) => B(t, a)
829
- }, x(se(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
854
+ }, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(A)(
830
855
  e.value.style.chart.layout.labels.value.formatter,
831
856
  t.value,
832
857
  s(L)({
@@ -836,8 +861,8 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
836
861
  r: e.value.style.chart.layout.labels.value.rounding
837
862
  }),
838
863
  { datapoint: t }
839
- )})` : ""), 13, xl)) : v("", !0),
840
- T(t) && y.value.dataLabels.show ? (o(), n("text", {
864
+ )})` : ""), 13, Sl)) : v("", !0),
865
+ z(t) && y.value.dataLabels.show ? (o(), n("text", {
841
866
  key: 1,
842
867
  "text-anchor": s(b)(t).anchor,
843
868
  x: s(b)(t, !0, 12).x,
@@ -846,19 +871,19 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
846
871
  "font-size": e.value.style.chart.layout.labels.name.fontSize,
847
872
  style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
848
873
  onClick: (i) => B(t, a)
849
- }, x(t.name), 13, Cl)) : v("", !0)
874
+ }, x(t.name), 13, Ll)) : v("", !0)
850
875
  ], 64)) : v("", !0),
851
- e.value.type === "polar" ? (o(), n(m, { key: 3 }, [
852
- T(t) && y.value.dataLabels.show ? (o(), n("text", {
876
+ e.value.type === "polar" ? (o(), n(w, { key: 3 }, [
877
+ z(t) && y.value.dataLabels.show ? (o(), n("text", {
853
878
  key: 0,
854
- "text-anchor": j(c.value[a].middlePoint),
879
+ "text-anchor": R(c.value[a].middlePoint),
855
880
  x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
856
881
  y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y,
857
882
  fill: e.value.style.chart.layout.labels.percentage.color,
858
883
  "font-size": e.value.style.chart.layout.labels.percentage.fontSize,
859
884
  style: Y(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
860
885
  onClick: (i) => B(t, a)
861
- }, x(se(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(X)(
886
+ }, x(ne(t, f.value)) + " " + x(e.value.style.chart.layout.labels.value.show ? `(${s(A)(
862
887
  e.value.style.chart.layout.labels.value.formatter,
863
888
  t.value,
864
889
  s(L)({
@@ -868,21 +893,21 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
868
893
  r: e.value.style.chart.layout.labels.value.rounding
869
894
  }),
870
895
  { datapoint: t }
871
- )})` : ""), 13, $l)) : v("", !0),
872
- T(t) && y.value.dataLabels.show ? (o(), n("text", {
896
+ )})` : ""), 13, Fl)) : v("", !0),
897
+ z(t) && y.value.dataLabels.show ? (o(), n("text", {
873
898
  key: 1,
874
- "text-anchor": j(c.value[a].middlePoint),
899
+ "text-anchor": R(c.value[a].middlePoint),
875
900
  x: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x,
876
901
  y: s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).y + e.value.style.chart.layout.labels.percentage.fontSize,
877
902
  fill: e.value.style.chart.layout.labels.name.color,
878
903
  "font-size": e.value.style.chart.layout.labels.name.fontSize,
879
904
  style: Y(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
880
905
  onClick: (i) => B(t, a)
881
- }, x(t.name), 13, Pl)) : v("", !0)
906
+ }, x(t.name), 13, Tl)) : v("", !0)
882
907
  ], 64)) : v("", !0)
883
908
  ])),
884
- y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", Sl, [
885
- T(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
909
+ y.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), n("g", zl, [
910
+ z(t) && e.value.type === "classic" ? (o(), n("foreignObject", {
886
911
  key: 0,
887
912
  x: e.value.style.chart.comments.offsetX + (s(b)(t, !0).anchor === "end" ? s(b)(t).x - e.value.style.chart.comments.width : s(b)(t, !0).anchor === "middle" ? s(b)(t).x - e.value.style.chart.comments.width / 2 : s(b)(t).x),
888
913
  y: s(te)(t) + 24 + e.value.style.chart.comments.offsetY,
@@ -891,61 +916,61 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
891
916
  style: { overflow: "visible", "pointer-events": "none" }
892
917
  }, [
893
918
  h("div", null, [
894
- _(l.$slots, "plot-comment", {
919
+ m(l.$slots, "plot-comment", {
895
920
  plot: { ...t, textAlign: s(b)(t, !0, 16, !0).anchor, flexAlign: s(b)(t, !0, 16).anchor }
896
921
  }, void 0, !0)
897
922
  ])
898
- ], 8, Ll)) : v("", !0),
899
- T(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
923
+ ], 8, Yl)) : v("", !0),
924
+ z(t) && e.value.type === "polar" ? (o(), n("foreignObject", {
900
925
  key: 1,
901
- x: e.value.style.chart.comments.offsetX + (j(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : j(c.value[a].middlePoint) === "middle" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
902
- y: Ue(c.value[a]) + e.value.style.chart.comments.offsetY,
926
+ x: e.value.style.chart.comments.offsetX + (R(c.value[a].middlePoint) === "end" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width : R(c.value[a].middlePoint) === "middle" ? s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(F)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: u.value.width / 2, centerY: u.value.height / 2 }).x),
927
+ y: qe(c.value[a]) + e.value.style.chart.comments.offsetY,
903
928
  width: e.value.style.chart.comments.width,
904
929
  height: "200",
905
930
  style: { overflow: "visible", "pointer-events": "none" }
906
931
  }, [
907
932
  h("div", null, [
908
- _(l.$slots, "plot-comment", {
909
- plot: { ...t, textAlign: j(c.value[a].middlePoint), flexAlign: j(c.value[a].middlePoint) }
933
+ m(l.$slots, "plot-comment", {
934
+ plot: { ...t, textAlign: R(c.value[a].middlePoint), flexAlign: R(c.value[a].middlePoint) }
910
935
  }, void 0, !0)
911
936
  ])
912
- ], 8, Fl)) : v("", !0)
937
+ ], 8, Al)) : v("", !0)
913
938
  ])) : v("", !0)
914
- ], 10, gl))), 256)),
915
- _(l.$slots, "svg", { svg: u.value }, void 0, !0)
916
- ], 14, Tt)) : v("", !0),
917
- l.$slots.watermark ? (o(), n("div", zl, [
918
- _(l.$slots, "watermark", Q(Z({ isPrinting: s(me) || s(we) })), void 0, !0)
939
+ ], 10, kl))), 256)),
940
+ m(l.$slots, "svg", { svg: u.value }, void 0, !0)
941
+ ], 14, Nt)) : v("", !0),
942
+ l.$slots.watermark ? (o(), n("div", Xl, [
943
+ m(l.$slots, "watermark", U(E({ isPrinting: s(_e) || s(xe) })), void 0, !0)
919
944
  ])) : v("", !0),
920
- U.value ? v("", !0) : (o(), H($t, {
921
- key: 4,
945
+ q.value ? v("", !0) : (o(), V(Lt, {
946
+ key: 5,
922
947
  config: {
923
948
  type: "donut",
924
949
  style: {
925
950
  backgroundColor: e.value.style.chart.backgroundColor,
926
951
  donut: {
927
952
  color: "#CCCCCC",
928
- strokeWidth: W.value * 0.8
953
+ strokeWidth: J.value * 0.8
929
954
  }
930
955
  }
931
956
  }
932
957
  }, null, 8, ["config"])),
933
958
  h("div", {
934
959
  ref_key: "chartLegend",
935
- ref: de
960
+ ref: ye
936
961
  }, [
937
- e.value.style.chart.legend.show ? (o(), H(Ct, {
938
- key: `legend_${fe.value}`,
939
- legendSet: Se.value,
940
- config: Re.value,
941
- onClickMarker: r[4] || (r[4] = ({ i: t }) => Pe(t))
962
+ e.value.style.chart.legend.show ? (o(), V(St, {
963
+ key: `legend_${be.value}`,
964
+ legendSet: Te.value,
965
+ config: We.value,
966
+ onClickMarker: r[4] || (r[4] = ({ i: t }) => Fe(t))
942
967
  }, {
943
- item: S(({ legend: t, index: a }) => [
968
+ item: P(({ legend: t, index: a }) => [
944
969
  h("div", {
945
970
  onClick: (i) => t.segregate(),
946
- style: Y(`opacity:${O.value.includes(a) ? 0.5 : 1}`)
971
+ style: Y(`opacity:${N.value.includes(a) ? 0.5 : 1}`)
947
972
  }, [
948
- De(x(t.name) + ": " + x(s(X)(
973
+ Me(x(t.name) + ": " + x(s(A)(
949
974
  e.value.style.chart.layout.labels.value.formatter,
950
975
  t.value,
951
976
  s(L)({
@@ -959,7 +984,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
959
984
  index: a
960
985
  }
961
986
  )) + " ", 1),
962
- O.value.includes(a) ? (o(), n("span", Xl, " ( " + x(qe(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", Yl, " (" + x(isNaN(t.value / $.value) ? "-" : s(X)(
987
+ N.value.includes(a) ? (o(), n("span", Il, " ( " + x(Qe(t.proportion * 100)) + " % ) ", 1)) : (o(), n("span", Ol, " (" + x(isNaN(t.value / $.value) ? "-" : s(A)(
963
988
  e.value.style.chart.layout.labels.percentage.formatter,
964
989
  G.value ? t.proportion * 100 : t.value / $.value * 100,
965
990
  s(L)({
@@ -968,13 +993,21 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
968
993
  r: e.value.style.chart.legend.roundingPercentage
969
994
  })
970
995
  )) + ") ", 1))
971
- ], 12, Tl)
996
+ ], 12, Nl)
972
997
  ]),
973
998
  _: 1
974
999
  }, 8, ["legendSet", "config"])) : v("", !0),
975
- _(l.$slots, "legend", { legend: Se.value }, void 0, !0)
1000
+ m(l.$slots, "legend", { legend: Te.value }, void 0, !0)
976
1001
  ], 512),
977
- Ie(xt, {
1002
+ l.$slots.source ? (o(), n("div", {
1003
+ key: 6,
1004
+ ref_key: "source",
1005
+ ref: fe,
1006
+ dir: "auto"
1007
+ }, [
1008
+ m(l.$slots, "source", {}, void 0, !0)
1009
+ ], 512)) : v("", !0),
1010
+ Be(Pt, {
978
1011
  show: y.value.showTooltip && ae.value,
979
1012
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
980
1013
  color: e.value.style.chart.tooltip.color,
@@ -985,20 +1018,20 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
985
1018
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
986
1019
  position: e.value.style.chart.tooltip.position,
987
1020
  offsetY: e.value.style.chart.tooltip.offsetY,
988
- parent: E.value,
989
- content: ue.value,
990
- isCustom: q.value
1021
+ parent: H.value,
1022
+ content: se.value,
1023
+ isCustom: K.value
991
1024
  }, {
992
- "tooltip-before": S(() => [
993
- _(l.$slots, "tooltip-before", Q(Z({ ...ne.value })), void 0, !0)
1025
+ "tooltip-before": P(() => [
1026
+ m(l.$slots, "tooltip-before", U(E({ ...re.value })), void 0, !0)
994
1027
  ]),
995
- "tooltip-after": S(() => [
996
- _(l.$slots, "tooltip-after", Q(Z({ ...ne.value })), void 0, !0)
1028
+ "tooltip-after": P(() => [
1029
+ m(l.$slots, "tooltip-after", U(E({ ...re.value })), void 0, !0)
997
1030
  ]),
998
1031
  _: 3
999
1032
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
1000
- U.value ? (o(), H(Pt, {
1001
- key: 5,
1033
+ q.value ? (o(), V(Ft, {
1034
+ key: 7,
1002
1035
  hideDetails: "",
1003
1036
  config: {
1004
1037
  open: y.value.showTable,
@@ -1013,9 +1046,9 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
1013
1046
  }
1014
1047
  }
1015
1048
  }, {
1016
- content: S(() => [
1017
- (o(), H(_t, {
1018
- key: `table_${ye.value}`,
1049
+ content: P(() => [
1050
+ (o(), V($t, {
1051
+ key: `table_${ge.value}`,
1019
1052
  colNames: oe.value.colNames,
1020
1053
  head: oe.value.head,
1021
1054
  body: oe.value.body,
@@ -1023,14 +1056,14 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
1023
1056
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1024
1057
  onClose: r[5] || (r[5] = (t) => y.value.showTable = !1)
1025
1058
  }, {
1026
- th: S(({ th: t }) => [
1059
+ th: P(({ th: t }) => [
1027
1060
  h("div", {
1028
1061
  innerHTML: t,
1029
1062
  style: { display: "flex", "align-items": "center" }
1030
- }, null, 8, Nl)
1063
+ }, null, 8, Dl)
1031
1064
  ]),
1032
- td: S(({ td: t }) => [
1033
- De(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(X)(
1065
+ td: P(({ td: t }) => [
1066
+ Me(x(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(A)(
1034
1067
  e.value.style.chart.layout.labels.percentage.formatter,
1035
1068
  t,
1036
1069
  s(L)({
@@ -1038,7 +1071,7 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
1038
1071
  s: "%",
1039
1072
  r: e.value.style.chart.layout.labels.percentage.rounding
1040
1073
  })
1041
- ) : s(X)(
1074
+ ) : s(A)(
1042
1075
  e.value.style.chart.layout.labels.value.formatter,
1043
1076
  t,
1044
1077
  s(L)({
@@ -1054,9 +1087,9 @@ const Ft = (R) => (et("data-v-159f668e"), R = R(), tt(), R), zt = ["id"], Tt = [
1054
1087
  ]),
1055
1088
  _: 1
1056
1089
  }, 8, ["config"])) : v("", !0)
1057
- ], 14, zt));
1090
+ ], 14, Xt));
1058
1091
  }
1059
- }, ql = /* @__PURE__ */ Lt(Ol, [["__scopeId", "data-v-159f668e"]]);
1092
+ }, ea = /* @__PURE__ */ Yt(Bl, [["__scopeId", "data-v-f76d6ac3"]]);
1060
1093
  export {
1061
- ql as default
1094
+ ea as default
1062
1095
  };