vue-data-ui 2.7.2 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{Arrow-Cuf9zUpa.cjs → Arrow-CwCPcRDq.cjs} +1 -1
  2. package/dist/{Arrow-SOQeOwmT.js → Arrow-DZ9pNVTr.js} +1 -1
  3. package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-BQ6ScTsr.cjs} +1 -1
  4. package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-CdxldTMn.js} +4 -3
  5. package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-D6mp4NrH.cjs} +1 -1
  6. package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-DF9jbKW-.js} +3 -3
  7. package/dist/{DataTable-ByOfBGEi.cjs → DataTable-4qcYZrGF.cjs} +1 -1
  8. package/dist/{DataTable-C_28ZqiP.js → DataTable-BFNGlApm.js} +2 -2
  9. package/dist/{Legend-CmKaL7xe.js → Legend-B4eIw732.js} +2 -2
  10. package/dist/{Legend-mrAy7yUC.cjs → Legend-D8qnv865.cjs} +1 -1
  11. package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BZ8-AoE_.js} +1 -1
  12. package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-sCi6-fwm.cjs} +1 -1
  13. package/dist/PenAndPaper--_AE7XzJ.js +374 -0
  14. package/dist/PenAndPaper-DXiYR_ED.cjs +1 -0
  15. package/dist/{Shape-iIO-95sh.js → Shape-BQd108EW.js} +1 -1
  16. package/dist/{Shape-x7U3IhoM.cjs → Shape-BjIO2Dd_.cjs} +1 -1
  17. package/dist/{Slicer-Ct66sqV1.cjs → Slicer-B10GL6W6.cjs} +1 -1
  18. package/dist/{Slicer-C49MotZz.js → Slicer-BtX8p8CI.js} +2 -2
  19. package/dist/{Title-BgVFZwZZ.cjs → Title-DWFudmma.cjs} +1 -1
  20. package/dist/{Title-Co3F59jq.js → Title-ND4kMErl.js} +1 -1
  21. package/dist/{Tooltip-Cr89wMKa.js → Tooltip-BWe5TPIJ.js} +1 -1
  22. package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-DPqJ5wwr.cjs} +1 -1
  23. package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-DBOO7SYL.cjs} +1 -1
  24. package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-DOe_fDQ9.js} +1 -1
  25. package/dist/{img-DgRUFehB.cjs → img-BTldOAS7.cjs} +1 -1
  26. package/dist/{img-DQDP5JIH.js → img-K80BXoXO.js} +1 -1
  27. package/dist/{index-gC66Se26.js → index-B_dU_4T8.js} +1 -1
  28. package/dist/{index-BeJeDy5m.cjs → index-HGCbG8YK.cjs} +1 -1
  29. package/dist/{pdf-lJiGVhtL.js → pdf-BKSh5KBc.js} +1 -1
  30. package/dist/{pdf-Bu1ahAX2.cjs → pdf-IEdK_h03.cjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +2 -1
  33. package/dist/types/vue-data-ui.d.ts +2 -1
  34. package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-7s4Pw7x0.js} +1 -1
  35. package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-O_JTsxQj.cjs} +1 -1
  36. package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-B2PvJuo8.cjs} +1 -1
  37. package/dist/{usePrinter-KMFl0n0s.js → usePrinter-CLObTJ4a.js} +3 -3
  38. package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-Dvy8nai9.js} +60 -60
  39. package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-NmIWCiVH.cjs} +1 -1
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +1 -1
  42. package/dist/vue-ui-3d-bar-CUG7pspB.cjs +19 -0
  43. package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-Cf-VSMqf.js} +30 -30
  44. package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-C5dj9Voo.js} +3 -3
  45. package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-CSuxLH7L.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-BYHyKvk4.js} +22 -22
  47. package/dist/vue-ui-age-pyramid-qT6V3Y8O.cjs +1 -0
  48. package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-KzRsqSTn.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-clyvpxxd.js} +2 -2
  50. package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-CJL4NBSU.js} +36 -36
  51. package/dist/vue-ui-bullet-DMuibl8n.cjs +34 -0
  52. package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-1jHdWerO.js} +11 -11
  53. package/dist/vue-ui-candlestick-CMsFiP9C.cjs +2 -0
  54. package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-BCVjpGff.js} +4 -4
  55. package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-CtGRQBIN.cjs} +1 -1
  56. package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-CEQFlk-j.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-YX5q5qpY.js} +32 -32
  58. package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-DFhj3arJ.js} +44 -44
  59. package/dist/vue-ui-circle-pack-cXdePcYh.cjs +1 -0
  60. package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-DGtZLxpF.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-DwDTg8Za.js} +2 -2
  62. package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-DQ4-1OKY.js} +3 -3
  63. package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-etx_lWpJ.cjs} +1 -1
  64. package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-Crcwygqg.js} +2 -2
  65. package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-lRbvyU_i.cjs} +1 -1
  66. package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-C2h_qoIM.js} +12 -12
  67. package/dist/vue-ui-donut-DQeJn_KK.cjs +1 -0
  68. package/dist/vue-ui-donut-evolution-Dbg5HueS.cjs +1 -0
  69. package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DbzqkGBx.js} +69 -69
  70. package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BVuQjSso.js} +52 -52
  71. package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-BaYSfxY1.cjs} +1 -1
  72. package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-2FOH_Mxn.js} +75 -75
  73. package/dist/vue-ui-flow-B8NKKaa2.cjs +1 -0
  74. package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-CYt4xsc4.js} +28 -28
  75. package/dist/vue-ui-funnel-Cgm1VcJC.cjs +1 -0
  76. package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-CmmTED3N.js} +39 -39
  77. package/dist/vue-ui-galaxy-D8oPaBdc.cjs +1 -0
  78. package/dist/vue-ui-gauge-Ushp2qER.cjs +1 -0
  79. package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-vlhW2o0y.js} +26 -26
  80. package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-B16t4cjE.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-DtWADzHM.js} +3 -3
  82. package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BcNWrSYu.js} +10 -10
  83. package/dist/vue-ui-heatmap-PVrUXZ6f.cjs +1 -0
  84. package/dist/vue-ui-history-plot-D9hGmpzL.cjs +1 -0
  85. package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-aqwCckl3.js} +35 -35
  86. package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-fIEea6oo.js} +3 -3
  87. package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-zRnAot1s.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-0TKahM6o.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-CnequKa7.js} +2 -2
  90. package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-C7qRnQk-.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-bHqvHzsr.js} +45 -45
  92. package/dist/vue-ui-mood-radar-BGHGOC3W.cjs +1 -0
  93. package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-BLLnwnLw.js} +40 -40
  94. package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-C5mqI9Vf.js} +65 -65
  95. package/dist/vue-ui-nested-donuts-r9LWv_9T.cjs +17 -0
  96. package/dist/vue-ui-onion-CKJJIQO8.cjs +5 -0
  97. package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-DGU0vHXZ.js} +75 -75
  98. package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-B4tVo343.js} +38 -38
  99. package/dist/vue-ui-parallel-coordinate-plot-CTF--y5O.cjs +8 -0
  100. package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-CDZspHBg.js} +54 -54
  101. package/dist/vue-ui-quadrant-De8bmwz_.cjs +1 -0
  102. package/dist/vue-ui-quick-chart-Bi7Vdl9I.cjs +15 -0
  103. package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-baWAo-Ln.js} +9 -9
  104. package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-CG8tGSHg.js} +55 -55
  105. package/dist/vue-ui-radar-DAxiwdD4.cjs +1 -0
  106. package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-Bm6BESO1.cjs} +1 -1
  107. package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-CcMWLaSP.js} +2 -2
  108. package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-D4vD3HD_.js} +7 -7
  109. package/dist/vue-ui-relation-circle-rM2pEsYK.cjs +1 -0
  110. package/dist/vue-ui-rings-Mt51bBc5.cjs +2 -0
  111. package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-R91Q3vZF.js} +62 -62
  112. package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BKY7zeC_.js} +44 -44
  113. package/dist/vue-ui-scatter-COs46vAF.cjs +1 -0
  114. package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-BBWwBSGZ.cjs} +1 -1
  115. package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-CTZKsfWs.js} +3 -3
  116. package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-3XabGcpa.js} +2 -2
  117. package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-CZ2XNWEt.cjs} +1 -1
  118. package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-CZnUiwhV.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-Dd_5kNG9.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-CZJ8RFMM.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-DT_G3f_6.js} +4 -4
  122. package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CoGcwj8-.js} +4 -4
  123. package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-Cra2_GdA.cjs} +1 -1
  124. package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-ClJhce64.cjs} +1 -1
  125. package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-ZI-zkp6j.js} +5 -5
  126. package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-C4HvM0A7.js} +4 -4
  127. package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-Cehnojts.cjs} +1 -1
  128. package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-B6su4lbU.cjs} +1 -1
  129. package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-DbXifSgX.js} +5 -5
  130. package/dist/vue-ui-stackbar-Dxjx916g.cjs +6 -0
  131. package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-bBQdWmxo.js} +86 -86
  132. package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-BaAUPB0O.js} +36 -36
  133. package/dist/vue-ui-strip-plot-D3Mc4jJS.cjs +1 -0
  134. package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CO12Arh5.cjs} +1 -1
  135. package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-DyjampQ2.js} +1 -1
  136. package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BrXBITN7.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-DC3LbLR1.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-C-L8YXVO.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-MCUi0UPR.js} +5 -5
  140. package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-0Jw0Kc3K.js} +50 -50
  141. package/dist/vue-ui-thermometer-BbAmbpxI.cjs +1 -0
  142. package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-CgcO44Ga.cjs} +1 -1
  143. package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-D43Y73z-.js} +5 -5
  144. package/dist/vue-ui-tiremarks-B7GobiRR.cjs +1 -0
  145. package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-C2z7LZOy.js} +25 -25
  146. package/dist/vue-ui-treemap-YuZUqTkv.cjs +1 -0
  147. package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-t2jSZWbw.js} +12 -12
  148. package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-CXbzdSDN.js} +80 -80
  149. package/dist/vue-ui-vertical-bar-RH9oo9ao.cjs +4 -0
  150. package/dist/vue-ui-waffle-C6PA3aJK.cjs +1 -0
  151. package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-Z9KsaCxx.js} +45 -45
  152. package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BbBHPjUa.js} +27 -27
  153. package/dist/vue-ui-wheel-BmWfP7V3.cjs +1 -0
  154. package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-CUi3fEZc.js} +72 -72
  155. package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-DysEgxAX.cjs} +1 -1
  156. package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-B7Q6HDzu.cjs} +2 -2
  157. package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-BWN8izeD.js} +16 -16
  158. package/dist/vue-ui-xy-canvas-DZB78JsG.cjs +9 -0
  159. package/dist/vue-ui-xy-canvas-DfhloBZx.js +1672 -0
  160. package/package.json +1 -1
  161. package/dist/PenAndPaper-CmcfpltX.js +0 -243
  162. package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
  163. package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
  164. package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
  165. package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
  166. package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
  167. package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
  168. package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
  169. package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
  170. package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
  171. package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
  172. package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
  173. package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
  174. package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
  175. package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
  178. package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
  180. package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
  182. package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
  184. package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
  185. package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
  186. package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
  188. package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
  189. package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
  190. package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
  191. package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
  192. package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
  193. package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
  194. package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
  195. package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
