vue-data-ui 2.3.73 → 2.3.75

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 (193) hide show
  1. package/dist/{Arrow-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
  2. package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
  3. package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
  4. package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
  5. package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
  6. package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
  7. package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
  8. package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
  9. package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
  10. package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
  11. package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
  12. package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
  13. package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
  14. package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
  15. package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
  16. package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
  17. package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
  18. package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
  21. package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
  22. package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
  23. package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
  24. package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
  25. package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
  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-BAz41kL7.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
  30. package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
  33. package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
  34. package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
  36. package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
  37. package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
  38. package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
  39. package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
  40. package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
  41. package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
  42. package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
  43. package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
  45. package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
  46. package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
  47. package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
  48. package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
  49. package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
  50. package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
  51. package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
  53. package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
  54. package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
  55. package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
  57. package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
  58. package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
  59. package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
  60. package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
  61. package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
  62. package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
  63. package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
  64. package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
  65. package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
  66. package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
  69. package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
  70. package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
  71. package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
  73. package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
  74. package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
  75. package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
  76. package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
  78. package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
  79. package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
  81. package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
  82. package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
  83. package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
  84. package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
  85. package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
  86. package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
  87. package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
  88. package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
  89. package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
  90. package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
  91. package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
  93. package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
  95. package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
  97. package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
  99. package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
  101. package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
  102. package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
  103. package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
  104. package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
  105. package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
  106. package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
  108. package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
  109. package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
  110. package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
  111. package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
  114. package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
  115. package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
  116. package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
  117. package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
  118. package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
  119. package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
  120. package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
  121. package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
  122. package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
  123. package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
  124. package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
  125. package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
  126. package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
  127. package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
  128. package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
  129. package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
  130. package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
  131. package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
  132. package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
  133. package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
  134. package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
  135. package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
  136. package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
  137. package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
  138. package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
  143. package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
  144. package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
  145. package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
  146. package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
  148. package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
  149. package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
  150. package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
  151. package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
  152. package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
  153. package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
  154. package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
  155. package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
  156. package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
  157. package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
  158. package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
  159. package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
  160. package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
  161. package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
  162. package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
  163. package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
  164. package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
  165. package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
  166. package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
  167. package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
  168. package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
  169. package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
  170. package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
  171. package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
  172. package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
  174. package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
  175. package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
  176. package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
  177. package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
  178. package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
  179. package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
  182. package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
  183. package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
  184. package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
  185. package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
  186. package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
  187. package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
  188. package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
  189. package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
  190. package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
  191. package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
  192. package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
  193. package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
@@ -1,19 +1,19 @@
1
- import { useCssVars as Ge, computed as b, ref as p, onMounted as Ue, onBeforeUnmount as He, openBlock as i, createElementBlock as v, normalizeClass as O, normalizeStyle as d, createVNode as A, createCommentVNode as m, createBlock as oe, unref as y, createSlots as We, withCtx as _, renderSlot as x, normalizeProps as j, guardReactiveProps as Y, createElementVNode as u, toDisplayString as c, Fragment as E, renderList as G, withKeys as je, createTextVNode as Ye } from "vue";
2
- import { u as qe, c as Ke, t as Je, a as Qe, p as z, b as Ze, o as Ce, e as q, s as T, d as ue, i as K, f as F, X as et, v as tt, w as ne, x as at, y as lt, q as ot, r as ut } from "./index-Dvs5Ra-u.js";
3
- import { t as nt, u as st } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as rt } from "./Title-Ngy9HNqO.js";
5
- import { u as it, U as dt } from "./usePrinter-B8-keRMa.js";
6
- import { _ as ct } from "./Tooltip-BCtg7xYX.js";
7
- import { L as Te } from "./Legend-CHd5QFPM.js";
8
- import vt from "./vue-ui-skeleton-CAvlIcgk.js";
9
- import ht from "./BaseIcon-_V_BEdy8.js";
10
- import pt from "./vue-ui-accordion-C-qAry7P.js";
11
- import { u as Le } from "./useNestedProp-UohhCyBz.js";
12
- import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t = ["stop-color"], xt = ["stop-color"], kt = ["x", "y", "width", "height", "fill", "rx"], $t = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], wt = ["x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Lt = ["x", "y", "font-size", "fill", "font-weight"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Pt = ["x", "y", "font-size", "fill", "font-weight"], St = ["y", "width", "height", "fill", "onMouseenter"], Vt = {
1
+ import { useCssVars as Ye, computed as b, ref as d, watch as Pe, onMounted as qe, onBeforeUnmount as Ke, openBlock as n, createElementBlock as c, normalizeClass as D, normalizeStyle as r, createBlock as R, createCommentVNode as m, unref as h, createSlots as Je, withCtx as k, renderSlot as x, normalizeProps as K, guardReactiveProps as J, createElementVNode as u, toDisplayString as i, Fragment as U, renderList as H, createVNode as Se, withKeys as Qe, createTextVNode as Ze } from "vue";
2
+ import { u as et, c as tt, t as at, a as lt, p as M, b as ot, o as Ve, e as Q, s as S, d as ne, i as Z, f as I, X as ut, v as nt, w as se, x as st, y as rt, q as it, r as dt } from "./index-Cm4Iry5c.js";
3
+ import { t as ct, u as vt } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as ht } from "./Title-C26I_HC3.js";
5
+ import { u as pt, U as gt } from "./usePrinter-B8RnF8_q.js";
6
+ import { _ as yt } from "./Tooltip-CH8GmDCG.js";
7
+ import { L as ze } from "./Legend-DX1kv21U.js";
8
+ import ft from "./vue-ui-skeleton-C1oUnz7R.js";
9
+ import bt from "./BaseIcon-BAOfPaXs.js";
10
+ import mt from "./vue-ui-accordion-Cb6XBCbu.js";
11
+ import { u as Fe } from "./useNestedProp-CurQIHTa.js";
12
+ import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const kt = ["id"], xt = ["onClick"], $t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], Tt = ["stop-color"], Lt = ["x", "y", "width", "height", "fill", "rx"], Nt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pt = ["x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "font-size", "fill", "font-weight"], It = ["y", "width", "height", "fill", "onMouseenter"], Bt = {
14
14
  key: 4,
15
15
  class: "vue-data-ui-watermark"
16
- }, zt = ["onClick"], Ft = { style: "width:100%;padding-top: 36px;position:relative" }, Mt = { class: "vue-ui-data-table" }, It = { key: 0 }, Bt = { style: { width: "100%" } }, Ot = ["data-cell"], Dt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Rt = ["data-cell"], Xt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, At = ["data-cell"], Et = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Gt = ["data-cell"], Ut = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ht = ["data-cell"], Wt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jt = ["data-cell"], Yt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, qt = ["data-cell"], Kt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jt = {
16
+ }, Ot = ["onClick"], Dt = { style: "width:100%;padding-top: 36px;position:relative" }, Rt = { class: "vue-ui-data-table" }, Xt = { key: 0 }, At = { style: { width: "100%" } }, Et = ["data-cell"], Gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ut = ["data-cell"], Ht = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wt = ["data-cell"], jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yt = ["data-cell"], qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kt = ["data-cell"], Jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Qt = ["data-cell"], Zt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, aa = {
17
17
  __name: "vue-ui-vertical-bar",
18
18
  props: {
19
19
  config: {
@@ -30,67 +30,79 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
30
30
  }
31
31
  },
32
32
  emits: ["selectLegend"],
33
- setup(Ne, { expose: Pe, emit: Se }) {
34
- const L = Ne;
35
- Ge((a) => ({
36
- "7bc84c58": a.tdo
33
+ setup(Me, { expose: Ie, emit: Be }) {
34
+ const C = Me;
35
+ Ye((a) => ({
36
+ f13b9132: a.tdo
37
37
  }));
38
- const { vue_ui_vertical_bar: Ve } = qe(), U = b(() => !!L.dataset && L.dataset.length), P = p(Ke()), ze = p(null), J = p(!1), Q = p(""), H = p(0), Fe = p(null), se = p(0), D = p(null), re = p(null), Z = p(null), e = b(() => {
39
- const a = Le({
40
- userConfig: L.config,
41
- defaultConfig: Ve
38
+ const { vue_ui_vertical_bar: Oe } = et(), W = b(() => !!C.dataset && C.dataset.length), V = d(tt()), De = d(null), ee = d(!1), te = d(""), j = d(0), Re = d(null), re = d(0), X = d(null), ie = d(null), ae = d(null), de = d(0), le = d(0), e = b({
39
+ get: () => ce(),
40
+ set: (a) => a
41
+ });
42
+ function ce() {
43
+ const a = Fe({
44
+ userConfig: C.config,
45
+ defaultConfig: Oe
42
46
  });
43
47
  return a.theme ? {
44
- ...Le({
45
- userConfig: Je.vue_ui_vertical_bar[a.theme] || L.config,
48
+ ...Fe({
49
+ userConfig: at.vue_ui_vertical_bar[a.theme] || C.config,
46
50
  defaultConfig: a
47
51
  }),
48
- customPalette: Qe[a.theme] || z
52
+ customPalette: lt[a.theme] || M
49
53
  } : a;
50
- }), { isPrinting: ie, isImaging: de, generatePdf: ce, generateImage: ve } = it({
51
- elementId: `vue-ui-vertical-bar_${P.value}`,
54
+ }
55
+ Pe(() => C.config, (a) => {
56
+ e.value = ce(), me(), de.value += 1, le.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
57
+ }, { deep: !0 }), Pe(() => C.dataset, q, { deep: !0 });
58
+ const { isPrinting: ve, isImaging: he, generatePdf: pe, generateImage: ge } = pt({
59
+ elementId: `vue-ui-vertical-bar_${V.value}`,
52
60
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
53
- }), he = b(() => Ze(e.value.customPalette)), pe = p(null), ye = p(!1), Me = b(() => e.value.table.responsiveBreakpoint), W = p(null);
54
- Ue(() => {
55
- if (Ce(L.dataset) && q({
61
+ }), ye = b(() => ot(e.value.customPalette)), fe = d(null), be = d(!1), Xe = b(() => e.value.table.responsiveBreakpoint), Y = d(null);
62
+ qe(() => {
63
+ me();
64
+ });
65
+ function me() {
66
+ if (Ve(C.dataset) && Q({
56
67
  componentName: "VueUiVerticalBar",
57
68
  type: "dataset"
58
- }), H.value = L.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ie(), e.value.responsive) {
59
- const a = nt(() => {
60
- const { width: l, height: t } = st({
61
- chart: D.value,
62
- title: e.value.style.chart.title.text ? re.value : null,
63
- legend: e.value.style.chart.legend.show ? Z.value : null
69
+ }), j.value = C.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ae(), e.value.responsive) {
70
+ const a = ct(() => {
71
+ const { width: l, height: t } = vt({
72
+ chart: X.value,
73
+ title: e.value.style.chart.title.text ? ie.value : null,
74
+ legend: e.value.style.chart.legend.show ? ae.value : null
64
75
  });
65
- be.value = l, h.value = t / H.value - f.value * 2;
76
+ xe.value = l, v.value = t / j.value - g.value * 2;
66
77
  });
67
- W.value = new ResizeObserver(a), W.value.observe(D.value.parentNode);
78
+ Y.value = new ResizeObserver(a), Y.value.observe(X.value.parentNode);
68
79
  }
69
- }), He(() => {
70
- W.value && W.value.disconnect();
80
+ }
81
+ Ke(() => {
82
+ Y.value && Y.value.disconnect();
71
83
  });
72
- function Ie() {
84
+ function Ae() {
73
85
  new ResizeObserver((l) => {
74
86
  l.forEach((t) => {
75
- ye.value = t.contentRect.width < Me.value;
87
+ be.value = t.contentRect.width < Xe.value;
76
88
  });
77
- }).observe(pe.value);
89
+ }).observe(fe.value);
78
90
  }
79
- const k = p({
91
+ const $ = d({
80
92
  showTable: e.value.table.show,
81
93
  sortDesc: e.value.style.chart.layout.bars.sort === "desc",
82
94
  showTooltip: e.value.style.chart.tooltip.show
83
- }), ge = b(() => k.value.sortDesc), S = b(() => (L.dataset.forEach((a, l) => {
84
- !a.value && !a.children && q({
95
+ }), _e = b(() => $.value.sortDesc), z = b(() => (C.dataset.forEach((a, l) => {
96
+ !a.value && !a.children && Q({
85
97
  componentName: "VueUiVerticalBar",
86
98
  type: "datasetAttributeEmpty",
87
99
  property: `value (index ${l})`
88
- }), a.children && (Ce(a.children) ? q({
100
+ }), a.children && (Ve(a.children) ? Q({
89
101
  componentName: "VueUiVerticalBar",
90
102
  type: "datasetAttributeEmpty",
91
103
  property: `children (index ${l})`
92
104
  }) : a.children.forEach((t, o) => {
93
- [null, void 0].includes(t.name) && q({
105
+ [null, void 0].includes(t.name) && Q({
94
106
  componentName: "VueUiVerticalBar",
95
107
  type: "datasetSerieAttribute",
96
108
  property: "name",
@@ -98,157 +110,158 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
98
110
  index: o
99
111
  });
100
112
  }));
101
- }), L.dataset.map((a, l) => {
102
- const t = `vertical_parent_${l}_${P.value}`, o = !!a.children && a.children.length > 0;
113
+ }), C.dataset.map((a, l) => {
114
+ const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((_) => _.value || 0).reduce((_, N) => _ + N, 0) : 0), p = f >= 0 ? 1 : -1;
103
115
  return {
104
116
  ...a,
105
117
  id: t,
106
118
  shape: "square",
107
- opacity: w.value.includes(t) ? 0.5 : 1,
108
- value: T(o ? a.children.map((s) => s.value || 0).reduce((s, r) => s + r, 0) : Math.abs(a.value) || 0),
109
- sign: a.value >= 0 ? 1 : -1,
119
+ opacity: T.value.includes(t) ? 0.5 : 1,
120
+ value: Math.abs(f),
121
+ sign: p,
110
122
  hasChildren: o,
111
123
  isChild: !1,
112
- segregate: () => R(t),
113
- isSegregated: w.value.includes(t),
114
- color: ue(a.color) || he.value[l] || z[l] || z[l % z.length],
115
- children: !a.children || !a.children.length ? [] : a.children.toSorted((s, r) => ge.value ? r.value - s.value : s.value - r.value).map((s, r) => ({
116
- ...s,
117
- value: T(Math.abs(s.value)),
118
- sign: s.value >= 0 ? 1 : -1,
124
+ segregate: () => A(t),
125
+ isSegregated: T.value.includes(t),
126
+ color: ne(a.color) || ye.value[l] || M[l] || M[l % M.length],
127
+ children: !a.children || !a.children.length ? [] : a.children.toSorted((_, N) => _e.value ? N.value - _.value : _.value - N.value).map((_, N) => ({
128
+ ..._,
129
+ value: S(Math.abs(_.value)),
130
+ sign: _.value >= 0 ? 1 : -1,
119
131
  isChild: !0,
120
132
  parentId: t,
121
133
  parentName: a.name,
122
- parentValue: T(a.value || o ? a.children.map((le) => le.value || 0).reduce((le, Ee) => le + Ee, 0) : 0),
123
- id: `vertical_child_${l}_${r}_${P.value}`,
124
- childIndex: r,
125
- color: ue(s.color) || ue(a.color) || he.value[l] || z[l] || z[l % z.length]
126
- })).map((s, r) => ({
127
- ...s,
128
- isFirstChild: r === 0,
129
- isLastChild: r === a.children.length - 1
134
+ parentValue: f,
135
+ parentSign: p,
136
+ id: `vertical_child_${l}_${N}_${V.value}`,
137
+ childIndex: N,
138
+ color: ne(_.color) || ne(a.color) || ye.value[l] || M[l] || M[l % M.length]
139
+ })).map((_, N) => ({
140
+ ..._,
141
+ isFirstChild: N === 0,
142
+ isLastChild: N === a.children.length - 1
130
143
  }))
131
144
  };
132
- }).toSorted((a, l) => ge.value ? l.value - a.value : a.value - l.value))), fe = b(() => ({
145
+ }).toSorted((a, l) => _e.value ? l.value - a.value : a.value - l.value))), ke = b(() => ({
133
146
  cy: "vertical-bar-div-legend",
134
147
  backgroundColor: e.value.style.chart.legend.backgroundColor,
135
148
  color: e.value.style.chart.legend.color,
136
149
  fontSize: e.value.style.chart.legend.fontSize,
137
150
  paddingBottom: 12,
138
151
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
139
- })), h = p(e.value.style.chart.layout.bars.height), f = p(e.value.style.chart.layout.bars.gap), Be = b(() => (h.value + f.value) * H.value), be = p(512), g = b(() => ({
140
- width: be.value,
141
- height: Be.value,
152
+ })), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), Ee = b(() => (v.value + g.value) * j.value), xe = d(512), y = b(() => ({
153
+ width: xe.value,
154
+ height: Ee.value,
142
155
  padding: {
143
156
  top: 12,
144
157
  left: 128 + e.value.style.chart.layout.bars.offsetX,
145
158
  right: 64 + e.value.style.chart.layout.bars.paddingRight,
146
159
  bottom: 12
147
160
  }
148
- })), n = b(() => ({
149
- fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
150
- top: g.value.padding.top,
151
- left: g.value.padding.left,
152
- right: g.value.width - g.value.padding.right,
153
- bottom: g.value.padding.top + g.value.height,
154
- width: g.value.width - (g.value.padding.left + g.value.padding.right)
161
+ })), s = b(() => ({
162
+ fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
163
+ top: y.value.padding.top,
164
+ left: y.value.padding.left,
165
+ right: y.value.width - y.value.padding.right,
166
+ bottom: y.value.padding.top + y.value.height,
167
+ width: y.value.width - (y.value.padding.left + y.value.padding.right)
155
168
  }));
156
- function ee() {
157
- H.value = V.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
169
+ function q() {
170
+ j.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
158
171
  }
159
- const w = p([]);
160
- function R(a) {
161
- w.value.includes(a) ? w.value = w.value.filter((l) => l !== a) : w.value.push(a), ee(), Se("selectLegend", V.value);
172
+ const T = d([]);
173
+ function A(a) {
174
+ T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a), q(), Be("selectLegend", F.value);
162
175
  }
163
- const V = b(() => S.value.filter((a) => !w.value.includes(a.id))), C = b(() => V.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
164
- function me(a, l = !1, t = 0) {
165
- return l ? F({
166
- v: T(Math.abs(a) / C.value * 100),
176
+ const F = b(() => z.value.filter((a) => !T.value.includes(a.id))), L = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
177
+ function $e(a, l = !1, t = 0) {
178
+ return l ? I({
179
+ v: S(Math.abs(a) / L.value * 100),
167
180
  s: "%",
168
181
  r: t
169
- }) : Math.abs(a) / C.value;
182
+ }) : Math.abs(a) / L.value;
170
183
  }
171
- const M = b(() => V.value.flatMap((a) => a.hasChildren ? a.children : a)), I = b(() => M.value.map((a) => a.sign).includes(-1)), Oe = b(() => Math.max(...V.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
172
- function N(a) {
173
- const l = a / Oe.value;
174
- return n.value.width / (I.value ? 2 : 1) * l;
184
+ const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), O = b(() => B.value.map((a) => a.sign).includes(-1)), Ge = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
185
+ function P(a) {
186
+ const l = a / Ge.value;
187
+ return s.value.width / (O.value ? 2 : 1) * l;
175
188
  }
176
- function De(a) {
177
- return N(a) + n.value.left;
189
+ function Ue(a) {
190
+ return P(a) + s.value.left;
178
191
  }
179
- function B(a, l) {
180
- const t = V.value.find((r) => r.id === a.parentId), o = n.value.top + (f.value + h.value) * l, s = t.children.length * (f.value + h.value);
192
+ function E(a, l) {
193
+ const t = F.value.find((p) => p.id === a.parentId), o = s.value.top + (g.value + v.value) * l, f = t.children.length * (g.value + v.value);
181
194
  return {
182
- y: o + s / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
195
+ y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
183
196
  name: t.name,
184
197
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
185
- percentageToTotal: isNaN(t.value / C.value) ? "" : me(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
198
+ percentageToTotal: isNaN(t.value / L.value) ? "" : $e(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
186
199
  sign: t.sign
187
200
  };
188
201
  }
189
- function Re() {
190
- return V.value;
202
+ function He() {
203
+ return F.value;
191
204
  }
192
- const te = p(null), ae = p(null);
193
- function Xe(a, l) {
194
- ae.value = {
205
+ const oe = d(null), ue = d(null);
206
+ function We(a, l) {
207
+ ue.value = {
195
208
  datapoint: a,
196
209
  seriesIndex: l,
197
- series: S.value,
210
+ series: z.value,
198
211
  config: e.value
199
- }, J.value = !0, te.value = a.id;
212
+ }, ee.value = !0, oe.value = a.id;
200
213
  let t = "";
201
- const o = a.isChild ? a.parentName : a.name, s = a.isChild ? a.name : "", r = e.value.style.chart.tooltip.customFormat;
202
- at(r) && lt(() => r({
214
+ const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
215
+ st(p) && rt(() => p({
203
216
  datapoint: a,
204
- series: S.value,
217
+ series: z.value,
205
218
  config: e.value,
206
219
  seriesIndex: l
207
- })) ? Q.value = r({
220
+ })) ? te.value = p({
208
221
  datapoint: a,
209
- series: S.value,
222
+ series: z.value,
210
223
  config: e.value,
211
224
  seriesIndex: l
212
225
  }) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
213
226
  <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${o}</div>
214
- ${s ? `<div>${s}</div>` : ""}
215
- </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${K(
227
+ ${f ? `<div>${f}</div>` : ""}
228
+ </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Z(
216
229
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
217
230
  a.sign === 1 ? a.value : -a.value,
218
- F({
231
+ I({
219
232
  p: e.value.style.chart.tooltip.prefix,
220
233
  v: a.sign === 1 ? a.value : -a.value,
221
234
  s: e.value.style.chart.tooltip.suffix,
222
235
  r: e.value.style.chart.tooltip.roundingValue
223
236
  }),
224
237
  { datapoint: a, seriesIndex: l }
225
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${F({
226
- v: Math.abs(a.value) / C.value * 100,
238
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${I({
239
+ v: Math.abs(a.value) / L.value * 100,
227
240
  s: "%",
228
241
  r: e.value.style.chart.tooltip.roundingPercentage
229
- })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${F({
242
+ })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${I({
230
243
  v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
231
244
  s: "%",
232
245
  r: e.value.style.chart.tooltip.roundingPercentage
233
- })}</b></div>`)), Q.value = `<div style="text-align:left">${t}</div>`);
246
+ })}</b></div>`)), te.value = `<div style="text-align:left">${t}</div>`);
234
247
  }
235
- function _e(a, l, t, o) {
248
+ function Ce(a, l, t, o) {
236
249
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
237
250
  return "";
238
- const s = K(
251
+ const f = Z(
239
252
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
240
- T(o === -1 && a >= 0 ? -a : a),
241
- F({
253
+ S(o === -1 && a >= 0 ? -a : a),
254
+ I({
242
255
  p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
243
- v: T(o === -1 && a >= 0 ? -a : a),
256
+ v: S(o === -1 && a >= 0 ? -a : a),
244
257
  s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
245
258
  r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
246
259
  }),
247
260
  { datapoint: l, seriesIndex: t }
248
- ), r = `(${me(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
249
- return `${s}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${r}` : ""}`;
261
+ ), p = `(${$e(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
262
+ return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
250
263
  }
251
- const $ = b(() => {
264
+ const w = b(() => {
252
265
  const a = [
253
266
  e.value.translations.parentName,
254
267
  e.value.translations.value,
@@ -257,15 +270,15 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
257
270
  e.value.translations.value,
258
271
  e.value.translations.percentageToSerie,
259
272
  e.value.translations.percentageToTotal
260
- ], l = M.value.map((t) => t.isChild ? t.isFirstChild ? {
273
+ ], l = B.value.map((t) => t.isChild ? t.isFirstChild ? {
261
274
  color: t.color,
262
275
  parentName: t.parentName,
263
276
  parentValue: t.parentValue,
264
- percentageToTotal: t.parentValue / C.value,
277
+ percentageToTotal: t.parentValue / L.value,
265
278
  childName: t.name,
266
279
  childValue: t.sign === 1 ? t.value : -t.value,
267
280
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
268
- childPercentageToTotal: Math.abs(t.value) / C.value
281
+ childPercentageToTotal: Math.abs(t.value) / L.value
269
282
  } : {
270
283
  color: "",
271
284
  parentName: "",
@@ -274,12 +287,12 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
274
287
  childName: t.name,
275
288
  childValue: t.sign === 1 ? t.value : -t.value,
276
289
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
277
- childPercentageToTotal: Math.abs(t.value) / C.value
290
+ childPercentageToTotal: Math.abs(t.value) / L.value
278
291
  } : {
279
292
  color: t.color,
280
293
  parentName: t.name,
281
294
  parentValue: t.sign === 1 ? t.value : -t.value,
282
- percentageToTotal: Math.abs(t.value) / C.value,
295
+ percentageToTotal: Math.abs(t.value) / L.value,
283
296
  childName: "",
284
297
  childValue: "",
285
298
  childPercentageToParent: "",
@@ -287,54 +300,55 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
287
300
  });
288
301
  return { head: a, body: l };
289
302
  });
290
- function xe() {
291
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = $.value.head, t = $.value.body.map((r) => [
292
- r.parentName,
293
- r.parentValue,
294
- r.percentageToTotal,
295
- r.childName,
296
- r.childValue,
297
- r.childPercentageToParent,
298
- r.childPercentageToTotal
299
- ]), o = a.concat([l]).concat(t), s = ot(o);
300
- ut({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
303
+ function we() {
304
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, t = w.value.body.map((p) => [
305
+ p.parentName,
306
+ p.parentValue,
307
+ p.percentageToTotal,
308
+ p.childName,
309
+ p.childValue,
310
+ p.childPercentageToParent,
311
+ p.childPercentageToTotal
312
+ ]), o = a.concat([l]).concat(t), f = it(o);
313
+ dt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
301
314
  }
302
- const X = p(!1);
303
- function Ae(a) {
304
- X.value = a, se.value += 1;
315
+ const G = d(!1);
316
+ function je(a) {
317
+ G.value = a, re.value += 1;
305
318
  }
306
- function ke() {
307
- k.value.showTable = !k.value.showTable;
319
+ function Te() {
320
+ $.value.showTable = !$.value.showTable;
308
321
  }
309
- function $e() {
310
- k.value.sortDesc = !k.value.sortDesc, ee();
322
+ function Le() {
323
+ $.value.sortDesc = !$.value.sortDesc, q();
311
324
  }
312
- function we() {
313
- k.value.showTooltip = !k.value.showTooltip;
325
+ function Ne() {
326
+ $.value.showTooltip = !$.value.showTooltip;
314
327
  }
315
- return Pe({
316
- getData: Re,
317
- recalculateHeight: ee,
318
- generatePdf: ce,
319
- generateCsv: xe,
320
- generateImage: ve,
321
- toggleTable: ke,
322
- toggleSort: $e,
323
- toggleTooltip: we
324
- }), (a, l) => (i(), v("div", {
325
- class: O(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
328
+ return Ie({
329
+ getData: He,
330
+ recalculateHeight: q,
331
+ generatePdf: pe,
332
+ generateCsv: we,
333
+ generateImage: ge,
334
+ toggleTable: Te,
335
+ toggleSort: Le,
336
+ toggleTooltip: Ne
337
+ }), (a, l) => (n(), c("div", {
338
+ class: D(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
326
339
  ref_key: "verticalBarChart",
327
- ref: D,
328
- id: `vue-ui-vertical-bar_${P.value}`,
329
- style: d(`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};${e.value.responsive ? "height: 100%" : ""}`)
340
+ ref: X,
341
+ id: `vue-ui-vertical-bar_${V.value}`,
342
+ style: r(`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};${e.value.responsive ? "height: 100%" : ""}`)
330
343
  }, [
331
- e.value.style.chart.title.text ? (i(), v("div", {
344
+ e.value.style.chart.title.text ? (n(), c("div", {
332
345
  key: 0,
333
346
  ref_key: "chartTitle",
334
- ref: re,
335
- style: d(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
347
+ ref: ie,
348
+ style: r(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
336
349
  }, [
337
- A(rt, {
350
+ (n(), R(ht, {
351
+ key: `title_${de.value}`,
338
352
  config: {
339
353
  title: {
340
354
  cy: "vertical-bar-div-title",
@@ -345,17 +359,17 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
345
359
  ...e.value.style.chart.title.subtitle
346
360
  }
347
361
  }
348
- }, null, 8, ["config"])
362
+ }, null, 8, ["config"]))
349
363
  ], 4)) : m("", !0),
350
- e.value.userOptions.show && U.value ? (i(), oe(dt, {
364
+ e.value.userOptions.show && W.value ? (n(), R(gt, {
351
365
  ref_key: "details",
352
- ref: ze,
353
- key: `user_options_${se.value}`,
366
+ ref: De,
367
+ key: `user_options_${re.value}`,
354
368
  backgroundColor: e.value.style.chart.backgroundColor,
355
369
  color: e.value.style.chart.color,
356
- isImaging: y(de),
357
- isPrinting: y(ie),
358
- uid: P.value,
370
+ isImaging: h(he),
371
+ isPrinting: h(ve),
372
+ uid: V.value,
359
373
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
360
374
  hasPdf: e.value.userOptions.buttons.pdf,
361
375
  hasImg: e.value.userOptions.buttons.img,
@@ -363,225 +377,226 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
363
377
  hasTable: e.value.userOptions.buttons.table,
364
378
  hasSort: e.value.userOptions.buttons.sort,
365
379
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
366
- isFullscreen: X.value,
367
- isTooltip: k.value.showTooltip,
380
+ isFullscreen: G.value,
381
+ isTooltip: $.value.showTooltip,
368
382
  titles: { ...e.value.userOptions.buttonTitles },
369
- chartElement: D.value,
370
- onToggleFullscreen: Ae,
371
- onGeneratePdf: y(ce),
372
- onGenerateCsv: xe,
373
- onGenerateImage: y(ve),
374
- onToggleTable: ke,
375
- onToggleSort: $e,
376
- onToggleTooltip: we
377
- }, We({ _: 2 }, [
383
+ chartElement: X.value,
384
+ onToggleFullscreen: je,
385
+ onGeneratePdf: h(pe),
386
+ onGenerateCsv: we,
387
+ onGenerateImage: h(ge),
388
+ onToggleTable: Te,
389
+ onToggleSort: Le,
390
+ onToggleTooltip: Ne
391
+ }, Je({ _: 2 }, [
378
392
  a.$slots.optionTooltip ? {
379
393
  name: "optionTooltip",
380
- fn: _(() => [
394
+ fn: k(() => [
381
395
  x(a.$slots, "optionTooltip", {}, void 0, !0)
382
396
  ]),
383
397
  key: "0"
384
398
  } : void 0,
385
399
  a.$slots.optionPdf ? {
386
400
  name: "optionPdf",
387
- fn: _(() => [
401
+ fn: k(() => [
388
402
  x(a.$slots, "optionPdf", {}, void 0, !0)
389
403
  ]),
390
404
  key: "1"
391
405
  } : void 0,
392
406
  a.$slots.optionCsv ? {
393
407
  name: "optionCsv",
394
- fn: _(() => [
408
+ fn: k(() => [
395
409
  x(a.$slots, "optionCsv", {}, void 0, !0)
396
410
  ]),
397
411
  key: "2"
398
412
  } : void 0,
399
413
  a.$slots.optionImg ? {
400
414
  name: "optionImg",
401
- fn: _(() => [
415
+ fn: k(() => [
402
416
  x(a.$slots, "optionImg", {}, void 0, !0)
403
417
  ]),
404
418
  key: "3"
405
419
  } : void 0,
406
420
  a.$slots.optionTable ? {
407
421
  name: "optionTable",
408
- fn: _(() => [
422
+ fn: k(() => [
409
423
  x(a.$slots, "optionTable", {}, void 0, !0)
410
424
  ]),
411
425
  key: "4"
412
426
  } : void 0,
413
427
  a.$slots.optionLabels ? {
414
428
  name: "optionLabels",
415
- fn: _(() => [
429
+ fn: k(() => [
416
430
  x(a.$slots, "optionLabels", {}, void 0, !0)
417
431
  ]),
418
432
  key: "5"
419
433
  } : void 0,
420
434
  a.$slots.optionSort ? {
421
435
  name: "optionSort",
422
- fn: _(() => [
436
+ fn: k(() => [
423
437
  x(a.$slots, "optionSort", {}, void 0, !0)
424
438
  ]),
425
439
  key: "6"
426
440
  } : void 0,
427
441
  a.$slots.optionFullscreen ? {
428
442
  name: "optionFullscreen",
429
- fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
430
- x(a.$slots, "optionFullscreen", j(Y({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
443
+ fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
444
+ x(a.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
431
445
  ]),
432
446
  key: "7"
433
447
  } : void 0
434
448
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
435
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (i(), v("div", {
449
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(), c("div", {
436
450
  key: 2,
437
451
  ref_key: "chartLegend",
438
- ref: Z
452
+ ref: ae
439
453
  }, [
440
- A(Te, {
441
- legendSet: S.value,
442
- config: fe.value,
443
- onClickMarker: l[0] || (l[0] = ({ legend: t }) => R(t.id))
454
+ (n(), R(ze, {
455
+ key: `legend_top_${le.value}`,
456
+ legendSet: z.value,
457
+ config: ke.value,
458
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => A(t.id))
444
459
  }, {
445
- item: _(({ legend: t, index: o }) => [
460
+ item: k(({ legend: t, index: o }) => [
446
461
  u("div", {
447
462
  "data-cy-legend-item": "",
448
- onClick: (s) => R(t.id),
449
- style: d(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
450
- }, c(t.name) + ": " + c(y(K)(
463
+ onClick: (f) => A(t.id),
464
+ style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
465
+ }, i(t.name) + ": " + i(h(Z)(
451
466
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
452
467
  t.value,
453
- y(F)({
468
+ h(I)({
454
469
  p: e.value.style.chart.legend.prefix,
455
470
  v: t.value,
456
471
  s: e.value.style.chart.legend.suffix,
457
472
  r: e.value.style.chart.legend.roundingValue
458
473
  }),
459
474
  { datapoint: t, seriesIndex: o }
460
- )), 13, ft)
475
+ )), 13, xt)
461
476
  ]),
462
477
  _: 1
463
- }, 8, ["legendSet", "config"])
478
+ }, 8, ["legendSet", "config"]))
464
479
  ], 512)) : m("", !0),
465
- U.value ? (i(), v("svg", {
480
+ W.value ? (n(), c("svg", {
466
481
  key: 3,
467
- xmlns: y(et),
468
- class: O({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
469
- viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${n.value.fullHeight <= 0 ? 10 : n.value.fullHeight}`,
470
- style: d(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
482
+ xmlns: h(ut),
483
+ class: D({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
484
+ viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
485
+ style: r(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
471
486
  }, [
472
- (i(!0), v(E, null, G(M.value, (t, o) => (i(), v("linearGradient", {
487
+ (n(!0), c(U, null, H(B.value, (t, o) => (n(), c("linearGradient", {
473
488
  x1: "0%",
474
489
  y1: "0%",
475
490
  x2: "100%",
476
491
  y2: "0%",
477
- id: `vertical_bar_gradient_${P.value}_${o}`
492
+ id: `vertical_bar_gradient_${V.value}_${o}`
478
493
  }, [
479
494
  u("stop", {
480
495
  offset: "0%",
481
496
  "stop-color": t.color
482
- }, null, 8, _t),
497
+ }, null, 8, wt),
483
498
  u("stop", {
484
499
  offset: "100%",
485
- "stop-color": `${y(tt)(t.color, 0.03)}${y(ne)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
486
- }, null, 8, xt)
487
- ], 8, mt))), 256)),
488
- (i(!0), v(E, null, G(M.value, (t, o) => (i(), v("g", null, [
500
+ "stop-color": `${h(nt)(t.color, 0.03)}${h(se)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
501
+ }, null, 8, Tt)
502
+ ], 8, Ct))), 256)),
503
+ (n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
489
504
  u("rect", {
490
- x: y(T)(I.value ? n.value.left + n.value.width / 2 - (t.sign === 1 ? 0 : N(t.value) <= 0 ? 1e-4 : N(t.value)) : n.value.left),
491
- y: n.value.top + (f.value + h.value) * o,
492
- width: y(T)(N(t.value) <= 0 ? 1e-4 : N(t.value)),
493
- height: h.value <= 0 ? 1e-4 : h.value,
505
+ x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
506
+ y: s.value.top + (g.value + v.value) * o,
507
+ width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
508
+ height: v.value <= 0 ? 1e-4 : v.value,
494
509
  fill: e.value.style.chart.layout.bars.underlayerColor,
495
510
  rx: e.value.style.chart.layout.bars.borderRadius,
496
- class: O({ animated: e.value.useCssAnimation })
497
- }, null, 10, kt)
511
+ class: D({ animated: e.value.useCssAnimation })
512
+ }, null, 10, Lt)
498
513
  ]))), 256)),
499
- (i(!0), v(E, null, G(M.value, (t, o) => (i(), v("g", null, [
514
+ (n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
500
515
  u("rect", {
501
- x: y(T)(I.value ? n.value.left + n.value.width / 2 - (t.sign === 1 ? 0 : N(t.value) <= 0 ? 1e-4 : N(t.value)) : n.value.left),
502
- y: n.value.top + (f.value + h.value) * o,
503
- width: y(T)(N(t.value) <= 0 ? 1e-4 : N(t.value)),
504
- height: h.value <= 0 ? 1e-4 : h.value,
505
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${P.value}_${o})` : `${t.color}${y(ne)[e.value.style.chart.layout.bars.fillOpacity]}`,
516
+ x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
517
+ y: s.value.top + (g.value + v.value) * o,
518
+ width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
519
+ height: v.value <= 0 ? 1e-4 : v.value,
520
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : `${t.color}${h(se)[e.value.style.chart.layout.bars.fillOpacity]}`,
506
521
  rx: e.value.style.chart.layout.bars.borderRadius,
507
522
  stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
508
523
  "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
509
- class: O({ animated: e.value.useCssAnimation })
510
- }, null, 10, $t),
511
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== M.value.length - 1 ? (i(), v("line", {
524
+ class: D({ animated: e.value.useCssAnimation })
525
+ }, null, 10, Nt),
526
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (n(), c("line", {
512
527
  key: 0,
513
528
  x1: 0,
514
- x2: n.value.left,
515
- y1: h.value + f.value / 2 + n.value.top + (f.value + h.value) * o,
516
- y2: h.value + f.value / 2 + n.value.top + (f.value + h.value) * o,
529
+ x2: s.value.left,
530
+ y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
531
+ y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
517
532
  stroke: e.value.style.chart.layout.separators.color,
518
533
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
519
534
  "stroke-linecap": "round"
520
- }, null, 8, wt)) : m("", !0),
521
- I.value && e.value.style.chart.layout.separators.show ? (i(), v("line", {
535
+ }, null, 8, Pt)) : m("", !0),
536
+ O.value && e.value.style.chart.layout.separators.show ? (n(), c("line", {
522
537
  key: 1,
523
- x1: n.value.left + n.value.width / 2,
524
- x2: n.value.left + n.value.width / 2,
525
- y1: n.value.top,
526
- y2: n.value.bottom,
538
+ x1: s.value.left + s.value.width / 2,
539
+ x2: s.value.left + s.value.width / 2,
540
+ y1: s.value.top,
541
+ y2: s.value.bottom,
527
542
  stroke: e.value.style.chart.layout.separators.color,
528
543
  "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
529
544
  "stroke-linecap": "round"
530
- }, null, 8, Ct)) : m("", !0),
545
+ }, null, 8, St)) : m("", !0),
531
546
  u("text", {
532
- x: I.value ? n.value.left + n.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : De(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
533
- y: n.value.top + (f.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
534
- "text-anchor": !I.value || t.sign === -1 ? "start" : "end",
547
+ x: O.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Ue(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
548
+ y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
549
+ "text-anchor": !O.value || t.sign === -1 ? "start" : "end",
535
550
  "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
536
551
  fill: e.value.style.chart.layout.bars.dataLabels.color,
537
552
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
538
- }, c(_e(t.value, t, o, t.sign)), 9, Tt),
539
- (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (i(), v("text", {
553
+ }, i(Ce(t.value, t, o, t.sign)), 9, Vt),
554
+ (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), c("text", {
540
555
  key: 2,
541
556
  "text-anchor": "end",
542
- x: n.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
543
- y: n.value.top + (f.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
557
+ x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
558
+ y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
544
559
  "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
545
560
  fill: e.value.style.chart.layout.bars.nameLabels.color,
546
561
  "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
547
- }, c(t.name), 9, Lt)) : m("", !0),
548
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), v("text", {
562
+ }, i(t.name), 9, zt)) : m("", !0),
563
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
549
564
  key: 3,
550
565
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
551
- y: B(t, o).y,
566
+ y: E(t, o).y,
552
567
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
553
568
  fill: e.value.style.chart.layout.bars.parentLabels.color,
554
569
  "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
555
570
  "text-anchor": "start"
556
- }, c(B(t, o).name), 9, Nt)) : m("", !0),
557
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), v("text", {
571
+ }, i(E(t, o).name), 9, Ft)) : m("", !0),
572
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
558
573
  key: 4,
559
574
  x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
560
- y: B(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
575
+ y: E(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
561
576
  "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
562
577
  fill: e.value.style.chart.layout.bars.parentLabels.color,
563
578
  "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
564
579
  "text-anchor": "start"
565
- }, c(_e(B(t, o).value), B(t, o), o, B(t, o).sign), 9, Pt)) : m("", !0),
580
+ }, i(Ce(E(t, o).value), E(t, o), o, t.parentSign || t.sign), 9, Mt)) : m("", !0),
566
581
  u("rect", {
567
582
  "data-cy-trap": "",
568
583
  x: 0,
569
- y: n.value.top + (f.value + h.value) * o - f.value / 2,
570
- width: g.value.width <= 0 ? 1e-4 : g.value.width,
571
- height: h.value + f.value <= 0 ? 1e-4 : h.value + f.value,
572
- fill: te.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${y(ne)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
573
- onMouseenter: (s) => Xe(t, o),
574
- onMouseleave: l[1] || (l[1] = (s) => {
575
- Fe.value = null, J.value = !1, te.value = null;
584
+ y: s.value.top + (g.value + v.value) * o - g.value / 2,
585
+ width: y.value.width <= 0 ? 1e-4 : y.value.width,
586
+ height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
587
+ fill: oe.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${h(se)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
588
+ onMouseenter: (f) => We(t, o),
589
+ onMouseleave: l[1] || (l[1] = (f) => {
590
+ Re.value = null, ee.value = !1, oe.value = null;
576
591
  })
577
- }, null, 40, St)
592
+ }, null, 40, It)
578
593
  ]))), 256)),
579
- x(a.$slots, "svg", { svg: g.value }, void 0, !0)
580
- ], 14, bt)) : m("", !0),
581
- a.$slots.watermark ? (i(), v("div", Vt, [
582
- x(a.$slots, "watermark", j(Y({ isPrinting: y(ie) || y(de) })), void 0, !0)
594
+ x(a.$slots, "svg", { svg: y.value }, void 0, !0)
595
+ ], 14, $t)) : m("", !0),
596
+ a.$slots.watermark ? (n(), c("div", Bt, [
597
+ x(a.$slots, "watermark", K(J({ isPrinting: h(ve) || h(he) })), void 0, !0)
583
598
  ])) : m("", !0),
584
- U.value ? m("", !0) : (i(), oe(vt, {
599
+ W.value ? m("", !0) : (n(), R(ft, {
585
600
  key: 5,
586
601
  config: {
587
602
  type: "verticalBar",
@@ -596,38 +611,39 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
596
611
  }
597
612
  }
598
613
  }, null, 8, ["config"])),
599
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (i(), v("div", {
614
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), c("div", {
600
615
  key: 6,
601
616
  ref_key: "chartLegend",
602
- ref: Z
617
+ ref: ae
603
618
  }, [
604
- A(Te, {
605
- legendSet: S.value,
606
- config: fe.value,
607
- onClickMarker: l[2] || (l[2] = ({ legend: t }) => R(t.id))
619
+ (n(), R(ze, {
620
+ key: `legend_bottom_${le.value}`,
621
+ legendSet: z.value,
622
+ config: ke.value,
623
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => A(t.id))
608
624
  }, {
609
- item: _(({ legend: t, index: o }) => [
625
+ item: k(({ legend: t, index: o }) => [
610
626
  u("div", {
611
- onClick: (s) => R(t.id),
612
- style: d(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
613
- }, c(t.name) + ": " + c(y(K)(
627
+ onClick: (f) => A(t.id),
628
+ style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
629
+ }, i(t.name) + ": " + i(h(Z)(
614
630
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
615
631
  t.value,
616
- y(F)({
632
+ h(I)({
617
633
  p: e.value.style.chart.legend.prefix,
618
634
  v: t.value,
619
635
  s: e.value.style.chart.legend.suffix,
620
636
  r: e.value.style.chart.legend.roundingValue
621
637
  }),
622
638
  { datapoint: t, seriesIndex: o }
623
- )), 13, zt)
639
+ )), 13, Ot)
624
640
  ]),
625
641
  _: 1
626
- }, 8, ["legendSet", "config"])
642
+ }, 8, ["legendSet", "config"]))
627
643
  ], 512)) : m("", !0),
628
- x(a.$slots, "legend", { legend: S.value }, void 0, !0),
629
- A(ct, {
630
- show: k.value.showTooltip && J.value && w.value.length < L.dataset.length,
644
+ x(a.$slots, "legend", { legend: z.value }, void 0, !0),
645
+ Se(yt, {
646
+ show: $.value.showTooltip && ee.value && T.value.length < C.dataset.length,
631
647
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
632
648
  color: e.value.style.chart.tooltip.color,
633
649
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -637,23 +653,23 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
637
653
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
638
654
  position: e.value.style.chart.tooltip.position,
639
655
  offsetY: e.value.style.chart.tooltip.offsetY,
640
- parent: D.value,
641
- content: Q.value,
656
+ parent: X.value,
657
+ content: te.value,
642
658
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
643
659
  }, {
644
- "tooltip-before": _(() => [
645
- x(a.$slots, "tooltip-before", j(Y({ ...ae.value })), void 0, !0)
660
+ "tooltip-before": k(() => [
661
+ x(a.$slots, "tooltip-before", K(J({ ...ue.value })), void 0, !0)
646
662
  ]),
647
- "tooltip-after": _(() => [
648
- x(a.$slots, "tooltip-after", j(Y({ ...ae.value })), void 0, !0)
663
+ "tooltip-after": k(() => [
664
+ x(a.$slots, "tooltip-after", K(J({ ...ue.value })), void 0, !0)
649
665
  ]),
650
666
  _: 3
651
667
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
652
- U.value ? (i(), oe(pt, {
668
+ W.value ? (n(), R(mt, {
653
669
  key: 7,
654
670
  hideDetails: "",
655
671
  config: {
656
- open: k.value.showTable,
672
+ open: $.value.showTable,
657
673
  maxHeight: 1e4,
658
674
  body: {
659
675
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -665,21 +681,21 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
665
681
  }
666
682
  }
667
683
  }, {
668
- content: _(() => [
684
+ content: k(() => [
669
685
  u("div", {
670
686
  ref_key: "tableContainer",
671
- ref: pe,
687
+ ref: fe,
672
688
  class: "vue-ui-vertical-bar-table"
673
689
  }, [
674
- u("div", Ft, [
690
+ u("div", Dt, [
675
691
  u("div", {
676
692
  role: "button",
677
693
  tabindex: "0",
678
- style: d(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
679
- onClick: l[3] || (l[3] = (t) => k.value.showTable = !1),
680
- onKeypress: l[4] || (l[4] = je((t) => k.value.showTable = !1, ["enter"]))
694
+ style: r(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
695
+ onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
696
+ onKeypress: l[4] || (l[4] = Qe((t) => $.value.showTable = !1, ["enter"]))
681
697
  }, [
682
- A(ht, {
698
+ Se(bt, {
683
699
  name: "close",
684
700
  stroke: e.value.table.th.color,
685
701
  "stroke-width": 2
@@ -687,111 +703,111 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
687
703
  ], 36),
688
704
  u("div", {
689
705
  style: { width: "100%", "container-type": "inline-size" },
690
- class: O({ "vue-ui-responsive": ye.value })
706
+ class: D({ "vue-ui-responsive": be.value })
691
707
  }, [
692
- u("table", Mt, [
708
+ u("table", Rt, [
693
709
  u("caption", {
694
- style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
710
+ style: r({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
695
711
  class: "vue-ui-data-table__caption"
696
712
  }, [
697
- Ye(c(e.value.style.chart.title.text) + " ", 1),
698
- e.value.style.chart.title.subtitle.text ? (i(), v("span", It, c(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
713
+ Ze(i(e.value.style.chart.title.text) + " ", 1),
714
+ e.value.style.chart.title.subtitle.text ? (n(), c("span", Xt, i(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
699
715
  ], 4),
700
716
  u("thead", null, [
701
717
  u("tr", {
702
718
  role: "row",
703
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
719
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
704
720
  }, [
705
- (i(!0), v(E, null, G($.value.head, (t) => (i(), v("th", {
706
- style: d(`outline:${e.value.table.th.outline}`)
721
+ (n(!0), c(U, null, H(w.value.head, (t) => (n(), c("th", {
722
+ style: r(`outline:${e.value.table.th.outline}`)
707
723
  }, [
708
- u("div", Bt, c(t), 1)
724
+ u("div", At, i(t), 1)
709
725
  ], 4))), 256))
710
726
  ], 4),
711
727
  u("tr", null, [
712
728
  u("th", {
713
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
729
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
714
730
  }, null, 4),
715
731
  u("th", {
716
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
717
- }, "∑ " + c(e.value.table.td.prefix) + c(isNaN(C.value) ? "" : C.value.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 5),
732
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
733
+ }, "∑ " + i(e.value.table.td.prefix) + i(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 5),
718
734
  u("th", {
719
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
735
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
720
736
  }, "100%", 4),
721
737
  u("th", {
722
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
738
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
723
739
  }, null, 4),
724
740
  u("th", {
725
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
741
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
726
742
  }, null, 4),
727
743
  u("th", {
728
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
744
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
729
745
  }, null, 4),
730
746
  u("th", {
731
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
747
+ style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
732
748
  }, null, 4)
733
749
  ])
734
750
  ]),
735
751
  u("tbody", null, [
736
- (i(!0), v(E, null, G($.value.body, (t, o) => (i(), v("tr", {
737
- class: O({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
738
- style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
752
+ (n(!0), c(U, null, H(w.value.body, (t, o) => (n(), c("tr", {
753
+ class: D({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
754
+ style: r(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
739
755
  }, [
740
756
  u("td", {
741
757
  class: "vue-ui-data-table__tbody__td",
742
- style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
743
- "data-cell": $.value.head[0] ?? ""
758
+ style: r(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
759
+ "data-cell": w.value.head[0] ?? ""
744
760
  }, [
745
- u("div", Dt, [
746
- t.color ? (i(), v("span", {
761
+ u("div", Gt, [
762
+ t.color ? (n(), c("span", {
747
763
  key: 0,
748
- style: d(`color:${t.color};margin-right:3px`)
764
+ style: r(`color:${t.color};margin-right:3px`)
749
765
  }, "⬤", 4)) : m("", !0),
750
- u("span", null, c(t.parentName), 1)
766
+ u("span", null, i(t.parentName), 1)
751
767
  ])
752
- ], 12, Ot),
768
+ ], 12, Et),
753
769
  u("td", {
754
770
  class: "vue-ui-data-table__tbody__td",
755
- style: d(`outline:${e.value.table.td.outline}`),
756
- "data-cell": $.value.head[1] ?? ""
771
+ style: r(`outline:${e.value.table.td.outline}`),
772
+ "data-cell": w.value.head[1] ?? ""
757
773
  }, [
758
- u("div", Xt, c(e.value.table.td.prefix) + c(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 1)
759
- ], 12, Rt),
774
+ u("div", Ht, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
775
+ ], 12, Ut),
760
776
  u("td", {
761
777
  class: "vue-ui-data-table__tbody__td",
762
- style: d(`outline:${e.value.table.td.outline}`),
763
- "data-cell": $.value.head[2] ?? ""
778
+ style: r(`outline:${e.value.table.td.outline}`),
779
+ "data-cell": w.value.head[2] ?? ""
764
780
  }, [
765
- u("div", Et, c(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
766
- ], 12, At),
781
+ u("div", jt, i(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
782
+ ], 12, Wt),
767
783
  u("td", {
768
784
  class: "vue-ui-data-table__tbody__td",
769
- style: d(`outline:${e.value.table.td.outline}`),
770
- "data-cell": $.value.head[3] ?? ""
785
+ style: r(`outline:${e.value.table.td.outline}`),
786
+ "data-cell": w.value.head[3] ?? ""
771
787
  }, [
772
- u("div", Ut, c(t.childName), 1)
773
- ], 12, Gt),
788
+ u("div", qt, i(t.childName), 1)
789
+ ], 12, Yt),
774
790
  u("td", {
775
791
  class: "vue-ui-data-table__tbody__td",
776
- style: d(`outline:${e.value.table.td.outline}`),
777
- "data-cell": $.value.head[4] ?? ""
792
+ style: r(`outline:${e.value.table.td.outline}`),
793
+ "data-cell": w.value.head[4] ?? ""
778
794
  }, [
779
- u("div", Wt, c(e.value.table.td.prefix) + c(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 1)
780
- ], 12, Ht),
795
+ u("div", Jt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
796
+ ], 12, Kt),
781
797
  u("td", {
782
798
  class: "vue-ui-data-table__tbody__td",
783
- style: d(`outline:${e.value.table.td.outline}`),
784
- "data-cell": $.value.head[5] ?? ""
799
+ style: r(`outline:${e.value.table.td.outline}`),
800
+ "data-cell": w.value.head[5] ?? ""
785
801
  }, [
786
- u("div", Yt, c(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
787
- ], 12, jt),
802
+ u("div", Zt, i(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
803
+ ], 12, Qt),
788
804
  u("td", {
789
805
  class: "vue-ui-data-table__tbody__td",
790
- style: d(`outline:${e.value.table.td.outline}`),
791
- "data-cell": $.value.head[6] ?? ""
806
+ style: r(`outline:${e.value.table.td.outline}`),
807
+ "data-cell": w.value.head[6] ?? ""
792
808
  }, [
793
- u("div", Kt, c(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
794
- ], 12, qt)
809
+ u("div", ta, i(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
810
+ ], 12, ea)
795
811
  ], 6))), 256))
796
812
  ])
797
813
  ])
@@ -801,9 +817,9 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
801
817
  ]),
802
818
  _: 1
803
819
  }, 8, ["config"])) : m("", !0)
804
- ], 14, gt));
820
+ ], 14, kt));
805
821
  }
806
- }, da = /* @__PURE__ */ yt(Jt, [["__scopeId", "data-v-1dd68cde"]]);
822
+ }, ga = /* @__PURE__ */ _t(aa, [["__scopeId", "data-v-d4a13ad8"]]);
807
823
  export {
808
- da as default
824
+ ga as default
809
825
  };