vue-data-ui 2.3.31 → 2.3.32

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 (144) hide show
  1. package/dist/{Arrow-CiUBvBlb.cjs → Arrow-C46rqWDg.cjs} +1 -1
  2. package/dist/{Arrow-CiAaagmx.js → Arrow-f_7ZlBit.js} +1 -1
  3. package/dist/{BaseIcon-BHjAlRHU.js → BaseIcon-CejyHIZM.js} +1 -1
  4. package/dist/{BaseIcon-D5tyFpQV.cjs → BaseIcon-ChS1Bl3C.cjs} +1 -1
  5. package/dist/{DataTable-ByKKUsaO.cjs → DataTable-BShm3pg0.cjs} +1 -1
  6. package/dist/{DataTable-DqPGv4Ms.js → DataTable-Rb6wEqzD.js} +2 -2
  7. package/dist/{Legend-BfwTJ9M-.cjs → Legend-DUjHDr5A.cjs} +1 -1
  8. package/dist/{Legend-3WC5-bUm.js → Legend-O1l-qwSU.js} +1 -1
  9. package/dist/{Shape-CAjMa3HT.cjs → Shape-DrbNfL39.cjs} +1 -1
  10. package/dist/{Shape-C4kR-mjQ.js → Shape-jOLEEcCT.js} +1 -1
  11. package/dist/{Slicer-CPKkdrpR.js → Slicer-BtErYU-m.js} +1 -1
  12. package/dist/{Slicer-BScyt_Vx.cjs → Slicer-DMZ03tYD.cjs} +1 -1
  13. package/dist/{Title-CKSMMGjd.js → Title-B9DAMnKW.js} +1 -1
  14. package/dist/{Title-CNJKmNgA.cjs → Title-C6kjiyFi.cjs} +1 -1
  15. package/dist/{Tooltip-C9Q2lE3W.js → Tooltip-B7LZQUXr.js} +1 -1
  16. package/dist/{Tooltip-BIHm4byQ.cjs → Tooltip-Dc_Vk9k7.cjs} +1 -1
  17. package/dist/{index-DQvb5Vgo.cjs → index-D5gus_lg.cjs} +1 -1
  18. package/dist/{index-BJ6NXF-z.js → index-DyzpYx72.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-AR9tJrsp.js → useNestedProp-DGjp6yqE.js} +1 -1
  21. package/dist/{useNestedProp-D1F0KM3m.cjs → useNestedProp-dfy-beYA.cjs} +1 -1
  22. package/dist/{usePrinter-C4oaA82s.cjs → usePrinter-D9HscgWK.cjs} +1 -1
  23. package/dist/{usePrinter-BUIam1ao.js → usePrinter-_HAcfIJq.js} +1 -1
  24. package/dist/{vue-data-ui-DfNedsHE.js → vue-data-ui-BYwT-L-y.js} +57 -57
  25. package/dist/{vue-data-ui-Ch_eQQZR.cjs → vue-data-ui-w642Au96.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-cav5cdhf.js → vue-ui-3d-bar-_idrDcTt.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-BiF2mAOR.cjs → vue-ui-3d-bar-uIw4YyRe.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-GCDGaaYO.js → vue-ui-accordion-CQLN2WYC.js} +3 -3
  31. package/dist/{vue-ui-accordion-D5-giD3x.cjs → vue-ui-accordion-QESF0r0U.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-CCDfdeJE.js → vue-ui-age-pyramid-Bj_3AooT.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DA-7y6nN.cjs → vue-ui-age-pyramid-BqIkETbo.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-BKzaeqJR.cjs → vue-ui-annotator-CLCPtXoo.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-B_vPtBm9.js → vue-ui-annotator-D0iuqAb9.js} +1 -1
  36. package/dist/{vue-ui-candlestick-Cgg58gem.cjs → vue-ui-candlestick-BBnC2umf.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-CeZC3-9i.js → vue-ui-candlestick-D8AnaGwt.js} +9 -9
  38. package/dist/{vue-ui-carousel-table-e0zW3fCz.js → vue-ui-carousel-table-CV4YRYfq.js} +4 -4
  39. package/dist/{vue-ui-carousel-table-ySFFobPq.cjs → vue-ui-carousel-table-DJtlOVqJ.cjs} +1 -1
  40. package/dist/{vue-ui-chestnut-Cxw7FjDt.cjs → vue-ui-chestnut-CRkC7aeK.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-ClIE26od.js → vue-ui-chestnut-DxRF0eGJ.js} +6 -6
  42. package/dist/{vue-ui-cursor-5ilFNncb.js → vue-ui-cursor-7KMholmU.js} +2 -2
  43. package/dist/{vue-ui-cursor-DyIiGBho.cjs → vue-ui-cursor-DxDaK5kl.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-CXrmy76c.js → vue-ui-dashboard-BMEkgCKF.js} +2 -2
  45. package/dist/{vue-ui-dashboard-D-JyU495.cjs → vue-ui-dashboard-CjmpoQWU.cjs} +1 -1
  46. package/dist/{vue-ui-digits-B30HSHeA.cjs → vue-ui-digits-KxGiWJBe.cjs} +1 -1
  47. package/dist/{vue-ui-digits-BEZa60-l.js → vue-ui-digits-slk9W4ek.js} +2 -2
  48. package/dist/{vue-ui-donut-GPrnPVJq.js → vue-ui-donut-CB3SfpSC.js} +9 -9
  49. package/dist/{vue-ui-donut-0jWL1Wzc.cjs → vue-ui-donut-CtkZaRur.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-D0LbULdi.js → vue-ui-donut-evolution-292a6FEA.js} +9 -9
  51. package/dist/{vue-ui-donut-evolution-hoHN3gzZ.cjs → vue-ui-donut-evolution-CptrmAtk.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-67OcxNA7.js → vue-ui-dumbbell-BQrhfMqP.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-Cb87RX2P.cjs → vue-ui-dumbbell-Dx_-QB5p.cjs} +1 -1
  54. package/dist/{vue-ui-flow-DPVIb1Kj.cjs → vue-ui-flow-C12EMKoJ.cjs} +1 -1
  55. package/dist/{vue-ui-flow-Vi3PWSP4.js → vue-ui-flow-CcCeNf_k.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BgO0ZTYY.js → vue-ui-galaxy-BAIRiq85.js} +9 -9
  57. package/dist/{vue-ui-galaxy-B5oGFG97.cjs → vue-ui-galaxy-CLVcP5Qh.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-qe4o6Sjl.cjs → vue-ui-gauge-eMLSa5k6.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-B0w9GJOy.js → vue-ui-gauge-uFn_PRBN.js} +5 -5
  60. package/dist/{vue-ui-gizmo-BVoL7TEm.cjs → vue-ui-gizmo-C5hlmv34.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-BXN_MwN4.js → vue-ui-gizmo-CkmuI8hn.js} +2 -2
  62. package/dist/{vue-ui-heatmap-BHNaaYJl.js → vue-ui-heatmap-C3oS64to.js} +8 -8
  63. package/dist/{vue-ui-heatmap-8TBiusXd.cjs → vue-ui-heatmap-mnnjTuAS.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-DTu-z6sj.js → vue-ui-kpi-CMn14HGk.js} +2 -2
  65. package/dist/{vue-ui-kpi-BeGFsXxC.cjs → vue-ui-kpi-CpFr6mya.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-BHX2lzqL.js → vue-ui-mini-loader-CxhRP0o3.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-D1vhrkOt.cjs → vue-ui-mini-loader-DAE2b1aK.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-Bow2JLXO.cjs → vue-ui-molecule-BMtrEZXu.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-DLbPBobL.js → vue-ui-molecule-Chxy44E1.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-C0-KPgNg.js → vue-ui-mood-radar-B0944MVq.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-CqosXQQX.cjs → vue-ui-mood-radar-D70upaRv.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-C2NpczwE.cjs → vue-ui-nested-donuts-C8U02J9G.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-BFa-oFEx.js → vue-ui-nested-donuts-Ct26fYcZ.js} +9 -9
  74. package/dist/{vue-ui-onion-BexMkS4E.js → vue-ui-onion-BuAA53Z4.js} +9 -9
  75. package/dist/{vue-ui-onion-DwdVlm0O.cjs → vue-ui-onion-D7jdX-jE.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-BALCmQ5Z.js → vue-ui-parallel-coordinate-plot-DR7GBD64.js} +10 -10
  77. package/dist/{vue-ui-parallel-coordinate-plot-BKKl2c7B.cjs → vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs} +1 -1
  78. package/dist/{vue-ui-quadrant-CTrV6HgE.js → vue-ui-quadrant-D6XUNhwO.js} +10 -10
  79. package/dist/{vue-ui-quadrant-BPoDyM8A.cjs → vue-ui-quadrant-DjY4UFmX.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-BmMbY6SQ.js → vue-ui-quick-chart-CHWpjYVZ.js} +6 -6
  81. package/dist/{vue-ui-quick-chart-D4GFWcp7.cjs → vue-ui-quick-chart-a7twDc_t.cjs} +1 -1
  82. package/dist/{vue-ui-radar-7sSdEfcO.cjs → vue-ui-radar-BPH8c93c.cjs} +1 -1
  83. package/dist/{vue-ui-radar-Clfa-6Le.js → vue-ui-radar-w8--R-ur.js} +10 -10
  84. package/dist/{vue-ui-rating-Cs45C-53.cjs → vue-ui-rating-Dfk9Umrh.cjs} +1 -1
  85. package/dist/{vue-ui-rating-Ce8pPHCS.js → vue-ui-rating-DyAunqH4.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-DokQNUAI.js → vue-ui-relation-circle-BCCHpnpL.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-CuZjr_W8.cjs → vue-ui-relation-circle-COsMXD8M.cjs} +1 -1
  88. package/dist/{vue-ui-rings-Cd_5yc8m.js → vue-ui-rings-COm1RO2W.js} +9 -9
  89. package/dist/{vue-ui-rings-DlcUcstZ.cjs → vue-ui-rings-DrrT1cJn.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-Diih7alT.cjs → vue-ui-scatter-BwlMCoqN.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-CGUY8yGo.js → vue-ui-scatter-ZjouDP_2.js} +10 -10
  92. package/dist/{vue-ui-screenshot-CslXMiXF.js → vue-ui-screenshot-D0E4gBJg.js} +1 -1
  93. package/dist/{vue-ui-screenshot-C4CVXRBT.cjs → vue-ui-screenshot-DCAQ7EZR.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-DdAE1RlM.js → vue-ui-skeleton-HxNUOQim.js} +2 -2
  95. package/dist/{vue-ui-skeleton-6fxZMdtV.cjs → vue-ui-skeleton-lzhZVBa5.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-enpMVkNM.cjs → vue-ui-smiley-BNglGFZl.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-DTY5KiDB.js → vue-ui-smiley-xoGBumeP.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-UUDAPzlU.cjs → vue-ui-spark-trend-9z2-nnDf.cjs} +1 -1
  99. package/dist/{vue-ui-spark-trend-CNqfwxj9.js → vue-ui-spark-trend-BP91Hhbk.js} +4 -4
  100. package/dist/{vue-ui-sparkbar-D2M_uMU8.js → vue-ui-sparkbar-BV7lv1Mc.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-BEwF2ZHO.cjs → vue-ui-sparkbar-CBwEk4Sp.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-BQo2RtDp.js → vue-ui-sparkgauge-DAcXHJe3.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-DCXz-sVO.cjs → vue-ui-sparkgauge-mf9TWCfM.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-DnJyQqnN.cjs → vue-ui-sparkhistogram-BLG-wdNd.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-B83GykeL.js → vue-ui-sparkhistogram-Cw8kAsVJ.js} +4 -4
  106. package/dist/{vue-ui-sparkline-pblHktJQ.cjs → vue-ui-sparkline-BIxUq0a0.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-DDGgABlc.js → vue-ui-sparkline-DtMX5BBW.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-CA3xOex0.js → vue-ui-sparkstackbar-Boz0na6c.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-Btx1pr5F.cjs → vue-ui-sparkstackbar-CcNK8jkC.cjs} +1 -1
  110. package/dist/vue-ui-stackbar-DFK6zb17.cjs +6 -0
  111. package/dist/vue-ui-stackbar-Yj49aOwn.js +786 -0
  112. package/dist/{vue-ui-strip-plot-BaLXVgu4.cjs → vue-ui-strip-plot-BUpDy3ST.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-CX2aCzHG.js → vue-ui-strip-plot-CTVAbRx1.js} +9 -9
  114. package/dist/{vue-ui-table-sQc-MSR_.cjs → vue-ui-table-Bn0Sh_ll.cjs} +1 -1
  115. package/dist/{vue-ui-table-ClECxS2U.js → vue-ui-table-JW8Ddbcv.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-9BG7K8wL.cjs → vue-ui-table-heatmap-CBt2T6Fi.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-BL8cy2H3.js → vue-ui-table-heatmap-D_hgGOnV.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-Dptv8kIS.cjs → vue-ui-table-sparkline-CE15fs3Z.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-D0CF7Nwo.js → vue-ui-table-sparkline-lTi-b4a9.js} +5 -5
  120. package/dist/{vue-ui-thermometer-CDI0CdOu.cjs → vue-ui-thermometer-CnOa_c88.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BIWGfZUV.js → vue-ui-thermometer-DDaejskt.js} +5 -5
  122. package/dist/{vue-ui-timer-CLoIqr2Z.js → vue-ui-timer-BTkcHF3d.js} +4 -4
  123. package/dist/{vue-ui-timer-BUj9O2DA.cjs → vue-ui-timer-DFN5EbaX.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-BbTYG885.cjs → vue-ui-tiremarks-CHMhRw0X.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-QCCPssnC.js → vue-ui-tiremarks-CaCbMety.js} +5 -5
  126. package/dist/{vue-ui-treemap-D6YxChmu.cjs → vue-ui-treemap-BKRQnqlg.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-B1mD4WbM.js → vue-ui-treemap-CRGZXH3Z.js} +9 -9
  128. package/dist/vue-ui-vertical-bar-DppxsDym.cjs +4 -0
  129. package/dist/vue-ui-vertical-bar-OiHb4ABm.js +805 -0
  130. package/dist/{vue-ui-waffle-xeawcYID.cjs → vue-ui-waffle-CIoGXtZP.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-BMYYVoRM.js → vue-ui-waffle-ChcZm0_Q.js} +9 -9
  132. package/dist/{vue-ui-wheel-Sp4i7L2L.cjs → vue-ui-wheel-BVDHANbp.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-t6sMmDHN.js → vue-ui-wheel-DRgqt22e.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-BURJJFyJ.js → vue-ui-word-cloud-B2OjEeWK.js} +7 -7
  135. package/dist/{vue-ui-word-cloud-ohI8RK1_.cjs → vue-ui-word-cloud-BbAFa1J5.cjs} +1 -1
  136. package/dist/{vue-ui-xy-DcjiVoXA.cjs → vue-ui-xy-6Qnf5k-u.cjs} +1 -1
  137. package/dist/{vue-ui-xy-CruxD8qY.js → vue-ui-xy-Cf3D_9Em.js} +12 -12
  138. package/dist/{vue-ui-xy-canvas-B5pcGCvN.cjs → vue-ui-xy-canvas-ZvG2lyjk.cjs} +1 -1
  139. package/dist/{vue-ui-xy-canvas-D3KZ8rIM.js → vue-ui-xy-canvas-ihJeRvA1.js} +10 -10
  140. package/package.json +1 -1
  141. package/dist/vue-ui-stackbar-BhLDK1Rx.js +0 -765
  142. package/dist/vue-ui-stackbar-DPsuPIje.cjs +0 -15
  143. package/dist/vue-ui-vertical-bar-CIbzBp6T.cjs +0 -4
  144. package/dist/vue-ui-vertical-bar-Cq7SX6st.js +0 -792