@@ -1,19 +1,19 @@
1
1
  import { useSlots as pt, onMounted as je, computed as C, ref as g, watch as gt, onBeforeUnmount as mt, createElementBlock as y, openBlock as v, unref as m, normalizeStyle as L, normalizeClass as me, createBlock as X, createCommentVNode as _, createElementVNode as O, createVNode as ye, createSlots as yt, withCtx as x, renderSlot as $, normalizeProps as j, guardReactiveProps as Y, Fragment as ce, renderList as be, withKeys as Ye, withModifiers as ke, mergeProps as Ke, createTextVNode as de, toDisplayString as K, nextTick as bt } from "vue";
2
- import { u as kt, c as Ze, t as wt, p as S, a as Ct, b as $t, o as xt, e as Tt, d as ve, i as he, f as oe, X as _t, l as Je, G as Qe, x as et, q as Ot, r as St, y as It } from "./index-gC66Se26.js";
3
- import { _ as Nt } from "./Title-Co3F59jq.js";
4
- import { u as zt, U as Ft } from "./usePrinter-KMFl0n0s.js";
5
- import { _ as At } from "./Tooltip-Cr89wMKa.js";
6
- import { L as Pt } from "./Legend-CmKaL7xe.js";
7
- import Rt from "./vue-ui-skeleton-7Zfds6H1.js";
8
- import { D as Lt } from "./DataTable-C_28ZqiP.js";
9
- import Dt from "./vue-ui-accordion-j2beIma_.js";
2
+ import { u as kt, c as Ze, t as wt, p as S, a as Ct, b as $t, o as xt, e as Tt, d as ve, i as he, f as oe, X as _t, l as Je, G as Qe, x as et, q as Ot, r as St, y as It } from "./index-B_dU_4T8.js";
3
+ import { _ as Nt } from "./Title-ND4kMErl.js";
4
+ import { u as zt, U as Ft } from "./usePrinter-CLObTJ4a.js";
5
+ import { _ as At } from "./Tooltip-BWe5TPIJ.js";
6
+ import { L as Pt } from "./Legend-B4eIw732.js";
7
+ import Rt from "./vue-ui-skeleton-CTZKsfWs.js";
8
+ import { D as Lt } from "./DataTable-BFNGlApm.js";
9
+ import Dt from "./vue-ui-accordion-C5dj9Voo.js";
10
10
  import { t as Mt, u as Vt } from "./useResponsive-Cw4oZ8sQ.js";
