vue-data-ui 2.3.27 → 2.3.29

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 (183) hide show
  1. package/README.md +17 -1
  2. package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/documentation/installation.md +1 -1
  19. package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
  20. package/dist/index-hKWfT7Wa.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +66 -0
  23. package/dist/types/vue-data-ui.d.ts +66 -0
  24. package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
  25. package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  26. package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
  27. package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  28. package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  29. package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +6 -6
  32. package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  33. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  34. package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  36. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  38. package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  39. package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  42. package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  44. package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  45. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  46. package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  47. package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  50. package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  51. package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  52. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  53. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  55. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  56. package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  57. package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  58. package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  60. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  61. package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  62. package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
  64. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  65. package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  66. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  67. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  68. package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  69. package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  70. package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  75. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  76. package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  77. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  78. package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  79. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  80. package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  81. package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  82. package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  83. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  84. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  85. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  86. package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  87. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  88. package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  89. package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
  90. package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  91. package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  92. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  93. package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  94. package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  95. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  96. package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  98. package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  99. package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  104. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  105. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  106. package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  108. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  109. package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  110. package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  112. package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  113. package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  114. package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  115. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  116. package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  117. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  118. package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  119. package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
  120. package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  122. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  124. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  125. package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  126. package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  127. package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  128. package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  129. package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  131. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  132. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  133. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  134. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  135. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  136. package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  138. package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
  139. package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
  140. package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  141. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  142. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  143. package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  144. package/package.json +1 -1
  145. package/dist/DataTable-C6HTLT7L.cjs +0 -1
  146. package/dist/index-BQOxn6SH.cjs +0 -4
  147. package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
  148. package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
  149. package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
  150. package/dist/vue-ui-donut-C33U3e8H.js +0 -751
  151. package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
  152. package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
  153. package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
  154. package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
  155. package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
  156. package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
  157. package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
  158. package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
  159. package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
  160. package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
  161. package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
  162. package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
  163. package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
  164. package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
  165. package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
  166. package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
  168. package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
  170. package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
  171. package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
  173. package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
  174. package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
  175. package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
  177. package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
  178. package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
  179. package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
  180. package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
  181. package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
  182. package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
  183. package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
