vue-data-ui 2.10.4 → 2.10.6

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 (170) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-D5FZABKM.cjs → Arrow-Cl3tB80E.cjs} +1 -1
  3. package/dist/{Arrow-rShoZLPF.js → Arrow-rRiIHng2.js} +1 -1
  4. package/dist/{BaseIcon-DOAYHMqC.js → BaseIcon-COlnFbOq.js} +1 -1
  5. package/dist/{BaseIcon-YEUagT3T.cjs → BaseIcon-CiINppo2.cjs} +1 -1
  6. package/dist/{ColorPicker-BvmBswSD.cjs → ColorPicker-9QCAgrqp.cjs} +1 -1
  7. package/dist/{ColorPicker-C2sp7L2o.js → ColorPicker-UNzkvlGG.js} +3 -3
  8. package/dist/{DataTable-BcZpw2Di.js → DataTable-CXbN2mJi.js} +2 -2
  9. package/dist/{DataTable-xRbw3M1w.cjs → DataTable-DOiZOQ3J.cjs} +1 -1
  10. package/dist/{Legend-BkMSze3l.js → Legend-BU9C5fBQ.js} +2 -2
  11. package/dist/{Legend-BgW2m6h5.cjs → Legend-CFqKBI0j.cjs} +1 -1
  12. package/dist/{PackageVersion-DfvwvFMQ.js → PackageVersion-0Lu6RIig.js} +1 -1
  13. package/dist/{PackageVersion-DMBva7ES.cjs → PackageVersion-BMNt7NsQ.cjs} +1 -1
  14. package/dist/{PenAndPaper-C4nRoDeG.cjs → PenAndPaper-BUwLP3Wx.cjs} +1 -1
  15. package/dist/{PenAndPaper-Hpxqpf-9.js → PenAndPaper-D4Uu-GqW.js} +3 -3
  16. package/dist/{Shape-Bo-gVwFn.cjs → Shape-2NRWULE_.cjs} +1 -1
  17. package/dist/{Shape-DSzj99gT.js → Shape-BavMx2aa.js} +1 -1
  18. package/dist/{Slicer-DTzGSpQM.js → Slicer-B_qJHvNR.js} +2 -2
  19. package/dist/{Slicer-TTZu2wl_.cjs → Slicer-Ct8BAk8F.cjs} +1 -1
  20. package/dist/{Title-D5Q-MAw-.cjs → Title-BkfQdTEX.cjs} +1 -1
  21. package/dist/{Title-DmYM5yAv.js → Title-DrVDm1wy.js} +1 -1
  22. package/dist/{Tooltip-jO3E09l_.js → Tooltip-BFT6mZ5a.js} +1 -1
  23. package/dist/{Tooltip-BHaUk1Am.cjs → Tooltip-BK88meti.cjs} +1 -1
  24. package/dist/documentation/installation.md +1 -1
  25. package/dist/{dom-to-png-BXOrDSxu.js → dom-to-png-0WSGIcUV.js} +1 -1
  26. package/dist/{dom-to-png-BvQvLpA3.cjs → dom-to-png-CyVwBzNm.cjs} +1 -1
  27. package/dist/{img-Buxs9IJl.js → img-BT-UmGcu.js} +1 -1
  28. package/dist/{img-BtrW_ClW.cjs → img-DqK-SXIP.cjs} +1 -1
  29. package/dist/index-Cai0fWP7.cjs +9 -0
  30. package/dist/{index-gaj0gmhW.js → index-hMo72hAq.js} +18 -9
  31. package/dist/{pdf-Bk3zFpjP.cjs → pdf-DY3kwqSx.cjs} +1 -1
  32. package/dist/{pdf-U6PPEV5v.js → pdf-G7o-GM_m.js} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +9 -0
  35. package/dist/types/vue-data-ui.d.ts +9 -0
  36. package/dist/{useNestedProp-BItlw8tg.cjs → useNestedProp-DcWhlk8h.cjs} +1 -1
  37. package/dist/{useNestedProp-R77oENB4.js → useNestedProp-DhEaBTgF.js} +1 -1
  38. package/dist/{usePrinter-C-PBqYFC.cjs → usePrinter-B4ojFS2B.cjs} +1 -1
  39. package/dist/{usePrinter-BAF6jSop.js → usePrinter-D2z-bUtX.js} +3 -3
  40. package/dist/{vue-data-ui-cxE28JIm.cjs → vue-data-ui-BR4hs3ky.cjs} +1 -1
  41. package/dist/{vue-data-ui-7sxceCOs.js → vue-data-ui-BTkU5knB.js} +62 -62
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +7 -7
  44. package/dist/{vue-ui-3d-bar-WgsqJXq8.cjs → vue-ui-3d-bar-Cx2zND3j.cjs} +1 -1
  45. package/dist/{vue-ui-3d-bar-DYgZ1gpv.js → vue-ui-3d-bar-DD3_LLbq.js} +9 -9
  46. package/dist/{vue-ui-accordion-DiPdvaEC.js → vue-ui-accordion-CHMdpjnX.js} +3 -3
  47. package/dist/{vue-ui-accordion-DPRiCTQ4.cjs → vue-ui-accordion-DUGBjyB1.cjs} +1 -1
  48. package/dist/{vue-ui-age-pyramid-VH8hdgnJ.js → vue-ui-age-pyramid-CUS2cIAl.js} +10 -10
  49. package/dist/{vue-ui-age-pyramid-Bwb1ij77.cjs → vue-ui-age-pyramid-WpMKbqUM.cjs} +1 -1
  50. package/dist/{vue-ui-annotator-CDnvUWKy.cjs → vue-ui-annotator-B5VYzARK.cjs} +1 -1
  51. package/dist/{vue-ui-annotator-CH5MDZDG.js → vue-ui-annotator-Ckyjvy1h.js} +2 -2
  52. package/dist/{vue-ui-bullet-Dd3zjxP1.cjs → vue-ui-bullet-Clccjys0.cjs} +1 -1
  53. package/dist/{vue-ui-bullet-DVd_q5Un.js → vue-ui-bullet-i97qMAx7.js} +8 -8
  54. package/dist/{vue-ui-candlestick-DlXoO49B.cjs → vue-ui-candlestick-B35fn-Jo.cjs} +1 -1
  55. package/dist/{vue-ui-candlestick-CxP2KPB8.js → vue-ui-candlestick-Dmu21ktX.js} +11 -11
  56. package/dist/{vue-ui-carousel-table-CNbutc12.cjs → vue-ui-carousel-table-23ggTo5D.cjs} +1 -1
  57. package/dist/{vue-ui-carousel-table-DOnU2A0U.js → vue-ui-carousel-table-cvW3wpY7.js} +4 -4
  58. package/dist/{vue-ui-chestnut-p9hkQsyK.js → vue-ui-chestnut-CZpShJyS.js} +8 -8
  59. package/dist/{vue-ui-chestnut-DhqbQ1sS.cjs → vue-ui-chestnut-CkuDV8dp.cjs} +1 -1
  60. package/dist/{vue-ui-circle-pack---RzxPp6.js → vue-ui-circle-pack-B6d9PjE2.js} +9 -9
  61. package/dist/{vue-ui-circle-pack-B3W2Y1t8.cjs → vue-ui-circle-pack-C2IQV5_6.cjs} +1 -1
  62. package/dist/{vue-ui-cursor-CglmYKER.js → vue-ui-cursor-CG4bTWjj.js} +2 -2
  63. package/dist/{vue-ui-cursor-5dWqpQFo.cjs → vue-ui-cursor-CZBmEqOC.cjs} +1 -1
  64. package/dist/{vue-ui-dashboard-BWOv55Rq.cjs → vue-ui-dashboard-D-95GOHa.cjs} +1 -1
  65. package/dist/vue-ui-dashboard-DqM_deY-.js +325 -0
  66. package/dist/{vue-ui-digits-JrJAbiv1.js → vue-ui-digits-CKpey7p1.js} +2 -2
  67. package/dist/{vue-ui-digits-BOvznf5b.cjs → vue-ui-digits-Cdauuy8X.cjs} +1 -1
  68. package/dist/{vue-ui-donut-l56OERlb.js → vue-ui-donut-Dp2Yy4fh.js} +36 -36
  69. package/dist/{vue-ui-donut-evolution-C01vP_bJ.cjs → vue-ui-donut-evolution-Cg1VnagT.cjs} +1 -1
  70. package/dist/{vue-ui-donut-evolution-BeFnRUkD.js → vue-ui-donut-evolution-ClL_5jhm.js} +11 -11
  71. package/dist/{vue-ui-donut-sN_2gTJP.cjs → vue-ui-donut-j519aqqU.cjs} +1 -1
  72. package/dist/{vue-ui-dumbbell-6i03Kc-b.js → vue-ui-dumbbell-C8tOQUbs.js} +10 -10
  73. package/dist/{vue-ui-dumbbell-CUe41gOr.cjs → vue-ui-dumbbell-CNJ9en-A.cjs} +1 -1
  74. package/dist/{vue-ui-flow-Ck5SOd1u.cjs → vue-ui-flow-BYypzs-j.cjs} +1 -1
  75. package/dist/{vue-ui-flow-CbufmJJA.js → vue-ui-flow-Ouw_lvpb.js} +9 -9
  76. package/dist/{vue-ui-funnel-hwI_EP3E.js → vue-ui-funnel-CfxmaNEA.js} +9 -9
  77. package/dist/{vue-ui-funnel-GFfZuzKx.cjs → vue-ui-funnel-DbVCaDxm.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-D53mRATC.js → vue-ui-galaxy-dm_p5xAR.js} +11 -11
  79. package/dist/{vue-ui-galaxy-CZLFsZ-H.cjs → vue-ui-galaxy-zBDItFVz.cjs} +1 -1
  80. package/dist/{vue-ui-gauge-DQkS_KRm.cjs → vue-ui-gauge-Dr-7ojj9.cjs} +1 -1
  81. package/dist/{vue-ui-gauge-CGYibwq2.js → vue-ui-gauge-DwwvbGca.js} +7 -7
  82. package/dist/{vue-ui-gizmo-BjqQd4dy.cjs → vue-ui-gizmo-CB5NfNit.cjs} +1 -1
  83. package/dist/{vue-ui-gizmo-DSackCMx.js → vue-ui-gizmo-Cq0SpTfm.js} +3 -3
  84. package/dist/{vue-ui-heatmap-dP-JR5__.js → vue-ui-heatmap-DNSOppoO.js} +10 -10
  85. package/dist/{vue-ui-heatmap-C0A7hdO3.cjs → vue-ui-heatmap-DtRSx7DO.cjs} +1 -1
  86. package/dist/{vue-ui-history-plot-CiGA7yW6.cjs → vue-ui-history-plot-BvC3L9g3.cjs} +1 -1
  87. package/dist/{vue-ui-history-plot-tmASFo_J.js → vue-ui-history-plot-r9eLYJCe.js} +11 -11
  88. package/dist/{vue-ui-kpi-DRvyo41m.js → vue-ui-kpi-BBpxo07S.js} +3 -3
  89. package/dist/{vue-ui-kpi-CIs7-KON.cjs → vue-ui-kpi-raHWFHjI.cjs} +1 -1
  90. package/dist/{vue-ui-mini-loader-DG07RzCx.js → vue-ui-mini-loader-CGtQXPzk.js} +2 -2
  91. package/dist/{vue-ui-mini-loader-DWqpp3i2.cjs → vue-ui-mini-loader-STx0NSvX.cjs} +1 -1
  92. package/dist/{vue-ui-molecule-Du_Xk6K3.cjs → vue-ui-molecule-B4WJo2V5.cjs} +1 -1
  93. package/dist/{vue-ui-molecule-Tfp48uxj.js → vue-ui-molecule-EYSvyl-h.js} +11 -11
  94. package/dist/{vue-ui-mood-radar-HHIsYVgB.cjs → vue-ui-mood-radar-CfHUyyMY.cjs} +1 -1
  95. package/dist/{vue-ui-mood-radar-Bk9g5Nb7.js → vue-ui-mood-radar-Crk-XB3O.js} +11 -11
  96. package/dist/vue-ui-nested-donuts-DRJZT5Bv.cjs +17 -0
  97. package/dist/vue-ui-nested-donuts-Rm4P3uEP.js +1137 -0
  98. package/dist/{vue-ui-onion-CAJFRvBG.cjs → vue-ui-onion-Bgvs96ms.cjs} +1 -1
  99. package/dist/{vue-ui-onion-B4sfUuJR.js → vue-ui-onion-Dzl_kjlE.js} +11 -11
  100. package/dist/{vue-ui-parallel-coordinate-plot-PoPTvKXt.js → vue-ui-parallel-coordinate-plot-98c0XRsu.js} +12 -12
  101. package/dist/{vue-ui-parallel-coordinate-plot-DWjcM8x6.cjs → vue-ui-parallel-coordinate-plot-YuLiWTox.cjs} +1 -1
  102. package/dist/{vue-ui-quadrant-DNVWkP6Q.cjs → vue-ui-quadrant-CiqJKJu1.cjs} +1 -1
  103. package/dist/{vue-ui-quadrant-DyWGltEe.js → vue-ui-quadrant-Dd1ryxBx.js} +40 -40
  104. package/dist/{vue-ui-quick-chart-DpFle9Th.js → vue-ui-quick-chart-CTsvK-CY.js} +9 -9
  105. package/dist/{vue-ui-quick-chart-jrs7sM-L.cjs → vue-ui-quick-chart-DMceIo39.cjs} +1 -1
  106. package/dist/{vue-ui-radar-uGd1724l.js → vue-ui-radar-CHYpedpk.js} +12 -12
  107. package/dist/{vue-ui-radar-DlJcEKBT.cjs → vue-ui-radar-Dp8-SmYd.cjs} +1 -1
  108. package/dist/{vue-ui-rating-zlL_fohp.js → vue-ui-rating-DSsm92zG.js} +10 -10
  109. package/dist/{vue-ui-rating-DyT2cuTa.cjs → vue-ui-rating-uVphq_sK.cjs} +1 -1
  110. package/dist/{vue-ui-relation-circle-C_mwuWBA.cjs → vue-ui-relation-circle-46wKUZTv.cjs} +1 -1
  111. package/dist/{vue-ui-relation-circle-BSJWSSj3.js → vue-ui-relation-circle-BPVBRieo.js} +7 -7
  112. package/dist/{vue-ui-ridgeline-huB4GUmG.js → vue-ui-ridgeline-B6GA2tXb.js} +49 -49
  113. package/dist/{vue-ui-ridgeline-Itzed46M.cjs → vue-ui-ridgeline-OULIMr6I.cjs} +1 -1
  114. package/dist/{vue-ui-rings-DdxMJYrC.js → vue-ui-rings-Cl-607b8.js} +12 -12
  115. package/dist/{vue-ui-rings-OmEU3StJ.cjs → vue-ui-rings-HVHIYYrh.cjs} +1 -1
  116. package/dist/{vue-ui-scatter-vvzbobaJ.cjs → vue-ui-scatter-BZ4DPyoL.cjs} +1 -1
  117. package/dist/{vue-ui-scatter-BMr3eo6N.js → vue-ui-scatter-ClYbim5F.js} +44 -44
  118. package/dist/{vue-ui-skeleton-JA0W8tXn.js → vue-ui-skeleton-C3t9bL6f.js} +19 -19
  119. package/dist/{vue-ui-skeleton-DO7G5Y5g.cjs → vue-ui-skeleton-C954hFY-.cjs} +1 -1
  120. package/dist/{vue-ui-smiley-BO0MFGFu.cjs → vue-ui-smiley-BBGCa2S0.cjs} +1 -1
  121. package/dist/{vue-ui-smiley-CIw8667G.js → vue-ui-smiley-DsKnKBFv.js} +2 -2
  122. package/dist/{vue-ui-spark-trend-CuQH76Jo.cjs → vue-ui-spark-trend-CBa0FhIy.cjs} +1 -1
  123. package/dist/{vue-ui-spark-trend-C1DXyadL.js → vue-ui-spark-trend-Da-HE7x2.js} +5 -5
  124. package/dist/{vue-ui-sparkbar-kvbWgfWC.cjs → vue-ui-sparkbar-CUul3e3U.cjs} +1 -1
  125. package/dist/{vue-ui-sparkbar-BmhE-99J.js → vue-ui-sparkbar-DgQxbUeJ.js} +4 -4
  126. package/dist/{vue-ui-sparkgauge-CYJpGB9W.js → vue-ui-sparkgauge-BKA5GnGO.js} +4 -4
  127. package/dist/{vue-ui-sparkgauge-BbxVytfF.cjs → vue-ui-sparkgauge-DYPVqz6I.cjs} +1 -1
  128. package/dist/{vue-ui-sparkhistogram-DPwQshte.cjs → vue-ui-sparkhistogram-CNN9tXh1.cjs} +1 -1
  129. package/dist/{vue-ui-sparkhistogram-jt13-xyA.js → vue-ui-sparkhistogram-CdZy4SfH.js} +5 -5
  130. package/dist/{vue-ui-sparkline-DzFmdpXy.cjs → vue-ui-sparkline-BCP4gyTp.cjs} +1 -1
  131. package/dist/{vue-ui-sparkline-EaNvjpb9.js → vue-ui-sparkline-DCNNoruu.js} +15 -15
  132. package/dist/{vue-ui-sparkstackbar-D20-H_RH.js → vue-ui-sparkstackbar-BAXGFcPk.js} +5 -5
  133. package/dist/{vue-ui-sparkstackbar-BIfIWVD6.cjs → vue-ui-sparkstackbar-sgehFSit.cjs} +1 -1
  134. package/dist/{vue-ui-stackbar-BlQFS50f.cjs → vue-ui-stackbar-87l909wS.cjs} +1 -1
  135. package/dist/{vue-ui-stackbar-IfVjvxly.js → vue-ui-stackbar-Cto9A9WG.js} +13 -13
  136. package/dist/{vue-ui-strip-plot-C0JJwLZs.js → vue-ui-strip-plot-C0F8_S_g.js} +11 -11
  137. package/dist/{vue-ui-strip-plot-Cj7pyIjv.cjs → vue-ui-strip-plot-Deegqmms.cjs} +1 -1
  138. package/dist/{vue-ui-table-Dv15sJ0a.js → vue-ui-table-1vUkkwSp.js} +3 -3
  139. package/dist/{vue-ui-table-DtRcQV5j.cjs → vue-ui-table-BUxFdYM7.cjs} +1 -1
  140. package/dist/{vue-ui-table-heatmap-2yiRD9Ye.js → vue-ui-table-heatmap-PPGfjMxh.js} +4 -4
  141. package/dist/{vue-ui-table-heatmap-BPbQGrNC.cjs → vue-ui-table-heatmap-uDH3owRO.cjs} +1 -1
  142. package/dist/{vue-ui-table-sparkline-DYRqyIVx.cjs → vue-ui-table-sparkline-CPSlJVB1.cjs} +1 -1
  143. package/dist/{vue-ui-table-sparkline-DLmFiLHF.js → vue-ui-table-sparkline-D9LEgrxj.js} +5 -5
  144. package/dist/{vue-ui-thermometer-DLCjJe6v.js → vue-ui-thermometer-BxngpuEZ.js} +7 -7
  145. package/dist/{vue-ui-thermometer-gL74aWA3.cjs → vue-ui-thermometer-D8P88pea.cjs} +1 -1
  146. package/dist/{vue-ui-timer-BIk_79G3.cjs → vue-ui-timer-B_dh6otW.cjs} +1 -1
  147. package/dist/{vue-ui-timer-C7-qvY5L.js → vue-ui-timer-C3dxY--Q.js} +5 -5
  148. package/dist/{vue-ui-tiremarks-BxAQR-XE.js → vue-ui-tiremarks-_oZ6wL6K.js} +7 -7
  149. package/dist/{vue-ui-tiremarks-1_fqbLdG.cjs → vue-ui-tiremarks-mISKtpmD.cjs} +1 -1
  150. package/dist/{vue-ui-treemap-DRyEb-BU.cjs → vue-ui-treemap-CZZXcX0f.cjs} +1 -1
  151. package/dist/{vue-ui-treemap-DQD2Xuuh.js → vue-ui-treemap-D5Dcd84h.js} +12 -12
  152. package/dist/{vue-ui-vertical-bar-BJel3_6V.cjs → vue-ui-vertical-bar-C-KAVKXj.cjs} +1 -1
  153. package/dist/{vue-ui-vertical-bar-BaIRmMNm.js → vue-ui-vertical-bar-CtWXk6co.js} +12 -12
  154. package/dist/{vue-ui-waffle-DkvyTGgQ.js → vue-ui-waffle-BD2GnRkO.js} +12 -12
  155. package/dist/{vue-ui-waffle-DeOPUPQx.cjs → vue-ui-waffle-C9qyTIzz.cjs} +1 -1
  156. package/dist/{vue-ui-wheel-CG5T2hIG.cjs → vue-ui-wheel-CKfr_7kH.cjs} +1 -1
  157. package/dist/{vue-ui-wheel-YF9GWFaZ.js → vue-ui-wheel-HydW49fo.js} +7 -7
  158. package/dist/{vue-ui-word-cloud-BuZu35M3.cjs → vue-ui-word-cloud-C4ISeFpy.cjs} +1 -1
  159. package/dist/{vue-ui-word-cloud-_D3SXGDc.js → vue-ui-word-cloud-C9Pbi6ey.js} +10 -10
  160. package/dist/{vue-ui-world-Dfe3q7_e.cjs → vue-ui-world-BlAD3UPb.cjs} +1 -1
  161. package/dist/{vue-ui-world-DZED00QY.js → vue-ui-world-D-AsGwlW.js} +11 -11
  162. package/dist/{vue-ui-xy-g8d2AKdu.js → vue-ui-xy-CMw6P4C0.js} +16 -16
  163. package/dist/{vue-ui-xy-BWkU6RgD.cjs → vue-ui-xy-CS-xjZVI.cjs} +2 -2
  164. package/dist/{vue-ui-xy-canvas-OMHgq4d8.cjs → vue-ui-xy-canvas-Dd7IFwSK.cjs} +1 -1
  165. package/dist/{vue-ui-xy-canvas-CQaxl6Cr.js → vue-ui-xy-canvas-DtKI-IQA.js} +12 -12
  166. package/package.json +1 -1
  167. package/dist/index-C992Ntxe.cjs +0 -9
  168. package/dist/vue-ui-dashboard-Dl0OuKWA.js +0 -317
  169. package/dist/vue-ui-nested-donuts-C4bZMsu7.js +0 -937
  170. package/dist/vue-ui-nested-donuts-CmPyTnt9.cjs +0 -17