11
- import { u as tt } from "./useNestedProp-BusTOV-6.js";
12
- import { _ as Bt } from "./PackageVersion-39l3KkzC.js";
13
- import { P as Ht } from "./PenAndPaper-CmcfpltX.js";
11
+ import { u as tt } from "./useNestedProp-7s4Pw7x0.js";
12
+ import { _ as Bt } from "./PackageVersion-BZ8-AoE_.js";
13
+ import { _ as Ht } from "./PenAndPaper--_AE7XzJ.js";
14
14
  import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { u as Wt } from "./useChartAccessibility-BWojgys7.js";
16
- import Et from "./BaseIcon-DqYzMisq.js";
16
+ import Et from "./BaseIcon-CdxldTMn.js";
17
17
  import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  function ot(n, r) {
19
19
  const u = n.length;
@@ -1,24 +1,24 @@
1
- import { useCssVars as ct, useSlots as ht, computed as m, ref as i, watch as Ue, onMounted as Xe, onBeforeUnmount as pt, createElementBlock as r, openBlock as u, unref as d, normalizeStyle as c, normalizeClass as A, createBlock as B, createCommentVNode as p, renderSlot as b, createVNode as Y, createSlots as ce, withCtx as k, normalizeProps as X, guardReactiveProps as E, createElementVNode as n, toDisplayString as h, Fragment as H, renderList as W, mergeProps as yt, withKeys as gt, createTextVNode as ft } from "vue";
2
- import { u as bt, c as mt, t as kt, p as R, a as _t, b as $t, o as Ee, e as K, v as N, d as he, i as le, f as D, X as wt, s as pe, w as xt, q as Ct, r as Tt, x as Lt, y as Nt } from "./index-gC66Se26.js";
3
- import { t as Pt, u as St } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Vt } from "./Title-Co3F59jq.js";
5
- import { u as It, U as Ot } from "./usePrinter-KMFl0n0s.js";
6
- import { _ as Ft } from "./Tooltip-Cr89wMKa.js";
7
- import { L as He } from "./Legend-CmKaL7xe.js";
8
- import Mt from "./vue-ui-skeleton-7Zfds6H1.js";
9
- import zt from "./BaseIcon-DqYzMisq.js";
10
- import At from "./vue-ui-accordion-j2beIma_.js";
11
- import { u as We } from "./useNestedProp-BusTOV-6.js";
12
- import { _ as Bt } from "./PackageVersion-39l3KkzC.js";
13
- import { P as Rt } from "./PenAndPaper-CmcfpltX.js";
1
+ import { useCssVars as ct, useSlots as ht, computed as m, ref as i, watch as Ue, onMounted as Xe, onBeforeUnmount as pt, createElementBlock as r, openBlock as u, unref as d, normalizeStyle as c, normalizeClass as A, createBlock as B, createCommentVNode as p, renderSlot as b, createVNode as Y, createSlots as ce, withCtx as _, normalizeProps as X, guardReactiveProps as E, createElementVNode as n, toDisplayString as h, Fragment as H, renderList as W, mergeProps as yt, withKeys as gt, createTextVNode as ft } from "vue";
2
+ import { u as bt, c as mt, t as _t, p as R, a as kt, b as $t, o as Ee, e as K, v as N, d as he, i as le, f as D, X as wt, s as pe, w as xt, q as Ct, r as Tt, x as Lt, y as Nt } from "./index-B_dU_4T8.js";
3
+ import { t as St, u as Pt } from "./useResponsive-Cw4oZ8sQ.js";
4
+ import { _ as Vt } from "./Title-ND4kMErl.js";
5
+ import { u as It, U as Ot } from "./usePrinter-CLObTJ4a.js";
6
+ import { _ as Ft } from "./Tooltip-BWe5TPIJ.js";
7
+ import { L as He } from "./Legend-B4eIw732.js";
8
+ import Mt from "./vue-ui-skeleton-CTZKsfWs.js";
9
+ import zt from "./BaseIcon-CdxldTMn.js";
10
+ import At from "./vue-ui-accordion-C5dj9Voo.js";
11
+ import { u as We } from "./useNestedProp-7s4Pw7x0.js";
12
+ import { _ as Bt } from "./PackageVersion-BZ8-AoE_.js";
13
+ import { _ as Rt } from "./PenAndPaper--_AE7XzJ.js";
14
14
  import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as Ge } from "./Shape-iIO-95sh.js";
15
+ import { _ as Ge } from "./Shape-BQd108EW.js";
16
16
  import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "height"], jt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Kt = { key: 1 }, Jt = ["x", "y", "width", "height", "fill", "rx"], Qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Zt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ea = ["x2", "y1", "y2", "stroke", "stroke-width"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], la = ["x", "y", "font-size", "fill", "font-weight"], oa = ["x", "y", "font-size", "fill", "font-weight"], na = ["x", "y", "font-size", "fill", "font-weight"], ua = ["y", "width", "height", "fill", "onMouseenter"], sa = {
19
19
  key: 6,
20
20
  class: "vue-data-ui-watermark"
21
- }, ra = ["onClick"], ia = { style: "width:100%;padding-top: 36px;position:relative" }, da = { class: "vue-ui-data-table" }, va = { key: 0 }, ca = { style: { width: "100%" } }, ha = ["data-cell"], pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = ["data-cell"], ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, _a = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wa = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = ["data-cell"], Ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = {
21
+ }, ra = ["onClick"], ia = { style: "width:100%;padding-top: 36px;position:relative" }, da = { class: "vue-ui-data-table" }, va = { key: 0 }, ca = { style: { width: "100%" } }, ha = ["data-cell"], pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wa = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = ["data-cell"], Ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = {
22
22
  __name: "vue-ui-vertical-bar",
23
23
  props: {
24
24
  config: {
@@ -42,7 +42,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
42
42
  const { vue_ui_vertical_bar: Ke } = bt(), Je = ht(), T = je, J = m(() => !!T.dataset && T.dataset.length), C = i(mt()), Qe = i(null), oe = i(!1), ne = i(""), Q = i(0), Ze = i(null), ye = i(0), G = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), et = Ye, e = m({
43
43
  get: () => we(),
44
44
  set: (a) => a
45
- }), { userOptionsVisible: re, setUserOptionsVisibility: ke, keepUserOptionState: _e } = Dt({ config: e.value }), { svgRef: $e } = Ut({ config: e.value.style.chart.title });
45
+ }), { userOptionsVisible: re, setUserOptionsVisibility: _e, keepUserOptionState: ke } = Dt({ config: e.value }), { svgRef: $e } = Ut({ config: e.value.style.chart.title });
46
46
  function we() {
47
47
  const a = We({
48
48
  userConfig: T.config,
@@ -50,10 +50,10 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
50
50
  });
51
51
  return a.theme ? {
52
52
  ...We({
53
- userConfig: _t.vue_ui_vertical_bar[a.theme] || T.config,
53
+ userConfig: kt.vue_ui_vertical_bar[a.theme] || T.config,
54
54
  defaultConfig: a
55
55
  }),
56
- customPalette: kt[a.theme] || R
56
+ customPalette: _t[a.theme] || R
57
57
  } : a;
58
58
  }