@@ -0,0 +1,805 @@
1
+ import { useCssVars as Ee, computed as f, ref as p, onMounted as Ge, onBeforeUnmount as He, openBlock as i, createElementBlock as v, normalizeClass as B, normalizeStyle as d, createVNode as X, createCommentVNode as b, createBlock as ae, unref as m, createSlots as Ue, withCtx as _, renderSlot as x, normalizeProps as W, guardReactiveProps as j, createElementVNode as u, toDisplayString as c, Fragment as A, renderList as E, withKeys as We, createTextVNode as je } from "vue";
2
+ import { u as Ye, c as qe, t as Ke, a as Je, p as V, b as Qe, o as we, e as le, d as oe, i as Y, f as z, X as Ze, s as et, v as ue, w as tt, x as at, q as lt, r as ot } from "./index-DyzpYx72.js";
3
+ import { t as ut, u as nt } from "./useResponsive-NZB-WLRF.js";
4
+ import { _ as st } from "./Title-B9DAMnKW.js";
5
+ import { u as rt, U as it } from "./usePrinter-_HAcfIJq.js";
6
+ import { _ as dt } from "./Tooltip-B7LZQUXr.js";
7
+ import { L as Ce } from "./Legend-O1l-qwSU.js";
8
+ import ct from "./vue-ui-skeleton-HxNUOQim.js";
9
+ import vt from "./BaseIcon-CejyHIZM.js";
10
+ import ht from "./vue-ui-accordion-CQLN2WYC.js";
11
+ import { u as Te } from "./useNestedProp-DGjp6yqE.js";
12
+ import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const gt = ["id"], yt = ["onClick"], ft = ["xmlns", "viewBox"], bt = ["id"], mt = ["stop-color"], _t = ["stop-color"], xt = ["x", "y", "width", "height", "fill", "rx"], kt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $t = ["x2", "y1", "y2", "stroke", "stroke-width"], wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Tt = ["x", "y", "font-size", "fill", "font-weight"], Lt = ["x", "y", "font-size", "fill", "font-weight"], Pt = ["x", "y", "font-size", "fill", "font-weight"], Nt = ["y", "width", "height", "fill", "onMouseenter"], St = {
14
+ key: 4,
15
+ class: "vue-data-ui-watermark"
16
+ }, Vt = ["onClick"], zt = { style: "width:100%;padding-top: 36px;position:relative" }, Ft = { class: "vue-ui-data-table" }, Mt = { key: 0 }, It = { style: { width: "100%" } }, Bt = ["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" } }, 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 = ["data-cell"], Ut = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wt = ["data-cell"], jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yt = ["data-cell"], qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kt = {
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(Le, { expose: Pe, emit: Ne }) {
34
+ const T = Le;
35
+ Ee((a) => ({
36
+ "4e87e0a7": a.tdo
37
+ }));
38
+ const { vue_ui_vertical_bar: Se } = Ye(), G = f(() => !!T.dataset && T.dataset.length), P = p(qe()), Ve = p(null), q = p(!1), K = p(""), H = p(0), ze = p(null), ne = p(0), O = p(null), se = p(null), J = p(null), e = f(() => {
39
+ const a = Te({
40
+ userConfig: T.config,
41
+ defaultConfig: Se
42
+ });
43
+ return a.theme ? {
44
+ ...Te({
45
+ userConfig: Ke.vue_ui_vertical_bar[a.theme] || T.config,
46
+ defaultConfig: a
47
+ }),
48
+ customPalette: Je[a.theme] || V
49
+ } : a;
50
+ }), { isPrinting: re, isImaging: ie, generatePdf: de, generateImage: ce } = rt({
51
+ elementId: `vue-ui-vertical-bar_${P.value}`,
52
+ fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
53
+ }), ve = f(() => Qe(e.value.customPalette)), he = p(null), pe = p(!1), Fe = f(() => e.value.table.responsiveBreakpoint), U = p(null);
54
+ Ge(() => {
55
+ if (we(T.dataset) && le({
56
+ componentName: "VueUiVerticalBar",
57
+ type: "dataset"
58
+ }), H.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Me(), e.value.responsive) {
59
+ const a = ut(() => {
60
+ const { width: l, height: t } = nt({
61
+ chart: O.value,
62
+ title: e.value.style.chart.title.text ? se.value : null,
63
+ legend: e.value.style.chart.legend.show ? J.value : null
64
+ });
65
+ fe.value = l, h.value = t / H.value - y.value * 2;
66
+ });
67
+ U.value = new ResizeObserver(a), U.value.observe(O.value.parentNode);
68
+ }
69
+ }), He(() => {
70
+ U.value && U.value.disconnect();
71
+ });
72
+ function Me() {
73
+ new ResizeObserver((l) => {
74
+ l.forEach((t) => {
75
+ pe.value = t.contentRect.width < Fe.value;
76
+ });
77
+ }).observe(he.value);
78
+ }
79
+ const k = p({
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
+ }), ge = f(() => k.value.sortDesc), N = f(() => (T.dataset.forEach((a, l) => {
84
+ a.children && (we(a.children) ? le({
85
+ componentName: "VueUiVerticalBar",
86
+ type: "datasetAttributeEmpty",
87
+ property: `children (index ${l})`
88
+ }) : a.children.forEach((t, o) => {
89
+ [null, void 0].includes(t.name) && le({
90
+ componentName: "VueUiVerticalBar",
91
+ type: "datasetSerieAttribute",
92
+ property: "name",
93
+ key: "children",
94
+ index: o
95
+ });
96
+ }));
97
+ }), T.dataset.map((a, l) => {
98
+ const t = `vertical_parent_${l}_${P.value}`, o = !!a.children && a.children.length > 0;
99
+ return {
100
+ ...a,
101
+ id: t,
102
+ shape: "square",
103
+ opacity: w.value.includes(t) ? 0.5 : 1,
104
+ value: o ? a.children.map((s) => s.value || 0).reduce((s, r) => s + r, 0) : Math.abs(a.value) || 0,
105
+ sign: a.value >= 0 ? 1 : -1,
106
+ hasChildren: o,
107
+ isChild: !1,
108
+ segregate: () => D(t),
109
+ isSegregated: w.value.includes(t),
110
+ color: oe(a.color) || ve.value[l] || V[l] || V[l % V.length],
111
+ children: !a.children || !a.children.length ? [] : a.children.toSorted((s, r) => ge.value ? r.value - s.value : s.value - r.value).map((s, r) => ({
112
+ ...s,
113
+ value: Math.abs(s.value) || 0,
114
+ sign: s.value >= 0 ? 1 : -1,
115
+ isChild: !0,
116
+ parentId: t,
117
+ parentName: a.name,
118
+ parentValue: a.value || o ? a.children.map((te) => te.value || 0).reduce((te, Ae) => te + Ae, 0) : 0,
119
+ id: `vertical_child_${l}_${r}_${P.value}`,
120
+ childIndex: r,
121
+ color: oe(s.color) || oe(a.color) || ve.value[l] || V[l] || V[l % V.length]
122
+ })).map((s, r) => ({
123
+ ...s,
124
+ isFirstChild: r === 0,
125
+ isLastChild: r === a.children.length - 1
126
+ }))
127
+ };
128
+ }).toSorted((a, l) => ge.value ? l.value - a.value : a.value - l.value))), ye = f(() => ({
129
+ cy: "vertical-bar-div-legend",
130
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
131
+ color: e.value.style.chart.legend.color,
132
+ fontSize: e.value.style.chart.legend.fontSize,
133
+ paddingBottom: 12,
134
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
135
+ })), h = p(e.value.style.chart.layout.bars.height), y = p(e.value.style.chart.layout.bars.gap), Ie = f(() => (h.value + y.value) * H.value), fe = p(512), g = f(() => ({
136
+ width: fe.value,
137
+ height: Ie.value,
138
+ padding: {
139
+ top: 12,
140
+ left: 128 + e.value.style.chart.layout.bars.offsetX,
141
+ right: 64 + e.value.style.chart.layout.bars.paddingRight,
142
+ bottom: 12
143
+ }
144
+ })), n = f(() => ({
145
+ fullHeight: g.value.padding.top + g.value.padding.bottom + g.value.height,
146
+ top: g.value.padding.top,
147
+ left: g.value.padding.left,
148
+ right: g.value.width - g.value.padding.right,
149
+ bottom: g.value.padding.top + g.value.height,
150
+ width: g.value.width - (g.value.padding.left + g.value.padding.right)
151
+ }));
152
+ function Q() {
153
+ H.value = S.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
154
+ }
155
+ const w = p([]);
156
+ function D(a) {
157
+ w.value.includes(a) ? w.value = w.value.filter((l) => l !== a) : w.value.push(a), Q(), Ne("selectLegend", S.value);
158
+ }
159
+ const S = f(() => N.value.filter((a) => !w.value.includes(a.id))), C = f(() => S.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
160
+ function be(a, l = !1, t = 0) {
161
+ return l ? z({
162
+ v: Math.abs(a) / C.value * 100,
163
+ s: "%",
164
+ r: t
165
+ }) : Math.abs(a) / C.value;
166
+ }
167
+ const F = f(() => S.value.flatMap((a) => a.hasChildren ? a.children : a)), M = f(() => F.value.map((a) => a.sign).includes(-1)), Be = f(() => Math.max(...S.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
168
+ function L(a) {
169
+ const l = a / Be.value;
170
+ return n.value.width / (M.value ? 2 : 1) * l;
171
+ }
172
+ function Oe(a) {
173
+ return L(a) + n.value.left;
174
+ }
175
+ function I(a, l) {
176
+ const t = S.value.find((r) => r.id === a.parentId), o = n.value.top + (y.value + h.value) * l, s = t.children.length * (y.value + h.value);
177
+ return {
178
+ y: o + s / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
179
+ name: t.name,
180
+ value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
181
+ percentageToTotal: isNaN(t.value / C.value) ? "" : be(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
182
+ sign: t.sign
183
+ };
184
+ }
185
+ function De() {
186
+ return S.value;
187
+ }
188
+ const Z = p(null), ee = p(null);
189
+ function Re(a, l) {
190
+ ee.value = {
191
+ datapoint: a,
192
+ seriesIndex: l,
193
+ series: N.value,
194
+ config: e.value
195
+ }, q.value = !0, Z.value = a.id;
196
+ let t = "";
197
+ const o = a.isChild ? a.parentName : a.name, s = a.isChild ? a.name : "", r = e.value.style.chart.tooltip.customFormat;
198
+ tt(r) && at(() => r({
199
+ datapoint: a,
200
+ series: N.value,
201
+ config: e.value,
202
+ seriesIndex: l
203
+ })) ? K.value = r({
204
+ datapoint: a,
205
+ series: N.value,
206
+ config: e.value,
207
+ seriesIndex: l
208
+ }) : (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;">
209
+ <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>
210
+ ${s ? `<div>${s}</div>` : ""}
211
+ </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Y(
212
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
213
+ a.sign === 1 ? a.value : -a.value,
214
+ z({
215
+ p: e.value.style.chart.tooltip.prefix,
216
+ v: a.sign === 1 ? a.value : -a.value,
217
+ s: e.value.style.chart.tooltip.suffix,
218
+ r: e.value.style.chart.tooltip.roundingValue
219
+ }),
220
+ { datapoint: a, seriesIndex: l }
221
+ )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${z({
222
+ v: Math.abs(a.value) / C.value * 100,
223
+ s: "%",
224
+ r: e.value.style.chart.tooltip.roundingPercentage
225
+ })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${z({
226
+ v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
227
+ s: "%",
228
+ r: e.value.style.chart.tooltip.roundingPercentage
229
+ })}</b></div>`)), K.value = `<div style="text-align:left">${t}</div>`);
230
+ }
231
+ function me(a, l, t, o) {
232
+ if (!e.value.style.chart.layout.bars.dataLabels.value.show)
233
+ return "";
234
+ const s = Y(
235
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
236
+ o === 1 ? a : -a,
237
+ z({
238
+ p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
239
+ v: o === 1 ? a : -a,
240
+ s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
241
+ r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
242
+ }),
243
+ { datapoint: l, seriesIndex: t }
244
+ ), r = `(${be(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
245
+ return `${s}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${r}` : ""}`;
246
+ }
247
+ const $ = f(() => {
248
+ const a = [
249
+ e.value.translations.parentName,
250
+ e.value.translations.value,
251
+ e.value.translations.percentageToTotal,
252
+ e.value.translations.childName,
253
+ e.value.translations.value,
254
+ e.value.translations.percentageToSerie,
255
+ e.value.translations.percentageToTotal
256
+ ], l = F.value.map((t) => t.isChild ? t.isFirstChild ? {
257
+ color: t.color,
258
+ parentName: t.parentName,
259
+ parentValue: t.parentValue,
260
+ percentageToTotal: t.parentValue / C.value,
261
+ childName: t.name,
262
+ childValue: t.sign === 1 ? t.value : -t.value,
263
+ childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
264
+ childPercentageToTotal: Math.abs(t.value) / C.value
265
+ } : {
266
+ color: "",
267
+ parentName: "",
268
+ parentValue: "",
269
+ percentageToTotal: "",
270
+ childName: t.name,
271
+ childValue: t.sign === 1 ? t.value : -t.value,
272
+ childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
273
+ childPercentageToTotal: Math.abs(t.value) / C.value
274
+ } : {
275
+ color: t.color,
276
+ parentName: t.name,
277
+ parentValue: t.sign === 1 ? t.value : -t.value,
278
+ percentageToTotal: Math.abs(t.value) / C.value,
279
+ childName: "",
280
+ childValue: "",
281
+ childPercentageToParent: "",
282
+ childPercentageToTotal: ""
283
+ });
284
+ return { head: a, body: l };
285
+ });
286
+ function _e() {
287
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = $.value.head, t = $.value.body.map((r) => [
288
+ r.parentName,
289
+ r.parentValue,
290
+ r.percentageToTotal,
291
+ r.childName,
292
+ r.childValue,
293
+ r.childPercentageToParent,
294
+ r.childPercentageToTotal
295
+ ]), o = a.concat([l]).concat(t), s = lt(o);
296
+ ot({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
297
+ }
298
+ const R = p(!1);
299
+ function Xe(a) {
300
+ R.value = a, ne.value += 1;
301
+ }
302
+ function xe() {
303
+ k.value.showTable = !k.value.showTable;
304
+ }
305
+ function ke() {
306
+ k.value.sortDesc = !k.value.sortDesc, Q();
307
+ }
308
+ function $e() {
309
+ k.value.showTooltip = !k.value.showTooltip;
310
+ }
311
+ return Pe({
312
+ getData: De,
313
+ recalculateHeight: Q,
314
+ generatePdf: de,
315
+ generateCsv: _e,
316
+ generateImage: ce,
317
+ toggleTable: xe,
318
+ toggleSort: ke,
319
+ toggleTooltip: $e
320
+ }), (a, l) => (i(), v("div", {
321
+ class: B(`vue-ui-vertical-bar ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
322
+ ref_key: "verticalBarChart",
323
+ ref: O,
324
+ id: `vue-ui-vertical-bar_${P.value}`,
325
+ 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%" : ""}`)
326
+ }, [
327
+ e.value.style.chart.title.text ? (i(), v("div", {
328
+ key: 0,
329
+ ref_key: "chartTitle",
330
+ ref: se,
331
+ style: d(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
332
+ }, [
333
+ X(st, {
334
+ config: {
335
+ title: {
336
+ cy: "vertical-bar-div-title",
337
+ ...e.value.style.chart.title
338
+ },
339
+ subtitle: {
340
+ cy: "vertical-bar-div-subtitle",
341
+ ...e.value.style.chart.title.subtitle
342
+ }
343
+ }
344
+ }, null, 8, ["config"])
345
+ ], 4)) : b("", !0),
346
+ e.value.userOptions.show && G.value ? (i(), ae(it, {
347
+ ref_key: "details",
348
+ ref: Ve,
349
+ key: `user_options_${ne.value}`,
350
+ backgroundColor: e.value.style.chart.backgroundColor,
351
+ color: e.value.style.chart.color,
352
+ isImaging: m(ie),
353
+ isPrinting: m(re),
354
+ uid: P.value,
355
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
356
+ hasPdf: e.value.userOptions.buttons.pdf,
357
+ hasImg: e.value.userOptions.buttons.img,
358
+ hasXls: e.value.userOptions.buttons.csv,
359
+ hasTable: e.value.userOptions.buttons.table,
360
+ hasSort: e.value.userOptions.buttons.sort,
361
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
362
+ isFullscreen: R.value,
363
+ isTooltip: k.value.showTooltip,
364
+ titles: { ...e.value.userOptions.buttonTitles },
365
+ chartElement: O.value,
366
+ onToggleFullscreen: Xe,
367
+ onGeneratePdf: m(de),
368
+ onGenerateCsv: _e,
369
+ onGenerateImage: m(ce),
370
+ onToggleTable: xe,
371
+ onToggleSort: ke,
372
+ onToggleTooltip: $e
373
+ }, Ue({ _: 2 }, [
374
+ a.$slots.optionTooltip ? {
375
+ name: "optionTooltip",
376
+ fn: _(() => [
377
+ x(a.$slots, "optionTooltip", {}, void 0, !0)
378
+ ]),
379
+ key: "0"
380
+ } : void 0,
381
+ a.$slots.optionPdf ? {
382
+ name: "optionPdf",
383
+ fn: _(() => [
384
+ x(a.$slots, "optionPdf", {}, void 0, !0)
385
+ ]),
386
+ key: "1"
387
+ } : void 0,
388
+ a.$slots.optionCsv ? {
389
+ name: "optionCsv",
390
+ fn: _(() => [
391
+ x(a.$slots, "optionCsv", {}, void 0, !0)
392
+ ]),
393
+ key: "2"
394
+ } : void 0,
395
+ a.$slots.optionImg ? {
396
+ name: "optionImg",
397
+ fn: _(() => [
398
+ x(a.$slots, "optionImg", {}, void 0, !0)
399
+ ]),
400
+ key: "3"
401
+ } : void 0,
402
+ a.$slots.optionTable ? {
403
+ name: "optionTable",
404
+ fn: _(() => [
405
+ x(a.$slots, "optionTable", {}, void 0, !0)
406
+ ]),
407
+ key: "4"
408
+ } : void 0,
409
+ a.$slots.optionLabels ? {
410
+ name: "optionLabels",
411
+ fn: _(() => [
412
+ x(a.$slots, "optionLabels", {}, void 0, !0)
413
+ ]),
414
+ key: "5"
415
+ } : void 0,
416
+ a.$slots.optionSort ? {
417
+ name: "optionSort",
418
+ fn: _(() => [
419
+ x(a.$slots, "optionSort", {}, void 0, !0)
420
+ ]),
421
+ key: "6"
422
+ } : void 0,
423
+ a.$slots.optionFullscreen ? {
424
+ name: "optionFullscreen",
425
+ fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
426
+ x(a.$slots, "optionFullscreen", W(j({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
427
+ ]),
428
+ key: "7"
429
+ } : void 0
430
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
431
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (i(), v("div", {
432
+ key: 2,
433
+ ref_key: "chartLegend",
434
+ ref: J
435
+ }, [
436
+ X(Ce, {
437
+ legendSet: N.value,
438
+ config: ye.value,
439
+ onClickMarker: l[0] || (l[0] = ({ legend: t }) => D(t.id))
440
+ }, {
441
+ item: _(({ legend: t, index: o }) => [
442
+ u("div", {
443
+ "data-cy-legend-item": "",
444
+ onClick: (s) => D(t.id),
445
+ style: d(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
446
+ }, c(t.name) + ": " + c(m(Y)(
447
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
448
+ t.value,
449
+ m(z)({
450
+ p: e.value.style.chart.legend.prefix,
451
+ v: t.value,
452
+ s: e.value.style.chart.legend.suffix,
453
+ r: e.value.style.chart.legend.roundingValue
454
+ }),
455
+ { datapoint: t, seriesIndex: o }
456
+ )), 13, yt)
457
+ ]),
458
+ _: 1
459
+ }, 8, ["legendSet", "config"])
460
+ ], 512)) : b("", !0),
461
+ G.value ? (i(), v("svg", {
462
+ key: 3,
463
+ xmlns: m(Ze),
464
+ class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
465
+ viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${n.value.fullHeight <= 0 ? 10 : n.value.fullHeight}`,
466
+ style: d(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
467
+ }, [
468
+ (i(!0), v(A, null, E(F.value, (t, o) => (i(), v("linearGradient", {
469
+ x1: "0%",
470
+ y1: "0%",
471
+ x2: "100%",
472
+ y2: "0%",
473
+ id: `vertical_bar_gradient_${P.value}_${o}`
474
+ }, [
475
+ u("stop", {
476
+ offset: "0%",
477
+ "stop-color": t.color
478
+ }, null, 8, mt),
479
+ u("stop", {
480
+ offset: "100%",
481
+ "stop-color": `${m(et)(t.color, 0.03)}${m(ue)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
482
+ }, null, 8, _t)
483
+ ], 8, bt))), 256)),
484
+ (i(!0), v(A, null, E(F.value, (t, o) => (i(), v("g", null, [
485
+ u("rect", {
486
+ x: M.value ? n.value.left + n.value.width / 2 - (t.sign === 1 ? 0 : L(t.value) <= 0 ? 1e-4 : L(t.value)) : n.value.left,
487
+ y: n.value.top + (y.value + h.value) * o,
488
+ width: L(t.value) <= 0 ? 1e-4 : L(t.value),
489
+ height: h.value <= 0 ? 1e-4 : h.value,
490
+ fill: e.value.style.chart.layout.bars.underlayerColor,
491
+ rx: e.value.style.chart.layout.bars.borderRadius,
492
+ class: B({ animated: e.value.useCssAnimation })
493
+ }, null, 10, xt)
494
+ ]))), 256)),
495
+ (i(!0), v(A, null, E(F.value, (t, o) => (i(), v("g", null, [
496
+ u("rect", {
497
+ x: M.value ? n.value.left + n.value.width / 2 - (t.sign === 1 ? 0 : L(t.value) <= 0 ? 1e-4 : L(t.value)) : n.value.left,
498
+ y: n.value.top + (y.value + h.value) * o,
499
+ width: L(t.value) <= 0 ? 1e-4 : L(t.value),
500
+ height: h.value <= 0 ? 1e-4 : h.value,
501
+ fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${P.value}_${o})` : `${t.color}${m(ue)[e.value.style.chart.layout.bars.fillOpacity]}`,
502
+ rx: e.value.style.chart.layout.bars.borderRadius,
503
+ stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
504
+ "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
505
+ class: B({ animated: e.value.useCssAnimation })
506
+ }, null, 10, kt),
507
+ (!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== F.value.length - 1 ? (i(), v("line", {
508
+ key: 0,
509
+ x1: 0,
510
+ x2: n.value.left,
511
+ y1: h.value + y.value / 2 + n.value.top + (y.value + h.value) * o,
512
+ y2: h.value + y.value / 2 + n.value.top + (y.value + h.value) * o,
513
+ stroke: e.value.style.chart.layout.separators.color,
514
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
515
+ "stroke-linecap": "round"
516
+ }, null, 8, $t)) : b("", !0),
517
+ M.value && e.value.style.chart.layout.separators.show ? (i(), v("line", {
518
+ key: 1,
519
+ x1: n.value.left + n.value.width / 2,
520
+ x2: n.value.left + n.value.width / 2,
521
+ y1: n.value.top,
522
+ y2: n.value.bottom,
523
+ stroke: e.value.style.chart.layout.separators.color,
524
+ "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
525
+ "stroke-linecap": "round"
526
+ }, null, 8, wt)) : b("", !0),
527
+ u("text", {
528
+ x: M.value ? n.value.left + n.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Oe(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
529
+ y: n.value.top + (y.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
530
+ "text-anchor": !M.value || t.sign === -1 ? "start" : "end",
531
+ "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
532
+ fill: e.value.style.chart.layout.bars.dataLabels.color,
533
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
534
+ }, c(me(t.value, t, o, t.sign)), 9, Ct),
535
+ (t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (i(), v("text", {
536
+ key: 2,
537
+ "text-anchor": "end",
538
+ x: n.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
539
+ y: n.value.top + (y.value + h.value) * o + h.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
540
+ "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
541
+ fill: e.value.style.chart.layout.bars.nameLabels.color,
542
+ "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
543
+ }, c(t.name), 9, Tt)) : b("", !0),
544
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), v("text", {
545
+ key: 3,
546
+ x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
547
+ y: I(t, o).y,
548
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
549
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
550
+ "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
551
+ "text-anchor": "start"
552
+ }, c(I(t, o).name), 9, Lt)) : b("", !0),
553
+ t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (i(), v("text", {
554
+ key: 4,
555
+ x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
556
+ y: I(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
557
+ "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
558
+ fill: e.value.style.chart.layout.bars.parentLabels.color,
559
+ "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
560
+ "text-anchor": "start"
561
+ }, c(me(I(t, o).value), I(t, o), o, I(t, o).sign), 9, Pt)) : b("", !0),
562
+ u("rect", {
563
+ "data-cy-trap": "",
564
+ x: 0,
565
+ y: n.value.top + (y.value + h.value) * o - y.value / 2,
566
+ width: g.value.width <= 0 ? 1e-4 : g.value.width,
567
+ height: h.value + y.value <= 0 ? 1e-4 : h.value + y.value,
568
+ fill: Z.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${m(ue)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
569
+ onMouseenter: (s) => Re(t, o),
570
+ onMouseleave: l[1] || (l[1] = (s) => {
571
+ ze.value = null, q.value = !1, Z.value = null;
572
+ })
573
+ }, null, 40, Nt)
574
+ ]))), 256)),
575
+ x(a.$slots, "svg", { svg: g.value }, void 0, !0)
576
+ ], 14, ft)) : b("", !0),
577
+ a.$slots.watermark ? (i(), v("div", St, [
578
+ x(a.$slots, "watermark", W(j({ isPrinting: m(re) || m(ie) })), void 0, !0)
579
+ ])) : b("", !0),
580
+ G.value ? b("", !0) : (i(), ae(ct, {
581
+ key: 5,
582
+ config: {
583
+ type: "verticalBar",
584
+ style: {
585
+ backgroundColor: e.value.style.chart.backgroundColor,
586
+ verticalBar: {
587
+ axis: {
588
+ color: "#CCCCCC"
589
+ },
590
+ color: "#CCCCCC"
591
+ }
592
+ }
593
+ }
594
+ }, null, 8, ["config"])),
595
+ e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (i(), v("div", {
596
+ key: 6,
597
+ ref_key: "chartLegend",
598
+ ref: J
599
+ }, [
600
+ X(Ce, {
601
+ legendSet: N.value,
602
+ config: ye.value,
603
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => D(t.id))
604
+ }, {
605
+ item: _(({ legend: t, index: o }) => [
606
+ u("div", {
607
+ onClick: (s) => D(t.id),
608
+ style: d(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
609
+ }, c(t.name) + ": " + c(m(Y)(
610
+ e.value.style.chart.layout.bars.dataLabels.value.formatter,
611
+ t.value,
612
+ m(z)({
613
+ p: e.value.style.chart.legend.prefix,
614
+ v: t.value,
615
+ s: e.value.style.chart.legend.suffix,
616
+ r: e.value.style.chart.legend.roundingValue
617
+ }),
618
+ { datapoint: t, seriesIndex: o }
619
+ )), 13, Vt)
620
+ ]),
621
+ _: 1
622
+ }, 8, ["legendSet", "config"])
623
+ ], 512)) : b("", !0),
624
+ x(a.$slots, "legend", { legend: N.value }, void 0, !0),
625
+ X(dt, {
626
+ show: k.value.showTooltip && q.value && w.value.length < T.dataset.length,
627
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
628
+ color: e.value.style.chart.tooltip.color,
629
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
630
+ borderColor: e.value.style.chart.tooltip.borderColor,
631
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
632
+ fontSize: e.value.style.chart.tooltip.fontSize,
633
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
634
+ position: e.value.style.chart.tooltip.position,
635
+ offsetY: e.value.style.chart.tooltip.offsetY,
636
+ parent: O.value,
637
+ content: K.value,
638
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
639
+ }, {
640
+ "tooltip-before": _(() => [
641
+ x(a.$slots, "tooltip-before", W(j({ ...ee.value })), void 0, !0)
642
+ ]),
643
+ "tooltip-after": _(() => [
644
+ x(a.$slots, "tooltip-after", W(j({ ...ee.value })), void 0, !0)
645
+ ]),
646
+ _: 3
647
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
648
+ G.value ? (i(), ae(ht, {
649
+ key: 7,
650
+ hideDetails: "",
651
+ config: {
652
+ open: k.value.showTable,
653
+ maxHeight: 1e4,
654
+ body: {
655
+ backgroundColor: e.value.style.chart.backgroundColor,
656
+ color: e.value.style.chart.color
657
+ },
658
+ head: {
659
+ backgroundColor: e.value.style.chart.backgroundColor,
660
+ color: e.value.style.chart.color
661
+ }
662
+ }
663
+ }, {
664
+ content: _(() => [
665
+ u("div", {
666
+ ref_key: "tableContainer",
667
+ ref: he,
668
+ class: "vue-ui-vertical-bar-table"
669
+ }, [
670
+ u("div", zt, [
671
+ u("div", {
672
+ role: "button",
673
+ tabindex: "0",
674
+ 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};`),
675
+ onClick: l[3] || (l[3] = (t) => k.value.showTable = !1),
676
+ onKeypress: l[4] || (l[4] = We((t) => k.value.showTable = !1, ["enter"]))
677
+ }, [
678
+ X(vt, {
679
+ name: "close",
680
+ stroke: e.value.table.th.color,
681
+ "stroke-width": 2
682
+ }, null, 8, ["stroke"])
683
+ ], 36),
684
+ u("div", {
685
+ style: { width: "100%", "container-type": "inline-size" },
686
+ class: B({ "vue-ui-responsive": pe.value })
687
+ }, [
688
+ u("table", Ft, [
689
+ u("caption", {
690
+ style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
691
+ class: "vue-ui-data-table__caption"
692
+ }, [
693
+ je(c(e.value.style.chart.title.text) + " ", 1),
694
+ e.value.style.chart.title.subtitle.text ? (i(), v("span", Mt, c(e.value.style.chart.title.subtitle.text), 1)) : b("", !0)
695
+ ], 4),
696
+ u("thead", null, [
697
+ u("tr", {
698
+ role: "row",
699
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
700
+ }, [
701
+ (i(!0), v(A, null, E($.value.head, (t) => (i(), v("th", {
702
+ style: d(`outline:${e.value.table.th.outline}`)
703
+ }, [
704
+ u("div", It, c(t), 1)
705
+ ], 4))), 256))
706
+ ], 4),
707
+ u("tr", null, [
708
+ u("th", {
709
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
710
+ }, null, 4),
711
+ u("th", {
712
+ 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`)
713
+ }, "∑ " + c(e.value.table.td.prefix) + c(isNaN(C.value) ? "" : C.value.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 5),
714
+ u("th", {
715
+ 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`)
716
+ }, "100%", 4),
717
+ u("th", {
718
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
719
+ }, null, 4),
720
+ u("th", {
721
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
722
+ }, null, 4),
723
+ u("th", {
724
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
725
+ }, null, 4),
726
+ u("th", {
727
+ style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
728
+ }, null, 4)
729
+ ])
730
+ ]),
731
+ u("tbody", null, [
732
+ (i(!0), v(A, null, E($.value.body, (t, o) => (i(), v("tr", {
733
+ class: B({ "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 }),
734
+ style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
735
+ }, [
736
+ u("td", {
737
+ class: "vue-ui-data-table__tbody__td",
738
+ style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
739
+ "data-cell": $.value.head[0] ?? ""
740
+ }, [
741
+ u("div", Ot, [
742
+ t.color ? (i(), v("span", {
743
+ key: 0,
744
+ style: d(`color:${t.color};margin-right:3px`)
745
+ }, "⬤", 4)) : b("", !0),
746
+ u("span", null, c(t.parentName), 1)
747
+ ])
748
+ ], 12, Bt),
749
+ u("td", {
750
+ class: "vue-ui-data-table__tbody__td",
751
+ style: d(`outline:${e.value.table.td.outline}`),
752
+ "data-cell": $.value.head[1] ?? ""
753
+ }, [
754
+ u("div", Rt, c(e.value.table.td.prefix) + c(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 1)
755
+ ], 12, Dt),
756
+ u("td", {
757
+ class: "vue-ui-data-table__tbody__td",
758
+ style: d(`outline:${e.value.table.td.outline}`),
759
+ "data-cell": $.value.head[2] ?? ""
760
+ }, [
761
+ u("div", At, c(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
762
+ ], 12, Xt),
763
+ u("td", {
764
+ class: "vue-ui-data-table__tbody__td",
765
+ style: d(`outline:${e.value.table.td.outline}`),
766
+ "data-cell": $.value.head[3] ?? ""
767
+ }, [
768
+ u("div", Gt, c(t.childName), 1)
769
+ ], 12, Et),
770
+ u("td", {
771
+ class: "vue-ui-data-table__tbody__td",
772
+ style: d(`outline:${e.value.table.td.outline}`),
773
+ "data-cell": $.value.head[4] ?? ""
774
+ }, [
775
+ u("div", Ut, c(e.value.table.td.prefix) + c(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + c(e.value.table.td.suffix), 1)
776
+ ], 12, Ht),
777
+ u("td", {
778
+ class: "vue-ui-data-table__tbody__td",
779
+ style: d(`outline:${e.value.table.td.outline}`),
780
+ "data-cell": $.value.head[5] ?? ""
781
+ }, [
782
+ u("div", jt, c(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
783
+ ], 12, Wt),
784
+ u("td", {
785
+ class: "vue-ui-data-table__tbody__td",
786
+ style: d(`outline:${e.value.table.td.outline}`),
787
+ "data-cell": $.value.head[6] ?? ""
788
+ }, [
789
+ u("div", qt, c(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
790
+ ], 12, Yt)
791
+ ], 6))), 256))
792
+ ])
793
+ ])
794
+ ], 2)
795
+ ])
796
+ ], 512)
797
+ ]),
798
+ _: 1
799
+ }, 8, ["config"])) : b("", !0)
800
+ ], 14, gt));
801
+ }
802
+ }, ia = /* @__PURE__ */ pt(Kt, [["__scopeId", "data-v-bfc1046b"]]);
803
+ export {
804
+ ia as default
805
+ };