vue-data-ui 2.3.84 → 2.3.85

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 (172) hide show
  1. package/dist/{Arrow-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
  2. package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
  3. package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
  4. package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
  5. package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
  6. package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
  7. package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
  8. package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
  9. package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
  10. package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
  11. package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
  12. package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
  13. package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
  14. package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
  15. package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
  16. package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
  17. package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
  18. package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
  21. package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
  22. package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
  23. package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
  24. package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
  25. package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
  29. package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
  30. package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
  31. package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
  32. package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
  34. package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
  35. package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
  36. package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
  37. package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
  38. package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
  41. package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
  42. package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
  43. package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
  46. package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
  47. package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
  48. package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
  49. package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
  50. package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
  51. package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
  52. package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
  53. package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
  54. package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
  55. package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
  57. package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
  58. package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
  59. package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
  60. package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
  61. package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
  64. package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
  65. package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
  67. package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
  68. package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
  69. package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
  70. package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
  71. package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
  72. package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
  74. package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
  75. package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
  76. package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
  78. package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
  79. package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
  81. package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
  82. package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
  83. package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
  84. package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
  85. package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
  86. package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
  87. package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
  88. package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
  89. package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
  90. package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
  91. package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
  92. package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
  94. package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
  95. package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
  96. package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
  99. package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
  100. package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
  101. package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
  102. package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
  103. package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
  104. package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
  105. package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
  106. package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
  109. package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
  110. package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
  111. package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
  114. package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
  115. package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
  120. package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
  121. package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
  122. package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
  123. package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
  124. package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
  125. package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
  126. package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
  128. package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
  129. package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
  130. package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
  131. package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
  132. package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
  133. package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
  134. package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
  135. package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
  136. package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
  137. package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
  138. package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
  143. package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
  144. package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
  145. package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
  146. package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
  147. package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
  148. package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
  149. package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
  150. package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
  151. package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
  152. package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
  153. package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
  154. package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
  155. package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
  156. package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
  157. package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
  158. package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
  159. package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
  160. package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
  161. package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
  162. package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
  163. package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
  164. package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
  165. package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
  166. package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
  167. package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
  168. package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
  169. package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
  170. package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
  171. package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
  172. package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
@@ -1,18 +1,21 @@
1
- import { computed as c, onMounted as he, ref as h, watch as fe, openBlock as n, createElementBlock as k, normalizeClass as H, normalizeStyle as A, createVNode as R, createCommentVNode as i, createBlock as f, unref as r, createSlots as me, withCtx as m, renderSlot as b, normalizeProps as X, guardReactiveProps as K, createElementVNode as o, Fragment as q, renderList as Y, toDisplayString as M, createTextVNode as J, nextTick as ge } from "vue";
2
- import { u as pe, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as I, q as Me, r as Ne } from "./index-DI4DaxVG.js";
3
- import { _ as Pe } from "./Title-Bk3h09h9.js";
4
- import { u as Le, U as Te } from "./usePrinter-D9bNzUQP.js";
5
- import { L as Ae } from "./Legend-pU_BwhaW.js";
6
- import N from "./BaseIcon-B9ZZ6wkT.js";
7
- import { D as Ie } from "./DataTable-C-iU_7h7.js";
8
- import Fe from "./vue-ui-skeleton-DH4t1hrL.js";
9
- import Oe from "./vue-ui-accordion-DsN9lxvc.js";
10
- import { u as ee } from "./useNestedProp-COsQo-tX.js";
1
+ import { computed as c, onMounted as he, ref as h, watch as fe, openBlock as n, createElementBlock as k, normalizeClass as H, normalizeStyle as F, createVNode as R, createCommentVNode as i, createBlock as f, unref as s, createSlots as me, withCtx as m, renderSlot as b, normalizeProps as X, guardReactiveProps as K, createElementVNode as o, Fragment as q, renderList as Y, toDisplayString as M, createTextVNode as J, nextTick as pe } from "vue";
2
+ import { u as ge, o as ke, e as Q, c as be, t as Ce, N as xe, X as _e, s as C, w as we, O as $e, i as Z, f as A, q as Me, r as Ne } from "./index-BiuHBtkZ.js";
3
+ import { _ as Pe } from "./Title-ISDbzCH8.js";
4
+ import { u as Le, U as Te } from "./usePrinter-Do8KiK5h.js";
5
+ import { L as Ae } from "./Legend-KW7sTwN3.js";
6
+ import N from "./BaseIcon-BysUnfCR.js";
7
+ import { D as Ie } from "./DataTable-MkG5Dqrn.js";
8
+ import Fe from "./vue-ui-skeleton-Du4zw-c1.js";
9
+ import Oe from "./vue-ui-accordion-D2fhyKpk.js";
10
+ import { u as ee } from "./useNestedProp-Ck5_RzLu.js";
11
11
  import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"], We = ["stop-color"], ze = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ge = ["d", "stroke", "stroke-width"], Ee = ["stroke"], Ue = ["fill"], He = ["stroke"], Re = ["fill"], Xe = ["stroke"], Ke = ["fill"], qe = ["stroke"], Ye = ["fill"], Je = ["stroke"], Qe = ["fill"], Ze = ["d", "stroke", "stroke-width", "fill"], et = ["x1", "y1", "stroke"], tt = ["cx", "cy", "fill", "stroke"], lt = ["fill", "stroke"], at = ["y", "fill", "font-weight"], ot = ["y", "fill"], rt = {
12
+ const Ve = ["id"], je = {
13
+ key: 0,
14
+ style: "width:100%;background:transparent"
15
+ }, Be = ["xmlns", "viewBox"], De = ["id"], We = ["stop-color"], ze = ["stop-color"], Ge = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ee = ["d", "stroke", "stroke-width"], Ue = ["stroke"], He = ["fill"], Re = ["stroke"], Xe = ["fill"], Ke = ["stroke"], qe = ["fill"], Ye = ["stroke"], Je = ["fill"], Qe = ["stroke"], Ze = ["fill"], et = ["d", "stroke", "stroke-width", "fill"], tt = ["x1", "y1", "stroke"], lt = ["cx", "cy", "fill", "stroke"], at = ["fill", "stroke"], ot = ["y", "fill", "font-weight"], st = ["y", "fill"], rt = {
13
16
  key: 3,
14
17
  class: "vue-data-ui-watermark"
15
- }, st = ["onClick"], nt = { style: { "font-weight": "bold" } }, ut = ["innerHTML"], it = {
18
+ }, nt = ["onClick"], ut = { style: { "font-weight": "bold" } }, it = ["innerHTML"], dt = {
16
19
  __name: "vue-ui-mood-radar",
17
20
  props: {
18
21
  config: {
@@ -29,7 +32,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
29
32
  }
30
33
  },
31
34
  setup(te, { expose: le }) {
32
- const u = te, { vue_ui_mood_radar: ae } = pe(), _ = c(() => !!u.dataset && Object.keys(u.dataset).length);
35
+ const u = te, { vue_ui_mood_radar: ae } = ge(), _ = c(() => !!u.dataset && Object.keys(u.dataset).length);
33
36
  he(() => {
34
37
  O();
35
38
  });
@@ -39,7 +42,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
39
42
  type: "dataset"
40
43
  });
41
44
  }
