vue-data-ui 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -0,0 +1,861 @@
1
+ import { useCssVars as Je, computed as m, ref as r, watch as Fe, onMounted as Qe, onBeforeUnmount as Ze, openBlock as u, createElementBlock as d, normalizeClass as R, normalizeStyle as c, createBlock as M, createCommentVNode as f, unref as h, createSlots as et, withCtx as k, renderSlot as _, normalizeProps as U, guardReactiveProps as H, createElementVNode as n, toDisplayString as i, createVNode as re, Fragment as W, renderList as j, withKeys as tt, createTextVNode as at } from "vue";
2
+ import { u as lt, c as ot, t as nt, a as ut, p as I, b as st, o as Me, e as Z, v as S, d as ie, i as ee, f as O, X as rt, s as de, w as it, x as dt, y as ct, q as vt, r as ht } from "./index-Bya_q1J-.js";
3
+ import { t as pt, u as gt } from "./useResponsive-BY8tgM1n.js";
4
+ import { _ as yt } from "./Title-C5pIfQAz.js";
5
+ import { u as ft, U as bt } from "./usePrinter-CiHd1FwD.js";
6
+ import { _ as mt } from "./Tooltip-Cz24YLfw.js";
7
+ import { L as Ie } from "./Legend-DNgTCgEK.js";
8
+ import _t from "./vue-ui-skeleton-BYssP0K4.js";
9
+ import kt from "./BaseIcon-BbvG1AlW.js";
10
+ import xt from "./vue-ui-accordion-DfUfL2dI.js";
11
+ import { u as Oe } from "./useNestedProp-B33hazbH.js";
12
+ import { _ as $t } from "./PackageVersion-VkaUzgmt.js";
13
+ import { P as Ct } from "./PenAndPaper-DAZYA8Ew.js";
14
+ import { _ as wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Tt = ["id"], Lt = ["onClick"], Pt = ["xmlns", "viewBox"], Nt = ["id"], St = ["stop-color"], Vt = ["stop-color"], zt = ["x", "y", "width", "height", "fill", "rx"], Ft = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Mt = ["x2", "y1", "y2", "stroke", "stroke-width"], It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ot = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], At = ["x", "y", "font-size", "fill", "font-weight"], Bt = ["x", "y", "font-size", "fill", "font-weight"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Rt = ["y", "width", "height", "fill", "onMouseenter"], Xt = {
16
+ key: 5,
17
+ class: "vue-data-ui-watermark"
18
+ }, Et = ["onClick"], Gt = { style: "width:100%;padding-top: 36px;position:relative" }, Ut = { class: "vue-ui-data-table" }, Ht = { key: 0 }, Wt = { style: { width: "100%" } }, 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 = ["data-cell"], Qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Zt = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = ["data-cell"], oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, na = ["data-cell"], ua = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = {
19
+ __name: "vue-ui-vertical-bar",
20
+ props: {
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ dataset: {
28
+ type: Array,
29
+ default() {
30
+ return [];
31
+ }
32
+ }
33
+ },
34
+ emits: ["selectLegend"],
35
+ setup(Ae, { expose: Be, emit: De }) {
36
+ const C = Ae;
37
+ Je((t) => ({
38
+ "13c3fec0": t.tdo
39
+ }));
40
+ const { vue_ui_vertical_bar: Re } = lt(), Y = m(() => !!C.dataset && C.dataset.length), V = r(ot()), Xe = r(null), te = r(!1), ae = r(""), q = r(0), Ee = r(null), ce = r(0), A = r(null), ve = r(null), le = r(null), he = r(null), pe = r(0), oe = r(0), e = m({
41
+ get: () => ge(),
42
+ set: (t) => t
43
+ });
44
+ function ge() {
45
+ const t = Oe({
46
+ userConfig: C.config,
47
+ defaultConfig: Re
48
+ });
49
+ return t.theme ? {
50
+ ...Oe({
51
+ userConfig: nt.vue_ui_vertical_bar[t.theme] || C.config,
52
+ defaultConfig: t
53
+ }),
54
+ customPalette: ut[t.theme] || I
55
+ } : t;
56
+ }
57
+ Fe(() => C.config, (t) => {
58
+ e.value = ge(), $e(), pe.value += 1, oe.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
59
+ }, { deep: !0 }), Fe(() => C.dataset, J, { deep: !0 });
60
+ const { isPrinting: ye, isImaging: fe, generatePdf: be, generateImage: me } = ft({
61
+ elementId: `vue-ui-vertical-bar_${V.value}`,
62
+ fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
63
+ }), _e = m(() => st(e.value.customPalette)), ke = r(null), xe = r(!1), Ge = m(() => e.value.table.responsiveBreakpoint), K = r(null);
64
+ Qe(() => {
65
+ $e();
66
+ });
67
+ function $e() {
68
+ if (Me(C.dataset) && Z({
69
+ componentName: "VueUiVerticalBar",
70
+ type: "dataset"
71
+ }), q.value = C.dataset.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ue(), e.value.responsive) {
72
+ const t = pt(() => {
73
+ const { width: l, height: a } = gt({
74
+ chart: A.value,
75
+ title: e.value.style.chart.title.text ? ve.value : null,
76
+ legend: e.value.style.chart.legend.show ? le.value : null,
77
+ source: he.value
78
+ });
79
+ Te.value = l, v.value = a / q.value - g.value * 2;
80
+ });
81
+ K.value = new ResizeObserver(t), K.value.observe(A.value.parentNode);
82
+ }
83
+ }
84
+ Ze(() => {
85
+ K.value && K.value.disconnect();
86
+ });
87
+ function Ue() {
88
+ new ResizeObserver((l) => {
89
+ l.forEach((a) => {
90
+ xe.value = a.contentRect.width < Ge.value;
91
+ });
92
+ }).observe(ke.value);
93
+ }
94
+ const $ = r({
95
+ showTable: e.value.table.show,
96
+ sortDesc: e.value.style.chart.layout.bars.sort === "desc",
97
+ showTooltip: e.value.style.chart.tooltip.show
98
+ }), Ce = m(() => $.value.sortDesc), z = m(() => (C.dataset.forEach((t, l) => {
99
+ !t.value && !t.children && Z({
100
+ componentName: "VueUiVerticalBar",
101
+ type: "datasetAttributeEmpty",
102
+ property: `value (index ${l})`
103
+ }), t.children && (Me(t.children) ? Z({
104
+ componentName: "VueUiVerticalBar",
105
+ type: "datasetAttributeEmpty",
106
+ property: `children (index ${l})`
107
+ }) : t.children.forEach((a, o) => {
108
+ [null, void 0].includes(a.name) && Z({
109
+ componentName: "VueUiVerticalBar",
110
+ type: "datasetSerieAttribute",
111
+ property: "name",
112
+ key: "children",
113
+ index: o
114
+ });
115
+ }));
116
+ }), C.dataset.map((t, l) => {
117
+ const a = `vertical_parent_${l}_${V.value}`, o = t.children && t.children.length > 0, b = S(t.value ? t.value : o ? t.children.map((x) => x.value || 0).reduce((x, P) => x + P, 0) : 0), p = b >= 0 ? 1 : -1;
118
+ return {
119
+ ...t,
120
+ id: a,
121
+ shape: "square",
122
+ opacity: T.value.includes(a) ? 0.5 : 1,
123
+ value: Math.abs(b),
124
+ sign: p,
125
+ hasChildren: o,
126
+ isChild: !1,
127
+ segregate: () => X(a),
128
+ isSegregated: T.value.includes(a),
129
+ color: ie(t.color) || _e.value[l] || I[l] || I[l % I.length],
130
+ children: !t.children || !t.children.length ? [] : t.children.toSorted((x, P) => Ce.value ? P.value - x.value : x.value - P.value).map((x, P) => ({
131
+ ...x,
132
+ value: S(Math.abs(x.value)),
133
+ sign: x.value >= 0 ? 1 : -1,
134
+ isChild: !0,
135
+ parentId: a,
136
+ parentName: t.name,
137
+ parentValue: b,
138
+ parentSign: p,
139
+ id: `vertical_child_${l}_${P}_${V.value}`,
140
+ childIndex: P,
141
+ color: ie(x.color) || ie(t.color) || _e.value[l] || I[l] || I[l % I.length]
142
+ })).map((x, P) => ({
143
+ ...x,
144
+ isFirstChild: P === 0,
145
+ isLastChild: P === t.children.length - 1
146
+ }))
147
+ };
148
+ }).toSorted((t, l) => Ce.value ? l.value - t.value : t.value - l.value))), we = m(() => ({
149
+ cy: "vertical-bar-div-legend",
150
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
151
+ color: e.value.style.chart.legend.color,
152
+ fontSize: e.value.style.chart.legend.fontSize,
153
+ paddingBottom: 12,
154
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
155
+ })), v = r(e.value.style.chart.layout.bars.height), g = r(e.value.style.chart.layout.bars.gap), He = m(() => (v.value + g.value) * q.value), Te = r(512), y = m(() => ({
156
+ width: Te.value,
157
+ height: He.value,
158
+ padding: {
159
+ top: 12,
160
+ left: 128 + e.value.style.chart.layout.bars.offsetX,
161
+ right: 64 + e.value.style.chart.layout.bars.paddingRight,
162
+ bottom: 12
163
+ }
164
+ })), s = m(() => ({
165
+ fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
166
+ top: y.value.padding.top,
167
+ left: y.value.padding.left,
168
+ right: y.value.width - y.value.padding.right,
169
+ bottom: y.value.padding.top + y.value.height,
170
+ width: y.value.width - (y.value.padding.left + y.value.padding.right)
171
+ }));
172
+ function J() {
173
+ q.value = F.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0);
174
+ }
175
+ const T = r([]);
176
+ function X(t) {
177
+ T.value.includes(t) ? T.value = T.value.filter((l) => l !== t) : T.value.push(t), J(), De("selectLegend", F.value);
178
+ }
179
+ const F = m(() => z.value.filter((t) => !T.value.includes(t.id))), L = m(() => F.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
180
+ function Le(t, l = !1, a = 0) {
181
+ return l ? O({
182
+ v: S(Math.abs(t) / L.value * 100),
183
+ s: "%",
184
+ r: a
185
+ }) : Math.abs(t) / L.value;
186
+ }
187
+ const B = m(() => F.value.flatMap((t) => t.hasChildren ? t.children : t)), D = m(() => B.value.map((t) => t.sign).includes(-1)), We = m(() => Math.max(...F.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
188
+ function N(t) {
189
+ const l = t / We.value;
190
+ return s.value.width / (D.value ? 2 : 1) * l;
191
+ }
192
+ function je(t) {
193
+ return N(t) + s.value.left;
194
+ }
195
+ function E(t, l) {
196
+ const a = F.value.find((p) => p.id === t.parentId), o = s.value.top + (g.value + v.value) * l, b = a.children.length * (g.value + v.value);
197
+ return {
198
+ y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
199
+ name: a.name,
200
+ value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
201
+ percentageToTotal: isNaN(a.value / L.value) ? "" : Le(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
202
+ sign: a.sign
203
+ };
204
+ }
205
+ function Ye() {
206
+ return F.value;
207
+ }
208
+ const ne = r(null), ue = r(null);
209
+ function qe(t, l) {
210
+ ue.value = {
211
+ datapoint: t,
212
+ seriesIndex: l,
213
+ series: z.value,
214
+ config: e.value
215
+ }, te.value = !0, ne.value = t.id;
216
+ let a = "";
217
+ const o = t.isChild ? t.parentName : t.name, b = t.isChild ? t.name : "", p = e.value.style.chart.tooltip.customFormat;
218
+ dt(p) && ct(() => p({
219
+ datapoint: t,
220
+ series: z.value,
221
+ config: e.value,
222
+ seriesIndex: l
223
+ })) ? ae.value = p({
224
+ datapoint: t,
225
+ series: z.value,
226
+ config: e.value,
227
+ seriesIndex: l
228
+ }) : (a += `<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;">
229
+ <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="${t.color}"/></svg> ${o}</div>
230
+ ${b ? `<div>${b}</div>` : ""}
231
+ </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${ee(
232
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
233
+ t.sign === 1 ? t.value : -t.value,
234
+ O({
235
+ p: e.value.style.chart.tooltip.prefix,
236
+ v: t.sign === 1 ? t.value : -t.value,
237
+ s: e.value.style.chart.tooltip.suffix,
238
+ r: e.value.style.chart.tooltip.roundingValue
239
+ }),
240
+ { datapoint: t, seriesIndex: l }
241
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${O({
242
+ v: Math.abs(t.value) / L.value * 100,
243
+ s: "%",
244
+ r: e.value.style.chart.tooltip.roundingPercentage
245
+ })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${O({
246
+ v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
247
+ s: "%",
248
+ r: e.value.style.chart.tooltip.roundingPercentage
249
+ })}</b></div>`)), ae.value = `<div style="text-align:left">${a}</div>`);
250
+ }
251
+ function Pe(t, l, a, o) {
252
+ if (!e.value.style.chart.layout.bars.dataLabels.value.show)
253
+ return "";
254
+ const b = ee(
255
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
256
+ S(o === -1 && t >= 0 ? -t : t),
257
+ O({
258
+ p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
259
+ v: S(o === -1 && t >= 0 ? -t : t),
260
+ s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
261
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
262
+ }),
263
+ { datapoint: l, seriesIndex: a }
264
+ ), p = `(${Le(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
265
+ return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
266
+ }
267
+ const w = m(() => {
268
+ const t = [
269
+ e.value.translations.parentName,
270
+ e.value.translations.value,
271
+ e.value.translations.percentageToTotal,
272
+ e.value.translations.childName,
273
+ e.value.translations.value,
274
+ e.value.translations.percentageToSerie,
275
+ e.value.translations.percentageToTotal
276
+ ], l = B.value.map((a) => a.isChild ? a.isFirstChild ? {
277
+ color: a.color,
278
+ parentName: a.parentName,
279
+ parentValue: a.parentValue,
280
+ percentageToTotal: a.parentValue / L.value,
281
+ childName: a.name,
282
+ childValue: a.sign === 1 ? a.value : -a.value,
283
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
284
+ childPercentageToTotal: Math.abs(a.value) / L.value
285
+ } : {
286
+ color: "",
287
+ parentName: "",
288
+ parentValue: "",
289
+ percentageToTotal: "",
290
+ childName: a.name,
291
+ childValue: a.sign === 1 ? a.value : -a.value,
292
+ childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
293
+ childPercentageToTotal: Math.abs(a.value) / L.value
294
+ } : {
295
+ color: a.color,
296
+ parentName: a.name,
297
+ parentValue: a.sign === 1 ? a.value : -a.value,
298
+ percentageToTotal: Math.abs(a.value) / L.value,
299
+ childName: "",
300
+ childValue: "",
301
+ childPercentageToParent: "",
302
+ childPercentageToTotal: ""
303
+ });
304
+ return { head: t, body: l };
305
+ });
306
+ function Ne() {
307
+ const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, a = w.value.body.map((p) => [
308
+ p.parentName,
309
+ p.parentValue,
310
+ p.percentageToTotal,
311
+ p.childName,
312
+ p.childValue,
313
+ p.childPercentageToParent,
314
+ p.childPercentageToTotal
315
+ ]), o = t.concat([l]).concat(a), b = vt(o);
316
+ ht({ csvContent: b, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
317
+ }
318
+ const G = r(!1);
319
+ function Ke(t) {
320
+ G.value = t, ce.value += 1;
321
+ }
322
+ function Se() {
323
+ $.value.showTable = !$.value.showTable;
324
+ }
325
+ function Ve() {
326
+ $.value.sortDesc = !$.value.sortDesc, J();
327
+ }
328
+ function ze() {
329
+ $.value.showTooltip = !$.value.showTooltip;
330
+ }
331
+ const Q = r(!1);
332
+ function se() {
333
+ Q.value = !Q.value;
334
+ }
335
+ return Be({
336
+ getData: Ye,
337
+ recalculateHeight: J,
338
+ generatePdf: be,
339
+ generateCsv: Ne,
340
+ generateImage: me,
341
+ toggleTable: Se,
342
+ toggleSort: Ve,
343
+ toggleTooltip: ze,
344
+ toggleAnnotator: se
345
+ }), (t, l) => (u(), d("div", {
346
+ class: R(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
347
+ ref_key: "verticalBarChart",
348
+ ref: A,
349
+ id: `vue-ui-vertical-bar_${V.value}`,
350
+ style: c(`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%" : ""}`)
351
+ }, [
352
+ e.value.userOptions.buttons.annotator ? (u(), M(Ct, {
353
+ key: 0,
354
+ parent: A.value,
355
+ backgroundColor: e.value.style.chart.backgroundColor,
356
+ color: e.value.style.chart.color,
357
+ active: Q.value,
358
+ onClose: se
359
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
360
+ e.value.style.chart.title.text ? (u(), d("div", {
361
+ key: 1,
362
+ ref_key: "chartTitle",
363
+ ref: ve,
364
+ style: "width:100%;background:transparent;padding-bottom:12px"
365
+ }, [
366
+ (u(), M(yt, {
367
+ key: `title_${pe.value}`,
368
+ config: {
369
+ title: {
370
+ cy: "vertical-bar-div-title",
371
+ ...e.value.style.chart.title
372
+ },
373
+ subtitle: {
374
+ cy: "vertical-bar-div-subtitle",
375
+ ...e.value.style.chart.title.subtitle
376
+ }
377
+ }
378
+ }, null, 8, ["config"]))
379
+ ], 512)) : f("", !0),
380
+ e.value.userOptions.show && Y.value ? (u(), M(bt, {
381
+ ref_key: "details",
382
+ ref: Xe,
383
+ key: `user_options_${ce.value}`,
384
+ backgroundColor: e.value.style.chart.backgroundColor,
385
+ color: e.value.style.chart.color,
386
+ isImaging: h(fe),
387
+ isPrinting: h(ye),
388
+ uid: V.value,
389
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
390
+ hasPdf: e.value.userOptions.buttons.pdf,
391
+ hasImg: e.value.userOptions.buttons.img,
392
+ hasXls: e.value.userOptions.buttons.csv,
393
+ hasTable: e.value.userOptions.buttons.table,
394
+ hasSort: e.value.userOptions.buttons.sort,
395
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
396
+ isFullscreen: G.value,
397
+ isTooltip: $.value.showTooltip,
398
+ titles: { ...e.value.userOptions.buttonTitles },
399
+ chartElement: A.value,
400
+ position: e.value.userOptions.position,
401
+ hasAnnotator: e.value.userOptions.buttons.annotator,
402
+ isAnnotation: Q.value,
403
+ onToggleFullscreen: Ke,
404
+ onGeneratePdf: h(be),
405
+ onGenerateCsv: Ne,
406
+ onGenerateImage: h(me),
407
+ onToggleTable: Se,
408
+ onToggleSort: Ve,
409
+ onToggleTooltip: ze,
410
+ onToggleAnnotator: se
411
+ }, et({ _: 2 }, [
412
+ t.$slots.optionTooltip ? {
413
+ name: "optionTooltip",
414
+ fn: k(() => [
415
+ _(t.$slots, "optionTooltip", {}, void 0, !0)
416
+ ]),
417
+ key: "0"
418
+ } : void 0,
419
+ t.$slots.optionPdf ? {
420
+ name: "optionPdf",
421
+ fn: k(() => [
422
+ _(t.$slots, "optionPdf", {}, void 0, !0)
423
+ ]),
424
+ key: "1"
425
+ } : void 0,
426
+ t.$slots.optionCsv ? {
427
+ name: "optionCsv",
428
+ fn: k(() => [
429
+ _(t.$slots, "optionCsv", {}, void 0, !0)
430
+ ]),
431
+ key: "2"
432
+ } : void 0,
433
+ t.$slots.optionImg ? {
434
+ name: "optionImg",
435
+ fn: k(() => [
436
+ _(t.$slots, "optionImg", {}, void 0, !0)
437
+ ]),
438
+ key: "3"
439
+ } : void 0,
440
+ t.$slots.optionTable ? {
441
+ name: "optionTable",
442
+ fn: k(() => [
443
+ _(t.$slots, "optionTable", {}, void 0, !0)
444
+ ]),
445
+ key: "4"
446
+ } : void 0,
447
+ t.$slots.optionLabels ? {
448
+ name: "optionLabels",
449
+ fn: k(() => [
450
+ _(t.$slots, "optionLabels", {}, void 0, !0)
451
+ ]),
452
+ key: "5"
453
+ } : void 0,
454
+ t.$slots.optionSort ? {
455
+ name: "optionSort",
456
+ fn: k(() => [
457
+ _(t.$slots, "optionSort", {}, void 0, !0)
458
+ ]),
459
+ key: "6"
460
+ } : void 0,
461
+ t.$slots.optionFullscreen ? {
462
+ name: "optionFullscreen",
463
+ fn: k(({ toggleFullscreen: a, isFullscreen: o }) => [
464
+ _(t.$slots, "optionFullscreen", U(H({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
465
+ ]),
466
+ key: "7"
467
+ } : void 0,
468
+ t.$slots.optionAnnotator ? {
469
+ name: "optionAnnotator",
470
+ fn: k(({ toggleAnnotator: a, isAnnotator: o }) => [
471
+ _(t.$slots, "optionAnnotator", U(H({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
472
+ ]),
473
+ key: "8"
474
+ } : void 0
475
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
476
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), d("div", {
477
+ key: 3,
478
+ ref_key: "chartLegend",
479
+ ref: le
480
+ }, [
481
+ (u(), M(Ie, {
482
+ key: `legend_top_${oe.value}`,
483
+ legendSet: z.value,
484
+ config: we.value,
485
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => X(a.id))
486
+ }, {
487
+ item: k(({ legend: a, index: o }) => [
488
+ n("div", {
489
+ "data-cy-legend-item": "",
490
+ onClick: (b) => X(a.id),
491
+ style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
492
+ }, i(a.name) + ": " + i(h(ee)(
493
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
494
+ a.value,
495
+ h(O)({
496
+ p: e.value.style.chart.legend.prefix,
497
+ v: a.value,
498
+ s: e.value.style.chart.legend.suffix,
499
+ r: e.value.style.chart.legend.roundingValue
500
+ }),
501
+ { datapoint: a, seriesIndex: o }
502
+ )), 13, Lt)
503
+ ]),
504
+ _: 1
505
+ }, 8, ["legendSet", "config"]))
506
+ ], 512)) : f("", !0),
507
+ Y.value ? (u(), d("svg", {
508
+ key: 4,
509
+ xmlns: h(rt),
510
+ class: R({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
511
+ viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
512
+ style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
513
+ }, [
514
+ re($t),
515
+ (u(!0), d(W, null, j(B.value, (a, o) => (u(), d("linearGradient", {
516
+ x1: "0%",
517
+ y1: "0%",
518
+ x2: "100%",
519
+ y2: "0%",
520
+ id: `vertical_bar_gradient_${V.value}_${o}`
521
+ }, [
522
+ n("stop", {
523
+ offset: "0%",
524
+ "stop-color": a.color
525
+ }, null, 8, St),
526
+ n("stop", {
527
+ offset: "100%",
528
+ "stop-color": h(de)(h(it)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
529
+ }, null, 8, Vt)
530
+ ], 8, Nt))), 256)),
531
+ (u(!0), d(W, null, j(B.value, (a, o) => (u(), d("g", null, [
532
+ n("rect", {
533
+ x: h(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : N(a.value) <= 0 ? 1e-4 : N(a.value)) : s.value.left),
534
+ y: s.value.top + (g.value + v.value) * o,
535
+ width: h(S)(N(a.value) <= 0 ? 1e-4 : N(a.value)),
536
+ height: v.value <= 0 ? 1e-4 : v.value,
537
+ fill: e.value.style.chart.layout.bars.underlayerColor,
538
+ rx: e.value.style.chart.layout.bars.borderRadius,
539
+ class: R({ animated: e.value.useCssAnimation })
540
+ }, null, 10, zt)
541
+ ]))), 256)),
542
+ (u(!0), d(W, null, j(B.value, (a, o) => (u(), d("g", null, [
543
+ n("rect", {
544
+ x: h(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : N(a.value) <= 0 ? 1e-4 : N(a.value)) : s.value.left),
545
+ y: s.value.top + (g.value + v.value) * o,
546
+ width: h(S)(N(a.value) <= 0 ? 1e-4 : N(a.value)),
547
+ height: v.value <= 0 ? 1e-4 : v.value,
548
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : h(de)(a.color, e.value.style.chart.layout.bars.fillOpacity),
549
+ rx: e.value.style.chart.layout.bars.borderRadius,
550
+ stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
551
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
552
+ class: R({ animated: e.value.useCssAnimation })
553
+ }, null, 10, Ft),
554
+ (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (u(), d("line", {
555
+ key: 0,
556
+ x1: 0,
557
+ x2: s.value.left,
558
+ y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
559
+ y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
560
+ stroke: e.value.style.chart.layout.separators.color,
561
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
562
+ "stroke-linecap": "round"
563
+ }, null, 8, Mt)) : f("", !0),
564
+ D.value && e.value.style.chart.layout.separators.show ? (u(), d("line", {
565
+ key: 1,
566
+ x1: s.value.left + s.value.width / 2,
567
+ x2: s.value.left + s.value.width / 2,
568
+ y1: s.value.top,
569
+ y2: s.value.bottom,
570
+ stroke: e.value.style.chart.layout.separators.color,
571
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
572
+ "stroke-linecap": "round"
573
+ }, null, 8, It)) : f("", !0),
574
+ n("text", {
575
+ x: D.value ? s.value.left + s.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : je(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
576
+ y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
577
+ "text-anchor": !D.value || a.sign === -1 ? "start" : "end",
578
+ "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
579
+ fill: e.value.style.chart.layout.bars.dataLabels.color,
580
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
581
+ }, i(Pe(a.value, a, o, a.sign)), 9, Ot),
582
+ (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), d("text", {
583
+ key: 2,
584
+ "text-anchor": "end",
585
+ x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
586
+ y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
587
+ "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
588
+ fill: e.value.style.chart.layout.bars.nameLabels.color,
589
+ "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
590
+ }, i(a.name), 9, At)) : f("", !0),
591
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), d("text", {
592
+ key: 3,
593
+ x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
594
+ y: E(a, o).y,
595
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
596
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
597
+ "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
598
+ "text-anchor": "start"
599
+ }, i(E(a, o).name), 9, Bt)) : f("", !0),
600
+ a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), d("text", {
601
+ key: 4,
602
+ x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
603
+ y: E(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
604
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
605
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
606
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
607
+ "text-anchor": "start"
608
+ }, i(Pe(E(a, o).value), E(a, o), o, a.parentSign || a.sign), 9, Dt)) : f("", !0),
609
+ n("rect", {
610
+ "data-cy-trap": "",
611
+ x: 0,
612
+ y: s.value.top + (g.value + v.value) * o - g.value / 2,
613
+ width: y.value.width <= 0 ? 1e-4 : y.value.width,
614
+ height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
615
+ fill: ne.value === a.id ? h(de)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
616
+ onMouseenter: (b) => qe(a, o),
617
+ onMouseleave: l[1] || (l[1] = (b) => {
618
+ Ee.value = null, te.value = !1, ne.value = null;
619
+ })
620
+ }, null, 40, Rt)
621
+ ]))), 256)),
622
+ _(t.$slots, "svg", { svg: y.value }, void 0, !0)
623
+ ], 14, Pt)) : f("", !0),
624
+ t.$slots.watermark ? (u(), d("div", Xt, [
625
+ _(t.$slots, "watermark", U(H({ isPrinting: h(ye) || h(fe) })), void 0, !0)
626
+ ])) : f("", !0),
627
+ Y.value ? f("", !0) : (u(), M(_t, {
628
+ key: 6,
629
+ config: {
630
+ type: "verticalBar",
631
+ style: {
632
+ backgroundColor: e.value.style.chart.backgroundColor,
633
+ verticalBar: {
634
+ axis: {
635
+ color: "#CCCCCC"
636
+ },
637
+ color: "#CCCCCC"
638
+ }
639
+ }
640
+ }
641
+ }, null, 8, ["config"])),
642
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), d("div", {
643
+ key: 7,
644
+ ref_key: "chartLegend",
645
+ ref: le
646
+ }, [
647
+ (u(), M(Ie, {
648
+ key: `legend_bottom_${oe.value}`,
649
+ legendSet: z.value,
650
+ config: we.value,
651
+ onClickMarker: l[2] || (l[2] = ({ legend: a }) => X(a.id))
652
+ }, {
653
+ item: k(({ legend: a, index: o }) => [
654
+ n("div", {
655
+ onClick: (b) => X(a.id),
656
+ style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
657
+ }, i(a.name) + ": " + i(h(ee)(
658
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
659
+ a.value,
660
+ h(O)({
661
+ p: e.value.style.chart.legend.prefix,
662
+ v: a.value,
663
+ s: e.value.style.chart.legend.suffix,
664
+ r: e.value.style.chart.legend.roundingValue
665
+ }),
666
+ { datapoint: a, seriesIndex: o }
667
+ )), 13, Et)
668
+ ]),
669
+ _: 1
670
+ }, 8, ["legendSet", "config"]))
671
+ ], 512)) : f("", !0),
672
+ _(t.$slots, "legend", { legend: z.value }, void 0, !0),
673
+ t.$slots.source ? (u(), d("div", {
674
+ key: 8,
675
+ ref_key: "source",
676
+ ref: he,
677
+ dir: "auto"
678
+ }, [
679
+ _(t.$slots, "source", {}, void 0, !0)
680
+ ], 512)) : f("", !0),
681
+ re(mt, {
682
+ show: $.value.showTooltip && te.value && T.value.length < C.dataset.length,
683
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
684
+ color: e.value.style.chart.tooltip.color,
685
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
686
+ borderColor: e.value.style.chart.tooltip.borderColor,
687
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
688
+ fontSize: e.value.style.chart.tooltip.fontSize,
689
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
690
+ position: e.value.style.chart.tooltip.position,
691
+ offsetY: e.value.style.chart.tooltip.offsetY,
692
+ parent: A.value,
693
+ content: ae.value,
694
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
695
+ }, {
696
+ "tooltip-before": k(() => [
697
+ _(t.$slots, "tooltip-before", U(H({ ...ue.value })), void 0, !0)
698
+ ]),
699
+ "tooltip-after": k(() => [
700
+ _(t.$slots, "tooltip-after", U(H({ ...ue.value })), void 0, !0)
701
+ ]),
702
+ _: 3
703
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
704
+ Y.value ? (u(), M(xt, {
705
+ key: 9,
706
+ hideDetails: "",
707
+ config: {
708
+ open: $.value.showTable,
709
+ maxHeight: 1e4,
710
+ body: {
711
+ backgroundColor: e.value.style.chart.backgroundColor,
712
+ color: e.value.style.chart.color
713
+ },
714
+ head: {
715
+ backgroundColor: e.value.style.chart.backgroundColor,
716
+ color: e.value.style.chart.color
717
+ }
718
+ }
719
+ }, {
720
+ content: k(() => [
721
+ n("div", {
722
+ ref_key: "tableContainer",
723
+ ref: ke,
724
+ class: "vue-ui-vertical-bar-table"
725
+ }, [
726
+ n("div", Gt, [
727
+ n("div", {
728
+ role: "button",
729
+ tabindex: "0",
730
+ style: c(`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};`),
731
+ onClick: l[3] || (l[3] = (a) => $.value.showTable = !1),
732
+ onKeypress: l[4] || (l[4] = tt((a) => $.value.showTable = !1, ["enter"]))
733
+ }, [
734
+ re(kt, {
735
+ name: "close",
736
+ stroke: e.value.table.th.color,
737
+ "stroke-width": 2
738
+ }, null, 8, ["stroke"])
739
+ ], 36),
740
+ n("div", {
741
+ style: { width: "100%", "container-type": "inline-size" },
742
+ class: R({ "vue-ui-responsive": xe.value })
743
+ }, [
744
+ n("table", Ut, [
745
+ n("caption", {
746
+ style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
747
+ class: "vue-ui-data-table__caption"
748
+ }, [
749
+ at(i(e.value.style.chart.title.text) + " ", 1),
750
+ e.value.style.chart.title.subtitle.text ? (u(), d("span", Ht, i(e.value.style.chart.title.subtitle.text), 1)) : f("", !0)
751
+ ], 4),
752
+ n("thead", null, [
753
+ n("tr", {
754
+ role: "row",
755
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
756
+ }, [
757
+ (u(!0), d(W, null, j(w.value.head, (a) => (u(), d("th", {
758
+ style: c(`outline:${e.value.table.th.outline}`)
759
+ }, [
760
+ n("div", Wt, i(a), 1)
761
+ ], 4))), 256))
762
+ ], 4),
763
+ n("tr", null, [
764
+ n("th", {
765
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
766
+ }, null, 4),
767
+ n("th", {
768
+ style: c(`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`)
769
+ }, "∑ " + 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),
770
+ n("th", {
771
+ style: c(`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`)
772
+ }, "100%", 4),
773
+ n("th", {
774
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
775
+ }, null, 4),
776
+ n("th", {
777
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
778
+ }, null, 4),
779
+ n("th", {
780
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
781
+ }, null, 4),
782
+ n("th", {
783
+ style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
784
+ }, null, 4)
785
+ ])
786
+ ]),
787
+ n("tbody", null, [
788
+ (u(!0), d(W, null, j(w.value.body, (a, o) => (u(), d("tr", {
789
+ class: R({ "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 }),
790
+ style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
791
+ }, [
792
+ n("td", {
793
+ class: "vue-ui-data-table__tbody__td",
794
+ style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
795
+ "data-cell": w.value.head[0] ?? ""
796
+ }, [
797
+ n("div", Yt, [
798
+ a.color ? (u(), d("span", {
799
+ key: 0,
800
+ style: c(`color:${a.color};margin-right:3px`)
801
+ }, "⬤", 4)) : f("", !0),
802
+ n("span", null, i(a.parentName), 1)
803
+ ])
804
+ ], 12, jt),
805
+ n("td", {
806
+ class: "vue-ui-data-table__tbody__td",
807
+ style: c(`outline:${e.value.table.td.outline}`),
808
+ "data-cell": w.value.head[1] ?? ""
809
+ }, [
810
+ n("div", Kt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
811
+ ], 12, qt),
812
+ n("td", {
813
+ class: "vue-ui-data-table__tbody__td",
814
+ style: c(`outline:${e.value.table.td.outline}`),
815
+ "data-cell": w.value.head[2] ?? ""
816
+ }, [
817
+ n("div", Qt, i(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
818
+ ], 12, Jt),
819
+ n("td", {
820
+ class: "vue-ui-data-table__tbody__td",
821
+ style: c(`outline:${e.value.table.td.outline}`),
822
+ "data-cell": w.value.head[3] ?? ""
823
+ }, [
824
+ n("div", ea, i(a.childName), 1)
825
+ ], 12, Zt),
826
+ n("td", {
827
+ class: "vue-ui-data-table__tbody__td",
828
+ style: c(`outline:${e.value.table.td.outline}`),
829
+ "data-cell": w.value.head[4] ?? ""
830
+ }, [
831
+ n("div", aa, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
832
+ ], 12, ta),
833
+ n("td", {
834
+ class: "vue-ui-data-table__tbody__td",
835
+ style: c(`outline:${e.value.table.td.outline}`),
836
+ "data-cell": w.value.head[5] ?? ""
837
+ }, [
838
+ n("div", oa, i(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
839
+ ], 12, la),
840
+ n("td", {
841
+ class: "vue-ui-data-table__tbody__td",
842
+ style: c(`outline:${e.value.table.td.outline}`),
843
+ "data-cell": w.value.head[6] ?? ""
844
+ }, [
845
+ n("div", ua, i(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
846
+ ], 12, na)
847
+ ], 6))), 256))
848
+ ])
849
+ ])
850
+ ], 2)
851
+ ])
852
+ ], 512)
853
+ ]),
854
+ _: 1
855
+ }, 8, ["config"])) : f("", !0)
856
+ ], 14, Tt));
857
+ }
858
+ }, xa = /* @__PURE__ */ wt(sa, [["__scopeId", "data-v-b74689e6"]]);
859
+ export {
860
+ xa as default
861
+ };