@@ -0,0 +1,1137 @@
1
+ import { computed as k, ref as v, watch as Ze, onMounted as je, nextTick as et, onBeforeUnmount as Tt, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as se, normalizeClass as R, createBlock as U, createCommentVNode as g, createVNode as tt, createSlots as Ft, withCtx as _, renderSlot as L, normalizeProps as E, guardReactiveProps as G, createElementVNode as m, Fragment as T, renderList as S, toDisplayString as V, withDirectives as lt, vShow as at, createTextVNode as ue } from "vue";
2
+ import { u as Ot, c as St, t as It, p as _e, a as At, H as D, o as Nt, e as Y, b as Vt, d as Pt, m as ot, f as F, X as Dt, s as st, J as zt, k as Le, n as X, i as J, x as ut, q as Mt, r as Rt, y as Ut, R as nt } from "./index-hMo72hAq.js";
3
+ import { t as Bt, u as Et } from "./useResponsive-Cw4oZ8sQ.js";
4
+ import { _ as Gt } from "./Title-DrVDm1wy.js";
5
+ import { u as Yt, U as Xt } from "./usePrinter-D2z-bUtX.js";
6
+ import { D as Ht } from "./DataTable-CXbN2mJi.js";
7
+ import { _ as Wt } from "./Tooltip-BFT6mZ5a.js";
8
+ import { L as qt } from "./Legend-BU9C5fBQ.js";
9
+ import Jt from "./vue-ui-skeleton-C3t9bL6f.js";
10
+ import Kt from "./vue-ui-accordion-CHMdpjnX.js";
11
+ import { u as rt } from "./useNestedProp-DhEaBTgF.js";
12
+ import { _ as Qt } from "./PackageVersion-0Lu6RIig.js";
13
+ import { _ as Zt } from "./PenAndPaper-D4Uu-GqW.js";
14
+ import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { u as el } from "./useChartAccessibility-BWojgys7.js";
16
+ import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const ll = ["id"], al = ["xmlns", "viewBox"], ol = ["width", "height"], sl = ["id"], ul = ["offset", "stop-color"], nl = ["offset", "stop-opacity"], rl = ["id"], il = ["id"], dl = ["id"], cl = ["flood-color"], vl = ["d", "fill", "stroke", "stroke-width", "filter"], fl = { key: 1 }, hl = ["d", "fill"], pl = { key: 2 }, yl = ["x", "y", "font-size", "font-weight", "fill"], bl = { key: 3 }, gl = ["filter"], ml = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], $l = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], wl = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], kl = ["d", "fill", "onMouseenter", "onClick"], _l = {
18
+ key: 5,
19
+ class: "vue-data-ui-watermark"
20
+ }, Ll = {
21
+ key: 0,
22
+ class: "vue-ui-nested-donuts-legend-title"
23
+ }, xl = ["onClick"], Cl = ["innerHTML"], Tl = {
24
+ __name: "vue-ui-nested-donuts",
25
+ props: {
26
+ config: {
27
+ type: Object,
28
+ default() {
29
+ return {};
30
+ }
31
+ },
32
+ dataset: {
33
+ type: Array,
34
+ default() {
35
+ return [];
36
+ }
37
+ }
38
+ },
39
+ emits: ["selectLegend", "selectDatapoint"],
40
+ setup(it, { expose: dt, emit: ct }) {
41
+ const { vue_ui_nested_donuts: vt } = Ot(), x = it, K = k(() => !!x.dataset && x.dataset.length), y = v(St()), ne = v(!1), re = v(""), ft = v(null), xe = v(0), H = v(null), Ce = v(null), ie = v(null), Te = v(null), Fe = v(null), Oe = v(0), Se = v(0), Ie = v(0), z = v(!0), M = v([]), W = v([]), B = v(!1);
42
+ function ht(l) {
43
+ B.value = l, xe.value += 1;
44
+ }
45
+ const e = k({
46
+ get: () => Pe(),
47
+ set: (l) => l
48
+ }), { userOptionsVisible: de, setUserOptionsVisibility: Ae, keepUserOptionState: Ne } = jt({ config: e.value }), { svgRef: Ve } = el({
49
+ config: e.value.style.chart.title
50
+ });
51
+ function Pe() {
52
+ const l = rt({
53
+ userConfig: x.config,
54
+ defaultConfig: vt
55
+ });
56
+ return l.theme ? {
57
+ ...rt({
58
+ userConfig: At.vue_ui_nested_donuts[l.theme] || x.config,
59
+ defaultConfig: l
60
+ }),
61
+ customPalette: It[l.theme] || _e
62
+ } : l;
63
+ }
64
+ Ze(
65
+ () => x.config,
66
+ (l) => {
67
+ e.value = Pe(), de.value = !e.value.userOptions.showOnChartHover, ce(), Oe.value += 1, Se.value += 1, Ie.value += 1, w.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
68
+ },
69
+ { deep: !0 }
70
+ );
71
+ const De = k(() => {
72
+ const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
73
+ return {
74
+ css: `padding:${l}px ${s}px ${a}px ${o}px`,
75
+ top: l,
76
+ right: s,
77
+ bottom: a,
78
+ left: o
79
+ };
80
+ });
81
+ function pt(l, s = 1e3, a = 50) {
82
+ return new Promise((o) => {
83
+ const t = l.length;
84
+ M.value = Array(t).fill(0), W.value = [];
85
+ let u = 0;
86
+ l.forEach((c, p) => {
87
+ setTimeout(() => {
88
+ const N = performance.now();
89
+ function C(d) {
90
+ const f = Math.min((d - N) / s, 1), O = nt(f), ge = c * O;
91
+ M.value[p] = ge, M.value = [...M.value];
92
+ const ae = [];
93
+ let q = 0;
94
+ x.dataset.forEach((oe, me) => {
95
+ const _t = oe.series.reduce(
96
+ (we, ke) => we + D(ke.values).reduce((xt, Ct) => xt + Ct, 0),
97
+ 0
98
+ ), Lt = M.value.slice(q, q + oe.series.length).reduce((we, ke) => we + ke, 0), $e = _t - Lt;
99
+ $e > 1e-3 && ae.push({
100
+ name: "__ghost__",
101
+ arcOf: oe.name,
102
+ arcOfId: `${y.value}_${me}`,
103
+ id: `ghost_${y.value}_${me}`,
104
+ seriesIndex: -1,
105
+ datasetIndex: me,
106
+ color: "transparent",
107
+ value: $e,
108
+ fullValue: $e,
109
+ absoluteValues: [],
110
+ ghost: !0
111
+ }), q += oe.series.length;
112
+ }), W.value = ae, f < 1 ? requestAnimationFrame(C) : (u += 1, u === t && o());
113
+ }
114
+ requestAnimationFrame(C);
115
+ }, p * a);
116
+ });
117
+ });
118
+ }
119
+ je(async () => {
120
+ var l;
121
+ if (ce(), (l = e.value.startAnimation) != null && l.show) {
122
+ const a = x.dataset.flatMap((o) => o.series).map(
123
+ (o) => D(o.values).reduce((t, u) => t + u, 0)
124
+ );
125
+ M.value = a.map(() => 0), z.value = !0, W.value = x.dataset.map((o, t) => {
126
+ const u = o.series.reduce(
127
+ (c, p) => c + D(p.values).reduce((N, C) => N + C, 0),
128
+ 0
129
+ );
130
+ return {
131
+ name: "__ghost__",
132
+ arcOf: o.name,
133
+ arcOfId: `${y.value}_${t}`,
134
+ id: `ghost_${y.value}_${t}`,
135
+ seriesIndex: -1,
136
+ datasetIndex: t,
137
+ color: "transparent",
138
+ value: u,
139
+ fullValue: u,
140
+ absoluteValues: [],
141
+ ghost: !0
142
+ };
143
+ }), await et(), pt(
144
+ a,
145
+ e.value.startAnimation.durationMs,
146
+ e.value.startAnimation.staggerMs
147
+ ).then(() => {
148
+ z.value = !1, W.value = [];
149
+ });
150
+ } else
151
+ z.value = !1;
152
+ });
153
+ const Q = v(null);
154
+ je(() => {
155
+ ce();
156
+ });
157
+ function ce() {
158
+ if (Nt(x.dataset) && Y({
159
+ componentName: "VueUiNestedDonuts",
160
+ type: "dataset"
161
+ }), e.value.responsive) {
162
+ const l = Bt(() => {
163
+ const { width: s, height: a } = Et({
164
+ chart: H.value,
165
+ title: e.value.style.chart.title.text ? Ce.value : null,
166
+ legend: e.value.style.chart.legend.show ? ie.value : null,
167
+ source: Te.value,
168
+ noTitle: Fe.value,
169
+ padding: De.value
170
+ });
171
+ requestAnimationFrame(() => {
172
+ h.value.width = s, h.value.height = a;
173
+ });
174
+ });
175
+ Q.value = new ResizeObserver(l), Q.value.observe(H.value.parentNode);
176
+ }
177
+ }
178
+ Tt(() => {
179
+ Q.value && Q.value.disconnect();
180
+ });
181
+ const { isPrinting: ze, isImaging: Me, generatePdf: Re, generateImage: Ue } = Yt({
182
+ elementId: `nested_donuts_${y.value}`,
183
+ fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
184
+ options: e.value.userOptions.print
185
+ }), yt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), bt = k(() => Vt(e.value.customPalette)), w = v({
186
+ dataLabels: {
187
+ show: e.value.style.chart.layout.labels.dataLabels.show
188
+ },
189
+ showTable: e.value.table.show,
190
+ showTooltip: e.value.style.chart.tooltip.show
191
+ }), h = v({
192
+ height: 512,
193
+ width: 512
194
+ }), Be = ct;
195
+ function gt({ datapoint: l, index: s }) {
196
+ Be("selectDatapoint", { datapoint: l, index: s });
197
+ }
198
+ function Ee({
199
+ from: l,
200
+ to: s,
201
+ duration: a,
202
+ onUpdate: o,
203
+ onDone: t,
204
+ easing: u = nt
205
+ }) {
206
+ const c = performance.now();
207
+ function p(N) {
208
+ const C = Math.min((N - c) / a, 1), d = u(C), f = l + (s - l) * d;
209
+ o(f, C), C < 1 ? requestAnimationFrame(p) : (o(s, 1), t && t());
210
+ }
211
+ requestAnimationFrame(p);
212
+ }
213
+ const $ = v([]), I = k(() => {
214
+ x.dataset.forEach((s, a) => {
215
+ [null, void 0].includes(s.name) && Y({
216
+ componentName: "VueUiNestedDonuts",
217
+ type: "datasetSerieAttribute",
218
+ property: "name",
219
+ index: a
220
+ }), [null, void 0].includes(s.series) ? Y({
221
+ componentName: "VueUiNestedDonuts",
222
+ type: "datasetSerieAttribute",
223
+ property: "series",
224
+ index: a
225
+ }) : s.series.length === 0 ? Y({
226
+ componentName: "VueUiNestedDonuts",
227
+ type: "datasetAttributeEmpty",
228
+ property: `series at index ${a}`
229
+ }) : s.series.forEach((o, t) => {
230
+ [null, void 0].includes(o.name) && Y({
231
+ componentName: "VueUiNestedDonuts",
232
+ type: "datasetSerieAttribute",
233
+ property: "name",
234
+ index: t,
235
+ key: "serie"
236
+ }), [null, void 0].includes(o.values) && Y({
237
+ componentName: "VueUiNestedDonuts",
238
+ type: "datasetSerieAttribute",
239
+ property: "values",
240
+ index: t,
241
+ key: "serie"
242
+ });
243
+ });
244
+ });
245
+ let l = 0;
246
+ return x.dataset.map((s, a) => ({
247
+ ...s,
248
+ total: s.series.filter((o) => !$.value.includes(o.id)).map((o) => D(o.values).reduce((t, u) => t + u, 0)).reduce((o, t) => o + t, 0),
249
+ datasetIndex: a,
250
+ id: `${y.value}_${a}`,
251
+ series: s.series.map((o, t) => {
252
+ const u = D(o.values).reduce((c, p) => c + p, 0);
253
+ return {
254
+ name: o.name,
255
+ arcOf: s.name,
256
+ arcOfId: `${y.value}_${a}`,
257
+ id: `${y.value}_${a}_${t}`,
258
+ seriesIndex: t,
259
+ datasetIndex: a,
260
+ color: Pt(o.color) || bt.value[t] || _e[t % _e.length],
261
+ value: z.value ? M.value[l++] ?? 0 : u,
262
+ absoluteValues: o.values || []
263
+ };
264
+ })
265
+ }));
266
+ }), A = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), Ge = k(() => [...I.value].map((l, s) => {
267
+ const a = l.series.filter((o) => !$.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
268
+ return {
269
+ ...l,
270
+ total: a,
271
+ series: l.series.filter((o) => !$.value.includes(o.id)).map((o) => ({
272
+ ...o,
273
+ proportion: o.value / a
274
+ }))
275
+ };
276
+ }));
277
+ function mt(l, s, a) {
278
+ let o = 0;
279
+ for (let t = 0; t < l.length; t += 1)
280
+ a.includes(l[t]) && (o += 1);
281
+ return o < s;
282
+ }
283
+ const b = v(Ge.value);
284
+ Ze(
285
+ () => Ge.value,
286
+ (l) => b.value = l
287
+ );
288
+ function ve(l) {
289
+ var C;
290
+ Be("selectLegend", l);
291
+ const s = x.dataset.flatMap(
292
+ (d, f) => d.series.map((O, ge) => ({
293
+ value: D(O.values).reduce((ae, q) => ae + q, 0),
294
+ id: `${y.value}_${f}_${ge}`,
295
+ arcOfId: `${y.value}_${f}`
296
+ }))
297
+ ).find((d) => d.id === l.id);
298
+ if (!s) return;
299
+ const a = ((C = I.value.flatMap((d) => d.series).find((d) => d.id === l.id)) == null ? void 0 : C.value) ?? 0, o = b.value.flatMap((d) => d.series).find((d) => d.id === l.id);
300
+ let u = o ? o.value : 0;
301
+ const c = I.value.find(
302
+ (d) => d.id === s.arcOfId
303
+ );
304
+ if (!c) return;
305
+ const p = c.series.map((d) => d.id), N = mt(
306
+ p,
307
+ p.length - 1,
308
+ $.value
309
+ );
310
+ $.value.includes(l.id) ? ($.value = $.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? Ee({
311
+ from: u,
312
+ to: a,
313
+ duration: e.value.serieToggleAnimation.durationMs,
314
+ onUpdate: (d) => {
315
+ b.value = b.value.map((f) => ({
316
+ ...f,
317
+ series: f.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
318
+ }));
319
+ }
320
+ }) : b.value = b.value.map((d) => ({
321
+ ...d,
322
+ series: d.series.map((f) => f.id === l.id ? { ...f, value: a } : f)
323
+ }))) : N && (e.value.serieToggleAnimation.show ? Ee({
324
+ from: u,
325
+ to: 0,
326
+ duration: e.value.serieToggleAnimation.durationMs,
327
+ onUpdate: (d) => {
328
+ b.value = b.value.map((f) => ({
329
+ ...f,
330
+ series: f.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
331
+ }));
332
+ },
333
+ onDone: () => {
334
+ $.value.push(l.id);
335
+ }
336
+ }) : (b.value = b.value.map((d) => ({
337
+ ...d,
338
+ series: d.series.map((f) => f.id === l.id ? { ...f, value: 0 } : f)
339
+ })), $.value.push(l.id)));
340
+ }
341
+ const fe = k(() => A.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio), Ye = k(() => b.value.map((l, s) => A.value - s * A.value / I.value.length)), Z = k(() => b.value.map((l, s) => {
342
+ const a = A.value - s * A.value / b.value.length, o = z.value ? W.value.find((u) => u.datasetIndex === s) : null, t = [...l.series, ...o ? [o] : []].map((u) => ({
343
+ ...u,
344
+ value: u.value < 1e-3 ? 1e-3 : u.value
345
+ }));
346
+ return {
347
+ ...l,
348
+ radius: a,
349
+ donut: ot(
350
+ { series: t },
351
+ h.value.width / 2,
352
+ h.value.height / 2,
353
+ a,
354
+ a,
355
+ 1.99999,
356
+ 2,
357
+ 1,
358
+ 360,
359
+ 105.25,
360
+ fe.value
361
+ )
362
+ };
363
+ })), Xe = k(() => [...I.value].map((l, s) => {
364
+ const a = s * A.value / I.value.length;
365
+ return {
366
+ sizeRatio: a,
367
+ donut: ot(
368
+ { series: [{ value: 1 }] },
369
+ h.value.width / 2,
370
+ h.value.height / 2,
371
+ A.value - a,
372
+ A.value - a,
373
+ 1.99999,
374
+ 2,
375
+ 1,
376
+ 360,
377
+ 105.25,
378
+ A.value / I.value.length * e.value.style.chart.layout.donut.spacingRatio
379
+ )[0]
380
+ };
381
+ })), He = v(null), j = v(null), ee = v(null), he = v(null);
382
+ function $t({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
383
+ He.value = l.arcOfId, j.value = l.id, ee.value = a, he.value = {
384
+ datapoint: l,
385
+ seriesIndex: a,
386
+ series: b.value,
387
+ config: e.value
388
+ };
389
+ const o = e.value.style.chart.tooltip.customFormat;
390
+ if (ut(o) && Ut(
391
+ () => o({
392
+ seriesIndex: a,
393
+ datapoint: l,
394
+ series: b.value,
395
+ config: e.value
396
+ })
397
+ ))
398
+ re.value = o({
399
+ seriesIndex: a,
400
+ datapoint: l,
401
+ series: b.value,
402
+ config: e.value
403
+ });
404
+ else {
405
+ let t = "";
406
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0) {
407
+ const u = b.value.map((c) => c.series.find((p) => p.seriesIndex === a));
408
+ u.forEach((c, p) => {
409
+ if (!c) return "";
410
+ t += `
411
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${p < u.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
412
+ <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
413
+ <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
414
+ <circle cx="10" cy="10" r="10" fill="${c.color}"/>
415
+ </svg>
416
+ <span>
417
+ ${c.arcOf ?? ""} - ${c.name}
418
+ </span>
419
+ </div>
420
+ <span>
421
+ ${e.value.style.chart.tooltip.showValue ? `<b>${J(
422
+ e.value.style.chart.layout.labels.dataLabels.formatter,
423
+ l.value,
424
+ F({
425
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
426
+ v: l.value,
427
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
428
+ r: e.value.style.chart.tooltip.roundingValue
429
+ }),
430
+ { datapoint: l, seriesIndex: a }
431
+ )}
432
+ </b>` : ""}
433
+ ${e.value.style.chart.tooltip.showPercentage ? `(${F({
434
+ v: c.proportion * 100,
435
+ s: "%",
436
+ r: e.value.style.chart.tooltip.roundingPercentage
437
+ })})` : ""}
438
+ </span>
439
+ </div>
440
+ `;
441
+ });
442
+ } else
443
+ t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.name}</div>`, t += `<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 && (t += `<b>${J(
444
+ e.value.style.chart.layout.labels.dataLabels.formatter,
445
+ l.value,
446
+ F({
447
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
448
+ v: l.value,
449
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
450
+ r: e.value.style.chart.tooltip.roundingValue
451
+ }),
452
+ { datapoint: l, seriesIndex: a }
453
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${F({
454
+ v: l.proportion * 100,
455
+ s: "%",
456
+ r: e.value.style.chart.tooltip.roundingPercentage
457
+ })})</span></div>` : t += `<b>${F({
458
+ v: l.proportion * 100,
459
+ s: "%",
460
+ r: e.value.style.chart.tooltip.roundingPercentage
461
+ })}</b></div>`);
462
+ re.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
463
+ }
464
+ ne.value = !0;
465
+ }
466
+ function pe(l) {
467
+ return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
468
+ }
469
+ function We(l, s) {
470
+ if (!e.value.useBlurOnHover)
471
+ return "";
472
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && $.value.length === 0)
473
+ return [null, void 0].includes(ee.value) || ee.value === s ? "" : `url(#blur_${y.value})`;
474
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || $.value.length)
475
+ return [null, void 0].includes(j.value) || j.value === l.id ? "" : `url(#blur_${y.value})`;
476
+ }
477
+ const ye = k(() => I.value.map((l, s) => {
478
+ const a = l.series.filter(
479
+ (t) => !$.value.includes(t.id)
480
+ ), o = z.value ? a.map((t) => {
481
+ const u = x.dataset[s].series.findIndex(
482
+ (c) => c.name === t.name
483
+ );
484
+ return D(
485
+ x.dataset[s].series[u].values
486
+ ).reduce((c, p) => c + p, 0);
487
+ }).reduce((t, u) => t + u, 0) : a.map((t) => t.value).reduce((t, u) => t + u, 0);
488
+ return l.series.map((t, u) => {
489
+ const c = D(x.dataset[s].series[u].values).reduce(
490
+ (N, C) => N + C,
491
+ 0
492
+ ), p = z.value ? c : t.value;
493
+ return {
494
+ name: t.name,
495
+ color: t.color,
496
+ value: p,
497
+ shape: "circle",
498
+ arcOf: t.arcOf,
499
+ id: t.id,
500
+ seriesIndex: u,
501
+ datasetIndex: s,
502
+ total: o,
503
+ opacity: $.value.includes(t.id) ? 0.5 : 1,
504
+ segregate: () => ve(t),
505
+ isSegregated: $.value.includes(t.id)
506
+ };
507
+ });
508
+ })), wt = k(() => ({
509
+ cy: "nested-donuts-legend",
510
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
511
+ color: e.value.style.chart.legend.color,
512
+ fontSize: e.value.style.chart.legend.fontSize,
513
+ paddingBottom: 12,
514
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
515
+ })), P = k(() => {
516
+ const l = b.value.flatMap((a) => a.series.map((o) => ({
517
+ name: `${a.name} - ${o.name}`,
518
+ color: o.color,
519
+ total: a.total
520
+ }))), s = b.value.flatMap((a) => a.series.map((o) => o.value));
521
+ return { head: l, body: s };
522
+ });
523
+ function qe() {
524
+ et(() => {
525
+ const l = P.value.head.map((o, t) => [
526
+ [o.name],
527
+ [P.value.body[t]],
528
+ [
529
+ isNaN(P.value.body[t] / o.total) ? "-" : P.value.body[t] / o.total * 100
530
+ ]
531
+ ]), s = [
532
+ [e.value.style.chart.title.text],
533
+ [e.value.style.chart.title.subtitle.text],
534
+ [[""], ["val"], ["%"]]
535
+ ].concat(l), a = Mt(s);
536
+ Rt({
537
+ csvContent: a,
538
+ title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
539
+ });
540
+ });
541
+ }
542
+ const te = k(() => {
543
+ const l = [
544
+ e.value.table.columnNames.series,
545
+ e.value.table.columnNames.value,
546
+ e.value.table.columnNames.percentage
547
+ ], s = P.value.head.map((t, u) => {
548
+ const c = F({
549
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
550
+ v: P.value.body[u],
551
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
552
+ r: e.value.table.td.roundingValue
553
+ });
554
+ return [
555
+ {
556
+ color: t.color,
557
+ name: t.name
558
+ },
559
+ c,
560
+ isNaN(P.value.body[u] / t.total) ? "-" : F({
561
+ v: P.value.body[u] / t.total * 100,
562
+ s: "%",
563
+ r: e.value.table.td.roundingPercentage
564
+ })
565
+ ];
566
+ }), a = {
567
+ th: {
568
+ backgroundColor: e.value.table.th.backgroundColor,
569
+ color: e.value.table.th.color,
570
+ outline: e.value.table.th.outline
571
+ },
572
+ td: {
573
+ backgroundColor: e.value.table.td.backgroundColor,
574
+ color: e.value.table.td.color,
575
+ outline: e.value.table.td.outline
576
+ },
577
+ breakpoint: e.value.table.responsiveBreakpoint
578
+ };
579
+ return {
580
+ colNames: [
581
+ e.value.table.columnNames.series,
582
+ e.value.table.columnNames.value,
583
+ e.value.table.columnNames.percentage
584
+ ],
585
+ head: l,
586
+ body: s,
587
+ config: a
588
+ };
589
+ });
590
+ function kt() {
591
+ return I.value;
592
+ }
593
+ function Je() {
594
+ w.value.showTable = !w.value.showTable;
595
+ }
596
+ function Ke() {
597
+ w.value.dataLabels.show = !w.value.dataLabels.show;
598
+ }
599
+ function Qe() {
600
+ w.value.showTooltip = !w.value.showTooltip;
601
+ }
602
+ const le = v(!1);
603
+ function be() {
604
+ le.value = !le.value;
605
+ }
606
+ return dt({
607
+ getData: kt,
608
+ generatePdf: Re,
609
+ generateCsv: qe,
610
+ generateImage: Ue,
611
+ toggleTable: Je,
612
+ toggleLabels: Ke,
613
+ toggleTooltip: Qe,
614
+ toggleAnnotator: be
615
+ }), (l, s) => (n(), r("div", {
616
+ ref_key: "nestedDonutsChart",
617
+ ref: H,
618
+ class: R(`vue-ui-nested-donuts ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
619
+ style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
620
+ id: `nested_donuts_${y.value}`,
621
+ onMouseenter: s[3] || (s[3] = () => i(Ae)(!0)),
622
+ onMouseleave: s[4] || (s[4] = () => i(Ae)(!1))
623
+ }, [
624
+ e.value.userOptions.buttons.annotator ? (n(), U(Zt, {
625
+ key: 0,
626
+ svgRef: i(Ve),
627
+ backgroundColor: e.value.style.chart.backgroundColor,
628
+ color: e.value.style.chart.color,
629
+ active: le.value,
630
+ onClose: be
631
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
632
+ yt.value ? (n(), r("div", {
633
+ key: 1,
634
+ ref_key: "noTitle",
635
+ ref: Fe,
636
+ class: "vue-data-ui-no-title-space",
637
+ style: "height:36px; width: 100%;background:transparent"
638
+ }, null, 512)) : g("", !0),
639
+ e.value.style.chart.title.text ? (n(), r("div", {
640
+ key: 2,
641
+ ref_key: "chartTitle",
642
+ ref: Ce
643
+ }, [
644
+ (n(), U(Gt, {
645
+ key: `title_${Oe.value}`,
646
+ config: {
647
+ title: {
648
+ cy: "donut-div-title",
649
+ ...e.value.style.chart.title
650
+ },
651
+ subtitle: {
652
+ cy: "donut-div-subtitle",
653
+ ...e.value.style.chart.title.subtitle
654
+ }
655
+ }
656
+ }, null, 8, ["config"]))
657
+ ], 512)) : g("", !0),
658
+ e.value.userOptions.show && K.value && (i(Ne) || i(de)) ? (n(), U(Xt, {
659
+ ref: "details",
660
+ key: `user_option_${xe.value}`,
661
+ backgroundColor: e.value.style.chart.backgroundColor,
662
+ color: e.value.style.chart.color,
663
+ isPrinting: i(ze),
664
+ isImaging: i(Me),
665
+ uid: y.value,
666
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
667
+ hasPdf: e.value.userOptions.buttons.pdf,
668
+ hasXls: e.value.userOptions.buttons.csv,
669
+ hasImg: e.value.userOptions.buttons.img,
670
+ hasTable: e.value.userOptions.buttons.table,
671
+ hasLabel: e.value.userOptions.buttons.labels,
672
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
673
+ isFullscreen: B.value,
674
+ isTooltip: w.value.showTooltip,
675
+ titles: { ...e.value.userOptions.buttonTitles },
676
+ chartElement: H.value,
677
+ position: e.value.userOptions.position,
678
+ hasAnnotator: e.value.userOptions.buttons.annotator,
679
+ isAnnotation: le.value,
680
+ onToggleFullscreen: ht,
681
+ onGeneratePdf: i(Re),
682
+ onGenerateCsv: qe,
683
+ onGenerateImage: i(Ue),
684
+ onToggleTable: Je,
685
+ onToggleLabels: Ke,
686
+ onToggleTooltip: Qe,
687
+ onToggleAnnotator: be,
688
+ style: se({
689
+ visibility: i(Ne) ? i(de) ? "visible" : "hidden" : "visible"
690
+ })
691
+ }, Ft({ _: 2 }, [
692
+ l.$slots.menuIcon ? {
693
+ name: "menuIcon",
694
+ fn: _(({ isOpen: a, color: o }) => [
695
+ L(l.$slots, "menuIcon", E(G({ isOpen: a, color: o })), void 0, !0)
696
+ ]),
697
+ key: "0"
698
+ } : void 0,
699
+ l.$slots.optionTooltip ? {
700
+ name: "optionTooltip",
701
+ fn: _(() => [
702
+ L(l.$slots, "optionTooltip", {}, void 0, !0)
703
+ ]),
704
+ key: "1"
705
+ } : void 0,
706
+ l.$slots.optionPdf ? {
707
+ name: "optionPdf",
708
+ fn: _(() => [
709
+ L(l.$slots, "optionPdf", {}, void 0, !0)
710
+ ]),
711
+ key: "2"
712
+ } : void 0,
713
+ l.$slots.optionCsv ? {
714
+ name: "optionCsv",
715
+ fn: _(() => [
716
+ L(l.$slots, "optionCsv", {}, void 0, !0)
717
+ ]),
718
+ key: "3"
719
+ } : void 0,
720
+ l.$slots.optionImg ? {
721
+ name: "optionImg",
722
+ fn: _(() => [
723
+ L(l.$slots, "optionImg", {}, void 0, !0)
724
+ ]),
725
+ key: "4"
726
+ } : void 0,
727
+ l.$slots.optionTable ? {
728
+ name: "optionTable",
729
+ fn: _(() => [
730
+ L(l.$slots, "optionTable", {}, void 0, !0)
731
+ ]),
732
+ key: "5"
733
+ } : void 0,
734
+ l.$slots.optionLabels ? {
735
+ name: "optionLabels",
736
+ fn: _(() => [
737
+ L(l.$slots, "optionLabels", {}, void 0, !0)
738
+ ]),
739
+ key: "6"
740
+ } : void 0,
741
+ l.$slots.optionFullscreen ? {
742
+ name: "optionFullscreen",
743
+ fn: _(({ toggleFullscreen: a, isFullscreen: o }) => [
744
+ L(l.$slots, "optionFullscreen", E(G({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
745
+ ]),
746
+ key: "7"
747
+ } : void 0,
748
+ l.$slots.optionAnnotator ? {
749
+ name: "optionAnnotator",
750
+ fn: _(({ toggleAnnotator: a, isAnnotator: o }) => [
751
+ L(l.$slots, "optionAnnotator", E(G({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
752
+ ]),
753
+ key: "8"
754
+ } : void 0
755
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
756
+ K.value ? (n(), r("svg", {
757
+ key: 4,
758
+ ref_key: "svgRef",
759
+ ref: Ve,
760
+ xmlns: i(Dt),
761
+ class: R({
762
+ "vue-data-ui-fullscreen--on": B.value,
763
+ "vue-data-ui-fulscreen--off": !B.value
764
+ }),
765
+ viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
766
+ style: se(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${De.value.css}`)
767
+ }, [
768
+ tt(Qt),
769
+ l.$slots["chart-background"] ? (n(), r("foreignObject", {
770
+ key: 0,
771
+ x: 0,
772
+ y: 0,
773
+ width: h.value.width <= 0 ? 1e-3 : h.value.width,
774
+ height: h.value.height < 0 ? 1e-3 : h.value.height,
775
+ style: {
776
+ pointerEvents: "none"
777
+ }
778
+ }, [
779
+ L(l.$slots, "chart-background", {}, void 0, !0)
780
+ ], 8, ol)) : g("", !0),
781
+ m("defs", null, [
782
+ (n(!0), r(T, null, S(Xe.value, (a, o) => (n(), r("radialGradient", {
783
+ id: `radial_${y.value}_${o}`
784
+ }, [
785
+ s[5] || (s[5] = m("stop", {
786
+ offset: "0%",
787
+ "stop-color": "#FFFFFF",
788
+ "stop-opacity": "0"
789
+ }, null, -1)),
790
+ m("stop", {
791
+ offset: `${(1 - fe.value / Ye.value[o]) * 100}%`,
792
+ "stop-color": i(st)("#FFFFFF", 0),
793
+ "stop-opacity": "0"
794
+ }, null, 8, ul),
795
+ m("stop", {
796
+ offset: `${(1 - fe.value / Ye.value[o] / 2) * 100}%`,
797
+ "stop-color": "#FFFFFF",
798
+ "stop-opacity": e.value.style.chart.gradientIntensity / 100
799
+ }, null, 8, nl),
800
+ s[6] || (s[6] = m("stop", {
801
+ offset: "100%",
802
+ "stop-color": "#FFFFFF",
803
+ "stop-opacity": "0"
804
+ }, null, -1))
805
+ ], 8, sl))), 256))
806
+ ]),
807
+ m("defs", null, [
808
+ m("filter", {
809
+ id: `blur_${y.value}`,
810
+ x: "-50%",
811
+ y: "-50%",
812
+ width: "200%",
813
+ height: "200%"
814
+ }, [
815
+ m("feGaussianBlur", {
816
+ in: "SourceGraphic",
817
+ stdDeviation: 2,
818
+ id: `blur_std_${y.value}`
819
+ }, null, 8, il),
820
+ s[7] || (s[7] = m("feColorMatrix", {
821
+ type: "saturate",
822
+ values: "0"
823
+ }, null, -1))
824
+ ], 8, rl),
825
+ m("filter", {
826
+ id: `shadow_${y.value}`,
827
+ "color-interpolation-filters": "sRGB"
828
+ }, [
829
+ m("feDropShadow", {
830
+ dx: "0",
831
+ dy: "0",
832
+ stdDeviation: "10",
833
+ "flood-opacity": "0.5",
834
+ "flood-color": e.value.style.chart.layout.donut.shadowColor
835
+ }, null, 8, cl)
836
+ ], 8, dl)
837
+ ]),
838
+ (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
839
+ (n(!0), r(T, null, S(a.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", null, [
840
+ m("path", {
841
+ class: "vue-ui-donut-arc-path",
842
+ d: t.arcSlice,
843
+ fill: i(st)(t.color, 80),
844
+ stroke: e.value.style.chart.backgroundColor,
845
+ "stroke-width": e.value.style.chart.layout.donut.borderWidth,
846
+ filter: We(t, u)
847
+ }, null, 8, vl)
848
+ ]))), 256))
849
+ ]))), 256)),
850
+ e.value.style.chart.useGradient ? (n(), r("g", fl, [
851
+ (n(!0), r(T, null, S(Xe.value, (a, o) => (n(), r("g", null, [
852
+ m("path", {
853
+ d: a.donut.arcSlice,
854
+ fill: `url(#radial_${y.value}_${o})`,
855
+ stroke: "transparent",
856
+ "stroke-width": "0"
857
+ }, null, 8, hl)
858
+ ]))), 256))
859
+ ])) : g("", !0),
860
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (n(), r("g", pl, [
861
+ (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
862
+ (n(!0), r(T, null, S(a.donut, (t, u) => (n(), r("g", null, [
863
+ u === 0 && h.value.width && h.value.height ? (n(), r("text", {
864
+ key: 0,
865
+ class: R({ animated: e.value.useCssAnimation }),
866
+ x: h.value.width / 2,
867
+ y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
868
+ "text-anchor": "middle",
869
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
870
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
871
+ fill: e.value.style.chart.layout.labels.dataLabels.color
872
+ }, V(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(zt)({
873
+ source: a.name,
874
+ length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
875
+ }) : a.name), 11, yl)) : g("", !0)
876
+ ]))), 256))
877
+ ]))), 256))
878
+ ])) : g("", !0),
879
+ e.value.style.chart.layout.labels.dataLabels.show ? (n(), r("g", bl, [
880
+ (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
881
+ (n(!0), r(T, null, S(a.donut.filter((t) => !t.ghost), (t, u) => (n(), r("g", {
882
+ filter: We(t, u)
883
+ }, [
884
+ lt(m("text", {
885
+ class: R({ animated: e.value.useCssAnimation }),
886
+ opacity: pe(t) ? 1 : 0,
887
+ "text-anchor": i(X)(t, !0).anchor,
888
+ x: i(X)(
889
+ t,
890
+ !1,
891
+ e.value.style.chart.layout.labels.dataLabels.offsetX
892
+ ).x || 0,
893
+ y: i(Le)(
894
+ t,
895
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
896
+ e.value.style.chart.layout.labels.dataLabels.offsetY
897
+ ),
898
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
899
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
900
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
901
+ }, V(i(F)({
902
+ v: t.proportion * 100,
903
+ s: "%",
904
+ r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
905
+ })), 11, ml), [
906
+ [
907
+ at,
908
+ w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
909
+ ]
910
+ ]),
911
+ lt(m("text", {
912
+ class: R({ animated: e.value.useCssAnimation }),
913
+ opacity: pe(t) ? 1 : 0,
914
+ "text-anchor": i(X)(t, !0).anchor,
915
+ x: i(X)(
916
+ t,
917
+ !1,
918
+ e.value.style.chart.layout.labels.dataLabels.offsetX
919
+ ).x || 0,
920
+ y: i(Le)(
921
+ t,
922
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
923
+ e.value.style.chart.layout.labels.dataLabels.offsetY
924
+ ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
925
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
926
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
927
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
928
+ }, " (" + V(i(J)(
929
+ e.value.style.chart.layout.labels.dataLabels.formatter,
930
+ t.value,
931
+ i(F)({
932
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
933
+ v: t.value,
934
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
935
+ r: e.value.style.chart.layout.labels.dataLabels.roundingValue
936
+ }),
937
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
938
+ )) + ") ", 11, $l), [
939
+ [
940
+ at,
941
+ w.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
942
+ ]
943
+ ]),
944
+ pe(t) && w.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (n(), r("text", {
945
+ key: 0,
946
+ class: R({ animated: e.value.useCssAnimation }),
947
+ "text-anchor": i(X)(t, !0).anchor,
948
+ x: i(X)(
949
+ t,
950
+ !1,
951
+ e.value.style.chart.layout.labels.dataLabels.offsetX
952
+ ).x || 0,
953
+ y: i(Le)(
954
+ t,
955
+ e.value.style.chart.layout.labels.dataLabels.offsetY,
956
+ e.value.style.chart.layout.labels.dataLabels.offsetY
957
+ ),
958
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
959
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
960
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
961
+ }, V(i(J)(
962
+ e.value.style.chart.layout.labels.dataLabels.formatter,
963
+ t.value,
964
+ i(F)({
965
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
966
+ v: t.value,
967
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
968
+ r: e.value.style.chart.layout.labels.dataLabels.roundingValue
969
+ }),
970
+ { datapoint: t, seriesIndex: o, datapointIndex: u }
971
+ )), 11, wl)) : g("", !0)
972
+ ], 8, gl))), 256))
973
+ ]))), 256))
974
+ ])) : g("", !0),
975
+ (n(!0), r(T, null, S(Z.value, (a, o) => (n(), r("g", null, [
976
+ (n(!0), r(T, null, S(a.donut, (t, u) => (n(), r("g", null, [
977
+ m("path", {
978
+ d: t.arcSlice,
979
+ fill: ft.value === o ? "rgba(0,0,0,0.1)" : "transparent",
980
+ onMouseenter: (c) => $t({
981
+ datapoint: t,
982
+ seriesIndex: t.seriesIndex
983
+ }),
984
+ onClick: (c) => gt({ datapoint: t, index: u }),
985
+ onMouseleave: s[0] || (s[0] = (c) => {
986
+ ne.value = !1, He.value = null, j.value = null, ee.value = null;
987
+ })
988
+ }, null, 40, kl)
989
+ ]))), 256))
990
+ ]))), 256)),
991
+ L(l.$slots, "svg", { svg: h.value }, void 0, !0)
992
+ ], 14, al)) : g("", !0),
993
+ l.$slots.watermark ? (n(), r("div", _l, [
994
+ L(l.$slots, "watermark", E(G({ isPrinting: i(ze) || i(Me) })), void 0, !0)
995
+ ])) : g("", !0),
996
+ K.value ? g("", !0) : (n(), U(Jt, {
997
+ key: 6,
998
+ config: {
999
+ type: "donut",
1000
+ style: {
1001
+ backgroundColor: e.value.style.chart.backgroundColor,
1002
+ donut: {
1003
+ color: "#CCCCCC"
1004
+ }
1005
+ }
1006
+ }
1007
+ }, null, 8, ["config"])),
1008
+ tt(Wt, {
1009
+ show: w.value.showTooltip && ne.value,
1010
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1011
+ color: e.value.style.chart.tooltip.color,
1012
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1013
+ borderColor: e.value.style.chart.tooltip.borderColor,
1014
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1015
+ fontSize: e.value.style.chart.tooltip.fontSize,
1016
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1017
+ position: e.value.style.chart.tooltip.position,
1018
+ offsetY: e.value.style.chart.tooltip.offsetY,
1019
+ parent: H.value,
1020
+ content: re.value,
1021
+ isFullscreen: B.value,
1022
+ isCustom: i(ut)(e.value.style.chart.tooltip.customFormat)
1023
+ }, {
1024
+ "tooltip-before": _(() => [
1025
+ L(l.$slots, "tooltip-before", E(G({ ...he.value })), void 0, !0)
1026
+ ]),
1027
+ "tooltip-after": _(() => [
1028
+ L(l.$slots, "tooltip-after", E(G({ ...he.value })), void 0, !0)
1029
+ ]),
1030
+ _: 3
1031
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1032
+ e.value.style.chart.legend.show ? (n(), r("div", {
1033
+ key: 7,
1034
+ ref_key: "chartLegend",
1035
+ ref: ie,
1036
+ class: R({ "vue-ui-nested-donuts-legend": ye.value.length > 1 })
1037
+ }, [
1038
+ (n(!0), r(T, null, S(ye.value, (a, o) => (n(), U(qt, {
1039
+ key: `legend_${o}_${Ie.value}`,
1040
+ legendSet: a,
1041
+ config: wt.value,
1042
+ onClickMarker: s[1] || (s[1] = ({ legend: t }) => ve(t))
1043
+ }, {
1044
+ legendTitle: _(({ titleSet: t }) => [
1045
+ t[0] && t[0].arcOf ? (n(), r("div", Ll, V(t[0].arcOf), 1)) : g("", !0)
1046
+ ]),
1047
+ item: _(({ legend: t, index: u }) => [
1048
+ m("div", {
1049
+ onClick: (c) => ve(t),
1050
+ style: se(`opacity:${$.value.includes(t.id) ? 0.5 : 1}`)
1051
+ }, [
1052
+ ue(V(t.name) + ": " + V(i(J)(
1053
+ e.value.style.chart.layout.labels.dataLabels.formatter,
1054
+ t.value,
1055
+ i(F)({
1056
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
1057
+ v: t.value,
1058
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
1059
+ r: e.value.style.chart.legend.roundingValue
1060
+ }),
1061
+ { datapoint: t, seriesIndex: u }
1062
+ )) + " ", 1),
1063
+ $.value.includes(t.id) ? (n(), r(T, { key: 1 }, [
1064
+ ue(" ( - % ) ")
1065
+ ], 64)) : (n(), r(T, { key: 0 }, [
1066
+ ue(" (" + V(isNaN(t.value / t.total) ? "-" : i(F)({
1067
+ v: t.value / t.total * 100,
1068
+ s: "%",
1069
+ r: e.value.style.chart.legend.roundingPercentage
1070
+ })) + ") ", 1)
1071
+ ], 64))
1072
+ ], 12, xl)
1073
+ ]),
1074
+ _: 2
1075
+ }, 1032, ["legendSet", "config"]))), 128))
1076
+ ], 2)) : g("", !0),
1077
+ e.value.style.chart.legend.show ? g("", !0) : (n(), r("div", {
1078
+ key: 8,
1079
+ ref_key: "chartLegend",
1080
+ ref: ie
1081
+ }, [
1082
+ L(l.$slots, "legend", { legend: ye.value }, void 0, !0)
1083
+ ], 512)),
1084
+ l.$slots.source ? (n(), r("div", {
1085
+ key: 9,
1086
+ ref_key: "source",
1087
+ ref: Te,
1088
+ dir: "auto"
1089
+ }, [
1090
+ L(l.$slots, "source", {}, void 0, !0)
1091
+ ], 512)) : g("", !0),
1092
+ K.value ? (n(), U(Kt, {
1093
+ key: 10,
1094
+ hideDetails: "",
1095
+ config: {
1096
+ open: w.value.showTable,
1097
+ maxHeight: 1e4,
1098
+ body: {
1099
+ backgroundColor: e.value.style.chart.backgroundColor,
1100
+ color: e.value.style.chart.color
1101
+ },
1102
+ head: {
1103
+ backgroundColor: e.value.style.chart.backgroundColor,
1104
+ color: e.value.style.chart.color
1105
+ }
1106
+ }
1107
+ }, {
1108
+ content: _(() => [
1109
+ (n(), U(Ht, {
1110
+ key: `table_${Se.value}`,
1111
+ colNames: te.value.colNames,
1112
+ head: te.value.head,
1113
+ body: te.value.body,
1114
+ config: te.value.config,
1115
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1116
+ onClose: s[2] || (s[2] = (a) => w.value.showTable = !1)
1117
+ }, {
1118
+ th: _(({ th: a }) => [
1119
+ m("div", {
1120
+ innerHTML: a,
1121
+ style: { display: "flex", "align-items": "center" }
1122
+ }, null, 8, Cl)
1123
+ ]),
1124
+ td: _(({ td: a }) => [
1125
+ ue(V(a.name || a), 1)
1126
+ ]),
1127
+ _: 1
1128
+ }, 8, ["colNames", "head", "body", "config", "title"]))
1129
+ ]),
1130
+ _: 1
1131
+ }, 8, ["config"])) : g("", !0)
1132
+ ], 46, ll));
1133
+ }
1134
+ }, Yl = /* @__PURE__ */ tl(Tl, [["__scopeId", "data-v-1ed926f1"]]);
1135
+ export {
1136
+ Yl as default
1137
+ };