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,34 +1,35 @@
1
- import { computed as g, ref as d, watch as De, onMounted as Ke, onBeforeUnmount as Je, openBlock as u, createElementBlock as n, normalizeClass as z, normalizeStyle as ue, createBlock as P, createCommentVNode as y, unref as r, createSlots as Qe, withCtx as m, renderSlot as $, normalizeProps as q, guardReactiveProps as K, createVNode as Oe, createElementVNode as p, Fragment as x, renderList as S, toDisplayString as T, createTextVNode as J, nextTick as Ze, pushScopeId as je, popScopeId as et } from "vue";
2
- import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut, I as ze, d as nt, m as Pe, f as L, X as rt, s as Ae, K as it, k as V, n as ne, i as R, x as Ve, y as dt, q as ct, r as vt } from "./index-DDXisDKy.js";
3
- import { t as ft, u as ht } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as yt } from "./Title-DYNLqCCT.js";
5
- import { u as pt, U as bt } from "./usePrinter-8ofTb2MJ.js";
6
- import { D as gt } from "./DataTable-DL2agEJ3.js";
7
- import { _ as mt } from "./Tooltip-CICAYyQj.js";
8
- import { L as _t } from "./Legend-DXLiSLHd.js";
9
- import wt from "./vue-ui-skeleton-B2sRnIXX.js";
10
- import kt from "./vue-ui-accordion-D_1fE5EF.js";
11
- import { u as Me } from "./useNestedProp-S1UXxUgm.js";
12
- import { _ as xt } from "./PackageVersion-DtnhR89q.js";
13
- import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = ["xmlns", "viewBox"], Ft = ["id"], St = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
1
+ import { computed as m, ref as d, watch as De, onMounted as Ze, onBeforeUnmount as je, openBlock as u, createElementBlock as n, normalizeClass as P, normalizeStyle as re, createBlock as D, createCommentVNode as f, unref as r, createSlots as et, withCtx as g, renderSlot as k, normalizeProps as R, guardReactiveProps as E, createVNode as ze, createElementVNode as y, Fragment as L, renderList as S, toDisplayString as N, createTextVNode as Q, nextTick as tt, pushScopeId as lt, popScopeId as at } from "vue";
2
+ import { u as ot, c as st, t as ut, a as nt, p as Z, o as rt, e as V, b as it, I as Ve, d as dt, m as Me, f as x, X as ct, s as Be, K as vt, k as M, n as ie, i as G, x as Ue, y as ft, q as ht, r as pt } from "./index-Bya_q1J-.js";
3
+ import { t as yt, u as bt } from "./useResponsive-BY8tgM1n.js";
4
+ import { _ as gt } from "./Title-C5pIfQAz.js";
5
+ import { u as mt, U as kt } from "./usePrinter-CiHd1FwD.js";
6
+ import { D as $t } from "./DataTable-DYqC2pqu.js";
7
+ import { _ as wt } from "./Tooltip-Cz24YLfw.js";
8
+ import { L as _t } from "./Legend-DNgTCgEK.js";
9
+ import Lt from "./vue-ui-skeleton-BYssP0K4.js";
10
+ import xt from "./vue-ui-accordion-DfUfL2dI.js";
11
+ import { u as Re } from "./useNestedProp-B33hazbH.js";
12
+ import { _ as Ct } from "./PackageVersion-VkaUzgmt.js";
13
+ import { P as Ft } from "./PenAndPaper-DAZYA8Ew.js";
14
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const de = (B) => (lt("data-v-65f48b0a"), B = B(), at(), B), Tt = ["id"], Nt = ["xmlns", "viewBox"], It = ["id"], At = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
15
16
  offset: "0%",
16
17
  "stop-color": "#FFFFFF",
17
18
  "stop-opacity": "0"