42
- const w = h(be()), S = h(null), oe = h(null), s = h(null), re = h(0), se = h(0), V = h(0), e = c({
45
+ const w = h(be()), S = h(null), oe = h(null), r = h(null), se = h(0), re = h(0), V = h(0), e = c({
43
46
  get: () => j(),
44
47
  set: (l) => l
45
48
  });
@@ -56,18 +59,18 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
56
59
  } : l;
57
60
  }
58
61
  fe(() => u.config, (l) => {
59
- e.value = j(), O(), re.value += 1, se.value += 1, V.value += 1;
62
+ e.value = j(), O(), se.value += 1, re.value += 1, V.value += 1;
60
63
  }, { deep: !0 });
61
64
  const { isPrinting: B, isImaging: D, generatePdf: W, generateImage: z } = Le({
62
65
  elementId: w.value,
63
66
  fileName: e.value.style.chart.title.text || "vue-ui-mood-radar"
64
67
  }), P = h({
65
68
  showTable: e.value.table.show
66
- }), g = c(() => ({
69
+ }), p = c(() => ({
67
70
  height: 256,
68
71
  width: 256
69
- })), F = c(() => xe({
70
- plot: { x: 128, y: g.value.height / 2 },
72
+ })), I = c(() => xe({
73
+ plot: { x: 128, y: p.value.height / 2 },
71
74
  radius: 90,
72
75
  sides: 5,
73
76
  rotation: 11
@@ -95,10 +98,10 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
95
98
  type: "datasetAttribute",
96
99
  property: l
97
100
  });
98
- }), F.value.coordinates.map((l, a) => {
101
+ }), I.value.coordinates.map((l, a) => {
99
102
  const t = ne({
100
- centerX: g.value.width / 2,
101
- centerY: g.value.height / 2,
103
+ centerX: p.value.width / 2,
104
+ centerY: p.value.height / 2,
102
105
  apexX: l.x,
103
106
  apexY: l.y,
104
107
  proportion: y.value[a].value / ue.value,
@@ -119,9 +122,9 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
119
122
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
120
123
  }));
121
124
  function de(l) {
122
- l === s.value ? s.value = null : s.value = l;
125
+ l === r.value ? r.value = null : r.value = l;
123
126
  }
124
- const p = c(() => {
127
+ const g = c(() => {
125
128
  const l = y.value.map((t) => ({
126
129
  name: t.key,
127
130
  color: t.color
@@ -129,10 +132,10 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
129
132
  return { head: l, body: a };
130
133
  });
131
134
  function E() {
132
- ge(() => {
133
- const l = p.value.head.map((d, v) => [[
135
+ pe(() => {
136
+ const l = g.value.head.map((d, v) => [[
134
137
  d.name
135
- ], [p.value.body[v]], [isNaN(p.value.body[v] / x.value) ? "-" : p.value.body[v] / x.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Me(a);
138
+ ], [g.value.body[v]], [isNaN(g.value.body[v] / x.value) ? "-" : g.value.body[v] / x.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), t = Me(a);
136
139
  Ne({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-mood-radar" });
137
140
  });
138
141
  }
@@ -141,13 +144,13 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
141
144
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
142
145
  Number(x.value.toFixed(e.value.table.td.roundingValue)).toLocaleString(),
143
146
  "100%"
144
- ], a = p.value.head.map((v, $) => [
147
+ ], a = g.value.head.map((v, $) => [
145
148
  {
146
149
  color: v.color,
147
150
  name: v.name
148
151
  },
149
- p.value.body[$].toFixed(e.value.table.td.roundingValue),
150
- isNaN(p.value.body[$] / x.value) ? "-" : (p.value.body[$] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
152
+ g.value.body[$].toFixed(e.value.table.td.roundingValue),
153
+ isNaN(g.value.body[$] / x.value) ? "-" : (g.value.body[$] / x.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
151
154
  ]), t = {
152
155
  th: {
153
156
  backgroundColor: e.value.table.th.backgroundColor,
@@ -193,12 +196,9 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
193
196
  ref_key: "moodRadarChart",
194
197
  ref: S,
195
198
  id: `${w.value}`,
196
- style: A(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
199
+ style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
197
200
  }, [
198
- e.value.style.chart.title.text ? (n(), k("div", {
199
- key: 0,
200
- style: A(`width:100%;background:${e.value.style.chart.backgroundColor}`)
201
- }, [
201
+ e.value.style.chart.title.text ? (n(), k("div", je, [
202
202
  R(Pe, {
203
203
  config: {
204
204
  title: {
@@ -211,15 +211,15 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
211
211
  }
212
212
  }
213
213
  }, null, 8, ["config"])
214
- ], 4)) : i("", !0),
214
+ ])) : i("", !0),
215
215
  e.value.userOptions.show && _.value ? (n(), f(Te, {
216
216
  key: 1,
217
217
  ref_key: "details",
218
218
  ref: oe,
219
219
  backgroundColor: e.value.style.chart.backgroundColor,
220
220
  color: e.value.style.chart.color,
221
- isPrinting: r(B),
222
- isImaging: r(D),
221
+ isPrinting: s(B),
222
+ isImaging: s(D),
223
223
  uid: w.value,
224
224
  hasPdf: e.value.userOptions.buttons.pdf,
225
225
  hasXls: e.value.userOptions.buttons.csv,
@@ -229,9 +229,9 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
229
229
  titles: { ...e.value.userOptions.buttonTitles },
230
230
  chartElement: S.value,
231
231
  onToggleFullscreen: ye,
232
- onGeneratePdf: r(W),
232
+ onGeneratePdf: s(W),
233
233
  onGenerateCsv: E,
234
- onGenerateImage: r(z),
234
+ onGenerateImage: s(z),
235
235
  onToggleTable: U
236
236
  }, me({ _: 2 }, [
237
237
  l.$slots.optionPdf ? {
@@ -272,10 +272,10 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
272
272
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
273
273
  _.value ? (n(), k("svg", {
274
274
  key: 2,
275
- xmlns: r(_e),
276
- viewBox: `0 0 ${g.value.width} ${g.value.height}`,
275
+ xmlns: s(_e),
276
+ viewBox: `0 0 ${p.value.width} ${p.value.height}`,
277
277
  class: H({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
278
- style: A(`overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
278
+ style: F(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
279
279
  }, [
280
280
  o("defs", null, [
281
281
  o("radialGradient", {
@@ -288,121 +288,121 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
288
288
  }, [
289
289
  o("stop", {
290
290
  offset: "0%",
291
- "stop-color": r(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
292
- }, null, 8, De),
291
+ "stop-color": s(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
292
+ }, null, 8, We),
293
293
  o("stop", {
294
294
  offset: "100%",
295
- "stop-color": r(C)(r(we)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
296
- }, null, 8, We)
297
- ], 8, Be)
295
+ "stop-color": s(C)(s(we)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.gradient.intensity / 100), e.value.style.chart.layout.dataPolygon.opacity)
296
+ }, null, 8, ze)
297
+ ], 8, De)
298
298
  ]),
299
- (n(!0), k(q, null, Y(F.value.coordinates, (t) => (n(), k("line", {
300
- x1: g.value.width / 2,
301
- y1: g.value.height / 2,
299
+ (n(!0), k(q, null, Y(I.value.coordinates, (t) => (n(), k("line", {
300
+ x1: p.value.width / 2,
301
+ y1: p.value.height / 2,
302
302
  x2: t.x,
303
303
  y2: t.y,
304
304
  stroke: e.value.style.chart.layout.grid.stroke,
305
305
  "stroke-width": e.value.style.chart.layout.grid.strokeWidth
306
- }, null, 8, ze))), 256)),
306
+ }, null, 8, Ge))), 256)),
307
307
  o("path", {
308
- d: F.value.path,
308
+ d: I.value.path,
309
309
  fill: "none",
310
310
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
311
311
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
312
312
  "stroke-linejoin": "round",
313
313
  "stroke-linecap": "round"
314
- }, null, 8, Ge),
314
+ }, null, 8, Ee),
315
315
  o("path", {
316
316
  fill: "none",
317
317
  stroke: e.value.style.chart.layout.smileys.colors[5],
318
318
  "stroke-width": "1",
319
319
  "stroke-linecap": "round",
320
320
  d: "M119 25A1 1 0 00137 25 1 1 0 00119 25M123 26C124 33 132 33 133 26L123 26M123 22A1 1 0 00126 22 1 1 0 00123 22M130 22A1 1 0 00133 22 1 1 0 00130 22"
321
- }, null, 8, Ee),
321
+ }, null, 8, Ue),
322
322
  o("circle", {
323
323
  class: "vue-ui-mood-radar-trap",
324
- onMouseenter: a[0] || (a[0] = (t) => s.value = 5),
325
- onMouseleave: a[1] || (a[1] = (t) => s.value = null),
324
+ onMouseenter: a[0] || (a[0] = (t) => r.value = 5),
325
+ onMouseleave: a[1] || (a[1] = (t) => r.value = null),
326
326
  cx: "128",
327
327
  cy: "25",
328
328
  r: "20",
329
- fill: s.value === 5 ? r(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
330
- }, null, 40, Ue),
329
+ fill: r.value === 5 ? s(C)(e.value.style.chart.layout.smileys.colors[5], 20) : "transparent"
330
+ }, null, 40, He),
331
331
  o("path", {
332
332
  fill: "none",
333
333
  stroke: e.value.style.chart.layout.smileys.colors[4],
334
334
  "stroke-width": "1",
335
335
  "stroke-linecap": "round",
336
336
  d: "M218 95A1 1 0 00236 95 1 1 0 00218 95M222 97C225 99 229 99 232 97M222 92A1 1 0 00225 92 1 1 0 00222 92M229 92A1 1 0 00232 92 1 1 0 00229 92"
337
- }, null, 8, He),
337
+ }, null, 8, Re),
338
338
  o("circle", {
339
339
  class: "vue-ui-mood-radar-trap",
340
- onMouseenter: a[2] || (a[2] = (t) => s.value = 4),
341
- onMouseleave: a[3] || (a[3] = (t) => s.value = null),
340
+ onMouseenter: a[2] || (a[2] = (t) => r.value = 4),
341
+ onMouseleave: a[3] || (a[3] = (t) => r.value = null),
342
342
  cx: "227",
343
343
  cy: "95.5",
344
344
  r: "20",
345
- fill: s.value === 4 ? r(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
346
- }, null, 40, Re),
345
+ fill: r.value === 4 ? s(C)(e.value.style.chart.layout.smileys.colors[4], 20) : "transparent"
346
+ }, null, 40, Xe),
347
347
  o("path", {
348
348
  fill: "none",
349
349
  stroke: e.value.style.chart.layout.smileys.colors[3],
350
350
  "stroke-width": "1",
351
351
  "stroke-linecap": "round",
352
352
  d: "M181 213A1 1 0 00199 213 1 1 0 00181 213M185 210A1 1 0 00188 210 1 1 0 00185 210M192 210A1 1 0 00195 210 1 1 0 00192 210M185 215 195 215"
353
- }, null, 8, Xe),
353
+ }, null, 8, Ke),
354
354
  o("circle", {
355
355
  class: "vue-ui-mood-radar-trap",
356
- onMouseenter: a[4] || (a[4] = (t) => s.value = 3),
357
- onMouseleave: a[5] || (a[5] = (t) => s.value = null),
356
+ onMouseenter: a[4] || (a[4] = (t) => r.value = 3),
357
+ onMouseleave: a[5] || (a[5] = (t) => r.value = null),
358
358
  cx: "190",
359
359
  cy: "213.5",
360
360
  r: "20",
361
- fill: s.value === 3 ? r(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
362
- }, null, 40, Ke),
361
+ fill: r.value === 3 ? s(C)(e.value.style.chart.layout.smileys.colors[3], 20) : "transparent"
362
+ }, null, 40, qe),
363
363
  o("path", {
364
364
  fill: "none",
365
365
  stroke: e.value.style.chart.layout.smileys.colors[2],
366
366
  "stroke-width": "1",
367
367
  "stroke-linecap": "round",
368
368
  d: "M56 213A1 1 0 0074 213 1 1 0 0056 213M60 216C63 214 67 214 70 216M60 210A1 1 0 0063 210 1 1 0 0060 210M67 210A1 1 0 0070 210 1 1 0 0067 210"
369
- }, null, 8, qe),
369
+ }, null, 8, Ye),
370
370
  o("circle", {
371
371
  class: "vue-ui-mood-radar-trap",
372
- onMouseenter: a[6] || (a[6] = (t) => s.value = 2),
373
- onMouseleave: a[7] || (a[7] = (t) => s.value = null),
372
+ onMouseenter: a[6] || (a[6] = (t) => r.value = 2),
373
+ onMouseleave: a[7] || (a[7] = (t) => r.value = null),
374
374
  cx: "65",
375
375
  cy: "213.5",
376
376
  r: "20",
377
- fill: s.value === 2 ? r(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
378
- }, null, 40, Ye),
377
+ fill: r.value === 2 ? s(C)(e.value.style.chart.layout.smileys.colors[2], 20) : "transparent"
378
+ }, null, 40, Je),
379
379
  o("path", {
380
380
  fill: "none",
381
381
  stroke: e.value.style.chart.layout.smileys.colors[1],
382
382
  "stroke-width": "1",
383
383
  "stroke-linecap": "round",
384
384
  d: "M20 96A1 1 0 0038 96 1 1 0 0020 96M24 100C25 95 33 95 34 100L24 100M24 93A1 1 0 0027 93 1 1 0 0024 93M31 93A1 1 0 0034 93 1 1 0 0031 93"
385
- }, null, 8, Je),
385
+ }, null, 8, Qe),
386
386
  o("circle", {
387
387
  class: "vue-ui-mood-radar-trap",
388
- onMouseenter: a[8] || (a[8] = (t) => s.value = 1),
389
- onMouseleave: a[9] || (a[9] = (t) => s.value = null),
388
+ onMouseenter: a[8] || (a[8] = (t) => r.value = 1),
389
+ onMouseleave: a[9] || (a[9] = (t) => r.value = null),
390
390
  cx: "29",
391
391
  cy: "95.5",
392
392
  r: "20",
393
- fill: s.value === 1 ? r(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
394
- }, null, 40, Qe),
393
+ fill: r.value === 1 ? s(C)(e.value.style.chart.layout.smileys.colors[1], 20) : "transparent"
394
+ }, null, 40, Ze),
395
395
  o("path", {
396
- d: r($e)(G.value.map((t) => t.plots)),
396
+ d: s($e)(G.value.map((t) => t.plots)),
397
397
  stroke: e.value.style.chart.layout.dataPolygon.stroke,
398
398
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
399
399
  "stroke-linecap": "round",
400
400
  "stroke-linejoin": "round",
401
- fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${w.value})` : r(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
402
- }, null, 8, Ze),
401
+ fill: e.value.style.chart.layout.dataPolygon.gradient.show ? `url(#mood_radar_gradient_${w.value})` : s(C)(e.value.style.chart.layout.dataPolygon.color, e.value.style.chart.layout.dataPolygon.opacity)
402
+ }, null, 8, et),
403
403
  (n(!0), k(q, null, Y(G.value.map((t) => t.plots), (t, d) => (n(), k("g", {
404
404
  class: "vue-ui-mood-radar-trap",
405
- style: A(`opacity:${s.value == t.key ? "1" : "0"}`)
405
+ style: F(`opacity:${r.value == t.key ? "1" : "0"}`)
406
406
  }, [
407
407
  o("line", {
408
408
  x1: t.x,
@@ -410,7 +410,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
410
410
  x2: 128,
411
411
  y2: 128,
412
412
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
413
- }, null, 8, et),
413
+ }, null, 8, tt),
414
414
  o("circle", {
415
415
  cx: t.x,
416
416
  cy: t.y,
@@ -418,7 +418,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
418
418
  r: "3",
419
419
  stroke: e.value.style.chart.backgroundColor,
420
420
  "stroke-width": 0.5
421
- }, null, 8, tt),
421
+ }, null, 8, lt),
422
422
  o("circle", {
423
423
  cx: 128,
424
424
  cy: 128,
@@ -426,7 +426,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
426
426
  r: "3",
427
427
  stroke: e.value.style.chart.backgroundColor,
428
428
  "stroke-width": 0.5
429
- }, null, 8, lt),
429
+ }, null, 8, at),
430
430
  o("text", {
431
431
  x: 128,
432
432
  y: ["5", 5].includes(t.key) ? 145 : 120,
@@ -434,33 +434,33 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
434
434
  "font-size": "12",
435
435
  "text-anchor": "middle",
436
436
  "font-weight": e.value.style.chart.layout.dataLabel.bold ? "bold" : "normal"
437
- }, M(r(Z)(
437
+ }, M(s(Z)(
438
438
  e.value.style.chart.layout.dataLabel.formatter,
439
439
  t.value,
440
- r(I)({
440
+ s(A)({
441
441
  p: e.value.style.chart.layout.dataLabel.prefix,
442
442
  v: t.value,
443
443
  s: e.value.style.chart.layout.dataLabel.suffix,
444
444
  r: e.value.style.chart.layout.dataLabel.roundingValue
445
445
  }),
446
446
  { datapoint: t, seriesIndex: d }
447
- )), 9, at),
447
+ )), 9, ot),
448
448
  o("text", {
449
449
  x: 128,
450
450
  y: ["5", 5].includes(t.key) ? 163 : 102,
451
451
  fill: e.value.style.chart.layout.dataLabel.color,
452
452
  "font-size": "12",
453
453
  "text-anchor": "middle"
454
- }, " (" + M(r(I)({
454
+ }, " (" + M(s(A)({
455
455
  v: t.value / x.value * 100,
456
456
  s: "%",
457
457
  r: e.value.style.chart.layout.dataLabel.roundingPercentage
458
- })) + ") ", 9, ot)
458
+ })) + ") ", 9, st)
459
459
  ], 4))), 256)),
460
- b(l.$slots, "svg", { svg: g.value }, void 0, !0)
461
- ], 14, je)) : i("", !0),
460
+ b(l.$slots, "svg", { svg: p.value }, void 0, !0)
461
+ ], 14, Be)) : i("", !0),
462
462
  l.$slots.watermark ? (n(), k("div", rt, [
463
- b(l.$slots, "watermark", X(K({ isPrinting: r(B) || r(D) })), void 0, !0)
463
+ b(l.$slots, "watermark", X(K({ isPrinting: s(B) || s(D) })), void 0, !0)
464
464
  ])) : i("", !0),
465
465
  _.value ? i("", !0) : (n(), f(Fe, {
466
466
  key: 4,
@@ -520,10 +520,10 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
520
520
  name: "moodHappy",
521
521
  stroke: e.value.style.chart.layout.smileys.colors[t.key]
522
522
  }, null, 8, ["stroke"])) : i("", !0),
523
- o("span", nt, M(r(Z)(
523
+ o("span", ut, M(s(Z)(
524
524
  e.value.style.chart.layout.dataLabel.formatter,
525
525
  t.value,
526
- r(I)({
526
+ s(A)({
527
527
  p: e.value.style.chart.layout.dataLabel.prefix,
528
528
  v: t.value,
529
529
  s: e.value.style.chart.layout.dataLabel.suffix,
@@ -531,12 +531,12 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
531
531
  }),
532
532
  { datapoint: t, seriesIndex: d }
533
533
  )), 1),
534
- J(" (" + M(r(I)({
534
+ J(" (" + M(s(A)({
535
535
  v: t.proportion * 100,
536
536
  s: "%",
537
537
  r: e.value.style.chart.legend.roundingPercentage
538
538
  })) + ") ", 1)
539
- ], 8, st)
539
+ ], 8, nt)
540
540
  ]),
541
541
  _: 1
542
542
  }, 8, ["legendSet", "config"])) : i("", !0),
@@ -570,7 +570,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
570
570
  o("div", {
571
571
  innerHTML: t,
572
572
  style: { display: "flex", "align-items": "center" }
573
- }, null, 8, ut)
573
+ }, null, 8, it)
574
574
  ]),
575
575
  td: m(({ td: t }) => [
576
576
  J(M(t.name || t), 1)
@@ -582,7 +582,7 @@ const Ve = ["id"], je = ["xmlns", "viewBox"], Be = ["id"], De = ["stop-color"],
582
582
  }, 8, ["config"])) : i("", !0)
583
583
  ], 14, Ve));
584
584
  }
585
- }, Ct = /* @__PURE__ */ Se(it, [["__scopeId", "data-v-32423072"]]);
585
+ }, xt = /* @__PURE__ */ Se(dt, [["__scopeId", "data-v-ebcde453"]]);
586
586
  export {
587
- Ct as default
587
+ xt as default
588
588
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Cx-40Fnz.cjs"),ce=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-B1_d29Eh.cjs"),de=require("./usePrinter-DbhL59iY.cjs"),xe=require("./DataTable-CEtr89Og.cjs"),Be=require("./Tooltip-BU4cSEF0.cjs"),_e=require("./Legend-D2ZBCCXe.cjs"),$e=require("./vue-ui-skeleton-CkSlhfsB.cjs"),Ne=require("./vue-ui-accordion-C8ka_Ot0.cjs"),ve=require("./useNestedProp-BdsfyHWU.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=w=>(e.pushScopeId("data-v-e6e70e76"),w=w(),e.popScopeId(),w),Ee=["id"],Fe=["xmlns","viewBox"],Ve=["id"],Te=M(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),De=["offset","stop-color"],ze=["offset","stop-opacity"],Pe=M(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),Oe=["id"],Ie=["id"],Ae=M(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Me=["id"],Re=["flood-color"],Ue=["d","fill","stroke","stroke-width","filter"],qe={key:0},Ye=["d","fill"],Xe={key:1},Ge=["x","y","font-size","font-weight","fill"],He={key:2},We=["filter"],Je=["text-anchor","x","y","fill","font-size","font-weight"],Ke=["text-anchor","x","y","fill","font-size","font-weight"],Qe=["text-anchor","x","y","fill","font-size","font-weight"],Ze=["d","fill","onMouseenter","onClick"],je={key:3,class:"vue-data-ui-watermark"},et={key:0,class:"vue-ui-nested-donuts-legend-title"},tt=["onClick"],lt=["innerHTML"],at={__name:"vue-ui-nested-donuts",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(w,{expose:fe,emit:R}){const k=w,{vue_ui_nested_donuts:pe}=r.useConfig(),_=e.computed(()=>!!k.dataset&&k.dataset.length),p=e.ref(r.createUid()),V=e.ref(!1),T=e.ref(""),he=e.ref(null),U=e.ref(0),x=e.ref(null),q=e.ref(null),D=e.ref(null),Y=e.ref(0),X=e.ref(0),G=e.ref(0),B=e.ref(!1);function ye(l){B.value=l,U.value+=1}const t=e.computed({get:()=>H(),set:l=>l});function H(){const l=ve.useNestedProp({userConfig:k.config,defaultConfig:pe});return l.theme?{...ve.useNestedProp({userConfig:r.themes.vue_ui_nested_donuts[l.theme]||k.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>k.config,l=>{t.value=H(),W(),Y.value+=1,X.value+=1,G.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{W()});function W(){if(r.objectIsEmpty(k.dataset)&&r.error({componentName:"VueUiNestedDonuts",type:"dataset"}),t.value.responsive){const l=ce.throttle(()=>{const{width:s,height:o}=ce.useResponsive({chart:x.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?D.value:null});d.value.width=s,d.value.height=o});$.value=new ResizeObserver(l),$.value.observe(x.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=de.usePrinter({elementId:`nested_donuts_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-nested-donuts"}),me=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),h=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({height:512,width:512});function be({datapoint:l,index:s}){R("selectDatapoint",{datapoint:l,index:s})}const v=e.ref([]),m=e.computed(()=>(k.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:s}),[null,void 0].includes(l.series)?r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"series",index:s}):l.series.length===0?r.error({componentName:"VueUiNestedDonuts",type:"datasetAttributeEmpty",property:`series at index ${s}`}):l.series.forEach((o,n)=>{[null,void 0].includes(o.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:n,key:"serie"}),[null,void 0].includes(o.values)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"values",index:n,key:"serie"})})}),k.dataset.map((l,s)=>({...l,total:l.series.filter(o=>!v.value.includes(o.id)).map(o=>r.sanitizeArray(o.values).reduce((n,a)=>n+a,0)).reduce((o,n)=>o+n,0),datasetIndex:s,id:`${p.value}_${s}`,series:l.series.map((o,n)=>({name:o.name,arcOf:l.name,arcOfId:`${p.value}_${s}`,id:`${p.value}_${s}_${n}`,seriesIndex:n,datasetIndex:s,color:r.convertColorToHex(o.color)||me.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:r.sanitizeArray(o.values).reduce((a,u)=>a+u,0),absoluteValues:o.values||[]}))})))),b=e.computed(()=>Math.min(d.value.height,d.value.width)*(t.value.style.chart.layout.donut.strokeWidth/512)),j=e.computed(()=>[...m.value].map((l,s)=>{const o=l.series.filter(n=>!v.value.includes(n.id)).map(n=>n.value).reduce((n,a)=>n+a,0);return{...l,total:o,series:l.series.filter(n=>!v.value.includes(n.id)).map(n=>({...n,proportion:n.value/o}))}}));function ge(l,s,o){let n=0;for(let a=0;a<l.length;a+=1)o.includes(l[a])&&(n+=1);return n<s}const c=e.ref(j.value);e.watch(()=>j.value,l=>c.value=l);const ee=e.ref(null),te=e.ref(null);function z(l){R("selectLegend",l);const s=m.value.flatMap(i=>i.series).find(i=>i.id===l.id),o=c.value.flatMap(i=>i.series).find(i=>i.id===l.id);let a=o?o.value:0;const u=m.value.find(i=>i.id===s.arcOfId).series.map(i=>i.id),f=ge(u,u.length-1,v.value);if(v.value.includes(l.id)){let i=function(){a>s.value?(cancelAnimationFrame(ee.value),c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id==l.id?{...g,value:s.value}:g)}))):(a+=s.value*.025,c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id===l.id?{...g,value:a}:g)})),ee.value=requestAnimationFrame(i))};v.value=v.value.filter(y=>y!==l.id),i()}else if(f){let i=function(){a<.1?(cancelAnimationFrame(te.value),v.value.push(l.id),c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:0}:L)}))):(a/=1.1,c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:a}:L)})),te.value=requestAnimationFrame(i))};i()}}const P=e.computed(()=>b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio),le=e.computed(()=>c.value.map((l,s)=>b.value-s*b.value/m.value.length)),N=e.computed(()=>c.value.map((l,s)=>{const o=s*b.value/m.value.length;return{...l,radius:b.value-o,donut:r.makeDonut({series:l.series},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,P.value)}})),ae=e.computed(()=>[...m.value].map((l,s)=>{const o=s*b.value/m.value.length;return{sizeRatio:o,donut:r.makeDonut({series:[{value:1}]},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio)[0]}})),oe=e.ref(null),S=e.ref(null),E=e.ref(null),O=e.ref(null);function ke({datapoint:l,_relativeIndex:s,seriesIndex:o}){oe.value=l.arcOfId,S.value=l.id,E.value=o,O.value={datapoint:l,seriesIndex:o,series:c.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:l,series:c.value,config:t.value})))T.value=n({seriesIndex:o,datapoint:l,series:c.value,config:t.value});else{let a="";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0){const u=c.value.map(f=>f.series.find(i=>i.seriesIndex===o));u.forEach((f,i)=>{if(!f)return"";a+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D-vy9N1v.cjs"),ce=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-BaKZYHEx.cjs"),de=require("./usePrinter-P4nLcXX-.cjs"),xe=require("./DataTable-pVXaNplZ.cjs"),Be=require("./Tooltip-okAYzo5Y.cjs"),_e=require("./Legend-k2mcTp7z.cjs"),$e=require("./vue-ui-skeleton-DJhwv2oY.cjs"),Ne=require("./vue-ui-accordion-btKAUUTu.cjs"),ve=require("./useNestedProp-B9yDavuy.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=w=>(e.pushScopeId("data-v-fe5209b5"),w=w(),e.popScopeId(),w),Ee=["id"],Fe=["xmlns","viewBox"],Ve=["id"],Te=M(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),De=["offset","stop-color"],ze=["offset","stop-opacity"],Pe=M(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),Oe=["id"],Ie=["id"],Ae=M(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Me=["id"],Re=["flood-color"],Ue=["d","fill","stroke","stroke-width","filter"],qe={key:0},Ye=["d","fill"],Xe={key:1},Ge=["x","y","font-size","font-weight","fill"],He={key:2},We=["filter"],Je=["text-anchor","x","y","fill","font-size","font-weight"],Ke=["text-anchor","x","y","fill","font-size","font-weight"],Qe=["text-anchor","x","y","fill","font-size","font-weight"],Ze=["d","fill","onMouseenter","onClick"],je={key:3,class:"vue-data-ui-watermark"},et={key:0,class:"vue-ui-nested-donuts-legend-title"},tt=["onClick"],lt=["innerHTML"],at={__name:"vue-ui-nested-donuts",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(w,{expose:fe,emit:R}){const k=w,{vue_ui_nested_donuts:pe}=r.useConfig(),_=e.computed(()=>!!k.dataset&&k.dataset.length),p=e.ref(r.createUid()),V=e.ref(!1),T=e.ref(""),he=e.ref(null),U=e.ref(0),x=e.ref(null),q=e.ref(null),D=e.ref(null),Y=e.ref(0),X=e.ref(0),G=e.ref(0),B=e.ref(!1);function ye(l){B.value=l,U.value+=1}const t=e.computed({get:()=>H(),set:l=>l});function H(){const l=ve.useNestedProp({userConfig:k.config,defaultConfig:pe});return l.theme?{...ve.useNestedProp({userConfig:r.themes.vue_ui_nested_donuts[l.theme]||k.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>k.config,l=>{t.value=H(),W(),Y.value+=1,X.value+=1,G.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{W()});function W(){if(r.objectIsEmpty(k.dataset)&&r.error({componentName:"VueUiNestedDonuts",type:"dataset"}),t.value.responsive){const l=ce.throttle(()=>{const{width:s,height:o}=ce.useResponsive({chart:x.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?D.value:null});d.value.width=s,d.value.height=o});$.value=new ResizeObserver(l),$.value.observe(x.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=de.usePrinter({elementId:`nested_donuts_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-nested-donuts"}),me=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),h=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({height:512,width:512});function be({datapoint:l,index:s}){R("selectDatapoint",{datapoint:l,index:s})}const v=e.ref([]),m=e.computed(()=>(k.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:s}),[null,void 0].includes(l.series)?r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"series",index:s}):l.series.length===0?r.error({componentName:"VueUiNestedDonuts",type:"datasetAttributeEmpty",property:`series at index ${s}`}):l.series.forEach((o,n)=>{[null,void 0].includes(o.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:n,key:"serie"}),[null,void 0].includes(o.values)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"values",index:n,key:"serie"})})}),k.dataset.map((l,s)=>({...l,total:l.series.filter(o=>!v.value.includes(o.id)).map(o=>r.sanitizeArray(o.values).reduce((n,a)=>n+a,0)).reduce((o,n)=>o+n,0),datasetIndex:s,id:`${p.value}_${s}`,series:l.series.map((o,n)=>({name:o.name,arcOf:l.name,arcOfId:`${p.value}_${s}`,id:`${p.value}_${s}_${n}`,seriesIndex:n,datasetIndex:s,color:r.convertColorToHex(o.color)||me.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:r.sanitizeArray(o.values).reduce((a,u)=>a+u,0),absoluteValues:o.values||[]}))})))),b=e.computed(()=>Math.min(d.value.height,d.value.width)*(t.value.style.chart.layout.donut.strokeWidth/512)),j=e.computed(()=>[...m.value].map((l,s)=>{const o=l.series.filter(n=>!v.value.includes(n.id)).map(n=>n.value).reduce((n,a)=>n+a,0);return{...l,total:o,series:l.series.filter(n=>!v.value.includes(n.id)).map(n=>({...n,proportion:n.value/o}))}}));function ge(l,s,o){let n=0;for(let a=0;a<l.length;a+=1)o.includes(l[a])&&(n+=1);return n<s}const c=e.ref(j.value);e.watch(()=>j.value,l=>c.value=l);const ee=e.ref(null),te=e.ref(null);function z(l){R("selectLegend",l);const s=m.value.flatMap(i=>i.series).find(i=>i.id===l.id),o=c.value.flatMap(i=>i.series).find(i=>i.id===l.id);let a=o?o.value:0;const u=m.value.find(i=>i.id===s.arcOfId).series.map(i=>i.id),f=ge(u,u.length-1,v.value);if(v.value.includes(l.id)){let i=function(){a>s.value?(cancelAnimationFrame(ee.value),c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id==l.id?{...g,value:s.value}:g)}))):(a+=s.value*.025,c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id===l.id?{...g,value:a}:g)})),ee.value=requestAnimationFrame(i))};v.value=v.value.filter(y=>y!==l.id),i()}else if(f){let i=function(){a<.1?(cancelAnimationFrame(te.value),v.value.push(l.id),c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:0}:L)}))):(a/=1.1,c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:a}:L)})),te.value=requestAnimationFrame(i))};i()}}const P=e.computed(()=>b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio),le=e.computed(()=>c.value.map((l,s)=>b.value-s*b.value/m.value.length)),N=e.computed(()=>c.value.map((l,s)=>{const o=s*b.value/m.value.length;return{...l,radius:b.value-o,donut:r.makeDonut({series:l.series},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,P.value)}})),ae=e.computed(()=>[...m.value].map((l,s)=>{const o=s*b.value/m.value.length;return{sizeRatio:o,donut:r.makeDonut({series:[{value:1}]},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio)[0]}})),oe=e.ref(null),S=e.ref(null),E=e.ref(null),O=e.ref(null);function ke({datapoint:l,_relativeIndex:s,seriesIndex:o}){oe.value=l.arcOfId,S.value=l.id,E.value=o,O.value={datapoint:l,seriesIndex:o,series:c.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:l,series:c.value,config:t.value})))T.value=n({seriesIndex:o,datapoint:l,series:c.value,config:t.value});else{let a="";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0){const u=c.value.map(f=>f.series.find(i=>i.seriesIndex===o));u.forEach((f,i)=>{if(!f)return"";a+=`
2
2
  <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${i<u.length-1?`border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor}`:""}">
3
3
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
4
4
  <svg viewBox="0 0 20 20" height="${t.value.style.chart.tooltip.fontSize}" width="${t.value.style.chart.tooltip.fontSize}">
@@ -14,4 +14,4 @@
14
14
  ${t.value.style.chart.tooltip.showPercentage?`(${r.dataLabel({v:f.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})`:""}
15
15
  </span>
16
16
  </div>
17
- `})}else a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf??""} - ${l.name}</div>`,a+=`<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>`,t.value.style.chart.tooltip.showValue&&(a+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?a+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:a+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`);T.value=`<div style="font-size:${t.value.style.chart.tooltip.fontSize}px">${a}</div>`}V.value=!0}function I(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ne(l,s){if(!t.value.useBlurOnHover)return"";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0)return[null,void 0].includes(E.value)||E.value===s?"":`url(#blur_${p.value})`;if(!t.value.style.chart.tooltip.showAllItemsAtIndex||v.value.length)return[null,void 0].includes(S.value)||S.value===l.id?"":`url(#blur_${p.value})`}const A=e.computed(()=>m.value.map((l,s)=>l.series.map((o,n)=>({name:o.name,color:o.color,value:o.value,shape:"circle",arcOf:o.arcOf,id:o.id,seriesIndex:n,datasetIndex:s,total:l.series.filter(a=>!v.value.includes(a.id)).map(a=>a.value).reduce((a,u)=>a+u,0)})).map(o=>({...o,opacity:v.value.includes(o.id)?.5:1,segregate:()=>z(o),isSegregated:v.value.includes(o.id)})))),Ce=e.computed(()=>({cy:"nested-donuts-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),C=e.computed(()=>{const l=c.value.flatMap(o=>o.series.map(n=>({name:`${o.name} - ${n.name}`,color:n.color,total:o.total}))),s=c.value.flatMap(o=>o.series.map(n=>n.value));return{head:l,body:s}});function re(){e.nextTick(()=>{const l=C.value.head.map((n,a)=>[[n.name],[C.value.body[a]],[isNaN(C.value.body[a]/n.total)?"-":C.value.body[a]/n.total*100]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-nested-donuts"})})}const F=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],s=C.value.head.map((a,u)=>{const f=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:C.value.body[u],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:a.color,name:a.name},f,isNaN(C.value.body[u]/a.total)?"-":r.dataLabel({v:C.value.body[u]/a.total*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:s,config:o}});function Le(){return m.value}function se(){h.value.showTable=!h.value.showTable}function ue(){h.value.dataLabels.show=!h.value.dataLabels.show}function ie(){h.value.showTooltip=!h.value.showTooltip}return fe({getData:Le,generatePdf:Q,generateCsv:re,generateImage:Z,toggleTable:se,toggleLabels:ue,toggleTooltip:ie}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"nestedDonutsChart",ref:x,class:e.normalizeClass(`vue-ui-nested-donuts ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${!t.value.style.chart.title.text&&t.value.userOptions.show?"padding-top:36px":""};background:${t.value.style.chart.backgroundColor}`),id:`nested_donuts_${p.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${Y.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value?(e.openBlock(),e.createBlock(de.UserOptions,{ref:"details",key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(J),isImaging:e.unref(K),uid:p.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(Q),onGenerateCsv:re,onGenerateImage:e.unref(Z),onToggleTable:se,onToggleLabels:ue,onToggleTooltip:ie},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${d.value.width<=0?.001:d.value.width} ${d.value.height<0?.001:d.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`radial_${p.value}_${n}`},[Te,e.createElementVNode("stop",{offset:`${(1-P.value/le.value[n])*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,De),e.createElementVNode("stop",{offset:`${(1-P.value/le.value[n]/2)*100}%`,"stop-color":"#FFFFFF","stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,ze),Pe],8,Ve))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${p.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${p.value}`},null,8,Ie),Ae],8,Oe),e.createElementVNode("filter",{id:`shadow_${p.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Re)],8,Me)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(r.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:ne(a,u)},null,8,Ue)]))),256))]))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:o.donut.arcSlice,fill:`url(#radial_${p.value}_${n})`,stroke:"transparent","stroke-width":"0"},null,8,Ye)]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.showDonutName?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[u===0&&d.value.width&&d.value.height?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),x:d.value.width/2,y:a.startY-t.value.style.chart.layout.labels.dataLabels.fontSize+t.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,"text-anchor":"middle","font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldDonutName?"bold":"normal",fill:t.value.style.chart.layout.labels.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation?e.unref(r.abbreviate)({source:o.name,length:t.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize}):o.name),11,Ge)):e.createCommentVNode("",!0)]))),256))]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",{filter:ne(a,u)},[I(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldPercentage?"bold":"normal"},e.toDisplayString(e.unref(r.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.layout.labels.dataLabels.roundingPercentage})),11,Je)):e.createCommentVNode("",!0),I(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY)+t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"}," ("+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u}))+") ",11,Ke)):e.createCommentVNode("",!0),I(a)&&h.value.dataLabels.show&&!t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u})),11,Qe)):e.createCommentVNode("",!0)],8,We))),256))]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-donut-trap":"",d:a.arcSlice,fill:he.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:f=>ke({datapoint:a,relativeIndex:n,seriesIndex:a.seriesIndex}),onClick:f=>be({datapoint:a,index:u}),onMouseleave:s[0]||(s[0]=f=>{V.value=!1,oe.value=null,S.value=null,E.value=null})},null,40,Ze)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(K)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Be._sfc_main,{show:h.value.showTooltip&&V.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:x.value,content:T.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"chartLegend",ref:D,class:e.normalizeClass({"vue-ui-nested-donuts-legend":A.value.length>1})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(o,n)=>(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${n}_${G.value}`,legendSet:o,config:Ce.value,onClickMarker:s[1]||(s[1]=({legend:a})=>z(a))},{legendTitle:e.withCtx(({titleSet:a})=>[a[0]&&a[0].arcOf?(e.openBlock(),e.createElementBlock("div",et,e.toDisplayString(a[0].arcOf),1)):e.createCommentVNode("",!0)]),item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:f=>z(a),style:e.normalizeStyle(`opacity:${v.value.includes(a.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:u}))+" ",1),v.value.includes(a.id)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ( - % ) ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(isNaN(a.value/a.total)?"-":e.unref(r.dataLabel)({v:a.value/a.total*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],64))],12,tt)]),_:2},1032,["legendSet","config"]))),128))],2)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:D},[e.renderSlot(l.$slots,"legend",{legend:A.value},void 0,!0)],512)),_.value?(e.openBlock(),e.createBlock(Ne.default,{key:7,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${X.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,lt)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ot=Se._export_sfc(at,[["__scopeId","data-v-e6e70e76"]]);exports.default=ot;
17
+ `})}else a+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf??""} - ${l.name}</div>`,a+=`<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>`,t.value.style.chart.tooltip.showValue&&(a+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:o})}</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?a+=`<span>(${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:a+=`<b>${r.dataLabel({v:l.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`);T.value=`<div style="font-size:${t.value.style.chart.tooltip.fontSize}px">${a}</div>`}V.value=!0}function I(l){return l.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function ne(l,s){if(!t.value.useBlurOnHover)return"";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0)return[null,void 0].includes(E.value)||E.value===s?"":`url(#blur_${p.value})`;if(!t.value.style.chart.tooltip.showAllItemsAtIndex||v.value.length)return[null,void 0].includes(S.value)||S.value===l.id?"":`url(#blur_${p.value})`}const A=e.computed(()=>m.value.map((l,s)=>l.series.map((o,n)=>({name:o.name,color:o.color,value:o.value,shape:"circle",arcOf:o.arcOf,id:o.id,seriesIndex:n,datasetIndex:s,total:l.series.filter(a=>!v.value.includes(a.id)).map(a=>a.value).reduce((a,u)=>a+u,0)})).map(o=>({...o,opacity:v.value.includes(o.id)?.5:1,segregate:()=>z(o),isSegregated:v.value.includes(o.id)})))),Ce=e.computed(()=>({cy:"nested-donuts-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),C=e.computed(()=>{const l=c.value.flatMap(o=>o.series.map(n=>({name:`${o.name} - ${n.name}`,color:n.color,total:o.total}))),s=c.value.flatMap(o=>o.series.map(n=>n.value));return{head:l,body:s}});function re(){e.nextTick(()=>{const l=C.value.head.map((n,a)=>[[n.name],[C.value.body[a]],[isNaN(C.value.body[a]/n.total)?"-":C.value.body[a]/n.total*100]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-nested-donuts"})})}const F=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],s=C.value.head.map((a,u)=>{const f=r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:C.value.body[u],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:a.color,name:a.name},f,isNaN(C.value.body[u]/a.total)?"-":r.dataLabel({v:C.value.body[u]/a.total*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:l,body:s,config:o}});function Le(){return m.value}function se(){h.value.showTable=!h.value.showTable}function ue(){h.value.dataLabels.show=!h.value.dataLabels.show}function ie(){h.value.showTooltip=!h.value.showTooltip}return fe({getData:Le,generatePdf:Q,generateCsv:re,generateImage:Z,toggleTable:se,toggleLabels:ue,toggleTooltip:ie}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"nestedDonutsChart",ref:x,class:e.normalizeClass(`vue-ui-nested-donuts ${B.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${!t.value.style.chart.title.text&&t.value.userOptions.show?"padding-top:36px":""};background:${t.value.style.chart.backgroundColor}`),id:`nested_donuts_${p.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${Y.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value?(e.openBlock(),e.createBlock(de.UserOptions,{ref:"details",key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(J),isImaging:e.unref(K),uid:p.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:x.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(Q),onGenerateCsv:re,onGenerateImage:e.unref(Z),onToggleTable:se,onToggleLabels:ue,onToggleTooltip:ie},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${d.value.width<=0?.001:d.value.width} ${d.value.height<0?.001:d.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`radial_${p.value}_${n}`},[Te,e.createElementVNode("stop",{offset:`${(1-P.value/le.value[n])*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,De),e.createElementVNode("stop",{offset:`${(1-P.value/le.value[n]/2)*100}%`,"stop-color":"#FFFFFF","stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,ze),Pe],8,Ve))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${p.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${p.value}`},null,8,Ie),Ae],8,Oe),e.createElementVNode("filter",{id:`shadow_${p.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Re)],8,Me)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{class:"vue-ui-donut-arc-path",d:a.arcSlice,fill:e.unref(r.setOpacity)(a.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:ne(a,u)},null,8,Ue)]))),256))]))),256)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{d:o.donut.arcSlice,fill:`url(#radial_${p.value}_${n})`,stroke:"transparent","stroke-width":"0"},null,8,Ye)]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.showDonutName?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[u===0&&d.value.width&&d.value.height?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),x:d.value.width/2,y:a.startY-t.value.style.chart.layout.labels.dataLabels.fontSize+t.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,"text-anchor":"middle","font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldDonutName?"bold":"normal",fill:t.value.style.chart.layout.labels.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation?e.unref(r.abbreviate)({source:o.name,length:t.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize}):o.name),11,Ge)):e.createCommentVNode("",!0)]))),256))]))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",{filter:ne(a,u)},[I(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldPercentage?"bold":"normal"},e.toDisplayString(e.unref(r.dataLabel)({v:a.proportion*100,s:"%",r:t.value.style.chart.layout.labels.dataLabels.roundingPercentage})),11,Je)):e.createCommentVNode("",!0),I(a)&&h.value.dataLabels.show&&t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY)+t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"}," ("+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u}))+") ",11,Ke)):e.createCommentVNode("",!0),I(a)&&h.value.dataLabels.show&&!t.value.style.chart.layout.labels.dataLabels.showPercentage&&t.value.style.chart.layout.labels.dataLabels.showValue?(e.openBlock(),e.createElementBlock("text",{key:2,class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!0).anchor,x:e.unref(r.calcMarkerOffsetX)(a,!1,t.value.style.chart.layout.labels.dataLabels.offsetX).x||0,y:e.unref(r.calcMarkerOffsetY)(a,t.value.style.chart.layout.labels.dataLabels.offsetY,t.value.style.chart.layout.labels.dataLabels.offsetY),fill:t.value.style.chart.layout.labels.dataLabels.useSerieColor?a.color:t.value.style.chart.layout.labels.dataLabels.color,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,"font-weight":t.value.style.chart.layout.labels.dataLabels.boldValue?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.dataLabels.roundingValue}),{datapoint:a,seriesIndex:n,datapointIndex:u})),11,Qe)):e.createCommentVNode("",!0)],8,We))),256))]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.donut,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("path",{"data-cy-donut-trap":"",d:a.arcSlice,fill:he.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:f=>ke({datapoint:a,relativeIndex:n,seriesIndex:a.seriesIndex}),onClick:f=>be({datapoint:a,index:u}),onMouseleave:s[0]||(s[0]=f=>{V.value=!1,oe.value=null,S.value=null,E.value=null})},null,40,Ze)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(K)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC"}}}},null,8,["config"])),e.createVNode(Be._sfc_main,{show:h.value.showTooltip&&V.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:x.value,content:T.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"chartLegend",ref:D,class:e.normalizeClass({"vue-ui-nested-donuts-legend":A.value.length>1})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(o,n)=>(e.openBlock(),e.createBlock(_e.Legend,{key:`legend_${n}_${G.value}`,legendSet:o,config:Ce.value,onClickMarker:s[1]||(s[1]=({legend:a})=>z(a))},{legendTitle:e.withCtx(({titleSet:a})=>[a[0]&&a[0].arcOf?(e.openBlock(),e.createElementBlock("div",et,e.toDisplayString(a[0].arcOf),1)):e.createCommentVNode("",!0)]),item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:f=>z(a),style:e.normalizeStyle(`opacity:${v.value.includes(a.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:a,seriesIndex:u}))+" ",1),v.value.includes(a.id)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ( - % ) ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(isNaN(a.value/a.total)?"-":e.unref(r.dataLabel)({v:a.value/a.total*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1)],64))],12,tt)]),_:2},1032,["legendSet","config"]))),128))],2)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:D},[e.renderSlot(l.$slots,"legend",{legend:A.value},void 0,!0)],512)),_.value?(e.openBlock(),e.createBlock(Ne.default,{key:7,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(xe.DataTable,{key:`table_${X.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,lt)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ot=Se._export_sfc(at,[["__scopeId","data-v-fe5209b5"]]);exports.default=ot;