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
@@ -1,828 +0,0 @@
1
- import { useCssVars as Ye, computed as b, ref as d, watch as Se, onMounted as qe, onBeforeUnmount as Ke, openBlock as u, createElementBlock as c, normalizeClass as D, normalizeStyle as i, createBlock as R, createCommentVNode as m, unref as h, createSlots as Je, withCtx as x, renderSlot as k, normalizeProps as K, guardReactiveProps as J, createElementVNode as n, toDisplayString as r, createVNode as ue, Fragment as U, renderList as H, 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, v as S, d as se, i as Z, f as I, X as nt, s as re, w as ut, x as st, y as rt, q as it, r as dt } from "./index-DDXisDKy.js";
3
- import { t as ct, u as vt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as ht } from "./Title-DYNLqCCT.js";
5
- import { u as pt, U as gt } from "./usePrinter-8ofTb2MJ.js";
6
- import { _ as yt } from "./Tooltip-CICAYyQj.js";
7
- import { L as ze } from "./Legend-DXLiSLHd.js";
8
- import ft from "./vue-ui-skeleton-B2sRnIXX.js";
9
- import bt from "./BaseIcon-CXDdkPfN.js";
10
- import mt from "./vue-ui-accordion-D_1fE5EF.js";
11
- import { u as Fe } from "./useNestedProp-S1UXxUgm.js";
12
- import { _ as _t } from "./PackageVersion-DtnhR89q.js";
13
- import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt = ["stop-color"], Lt = ["stop-color"], Nt = ["x", "y", "width", "height", "fill", "rx"], Pt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], St = ["x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "font-size", "fill", "font-weight"], Bt = ["y", "width", "height", "fill", "onMouseenter"], Ot = {
15
- key: 4,
16
- class: "vue-data-ui-watermark"
17
- }, Dt = ["onClick"], Rt = { style: "width:100%;padding-top: 36px;position:relative" }, Xt = { class: "vue-ui-data-table" }, At = { key: 0 }, Et = { style: { width: "100%" } }, 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 = ["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 = {
18
- __name: "vue-ui-vertical-bar",
19
- props: {
20
- config: {
21
- type: Object,
22
- default() {
23
- return {};
24
- }
25
- },
26
- dataset: {
27
- type: Array,
28
- default() {
29
- return [];
30
- }
31
- }
32
- },
33
- emits: ["selectLegend"],
34
- setup(Me, { expose: Ie, emit: Be }) {
35
- const w = Me;
36
- Ye((a) => ({
37
- "3d035ab4": a.tdo
38
- }));
39
- const { vue_ui_vertical_bar: Oe } = et(), W = b(() => !!w.dataset && w.dataset.length), V = d(tt()), De = d(null), ee = d(!1), te = d(""), j = d(0), Re = d(null), ie = d(0), X = d(null), de = d(null), ae = d(null), ce = d(0), le = d(0), e = b({
40
- get: () => ve(),
41
- set: (a) => a
42
- });
43
- function ve() {
44
- const a = Fe({
45
- userConfig: w.config,
46
- defaultConfig: Oe
47
- });
48
- return a.theme ? {
49
- ...Fe({
50
- userConfig: at.vue_ui_vertical_bar[a.theme] || w.config,
51
- defaultConfig: a
52
- }),
53
- customPalette: lt[a.theme] || M
54
- } : a;
55
- }
56
- Se(() => w.config, (a) => {
57
- e.value = ve(), _e(), ce.value += 1, le.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
58
- }, { deep: !0 }), Se(() => w.dataset, q, { deep: !0 });
59
- const { isPrinting: he, isImaging: pe, generatePdf: ge, generateImage: ye } = pt({
60
- elementId: `vue-ui-vertical-bar_${V.value}`,
61
- fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
62
- }), fe = b(() => ot(e.value.customPalette)), be = d(null), me = d(!1), Xe = b(() => e.value.table.responsiveBreakpoint), Y = d(null);
63
- qe(() => {
64
- _e();
65
- });
66
- function _e() {
67
- if (Ve(w.dataset) && Q({
68
- componentName: "VueUiVerticalBar",
69
- type: "dataset"
70
- }), j.value = w.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ae(), e.value.responsive) {
71
- const a = ct(() => {
72
- const { width: l, height: t } = vt({
73
- chart: X.value,
74
- title: e.value.style.chart.title.text ? de.value : null,
75
- legend: e.value.style.chart.legend.show ? ae.value : null
76
- });
77
- $e.value = l, v.value = t / j.value - g.value * 2;
78
- });
79
- Y.value = new ResizeObserver(a), Y.value.observe(X.value.parentNode);
80
- }
81
- }
82
- Ke(() => {
83
- Y.value && Y.value.disconnect();
84
- });
85
- function Ae() {
86
- new ResizeObserver((l) => {
87
- l.forEach((t) => {
88
- me.value = t.contentRect.width < Xe.value;
89
- });
90
- }).observe(be.value);
91
- }
92
- const $ = d({
93
- showTable: e.value.table.show,
94
- sortDesc: e.value.style.chart.layout.bars.sort === "desc",
95
- showTooltip: e.value.style.chart.tooltip.show
96
- }), xe = b(() => $.value.sortDesc), z = b(() => (w.dataset.forEach((a, l) => {
97
- !a.value && !a.children && Q({
98
- componentName: "VueUiVerticalBar",
99
- type: "datasetAttributeEmpty",
100
- property: `value (index ${l})`
101
- }), a.children && (Ve(a.children) ? Q({
102
- componentName: "VueUiVerticalBar",
103
- type: "datasetAttributeEmpty",
104
- property: `children (index ${l})`
105
- }) : a.children.forEach((t, o) => {
106
- [null, void 0].includes(t.name) && Q({
107
- componentName: "VueUiVerticalBar",
108
- type: "datasetSerieAttribute",
109
- property: "name",
110
- key: "children",
111
- index: o
112
- });
113
- }));
114
- }), w.dataset.map((a, l) => {
115
- 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;
116
- return {
117
- ...a,
118
- id: t,
119
- shape: "square",
120
- opacity: T.value.includes(t) ? 0.5 : 1,
121
- value: Math.abs(f),
122
- sign: p,
123
- hasChildren: o,
124
- isChild: !1,
125
- segregate: () => A(t),
126
- isSegregated: T.value.includes(t),
127
- color: se(a.color) || fe.value[l] || M[l] || M[l % M.length],
128
- children: !a.children || !a.children.length ? [] : a.children.toSorted((_, N) => xe.value ? N.value - _.value : _.value - N.value).map((_, N) => ({
129
- ..._,
130
- value: S(Math.abs(_.value)),
131
- sign: _.value >= 0 ? 1 : -1,
132
- isChild: !0,
133
- parentId: t,
134
- parentName: a.name,
135
- parentValue: f,
136
- parentSign: p,
137
- id: `vertical_child_${l}_${N}_${V.value}`,
138
- childIndex: N,
139
- color: se(_.color) || se(a.color) || fe.value[l] || M[l] || M[l % M.length]
140
- })).map((_, N) => ({
141
- ..._,
142
- isFirstChild: N === 0,
143
- isLastChild: N === a.children.length - 1
144
- }))
145
- };
146
- }).toSorted((a, l) => xe.value ? l.value - a.value : a.value - l.value))), ke = b(() => ({
147
- cy: "vertical-bar-div-legend",
148
- backgroundColor: e.value.style.chart.legend.backgroundColor,
149
- color: e.value.style.chart.legend.color,
150
- fontSize: e.value.style.chart.legend.fontSize,
151
- paddingBottom: 12,
152
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
153
- })), 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), $e = d(512), y = b(() => ({
154
- width: $e.value,
155
- height: Ee.value,
156
- padding: {
157
- top: 12,
158
- left: 128 + e.value.style.chart.layout.bars.offsetX,
159
- right: 64 + e.value.style.chart.layout.bars.paddingRight,
160
- bottom: 12
161
- }
162
- })), s = b(() => ({
163
- fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
164
- top: y.value.padding.top,
165
- left: y.value.padding.left,
166
- right: y.value.width - y.value.padding.right,
167
- bottom: y.value.padding.top + y.value.height,
168
- width: y.value.width - (y.value.padding.left + y.value.padding.right)
169
- }));
170
- function q() {
171
- j.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
172
- }
173
- const T = d([]);
174
- function A(a) {
175
- T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a), q(), Be("selectLegend", F.value);
176
- }
177
- 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));
178
- function we(a, l = !1, t = 0) {
179
- return l ? I({
180
- v: S(Math.abs(a) / L.value * 100),
181
- s: "%",
182
- r: t
183
- }) : Math.abs(a) / L.value;
184
- }
185
- 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)));
186
- function P(a) {
187
- const l = a / Ge.value;
188
- return s.value.width / (O.value ? 2 : 1) * l;
189
- }
190
- function Ue(a) {
191
- return P(a) + s.value.left;
192
- }
193
- function E(a, l) {
194
- 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);
195
- return {
196
- y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
197
- name: t.name,
198
- value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
199
- percentageToTotal: isNaN(t.value / L.value) ? "" : we(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
200
- sign: t.sign
201
- };
202
- }
203
- function He() {
204
- return F.value;
205
- }
206
- const oe = d(null), ne = d(null);
207
- function We(a, l) {
208
- ne.value = {
209
- datapoint: a,
210
- seriesIndex: l,
211
- series: z.value,
212
- config: e.value
213
- }, ee.value = !0, oe.value = a.id;
214
- let t = "";
215
- const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
216
- st(p) && rt(() => p({
217
- datapoint: a,
218
- series: z.value,
219
- config: e.value,
220
- seriesIndex: l
221
- })) ? te.value = p({
222
- datapoint: a,
223
- series: z.value,
224
- config: e.value,
225
- seriesIndex: l
226
- }) : (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;">
227
- <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>
228
- ${f ? `<div>${f}</div>` : ""}
229
- </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Z(
230
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
231
- a.sign === 1 ? a.value : -a.value,
232
- I({
233
- p: e.value.style.chart.tooltip.prefix,
234
- v: a.sign === 1 ? a.value : -a.value,
235
- s: e.value.style.chart.tooltip.suffix,
236
- r: e.value.style.chart.tooltip.roundingValue
237
- }),
238
- { datapoint: a, seriesIndex: l }
239
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${I({
240
- v: Math.abs(a.value) / L.value * 100,
241
- s: "%",
242
- r: e.value.style.chart.tooltip.roundingPercentage
243
- })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${I({
244
- v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
245
- s: "%",
246
- r: e.value.style.chart.tooltip.roundingPercentage
247
- })}</b></div>`)), te.value = `<div style="text-align:left">${t}</div>`);
248
- }
249
- function Ce(a, l, t, o) {
250
- if (!e.value.style.chart.layout.bars.dataLabels.value.show)
251
- return "";
252
- const f = Z(
253
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
254
- S(o === -1 && a >= 0 ? -a : a),
255
- I({
256
- p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
257
- v: S(o === -1 && a >= 0 ? -a : a),
258
- s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
259
- r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
260
- }),
261
- { datapoint: l, seriesIndex: t }
262
- ), p = `(${we(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
263
- return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
264
- }
265
- const C = b(() => {
266
- const a = [
267
- e.value.translations.parentName,
268
- e.value.translations.value,
269
- e.value.translations.percentageToTotal,
270
- e.value.translations.childName,
271
- e.value.translations.value,
272
- e.value.translations.percentageToSerie,
273
- e.value.translations.percentageToTotal
274
- ], l = B.value.map((t) => t.isChild ? t.isFirstChild ? {
275
- color: t.color,
276
- parentName: t.parentName,
277
- parentValue: t.parentValue,
278
- percentageToTotal: t.parentValue / L.value,
279
- childName: t.name,
280
- childValue: t.sign === 1 ? t.value : -t.value,
281
- childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
282
- childPercentageToTotal: Math.abs(t.value) / L.value
283
- } : {
284
- color: "",
285
- parentName: "",
286
- parentValue: "",
287
- percentageToTotal: "",
288
- childName: t.name,
289
- childValue: t.sign === 1 ? t.value : -t.value,
290
- childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
291
- childPercentageToTotal: Math.abs(t.value) / L.value
292
- } : {
293
- color: t.color,
294
- parentName: t.name,
295
- parentValue: t.sign === 1 ? t.value : -t.value,
296
- percentageToTotal: Math.abs(t.value) / L.value,
297
- childName: "",
298
- childValue: "",
299
- childPercentageToParent: "",
300
- childPercentageToTotal: ""
301
- });
302
- return { head: a, body: l };
303
- });
304
- function Te() {
305
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = C.value.head, t = C.value.body.map((p) => [
306
- p.parentName,
307
- p.parentValue,
308
- p.percentageToTotal,
309
- p.childName,
310
- p.childValue,
311
- p.childPercentageToParent,
312
- p.childPercentageToTotal
313
- ]), o = a.concat([l]).concat(t), f = it(o);
314
- dt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
315
- }
316
- const G = d(!1);
317
- function je(a) {
318
- G.value = a, ie.value += 1;
319
- }
320
- function Le() {
321
- $.value.showTable = !$.value.showTable;
322
- }
323
- function Ne() {
324
- $.value.sortDesc = !$.value.sortDesc, q();
325
- }
326
- function Pe() {
327
- $.value.showTooltip = !$.value.showTooltip;
328
- }
329
- return Ie({
330
- getData: He,
331
- recalculateHeight: q,
332
- generatePdf: ge,
333
- generateCsv: Te,
334
- generateImage: ye,
335
- toggleTable: Le,
336
- toggleSort: Ne,
337
- toggleTooltip: Pe
338
- }), (a, l) => (u(), c("div", {
339
- class: D(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
340
- ref_key: "verticalBarChart",
341
- ref: X,
342
- id: `vue-ui-vertical-bar_${V.value}`,
343
- style: i(`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%" : ""}`)
344
- }, [
345
- e.value.style.chart.title.text ? (u(), c("div", {
346
- key: 0,
347
- ref_key: "chartTitle",
348
- ref: de,
349
- style: "width:100%;background:transparent;padding-bottom:12px"
350
- }, [
351
- (u(), R(ht, {
352
- key: `title_${ce.value}`,
353
- config: {
354
- title: {
355
- cy: "vertical-bar-div-title",
356
- ...e.value.style.chart.title
357
- },
358
- subtitle: {
359
- cy: "vertical-bar-div-subtitle",
360
- ...e.value.style.chart.title.subtitle
361
- }
362
- }
363
- }, null, 8, ["config"]))
364
- ], 512)) : m("", !0),
365
- e.value.userOptions.show && W.value ? (u(), R(gt, {
366
- ref_key: "details",
367
- ref: De,
368
- key: `user_options_${ie.value}`,
369
- backgroundColor: e.value.style.chart.backgroundColor,
370
- color: e.value.style.chart.color,
371
- isImaging: h(pe),
372
- isPrinting: h(he),
373
- uid: V.value,
374
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
375
- hasPdf: e.value.userOptions.buttons.pdf,
376
- hasImg: e.value.userOptions.buttons.img,
377
- hasXls: e.value.userOptions.buttons.csv,
378
- hasTable: e.value.userOptions.buttons.table,
379
- hasSort: e.value.userOptions.buttons.sort,
380
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
381
- isFullscreen: G.value,
382
- isTooltip: $.value.showTooltip,
383
- titles: { ...e.value.userOptions.buttonTitles },
384
- chartElement: X.value,
385
- position: e.value.userOptions.position,
386
- onToggleFullscreen: je,
387
- onGeneratePdf: h(ge),
388
- onGenerateCsv: Te,
389
- onGenerateImage: h(ye),
390
- onToggleTable: Le,
391
- onToggleSort: Ne,
392
- onToggleTooltip: Pe
393
- }, Je({ _: 2 }, [
394
- a.$slots.optionTooltip ? {
395
- name: "optionTooltip",
396
- fn: x(() => [
397
- k(a.$slots, "optionTooltip", {}, void 0, !0)
398
- ]),
399
- key: "0"
400
- } : void 0,
401
- a.$slots.optionPdf ? {
402
- name: "optionPdf",
403
- fn: x(() => [
404
- k(a.$slots, "optionPdf", {}, void 0, !0)
405
- ]),
406
- key: "1"
407
- } : void 0,
408
- a.$slots.optionCsv ? {
409
- name: "optionCsv",
410
- fn: x(() => [
411
- k(a.$slots, "optionCsv", {}, void 0, !0)
412
- ]),
413
- key: "2"
414
- } : void 0,
415
- a.$slots.optionImg ? {
416
- name: "optionImg",
417
- fn: x(() => [
418
- k(a.$slots, "optionImg", {}, void 0, !0)
419
- ]),
420
- key: "3"
421
- } : void 0,
422
- a.$slots.optionTable ? {
423
- name: "optionTable",
424
- fn: x(() => [
425
- k(a.$slots, "optionTable", {}, void 0, !0)
426
- ]),
427
- key: "4"
428
- } : void 0,
429
- a.$slots.optionLabels ? {
430
- name: "optionLabels",
431
- fn: x(() => [
432
- k(a.$slots, "optionLabels", {}, void 0, !0)
433
- ]),
434
- key: "5"
435
- } : void 0,
436
- a.$slots.optionSort ? {
437
- name: "optionSort",
438
- fn: x(() => [
439
- k(a.$slots, "optionSort", {}, void 0, !0)
440
- ]),
441
- key: "6"
442
- } : void 0,
443
- a.$slots.optionFullscreen ? {
444
- name: "optionFullscreen",
445
- fn: x(({ toggleFullscreen: t, isFullscreen: o }) => [
446
- k(a.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
447
- ]),
448
- key: "7"
449
- } : void 0
450
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
451
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), c("div", {
452
- key: 2,
453
- ref_key: "chartLegend",
454
- ref: ae
455
- }, [
456
- (u(), R(ze, {
457
- key: `legend_top_${le.value}`,
458
- legendSet: z.value,
459
- config: ke.value,
460
- onClickMarker: l[0] || (l[0] = ({ legend: t }) => A(t.id))
461
- }, {
462
- item: x(({ legend: t, index: o }) => [
463
- n("div", {
464
- "data-cy-legend-item": "",
465
- onClick: (f) => A(t.id),
466
- style: i(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
467
- }, r(t.name) + ": " + r(h(Z)(
468
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
469
- t.value,
470
- h(I)({
471
- p: e.value.style.chart.legend.prefix,
472
- v: t.value,
473
- s: e.value.style.chart.legend.suffix,
474
- r: e.value.style.chart.legend.roundingValue
475
- }),
476
- { datapoint: t, seriesIndex: o }
477
- )), 13, $t)
478
- ]),
479
- _: 1
480
- }, 8, ["legendSet", "config"]))
481
- ], 512)) : m("", !0),
482
- W.value ? (u(), c("svg", {
483
- key: 3,
484
- xmlns: h(nt),
485
- class: D({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
486
- viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
487
- style: i(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
488
- }, [
489
- ue(_t),
490
- (u(!0), c(U, null, H(B.value, (t, o) => (u(), c("linearGradient", {
491
- x1: "0%",
492
- y1: "0%",
493
- x2: "100%",
494
- y2: "0%",
495
- id: `vertical_bar_gradient_${V.value}_${o}`
496
- }, [
497
- n("stop", {
498
- offset: "0%",
499
- "stop-color": t.color
500
- }, null, 8, Tt),
501
- n("stop", {
502
- offset: "100%",
503
- "stop-color": h(re)(h(ut)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
504
- }, null, 8, Lt)
505
- ], 8, Ct))), 256)),
506
- (u(!0), c(U, null, H(B.value, (t, o) => (u(), c("g", null, [
507
- n("rect", {
508
- 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),
509
- y: s.value.top + (g.value + v.value) * o,
510
- width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
511
- height: v.value <= 0 ? 1e-4 : v.value,
512
- fill: e.value.style.chart.layout.bars.underlayerColor,
513
- rx: e.value.style.chart.layout.bars.borderRadius,
514
- class: D({ animated: e.value.useCssAnimation })
515
- }, null, 10, Nt)
516
- ]))), 256)),
517
- (u(!0), c(U, null, H(B.value, (t, o) => (u(), c("g", null, [
518
- n("rect", {
519
- 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),
520
- y: s.value.top + (g.value + v.value) * o,
521
- width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
522
- height: v.value <= 0 ? 1e-4 : v.value,
523
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : h(re)(t.color, e.value.style.chart.layout.bars.fillOpacity),
524
- rx: e.value.style.chart.layout.bars.borderRadius,
525
- stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
526
- "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
527
- class: D({ animated: e.value.useCssAnimation })
528
- }, null, 10, Pt),
529
- (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (u(), c("line", {
530
- key: 0,
531
- x1: 0,
532
- x2: s.value.left,
533
- y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
534
- y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
535
- stroke: e.value.style.chart.layout.separators.color,
536
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
537
- "stroke-linecap": "round"
538
- }, null, 8, St)) : m("", !0),
539
- O.value && e.value.style.chart.layout.separators.show ? (u(), c("line", {
540
- key: 1,
541
- x1: s.value.left + s.value.width / 2,
542
- x2: s.value.left + s.value.width / 2,
543
- y1: s.value.top,
544
- y2: s.value.bottom,
545
- stroke: e.value.style.chart.layout.separators.color,
546
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
547
- "stroke-linecap": "round"
548
- }, null, 8, Vt)) : m("", !0),
549
- n("text", {
550
- 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,
551
- y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
552
- "text-anchor": !O.value || t.sign === -1 ? "start" : "end",
553
- "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
554
- fill: e.value.style.chart.layout.bars.dataLabels.color,
555
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
556
- }, r(Ce(t.value, t, o, t.sign)), 9, zt),
557
- (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), c("text", {
558
- key: 2,
559
- "text-anchor": "end",
560
- x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
561
- y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
562
- "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
563
- fill: e.value.style.chart.layout.bars.nameLabels.color,
564
- "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
565
- }, r(t.name), 9, Ft)) : m("", !0),
566
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
567
- key: 3,
568
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
569
- y: E(t, o).y,
570
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
571
- fill: e.value.style.chart.layout.bars.parentLabels.color,
572
- "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
573
- "text-anchor": "start"
574
- }, r(E(t, o).name), 9, Mt)) : m("", !0),
575
- t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
576
- key: 4,
577
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
578
- y: E(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
579
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
580
- fill: e.value.style.chart.layout.bars.parentLabels.color,
581
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
582
- "text-anchor": "start"
583
- }, r(Ce(E(t, o).value), E(t, o), o, t.parentSign || t.sign), 9, It)) : m("", !0),
584
- n("rect", {
585
- "data-cy-trap": "",
586
- x: 0,
587
- y: s.value.top + (g.value + v.value) * o - g.value / 2,
588
- width: y.value.width <= 0 ? 1e-4 : y.value.width,
589
- height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
590
- fill: oe.value === t.id ? h(re)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
591
- onMouseenter: (f) => We(t, o),
592
- onMouseleave: l[1] || (l[1] = (f) => {
593
- Re.value = null, ee.value = !1, oe.value = null;
594
- })
595
- }, null, 40, Bt)
596
- ]))), 256)),
597
- k(a.$slots, "svg", { svg: y.value }, void 0, !0)
598
- ], 14, wt)) : m("", !0),
599
- a.$slots.watermark ? (u(), c("div", Ot, [
600
- k(a.$slots, "watermark", K(J({ isPrinting: h(he) || h(pe) })), void 0, !0)
601
- ])) : m("", !0),
602
- W.value ? m("", !0) : (u(), R(ft, {
603
- key: 5,
604
- config: {
605
- type: "verticalBar",
606
- style: {
607
- backgroundColor: e.value.style.chart.backgroundColor,
608
- verticalBar: {
609
- axis: {
610
- color: "#CCCCCC"
611
- },
612
- color: "#CCCCCC"
613
- }
614
- }
615
- }
616
- }, null, 8, ["config"])),
617
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), c("div", {
618
- key: 6,
619
- ref_key: "chartLegend",
620
- ref: ae
621
- }, [
622
- (u(), R(ze, {
623
- key: `legend_bottom_${le.value}`,
624
- legendSet: z.value,
625
- config: ke.value,
626
- onClickMarker: l[2] || (l[2] = ({ legend: t }) => A(t.id))
627
- }, {
628
- item: x(({ legend: t, index: o }) => [
629
- n("div", {
630
- onClick: (f) => A(t.id),
631
- style: i(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
632
- }, r(t.name) + ": " + r(h(Z)(
633
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
634
- t.value,
635
- h(I)({
636
- p: e.value.style.chart.legend.prefix,
637
- v: t.value,
638
- s: e.value.style.chart.legend.suffix,
639
- r: e.value.style.chart.legend.roundingValue
640
- }),
641
- { datapoint: t, seriesIndex: o }
642
- )), 13, Dt)
643
- ]),
644
- _: 1
645
- }, 8, ["legendSet", "config"]))
646
- ], 512)) : m("", !0),
647
- k(a.$slots, "legend", { legend: z.value }, void 0, !0),
648
- ue(yt, {
649
- show: $.value.showTooltip && ee.value && T.value.length < w.dataset.length,
650
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
651
- color: e.value.style.chart.tooltip.color,
652
- borderRadius: e.value.style.chart.tooltip.borderRadius,
653
- borderColor: e.value.style.chart.tooltip.borderColor,
654
- borderWidth: e.value.style.chart.tooltip.borderWidth,
655
- fontSize: e.value.style.chart.tooltip.fontSize,
656
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
657
- position: e.value.style.chart.tooltip.position,
658
- offsetY: e.value.style.chart.tooltip.offsetY,
659
- parent: X.value,
660
- content: te.value,
661
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
662
- }, {
663
- "tooltip-before": x(() => [
664
- k(a.$slots, "tooltip-before", K(J({ ...ne.value })), void 0, !0)
665
- ]),
666
- "tooltip-after": x(() => [
667
- k(a.$slots, "tooltip-after", K(J({ ...ne.value })), void 0, !0)
668
- ]),
669
- _: 3
670
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
671
- W.value ? (u(), R(mt, {
672
- key: 7,
673
- hideDetails: "",
674
- config: {
675
- open: $.value.showTable,
676
- maxHeight: 1e4,
677
- body: {
678
- backgroundColor: e.value.style.chart.backgroundColor,
679
- color: e.value.style.chart.color
680
- },
681
- head: {
682
- backgroundColor: e.value.style.chart.backgroundColor,
683
- color: e.value.style.chart.color
684
- }
685
- }
686
- }, {
687
- content: x(() => [
688
- n("div", {
689
- ref_key: "tableContainer",
690
- ref: be,
691
- class: "vue-ui-vertical-bar-table"
692
- }, [
693
- n("div", Rt, [
694
- n("div", {
695
- role: "button",
696
- tabindex: "0",
697
- style: i(`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};`),
698
- onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
699
- onKeypress: l[4] || (l[4] = Qe((t) => $.value.showTable = !1, ["enter"]))
700
- }, [
701
- ue(bt, {
702
- name: "close",
703
- stroke: e.value.table.th.color,
704
- "stroke-width": 2
705
- }, null, 8, ["stroke"])
706
- ], 36),
707
- n("div", {
708
- style: { width: "100%", "container-type": "inline-size" },
709
- class: D({ "vue-ui-responsive": me.value })
710
- }, [
711
- n("table", Xt, [
712
- n("caption", {
713
- style: i({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
714
- class: "vue-ui-data-table__caption"
715
- }, [
716
- Ze(r(e.value.style.chart.title.text) + " ", 1),
717
- e.value.style.chart.title.subtitle.text ? (u(), c("span", At, r(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
718
- ], 4),
719
- n("thead", null, [
720
- n("tr", {
721
- role: "row",
722
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
723
- }, [
724
- (u(!0), c(U, null, H(C.value.head, (t) => (u(), c("th", {
725
- style: i(`outline:${e.value.table.th.outline}`)
726
- }, [
727
- n("div", Et, r(t), 1)
728
- ], 4))), 256))
729
- ], 4),
730
- n("tr", null, [
731
- n("th", {
732
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
733
- }, null, 4),
734
- n("th", {
735
- style: i(`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`)
736
- }, "∑ " + r(e.value.table.td.prefix) + r(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 5),
737
- n("th", {
738
- style: i(`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`)
739
- }, "100%", 4),
740
- n("th", {
741
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
742
- }, null, 4),
743
- n("th", {
744
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
745
- }, null, 4),
746
- n("th", {
747
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
748
- }, null, 4),
749
- n("th", {
750
- style: i(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
751
- }, null, 4)
752
- ])
753
- ]),
754
- n("tbody", null, [
755
- (u(!0), c(U, null, H(C.value.body, (t, o) => (u(), c("tr", {
756
- 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 }),
757
- style: i(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
758
- }, [
759
- n("td", {
760
- class: "vue-ui-data-table__tbody__td",
761
- style: i(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
762
- "data-cell": C.value.head[0] ?? ""
763
- }, [
764
- n("div", Ut, [
765
- t.color ? (u(), c("span", {
766
- key: 0,
767
- style: i(`color:${t.color};margin-right:3px`)
768
- }, "⬤", 4)) : m("", !0),
769
- n("span", null, r(t.parentName), 1)
770
- ])
771
- ], 12, Gt),
772
- n("td", {
773
- class: "vue-ui-data-table__tbody__td",
774
- style: i(`outline:${e.value.table.td.outline}`),
775
- "data-cell": C.value.head[1] ?? ""
776
- }, [
777
- n("div", Wt, r(e.value.table.td.prefix) + r(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 1)
778
- ], 12, Ht),
779
- n("td", {
780
- class: "vue-ui-data-table__tbody__td",
781
- style: i(`outline:${e.value.table.td.outline}`),
782
- "data-cell": C.value.head[2] ?? ""
783
- }, [
784
- n("div", Yt, r(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
785
- ], 12, jt),
786
- n("td", {
787
- class: "vue-ui-data-table__tbody__td",
788
- style: i(`outline:${e.value.table.td.outline}`),
789
- "data-cell": C.value.head[3] ?? ""
790
- }, [
791
- n("div", Kt, r(t.childName), 1)
792
- ], 12, qt),
793
- n("td", {
794
- class: "vue-ui-data-table__tbody__td",
795
- style: i(`outline:${e.value.table.td.outline}`),
796
- "data-cell": C.value.head[4] ?? ""
797
- }, [
798
- n("div", Qt, r(e.value.table.td.prefix) + r(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 1)
799
- ], 12, Jt),
800
- n("td", {
801
- class: "vue-ui-data-table__tbody__td",
802
- style: i(`outline:${e.value.table.td.outline}`),
803
- "data-cell": C.value.head[5] ?? ""
804
- }, [
805
- n("div", ea, r(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
806
- ], 12, Zt),
807
- n("td", {
808
- class: "vue-ui-data-table__tbody__td",
809
- style: i(`outline:${e.value.table.td.outline}`),
810
- "data-cell": C.value.head[6] ?? ""
811
- }, [
812
- n("div", aa, r(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
813
- ], 12, ta)
814
- ], 6))), 256))
815
- ])
816
- ])
817
- ], 2)
818
- ])
819
- ], 512)
820
- ]),
821
- _: 1
822
- }, 8, ["config"])) : m("", !0)
823
- ], 14, kt));
824
- }
825
- }, fa = /* @__PURE__ */ xt(la, [["__scopeId", "data-v-008d2191"]]);
826
- export {
827
- fa as default
828
- };