18
- }, null, -1)), Nt = ["offset", "stop-color"], Tt = ["offset", "stop-opacity"], It = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
19
+ }, null, -1)), Ot = ["offset", "stop-color"], Pt = ["offset", "stop-opacity"], Dt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("stop", {
19
20
  offset: "100%",
20
21
  "stop-color": "#FFFFFF",
21
22
  "stop-opacity": "0"
22
- }, null, -1)), Dt = ["id"], Ot = ["id"], zt = /* @__PURE__ */ re(() => /* @__PURE__ */ p("feColorMatrix", {
23
+ }, null, -1)), zt = ["id"], Vt = ["id"], Mt = /* @__PURE__ */ de(() => /* @__PURE__ */ y("feColorMatrix", {
23
24
  type: "saturate",
24
25
  values: "0"
25
- }, null, -1)), Pt = ["id"], At = ["flood-color"], Vt = ["d", "fill", "stroke", "stroke-width", "filter"], Mt = { key: 0 }, Bt = ["d", "fill"], Ut = { key: 1 }, Rt = ["x", "y", "font-size", "font-weight", "fill"], Et = { key: 2 }, Gt = ["filter"], Yt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ht = ["d", "fill", "onMouseenter", "onClick"], qt = {
26
- key: 3,
26
+ }, null, -1)), Bt = ["id"], Ut = ["flood-color"], Rt = ["d", "fill", "stroke", "stroke-width", "filter"], Et = { key: 0 }, Gt = ["d", "fill"], Yt = { key: 1 }, Xt = ["x", "y", "font-size", "font-weight", "fill"], Wt = { key: 2 }, Ht = ["filter"], qt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Kt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Jt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Qt = ["d", "fill", "onMouseenter", "onClick"], Zt = {
27
+ key: 4,
27
28
  class: "vue-data-ui-watermark"
28
- }, Kt = {
29
+ }, jt = {
29
30
  key: 0,
30
31
  class: "vue-ui-nested-donuts-legend-title"
31
- }, Jt = ["onClick"], Qt = ["innerHTML"], Zt = {
32
+ }, el = ["onClick"], tl = ["innerHTML"], ll = {
32
33
  __name: "vue-ui-nested-donuts",
33
34
  props: {
34
35
  config: {
@@ -45,93 +46,94 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
45
46
  }
46
47
  },
47
48
  emits: ["selectLegend", "selectDatapoint"],
48
- setup(M, { expose: Be, emit: ie }) {
49
- const I = M, { vue_ui_nested_donuts: Ue } = tt(), E = g(() => !!I.dataset && I.dataset.length), _ = d(lt()), Z = d(!1), j = d(""), Re = d(null), de = d(0), B = d(null), ce = d(null), ee = d(null), ve = d(0), fe = d(0), he = d(0), U = d(!1);
50
- function Ee(t) {
51
- U.value = t, de.value += 1;
49
+ setup(B, { expose: Ee, emit: ce }) {
50
+ const I = B, { vue_ui_nested_donuts: Ge } = ot(), Y = m(() => !!I.dataset && I.dataset.length), $ = d(st()), j = d(!1), ee = d(""), Ye = d(null), ve = d(0), z = d(null), fe = d(null), te = d(null), he = d(null), pe = d(0), ye = d(0), be = d(0), U = d(!1);
51
+ function Xe(t) {
52
+ U.value = t, ve.value += 1;
52
53
  }
53
- const e = g({
54
- get: () => ye(),
54
+ const e = m({
55
+ get: () => ge(),
55
56
  set: (t) => t
56
57
  });
57
- function ye() {
58
- const t = Me({
58
+ function ge() {
59
+ const t = Re({
59
60
  userConfig: I.config,
60
- defaultConfig: Ue
61
+ defaultConfig: Ge
61
62
  });
62
63
  return t.theme ? {
63
- ...Me({
64
- userConfig: at.vue_ui_nested_donuts[t.theme] || I.config,
64
+ ...Re({
65
+ userConfig: ut.vue_ui_nested_donuts[t.theme] || I.config,
65
66
  defaultConfig: t
66
67
  }),
67
- customPalette: ot[t.theme] || Q
68
+ customPalette: nt[t.theme] || Z
68
69
  } : t;
69
70
  }
70
71
  De(() => I.config, (t) => {
71
- e.value = ye(), pe(), ve.value += 1, fe.value += 1, he.value += 1;
72
+ e.value = ge(), me(), pe.value += 1, ye.value += 1, be.value += 1;
72
73
  }, { deep: !0 });
73
- const G = d(null);
74
- Ke(() => {
75
- pe();
74
+ const X = d(null);
75
+ Ze(() => {
76
+ me();
76
77
  });
77
- function pe() {
78
- if (st(I.dataset) && A({
78
+ function me() {
79
+ if (rt(I.dataset) && V({
79
80
  componentName: "VueUiNestedDonuts",
80
81
  type: "dataset"
81
82
  }), e.value.responsive) {
82
- const t = ft(() => {
83
- const { width: s, height: a } = ht({
84
- chart: B.value,
85
- title: e.value.style.chart.title.text ? ce.value : null,
86
- legend: e.value.style.chart.legend.show ? ee.value : null
83
+ const t = yt(() => {
84
+ const { width: s, height: a } = bt({
85
+ chart: z.value,
86
+ title: e.value.style.chart.title.text ? fe.value : null,
87
+ legend: e.value.style.chart.legend.show ? te.value : null,
88
+ source: he.value
87
89
  });
88
- f.value.width = s, f.value.height = a;
90
+ h.value.width = s, h.value.height = a;
89
91
  });
90
- G.value = new ResizeObserver(t), G.value.observe(B.value.parentNode);
92
+ X.value = new ResizeObserver(t), X.value.observe(z.value.parentNode);
91
93
  }
92
94
  }
93
- Je(() => {
94
- G.value && G.value.disconnect();
95
+ je(() => {
96
+ X.value && X.value.disconnect();
95
97
  });
96
- const { isPrinting: be, isImaging: ge, generatePdf: me, generateImage: _e } = pt({
97
- elementId: `nested_donuts_${_.value}`,
98
+ const { isPrinting: ke, isImaging: $e, generatePdf: we, generateImage: _e } = mt({
99
+ elementId: `nested_donuts_${$.value}`,
98
100
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
99
- }), Ge = g(() => ut(e.value.customPalette)), w = d({
101
+ }), We = m(() => it(e.value.customPalette)), w = d({
100
102
  dataLabels: {
101
103
  show: e.value.style.chart.layout.labels.dataLabels.show
102
104
  },
103
105
  showTable: e.value.table.show,
104
106
  showTooltip: e.value.style.chart.tooltip.show
105
- }), f = d({
107
+ }), h = d({
106
108
  height: 512,
107
109
  width: 512
108
110
  });
109
- function Ye({ datapoint: t, index: s }) {
110
- ie("selectDatapoint", { datapoint: t, index: s });
111
+ function He({ datapoint: t, index: s }) {
112
+ ce("selectDatapoint", { datapoint: t, index: s });
111
113
  }
112
- const h = d([]), C = g(() => (I.dataset.forEach((t, s) => {
113
- [null, void 0].includes(t.name) && A({
114
+ const p = d([]), C = m(() => (I.dataset.forEach((t, s) => {
115
+ [null, void 0].includes(t.name) && V({
114
116
  componentName: "VueUiNestedDonuts",
115
117
  type: "datasetSerieAttribute",
116
118
  property: "name",
117
119
  index: s
118
- }), [null, void 0].includes(t.series) ? A({
120
+ }), [null, void 0].includes(t.series) ? V({
119
121
  componentName: "VueUiNestedDonuts",
120
122
  type: "datasetSerieAttribute",
121
123
  property: "series",
122
124
  index: s
123
- }) : t.series.length === 0 ? A({
125
+ }) : t.series.length === 0 ? V({
124
126
  componentName: "VueUiNestedDonuts",
125
127
  type: "datasetAttributeEmpty",
126
128
  property: `series at index ${s}`
127
129
  }) : t.series.forEach((a, o) => {
128
- [null, void 0].includes(a.name) && A({
130
+ [null, void 0].includes(a.name) && V({
129
131
  componentName: "VueUiNestedDonuts",
130
132
  type: "datasetSerieAttribute",
131
133
  property: "name",
132
134
  index: o,
133
135
  key: "serie"
134
- }), [null, void 0].includes(a.values) && A({
136
+ }), [null, void 0].includes(a.values) && V({
135
137
  componentName: "VueUiNestedDonuts",
136
138
  type: "datasetSerieAttribute",
137
139
  property: "values",
@@ -141,90 +143,90 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
141
143
  });
142
144
  }), I.dataset.map((t, s) => ({
143
145
  ...t,
144
- total: t.series.filter((a) => !h.value.includes(a.id)).map((a) => ze(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
146
+ total: t.series.filter((a) => !p.value.includes(a.id)).map((a) => Ve(a.values).reduce((o, l) => o + l, 0)).reduce((a, o) => a + o, 0),
145
147
  datasetIndex: s,
146
- id: `${_.value}_${s}`,
148
+ id: `${$.value}_${s}`,
147
149
  series: t.series.map((a, o) => ({
148
150
  name: a.name,
149
151
  arcOf: t.name,
150
- arcOfId: `${_.value}_${s}`,
151
- id: `${_.value}_${s}_${o}`,
152
+ arcOfId: `${$.value}_${s}`,
153
+ id: `${$.value}_${s}_${o}`,
152
154
  seriesIndex: o,
153
155
  datasetIndex: s,
154
- color: nt(a.color) || Ge.value[o] || Q[o] || Q[o % Q.length],
155
- value: ze(a.values).reduce((l, i) => l + i, 0),
156
+ color: dt(a.color) || We.value[o] || Z[o] || Z[o % Z.length],
157
+ value: Ve(a.values).reduce((l, i) => l + i, 0),
156
158
  absoluteValues: a.values || []
157
159
  }))
158
- })))), F = g(() => Math.min(f.value.height, f.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), we = g(() => [...C.value].map((t, s) => {
159
- const a = t.series.filter((o) => !h.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
160
+ })))), F = m(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Le = m(() => [...C.value].map((t, s) => {
161
+ const a = t.series.filter((o) => !p.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
160
162
  return {
161
163
  ...t,
162
164
  total: a,
163
- series: t.series.filter((o) => !h.value.includes(o.id)).map((o) => ({
165
+ series: t.series.filter((o) => !p.value.includes(o.id)).map((o) => ({
164
166
  ...o,
165
167
  proportion: o.value / a
166
168
  }))
167
169
  };
168
170
  }));
169
- function Xe(t, s, a) {
171
+ function qe(t, s, a) {
170
172
  let o = 0;
171
173
  for (let l = 0; l < t.length; l += 1)
172
174
  a.includes(t[l]) && (o += 1);
173
175
  return o < s;
174
176
  }
175
- const v = d(we.value);
176
- De(() => we.value, (t) => v.value = t);
177
- const ke = d(null), xe = d(null);
178
- function te(t) {
179
- ie("selectLegend", t);
177
+ const v = d(Le.value);
178
+ De(() => Le.value, (t) => v.value = t);
179
+ const xe = d(null), Ce = d(null);
180
+ function le(t) {
181
+ ce("selectLegend", t);
180
182
  const s = C.value.flatMap((c) => c.series).find((c) => c.id === t.id), a = v.value.flatMap((c) => c.series).find((c) => c.id === t.id);
181
183
  let l = a ? a.value : 0;
182
- const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = Xe(i, i.length - 1, h.value);
183
- if (h.value.includes(t.id)) {
184
+ const i = C.value.find((c) => c.id === s.arcOfId).series.map((c) => c.id), b = qe(i, i.length - 1, p.value);
185
+ if (p.value.includes(t.id)) {
184
186
  let c = function() {
185
- l > s.value ? (cancelAnimationFrame(ke.value), v.value = v.value.map((k) => ({
186
- ...k,
187
- series: k.series.map((N) => N.id == t.id ? {
188
- ...N,
187
+ l > s.value ? (cancelAnimationFrame(xe.value), v.value = v.value.map((_) => ({
188
+ ..._,
189
+ series: _.series.map((T) => T.id == t.id ? {
190
+ ...T,
189
191
  value: s.value
190
- } : N)
191
- }))) : (l += s.value * 0.025, v.value = v.value.map((k) => ({
192
- ...k,
193
- series: k.series.map((N) => N.id === t.id ? {
194
- ...N,
192
+ } : T)
193
+ }))) : (l += s.value * 0.025, v.value = v.value.map((_) => ({
194
+ ..._,
195
+ series: _.series.map((T) => T.id === t.id ? {
196
+ ...T,
195
197
  value: l
196
- } : N)
197
- })), ke.value = requestAnimationFrame(c));
198
+ } : T)
199
+ })), xe.value = requestAnimationFrame(c));
198
200
  };
199
- h.value = h.value.filter((k) => k !== t.id), c();
201
+ p.value = p.value.filter((_) => _ !== t.id), c();
200
202
  } else if (b) {
201
203
  let c = function() {
202
- l < 0.1 ? (cancelAnimationFrame(xe.value), h.value.push(t.id), v.value = v.value.map((k, N) => ({
203
- ...k,
204
- series: k.series.map((O) => O.id === t.id ? {
204
+ l < 0.1 ? (cancelAnimationFrame(Ce.value), p.value.push(t.id), v.value = v.value.map((_, T) => ({
205
+ ..._,
206
+ series: _.series.map((O) => O.id === t.id ? {
205
207
  ...O,
206
208
  value: 0
207
209
  } : O)
208
- }))) : (l /= 1.1, v.value = v.value.map((k, N) => ({
209
- ...k,
210
- series: k.series.map((O) => O.id === t.id ? {
210
+ }))) : (l /= 1.1, v.value = v.value.map((_, T) => ({
211
+ ..._,
212
+ series: _.series.map((O) => O.id === t.id ? {
211
213
  ...O,
212
214
  value: l
213
215
  } : O)
214
- })), xe.value = requestAnimationFrame(c));
216
+ })), Ce.value = requestAnimationFrame(c));
215
217
  };
216
218
  c();
217
219
  }
218
220
  }
219
- const le = g(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), $e = g(() => v.value.map((t, s) => F.value - s * F.value / C.value.length)), Y = g(() => v.value.map((t, s) => {
221
+ const ae = m(() => F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio), Fe = m(() => v.value.map((t, s) => F.value - s * F.value / C.value.length)), W = m(() => v.value.map((t, s) => {
220
222
  const a = s * F.value / C.value.length;
221
223
  return {
222
224
  ...t,
223
225
  radius: F.value - a,
224
- donut: Pe(
226
+ donut: Me(
225
227
  { series: t.series },
226
- f.value.width / 2,
227
- f.value.height / 2,
228
+ h.value.width / 2,
229
+ h.value.height / 2,
228
230
  F.value - a,
229
231
  F.value - a,
230
232
  1.99999,
@@ -232,17 +234,17 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
232
234
  1,
233
235
  360,
234
236
  105.25,
235
- le.value
237
+ ae.value
236
238
  )
237
239
  };
238
- })), Le = g(() => [...C.value].map((t, s) => {
240
+ })), Se = m(() => [...C.value].map((t, s) => {
239
241
  const a = s * F.value / C.value.length;
240
242
  return {
241
243
  sizeRatio: a,
242
- donut: Pe(
244
+ donut: Me(
243
245
  { series: [{ value: 1 }] },
244
- f.value.width / 2,
245
- f.value.height / 2,
246
+ h.value.width / 2,
247
+ h.value.height / 2,
246
248
  F.value - a,
247
249
  F.value - a,
248
250
  1.99999,
@@ -253,22 +255,22 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
253
255
  F.value / C.value.length * e.value.style.chart.layout.donut.spacingRatio
254
256
  )[0]
255
257
  };
256
- })), Ce = d(null), X = d(null), W = d(null), ae = d(null);
257
- function We({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
258
- Ce.value = t.arcOfId, X.value = t.id, W.value = a, ae.value = {
258
+ })), Te = d(null), H = d(null), q = d(null), oe = d(null);
259
+ function Ke({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
260
+ Te.value = t.arcOfId, H.value = t.id, q.value = a, oe.value = {
259
261
  datapoint: t,
260
262
  seriesIndex: a,
261
263
  series: v.value,
262
264
  config: e.value
263
265
  };
264
266
  const o = e.value.style.chart.tooltip.customFormat;
265
- if (Ve(o) && dt(() => o({
267
+ if (Ue(o) && ft(() => o({
266
268
  seriesIndex: a,
267
269
  datapoint: t,
268
270
  series: v.value,
269
271
  config: e.value
270
272
  })))
271
- j.value = o({
273
+ ee.value = o({
272
274
  seriesIndex: a,
273
275
  datapoint: t,
274
276
  series: v.value,
@@ -276,7 +278,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
276
278
  });
277
279
  else {
278
280
  let l = "";
279
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && h.value.length === 0) {
281
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0) {
280
282
  const i = v.value.map((b) => b.series.find((c) => c.seriesIndex === a));
281
283
  i.forEach((b, c) => {
282
284
  if (!b) return "";
@@ -291,10 +293,10 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
291
293
  </span>
292
294
  </div>
293
295
  <span>
294
- ${e.value.style.chart.tooltip.showValue ? `<b>${R(
296
+ ${e.value.style.chart.tooltip.showValue ? `<b>${G(
295
297
  e.value.style.chart.layout.labels.dataLabels.formatter,
296
298
  t.value,
297
- L({
299
+ x({
298
300
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
299
301
  v: t.value,
300
302
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -303,7 +305,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
303
305
  { datapoint: t, seriesIndex: a }
304
306
  )}
305
307
  </b>` : ""}
306
- ${e.value.style.chart.tooltip.showPercentage ? `(${L({
308
+ ${e.value.style.chart.tooltip.showPercentage ? `(${x({
307
309
  v: b.proportion * 100,
308
310
  s: "%",
309
311
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -313,41 +315,41 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
313
315
  `;
314
316
  });
315
317
  } else
316
- l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${R(
318
+ l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${G(
317
319
  e.value.style.chart.layout.labels.dataLabels.formatter,
318
320
  t.value,
319
- L({
321
+ x({
320
322
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
321
323
  v: t.value,
322
324
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
323
325
  r: e.value.style.chart.tooltip.roundingValue
324
326
  }),
325
327
  { datapoint: t, seriesIndex: a }
326
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${L({
328
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${x({
327
329
  v: t.proportion * 100,
328
330
  s: "%",
329
331
  r: e.value.style.chart.tooltip.roundingPercentage
330
- })})</span></div>` : l += `<b>${L({
332
+ })})</span></div>` : l += `<b>${x({
331
333
  v: t.proportion * 100,
332
334
  s: "%",
333
335
  r: e.value.style.chart.tooltip.roundingPercentage
334
336
  })}</b></div>`);
335
- j.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
337
+ ee.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
336
338
  }
337
- Z.value = !0;
339
+ j.value = !0;
338
340
  }
339
- function oe(t) {
341
+ function se(t) {
340
342
  return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
341
343
  }
342
- function Fe(t, s) {
344
+ function Ne(t, s) {
343
345
  if (!e.value.useBlurOnHover)
344
346
  return "";
345
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && h.value.length === 0)
346
- return [null, void 0].includes(W.value) || W.value === s ? "" : `url(#blur_${_.value})`;
347
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || h.value.length)
348
- return [null, void 0].includes(X.value) || X.value === t.id ? "" : `url(#blur_${_.value})`;
347
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && p.value.length === 0)
348
+ return [null, void 0].includes(q.value) || q.value === s ? "" : `url(#blur_${$.value})`;
349
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || p.value.length)
350
+ return [null, void 0].includes(H.value) || H.value === t.id ? "" : `url(#blur_${$.value})`;
349
351
  }
350
- const se = g(() => C.value.map((t, s) => t.series.map((a, o) => ({
352
+ const ue = m(() => C.value.map((t, s) => t.series.map((a, o) => ({
351
353
  name: a.name,
352
354
  color: a.color,
353
355
  value: a.value,
@@ -356,20 +358,20 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
356
358
  id: a.id,
357
359
  seriesIndex: o,
358
360
  datasetIndex: s,
359
- total: t.series.filter((l) => !h.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
361
+ total: t.series.filter((l) => !p.value.includes(l.id)).map((l) => l.value).reduce((l, i) => l + i, 0)
360
362
  })).map((a) => ({
361
363
  ...a,
362
- opacity: h.value.includes(a.id) ? 0.5 : 1,
363
- segregate: () => te(a),
364
- isSegregated: h.value.includes(a.id)
365
- })))), He = g(() => ({
364
+ opacity: p.value.includes(a.id) ? 0.5 : 1,
365
+ segregate: () => le(a),
366
+ isSegregated: p.value.includes(a.id)
367
+ })))), Je = m(() => ({
366
368
  cy: "nested-donuts-legend",
367
369
  backgroundColor: e.value.style.chart.legend.backgroundColor,
368
370
  color: e.value.style.chart.legend.color,
369
371
  fontSize: e.value.style.chart.legend.fontSize,
370
372
  paddingBottom: 12,
371
373
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
372
- })), D = g(() => {
374
+ })), A = m(() => {
373
375
  const t = v.value.flatMap((a) => a.series.map((o) => ({
374
376
  name: `${a.name} - ${o.name}`,
375
377
  color: o.color,
@@ -377,29 +379,29 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
377
379
  }))), s = v.value.flatMap((a) => a.series.map((o) => o.value));
378
380
  return { head: t, body: s };
379
381
  });
380
- function Se() {
381
- Ze(() => {
382
- const t = D.value.head.map((o, l) => [[
382
+ function Ie() {
383
+ tt(() => {
384
+ const t = A.value.head.map((o, l) => [[
383
385
  o.name
384
- ], [D.value.body[l]], [isNaN(D.value.body[l] / o.total) ? "-" : D.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = ct(s);
385
- vt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
386
+ ], [A.value.body[l]], [isNaN(A.value.body[l] / o.total) ? "-" : A.value.body[l] / o.total * 100]]), s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), a = ht(s);
387
+ pt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-nested-donuts" });
386
388
  });
387
389
  }
388
- const H = g(() => {
390
+ const K = m(() => {
389
391
  const t = [
390
392
  e.value.table.columnNames.series,
391
393
  e.value.table.columnNames.value,
392
394
  e.value.table.columnNames.percentage
393
- ], s = D.value.head.map((l, i) => {
394
- const b = L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
395
+ ], s = A.value.head.map((l, i) => {
396
+ const b = x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[i], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue });
395
397
  return [
396
398
  {
397
399
  color: l.color,
398
400
  name: l.name
399
401
  },
400
402
  b,
401
- isNaN(D.value.body[i] / l.total) ? "-" : L({
402
- v: D.value.body[i] / l.total * 100,
403
+ isNaN(A.value.body[i] / l.total) ? "-" : x({
404
+ v: A.value.body[i] / l.total * 100,
403
405
  s: "%",
404
406
  r: e.value.table.td.roundingPercentage
405
407
  })
@@ -428,40 +430,53 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
428
430
  config: a
429
431
  };
430
432
  });
431
- function qe() {
433
+ function Qe() {
432
434
  return C.value;
433
435
  }
434
- function Ne() {
436
+ function Ae() {
435
437
  w.value.showTable = !w.value.showTable;
436
438
  }
437
- function Te() {
439
+ function Oe() {
438
440
  w.value.dataLabels.show = !w.value.dataLabels.show;
439
441
  }
440
- function Ie() {
442
+ function Pe() {
441
443
  w.value.showTooltip = !w.value.showTooltip;
442
444
  }
443
- return Be({
444
- getData: qe,
445
- generatePdf: me,
446
- generateCsv: Se,
445
+ const J = d(!1);
446
+ function ne() {
447
+ J.value = !J.value;
448
+ }
449
+ return Ee({
450
+ getData: Qe,
451
+ generatePdf: we,
452
+ generateCsv: Ie,
447
453
  generateImage: _e,
448
- toggleTable: Ne,
449
- toggleLabels: Te,
450
- toggleTooltip: Ie
454
+ toggleTable: Ae,
455
+ toggleLabels: Oe,
456
+ toggleTooltip: Pe,
457
+ toggleAnnotator: ne
451
458
  }), (t, s) => (u(), n("div", {
452
459
  ref_key: "nestedDonutsChart",
453
- ref: B,
454
- class: z(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
455
- style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
456
- id: `nested_donuts_${_.value}`
460
+ ref: z,
461
+ class: P(`vue-ui-nested-donuts ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
462
+ style: re(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${!e.value.style.chart.title.text && e.value.userOptions.show ? "padding-top:36px" : ""};background:${e.value.style.chart.backgroundColor}`),
463
+ id: `nested_donuts_${$.value}`
457
464
  }, [
458
- e.value.style.chart.title.text ? (u(), n("div", {
465
+ e.value.userOptions.buttons.annotator ? (u(), D(Ft, {
459
466
  key: 0,
467
+ parent: z.value,
468
+ backgroundColor: e.value.style.chart.backgroundColor,
469
+ color: e.value.style.chart.color,
470
+ active: J.value,
471
+ onClose: ne
472
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
473
+ e.value.style.chart.title.text ? (u(), n("div", {
474
+ key: 1,
460
475
  ref_key: "chartTitle",
461
- ref: ce
476
+ ref: fe
462
477
  }, [
463
- (u(), P(yt, {
464
- key: `title_${ve.value}`,
478
+ (u(), D(gt, {
479
+ key: `title_${pe.value}`,
465
480
  config: {
466
481
  title: {
467
482
  cy: "donut-div-title",
@@ -473,15 +488,15 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
473
488
  }
474
489
  }
475
490
  }, null, 8, ["config"]))
476
- ], 512)) : y("", !0),
477
- e.value.userOptions.show && E.value ? (u(), P(bt, {
491
+ ], 512)) : f("", !0),
492
+ e.value.userOptions.show && Y.value ? (u(), D(kt, {
478
493
  ref: "details",
479
- key: `user_option_${de.value}`,
494
+ key: `user_option_${ve.value}`,
480
495
  backgroundColor: e.value.style.chart.backgroundColor,
481
496
  color: e.value.style.chart.color,
482
- isPrinting: r(be),
483
- isImaging: r(ge),
484
- uid: _.value,
497
+ isPrinting: r(ke),
498
+ isImaging: r($e),
499
+ uid: $.value,
485
500
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
486
501
  hasPdf: e.value.userOptions.buttons.pdf,
487
502
  hasXls: e.value.userOptions.buttons.csv,
@@ -492,241 +507,251 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
492
507
  isFullscreen: U.value,
493
508
  isTooltip: w.value.showTooltip,
494
509
  titles: { ...e.value.userOptions.buttonTitles },
495
- chartElement: B.value,
510
+ chartElement: z.value,
496
511
  position: e.value.userOptions.position,
497
- onToggleFullscreen: Ee,
498
- onGeneratePdf: r(me),
499
- onGenerateCsv: Se,
512
+ hasAnnotator: e.value.userOptions.buttons.annotator,
513
+ isAnnotation: J.value,
514
+ onToggleFullscreen: Xe,
515
+ onGeneratePdf: r(we),
516
+ onGenerateCsv: Ie,
500
517
  onGenerateImage: r(_e),
501
- onToggleTable: Ne,
502
- onToggleLabels: Te,
503
- onToggleTooltip: Ie
504
- }, Qe({ _: 2 }, [
518
+ onToggleTable: Ae,
519
+ onToggleLabels: Oe,
520
+ onToggleTooltip: Pe,
521
+ onToggleAnnotator: ne
522
+ }, et({ _: 2 }, [
505
523
  t.$slots.optionTooltip ? {
506
524
  name: "optionTooltip",
507
- fn: m(() => [
508
- $(t.$slots, "optionTooltip", {}, void 0, !0)
525
+ fn: g(() => [
526
+ k(t.$slots, "optionTooltip", {}, void 0, !0)
509
527
  ]),
510
528
  key: "0"
511
529
  } : void 0,
512
530
  t.$slots.optionPdf ? {
513
531
  name: "optionPdf",
514
- fn: m(() => [
515
- $(t.$slots, "optionPdf", {}, void 0, !0)
532
+ fn: g(() => [
533
+ k(t.$slots, "optionPdf", {}, void 0, !0)
516
534
  ]),
517
535
  key: "1"
518
536
  } : void 0,
519
537
  t.$slots.optionCsv ? {
520
538
  name: "optionCsv",
521
- fn: m(() => [
522
- $(t.$slots, "optionCsv", {}, void 0, !0)
539
+ fn: g(() => [
540
+ k(t.$slots, "optionCsv", {}, void 0, !0)
523
541
  ]),
524
542
  key: "2"
525
543
  } : void 0,
526
544
  t.$slots.optionImg ? {
527
545
  name: "optionImg",
528
- fn: m(() => [
529
- $(t.$slots, "optionImg", {}, void 0, !0)
546
+ fn: g(() => [
547
+ k(t.$slots, "optionImg", {}, void 0, !0)
530
548
  ]),
531
549
  key: "3"
532
550
  } : void 0,
533
551
  t.$slots.optionTable ? {
534
552
  name: "optionTable",
535
- fn: m(() => [
536
- $(t.$slots, "optionTable", {}, void 0, !0)
553
+ fn: g(() => [
554
+ k(t.$slots, "optionTable", {}, void 0, !0)
537
555
  ]),
538
556
  key: "4"
539
557
  } : void 0,
540
558
  t.$slots.optionLabels ? {
541
559
  name: "optionLabels",
542
- fn: m(() => [
543
- $(t.$slots, "optionLabels", {}, void 0, !0)
560
+ fn: g(() => [
561
+ k(t.$slots, "optionLabels", {}, void 0, !0)
544
562
  ]),
545
563
  key: "5"
546
564
  } : void 0,
547
565
  t.$slots.optionFullscreen ? {
548
566
  name: "optionFullscreen",
549
- fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
550
- $(t.$slots, "optionFullscreen", q(K({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
567
+ fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
568
+ k(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
551
569
  ]),
552
570
  key: "6"
571
+ } : void 0,
572
+ t.$slots.optionAnnotator ? {
573
+ name: "optionAnnotator",
574
+ fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
575
+ k(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
576
+ ]),
577
+ key: "7"
553
578
  } : void 0
554
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
555
- E.value ? (u(), n("svg", {
556
- key: 2,
557
- xmlns: r(rt),
558
- class: z({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
559
- viewBox: `0 0 ${f.value.width <= 0 ? 1e-3 : f.value.width} ${f.value.height < 0 ? 1e-3 : f.value.height}`,
560
- style: ue(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
579
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
580
+ Y.value ? (u(), n("svg", {
581
+ key: 3,
582
+ xmlns: r(ct),
583
+ class: P({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
584
+ viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
585
+ style: re(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
561
586
  }, [
562
- Oe(xt),
563
- p("defs", null, [
564
- (u(!0), n(x, null, S(Le.value, (a, o) => (u(), n("radialGradient", {
565
- id: `radial_${_.value}_${o}`
587
+ ze(Ct),
588
+ y("defs", null, [
589
+ (u(!0), n(L, null, S(Se.value, (a, o) => (u(), n("radialGradient", {
590
+ id: `radial_${$.value}_${o}`
566
591
  }, [
567
- St,
568
- p("stop", {
569
- offset: `${(1 - le.value / $e.value[o]) * 100}%`,
570
- "stop-color": r(Ae)("#FFFFFF", 0),
592
+ At,
593
+ y("stop", {
594
+ offset: `${(1 - ae.value / Fe.value[o]) * 100}%`,
595
+ "stop-color": r(Be)("#FFFFFF", 0),
571
596
  "stop-opacity": "0"
572
- }, null, 8, Nt),
573
- p("stop", {
574
- offset: `${(1 - le.value / $e.value[o] / 2) * 100}%`,
597
+ }, null, 8, Ot),
598
+ y("stop", {
599
+ offset: `${(1 - ae.value / Fe.value[o] / 2) * 100}%`,
575
600
  "stop-color": "#FFFFFF",
576
601
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
577
- }, null, 8, Tt),
578
- It
579
- ], 8, Ft))), 256))
602
+ }, null, 8, Pt),
603
+ Dt
604
+ ], 8, It))), 256))
580
605
  ]),
581
- p("defs", null, [
582
- p("filter", {
583
- id: `blur_${_.value}`,
606
+ y("defs", null, [
607
+ y("filter", {
608
+ id: `blur_${$.value}`,
584
609
  x: "-50%",
585
610
  y: "-50%",
586
611
  width: "200%",
587
612
  height: "200%"
588
613
  }, [
589
- p("feGaussianBlur", {
614
+ y("feGaussianBlur", {
590
615
  in: "SourceGraphic",
591
616
  stdDeviation: 2,
592
- id: `blur_std_${_.value}`
593
- }, null, 8, Ot),
594
- zt
595
- ], 8, Dt),
596
- p("filter", {
597
- id: `shadow_${_.value}`,
617
+ id: `blur_std_${$.value}`
618
+ }, null, 8, Vt),
619
+ Mt
620
+ ], 8, zt),
621
+ y("filter", {
622
+ id: `shadow_${$.value}`,
598
623
  "color-interpolation-filters": "sRGB"
599
624
  }, [
600
- p("feDropShadow", {
625
+ y("feDropShadow", {
601
626
  dx: "0",
602
627
  dy: "0",
603
628
  stdDeviation: "10",
604
629
  "flood-opacity": "0.5",
605
630
  "flood-color": e.value.style.chart.layout.donut.shadowColor
606
- }, null, 8, At)
607
- ], 8, Pt)
631
+ }, null, 8, Ut)
632
+ ], 8, Bt)
608
633
  ]),
609
- (u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
610
- (u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
611
- p("path", {
634
+ (u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
635
+ (u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
636
+ y("path", {
612
637
  class: "vue-ui-donut-arc-path",
613
638
  d: l.arcSlice,
614
- fill: r(Ae)(l.color, 80),
639
+ fill: r(Be)(l.color, 80),
615
640
  stroke: e.value.style.chart.backgroundColor,
616
641
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
617
- filter: Fe(l, i)
618
- }, null, 8, Vt)
642
+ filter: Ne(l, i)
643
+ }, null, 8, Rt)
619
644
  ]))), 256))
620
645
  ]))), 256)),
621
- e.value.style.chart.useGradient ? (u(), n("g", Mt, [
622
- (u(!0), n(x, null, S(Le.value, (a, o) => (u(), n("g", null, [
623
- p("path", {
646
+ e.value.style.chart.useGradient ? (u(), n("g", Et, [
647
+ (u(!0), n(L, null, S(Se.value, (a, o) => (u(), n("g", null, [
648
+ y("path", {
624
649
  d: a.donut.arcSlice,
625
- fill: `url(#radial_${_.value}_${o})`,
650
+ fill: `url(#radial_${$.value}_${o})`,
626
651
  stroke: "transparent",
627
652
  "stroke-width": "0"
628
- }, null, 8, Bt)
653
+ }, null, 8, Gt)
629
654
  ]))), 256))
630
- ])) : y("", !0),
631
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Ut, [
632
- (u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
633
- (u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
634
- i === 0 && f.value.width && f.value.height ? (u(), n("text", {
655
+ ])) : f("", !0),
656
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), n("g", Yt, [
657
+ (u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
658
+ (u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
659
+ i === 0 && h.value.width && h.value.height ? (u(), n("text", {
635
660
  key: 0,
636
- class: z({ animated: e.value.useCssAnimation }),
637
- x: f.value.width / 2,
661
+ class: P({ animated: e.value.useCssAnimation }),
662
+ x: h.value.width / 2,
638
663
  y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
639
664
  "text-anchor": "middle",
640
665
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
641
666
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
642
667
  fill: e.value.style.chart.layout.labels.dataLabels.color
643
- }, T(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(it)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Rt)) : y("", !0)
668
+ }, N(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(vt)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Xt)) : f("", !0)
644
669
  ]))), 256))
645
670
  ]))), 256))
646
- ])) : y("", !0),
647
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Et, [
648
- (u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
649
- (u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", {
650
- filter: Fe(l, i)
671
+ ])) : f("", !0),
672
+ e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Wt, [
673
+ (u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
674
+ (u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", {
675
+ filter: Ne(l, i)
651
676
  }, [
652
- oe(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
677
+ se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage ? (u(), n("text", {
653
678
  key: 0,
654
- class: z({ animated: e.value.useCssAnimation }),
655
- "text-anchor": r(V)(l, !0).anchor,
656
- x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
657
- y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
679
+ class: P({ animated: e.value.useCssAnimation }),
680
+ "text-anchor": r(M)(l, !0).anchor,
681
+ x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
682
+ y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
658
683
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
659
684
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
660
685
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
661
- }, T(r(L)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, Yt)) : y("", !0),
662
- oe(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
686
+ }, N(r(x)({ v: l.proportion * 100, s: "%", r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage })), 11, qt)) : f("", !0),
687
+ se(l) && w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
663
688
  key: 1,
664
- class: z({ animated: e.value.useCssAnimation }),
665
- "text-anchor": r(V)(l, !0).anchor,
666
- x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
667
- y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
689
+ class: P({ animated: e.value.useCssAnimation }),
690
+ "text-anchor": r(M)(l, !0).anchor,
691
+ x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
692
+ y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY) + e.value.style.chart.layout.labels.dataLabels.fontSize,
668
693
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
669
694
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
670
695
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
671
- }, " (" + T(r(R)(
696
+ }, " (" + N(r(G)(
672
697
  e.value.style.chart.layout.labels.dataLabels.formatter,
673
698
  l.value,
674
- r(L)({
699
+ r(x)({
675
700
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
676
701
  v: l.value,
677
702
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
678
703
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
679
704
  }),
680
705
  { datapoint: l, seriesIndex: o, datapointIndex: i }
681
- )) + ") ", 11, Xt)) : y("", !0),
682
- oe(l) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
706
+ )) + ") ", 11, Kt)) : f("", !0),
707
+ se(l) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), n("text", {
683
708
  key: 2,
684
- class: z({ animated: e.value.useCssAnimation }),
685
- "text-anchor": r(V)(l, !0).anchor,
686
- x: r(V)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
687
- y: r(ne)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
709
+ class: P({ animated: e.value.useCssAnimation }),
710
+ "text-anchor": r(M)(l, !0).anchor,
711
+ x: r(M)(l, !1, e.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
712
+ y: r(ie)(l, e.value.style.chart.layout.labels.dataLabels.offsetY, e.value.style.chart.layout.labels.dataLabels.offsetY),
688
713
  fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
689
714
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
690
715
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
691
- }, T(r(R)(
716
+ }, N(r(G)(
692
717
  e.value.style.chart.layout.labels.dataLabels.formatter,
693
718
  l.value,
694
- r(L)({
719
+ r(x)({
695
720
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
696
721
  v: l.value,
697
722
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
698
723
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
699
724
  }),
700
725
  { datapoint: l, seriesIndex: o, datapointIndex: i }
701
- )), 11, Wt)) : y("", !0)
702
- ], 8, Gt))), 256))
726
+ )), 11, Jt)) : f("", !0)
727
+ ], 8, Ht))), 256))
703
728
  ]))), 256))
704
- ])) : y("", !0),
705
- (u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
706
- (u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", null, [
707
- p("path", {
729
+ ])) : f("", !0),
730
+ (u(!0), n(L, null, S(W.value, (a, o) => (u(), n("g", null, [
731
+ (u(!0), n(L, null, S(a.donut, (l, i) => (u(), n("g", null, [
732
+ y("path", {
708
733
  "data-cy-donut-trap": "",
709
734
  d: l.arcSlice,
710
- fill: Re.value === o ? "rgba(0,0,0,0.1)" : "transparent",
711
- onMouseenter: (b) => We({
735
+ fill: Ye.value === o ? "rgba(0,0,0,0.1)" : "transparent",
736
+ onMouseenter: (b) => Ke({
712
737
  datapoint: l,
713
738
  relativeIndex: o,
714
739
  seriesIndex: l.seriesIndex
715
740
  }),
716
- onClick: (b) => Ye({ datapoint: l, index: i }),
741
+ onClick: (b) => He({ datapoint: l, index: i }),
717
742
  onMouseleave: s[0] || (s[0] = (b) => {
718
- Z.value = !1, Ce.value = null, X.value = null, W.value = null;
743
+ j.value = !1, Te.value = null, H.value = null, q.value = null;
719
744
  })
720
- }, null, 40, Ht)
745
+ }, null, 40, Qt)
721
746
  ]))), 256))
722
747
  ]))), 256)),
723
- $(t.$slots, "svg", { svg: f.value }, void 0, !0)
724
- ], 14, Ct)) : y("", !0),
725
- t.$slots.watermark ? (u(), n("div", qt, [
726
- $(t.$slots, "watermark", q(K({ isPrinting: r(be) || r(ge) })), void 0, !0)
727
- ])) : y("", !0),
728
- E.value ? y("", !0) : (u(), P(wt, {
729
- key: 4,
748
+ k(t.$slots, "svg", { svg: h.value }, void 0, !0)
749
+ ], 14, Nt)) : f("", !0),
750
+ t.$slots.watermark ? (u(), n("div", Zt, [
751
+ k(t.$slots, "watermark", R(E({ isPrinting: r(ke) || r($e) })), void 0, !0)
752
+ ])) : f("", !0),
753
+ Y.value ? f("", !0) : (u(), D(Lt, {
754
+ key: 5,
730
755
  config: {
731
756
  type: "donut",
732
757
  style: {
@@ -737,8 +762,8 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
737
762
  }
738
763
  }
739
764
  }, null, 8, ["config"])),
740
- Oe(mt, {
741
- show: w.value.showTooltip && Z.value,
765
+ ze(wt, {
766
+ show: w.value.showTooltip && j.value,
742
767
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
743
768
  color: e.value.style.chart.tooltip.color,
744
769
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -748,42 +773,42 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
748
773
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
749
774
  position: e.value.style.chart.tooltip.position,
750
775
  offsetY: e.value.style.chart.tooltip.offsetY,
751
- parent: B.value,
752
- content: j.value,
753
- isCustom: r(Ve)(e.value.style.chart.tooltip.customFormat)
776
+ parent: z.value,
777
+ content: ee.value,
778
+ isCustom: r(Ue)(e.value.style.chart.tooltip.customFormat)
754
779
  }, {
755
- "tooltip-before": m(() => [
756
- $(t.$slots, "tooltip-before", q(K({ ...ae.value })), void 0, !0)
780
+ "tooltip-before": g(() => [
781
+ k(t.$slots, "tooltip-before", R(E({ ...oe.value })), void 0, !0)
757
782
  ]),
758
- "tooltip-after": m(() => [
759
- $(t.$slots, "tooltip-after", q(K({ ...ae.value })), void 0, !0)
783
+ "tooltip-after": g(() => [
784
+ k(t.$slots, "tooltip-after", R(E({ ...oe.value })), void 0, !0)
760
785
  ]),
761
786
  _: 3
762
787
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
763
788
  e.value.style.chart.legend.show ? (u(), n("div", {
764
- key: 5,
789
+ key: 6,
765
790
  ref_key: "chartLegend",
766
- ref: ee,
767
- class: z({ "vue-ui-nested-donuts-legend": se.value.length > 1 })
791
+ ref: te,
792
+ class: P({ "vue-ui-nested-donuts-legend": ue.value.length > 1 })
768
793
  }, [
769
- (u(!0), n(x, null, S(se.value, (a, o) => (u(), P(_t, {
770
- key: `legend_${o}_${he.value}`,
794
+ (u(!0), n(L, null, S(ue.value, (a, o) => (u(), D(_t, {
795
+ key: `legend_${o}_${be.value}`,
771
796
  legendSet: a,
772
- config: He.value,
773
- onClickMarker: s[1] || (s[1] = ({ legend: l }) => te(l))
797
+ config: Je.value,
798
+ onClickMarker: s[1] || (s[1] = ({ legend: l }) => le(l))
774
799
  }, {
775
- legendTitle: m(({ titleSet: l }) => [
776
- l[0] && l[0].arcOf ? (u(), n("div", Kt, T(l[0].arcOf), 1)) : y("", !0)
800
+ legendTitle: g(({ titleSet: l }) => [
801
+ l[0] && l[0].arcOf ? (u(), n("div", jt, N(l[0].arcOf), 1)) : f("", !0)
777
802
  ]),
778
- item: m(({ legend: l, index: i }) => [
779
- p("div", {
780
- onClick: (b) => te(l),
781
- style: ue(`opacity:${h.value.includes(l.id) ? 0.5 : 1}`)
803
+ item: g(({ legend: l, index: i }) => [
804
+ y("div", {
805
+ onClick: (b) => le(l),
806
+ style: re(`opacity:${p.value.includes(l.id) ? 0.5 : 1}`)
782
807
  }, [
783
- J(T(l.name) + ": " + T(r(R)(
808
+ Q(N(l.name) + ": " + N(r(G)(
784
809
  e.value.style.chart.layout.labels.dataLabels.formatter,
785
810
  l.value,
786
- r(L)({
811
+ r(x)({
787
812
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
788
813
  v: l.value,
789
814
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -791,25 +816,33 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
791
816
  }),
792
817
  { datapoint: l, seriesIndex: i }
793
818
  )) + " ", 1),
794
- h.value.includes(l.id) ? (u(), n(x, { key: 1 }, [
795
- J(" ( - % ) ")
796
- ], 64)) : (u(), n(x, { key: 0 }, [
797
- J(" (" + T(isNaN(l.value / l.total) ? "-" : r(L)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
819
+ p.value.includes(l.id) ? (u(), n(L, { key: 1 }, [
820
+ Q(" ( - % ) ")
821
+ ], 64)) : (u(), n(L, { key: 0 }, [
822
+ Q(" (" + N(isNaN(l.value / l.total) ? "-" : r(x)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
798
823
  ], 64))
799
- ], 12, Jt)
824
+ ], 12, el)
800
825
  ]),
801
826
  _: 2
802
827
  }, 1032, ["legendSet", "config"]))), 128))
803
- ], 2)) : y("", !0),
804
- e.value.style.chart.legend.show ? y("", !0) : (u(), n("div", {
805
- key: 6,
828
+ ], 2)) : f("", !0),
829
+ e.value.style.chart.legend.show ? f("", !0) : (u(), n("div", {
830
+ key: 7,
806
831
  ref_key: "chartLegend",
807
- ref: ee
832
+ ref: te
808
833
  }, [
809
- $(t.$slots, "legend", { legend: se.value }, void 0, !0)
834
+ k(t.$slots, "legend", { legend: ue.value }, void 0, !0)
810
835
  ], 512)),
811
- E.value ? (u(), P(kt, {
812
- key: 7,
836
+ t.$slots.source ? (u(), n("div", {
837
+ key: 8,
838
+ ref_key: "source",
839
+ ref: he,
840
+ dir: "auto"
841
+ }, [
842
+ k(t.$slots, "source", {}, void 0, !0)
843
+ ], 512)) : f("", !0),
844
+ Y.value ? (u(), D(xt, {
845
+ key: 9,
813
846
  hideDetails: "",
814
847
  config: {
815
848
  open: w.value.showTable,
@@ -824,33 +857,33 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
824
857
  }
825
858
  }
826
859
  }, {
827
- content: m(() => [
828
- (u(), P(gt, {
829
- key: `table_${fe.value}`,
830
- colNames: H.value.colNames,
831
- head: H.value.head,
832
- body: H.value.body,
833
- config: H.value.config,
860
+ content: g(() => [
861
+ (u(), D($t, {
862
+ key: `table_${ye.value}`,
863
+ colNames: K.value.colNames,
864
+ head: K.value.head,
865
+ body: K.value.body,
866
+ config: K.value.config,
834
867
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
835
868
  onClose: s[2] || (s[2] = (a) => w.value.showTable = !1)
836
869
  }, {
837
- th: m(({ th: a }) => [
838
- p("div", {
870
+ th: g(({ th: a }) => [
871
+ y("div", {
839
872
  innerHTML: a,
840
873
  style: { display: "flex", "align-items": "center" }
841
- }, null, 8, Qt)
874
+ }, null, 8, tl)
842
875
  ]),
843
- td: m(({ td: a }) => [
844
- J(T(a.name || a), 1)
876
+ td: g(({ td: a }) => [
877
+ Q(N(a.name || a), 1)
845
878
  ]),
846
879
  _: 1
847
880
  }, 8, ["colNames", "head", "body", "config", "title"]))
848
881
  ]),
849
882
  _: 1
850
- }, 8, ["config"])) : y("", !0)
851
- ], 14, Lt));
883
+ }, 8, ["config"])) : f("", !0)
884
+ ], 14, Tt));
852
885
  }
853
- }, vl = /* @__PURE__ */ $t(Zt, [["__scopeId", "data-v-e05474aa"]]);
886
+ }, bl = /* @__PURE__ */ St(ll, [["__scopeId", "data-v-65f48b0a"]]);
854
887
  export {
855
- vl as default
888
+ bl as default
856
889
  };