vue-data-ui 2.3.30 → 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 (148) hide show
  1. package/dist/{Arrow-B8z06v67.cjs → Arrow-C46rqWDg.cjs} +1 -1
  2. package/dist/{Arrow-Bh7WeO_g.js → Arrow-f_7ZlBit.js} +1 -1
  3. package/dist/{BaseIcon-BG_bJS3R.js → BaseIcon-CejyHIZM.js} +1 -1
  4. package/dist/{BaseIcon-DDCJA3rm.cjs → BaseIcon-ChS1Bl3C.cjs} +1 -1
  5. package/dist/{DataTable-Doh_4M84.cjs → DataTable-BShm3pg0.cjs} +1 -1
  6. package/dist/{DataTable-CsPidn0_.js → DataTable-Rb6wEqzD.js} +2 -2
  7. package/dist/{Legend-B20rRwGi.cjs → Legend-DUjHDr5A.cjs} +1 -1
  8. package/dist/{Legend-CkQ_zypV.js → Legend-O1l-qwSU.js} +1 -1
  9. package/dist/{Shape-B8O8_E6l.cjs → Shape-DrbNfL39.cjs} +1 -1
  10. package/dist/{Shape-B4gGeBLI.js → Shape-jOLEEcCT.js} +1 -1
  11. package/dist/{Slicer-DaEfxscP.js → Slicer-BtErYU-m.js} +1 -1
  12. package/dist/{Slicer-BXveU40S.cjs → Slicer-DMZ03tYD.cjs} +1 -1
  13. package/dist/{Title-eBTH8iGJ.js → Title-B9DAMnKW.js} +1 -1
  14. package/dist/{Title-BU6E8Xld.cjs → Title-C6kjiyFi.cjs} +1 -1
  15. package/dist/{Tooltip-B11OahTD.js → Tooltip-B7LZQUXr.js} +1 -1
  16. package/dist/{Tooltip-Oicp_EIo.cjs → Tooltip-Dc_Vk9k7.cjs} +1 -1
  17. package/dist/index-D5gus_lg.cjs +4 -0
  18. package/dist/{index-BlXzlBwZ.js → index-DyzpYx72.js} +2 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +1 -0
  21. package/dist/types/vue-data-ui.d.ts +1 -0
  22. package/dist/{useNestedProp-BoNl5H_z.js → useNestedProp-DGjp6yqE.js} +1 -1
  23. package/dist/{useNestedProp-Cggpoz7e.cjs → useNestedProp-dfy-beYA.cjs} +1 -1
  24. package/dist/{usePrinter-DoYKBzst.cjs → usePrinter-D9HscgWK.cjs} +1 -1
  25. package/dist/{usePrinter-CZ8F5Cth.js → usePrinter-_HAcfIJq.js} +1 -1
  26. package/dist/{vue-data-ui-BOqzG_nZ.js → vue-data-ui-BYwT-L-y.js} +57 -57
  27. package/dist/{vue-data-ui-CGgiWEo3.cjs → vue-data-ui-w642Au96.cjs} +1 -1
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-CjnVg4YI.js → vue-ui-3d-bar-_idrDcTt.js} +7 -7
  31. package/dist/{vue-ui-3d-bar-CpntMt7p.cjs → vue-ui-3d-bar-uIw4YyRe.cjs} +1 -1
  32. package/dist/{vue-ui-accordion-wHRG3nXl.js → vue-ui-accordion-CQLN2WYC.js} +3 -3
  33. package/dist/{vue-ui-accordion-CTYvdLLH.cjs → vue-ui-accordion-QESF0r0U.cjs} +1 -1
  34. package/dist/{vue-ui-age-pyramid-vmCwgRy9.js → vue-ui-age-pyramid-Bj_3AooT.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-DDiL1Zje.cjs → vue-ui-age-pyramid-BqIkETbo.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-DQ3wKf9n.cjs → vue-ui-annotator-CLCPtXoo.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-9FGJdNLY.js → vue-ui-annotator-D0iuqAb9.js} +1 -1
  38. package/dist/{vue-ui-candlestick-6joQ9JKQ.cjs → vue-ui-candlestick-BBnC2umf.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-DpMr2r0i.js → vue-ui-candlestick-D8AnaGwt.js} +9 -9
  40. package/dist/{vue-ui-carousel-table-CgR4ADOz.js → vue-ui-carousel-table-CV4YRYfq.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-BV0EOLqU.cjs → vue-ui-carousel-table-DJtlOVqJ.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-CxoCcw_B.cjs → vue-ui-chestnut-CRkC7aeK.cjs} +1 -1
  43. package/dist/{vue-ui-chestnut-Ca2878kV.js → vue-ui-chestnut-DxRF0eGJ.js} +6 -6
  44. package/dist/{vue-ui-cursor-BW8C6oUc.js → vue-ui-cursor-7KMholmU.js} +2 -2
  45. package/dist/{vue-ui-cursor-DxF_gXQf.cjs → vue-ui-cursor-DxDaK5kl.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-DN4nErBZ.js → vue-ui-dashboard-BMEkgCKF.js} +2 -2
  47. package/dist/{vue-ui-dashboard-BGrVyITN.cjs → vue-ui-dashboard-CjmpoQWU.cjs} +1 -1
  48. package/dist/{vue-ui-digits-CpSKBG2c.cjs → vue-ui-digits-KxGiWJBe.cjs} +1 -1
  49. package/dist/{vue-ui-digits-CmSFSs5S.js → vue-ui-digits-slk9W4ek.js} +2 -2
  50. package/dist/{vue-ui-donut-BqfRwAIM.js → vue-ui-donut-CB3SfpSC.js} +9 -9
  51. package/dist/{vue-ui-donut-C29yXH3H.cjs → vue-ui-donut-CtkZaRur.cjs} +1 -1
  52. package/dist/{vue-ui-donut-evolution-DIR7yBUC.js → vue-ui-donut-evolution-292a6FEA.js} +9 -9
  53. package/dist/{vue-ui-donut-evolution-COFG73Xl.cjs → vue-ui-donut-evolution-CptrmAtk.cjs} +1 -1
  54. package/dist/{vue-ui-dumbbell-BASuPAvI.js → vue-ui-dumbbell-BQrhfMqP.js} +8 -8
  55. package/dist/{vue-ui-dumbbell-1NA60u3h.cjs → vue-ui-dumbbell-Dx_-QB5p.cjs} +1 -1
  56. package/dist/{vue-ui-flow-DBK7d0DQ.cjs → vue-ui-flow-C12EMKoJ.cjs} +1 -1
  57. package/dist/{vue-ui-flow-wq0aqc5r.js → vue-ui-flow-CcCeNf_k.js} +7 -7
  58. package/dist/{vue-ui-galaxy-CFQ2hQAl.js → vue-ui-galaxy-BAIRiq85.js} +9 -9
  59. package/dist/{vue-ui-galaxy-BgdVvk4N.cjs → vue-ui-galaxy-CLVcP5Qh.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-C4_kEbgg.cjs → vue-ui-gauge-eMLSa5k6.cjs} +1 -1
  61. package/dist/{vue-ui-gauge-CIN265dN.js → vue-ui-gauge-uFn_PRBN.js} +5 -5
  62. package/dist/{vue-ui-gizmo-BpT3iwC9.cjs → vue-ui-gizmo-C5hlmv34.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-DRXWEpqU.js → vue-ui-gizmo-CkmuI8hn.js} +2 -2
  64. package/dist/{vue-ui-heatmap-Dc0ft_Ga.js → vue-ui-heatmap-C3oS64to.js} +8 -8
  65. package/dist/{vue-ui-heatmap-CVD7FVfk.cjs → vue-ui-heatmap-mnnjTuAS.cjs} +1 -1
  66. package/dist/{vue-ui-kpi-DDL1TvBP.js → vue-ui-kpi-CMn14HGk.js} +2 -2
  67. package/dist/{vue-ui-kpi-WDZIt76s.cjs → vue-ui-kpi-CpFr6mya.cjs} +1 -1
  68. package/dist/{vue-ui-mini-loader-B2C5U55l.js → vue-ui-mini-loader-CxhRP0o3.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-BcGSpUfg.cjs → vue-ui-mini-loader-DAE2b1aK.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-C5BmRi2R.cjs → vue-ui-molecule-BMtrEZXu.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-CD3cPNOq.js → vue-ui-molecule-Chxy44E1.js} +9 -9
  72. package/dist/{vue-ui-mood-radar-D0KbeV5j.js → vue-ui-mood-radar-B0944MVq.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-afS64zg-.cjs → vue-ui-mood-radar-D70upaRv.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-D-TeyOtL.cjs → vue-ui-nested-donuts-C8U02J9G.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-BGoc1RFX.js → vue-ui-nested-donuts-Ct26fYcZ.js} +9 -9
  76. package/dist/{vue-ui-onion-B_khL0Kv.js → vue-ui-onion-BuAA53Z4.js} +9 -9
  77. package/dist/{vue-ui-onion-CFdbWLu3.cjs → vue-ui-onion-D7jdX-jE.cjs} +1 -1
  78. package/dist/{vue-ui-parallel-coordinate-plot-CP4V0K8m.js → vue-ui-parallel-coordinate-plot-DR7GBD64.js} +247 -237
  79. package/dist/vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs +8 -0
  80. package/dist/{vue-ui-quadrant-C1YbjeI7.js → vue-ui-quadrant-D6XUNhwO.js} +10 -10
  81. package/dist/{vue-ui-quadrant-C6-A8Gx_.cjs → vue-ui-quadrant-DjY4UFmX.cjs} +1 -1
  82. package/dist/{vue-ui-quick-chart-CtWhs_2c.js → vue-ui-quick-chart-CHWpjYVZ.js} +6 -6
  83. package/dist/{vue-ui-quick-chart-ConXdEsU.cjs → vue-ui-quick-chart-a7twDc_t.cjs} +1 -1
  84. package/dist/{vue-ui-radar-DMJLLVWb.cjs → vue-ui-radar-BPH8c93c.cjs} +1 -1
  85. package/dist/{vue-ui-radar-B2vAPYa7.js → vue-ui-radar-w8--R-ur.js} +10 -10
  86. package/dist/{vue-ui-rating-DhZ0tltR.cjs → vue-ui-rating-Dfk9Umrh.cjs} +1 -1
  87. package/dist/{vue-ui-rating-xGz4av68.js → vue-ui-rating-DyAunqH4.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-BQK8wMQE.js → vue-ui-relation-circle-BCCHpnpL.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-hb4Q051h.cjs → vue-ui-relation-circle-COsMXD8M.cjs} +1 -1
  90. package/dist/{vue-ui-rings-ZKjhNx5K.js → vue-ui-rings-COm1RO2W.js} +9 -9
  91. package/dist/{vue-ui-rings-D1EW3d4M.cjs → vue-ui-rings-DrrT1cJn.cjs} +1 -1
  92. package/dist/{vue-ui-scatter-CMRe2b2K.cjs → vue-ui-scatter-BwlMCoqN.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-CHONk8k0.js → vue-ui-scatter-ZjouDP_2.js} +10 -10
  94. package/dist/{vue-ui-screenshot-DmGe5ptH.js → vue-ui-screenshot-D0E4gBJg.js} +1 -1
  95. package/dist/{vue-ui-screenshot-DcKhT745.cjs → vue-ui-screenshot-DCAQ7EZR.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-CJ2R5R6u.js → vue-ui-skeleton-HxNUOQim.js} +2 -2
  97. package/dist/{vue-ui-skeleton-j-IOiy5w.cjs → vue-ui-skeleton-lzhZVBa5.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-D5Jn6d5f.cjs → vue-ui-smiley-BNglGFZl.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-DXVcosKR.js → vue-ui-smiley-xoGBumeP.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-CWH3W7h3.cjs → vue-ui-spark-trend-9z2-nnDf.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-Gg6TxR4m.js → vue-ui-spark-trend-BP91Hhbk.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-DUx1qVzQ.js → vue-ui-sparkbar-BV7lv1Mc.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-BsoKTXr2.cjs → vue-ui-sparkbar-CBwEk4Sp.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-xrvp9g87.js → vue-ui-sparkgauge-DAcXHJe3.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-DPusPoRv.cjs → vue-ui-sparkgauge-mf9TWCfM.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram---JRg2R1.cjs → vue-ui-sparkhistogram-BLG-wdNd.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-DzYXMNj8.js → vue-ui-sparkhistogram-Cw8kAsVJ.js} +4 -4
  108. package/dist/{vue-ui-sparkline-1Z6GnwoN.cjs → vue-ui-sparkline-BIxUq0a0.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-CGWePkVI.js → vue-ui-sparkline-DtMX5BBW.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-DFgeRAbQ.js → vue-ui-sparkstackbar-Boz0na6c.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-DCc68t8g.cjs → vue-ui-sparkstackbar-CcNK8jkC.cjs} +1 -1
  112. package/dist/vue-ui-stackbar-DFK6zb17.cjs +6 -0
  113. package/dist/vue-ui-stackbar-Yj49aOwn.js +786 -0
  114. package/dist/{vue-ui-strip-plot-DZt1Wq20.cjs → vue-ui-strip-plot-BUpDy3ST.cjs} +1 -1
  115. package/dist/{vue-ui-strip-plot-BFqd-S7c.js → vue-ui-strip-plot-CTVAbRx1.js} +9 -9
  116. package/dist/{vue-ui-table-CMvyMuc4.cjs → vue-ui-table-Bn0Sh_ll.cjs} +1 -1
  117. package/dist/{vue-ui-table-DtwEoIzI.js → vue-ui-table-JW8Ddbcv.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-3RSMOHkc.cjs → vue-ui-table-heatmap-CBt2T6Fi.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-C8b3pE04.js → vue-ui-table-heatmap-D_hgGOnV.js} +4 -4
  120. package/dist/{vue-ui-table-sparkline-BKOaVFtt.cjs → vue-ui-table-sparkline-CE15fs3Z.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BrqhBv29.js → vue-ui-table-sparkline-lTi-b4a9.js} +5 -5
  122. package/dist/{vue-ui-thermometer-CKgIqM5y.cjs → vue-ui-thermometer-CnOa_c88.cjs} +1 -1
  123. package/dist/{vue-ui-thermometer-DMkLvJgE.js → vue-ui-thermometer-DDaejskt.js} +5 -5
  124. package/dist/{vue-ui-timer-RA9yfgBk.js → vue-ui-timer-BTkcHF3d.js} +4 -4
  125. package/dist/{vue-ui-timer-D7fvoR77.cjs → vue-ui-timer-DFN5EbaX.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-C7y6Mbxe.cjs → vue-ui-tiremarks-CHMhRw0X.cjs} +1 -1
  127. package/dist/{vue-ui-tiremarks-B_EncUi6.js → vue-ui-tiremarks-CaCbMety.js} +5 -5
  128. package/dist/{vue-ui-treemap-CfngjVUS.cjs → vue-ui-treemap-BKRQnqlg.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-BuGZgQsr.js → vue-ui-treemap-CRGZXH3Z.js} +9 -9
  130. package/dist/vue-ui-vertical-bar-DppxsDym.cjs +4 -0
  131. package/dist/vue-ui-vertical-bar-OiHb4ABm.js +805 -0
  132. package/dist/{vue-ui-waffle-BJFbhWnA.cjs → vue-ui-waffle-CIoGXtZP.cjs} +1 -1
  133. package/dist/{vue-ui-waffle-CrxmrYsV.js → vue-ui-waffle-ChcZm0_Q.js} +55 -55
  134. package/dist/{vue-ui-wheel-BDRvKR1Z.cjs → vue-ui-wheel-BVDHANbp.cjs} +1 -1
  135. package/dist/{vue-ui-wheel-DOyC7NgR.js → vue-ui-wheel-DRgqt22e.js} +5 -5
  136. package/dist/{vue-ui-word-cloud-DBxVNlJ3.js → vue-ui-word-cloud-B2OjEeWK.js} +7 -7
  137. package/dist/{vue-ui-word-cloud-Dmcelg3z.cjs → vue-ui-word-cloud-BbAFa1J5.cjs} +1 -1
  138. package/dist/{vue-ui-xy-CVKaR90p.cjs → vue-ui-xy-6Qnf5k-u.cjs} +1 -1
  139. package/dist/{vue-ui-xy-BIbvJSh2.js → vue-ui-xy-Cf3D_9Em.js} +12 -12
  140. package/dist/{vue-ui-xy-canvas-2AaNivzI.cjs → vue-ui-xy-canvas-ZvG2lyjk.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-CXVni3kC.js → vue-ui-xy-canvas-ihJeRvA1.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/index-hKWfT7Wa.cjs +0 -4
  144. package/dist/vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs +0 -8
  145. package/dist/vue-ui-stackbar-B0dWToaf.js +0 -765
  146. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +0 -15
  147. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +0 -4
  148. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +0 -792
@@ -1,792 +0,0 @@
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
- };