59
59
  Ue(() => T.config, (a) => {
@@ -63,7 +63,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
63
63
  elementId: `vue-ui-vertical-bar_${C.value}`,
64
64
  fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
65
65
  options: e.value.userOptions.print
66
- }), tt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = m(() => $t(e.value.customPalette)), Pe = i(null), Se = i(!1), at = m(() => e.value.table.responsiveBreakpoint), Z = i(null);
66
+ }), tt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = m(() => $t(e.value.customPalette)), Se = i(null), Pe = i(!1), at = m(() => e.value.table.responsiveBreakpoint), Z = i(null);
67
67
  Xe(() => {
68
68
  Ve();
69
69
  });
@@ -72,8 +72,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
72
72
  componentName: "VueUiVerticalBar",
73
73
  type: "dataset"
74
74
  }), Q.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), lt(), e.value.responsive) {
75
- const a = Pt(() => {
76
- const { width: l, height: t } = St({
75
+ const a = St(() => {
76
+ const { width: l, height: t } = Pt({
77
77
  chart: G.value,
78
78
  title: e.value.style.chart.title.text ? ge.value : null,
79
79
  legend: e.value.style.chart.legend.show ? ue.value : null,
@@ -93,9 +93,9 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
93
93
  function lt() {
94
94
  new ResizeObserver((l) => {
95
95
  l.forEach((t) => {
96
- Se.value = t.contentRect.width < at.value;
96
+ Pe.value = t.contentRect.width < at.value;
97
97
  });
98
- }).observe(Pe.value);
98
+ }).observe(Se.value);
99
99
  }
100
100
  const $ = i({
101
101
  showTable: e.value.table.show,
@@ -120,19 +120,19 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
120
120
  });
121
121
  }));
122
122
  }), T.dataset.map((a, l) => {
123
- const t = `vertical_parent_${l}_${C.value}`, o = a.children && a.children.length > 0, _ = N(a.value ? a.value : o ? a.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = _ >= 0 ? 1 : -1;
123
+ const t = `vertical_parent_${l}_${C.value}`, o = a.children && a.children.length > 0, k = N(a.value ? a.value : o ? a.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = k >= 0 ? 1 : -1;
124
124
  return {
125
125
  ...a,
126
126
  id: t,
127
127
  absoluteIndex: l,
128
128
  shape: "square",
129
- opacity: P.value.includes(t) ? 0.5 : 1,
130
- value: Math.abs(_),
129
+ opacity: S.value.includes(t) ? 0.5 : 1,
130
+ value: Math.abs(k),
131
131
  sign: f,
132
132
  hasChildren: o,
133
133
  isChild: !1,
134
134
  segregate: () => j(t),
135
- isSegregated: P.value.includes(t),
135
+ isSegregated: S.value.includes(t),
136
136
  color: he(a.color) || Ne.value[l] || R[l] || R[l % R.length],
137
137
  children: !a.children || !a.children.length ? [] : a.children.toSorted(te.value ? () => 0 : (x, V) => Ie.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
138
138
  ...x,
@@ -142,7 +142,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
142
142
  isChild: !0,
143
143
  parentId: t,
144
144
  parentName: a.name,
145
- parentValue: _,
145
+ parentValue: k,
146
146
  parentSign: f,
147
147
  id: `vertical_child_${l}_${V}_${C.value}`,
148
148
  childIndex: V,
@@ -180,17 +180,17 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
180
180
  function ee() {
181
181
  Q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
182
182
  }
183
- const P = i([]);
183
+ const S = i([]);
184
184
  function j(a) {
185
- P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), et("selectLegend", F.value);
185
+ S.value.includes(a) ? S.value = S.value.filter((l) => l !== a) : S.value.push(a), ee(), et("selectLegend", F.value);
186
186
  }
187
- const F = m(() => O.value.filter((a) => !P.value.includes(a.id))), S = m(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
187
+ const F = m(() => O.value.filter((a) => !S.value.includes(a.id))), P = m(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
188
188
  function Me(a, l = !1, t = 0) {
189
189
  return l ? D({
190
- v: N(Math.abs(a) / S.value * 100),
190
+ v: N(Math.abs(a) / P.value * 100),
191
191
  s: "%",
192
192
  r: t
193
- }) : Math.abs(a) / S.value;
193
+ }) : Math.abs(a) / P.value;
194
194
  }
195
195
  const M = m(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), z = m(() => M.value.map((a) => a.sign).includes(-1)), nt = m(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
196
196
  function w(a) {
@@ -201,12 +201,12 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
201
201
  return w(a) + s.value.left;
202
202
  }
203
203
  function q(a, l) {
204
- const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, _ = t.children.length * (g.value + v.value);
204
+ const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, k = t.children.length * (g.value + v.value);
205
205
  return {
206
- y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
206
+ y: o + k / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
207
207
  name: t.name,
208
208
  value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
209
- percentageToTotal: isNaN(t.value / S.value) ? "" : Me(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
209
+ percentageToTotal: isNaN(t.value / P.value) ? "" : Me(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
210
210
  sign: t.sign
211
211
  };
212
212
  }
@@ -222,7 +222,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
222
222
  config: e.value
223
223
  }, oe.value = !0, ie.value = a.id;
224
224
  let t = "";
225
- const o = a.isChild ? a.parentName : a.name, _ = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
225
+ const o = a.isChild ? a.parentName : a.name, k = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
226
226
  Lt(f) && Nt(() => f({
227
227
  datapoint: a,
228
228
  series: O.value,
@@ -235,7 +235,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
235
235
  seriesIndex: l
236
236
  }) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
237
237
  <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${Je.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
238
- ${_ ? `<div>${_}</div>` : ""}
238
+ ${k ? `<div>${k}</div>` : ""}
239
239
  </div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${le(
240
240
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
241
241
  a.sign === 1 ? a.value : -a.value,
@@ -247,7 +247,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
247
247
  }),
248
248
  { datapoint: a, seriesIndex: l }
249
249
  )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${D({
250
- v: Math.abs(a.value) / S.value * 100,
250
+ v: Math.abs(a.value) / P.value * 100,
251
251
  s: "%",
252
252
  r: e.value.style.chart.tooltip.roundingPercentage
253
253
  })}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${D({
@@ -259,7 +259,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
259
259
  function ze(a, l, t, o) {
260
260
  if (!e.value.style.chart.layout.bars.dataLabels.value.show)
261
261
  return "";
262
- const _ = le(
262
+ const k = le(
263
263
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
264
264
  N(o === -1 && a >= 0 ? -a : a),
265
265
  D({
@@ -270,7 +270,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
270
270
  }),
271
271
  { datapoint: l, seriesIndex: t }
272
272
  ), f = `(${Me(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
273
- return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
273
+ return `${k}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
274
274
  }
275
275
  const L = m(() => {
276
276
  const a = [
@@ -285,11 +285,11 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
285
285
  color: t.color,
286
286
  parentName: t.parentName,
287
287
  parentValue: t.parentValue,
288
- percentageToTotal: t.parentValue / S.value,
288
+ percentageToTotal: t.parentValue / P.value,
289
289
  childName: t.name,
290
290
  childValue: t.sign === 1 ? t.value : -t.value,
291
291
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
292
- childPercentageToTotal: Math.abs(t.value) / S.value
292
+ childPercentageToTotal: Math.abs(t.value) / P.value
293
293
  } : {
294
294
  color: "",
295
295
  parentName: "",
@@ -298,12 +298,12 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
298
298
  childName: t.name,
299
299
  childValue: t.sign === 1 ? t.value : -t.value,
300
300
  childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
301
- childPercentageToTotal: Math.abs(t.value) / S.value
301
+ childPercentageToTotal: Math.abs(t.value) / P.value
302
302
  } : {
303
303
  color: t.color,
304
304
  parentName: t.name,
305
305
  parentValue: t.sign === 1 ? t.value : -t.value,
306
- percentageToTotal: Math.abs(t.value) / S.value,
306
+ percentageToTotal: Math.abs(t.value) / P.value,
307
307
  childName: "",
308
308
  childValue: "",
309
309
  childPercentageToParent: "",
@@ -320,8 +320,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
320
320
  f.childValue,
321
321
  f.childPercentageToParent,
322
322
  f.childPercentageToTotal
323
- ]), o = a.concat([l]).concat(t), _ = Ct(o);
324
- Tt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
323
+ ]), o = a.concat([l]).concat(t), k = Ct(o);
324
+ Tt({ csvContent: k, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
325
325
  }
326
326
  const U = i(!1);
327
327
  function it(a) {
@@ -372,8 +372,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
372
372
  ref: G,
373
373
  id: `vue-ui-vertical-bar_${C.value}`,
374
374
  style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
375
- onMouseenter: l[5] || (l[5] = () => d(ke)(!0)),
376
- onMouseleave: l[6] || (l[6] = () => d(ke)(!1))
375
+ onMouseenter: l[5] || (l[5] = () => d(_e)(!0)),
376
+ onMouseleave: l[6] || (l[6] = () => d(_e)(!1))
377
377
  }, [
378
378
  e.value.userOptions.buttons.annotator ? (u(), B(Rt, {
379
379
  key: 0,
@@ -410,7 +410,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
410
410
  }
411
411
  }, null, 8, ["config"]))
412
412
  ], 512)) : p("", !0),
413
- e.value.userOptions.show && J.value && (d(_e) || d(re)) ? (u(), B(Ot, {
413
+ e.value.userOptions.show && J.value && (d(ke) || d(re)) ? (u(), B(Ot, {
414
414
  ref_key: "details",
415
415
  ref: Qe,
416
416
  key: `user_options_${ye.value}`,
@@ -442,75 +442,75 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
442
442
  onToggleTooltip: De,
443
443
  onToggleAnnotator: ve,
444
444
  style: c({
445
- visibility: d(_e) ? d(re) ? "visible" : "hidden" : "visible"
445
+ visibility: d(ke) ? d(re) ? "visible" : "hidden" : "visible"
446
446
  })
447
447
  }, ce({ _: 2 }, [
448
448
  a.$slots.menuIcon ? {
449
449
  name: "menuIcon",
450
- fn: k(({ isOpen: t, color: o }) => [
450
+ fn: _(({ isOpen: t, color: o }) => [
451
451
  b(a.$slots, "menuIcon", X(E({ isOpen: t, color: o })), void 0, !0)
452
452
  ]),
453
453
  key: "0"
454
454
  } : void 0,
455
455
  a.$slots.optionTooltip ? {
456
456
  name: "optionTooltip",
457
- fn: k(() => [
457
+ fn: _(() => [
458
458
  b(a.$slots, "optionTooltip", {}, void 0, !0)
459
459
  ]),
460
460
  key: "1"
461
461
  } : void 0,
462
462
  a.$slots.optionPdf ? {
463
463
  name: "optionPdf",
464
- fn: k(() => [
464
+ fn: _(() => [
465
465
  b(a.$slots, "optionPdf", {}, void 0, !0)
466
466
  ]),
467
467
  key: "2"
468
468
  } : void 0,
469
469
  a.$slots.optionCsv ? {
470
470
  name: "optionCsv",
471
- fn: k(() => [
471
+ fn: _(() => [
472
472
  b(a.$slots, "optionCsv", {}, void 0, !0)
473
473
  ]),
474
474
  key: "3"
475
475
  } : void 0,
476
476
  a.$slots.optionImg ? {
477
477
  name: "optionImg",
478
- fn: k(() => [
478
+ fn: _(() => [
479
479
  b(a.$slots, "optionImg", {}, void 0, !0)
480
480
  ]),
481
481
  key: "4"
482
482
  } : void 0,
483
483
  a.$slots.optionTable ? {
484
484
  name: "optionTable",
485
- fn: k(() => [
485
+ fn: _(() => [
486
486
  b(a.$slots, "optionTable", {}, void 0, !0)
487
487
  ]),
488
488
  key: "5"
489
489
  } : void 0,
490
490
  a.$slots.optionLabels ? {
491
491
  name: "optionLabels",
492
- fn: k(() => [
492
+ fn: _(() => [
493
493
  b(a.$slots, "optionLabels", {}, void 0, !0)
494
494
  ]),
495
495
  key: "6"
496
496
  } : void 0,
497
497
  a.$slots.optionSort ? {
498
498
  name: "optionSort",
499
- fn: k(() => [
499
+ fn: _(() => [
500
500
  b(a.$slots, "optionSort", {}, void 0, !0)
501
501
  ]),
502
502
  key: "7"
503
503
  } : void 0,
504
504
  a.$slots.optionFullscreen ? {
505
505
  name: "optionFullscreen",
506
- fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
506
+ fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
507
507
  b(a.$slots, "optionFullscreen", X(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
508
508
  ]),
509
509
  key: "8"
510
510
  } : void 0,
511
511
  a.$slots.optionAnnotator ? {
512
512
  name: "optionAnnotator",
513
- fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
513
+ fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
514
514
  b(a.$slots, "optionAnnotator", X(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
515
515
  ]),
516
516
  key: "9"
@@ -527,10 +527,10 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
527
527
  config: Oe.value,
528
528
  onClickMarker: l[0] || (l[0] = ({ legend: t }) => j(t.id))
529
529
  }, ce({
530
- item: k(({ legend: t, index: o }) => [
530
+ item: _(({ legend: t, index: o }) => [
531
531
  n("div", {
532
- onClick: (_) => j(t.id),
533
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
532
+ onClick: (k) => j(t.id),
533
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
534
534
  }, h(t.name) + ": " + h(d(le)(
535
535
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
536
536
  t.value,
@@ -547,7 +547,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
547
547
  }, [
548
548
  a.$slots.pattern ? {
549
549
  name: "legend-pattern",
550
- fn: k(({ legend: t, index: o }) => [
550
+ fn: _(({ legend: t, index: o }) => [
551
551
  Y(Ge, {
552
552
  shape: t.shape,
553
553
  radius: 30,
@@ -699,8 +699,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
699
699
  width: y.value.width <= 0 ? 1e-4 : y.value.width,
700
700
  height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
701
701
  fill: ie.value === t.id ? d(pe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
702
- onMouseenter: (_) => rt(t, o),
703
- onMouseleave: l[1] || (l[1] = (_) => {
702
+ onMouseenter: (k) => rt(t, o),
703
+ onMouseleave: l[1] || (l[1] = (k) => {
704
704
  Ze.value = null, oe.value = !1, ie.value = null;
705
705
  })
706
706
  }, null, 40, ua)
@@ -736,10 +736,10 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
736
736
  config: Oe.value,
737
737
  onClickMarker: l[2] || (l[2] = ({ legend: t }) => j(t.id))
738
738
  }, ce({
739
- item: k(({ legend: t, index: o }) => [
739
+ item: _(({ legend: t, index: o }) => [
740
740
  n("div", {
741
- onClick: (_) => j(t.id),
742
- style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
741
+ onClick: (k) => j(t.id),
742
+ style: c(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
743
743
  }, h(t.name) + ": " + h(d(le)(
744
744
  e.value.style.chart.layout.bars.dataLabels.value.formatter,
745
745
  t.value,
@@ -756,7 +756,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
756
756
  }, [
757
757
  a.$slots.pattern ? {
758
758
  name: "legend-pattern",
759
- fn: k(({ legend: t, index: o }) => [
759
+ fn: _(({ legend: t, index: o }) => [
760
760
  Y(Ge, {
761
761
  shape: t.shape,
762
762
  radius: 30,
@@ -779,7 +779,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
779
779
  b(a.$slots, "source", {}, void 0, !0)
780
780
  ], 512)) : p("", !0),
781
781
  Y(Ft, {
782
- show: $.value.showTooltip && oe.value && P.value.length < T.dataset.length,
782
+ show: $.value.showTooltip && oe.value && S.value.length < T.dataset.length,
783
783
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
784
784
  color: e.value.style.chart.tooltip.color,
785
785
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -794,10 +794,10 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
794
794
  isFullscreen: U.value,
795
795
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
796
796
  }, {
797
- "tooltip-before": k(() => [
797
+ "tooltip-before": _(() => [
798
798
  b(a.$slots, "tooltip-before", X(E({ ...de.value })), void 0, !0)
799
799
  ]),
800
- "tooltip-after": k(() => [
800
+ "tooltip-after": _(() => [
801
801
  b(a.$slots, "tooltip-after", X(E({ ...de.value })), void 0, !0)
802
802
  ]),
803
803
  _: 3
@@ -818,10 +818,10 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
818
818
  }
819
819
  }
820
820
  }, {
821
- content: k(() => [
821
+ content: _(() => [
822
822
  n("div", {
823
823
  ref_key: "tableContainer",
824
- ref: Pe,
824
+ ref: Se,
825
825
  class: "vue-ui-vertical-bar-table atom-data-table"
826
826
  }, [
827
827
  n("div", ia, [
@@ -840,7 +840,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
840
840
  ], 36),
841
841
  n("div", {
842
842
  style: { width: "100%", "container-type": "inline-size" },
843
- class: A({ "vue-ui-responsive": Se.value })
843
+ class: A({ "vue-ui-responsive": Pe.value })
844
844
  }, [
845
845
  n("table", da, [
846
846
  n("caption", {
@@ -867,7 +867,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
867
867
  }, null, 4),
868
868
  n("th", {
869
869
  style: c(`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`)
870
- }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
870
+ }, "∑ " + h(e.value.table.td.prefix) + h(isNaN(P.value) ? "" : P.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
871
871
  n("th", {
872
872
  style: c(`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`)
873
873
  }, "100%", 4),
@@ -922,7 +922,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
922
922
  style: c(`outline:${e.value.table.td.outline}`),
923
923
  "data-cell": L.value.head[3] ?? ""
924
924
  }, [
925
- n("div", ka, h(t.childName), 1)
925
+ n("div", _a, h(t.childName), 1)
926
926
  ], 12, ma),
927
927
  n("td", {
928
928
  class: "vue-ui-data-table__tbody__td",
@@ -930,7 +930,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
930
930
  "data-cell": L.value.head[4] ?? ""
931
931
  }, [
932
932
  n("div", $a, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
933
- ], 12, _a),
933
+ ], 12, ka),
934
934
  n("td", {
935
935
  class: "vue-ui-data-table__tbody__td",
936
936
  style: c(`outline:${e.value.table.td.outline}`),
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-HGCbG8YK.cjs"),ge=require("./useResponsive-DQmBAoBf.cjs"),Re=require("./Title-DWFudmma.cjs"),me=require("./usePrinter-B2PvJuo8.cjs"),qe=require("./Tooltip-DPqJ5wwr.cjs"),be=require("./Legend-D8qnv865.cjs"),Ue=require("./vue-ui-skeleton-BBWwBSGZ.cjs"),He=require("./BaseIcon-BQ6ScTsr.cjs"),Xe=require("./vue-ui-accordion-CSuxLH7L.cjs"),ke=require("./useNestedProp-O_JTsxQj.cjs"),je=require("./PackageVersion-sCi6-fwm.cjs"),We=require("./PenAndPaper-DXiYR_ED.cjs"),Ge=require("./useUserOptionState-BgepsfED.cjs"),Ce=require("./Shape-BjIO2Dd_.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Qe=["onClick"],Ze=["xmlns","viewBox"],et=["width","height"],tt=["id"],lt=["stop-color"],at=["stop-color"],ot={key:1},nt=["x","y","width","height","fill","rx"],rt=["x","y","width","height","fill","rx","stroke","stroke-width"],ut=["x","y","width","height","fill","rx","stroke","stroke-width"],st=["x2","y1","y2","stroke","stroke-width"],it=["x1","x2","y1","y2","stroke","stroke-width"],ct=["x","y","text-anchor","font-size","fill","font-weight"],dt=["x","y","font-size","fill","font-weight"],vt=["x","y","font-size","fill","font-weight"],ht=["x","y","font-size","fill","font-weight"],pt=["y","width","height","fill","onMouseenter"],yt={key:6,class:"vue-data-ui-watermark"},ft=["onClick"],gt={style:"width:100%;padding-top: 36px;position:relative"},mt={class:"vue-ui-data-table"},bt={key:0},kt={style:{width:"100%"}},Ct=["data-cell"],_t={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xt=["data-cell"],wt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nt=["data-cell"],$t={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},St=["data-cell"],Vt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Tt=["data-cell"],Bt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Et=["data-cell"],Lt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Pt=["data-cell"],zt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Dt={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(_e,{expose:xe,emit:we}){e.useCssVars(a=>({a6ba6a4e:a.tdo}));const{vue_ui_vertical_bar:Ne}=n.useConfig(),$e=e.useSlots(),g=_e,E=e.computed(()=>!!g.dataset&&g.dataset.length),f=e.ref(n.createUid()),Se=e.ref(null),F=e.ref(!1),I=e.ref(""),L=e.ref(0),Ve=e.ref(null),X=e.ref(0),V=e.ref(null),j=e.ref(null),M=e.ref(null),W=e.ref(null),G=e.ref(null),Y=e.ref(0),A=e.ref(0),Te=we,t=e.computed({get:()=>Z(),set:a=>a}),{userOptionsVisible:R,setUserOptionsVisibility:K,keepUserOptionState:J}=Ge.useUserOptionState({config:t.value}),{svgRef:Q}=Ye.useChartAccessibility({config:t.value.style.chart.title});function Z(){const a=ke.useNestedProp({userConfig:g.config,defaultConfig:Ne});return a.theme?{...ke.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||g.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}e.watch(()=>g.config,a=>{t.value=Z(),R.value=!t.value.userOptions.showOnChartHover,ue(),Y.value+=1,A.value+=1,s.value=t.value.style.chart.layout.bars.height,c.value=t.value.style.chart.layout.bars.gap,h.value.showTable=t.value.table.show,h.value.sortDesc=t.value.style.chart.layout.bars.sort==="desc",h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),e.watch(()=>g.dataset,z,{deep:!0});const{isPrinting:ee,isImaging:te,generatePdf:le,generateImage:ae}=me.usePrinter({elementId:`vue-ui-vertical-bar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar",options:t.value.userOptions.print}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),oe=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),ne=e.ref(null),re=e.ref(!1),Ee=e.computed(()=>t.value.table.responsiveBreakpoint),P=e.ref(null);e.onMounted(()=>{ue()});function ue(){if(n.objectIsEmpty(g.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),L.value=g.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),Le(),t.value.responsive){const a=ge.throttle(()=>{const{width:o,height:l}=ge.useResponsive({chart:V.value,title:t.value.style.chart.title.text?j.value:null,legend:t.value.style.chart.legend.show?M.value:null,source:W.value,noTitle:G.value});requestAnimationFrame(()=>{ce.value=o,s.value=l/L.value-c.value*2})});P.value=new ResizeObserver(a),P.value.observe(V.value.parentNode)}}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});function Le(){new ResizeObserver(o=>{o.forEach(l=>{re.value=l.contentRect.width<Ee.value})}).observe(ne.value)}const h=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),se=e.computed(()=>h.value.sortDesc),x=e.computed(()=>(g.dataset.forEach((a,o)=>{!a.value&&!a.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),a.children&&(n.objectIsEmpty(a.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,r)=>{[null,void 0].includes(l.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),g.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${f.value}`,r=a.children&&a.children.length>0,v=n.checkNaN(a.value?a.value:r?a.children.map(y=>y.value||0).reduce((y,C)=>y+C,0):0),d=v>=0?1:-1;return{...a,id:l,absoluteIndex:o,shape:"square",opacity:b.value.includes(l)?.5:1,value:Math.abs(v),sign:d,hasChildren:r,isChild:!1,segregate:()=>T(l),isSegregated:b.value.includes(l),color:n.convertColorToHex(a.color)||oe.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted(D.value?()=>0:(y,C)=>se.value?C.value-y.value:y.value-C.value).map((y,C)=>({...y,value:n.checkNaN(Math.abs(y.value)),absoluteIndex:o,sign:y.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:v,parentSign:d,id:`vertical_child_${o}_${C}_${f.value}`,childIndex:C,color:n.convertColorToHex(y.color)||n.convertColorToHex(a.color)||oe.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((y,C)=>({...y,isFirstChild:C===0,isLastChild:C===a.children.length-1}))}}).toSorted(D.value?()=>0:(a,o)=>se.value?o.value-a.value:a.value-o.value))),ie=e.computed(()=>({cy:"vertical-bar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),s=e.ref(t.value.style.chart.layout.bars.height),c=e.ref(t.value.style.chart.layout.bars.gap),Pe=e.computed(()=>(s.value+c.value)*L.value),ce=e.ref(512),i=e.computed(()=>({width:ce.value,height:Pe.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:i.value.padding.top+i.value.padding.bottom+i.value.height,top:i.value.padding.top,left:i.value.padding.left,right:i.value.width-i.value.padding.right,bottom:i.value.padding.top+i.value.height,width:i.value.width-(i.value.padding.left+i.value.padding.right)}));function z(){L.value=w.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const b=e.ref([]);function T(a){b.value.includes(a)?b.value=b.value.filter(o=>o!==a):b.value.push(a),z(),Te("selectLegend",w.value)}const w=e.computed(()=>x.value.filter(a=>!b.value.includes(a.id))),k=e.computed(()=>w.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function de(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/k.value*100),s:"%",r:l}):Math.abs(a)/k.value}const N=e.computed(()=>w.value.flatMap(a=>a.hasChildren?a.children:a)),$=e.computed(()=>N.value.map(a=>a.sign).includes(-1)),ze=e.computed(()=>Math.max(...w.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function p(a){const o=a/ze.value;return u.value.width/($.value?2:1)*o}function De(a){return p(a)+u.value.left}function B(a,o){const l=w.value.find(d=>d.id===a.parentId),r=u.value.top+(c.value+s.value)*o,v=l.children.length*(c.value+s.value);return{y:r+v/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/k.value)?"":de(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function Oe(){return w.value}const q=e.ref(null),U=e.ref(null);function Fe(a,o){U.value={datapoint:a,seriesIndex:o,series:x.value,config:t.value},F.value=!0,q.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,v=a.isChild?a.name:"",d=t.value.style.chart.tooltip.customFormat;n.isFunction(d)&&n.functionReturnsString(()=>d({datapoint:a,series:x.value,config:t.value,seriesIndex:o}))?I.value=d({datapoint:a,series:x.value,config:t.value,seriesIndex:o}):(l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
2
+ <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${$e.pattern?`<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${f.value}_${a.absoluteIndex})"/>`:""}</svg> ${r}</div>
3
+ ${v?`<div>${v}</div>`:""}
4
+ </div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(a.value)/k.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),I.value=`<div style="text-align:left">${l}</div>`)}function ve(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&a>=0?-a:a),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&a>=0?-a:a),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),d=`(${de(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${d}`:""}`}const m=e.computed(()=>{const a=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=N.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/k.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/k.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/k.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/k.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function he(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=m.value.head,l=m.value.body.map(d=>[d.parentName,d.parentValue,d.percentageToTotal,d.childName,d.childValue,d.childPercentageToParent,d.childPercentageToTotal]),r=a.concat([o]).concat(l),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function Ie(a){S.value=a,X.value+=1}function pe(){h.value.showTable=!h.value.showTable}const Me=e.ref({none:0,asc:1,desc:2}),_=e.ref(0),D=e.ref(!1);e.onMounted(()=>{["none","asc","desc"].includes(t.value.style.chart.layout.bars.sort)||n.error({componentName:"VueUiVerticalBar",type:"attributeWrongValue",property:"style.chart.layout.bars.sort",key:t.value.style.chart.layout.bars.sort}),_.value=Me.value[t.value.style.chart.layout.bars.sort],h.value.sortDesc=_.value===2,D.value=_.value===0});function Ae(){_.value+=1,_.value>2&&(_.value=0)}function ye(){Ae(),h.value.sortDesc=_.value===2,D.value=_.value===0,z()}function fe(){h.value.showTooltip=!h.value.showTooltip}const O=e.ref(!1);function H(){O.value=!O.value}return xe({getData:Oe,recalculateHeight:z,generatePdf:le,generateCsv:he,generateImage:ae,toggleTable:pe,toggleSort:ye,toggleTooltip:fe,toggleAnnotator:H}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${S.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:V,id:`vue-ui-vertical-bar_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:o[5]||(o[5]=()=>e.unref(K)(!0)),onMouseleave:o[6]||(o[6]=()=>e.unref(K)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(We._sfc_main,{key:0,svgRef:e.unref(Q),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:O.value,onClose:H},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:G,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:j,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Re._sfc_main,{key:`title_${Y.value}`,config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&E.value&&(e.unref(J)||e.unref(R))?(e.openBlock(),e.createBlock(me.UserOptions,{ref_key:"details",ref:Se,key:`user_options_${X.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(te),isPrinting:e.unref(ee),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,isTooltip:h.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:V.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:O.value,onToggleFullscreen:Ie,onGeneratePdf:e.unref(le),onGenerateCsv:he,onGenerateImage:e.unref(ae),onToggleTable:pe,onToggleSort:ye,onToggleTooltip:fe,onToggleAnnotator:H,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:r})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:r})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"7"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"8"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"9"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"chartLegend",ref:M},[(e.openBlock(),e.createBlock(be.Legend,{key:`legend_top_${A.value}`,legendSet:x.value,config:ie.value,onClickMarker:o[0]||(o[0]=({legend:l})=>T(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>T(l.id),style:e.normalizeStyle(`opacity:${b.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Qe)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(Ce._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${f.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:Q,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(je._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:i.value.width<=0?10:i.value.width,height:u.value.fullHeight<=0?10:u.value.fullHeight,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,et)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,lt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.03),100-t.value.style.chart.layout.bars.gradientIntensity)},null,8,at)],8,tt))),256)),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,l=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:l.absoluteIndex,patternId:`pattern_${f.value}_${l.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,nt)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.bars.fillOpacity),rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,rt),a.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:0,x:e.unref(n.checkNaN)($.value?u.value.left+u.value.width/2-(l.sign===1?0:p(l.value)<=0?1e-4:p(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(p(l.value)<=0?1e-4:p(l.value)),height:s.value<=0?1e-4:s.value,fill:`url(#pattern_${f.value}_${l.absoluteIndex})`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,ut)):e.createCommentVNode("",!0),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==N.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:1,x1:0,x2:u.value.left,y1:s.value+c.value/2+u.value.top+(c.value+s.value)*r,y2:s.value+c.value/2+u.value.top+(c.value+s.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,st)):e.createCommentVNode("",!0),$.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,it)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:$.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):De(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!$.value||l.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(ve(l.value,l,r,l.sign)),9,ct),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,dt)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:B(l,r).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(B(l,r).name),9,vt)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:B(l,r).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(ve(B(l,r).value),B(l,r),r,l.parentSign||l.sign),9,ht)):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:0,y:u.value.top+(c.value+s.value)*r-c.value/2,width:i.value.width<=0?1e-4:i.value.width,height:s.value+c.value<=0?1e-4:s.value+c.value,fill:q.value===l.id?e.unref(n.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity):"transparent",onMouseenter:v=>Fe(l,r),onMouseleave:o[1]||(o[1]=v=>{Ve.value=null,F.value=!1,q.value=null})},null,40,pt)]))),256)),e.renderSlot(a.$slots,"svg",{svg:i.value},void 0,!0)],14,Ze)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",yt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ee)||e.unref(te)})),void 0,!0)])):e.createCommentVNode("",!0),E.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ue.default,{key:7,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"chartLegend",ref:M},[(e.openBlock(),e.createBlock(be.Legend,{key:`legend_bottom_${A.value}`,legendSet:x.value,config:ie.value,onClickMarker:o[2]||(o[2]=({legend:l})=>T(l.id))},e.createSlots({item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>T(l.id),style:e.normalizeStyle(`opacity:${b.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,ft)]),_:2},[a.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:r})=>[e.createVNode(Ce._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${f.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:x.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:W,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(qe._sfc_main,{show:h.value.showTooltip&&F.value&&b.value.length<g.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:V.value,content:I.value,isFullscreen:S.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...U.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),E.value?(e.openBlock(),e.createBlock(Xe.default,{key:10,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:ne,class:"vue-ui-vertical-bar-table atom-data-table"},[e.createElementVNode("div",gt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`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:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=l=>h.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>h.value.showTable=!1,["enter"]))},[e.createVNode(He.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":re.value})},[e.createElementVNode("table",mt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",bt,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",kt,e.toDisplayString(l),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(k.value)?"":k.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.body,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":m.value.head[0]??""},[e.createElementVNode("div",_t,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),1)])],12,Ct),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[1]??""},[e.createElementVNode("div",wt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,xt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[2]??""},[e.createElementVNode("div",$t,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Nt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[3]??""},[e.createElementVNode("div",Vt,e.toDisplayString(l.childName),1)],12,St),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[4]??""},[e.createElementVNode("div",Bt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,Tt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[5]??""},[e.createElementVNode("div",Lt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Et),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":m.value.head[6]??""},[e.createElementVNode("div",zt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Pt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Je))}},Ot=Ke._export_sfc(Dt,[["__scopeId","data-v-3535bb6b"]]);exports.default=Ot;