vue-data-ui 2.3.83 → 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 (175) hide show
  1. package/dist/{Arrow-CcR4ZIEI.cjs → Arrow-CLOh6oi7.cjs} +1 -1
  2. package/dist/{Arrow-M7fNgsWN.js → Arrow-JwDgP3de.js} +1 -1
  3. package/dist/{BaseIcon-BHuHlqT8.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
  4. package/dist/{BaseIcon-DY4dOkkj.js → BaseIcon-BysUnfCR.js} +1 -1
  5. package/dist/{DataTable-NaCUmiJt.js → DataTable-MkG5Dqrn.js} +2 -2
  6. package/dist/{DataTable-BYpARrqG.cjs → DataTable-pVXaNplZ.cjs} +1 -1
  7. package/dist/{Legend-CK7IfQW2.js → Legend-KW7sTwN3.js} +1 -1
  8. package/dist/{Legend-D8icDk38.cjs → Legend-k2mcTp7z.cjs} +1 -1
  9. package/dist/{Shape-BBQ0BAq6.js → Shape-BFiZBf3X.js} +1 -1
  10. package/dist/{Shape-BSA-6ATj.cjs → Shape-COoEWeGM.cjs} +1 -1
  11. package/dist/{Slicer-BSNY_ZDL.js → Slicer-CALc-Q4W.js} +2 -2
  12. package/dist/{Slicer-BEiXplka.cjs → Slicer-DCyxUSsn.cjs} +1 -1
  13. package/dist/{Title-1LPI4Pd7.cjs → Title-BaKZYHEx.cjs} +1 -1
  14. package/dist/{Title-I5LLf5MT.js → Title-ISDbzCH8.js} +1 -1
  15. package/dist/{Tooltip-UuN-HISf.js → Tooltip-BHmMXOej.js} +1 -1
  16. package/dist/{Tooltip-BbUUQjWg.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
  17. package/dist/{index-B6bGaBzE.js → index-BiuHBtkZ.js} +2 -1
  18. package/dist/index-D-vy9N1v.cjs +4 -0
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +1 -0
  21. package/dist/types/vue-data-ui.d.ts +1 -0
  22. package/dist/{useNestedProp-CAjEiadB.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
  23. package/dist/{useNestedProp-BS8PvQ5U.js → useNestedProp-Ck5_RzLu.js} +1 -1
  24. package/dist/{usePrinter-DthbDD1O.js → usePrinter-Do8KiK5h.js} +1 -1
  25. package/dist/{usePrinter-D47Cl-_I.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
  26. package/dist/{vue-data-ui-BesfxeQR.js → vue-data-ui-CAl2KJv9.js} +57 -57
  27. package/dist/{vue-data-ui-ZBy4ZyPH.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-BmCupY_F.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
  31. package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
  32. package/dist/{vue-ui-accordion-BblXoBgi.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
  33. package/dist/{vue-ui-accordion-DVK9JwAM.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
  34. package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
  35. package/dist/{vue-ui-age-pyramid-CzgKgRqy.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
  36. package/dist/{vue-ui-annotator-CQryTk_7.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
  37. package/dist/{vue-ui-annotator-dTbuigK7.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
  38. package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
  39. package/dist/{vue-ui-candlestick-DH3-JcNQ.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
  40. package/dist/{vue-ui-carousel-table-DxDDpzyO.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
  41. package/dist/{vue-ui-carousel-table-BoLJlPIf.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
  42. package/dist/{vue-ui-chestnut-BHo_m_eO.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
  43. package/dist/{vue-ui-chestnut-DFCI0g97.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
  44. package/dist/{vue-ui-cursor-DjVXzBDJ.js → vue-ui-cursor-B1xa5yua.js} +2 -2
  45. package/dist/{vue-ui-cursor-WpptD__s.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-DewqEIU8.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-Cms5XJQ9.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
  48. package/dist/{vue-ui-digits-C0YWch_M.js → vue-ui-digits-BUpjWWnD.js} +2 -2
  49. package/dist/{vue-ui-digits-ChM4kqZY.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
  50. package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
  51. package/dist/{vue-ui-donut-jnS5SfdU.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
  52. package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-bM3kCJUD.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
  54. package/dist/{vue-ui-dumbbell-DhZL7zEK.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
  55. package/dist/{vue-ui-dumbbell-CJr-rur-.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
  56. package/dist/{vue-ui-flow-C0vcVRWr.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
  57. package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
  58. package/dist/{vue-ui-galaxy-B3FMALkv.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
  59. package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
  60. package/dist/{vue-ui-gauge-BwDm2zQl.js → vue-ui-gauge-CGh_m922.js} +61 -61
  61. package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-D9EQ3r0O.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
  63. package/dist/{vue-ui-gizmo-DA_RRisA.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
  64. package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-DAOrAKZ7.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
  66. package/dist/{vue-ui-kpi-_-b-280h.js → vue-ui-kpi-B4zr_geL.js} +3 -3
  67. package/dist/{vue-ui-kpi-DP430jb8.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
  68. package/dist/{vue-ui-mini-loader-CPtiWFfd.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-BHLoiHsr.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
  70. package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
  71. package/dist/{vue-ui-molecule-BeBh4FNr.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
  72. package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
  73. package/dist/{vue-ui-mood-radar-BD9bJ50Z.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
  74. package/dist/{vue-ui-nested-donuts-eCox9YV-.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
  75. package/dist/{vue-ui-nested-donuts-Cgto3tF8.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
  76. package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
  77. package/dist/{vue-ui-onion-CuNbMdeS.js → vue-ui-onion-DQMLPe3M.js} +88 -88
  78. package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-VJfABpcX.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
  80. package/dist/{vue-ui-quadrant-vM1usRVi.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
  81. package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
  82. package/dist/{vue-ui-quick-chart-BGVhBISR.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
  83. package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
  84. package/dist/{vue-ui-radar-B_GDv1OM.js → vue-ui-radar-B9TZPujK.js} +42 -42
  85. package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
  86. package/dist/{vue-ui-rating-ANVaulU4.js → vue-ui-rating-B0pNsmGB.js} +2 -2
  87. package/dist/{vue-ui-rating-C2XpUtCE.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
  88. package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-CeHXshK7.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
  90. package/dist/{vue-ui-rings-BbmSC-kG.js → vue-ui-rings-BuvFDBXg.js} +77 -77
  91. package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
  92. package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
  93. package/dist/{vue-ui-scatter-dWaDeP28.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
  94. package/dist/{vue-ui-screenshot-CDkexSfB.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-LFcpEMW-.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
  96. package/dist/{vue-ui-skeleton-BR_pp7QN.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
  97. package/dist/{vue-ui-skeleton-DyodIkl3.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
  98. package/dist/{vue-ui-smiley-vzDOQmfu.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-BW1y5hnG.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-DANt3xrm.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
  101. package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
  102. package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
  103. package/dist/{vue-ui-sparkbar-Ds2HHojQ.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
  104. package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
  105. package/dist/{vue-ui-sparkgauge-BtJZFN2Q.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
  106. package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
  107. package/dist/{vue-ui-sparkhistogram-BK5q9yzw.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
  108. package/dist/{vue-ui-sparkline-BH7TjDt8.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-hX4509iJ.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-D5GszwYa.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
  111. package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-B_hMyMvl.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
  113. package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
  114. package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
  115. package/dist/{vue-ui-strip-plot-de9Eymtb.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
  116. package/dist/{vue-ui-table-DCdfSuVG.cjs → vue-ui-table-328De4vk.cjs} +1 -1
  117. package/dist/{vue-ui-table-BLHo9-_6.js → vue-ui-table-CamkBCdL.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-BszD4e0_.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-Dr5Qk35G.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
  120. package/dist/{vue-ui-table-sparkline-BWXuJi0-.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-B6IhXLL_.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
  122. package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-DXv1JPZX.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
  124. package/dist/{vue-ui-timer-DtWdRECG.js → vue-ui-timer-BPepr5eV.js} +4 -4
  125. package/dist/{vue-ui-timer-Db-uYQDe.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
  126. package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-Cda6cwHT.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
  128. package/dist/{vue-ui-treemap-HzIfevi0.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-nX8RJJ0M.js → vue-ui-treemap-CWu43qLo.js} +12 -12
  130. package/dist/{vue-ui-vertical-bar-Cq9OrF-E.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
  131. package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
  132. package/dist/{vue-ui-waffle-CdfiQX7W.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
  133. package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
  134. package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
  135. package/dist/{vue-ui-wheel-pj51puV8.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
  136. package/dist/{vue-ui-word-cloud-D04mc7xB.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
  137. package/dist/{vue-ui-word-cloud-DbFRSx5H.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
  138. package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
  139. package/dist/{vue-ui-xy-CTSQiIh0.js → vue-ui-xy-DgEdZz0O.js} +831 -817
  140. package/dist/{vue-ui-xy-canvas-6lqDLyxU.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
  141. package/dist/{vue-ui-xy-canvas-D78-vkpW.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
  142. package/package.json +1 -1
  143. package/dist/index-CuTsdJDI.cjs +0 -4
  144. package/dist/vue-ui-3d-bar-ndPdPajx.cjs +0 -19
  145. package/dist/vue-ui-age-pyramid-ua3MdmCq.cjs +0 -1
  146. package/dist/vue-ui-candlestick-BSDnT9kJ.cjs +0 -2
  147. package/dist/vue-ui-donut-evolution-ConFJEQl.cjs +0 -1
  148. package/dist/vue-ui-donut-wewLho92.cjs +0 -1
  149. package/dist/vue-ui-flow-Cpwccu5D.cjs +0 -1
  150. package/dist/vue-ui-galaxy-BfcyfvBH.cjs +0 -1
  151. package/dist/vue-ui-gauge-CzhpktL0.cjs +0 -1
  152. package/dist/vue-ui-heatmap-DgeFeTzQ.cjs +0 -1
  153. package/dist/vue-ui-molecule-Bo_vv3KE.cjs +0 -1
  154. package/dist/vue-ui-mood-radar-BgM0X3vV.cjs +0 -1
  155. package/dist/vue-ui-onion-Bg4bO8zm.cjs +0 -5
  156. package/dist/vue-ui-parallel-coordinate-plot-Cn_H0TAS.cjs +0 -8
  157. package/dist/vue-ui-quadrant-CsBneYsu.cjs +0 -1
  158. package/dist/vue-ui-quick-chart-Be96p8ex.cjs +0 -15
  159. package/dist/vue-ui-radar-CkX69xOF.cjs +0 -1
  160. package/dist/vue-ui-relation-circle-4JRcycOA.cjs +0 -1
  161. package/dist/vue-ui-rings-BFDBWLpB.cjs +0 -2
  162. package/dist/vue-ui-scatter-DXC7BLyb.cjs +0 -1
  163. package/dist/vue-ui-spark-trend-B6bGMK7B.cjs +0 -1
  164. package/dist/vue-ui-sparkbar-D9lC7k4l.cjs +0 -1
  165. package/dist/vue-ui-sparkgauge-B1xubatN.cjs +0 -1
  166. package/dist/vue-ui-sparkhistogram-Czii-6F7.cjs +0 -1
  167. package/dist/vue-ui-sparkstackbar-K6WpH3Yp.cjs +0 -1
  168. package/dist/vue-ui-stackbar-D7LVOSv5.cjs +0 -6
  169. package/dist/vue-ui-strip-plot-CVT5B7TW.cjs +0 -1
  170. package/dist/vue-ui-thermometer-C1zl2BIB.cjs +0 -1
  171. package/dist/vue-ui-tiremarks-CjBnqmbt.cjs +0 -1
  172. package/dist/vue-ui-vertical-bar-CemDj3SW.cjs +0 -4
  173. package/dist/vue-ui-waffle-Cb6ILDHZ.cjs +0 -1
  174. package/dist/vue-ui-wheel-DJ6FlnRI.cjs +0 -1
  175. package/dist/vue-ui-xy-CUgcj9k1.cjs +0 -3
@@ -1,13 +1,13 @@
1
- import { computed as x, ref as m, onMounted as Ke, watch as Fe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as B, createBlock as E, createCommentVNode as d, unref as c, createSlots as qe, withCtx as P, renderSlot as T, normalizeProps as ue, guardReactiveProps as oe, createElementVNode as v, Fragment as p, renderList as k, toDisplayString as b, withKeys as Je, createTextVNode as Pe, nextTick as Qe } from "vue";
2
- import { u as Ze, o as et, e as Y, g as tt, c as De, t as lt, a as at, p as K, b as ut, G as ot, d as se, C as Te, m as re, X as st, s as U, D as rt, i as ne, f as q, j as Ie, k as J, n as Ee, H as Oe, q as nt, r as it } from "./index-B6bGaBzE.js";
3
- import { _ as ct } from "./Title-I5LLf5MT.js";
4
- import { u as vt, U as dt } from "./usePrinter-DthbDD1O.js";
5
- import { D as ht } from "./DataTable-NaCUmiJt.js";
6
- import { L as yt } from "./Legend-CK7IfQW2.js";
7
- import gt from "./vue-ui-skeleton-DyodIkl3.js";
8
- import { S as ft } from "./Slicer-BSNY_ZDL.js";
9
- import bt from "./vue-ui-accordion-BblXoBgi.js";
10
- import { u as He } from "./useNestedProp-BS8PvQ5U.js";
1
+ import { computed as x, ref as m, onMounted as Ke, watch as Fe, openBlock as a, createElementBlock as u, normalizeClass as F, normalizeStyle as ae, createBlock as E, createCommentVNode as d, unref as c, createSlots as qe, withCtx as P, renderSlot as T, normalizeProps as ue, guardReactiveProps as oe, createElementVNode as v, Fragment as p, renderList as k, toDisplayString as b, withKeys as Je, createTextVNode as Pe, nextTick as Qe } from "vue";
2
+ import { u as Ze, o as et, e as B, g as tt, c as De, t as lt, a as at, p as Y, b as ut, G as ot, d as se, C as Te, m as re, X as st, s as U, D as rt, i as ne, f as K, j as Ie, k as q, n as Ee, H as Oe, q as nt, r as it } from "./index-BiuHBtkZ.js";
3
+ import { _ as ct } from "./Title-ISDbzCH8.js";
4
+ import { u as vt, U as dt } from "./usePrinter-Do8KiK5h.js";
5
+ import { D as ht } from "./DataTable-MkG5Dqrn.js";
6
+ import { L as yt } from "./Legend-KW7sTwN3.js";
7
+ import ft from "./vue-ui-skeleton-Du4zw-c1.js";
8
+ import { S as gt } from "./Slicer-CALc-Q4W.js";
9
+ import bt from "./vue-ui-accordion-D2fhyKpk.js";
10
+ import { u as He } from "./useNestedProp-Ck5_RzLu.js";
11
11
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"], Ct = ["stop-color"], wt = ["id"], Lt = ["stop-color"], $t = ["stop-color"], St = ["stop-color"], At = { key: 0 }, Nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ft = { key: 0 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "font-size", "fill", "font-weight"], It = ["text-anchor", "font-size", "fill", "transform"], Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = { key: 1 }, Ht = ["cx", "cy", "r", "fill"], Mt = { key: 0 }, Vt = { key: 0 }, Wt = ["d", "stroke"], Rt = ["text-anchor", "x", "y", "fill"], Ut = ["cx", "cy", "r", "fill"], Xt = { key: 0 }, Gt = ["cx", "cy", "fill"], jt = { key: 1 }, Bt = ["d", "fill", "stroke"], Yt = { key: 2 }, Kt = ["d", "fill", "stroke"], qt = ["x", "y", "font-size", "fill"], Jt = ["x", "y", "width", "fill", "onClick"], Qt = ["x", "y", "width", "height", "onMouseenter", "onClick"], Zt = {
13
13
  key: 3,
@@ -16,7 +16,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
16
16
  }, el = ["x", "y", "width", "height", "fill"], tl = ["x1", "y1", "x2", "y2", "stroke"], ll = ["x1", "y2", "x2", "y1", "stroke"], al = ["onKeypress", "cx", "cy", "r"], ul = ["d", "stroke"], ol = ["cx", "cy", "r", "fill"], sl = ["d", "fill", "stroke"], rl = { class: "vue-ui-donut-evolution-focus" }, nl = ["text-anchor", "x", "y", "fill"], il = ["cx", "cy", "r", "fill"], cl = ["cx", "cy", "r", "fill"], vl = ["x", "y", "fill"], dl = ["x", "y", "font-size", "fill"], hl = {
17
17
  key: 3,
18
18
  class: "vue-data-ui-watermark"
19
- }, yl = ["onClick"], gl = { key: 0 }, fl = { key: 1 }, bl = { key: 0 }, xl = { key: 1 }, ml = {
19
+ }, yl = ["onClick"], fl = { key: 0 }, gl = { key: 1 }, bl = { key: 0 }, xl = { key: 1 }, ml = {
20
20
  __name: "vue-ui-donut-evolution",
21
21
  props: {
22
22
  config: {
@@ -48,7 +48,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
48
48
  ve();
49
49
  });
50
50
  function ve() {
51
- et($.dataset) ? Y({
51
+ et($.dataset) ? B({
52
52
  componentName: "VueUiDonutEvolution",
53
53
  type: "dataset"
54
54
  }) : $.dataset.length && $.dataset.forEach((l, i) => {
@@ -56,7 +56,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
56
56
  datasetObject: l,
57
57
  requiredAttributes: ["name", "values"]
58
58
  }).forEach((t) => {
59
- Y({
59
+ B({
60
60
  componentName: "VueUiDonutEvolution",
61
61
  type: "datasetSerieAttribute",
62
62
  property: t,
@@ -65,7 +65,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
65
65
  });
66
66
  });
67
67
  }
68
- const I = m(De()), _ = m([]), f = m(null), Q = m(null), S = m(!1), A = m(null), de = m(null), he = m(0), ye = m(0), ge = m(0), fe = m(0), be = m(0), e = x({
68
+ const I = m(De()), _ = m([]), g = m(null), J = m(null), S = m(!1), A = m(null), de = m(null), he = m(0), ye = m(0), fe = m(0), ge = m(0), be = m(0), e = x({
69
69
  get: () => xe(),
70
70
  set: (l) => l
71
71
  });
@@ -79,11 +79,11 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
79
79
  userConfig: lt.vue_ui_donut_evolution[l.theme] || $.config,
80
80
  defaultConfig: l
81
81
  }),
82
- customPalette: at[l.theme] || K
82
+ customPalette: at[l.theme] || Y
83
83
  } : l;
84
84
  }
85
85
  Fe(() => $.config, (l) => {
86
- e.value = xe(), ve(), ge.value += 1, fe.value += 1, be.value += 1;
86
+ e.value = xe(), ve(), fe.value += 1, ge.value += 1, be.value += 1;
87
87
  }, { deep: !0 }), Fe(() => $.dataset, (l) => {
88
88
  ce();
89
89
  }, { deep: !0 });
@@ -108,12 +108,12 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
108
108
  width: n
109
109
  };
110
110
  }), D = x(() => ($.dataset.forEach((l, i) => {
111
- [null, void 0].includes(l.name) && Y({
111
+ [null, void 0].includes(l.name) && B({
112
112
  componentName: "VueUiDonutEvolution",
113
113
  type: "datasetSerieAttribute",
114
114
  property: "name",
115
115
  index: i
116
- }), [null, void 0].includes(l.values) && Y({
116
+ }), [null, void 0].includes(l.values) && B({
117
117
  componentName: "VueUiDonutEvolution",
118
118
  type: "datasetSerieAttribute",
119
119
  property: "values",
@@ -122,7 +122,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
122
122
  }), $.dataset.map((l, i) => ({
123
123
  ...l,
124
124
  values: ot(l.values),
125
- color: se(l.color) || Re.value[i] || K[i] || K[i % K.length],
125
+ color: se(l.color) || Re.value[i] || Y[i] || Y[i % Y.length],
126
126
  length: (l.values || []).length,
127
127
  uid: De()
128
128
  })))), V = x(() => D.value.filter((l) => !_.value.includes(l.uid)).map((l) => ({
@@ -131,43 +131,43 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
131
131
  }))), W = x(() => Math.max(...V.value.map((l) => l.length))), w = x(() => r.value.width / (h.value.end - h.value.start)), C = x(() => {
132
132
  const l = [];
133
133
  for (let o = 0; o < h.value.end - h.value.start; o += 1) {
134
- const g = V.value.map((z) => z.values[o] ?? null), y = g.filter((z) => [void 0, null].includes(z)).length === g.length, N = g.reduce((z, L) => z + L, 0), ae = g.map((z) => z / N), M = s.value.left + w.value * o + w.value / 2;
134
+ const f = V.value.map((z) => z.values[o] ?? null), y = f.filter((z) => [void 0, null].includes(z)).length === f.length, N = f.reduce((z, L) => z + L, 0), le = f.map((z) => z / N), M = s.value.left + w.value * o + w.value / 2;
135
135
  l.push({
136
136
  index: o,
137
- percentages: ae,
137
+ percentages: le,
138
138
  subtotal: y || N < 0 ? null : N,
139
- values: g,
139
+ values: f,
140
140
  x: M
141
141
  });
142
142
  }
143
143
  const i = 0, t = Math.max(...l.map((o) => o.subtotal)), n = l.length === 1 ? t * 2 : t;
144
- return l.map((o, g) => {
145
- const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, ae = f.value === o.index ? r.value.width / 16 : N, M = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Te(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
144
+ return l.map((o, f) => {
145
+ const y = w.value / 2 * 0.7, N = y > r.value.width / 16 ? r.value.width / 16 : y, le = g.value === o.index ? r.value.width / 16 : N, M = l.length > 4 ? y * 2 : y * 2 > w.value / 2 * 0.7 ? w.value / 2 * 0.7 : y * 2, z = r.value.absoluteHeight - s.value.bottom - r.value.height * o.subtotal / Te(i, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
146
146
  return {
147
147
  ...o,
148
148
  y: z,
149
149
  radius: N,
150
- activeRadius: ae,
150
+ activeRadius: le,
151
151
  hoverRadius: M,
152
152
  donut: re({
153
153
  series: V.value.map((L, ze) => ({
154
154
  color: L.color,
155
155
  name: L.name,
156
- value: L.values[g] ?? 0
156
+ value: L.values[f] ?? 0
157
157
  }))
158
158
  }, o.x, z, N, N, 1.99999, 2, 1, 360, 105.25, N / 2),
159
159
  donutHover: re({
160
160
  series: V.value.map((L, ze) => ({
161
161
  color: L.color,
162
162
  name: L.name,
163
- value: L.values[g] ?? 0
163
+ value: L.values[f] ?? 0
164
164
  }))
165
165
  }, o.x, z, M, M, 1.99999, 2, 1, 360, 105.25, M / 2),
166
166
  donutFocus: re({
167
167
  series: V.value.map((L, ze) => ({
168
168
  color: L.color,
169
169
  name: L.name,
170
- value: L.values[g] ?? 0
170
+ value: L.values[f] ?? 0
171
171
  }))
172
172
  }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
173
173
  };
@@ -177,7 +177,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
177
177
  return ne(
178
178
  e.value.style.chart.layout.dataLabels.formatter,
179
179
  l,
180
- q({
180
+ K({
181
181
  p: e.value.style.chart.layout.dataLabels.prefix,
182
182
  v: l,
183
183
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -186,12 +186,12 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
186
186
  { datapoint: i, index: t }
187
187
  );
188
188
  }
189
- const Z = x(() => ({
189
+ const Q = x(() => ({
190
190
  max: Math.max(...C.value.map((l) => l.subtotal)),
191
191
  min: 0
192
192
  })), O = x(() => {
193
- const l = C.value.length === 1 ? Z.value.max * 2 : Z.value.max;
194
- return Te(Z.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
193
+ const l = C.value.length === 1 ? Q.value.max * 2 : Q.value.max;
194
+ return Te(Q.value.min, l, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
195
195
  });
196
196
  function Ue(l) {
197
197
  return l / O.value.max;
@@ -204,17 +204,17 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
204
204
  return isNaN(l.value / Oe(i, "value")) ? 0 : (l.value / Oe(i, "value") * 100).toFixed(0) + "%";
205
205
  }
206
206
  function we() {
207
- S.value || (f.value = null, Q.value = null);
207
+ S.value || (g.value = null, J.value = null);
208
208
  }
209
209
  function Ge(l) {
210
- S.value || (f.value = l.index, Q.value = l);
210
+ S.value || (g.value = l.index, J.value = l);
211
211
  }
212
- const ee = m(null);
213
- function te(l, i) {
214
- l.subtotal && (Q.value = null, f.value = null, S.value = !0, A.value = l, [null, void 0].includes(i) || (ee.value = i));
212
+ const Z = m(null);
213
+ function ee(l, i) {
214
+ l.subtotal && (J.value = null, g.value = null, S.value = !0, A.value = l, [null, void 0].includes(i) || (Z.value = i));
215
215
  }
216
216
  function Le() {
217
- A.value = null, S.value = !1, ee.value = null;
217
+ A.value = null, S.value = !1, Z.value = null;
218
218
  }
219
219
  const $e = x(() => D.value.map((l, i) => ({
220
220
  name: l.name,
@@ -225,7 +225,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
225
225
  })).sort((l, i) => i.value - l.value).map((l) => ({
226
226
  ...l,
227
227
  opacity: _.value.includes(l.uid) ? 0.5 : 1,
228
- segregate: () => le(l.uid),
228
+ segregate: () => te(l.uid),
229
229
  isSegregated: _.value.includes(l.uid)
230
230
  }))), Se = x(() => C.value.map((l) => l.subtotal).reduce((l, i) => l + i, 0)), je = x(() => ({
231
231
  cy: "donut-div-legend",
@@ -235,14 +235,14 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
235
235
  paddingBottom: 12,
236
236
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
237
237
  }));
238
- function le(l) {
238
+ function te(l) {
239
239
  if (_.value.includes(l))
240
240
  _.value = _.value.filter((i) => i !== l), ie("selectLegend", null);
241
241
  else {
242
242
  if (_.value.length === D.value.length - 1) return;
243
243
  _.value.push(l), ie("selectLegend", D.value.find((i) => i.uid === l));
244
244
  }
245
- A.value && te(C.value.find((i, t) => t === ee.value));
245
+ A.value && ee(C.value.find((i, t) => t === Z.value));
246
246
  }
247
247
  const H = x(() => {
248
248
  const l = [""].concat(D.value.filter((o) => !_.value.includes(o.uid)).map((o) => ({
@@ -251,11 +251,11 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
251
251
  }))).concat(["Σ"]);
252
252
  let i = [];
253
253
  for (let o = 0; o < W.value; o += 1) {
254
- const g = D.value.filter((y) => !_.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, N) => y + N, 0);
254
+ const f = D.value.filter((y) => !_.value.includes(y.uid)).map((y) => y.values[o] ?? 0).reduce((y, N) => y + N, 0);
255
255
  i.push([e.value.style.chart.layout.grid.xAxis.dataLabels.values[o] ?? "-"].concat(D.value.filter((y) => !_.value.includes(y.uid)).map((y) => ({
256
256
  value: y.values[o] ?? 0,
257
- percentage: y.values[o] ? y.values[o] / g * 100 : 0
258
- }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
257
+ percentage: y.values[o] ? y.values[o] / f * 100 : 0
258
+ }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
259
259
  }
260
260
  const t = {
261
261
  th: {
@@ -279,7 +279,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
279
279
  }
280
280
  function Ae() {
281
281
  Qe(() => {
282
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...H.value.head.map((g) => g.name ?? g)], t = [...H.value.body.map((g) => g.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = nt(n);
282
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], i = [...H.value.head.map((f) => f.name ?? f)], t = [...H.value.body.map((f) => f.map((y) => y.value ?? y))], n = l.concat([i]).concat(t), o = nt(n);
283
283
  it({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
284
284
  });
285
285
  }
@@ -300,16 +300,16 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
300
300
  ref_key: "donutEvolutionChart",
301
301
  ref: de,
302
302
  class: F(`vue-ui-donut-evolution ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
303
- style: B(`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}`),
303
+ style: ae(`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}`),
304
304
  id: I.value
305
305
  }, [
306
306
  e.value.style.chart.title.text ? (a(), u("div", {
307
307
  key: 0,
308
- style: B(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`),
308
+ style: "width:100%;background:transparent;padding-bottom:24px",
309
309
  onMouseleave: we
310
310
  }, [
311
311
  (a(), E(ct, {
312
- key: `title_${ge.value}`,
312
+ key: `title_${fe.value}`,
313
313
  config: {
314
314
  title: {
315
315
  cy: "donut-evolution-div-title",
@@ -321,7 +321,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
321
321
  }
322
322
  }
323
323
  }, null, 8, ["config"]))
324
- ], 36)) : d("", !0),
324
+ ], 32)) : d("", !0),
325
325
  e.value.userOptions.show && X.value ? (a(), E(dt, {
326
326
  ref: "details",
327
327
  key: `user_options_${he.value}`,
@@ -385,7 +385,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
385
385
  xmlns: c(st),
386
386
  class: F({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
387
387
  viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
388
- style: B(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
388
+ style: ae(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
389
389
  }, [
390
390
  v("defs", null, [
391
391
  v("linearGradient", {
@@ -454,7 +454,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
454
454
  ])) : d("", !0),
455
455
  e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (a(), u("g", {
456
456
  key: 1,
457
- class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || S.value })
457
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || S.value })
458
458
  }, [
459
459
  (a(!0), u(p, null, k(Xe.value, (t, n) => (a(), u("g", null, [
460
460
  t.value >= O.value.min && t.value <= O.value.max ? (a(), u("line", {
@@ -477,7 +477,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
477
477
  }, b(c(rt)(t.value) ? c(ne)(
478
478
  e.value.style.chart.layout.dataLabels.formatter,
479
479
  t.value,
480
- c(q)({
480
+ c(K)({
481
481
  p: e.value.style.chart.layout.dataLabels.prefix,
482
482
  v: t.value,
483
483
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -504,7 +504,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
504
504
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", null, [
505
505
  e.value.style.chart.layout.line.show && n < C.value.length - 1 && ![t.subtotal, C.value[n + 1].subtotal].includes(null) ? (a(), u("line", {
506
506
  key: 0,
507
- class: F({ "donut-opacity": !0, "donut-behind": f.value !== null || S.value }),
507
+ class: F({ "donut-opacity": !0, "donut-behind": g.value !== null || S.value }),
508
508
  x1: t.x,
509
509
  y1: t.y,
510
510
  x2: C.value[n + 1].x,
@@ -525,10 +525,10 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
525
525
  ])) : d("", !0)
526
526
  ]))), 256)),
527
527
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
528
- class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
528
+ class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
529
529
  }, [
530
530
  t.subtotal ? (a(), u("g", Mt, [
531
- f.value !== null && f.value === n ? (a(), u("g", Vt, [
531
+ g.value !== null && g.value === n ? (a(), u("g", Vt, [
532
532
  (a(!0), u(p, null, k(t.donutHover, (o) => (a(), u("g", null, [
533
533
  v("path", {
534
534
  d: c(Ie)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: t.x, y: t.y }, !0, 20),
@@ -539,16 +539,16 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
539
539
  fill: "none"
540
540
  }, null, 8, Wt)
541
541
  ]))), 256)),
542
- (a(!0), u(p, null, k(t.donutHover, (o, g) => (a(), u("g", null, [
542
+ (a(!0), u(p, null, k(t.donutHover, (o, f) => (a(), u("g", null, [
543
543
  v("text", {
544
544
  "data-cy-hover-label": "",
545
- "text-anchor": c(J)(o, !0, 0).anchor,
546
- x: c(J)(o, !0, 3).x,
545
+ "text-anchor": c(q)(o, !0, 0).anchor,
546
+ x: c(q)(o, !0, 3).x,
547
547
  y: c(Ee)(o),
548
548
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
549
549
  "font-size": 8,
550
550
  "font-weight": "bold"
551
- }, b(o.name) + ": " + b(Ce(o, t.donut)) + " (" + b(o.value === null ? "-" : j(o.value, o, g)) + ") ", 9, Rt)
551
+ }, b(o.name) + ": " + b(Ce(o, t.donut)) + " (" + b(o.value === null ? "-" : j(o.value, o, f)) + ") ", 9, Rt)
552
552
  ]))), 256)),
553
553
  v("g", null, [
554
554
  v("circle", {
@@ -562,7 +562,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
562
562
  ])) : d("", !0)
563
563
  ], 2))), 256)),
564
564
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
565
- class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
565
+ class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
566
566
  }, [
567
567
  t.subtotal !== null ? (a(), u("g", Xt, [
568
568
  t.subtotal === 0 ? (a(), u("circle", {
@@ -571,15 +571,15 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
571
571
  cy: t.y,
572
572
  r: 3,
573
573
  fill: e.value.style.chart.color
574
- }, null, 8, Gt)) : f.value !== null && f.value === n ? (a(), u("g", jt, [
575
- (a(!0), u(p, null, k(t.donutHover, (o, g) => (a(), u("path", {
574
+ }, null, 8, Gt)) : g.value !== null && g.value === n ? (a(), u("g", jt, [
575
+ (a(!0), u(p, null, k(t.donutHover, (o, f) => (a(), u("path", {
576
576
  d: o.arcSlice,
577
577
  fill: `${o.color}`,
578
578
  "stroke-width": 1,
579
579
  stroke: e.value.style.chart.backgroundColor
580
580
  }, null, 8, Bt))), 256))
581
581
  ])) : (a(), u("g", Yt, [
582
- (a(!0), u(p, null, k(t.donut, (o, g) => (a(), u("path", {
582
+ (a(!0), u(p, null, k(t.donut, (o, f) => (a(), u("path", {
583
583
  d: o.arcSlice,
584
584
  fill: `${o.color}`,
585
585
  "stroke-width": 0.5,
@@ -589,13 +589,13 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
589
589
  ])) : d("", !0)
590
590
  ], 2))), 256)),
591
591
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("g", {
592
- class: F({ "donut-opacity": !0, "donut-behind": n !== f.value && f.value !== null || S.value })
592
+ class: F({ "donut-opacity": !0, "donut-behind": n !== g.value && g.value !== null || S.value })
593
593
  }, [
594
594
  t.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (a(), u("text", {
595
595
  key: 0,
596
596
  "text-anchor": "middle",
597
597
  x: t.x,
598
- y: f.value === t.index && t.subtotal ? t.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : t.y - t.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
598
+ y: g.value === t.index && t.subtotal ? t.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : t.y - t.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
599
599
  "font-size": e.value.style.chart.layout.dataLabels.fontSize,
600
600
  "font-weight": "bold",
601
601
  fill: e.value.style.chart.layout.dataLabels.color
@@ -606,9 +606,9 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
606
606
  y: r.value.absoluteHeight - s.value.bottom - 10,
607
607
  width: w.value,
608
608
  height: 10,
609
- fill: f.value === t.index ? `url(#hover_${I.value})` : "transparent",
610
- onClick: (o) => te(t, n),
611
- class: F({ "donut-hover": f.value === t.index && t.subtotal })
609
+ fill: g.value === t.index ? `url(#hover_${I.value})` : "transparent",
610
+ onClick: (o) => ee(t, n),
611
+ class: F({ "donut-hover": g.value === t.index && t.subtotal })
612
612
  }, null, 10, Jt))), 256)),
613
613
  (a(!0), u(p, null, k(C.value, (t, n) => (a(), u("rect", {
614
614
  "data-cy-trap": "",
@@ -619,8 +619,8 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
619
619
  fill: "transparent",
620
620
  onMouseenter: (o) => Ge(t),
621
621
  onMouseleave: we,
622
- onClick: (o) => te(t, n),
623
- class: F({ "donut-hover": f.value === t.index && t.subtotal })
622
+ onClick: (o) => ee(t, n),
623
+ class: F({ "donut-hover": g.value === t.index && t.subtotal })
624
624
  }, null, 42, Qt))), 256)),
625
625
  S.value ? (a(), u("g", Zt, [
626
626
  v("rect", {
@@ -690,8 +690,8 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
690
690
  }, null, 8, sl))), 256)),
691
691
  (a(!0), u(p, null, k(A.value.donutFocus, (t, n) => (a(), u("g", rl, [
692
692
  v("text", {
693
- "text-anchor": c(J)(t, !0, 20).anchor,
694
- x: c(J)(t, !0, 10).x,
693
+ "text-anchor": c(q)(t, !0, 20).anchor,
694
+ x: c(q)(t, !0, 10).x,
695
695
  y: c(Ee)(t),
696
696
  fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
697
697
  "font-size": 10,
@@ -732,7 +732,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
732
732
  l.$slots.watermark ? (a(), u("div", hl, [
733
733
  T(l.$slots, "watermark", ue(oe({ isPrinting: c(me) || c(pe) })), void 0, !0)
734
734
  ])) : d("", !0),
735
- X.value ? d("", !0) : (a(), E(gt, {
735
+ X.value ? d("", !0) : (a(), E(ft, {
736
736
  key: 4,
737
737
  config: {
738
738
  type: "donutEvolution",
@@ -749,7 +749,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
749
749
  }
750
750
  }
751
751
  }, null, 8, ["config"])),
752
- W.value > 1 && e.value.style.chart.zoom.show ? (a(), E(ft, {
752
+ W.value > 1 && e.value.style.chart.zoom.show ? (a(), E(gt, {
753
753
  key: `slicer_${ye.value}`,
754
754
  background: e.value.style.chart.zoom.color,
755
755
  borderColor: e.value.style.chart.backgroundColor,
@@ -779,18 +779,18 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
779
779
  key: `legend_${be.value}`,
780
780
  legendSet: $e.value,
781
781
  config: je.value,
782
- onClickMarker: i[2] || (i[2] = ({ legend: t }) => le(t.uid))
782
+ onClickMarker: i[2] || (i[2] = ({ legend: t }) => te(t.uid))
783
783
  }, {
784
784
  item: P(({ legend: t, index: n }) => [
785
785
  v("div", {
786
786
  "data-cy-legend-item": "",
787
- onClick: (o) => le(t.uid),
788
- style: B(`opacity:${_.value.includes(t.uid) ? 0.5 : 1}`)
787
+ onClick: (o) => te(t.uid),
788
+ style: ae(`opacity:${_.value.includes(t.uid) ? 0.5 : 1}`)
789
789
  }, [
790
790
  Pe(b(t.name) + ": " + b(c(ne)(
791
791
  e.value.style.chart.layout.dataLabels.formatter,
792
792
  t.value,
793
- c(q)({
793
+ c(K)({
794
794
  p: e.value.style.chart.layout.dataLabels.prefix,
795
795
  v: t.value,
796
796
  s: e.value.style.chart.layout.dataLabels.suffix,
@@ -798,7 +798,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
798
798
  }),
799
799
  { datapoint: t, seriesIndex: n }
800
800
  )) + " ", 1),
801
- _.value.includes(t.uid) ? (a(), u("span", fl, " ( - % ) ")) : (a(), u("span", gl, " (" + b(isNaN(t.value / Se.value) ? "-" : c(q)({
801
+ _.value.includes(t.uid) ? (a(), u("span", gl, " ( - % ) ")) : (a(), u("span", fl, " (" + b(isNaN(t.value / Se.value) ? "-" : c(K)({
802
802
  v: t.value / Se.value * 100,
803
803
  s: "%",
804
804
  r: e.value.style.chart.legend.roundingPercentage
@@ -826,7 +826,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
826
826
  }, {
827
827
  content: P(() => [
828
828
  (a(), E(ht, {
829
- key: `table_${fe.value}`,
829
+ key: `table_${ge.value}`,
830
830
  colNames: H.value.colNames,
831
831
  head: H.value.head,
832
832
  body: H.value.body,
@@ -848,7 +848,7 @@ const mt = ["id"], pt = ["xmlns", "viewBox"], kt = ["id"], _t = ["stop-color"],
848
848
  }, 8, ["config"])) : d("", !0)
849
849
  ], 14, mt));
850
850
  }
851
- }, Fl = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-dae11ca7"]]);
851
+ }, Fl = /* @__PURE__ */ xt(ml, [["__scopeId", "data-v-1d42a435"]]);
852
852
  export {
853
853
  Fl as default
854
854
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CuTsdJDI.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),le=require("./Title-1LPI4Pd7.cjs"),W=require("./usePrinter-D47Cl-_I.cjs"),ae=require("./DataTable-BYpARrqG.cjs"),oe=require("./vue-ui-skeleton-BR_pp7QN.cjs"),re=require("./Legend-D8icDk38.cjs"),se=require("./vue-ui-accordion-DVK9JwAM.cjs"),U=require("./useNestedProp-CAjEiadB.cjs"),ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=["id"],ce=["xmlns","viewBox"],ie={key:0},de=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ve={key:1},he=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ye=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],me={key:2},fe=["x","y","font-size","fill","font-weight"],be=["x","y","font-size","fill"],ge={key:3},pe=["x","y","font-size","fill","font-weight"],ke=["id"],_e=["stop-color"],xe=["stop-color"],Ce=["stop-color"],we=["id"],Be=["stop-color"],Ne=["stop-color"],Ee=["stop-color"],Le=["id"],$e=["stop-color"],Se=["stop-color"],Ve=["id"],ze=["stop-color"],Xe=["stop-color"],Ae={key:0},Pe=["d","fill"],Te={key:1},De=["x","y","height","width","fill"],Fe=["cx","cy","r","fill","stroke","stroke-width"],Me=["cx","cy","r","fill","stroke","stroke-width"],Ge={key:2},Ie=["x","y","fill","font-size"],He={key:3},Oe=["x","y","fill","font-size"],qe={key:3,class:"vue-data-ui-watermark"},Re=["xmlns","height","width"],We=["fill"],Ue=["innerHTML"],je={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(j,{expose:Y,emit:Ze}){const y=j,{vue_ui_dumbbell:Z}=s.useConfig(),b=e.computed({get(){return!!y.dataset&&y.dataset.length},set(a){return a}}),d=e.ref(s.createUid()),L=e.ref(0),k=e.ref(null),$=e.ref(null),S=e.ref(null),V=e.ref(0),z=e.ref(0),X=e.ref(0),t=e.computed({get:()=>A(),set:a=>a});function A(){const a=U.useNestedProp({userConfig:y.config,defaultConfig:Z});return a.theme?{...U.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||y.config,defaultConfig:a})}:a}e.watch(()=>y.config,a=>{t.value=A(),P(),V.value+=1,z.value+=1,X.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width},{deep:!0}),e.watch(()=>y.dataset,a=>{I()},{deep:!0});const _=e.ref(null);e.onMounted(()=>{P()});function P(){if(s.objectIsEmpty(y.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):y.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=R.throttle(()=>{const{width:n,height:l}=R.useResponsive({chart:k.value,title:t.value.style.chart.title.text?$.value:null,legend:t.value.style.chart.legend.show?S.value:null});g.value=n,i.value=l/y.dataset.length,v.value=C()});_.value=new ResizeObserver(a),_.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{_.value&&_.value.disconnect()});const{isPrinting:T,isImaging:D,generatePdf:F,generateImage:M}=W.usePrinter({elementId:`dumbbell_${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),x=e.ref({showTable:t.value.table.show}),m=e.computed(()=>y.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),N=e.computed(()=>({max:Math.max(...m.value.flatMap(a=>[a.start,a.end])),min:Math.min(...m.value.flatMap(a=>[a.start,a.end]))})),c=e.computed(()=>s.calculateNiceScale(N.value.min<0?N.value.min:0,N.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),o=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*y.dataset.length,r=c.value.ticks.length*(g.value/c.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*y.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:r}});function C(){return m.value.map((a,n)=>{const l=o.value.left+(a.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,r=o.value.left+(a.end+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,u=l+(r-l)/2;return{...a,startX:l,endX:r,centerX:u,y:o.value.top+n*i.value+i.value/2,endVal:a.start}})}const v=e.ref([]),G=e.ref(null),J=e.computed(()=>m.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{I()});function I(){v.value=C();let a=v.value.map(l=>l.start).reduce((l,r)=>l+r,0);function n(){const l=m.value.map(r=>r.end-r.start);a>=J.value?(cancelAnimationFrame(G.value),v.value=C()):(v.value=v.value.map((r,u)=>{r.endVal+=l[u]*(t.value.animationSpeed/100);const h=o.value.left+(r.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,B=o.value.left+(r.endVal+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,E=h+(B-h)/2;return{...r,startX:h,endX:B,centerX:E,y:o.value.top+u*i.value+i.value/2,endVal:r.endVal}}),a=v.value.map(r=>r.endVal).reduce((r,u)=>r+u,0),G.value=requestAnimationFrame(n))}t.value.useAnimation?n():v.value=C()}const H=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor}]),K=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=v.value.map(l=>({name:l.name})),n=v.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((u,h)=>{const B=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),E=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),te=s.dataLabel({v:100*(f.value.body[h].end/f.value.body[h].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:u.name},B,E,te]}),l={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.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function O(){e.nextTick(()=>{const a=f.value.head.map((r,u)=>[[r.name],[f.value.body[u].start],[f.value.body[u].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const p=e.ref(!1);function Q(a){p.value=a,L.value+=1}function ee(){return v.value}function q(){x.value.showTable=!x.value.showTable}return Y({getData:ee,generatePdf:F,generateCsv:O,generateImage:M,toggleTable:q}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:k,class:e.normalizeClass(`vue-ui-dumbbell ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${d.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[(e.openBlock(),e.createBlock(le._sfc_main,{key:`title_${V.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"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(D),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:p.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,onToggleFullscreen:Q,onGeneratePdf:e.unref(F),onGenerateCsv:O,onGenerateImage:e.unref(M),onToggleTable:q},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.value}),viewBox:`0 0 ${o.value.absoluteWidth<=0?10:o.value.absoluteWidth} ${o.value.absoluteHeight<=0?10:o.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left+r*o.value.width/(c.value.ticks.length-1),x2:o.value.left+r*o.value.width/(c.value.ticks.length-1),y1:o.value.top,y2:o.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,de))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left,x2:o.value.right,y1:o.value.top+r*i.value,y2:o.value.top+r*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,he))),256)),e.createElementVNode("line",{x1:o.value.left,x2:o.value.right,y1:o.value.bottom,y2:o.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,ye)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,fe))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,be))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left+r*(o.value.width/(c.value.ticks.length-1)),y:o.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:r})),9,pe))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,_e),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Ce)],8,ke),e.createElementVNode("radialGradient",{id:`end_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Be),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ee)],8,we)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Se)],8,Le),e.createElementVNode("linearGradient",{id:`grad_negative_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Xe)],8,Ve)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("path",{d:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D-vy9N1v.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),le=require("./Title-BaKZYHEx.cjs"),W=require("./usePrinter-P4nLcXX-.cjs"),ae=require("./DataTable-pVXaNplZ.cjs"),oe=require("./vue-ui-skeleton-DJhwv2oY.cjs"),re=require("./Legend-k2mcTp7z.cjs"),se=require("./vue-ui-accordion-btKAUUTu.cjs"),U=require("./useNestedProp-B9yDavuy.cjs"),ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=["id"],ce=["xmlns","viewBox"],ie={key:0},de=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ve={key:1},he=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ye=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],me={key:2},fe=["x","y","font-size","fill","font-weight"],be=["x","y","font-size","fill"],ge={key:3},pe=["x","y","font-size","fill","font-weight"],ke=["id"],_e=["stop-color"],xe=["stop-color"],Ce=["stop-color"],we=["id"],Be=["stop-color"],Ne=["stop-color"],Ee=["stop-color"],Le=["id"],$e=["stop-color"],Se=["stop-color"],Ve=["id"],ze=["stop-color"],Xe=["stop-color"],Ae={key:0},Pe=["d","fill"],Te={key:1},De=["x","y","height","width","fill"],Fe=["cx","cy","r","fill","stroke","stroke-width"],Me=["cx","cy","r","fill","stroke","stroke-width"],Ge={key:2},Ie=["x","y","fill","font-size"],He={key:3},Oe=["x","y","fill","font-size"],qe={key:3,class:"vue-data-ui-watermark"},Re=["xmlns","height","width"],We=["fill"],Ue=["innerHTML"],je={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(j,{expose:Y,emit:Ze}){const y=j,{vue_ui_dumbbell:Z}=s.useConfig(),b=e.computed({get(){return!!y.dataset&&y.dataset.length},set(a){return a}}),d=e.ref(s.createUid()),L=e.ref(0),k=e.ref(null),$=e.ref(null),S=e.ref(null),V=e.ref(0),z=e.ref(0),X=e.ref(0),t=e.computed({get:()=>A(),set:a=>a});function A(){const a=U.useNestedProp({userConfig:y.config,defaultConfig:Z});return a.theme?{...U.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||y.config,defaultConfig:a})}:a}e.watch(()=>y.config,a=>{t.value=A(),P(),V.value+=1,z.value+=1,X.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width},{deep:!0}),e.watch(()=>y.dataset,a=>{I()},{deep:!0});const _=e.ref(null);e.onMounted(()=>{P()});function P(){if(s.objectIsEmpty(y.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):y.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=R.throttle(()=>{const{width:n,height:l}=R.useResponsive({chart:k.value,title:t.value.style.chart.title.text?$.value:null,legend:t.value.style.chart.legend.show?S.value:null});g.value=n,i.value=l/y.dataset.length,v.value=C()});_.value=new ResizeObserver(a),_.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{_.value&&_.value.disconnect()});const{isPrinting:T,isImaging:D,generatePdf:F,generateImage:M}=W.usePrinter({elementId:`dumbbell_${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),x=e.ref({showTable:t.value.table.show}),m=e.computed(()=>y.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),N=e.computed(()=>({max:Math.max(...m.value.flatMap(a=>[a.start,a.end])),min:Math.min(...m.value.flatMap(a=>[a.start,a.end]))})),c=e.computed(()=>s.calculateNiceScale(N.value.min<0?N.value.min:0,N.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),o=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*y.dataset.length,r=c.value.ticks.length*(g.value/c.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*y.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:r}});function C(){return m.value.map((a,n)=>{const l=o.value.left+(a.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,r=o.value.left+(a.end+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,u=l+(r-l)/2;return{...a,startX:l,endX:r,centerX:u,y:o.value.top+n*i.value+i.value/2,endVal:a.start}})}const v=e.ref([]),G=e.ref(null),J=e.computed(()=>m.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{I()});function I(){v.value=C();let a=v.value.map(l=>l.start).reduce((l,r)=>l+r,0);function n(){const l=m.value.map(r=>r.end-r.start);a>=J.value?(cancelAnimationFrame(G.value),v.value=C()):(v.value=v.value.map((r,u)=>{r.endVal+=l[u]*(t.value.animationSpeed/100);const h=o.value.left+(r.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,B=o.value.left+(r.endVal+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,E=h+(B-h)/2;return{...r,startX:h,endX:B,centerX:E,y:o.value.top+u*i.value+i.value/2,endVal:r.endVal}}),a=v.value.map(r=>r.endVal).reduce((r,u)=>r+u,0),G.value=requestAnimationFrame(n))}t.value.useAnimation?n():v.value=C()}const H=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor}]),K=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=v.value.map(l=>({name:l.name})),n=v.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((u,h)=>{const B=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),E=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[h].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),te=s.dataLabel({v:100*(f.value.body[h].end/f.value.body[h].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:u.name},B,E,te]}),l={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.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function O(){e.nextTick(()=>{const a=f.value.head.map((r,u)=>[[r.name],[f.value.body[u].start],[f.value.body[u].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const p=e.ref(!1);function Q(a){p.value=a,L.value+=1}function ee(){return v.value}function q(){x.value.showTable=!x.value.showTable}return Y({getData:ee,generatePdf:F,generateCsv:O,generateImage:M,toggleTable:q}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:k,class:e.normalizeClass(`vue-ui-dumbbell ${p.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${d.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(le._sfc_main,{key:`title_${V.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&&b.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(D),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:p.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,onToggleFullscreen:Q,onGeneratePdf:e.unref(F),onGenerateCsv:O,onGenerateImage:e.unref(M),onToggleTable:q},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":p.value,"vue-data-ui-fulscreen--off":!p.value}),viewBox:`0 0 ${o.value.absoluteWidth<=0?10:o.value.absoluteWidth} ${o.value.absoluteHeight<=0?10:o.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left+r*o.value.width/(c.value.ticks.length-1),x2:o.value.left+r*o.value.width/(c.value.ticks.length-1),y1:o.value.top,y2:o.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,de))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left,x2:o.value.right,y1:o.value.top+r*i.value,y2:o.value.top+r*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,he))),256)),e.createElementVNode("line",{x1:o.value.left,x2:o.value.right,y1:o.value.bottom,y2:o.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,ye)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,fe))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,be))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left+r*(o.value.width/(c.value.ticks.length-1)),y:o.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:r})),9,pe))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,_e),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Ce)],8,ke),e.createElementVNode("radialGradient",{id:`end_grad_${d.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Be),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ee)],8,we)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Se)],8,Le),e.createElementVNode("linearGradient",{id:`grad_negative_${d.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Xe)],8,Ve)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",Ae,[e.createElementVNode("path",{d:`M
2
2
  ${l.startX},${l.y+t.value.style.chart.plots.radius/2}
3
3
  C ${l.centerX},${l.y} ${l.centerX},${l.y}
4
4
  ${l.endX},${l.y+t.value.style.chart.plots.radius/2}
@@ -6,4 +6,4 @@
6
6
  C ${l.centerX},${l.y} ${l.centerX},${l.y}
7
7
  ${l.startX},${l.y-t.value.style.chart.plots.radius/2}
8
8
  Z
9
- `,fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,Pe)])):(e.openBlock(),e.createElementBlock("g",Te,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,De)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Fe),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Me),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.startX,y:o.value.top+(h+1)*i.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Ie))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.endX,y:o.value.top+h*i.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Oe))),256))])):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,ce)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:4,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show&&b.value?(e.openBlock(),e.createBlock(re.Legend,{key:`legend_${X.value}`,legendSet:H.value,config:K.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,We)],8,Re)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:H.value},void 0,!0)],512),b.value?(e.openBlock(),e.createBlock(se.default,{key:5,hideDetails:"",config:{open:x.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(ae.DataTable,{key:`table_${z.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>x.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ue)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ue))}},Ye=ne._export_sfc(je,[["__scopeId","data-v-29e2319d"]]);exports.default=Ye;
9
+ `,fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,Pe)])):(e.openBlock(),e.createElementBlock("g",Te,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${d.value})`:`url(#grad_negative_${d.value})`},null,8,De)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${d.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Fe),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${d.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Me),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.startX,y:o.value.top+(h+1)*i.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Ie))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.endX,y:o.value.top+h*i.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Oe))),256))])):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,ce)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",qe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:4,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show&&b.value?(e.openBlock(),e.createBlock(re.Legend,{key:`legend_${X.value}`,legendSet:H.value,config:K.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,We)],8,Re)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:H.value},void 0,!0)],512),b.value?(e.openBlock(),e.createBlock(se.default,{key:5,hideDetails:"",config:{open:x.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(ae.DataTable,{key:`table_${z.value}`,colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>x.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ue)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ue))}},Ye=ne._export_sfc(je,[["__scopeId","data-v-0c1f63c0"]]);exports.default=Ye;