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