@@ -1,745 +0,0 @@
1
- import { useCssVars as De, computed as f, ref as h, onMounted as Re, onBeforeUnmount as Me, openBlock as i, createElementBlock as c, normalizeClass as S, normalizeStyle as d, createVNode as D, createCommentVNode as b, createBlock as Q, unref as C, createSlots as Ue, withCtx as m, renderSlot as _, normalizeProps as G, guardReactiveProps as H, createElementVNode as o, toDisplayString as u, Fragment as R, renderList as M, withKeys as Xe, createTextVNode as Ae } from "vue";
2
- import { u as Ee, c as Ge, t as He, a as We, p as V, b as je, o as _e, e as Z, d as ee, X as Ye, s as qe, r as te, v as Ke, w as Je, f as Qe, n as Ze, q as et } from "./index-DiWO-_ca.js";
3
- import { t as tt, u as lt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as at } from "./Title-C3Ez1ceq.js";
5
- import { u as ot, U as nt } from "./usePrinter-BD40aUzH.js";
6
- import { _ as ut } from "./Tooltip-7SRMoiu-.js";
7
- import { L as $e } from "./Legend-8eVERYMn.js";
8
- import rt from "./vue-ui-skeleton-CeNL0kH-.js";
9
- import st from "./BaseIcon-D8FXGup9.js";
10
- import it from "./vue-ui-accordion-CiNdgRO9.js";
11
- import { u as xe } from "./useNestedProp-DNX5EefQ.js";
12
- import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const ct = ["id"], vt = ["onClick"], ht = ["xmlns", "viewBox"], pt = ["id"], gt = ["stop-color"], yt = ["stop-color"], ft = ["x", "y", "width", "height", "fill", "rx"], bt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], mt = ["x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x", "y", "font-size", "fill", "font-weight"], $t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["x", "y", "font-size", "fill", "font-weight"], kt = ["x", "y", "font-size", "fill", "font-weight"], Ct = ["y", "width", "height", "fill", "onMouseenter"], wt = {
14
- key: 4,
15
- class: "vue-data-ui-watermark"
16
- }, Tt = ["onClick"], Nt = { style: "width:100%;padding-top: 36px;position:relative" }, Lt = { class: "vue-ui-data-table" }, Pt = { key: 0 }, Vt = { style: { width: "100%" } }, St = ["data-cell"], Ft = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zt = ["data-cell"], Bt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, It = ["data-cell"], Ot = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Dt = ["data-cell"], Rt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Mt = ["data-cell"], Ut = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Xt = ["data-cell"], At = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Et = ["data-cell"], Gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ht = {
17
- __name: "vue-ui-vertical-bar",
18
- props: {
19
- config: {
20
- type: Object,
21
- default() {
22
- return {};
23
- }
24
- },
25
- dataset: {
26
- type: Array,
27
- default() {
28
- return [];
29
- }
30
- }
31
- },
32
- emits: ["selectLegend"],
33
- setup(ke, { expose: Ce, emit: we }) {
34
- const T = ke;
35
- De((t) => ({
36
- "1d948788": t.tdo
37
- }));
38
- const { vue_ui_vertical_bar: Te } = Ee(), U = f(() => !!T.dataset && T.dataset.length), N = h(Ge()), Ne = h(null), W = h(!1), j = h(""), X = h(0), Le = h(null), le = h(0), F = h(null), ae = h(null), Y = h(null), e = f(() => {
39
- const t = xe({
40
- userConfig: T.config,
41
- defaultConfig: Te
42
- });
43
- return t.theme ? {
44
- ...xe({
45
- userConfig: He.vue_ui_vertical_bar[t.theme] || T.config,
46
- defaultConfig: t
47
- }),
48
- customPalette: We[t.theme] || V
49
- } : t;
50
- }), { isPrinting: oe, isImaging: ne, generatePdf: ue, generateImage: re } = ot({
51
- elementId: `vue-ui-vertical-bar_${N.value}`,
52
- fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
53
- }), se = f(() => je(e.value.customPalette)), ie = h(null), de = h(!1), Pe = f(() => e.value.table.responsiveBreakpoint), A = h(null);
54
- Re(() => {
55
- if (_e(T.dataset) && Z({
56
- componentName: "VueUiVerticalBar",
57
- type: "dataset"
58
- }), X.value = T.dataset.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, a) => t + a, 0), Ve(), e.value.responsive) {
59
- const t = tt(() => {
60
- const { width: a, height: l } = lt({
61
- chart: F.value,
62
- title: e.value.style.chart.title.text ? ae.value : null,
63
- legend: e.value.style.chart.legend.show ? Y.value : null
64
- });
65
- he.value = a, v.value = l / X.value - g.value * 2;
66
- });
67
- A.value = new ResizeObserver(t), A.value.observe(F.value.parentNode);
68
- }
69
- }), Me(() => {
70
- A.value && A.value.disconnect();
71
- });
72
- function Ve() {
73
- new ResizeObserver((a) => {
74
- a.forEach((l) => {
75
- de.value = l.contentRect.width < Pe.value;
76
- });
77
- }).observe(ie.value);
78
- }
79
- const $ = h({
80
- showTable: e.value.table.show,
81
- sortDesc: e.value.style.chart.layout.bars.sort === "desc",
82
- showTooltip: e.value.style.chart.tooltip.show
83
- }), ce = f(() => $.value.sortDesc), L = f(() => (T.dataset.forEach((t, a) => {
84
- t.children && (_e(t.children) ? Z({
85
- componentName: "VueUiVerticalBar",
86
- type: "datasetAttributeEmpty",
87
- property: `children (index ${a})`
88
- }) : t.children.forEach((l, n) => {
89
- [null, void 0].includes(l.name) && Z({
90
- componentName: "VueUiVerticalBar",
91
- type: "datasetSerieAttribute",
92
- property: "name",
93
- key: "children",
94
- index: n
95
- });
96
- }));
97
- }), T.dataset.map((t, a) => {
98
- const l = `vertical_parent_${a}_${N.value}`, n = !!t.children && t.children.length > 0;
99
- return ![null, void 0].includes(t.value) && t.value < 0 && console.warn(`VueUiVerticalBar is not designed to graph negative values. ${t.name || "serie at index" + a} has the following value: ${t.value}`), {
100
- ...t,
101
- id: l,
102
- shape: "square",
103
- opacity: w.value.includes(l) ? 0.5 : 1,
104
- value: n ? t.children.map((r) => r.value || 0).reduce((r, s) => r + s, 0) : t.value || 0,
105
- hasChildren: n,
106
- isChild: !1,
107
- segregate: () => z(l),
108
- isSegregated: w.value.includes(l),
109
- color: ee(t.color) || se.value[a] || V[a] || V[a % V.length],
110
- children: !t.children || !t.children.length ? [] : t.children.toSorted((r, s) => ce.value ? s.value - r.value : r.value - s.value).map((r, s) => (![null, void 0].includes(r.value) && r.value < 0 && console.warn(`VueUiVerticalBar is not designed to graph negative values. ${r.name + " child serie" || "child serie at index" + a + ", " + s} has the following value: ${r.value}`), {
111
- ...r,
112
- value: r.value || 0,
113
- isChild: !0,
114
- parentId: l,
115
- parentName: t.name,
116
- parentValue: t.value,
117
- id: `vertical_child_${a}_${s}_${N.value}`,
118
- childIndex: s,
119
- color: ee(r.color) || ee(t.color) || se.value[a] || V[a] || V[a % V.length]
120
- })).map((r, s) => ({
121
- ...r,
122
- isFirstChild: s === 0,
123
- isLastChild: s === t.children.length - 1
124
- }))
125
- };
126
- }).toSorted((t, a) => ce.value ? a.value - t.value : t.value - a.value))), ve = f(() => ({
127
- cy: "vertical-bar-div-legend",
128
- backgroundColor: e.value.style.chart.legend.backgroundColor,
129
- color: e.value.style.chart.legend.color,
130
- fontSize: e.value.style.chart.legend.fontSize,
131
- paddingBottom: 12,
132
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
133
- })), v = h(e.value.style.chart.layout.bars.height), g = h(e.value.style.chart.layout.bars.gap), Se = f(() => (v.value + g.value) * X.value), he = h(512), p = f(() => ({
134
- width: he.value,
135
- height: Se.value,
136
- padding: {
137
- top: 12,
138
- left: 128 + e.value.style.chart.layout.bars.offsetX,
139
- right: 64 + e.value.style.chart.layout.bars.paddingRight,
140
- bottom: 12
141
- }
142
- })), y = f(() => ({
143
- fullHeight: p.value.padding.top + p.value.padding.bottom + p.value.height,
144
- top: p.value.padding.top,
145
- left: p.value.padding.left,
146
- right: p.value.width - p.value.padding.right,
147
- bottom: p.value.padding.top + p.value.height,
148
- width: p.value.width - (p.value.padding.left + p.value.padding.right)
149
- }));
150
- function q() {
151
- X.value = P.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, a) => t + a, 0);
152
- }
153
- const w = h([]);
154
- function z(t) {
155
- w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t), q(), we("selectLegend", P.value);
156
- }
157
- const P = f(() => L.value.filter((t) => !w.value.includes(t.id))), x = f(() => P.value.map((t) => t.value).reduce((t, a) => t + a));
158
- function pe(t, a = !1, l = 0) {
159
- return a ? (t / x.value * 100).toFixed(l) + "%" : t / x.value;
160
- }
161
- const B = f(() => P.value.flatMap((t) => t.hasChildren ? t.children : t)), Fe = f(() => Math.max(...P.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((a) => a.value)) : t.value)));
162
- function I(t) {
163
- const a = t / Fe.value;
164
- return y.value.width * a;
165
- }
166
- function ze(t) {
167
- return I(t) + y.value.left;
168
- }
169
- function E(t, a) {
170
- const l = P.value.find((s) => s.id === t.parentId), n = y.value.top + (g.value + v.value) * a, r = l.children.length * (g.value + v.value);
171
- return {
172
- y: n + r / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
173
- name: l.name,
174
- value: [void 0, NaN, null].includes(l.value) ? "" : l.value.toFixed(e.value.style.chart.layout.bars.dataLabels.value.roundingValue),
175
- percentageToTotal: isNaN(l.value / x.value) ? "" : pe(l.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)
176
- };
177
- }
178
- function Be() {
179
- return P.value;
180
- }
181
- const K = h(null), J = h(null);
182
- function Ie(t, a) {
183
- J.value = {
184
- datapoint: t,
185
- seriesIndex: a,
186
- series: L.value,
187
- config: e.value
188
- }, W.value = !0, K.value = t.id;
189
- let l = "";
190
- const n = t.isChild ? t.parentName : t.name, r = t.isChild ? t.name : "", s = e.value.style.chart.tooltip.customFormat;
191
- Ke(s) && Je(() => s({
192
- datapoint: t,
193
- series: L.value,
194
- config: e.value,
195
- seriesIndex: a
196
- })) ? j.value = s({
197
- datapoint: t,
198
- series: L.value,
199
- config: e.value,
200
- seriesIndex: a
201
- }) : (l += `<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;">
202
- <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> ${n}</div>
203
- ${r ? `<div>${r}</div>` : ""}
204
- </div>`, e.value.style.chart.tooltip.showValue && (l += `<div>${e.value.translations.value}: <b>${e.value.style.chart.tooltip.prefix}${[void 0, NaN, null].includes(t.value) ? "-" : t.value.toFixed(e.value.style.chart.tooltip.roundingValue)}${e.value.style.chart.tooltip.suffix}</b></div>`), e.value.style.chart.tooltip.showPercentage && (l += `<div>${e.value.translations.percentageToTotal} : <b>${isNaN(t.value / x.value) ? "-" : `${(t.value / x.value * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`, t.isChild && (l += `<div>${e.value.translations.percentageToSerie}: <b>${isNaN(t.value / t.parentValue) ? "-" : `${(t.value / t.parentValue * 100).toFixed(e.value.style.chart.tooltip.roundingPercentage)}`}%</b></div>`)), j.value = `<div style="text-align:left">${l}</div>`);
205
- }
206
- function ge(t) {
207
- if (isNaN(t) || !e.value.style.chart.layout.bars.dataLabels.value.show)
208
- return "";
209
- const a = Qe({
210
- p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
211
- v: t,
212
- s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
213
- r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
214
- }), l = `(${pe(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
215
- return `${a}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${l}` : ""}`;
216
- }
217
- const k = f(() => {
218
- const t = [
219
- e.value.translations.parentName,
220
- e.value.translations.value,
221
- e.value.translations.percentageToTotal,
222
- e.value.translations.childName,
223
- e.value.translations.value,
224
- e.value.translations.percentageToSerie,
225
- e.value.translations.percentageToTotal
226
- ], a = B.value.map((l) => l.isChild ? l.isFirstChild ? {
227
- color: l.color,
228
- parentName: l.parentName,
229
- parentValue: l.parentValue,
230
- percentageToTotal: l.parentValue / x.value,
231
- childName: l.name,
232
- childValue: l.value,
233
- childPercentageToParent: l.value / l.parentValue,
234
- childPercentageToTotal: l.value / x.value
235
- } : {
236
- color: "",
237
- parentName: "",
238
- parentValue: "",
239
- percentageToTotal: "",
240
- childName: l.name,
241
- childValue: l.value,
242
- childPercentageToParent: l.value / l.parentValue,
243
- childPercentageToTotal: l.value / x.value
244
- } : {
245
- color: l.color,
246
- parentName: l.name,
247
- parentValue: l.value,
248
- percentageToTotal: l.value / x.value,
249
- childName: "",
250
- childValue: "",
251
- childPercentageToParent: "",
252
- childPercentageToTotal: ""
253
- });
254
- return { head: t, body: a };
255
- });
256
- function ye() {
257
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = k.value.head, l = k.value.body.map((s) => [
258
- s.parentName,
259
- s.parentValue,
260
- s.percentageToTotal,
261
- s.childName,
262
- s.childValue,
263
- s.childPercentageToParent,
264
- s.childPercentageToTotal
265
- ]), n = t.concat([a]).concat(l), r = Ze(n);
266
- et({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
267
- }
268
- const O = h(!1);
269
- function Oe(t) {
270
- O.value = t, le.value += 1;
271
- }
272
- function fe() {
273
- $.value.showTable = !$.value.showTable;
274
- }
275
- function be() {
276
- $.value.sortDesc = !$.value.sortDesc, q();
277
- }
278
- function me() {
279
- $.value.showTooltip = !$.value.showTooltip;
280
- }
281
- return Ce({
282
- getData: Be,
283
- recalculateHeight: q,
284
- generatePdf: ue,
285
- generateCsv: ye,
286
- generateImage: re,
287
- toggleTable: fe,
288
- toggleSort: be,
289
- toggleTooltip: me
290
- }), (t, a) => (i(), c("div", {
291
- class: S(`vue-ui-vertical-bar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
292
- ref_key: "verticalBarChart",
293
- ref: F,
294
- id: `vue-ui-vertical-bar_${N.value}`,
295
- style: d(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
296
- }, [
297
- e.value.style.chart.title.text ? (i(), c("div", {
298
- key: 0,
299
- ref_key: "chartTitle",
300
- ref: ae,
301
- style: d(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
302
- }, [
303
- D(at, {
304
- config: {
305
- title: {
306
- cy: "vertical-bar-div-title",
307
- ...e.value.style.chart.title
308
- },
309
- subtitle: {
310
- cy: "vertical-bar-div-subtitle",
311
- ...e.value.style.chart.title.subtitle
312
- }
313
- }
314
- }, null, 8, ["config"])
315
- ], 4)) : b("", !0),
316
- e.value.userOptions.show && U.value ? (i(), Q(nt, {
317
- ref_key: "details",
318
- ref: Ne,
319
- key: `user_options_${le.value}`,
320
- backgroundColor: e.value.style.chart.backgroundColor,
321
- color: e.value.style.chart.color,
322
- isImaging: C(ne),
323
- isPrinting: C(oe),
324
- uid: N.value,
325
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
326
- hasPdf: e.value.userOptions.buttons.pdf,
327
- hasImg: e.value.userOptions.buttons.img,
328
- hasXls: e.value.userOptions.buttons.csv,
329
- hasTable: e.value.userOptions.buttons.table,
330
- hasSort: e.value.userOptions.buttons.sort,
331
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
332
- isFullscreen: O.value,
333
- isTooltip: $.value.showTooltip,
334
- titles: { ...e.value.userOptions.buttonTitles },
335
- chartElement: F.value,
336
- onToggleFullscreen: Oe,
337
- onGeneratePdf: C(ue),
338
- onGenerateCsv: ye,
339
- onGenerateImage: C(re),
340
- onToggleTable: fe,
341
- onToggleSort: be,
342
- onToggleTooltip: me
343
- }, Ue({ _: 2 }, [
344
- t.$slots.optionTooltip ? {
345
- name: "optionTooltip",
346
- fn: m(() => [
347
- _(t.$slots, "optionTooltip", {}, void 0, !0)
348
- ]),
349
- key: "0"
350
- } : void 0,
351
- t.$slots.optionPdf ? {
352
- name: "optionPdf",
353
- fn: m(() => [
354
- _(t.$slots, "optionPdf", {}, void 0, !0)
355
- ]),
356
- key: "1"
357
- } : void 0,
358
- t.$slots.optionCsv ? {
359
- name: "optionCsv",
360
- fn: m(() => [
361
- _(t.$slots, "optionCsv", {}, void 0, !0)
362
- ]),
363
- key: "2"
364
- } : void 0,
365
- t.$slots.optionImg ? {
366
- name: "optionImg",
367
- fn: m(() => [
368
- _(t.$slots, "optionImg", {}, void 0, !0)
369
- ]),
370
- key: "3"
371
- } : void 0,
372
- t.$slots.optionTable ? {
373
- name: "optionTable",
374
- fn: m(() => [
375
- _(t.$slots, "optionTable", {}, void 0, !0)
376
- ]),
377
- key: "4"
378
- } : void 0,
379
- t.$slots.optionLabels ? {
380
- name: "optionLabels",
381
- fn: m(() => [
382
- _(t.$slots, "optionLabels", {}, void 0, !0)
383
- ]),
384
- key: "5"
385
- } : void 0,
386
- t.$slots.optionSort ? {
387
- name: "optionSort",
388
- fn: m(() => [
389
- _(t.$slots, "optionSort", {}, void 0, !0)
390
- ]),
391
- key: "6"
392
- } : void 0,
393
- t.$slots.optionFullscreen ? {
394
- name: "optionFullscreen",
395
- fn: m(({ toggleFullscreen: l, isFullscreen: n }) => [
396
- _(t.$slots, "optionFullscreen", G(H({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
397
- ]),
398
- key: "7"
399
- } : void 0
400
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
401
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (i(), c("div", {
402
- key: 2,
403
- ref_key: "chartLegend",
404
- ref: Y
405
- }, [
406
- D($e, {
407
- legendSet: L.value,
408
- config: ve.value,
409
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => z(l.id))
410
- }, {
411
- item: m(({ legend: l }) => [
412
- o("div", {
413
- "data-cy-legend-item": "",
414
- onClick: (n) => z(l.id),
415
- style: d(`opacity:${w.value.includes(l.id) ? 0.5 : 1}`)
416
- }, u(l.name) + ": " + u(e.value.style.chart.legend.prefix) + u(l.value.toFixed(e.value.style.chart.legend.roundingValue)) + u(e.value.style.chart.legend.suffix), 13, vt)
417
- ]),
418
- _: 1
419
- }, 8, ["legendSet", "config"])
420
- ], 512)) : b("", !0),
421
- U.value ? (i(), c("svg", {
422
- key: 3,
423
- xmlns: C(Ye),
424
- class: S({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
425
- viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${y.value.fullHeight <= 0 ? 10 : y.value.fullHeight}`,
426
- style: d(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
427
- }, [
428
- (i(!0), c(R, null, M(B.value, (l, n) => (i(), c("linearGradient", {
429
- x1: "0%",
430
- y1: "0%",
431
- x2: "100%",
432
- y2: "0%",
433
- id: `vertical_bar_gradient_${N.value}_${n}`
434
- }, [
435
- o("stop", {
436
- offset: "0%",
437
- "stop-color": l.color
438
- }, null, 8, gt),
439
- o("stop", {
440
- offset: "100%",
441
- "stop-color": `${C(qe)(l.color, 0.03)}${C(te)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
442
- }, null, 8, yt)
443
- ], 8, pt))), 256)),
444
- (i(!0), c(R, null, M(B.value, (l, n) => (i(), c("g", null, [
445
- o("rect", {
446
- x: y.value.left,
447
- y: y.value.top + (g.value + v.value) * n,
448
- width: I(l.value) <= 0 ? 1e-4 : I(l.value),
449
- height: v.value <= 0 ? 1e-4 : v.value,
450
- fill: e.value.style.chart.layout.bars.underlayerColor,
451
- rx: e.value.style.chart.layout.bars.borderRadius,
452
- class: S({ animated: e.value.useCssAnimation })
453
- }, null, 10, ft)
454
- ]))), 256)),
455
- (i(!0), c(R, null, M(B.value, (l, n) => (i(), c("g", null, [
456
- o("rect", {
457
- x: y.value.left,
458
- y: y.value.top + (g.value + v.value) * n,
459
- width: I(l.value) <= 0 ? 1e-4 : I(l.value),
460
- height: v.value <= 0 ? 1e-4 : v.value,
461
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${N.value}_${n})` : `${l.color}${C(te)[e.value.style.chart.layout.bars.fillOpacity]}`,
462
- rx: e.value.style.chart.layout.bars.borderRadius,
463
- stroke: e.value.style.chart.layout.bars.useStroke ? l.color : "none",
464
- "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
465
- class: S({ animated: e.value.useCssAnimation })
466
- }, null, 10, bt),
467
- (!l.isChild || l.isLastChild) && e.value.style.chart.layout.separators.show && n !== B.value.length - 1 ? (i(), c("line", {
468
- key: 0,
469
- x1: 0,
470
- x2: y.value.left,
471
- y1: v.value + g.value / 2 + y.value.top + (g.value + v.value) * n,
472
- y2: v.value + g.value / 2 + y.value.top + (g.value + v.value) * n,
473
- stroke: e.value.style.chart.layout.separators.color,
474
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
475
- "stroke-linecap": "round"
476
- }, null, 8, mt)) : b("", !0),
477
- o("text", {
478
- x: ze(l.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
479
- y: y.value.top + (g.value + v.value) * n + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
480
- "text-anchor": "start",
481
- "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
482
- fill: e.value.style.chart.layout.bars.dataLabels.color,
483
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
484
- }, u(ge(l.value)), 9, _t),
485
- (l.isChild || !l.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (i(), c("text", {
486
- key: 1,
487
- "text-anchor": "end",
488
- x: y.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
489
- y: y.value.top + (g.value + v.value) * n + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
490
- "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
491
- fill: e.value.style.chart.layout.bars.nameLabels.color,
492
- "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
493
- }, u(l.name), 9, $t)) : b("", !0),
494
- l.isChild && l.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), c("text", {
495
- key: 2,
496
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
497
- y: E(l, n).y,
498
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
499
- fill: e.value.style.chart.layout.bars.parentLabels.color,
500
- "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
501
- "text-anchor": "start"
502
- }, u(E(l, n).name), 9, xt)) : b("", !0),
503
- l.isChild && l.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), c("text", {
504
- key: 3,
505
- x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
506
- y: E(l, n).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
507
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
508
- fill: e.value.style.chart.layout.bars.parentLabels.color,
509
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
510
- "text-anchor": "start"
511
- }, u(ge(E(l, n).value)), 9, kt)) : b("", !0),
512
- o("rect", {
513
- "data-cy-trap": "",
514
- x: 0,
515
- y: y.value.top + (g.value + v.value) * n - g.value / 2,
516
- width: p.value.width <= 0 ? 1e-4 : p.value.width,
517
- height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
518
- fill: K.value === l.id ? `${e.value.style.chart.layout.highlighter.color}${C(te)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
519
- onMouseenter: (r) => Ie(l, n),
520
- onMouseleave: a[1] || (a[1] = (r) => {
521
- Le.value = null, W.value = !1, K.value = null;
522
- })
523
- }, null, 40, Ct)
524
- ]))), 256)),
525
- _(t.$slots, "svg", { svg: p.value }, void 0, !0)
526
- ], 14, ht)) : b("", !0),
527
- t.$slots.watermark ? (i(), c("div", wt, [
528
- _(t.$slots, "watermark", G(H({ isPrinting: C(oe) || C(ne) })), void 0, !0)
529
- ])) : b("", !0),
530
- U.value ? b("", !0) : (i(), Q(rt, {
531
- key: 5,
532
- config: {
533
- type: "verticalBar",
534
- style: {
535
- backgroundColor: e.value.style.chart.backgroundColor,
536
- verticalBar: {
537
- axis: {
538
- color: "#CCCCCC"
539
- },
540
- color: "#CCCCCC"
541
- }
542
- }
543
- }
544
- }, null, 8, ["config"])),
545
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (i(), c("div", {
546
- key: 6,
547
- ref_key: "chartLegend",
548
- ref: Y
549
- }, [
550
- D($e, {
551
- legendSet: L.value,
552
- config: ve.value,
553
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => z(l.id))
554
- }, {
555
- item: m(({ legend: l }) => [
556
- o("div", {
557
- onClick: (n) => z(l.id),
558
- style: d(`opacity:${w.value.includes(l.id) ? 0.5 : 1}`)
559
- }, u(l.name) + " : " + u(e.value.style.chart.legend.prefix) + u(l.value.toFixed(e.value.style.chart.legend.roundingValue)) + u(e.value.style.chart.legend.suffix), 13, Tt)
560
- ]),
561
- _: 1
562
- }, 8, ["legendSet", "config"])
563
- ], 512)) : b("", !0),
564
- _(t.$slots, "legend", { legend: L.value }, void 0, !0),
565
- D(ut, {
566
- show: $.value.showTooltip && W.value && w.value.length < T.dataset.length,
567
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
568
- color: e.value.style.chart.tooltip.color,
569
- borderRadius: e.value.style.chart.tooltip.borderRadius,
570
- borderColor: e.value.style.chart.tooltip.borderColor,
571
- borderWidth: e.value.style.chart.tooltip.borderWidth,
572
- fontSize: e.value.style.chart.tooltip.fontSize,
573
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
574
- position: e.value.style.chart.tooltip.position,
575
- offsetY: e.value.style.chart.tooltip.offsetY,
576
- parent: F.value,
577
- content: j.value,
578
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
579
- }, {
580
- "tooltip-before": m(() => [
581
- _(t.$slots, "tooltip-before", G(H({ ...J.value })), void 0, !0)
582
- ]),
583
- "tooltip-after": m(() => [
584
- _(t.$slots, "tooltip-after", G(H({ ...J.value })), void 0, !0)
585
- ]),
586
- _: 3
587
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
588
- U.value ? (i(), Q(it, {
589
- key: 7,
590
- hideDetails: "",
591
- config: {
592
- open: $.value.showTable,
593
- maxHeight: 1e4,
594
- body: {
595
- backgroundColor: e.value.style.chart.backgroundColor,
596
- color: e.value.style.chart.color
597
- },
598
- head: {
599
- backgroundColor: e.value.style.chart.backgroundColor,
600
- color: e.value.style.chart.color
601
- }
602
- }
603
- }, {
604
- content: m(() => [
605
- o("div", {
606
- ref_key: "tableContainer",
607
- ref: ie,
608
- class: "vue-ui-vertical-bar-table"
609
- }, [
610
- o("div", Nt, [
611
- o("div", {
612
- role: "button",
613
- tabindex: "0",
614
- style: d(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
615
- onClick: a[3] || (a[3] = (l) => $.value.showTable = !1),
616
- onKeypress: a[4] || (a[4] = Xe((l) => $.value.showTable = !1, ["enter"]))
617
- }, [
618
- D(st, {
619
- name: "close",
620
- stroke: e.value.table.th.color,
621
- "stroke-width": 2
622
- }, null, 8, ["stroke"])
623
- ], 36),
624
- o("div", {
625
- style: { width: "100%", "container-type": "inline-size" },
626
- class: S({ "vue-ui-responsive": de.value })
627
- }, [
628
- o("table", Lt, [
629
- o("caption", {
630
- style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
631
- class: "vue-ui-data-table__caption"
632
- }, [
633
- Ae(u(e.value.style.chart.title.text) + " ", 1),
634
- e.value.style.chart.title.subtitle.text ? (i(), c("span", Pt, u(e.value.style.chart.title.subtitle.text), 1)) : b("", !0)
635
- ], 4),
636
- o("thead", null, [
637
- o("tr", {
638
- role: "row",
639
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
640
- }, [
641
- (i(!0), c(R, null, M(k.value.head, (l) => (i(), c("th", {
642
- style: d(`outline:${e.value.table.th.outline}`)
643
- }, [
644
- o("div", Vt, u(l), 1)
645
- ], 4))), 256))
646
- ], 4),
647
- o("tr", null, [
648
- o("th", {
649
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
650
- }, null, 4),
651
- o("th", {
652
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
653
- }, "∑ " + u(e.value.table.td.prefix) + u(isNaN(x.value) ? "" : x.value.toFixed(e.value.table.td.roundingValue)) + u(e.value.table.td.suffix), 5),
654
- o("th", {
655
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
656
- }, "100%", 4),
657
- o("th", {
658
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
659
- }, null, 4),
660
- o("th", {
661
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
662
- }, null, 4),
663
- o("th", {
664
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
665
- }, null, 4),
666
- o("th", {
667
- style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
668
- }, null, 4)
669
- ])
670
- ]),
671
- o("tbody", null, [
672
- (i(!0), c(R, null, M(k.value.body, (l, n) => (i(), c("tr", {
673
- class: S({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 }),
674
- style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
675
- }, [
676
- o("td", {
677
- class: "vue-ui-data-table__tbody__td",
678
- style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
679
- "data-cell": k.value.head[0] ?? ""
680
- }, [
681
- o("div", Ft, [
682
- l.color ? (i(), c("span", {
683
- key: 0,
684
- style: d(`color:${l.color};margin-right:3px`)
685
- }, "⬤", 4)) : b("", !0),
686
- o("span", null, u(l.parentName), 1)
687
- ])
688
- ], 12, St),
689
- o("td", {
690
- class: "vue-ui-data-table__tbody__td",
691
- style: d(`outline:${e.value.table.td.outline}`),
692
- "data-cell": k.value.head[1] ?? ""
693
- }, [
694
- o("div", Bt, u(e.value.table.td.prefix) + u(["", NaN, void 0].includes(l.parentValue) ? "" : l.parentValue.toFixed(e.value.table.td.roundingValue)) + u(e.value.table.td.suffix), 1)
695
- ], 12, zt),
696
- o("td", {
697
- class: "vue-ui-data-table__tbody__td",
698
- style: d(`outline:${e.value.table.td.outline}`),
699
- "data-cell": k.value.head[2] ?? ""
700
- }, [
701
- o("div", Ot, u(["", NaN, void 0].includes(l.percentageToTotal) ? "" : `${(l.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
702
- ], 12, It),
703
- o("td", {
704
- class: "vue-ui-data-table__tbody__td",
705
- style: d(`outline:${e.value.table.td.outline}`),
706
- "data-cell": k.value.head[3] ?? ""
707
- }, [
708
- o("div", Rt, u(l.childName), 1)
709
- ], 12, Dt),
710
- o("td", {
711
- class: "vue-ui-data-table__tbody__td",
712
- style: d(`outline:${e.value.table.td.outline}`),
713
- "data-cell": k.value.head[4] ?? ""
714
- }, [
715
- o("div", Ut, u(e.value.table.td.prefix) + u(["", NaN, void 0].includes(l.childValue) ? "" : l.childValue.toFixed(e.value.table.td.roundingValue)) + u(e.value.table.td.suffix), 1)
716
- ], 12, Mt),
717
- o("td", {
718
- class: "vue-ui-data-table__tbody__td",
719
- style: d(`outline:${e.value.table.td.outline}`),
720
- "data-cell": k.value.head[5] ?? ""
721
- }, [
722
- o("div", At, u(["", NaN, void 0].includes(l.childPercentageToParent) ? "" : `${(l.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
723
- ], 12, Xt),
724
- o("td", {
725
- class: "vue-ui-data-table__tbody__td",
726
- style: d(`outline:${e.value.table.td.outline}`),
727
- "data-cell": k.value.head[6] ?? ""
728
- }, [
729
- o("div", Gt, u(["", NaN, void 0].includes(l.childPercentageToTotal) ? "" : `${(l.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
730
- ], 12, Et)
731
- ], 6))), 256))
732
- ])
733
- ])
734
- ], 2)
735
- ])
736
- ], 512)
737
- ]),
738
- _: 1
739
- }, 8, ["config"])) : b("", !0)
740
- ], 14, ct));
741
- }
742
- }, ol = /* @__PURE__ */ dt(Ht, [["__scopeId", "data-v-c1e5caa2"]]);
743
- export {
744
- ol as default
745
- };