vue-data-ui 2.3.33 → 2.3.35

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 (146) hide show
  1. package/dist/{Arrow-CUxfM_Pi.js → Arrow-8mqCdt3k.js} +1 -1
  2. package/dist/{Arrow-U-GXPs_S.cjs → Arrow-CpYzSez5.cjs} +1 -1
  3. package/dist/{BaseIcon-Cq04T7KZ.js → BaseIcon-CMupjPIL.js} +1 -1
  4. package/dist/{BaseIcon-DsmnhCxw.cjs → BaseIcon-CT8Dwu1Z.cjs} +1 -1
  5. package/dist/{DataTable-COtc9-N3.js → DataTable-B0X2-yfv.js} +2 -2
  6. package/dist/{DataTable-i6_WDL4K.cjs → DataTable-IBRk_0ke.cjs} +1 -1
  7. package/dist/{Legend-Bj_2LeEE.js → Legend-BMIo55xY.js} +1 -1
  8. package/dist/{Legend-B_gotRVB.cjs → Legend-D5SQLQPQ.cjs} +1 -1
  9. package/dist/{Shape-J2c5E_YE.js → Shape-DWqG6NGS.js} +1 -1
  10. package/dist/{Shape-e7Tqal5k.cjs → Shape-Div8sUVU.cjs} +1 -1
  11. package/dist/{Slicer-CDFjbPHy.cjs → Slicer-BWHj17lR.cjs} +1 -1
  12. package/dist/{Slicer-CL9wj6Ug.js → Slicer-C6j_cGIB.js} +1 -1
  13. package/dist/{Title-n2bQMWGU.js → Title-BZaey0z1.js} +1 -1
  14. package/dist/{Title-D5JSyW9g.cjs → Title-BwlieJ6b.cjs} +1 -1
  15. package/dist/{Tooltip-Bd80EmMe.cjs → Tooltip-B_KSfmzF.cjs} +1 -1
  16. package/dist/{Tooltip-B2-UhSCE.js → Tooltip-DFVt2u4S.js} +1 -1
  17. package/dist/{index-D4ZfmZSg.js → index-C1b8nqw5.js} +8 -2
  18. package/dist/index-DSa4xA3E.cjs +4 -0
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +7 -1
  21. package/dist/types/vue-data-ui.d.ts +7 -1
  22. package/dist/{useNestedProp-DlpyayQg.cjs → useNestedProp-CldQcAqF.cjs} +1 -1
  23. package/dist/{useNestedProp-DWL7GF6p.js → useNestedProp-DWFoOtUE.js} +1 -1
  24. package/dist/{usePrinter-2BdamNLl.js → usePrinter-BybqrAuc.js} +1 -1
  25. package/dist/{usePrinter-CgeascwN.cjs → usePrinter-vl8GTUI1.cjs} +1 -1
  26. package/dist/{vue-data-ui-D98veSqI.js → vue-data-ui-BtPMbVu3.js} +57 -57
  27. package/dist/{vue-data-ui-C60pgqBZ.cjs → vue-data-ui-CZSymR0l.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-ChlIQYo8.js → vue-ui-3d-bar-B8rQ0lAY.js} +7 -7
  31. package/dist/{vue-ui-3d-bar-CPC6HEVe.cjs → vue-ui-3d-bar-DdhyR9Wb.cjs} +1 -1
  32. package/dist/{vue-ui-accordion-W99d82RY.js → vue-ui-accordion-D3IGVPkU.js} +3 -3
  33. package/dist/{vue-ui-accordion-B_pg4OcN.cjs → vue-ui-accordion-pHjKfoj-.cjs} +1 -1
  34. package/dist/{vue-ui-age-pyramid-CApF0nDH.js → vue-ui-age-pyramid-Cywqqfc3.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-jU-pS_FX.cjs → vue-ui-age-pyramid-eLidMfQN.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-DBlQGFBE.js → vue-ui-annotator-CqrAuL_M.js} +1 -1
  37. package/dist/{vue-ui-annotator-4-SHlO9R.cjs → vue-ui-annotator-D57lLAem.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-rPD-ZQra.cjs → vue-ui-candlestick-D4FuLYqw.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-BJfFRmNj.js → vue-ui-candlestick-DRXwCvCo.js} +9 -9
  40. package/dist/{vue-ui-carousel-table-DO-9-fol.js → vue-ui-carousel-table-BXwWouA7.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-CulRP90Z.cjs → vue-ui-carousel-table-DPwQPTqc.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-CRdOMFxs.js → vue-ui-chestnut-Bs9cWKvN.js} +6 -6
  43. package/dist/{vue-ui-chestnut-CPL4jyF7.cjs → vue-ui-chestnut-Dt_4Ku_5.cjs} +1 -1
  44. package/dist/{vue-ui-cursor-Bj3h6sDD.cjs → vue-ui-cursor-C7D7T4cV.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-D12DG4Kf.js → vue-ui-cursor-CVDxh2hQ.js} +2 -2
  46. package/dist/{vue-ui-dashboard-DUK0wNgQ.js → vue-ui-dashboard-O4PWcxcO.js} +2 -2
  47. package/dist/{vue-ui-dashboard-IOYL5mEF.cjs → vue-ui-dashboard-dKNKfVaD.cjs} +1 -1
  48. package/dist/{vue-ui-digits-BzhcctF7.cjs → vue-ui-digits-BUO8leUF.cjs} +1 -1
  49. package/dist/{vue-ui-digits-BC_4rx73.js → vue-ui-digits-Bn9thyfC.js} +2 -2
  50. package/dist/{vue-ui-donut-BomizJUs.cjs → vue-ui-donut-CK4zETSD.cjs} +1 -1
  51. package/dist/{vue-ui-donut-D74abrbu.js → vue-ui-donut-CoM2pA0h.js} +9 -9
  52. package/dist/{vue-ui-donut-evolution-BUa4csgt.js → vue-ui-donut-evolution-BgctJPsh.js} +9 -9
  53. package/dist/{vue-ui-donut-evolution-BJ4Ok-Yp.cjs → vue-ui-donut-evolution-QlHzCBt6.cjs} +1 -1
  54. package/dist/{vue-ui-dumbbell-DwWTHgZG.cjs → vue-ui-dumbbell-BsBRwkjn.cjs} +1 -1
  55. package/dist/{vue-ui-dumbbell-CUYETxFP.js → vue-ui-dumbbell-CCjUOCny.js} +8 -8
  56. package/dist/{vue-ui-flow-CCLdNeJ-.cjs → vue-ui-flow-Cyj4gF4_.cjs} +1 -1
  57. package/dist/{vue-ui-flow-D27Aqy5V.js → vue-ui-flow-IWpQ2yIx.js} +7 -7
  58. package/dist/{vue-ui-galaxy-BTiLZwc-.js → vue-ui-galaxy-BqjZ5O_G.js} +9 -9
  59. package/dist/{vue-ui-galaxy-D5J1WxYR.cjs → vue-ui-galaxy-OH5k24m1.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-Bhpq7HDO.js → vue-ui-gauge-DGEDsld9.js} +5 -5
  61. package/dist/{vue-ui-gauge-TX5Mp_Mp.cjs → vue-ui-gauge-NKRH7xOL.cjs} +1 -1
  62. package/dist/{vue-ui-gizmo-Dw4ItxKs.js → vue-ui-gizmo-CQ7b55aB.js} +2 -2
  63. package/dist/{vue-ui-gizmo-AigQjkN4.cjs → vue-ui-gizmo-D0jrhfvP.cjs} +1 -1
  64. package/dist/{vue-ui-heatmap-TBi8dmtO.js → vue-ui-heatmap-3CMe6Xvv.js} +8 -8
  65. package/dist/{vue-ui-heatmap-DdSBSZCN.cjs → vue-ui-heatmap-BhrBnyya.cjs} +1 -1
  66. package/dist/vue-ui-kpi-CvuUr6JL.cjs +1 -0
  67. package/dist/vue-ui-kpi-D8OwtSaM.js +84 -0
  68. package/dist/{vue-ui-mini-loader-_gmuDh2Q.js → vue-ui-mini-loader-CnjS4H1I.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-M-frsLpu.cjs → vue-ui-mini-loader-DNYhW61O.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-CAi5aoBp.cjs → vue-ui-molecule-DvENXYGm.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-PDKF_CLU.js → vue-ui-molecule-UupWEM8q.js} +9 -9
  72. package/dist/{vue-ui-mood-radar-CbR_Qbbh.js → vue-ui-mood-radar-Ch1LY_2R.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-D4QwpYsd.cjs → vue-ui-mood-radar-iI7kQOCM.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-DGTR7aLK.cjs → vue-ui-nested-donuts-Bt2daMoY.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-Doe9ng0y.js → vue-ui-nested-donuts-DynQLPxx.js} +9 -9
  76. package/dist/{vue-ui-onion-BuigCMf3.js → vue-ui-onion-BnJaBXy_.js} +9 -9
  77. package/dist/{vue-ui-onion-DHknupJ5.cjs → vue-ui-onion-DI3DC93j.cjs} +1 -1
  78. package/dist/{vue-ui-parallel-coordinate-plot-Re0LZuAY.js → vue-ui-parallel-coordinate-plot-BbOWs7gU.js} +10 -10
  79. package/dist/{vue-ui-parallel-coordinate-plot-CWkSo4cL.cjs → vue-ui-parallel-coordinate-plot-CWbr51bP.cjs} +1 -1
  80. package/dist/{vue-ui-quadrant-EI_IElYh.cjs → vue-ui-quadrant-B__i8zN8.cjs} +1 -1
  81. package/dist/{vue-ui-quadrant-DpPJj0z7.js → vue-ui-quadrant-_WYmC83u.js} +10 -10
  82. package/dist/{vue-ui-quick-chart-BsjrnDad.cjs → vue-ui-quick-chart-DuTmiNVl.cjs} +1 -1
  83. package/dist/{vue-ui-quick-chart-BDhl2kNP.js → vue-ui-quick-chart-O5BxmqGL.js} +6 -6
  84. package/dist/{vue-ui-radar-dnfC3Ts9.js → vue-ui-radar-D1xXlbRY.js} +10 -10
  85. package/dist/{vue-ui-radar-CBSzPrBN.cjs → vue-ui-radar-D4JfJpT0.cjs} +1 -1
  86. package/dist/{vue-ui-rating-Du9DDruY.cjs → vue-ui-rating-CjkDBdXi.cjs} +1 -1
  87. package/dist/{vue-ui-rating-v0CG2kgK.js → vue-ui-rating-Cq_B-J0t.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-QrWQ4Qai.js → vue-ui-relation-circle-BEB7dUJt.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-BWOVSaOS.cjs → vue-ui-relation-circle-BJtisZuH.cjs} +1 -1
  90. package/dist/{vue-ui-rings-CU1fcuiz.js → vue-ui-rings-CQFN4tDJ.js} +9 -9
  91. package/dist/{vue-ui-rings-VIofJZ94.cjs → vue-ui-rings-zzCgz61o.cjs} +1 -1
  92. package/dist/{vue-ui-scatter-B76IQkXa.cjs → vue-ui-scatter-B6Aen34S.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-B9YxRg1S.js → vue-ui-scatter-D6Ccg9lj.js} +10 -10
  94. package/dist/{vue-ui-screenshot-idw5giko.cjs → vue-ui-screenshot-Be-wyaXL.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-BYVANzt7.js → vue-ui-screenshot-Cou6ar8P.js} +1 -1
  96. package/dist/{vue-ui-skeleton-Dil3xmv9.js → vue-ui-skeleton-CO4XgI6H.js} +2 -2
  97. package/dist/{vue-ui-skeleton-ldYPv9PF.cjs → vue-ui-skeleton-Dhz5mOid.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-DwxiNgdv.js → vue-ui-smiley-BoqrL2dw.js} +2 -2
  99. package/dist/{vue-ui-smiley-CEz1wWuk.cjs → vue-ui-smiley-DanzTsIi.cjs} +1 -1
  100. package/dist/{vue-ui-spark-trend-DN25w-rB.cjs → vue-ui-spark-trend-D-4XItgb.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-BG9DZeZe.js → vue-ui-spark-trend-pprAlpta.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-Cs4n_GY1.js → vue-ui-sparkbar-DY5lpe2E.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-DaVxC8Nf.cjs → vue-ui-sparkbar-b9TBD6ME.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-D_I53hj4.js → vue-ui-sparkgauge-DU7vOf8w.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-W8c5LNBs.cjs → vue-ui-sparkgauge-uZZuIBZc.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-CGRVea-3.js → vue-ui-sparkhistogram-D-P4UkpF.js} +4 -4
  107. package/dist/{vue-ui-sparkhistogram-j1RxtN2d.cjs → vue-ui-sparkhistogram-pqrfIaIb.cjs} +1 -1
  108. package/dist/{vue-ui-sparkline-ChuyFXnO.js → vue-ui-sparkline-BsIaCFy1.js} +3 -3
  109. package/dist/{vue-ui-sparkline-C77GWtzb.cjs → vue-ui-sparkline-D7BELix8.cjs} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-DOThH5PJ.js → vue-ui-sparkstackbar-BuZQ2cs9.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-DeGSbEIo.cjs → vue-ui-sparkstackbar-CmVnVp7q.cjs} +1 -1
  112. package/dist/{vue-ui-stackbar-BakzF6CM.cjs → vue-ui-stackbar-BahuIAvI.cjs} +1 -1
  113. package/dist/{vue-ui-stackbar-BYEBWNws.js → vue-ui-stackbar-CN_hoCL5.js} +10 -10
  114. package/dist/{vue-ui-strip-plot-Dx6P2lA2.cjs → vue-ui-strip-plot-BIJVVEGI.cjs} +1 -1
  115. package/dist/{vue-ui-strip-plot-CK0dO53m.js → vue-ui-strip-plot-DgS4qRIF.js} +9 -9
  116. package/dist/{vue-ui-table-DkMrvnDz.js → vue-ui-table-D9g4kreu.js} +1 -1
  117. package/dist/{vue-ui-table-DIPNLMvf.cjs → vue-ui-table-DNAY-7hO.cjs} +1 -1
  118. package/dist/{vue-ui-table-heatmap-BVEhEE0q.cjs → vue-ui-table-heatmap-oZ969HtE.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-B4q7WfSh.js → vue-ui-table-heatmap-si6GWwDB.js} +4 -4
  120. package/dist/{vue-ui-table-sparkline-Cl4a56D9.js → vue-ui-table-sparkline-L0PEi96u.js} +5 -5
  121. package/dist/{vue-ui-table-sparkline-CU0SCv36.cjs → vue-ui-table-sparkline-mx23kF7Q.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-pcKB72qU.js → vue-ui-thermometer-BYpiXI-O.js} +5 -5
  123. package/dist/{vue-ui-thermometer-DiOXG9FE.cjs → vue-ui-thermometer-O13lyYgJ.cjs} +1 -1
  124. package/dist/{vue-ui-timer-DnEhYkYY.cjs → vue-ui-timer-CNGVOOlg.cjs} +1 -1
  125. package/dist/{vue-ui-timer-BFcCXVhI.js → vue-ui-timer-CxS0w0W1.js} +4 -4
  126. package/dist/{vue-ui-tiremarks-ChIQAk_l.cjs → vue-ui-tiremarks-9w3XQTZl.cjs} +1 -1
  127. package/dist/{vue-ui-tiremarks-Cx5AJacV.js → vue-ui-tiremarks-CEDUrZdW.js} +5 -5
  128. package/dist/{vue-ui-treemap-BeAjlsgd.js → vue-ui-treemap-CpzwXGl-.js} +9 -9
  129. package/dist/{vue-ui-treemap-CUkSlJWq.cjs → vue-ui-treemap-DxmvNbjK.cjs} +1 -1
  130. package/dist/vue-ui-vertical-bar-FHKCelQq.cjs +4 -0
  131. package/dist/{vue-ui-vertical-bar-C6CBhGbv.js → vue-ui-vertical-bar-wmz-3uDj.js} +13 -13
  132. package/dist/{vue-ui-waffle-DM2bqLaZ.js → vue-ui-waffle-B2gdERdV.js} +9 -9
  133. package/dist/{vue-ui-waffle-C29vX0FU.cjs → vue-ui-waffle-dqnW3nky.cjs} +1 -1
  134. package/dist/{vue-ui-wheel-Br23_h13.js → vue-ui-wheel-BMAmf2-n.js} +5 -5
  135. package/dist/{vue-ui-wheel-D-KizYjp.cjs → vue-ui-wheel-DTnMnqCr.cjs} +1 -1
  136. package/dist/{vue-ui-word-cloud-CNrw2pGa.cjs → vue-ui-word-cloud-DY2g14TK.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-DkqrXhGq.js → vue-ui-word-cloud-Diz06cxu.js} +7 -7
  138. package/dist/{vue-ui-xy-CJkw_ARZ.cjs → vue-ui-xy-C03TRyn_.cjs} +1 -1
  139. package/dist/{vue-ui-xy-Bl-Jb6uH.js → vue-ui-xy-CeVuoNHk.js} +12 -12
  140. package/dist/{vue-ui-xy-canvas-CXK6EGbI.cjs → vue-ui-xy-canvas-3TdGIkyw.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-BIYJhOix.js → vue-ui-xy-canvas-B4xf1eXm.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/index-C9r5MSxp.cjs +0 -4
  144. package/dist/vue-ui-kpi-DsKGWQHr.cjs +0 -1
  145. package/dist/vue-ui-kpi-IYD-xkcq.js +0 -67
  146. package/dist/vue-ui-vertical-bar-lJGZ-IJS.cjs +0 -4
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C9r5MSxp.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-D5JSyW9g.cjs"),ae=require("./usePrinter-CgeascwN.cjs"),xe=require("./Tooltip-Bd80EmMe.cjs"),oe=require("./Legend-B_gotRVB.cjs"),_e=require("./vue-ui-skeleton-ldYPv9PF.cjs"),we=require("./BaseIcon-DsmnhCxw.cjs"),$e=require("./vue-ui-accordion-B_pg4OcN.cjs"),ne=require("./useNestedProp-DlpyayQg.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],Ve=["onClick"],Te=["xmlns","viewBox"],Ee=["id"],Be=["stop-color"],Le=["stop-color"],ze=["x","y","width","height","fill","rx"],Pe=["x","y","width","height","fill","rx","stroke","stroke-width"],De=["x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],Me=["x","y","text-anchor","font-size","fill","font-weight"],Ie=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Re=["x","y","font-size","fill","font-weight"],qe=["y","width","height","fill","onMouseenter"],He={key:4,class:"vue-data-ui-watermark"},Xe=["onClick"],je={style:"width:100%;padding-top: 36px;position:relative"},Ae={class:"vue-ui-data-table"},Ge={key:0},Ue={style:{width:"100%"}},We=["data-cell"],Ye={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ke=["data-cell"],Je={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qe=["data-cell"],Ze={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},et=["data-cell"],tt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},lt=["data-cell"],at={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ot=["data-cell"],nt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rt=["data-cell"],ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},st={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ue,emit:se}){const f=re;e.useCssVars(a=>({"4e87e0a7":a.tdo}));const{vue_ui_vertical_bar:ie}=r.useConfig(),V=e.computed(()=>!!f.dataset&&f.dataset.length),m=e.ref(r.createUid()),ce=e.ref(null),B=e.ref(!1),L=e.ref(""),T=e.ref(0),de=e.ref(null),I=e.ref(0),$=e.ref(null),O=e.ref(null),z=e.ref(null),t=e.computed(()=>{const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ie});return a.theme?{...ne.useNestedProp({userConfig:r.themes.vue_ui_vertical_bar[a.theme]||f.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}),{isPrinting:R,isImaging:q,generatePdf:H,generateImage:X}=ae.usePrinter({elementId:`vue-ui-vertical-bar_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),j=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),A=e.ref(null),G=e.ref(!1),ve=e.computed(()=>t.value.table.responsiveBreakpoint),E=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(f.dataset)&&r.error({componentName:"VueUiVerticalBar",type:"dataset"}),T.value=f.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),he(),t.value.responsive){const a=le.throttle(()=>{const{width:o,height:l}=le.useResponsive({chart:$.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?z.value:null});Y.value=o,c.value=l/T.value-v.value*2});E.value=new ResizeObserver(a),E.value.observe($.value.parentNode)}}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});function he(){new ResizeObserver(o=>{o.forEach(l=>{G.value=l.contentRect.width<ve.value})}).observe(A.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}),U=e.computed(()=>h.value.sortDesc),k=e.computed(()=>(f.dataset.forEach((a,o)=>{a.children&&(r.objectIsEmpty(a.children)?r.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,n)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:n})}))}),f.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${m.value}`,n=!!a.children&&a.children.length>0;return{...a,id:l,shape:"square",opacity:y.value.includes(l)?.5:1,value:n?a.children.map(s=>s.value||0).reduce((s,i)=>s+i,0):Math.abs(a.value)||0,sign:a.value>=0?1:-1,hasChildren:n,isChild:!1,segregate:()=>N(l),isSegregated:y.value.includes(l),color:r.convertColorToHex(a.color)||j.value[o]||r.palette[o]||r.palette[o%r.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((s,i)=>U.value?i.value-s.value:s.value-i.value).map((s,i)=>({...s,value:Math.abs(s.value)||0,sign:s.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:a.value||n?a.children.map(M=>M.value||0).reduce((M,ke)=>M+ke,0):0,id:`vertical_child_${o}_${i}_${m.value}`,childIndex:i,color:r.convertColorToHex(s.color)||r.convertColorToHex(a.color)||j.value[o]||r.palette[o]||r.palette[o%r.palette.length]})).map((s,i)=>({...s,isFirstChild:i===0,isLastChild:i===a.children.length-1}))}}).toSorted((a,o)=>U.value?o.value-a.value:a.value-o.value))),W=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":""})),c=e.ref(t.value.style.chart.layout.bars.height),v=e.ref(t.value.style.chart.layout.bars.gap),pe=e.computed(()=>(c.value+v.value)*T.value),Y=e.ref(512),d=e.computed(()=>({width:Y.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:d.value.padding.top+d.value.padding.bottom+d.value.height,top:d.value.padding.top,left:d.value.padding.left,right:d.value.width-d.value.padding.right,bottom:d.value.padding.top+d.value.height,width:d.value.width-(d.value.padding.left+d.value.padding.right)}));function P(){T.value=C.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const y=e.ref([]);function N(a){y.value.includes(a)?y.value=y.value.filter(o=>o!==a):y.value.push(a),P(),se("selectLegend",C.value)}const C=e.computed(()=>k.value.filter(a=>!y.value.includes(a.id))),g=e.computed(()=>C.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function K(a,o=!1,l=0){return o?r.dataLabel({v:Math.abs(a)/g.value*100,s:"%",r:l}):Math.abs(a)/g.value}const x=e.computed(()=>C.value.flatMap(a=>a.hasChildren?a.children:a)),_=e.computed(()=>x.value.map(a=>a.sign).includes(-1)),ye=e.computed(()=>Math.max(...C.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function b(a){const o=a/ye.value;return u.value.width/(_.value?2:1)*o}function ge(a){return b(a)+u.value.left}function w(a,o){const l=C.value.find(i=>i.id===a.parentId),n=u.value.top+(v.value+c.value)*o,s=l.children.length*(v.value+c.value);return{y:n+s/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/g.value)?"":K(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function fe(){return C.value}const D=e.ref(null),F=e.ref(null);function be(a,o){F.value={datapoint:a,seriesIndex:o,series:k.value,config:t.value},B.value=!0,D.value=a.id;let l="";const n=a.isChild?a.parentName:a.name,s=a.isChild?a.name:"",i=t.value.style.chart.tooltip.customFormat;r.isFunction(i)&&r.functionReturnsString(()=>i({datapoint:a,series:k.value,config:t.value,seriesIndex:o}))?L.value=i({datapoint:a,series:k.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 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${n}</div>
3
- ${s?`<div>${s}</div>`:""}
4
- </div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,r.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>${r.dataLabel({v:Math.abs(a.value)/g.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${r.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),L.value=`<div style="text-align:left">${l}</div>`)}function J(a,o,l,n){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const s=r.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n===1?a:-a,r.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n===1?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}),i=`(${K(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${s}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${i}`:""}`}const p=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=x.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/g.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)/g.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)/g.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/g.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function Q(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=p.value.head,l=p.value.body.map(i=>[i.parentName,i.parentValue,i.percentageToTotal,i.childName,i.childValue,i.childPercentageToParent,i.childPercentageToTotal]),n=a.concat([o]).concat(l),s=r.createCsvContent(n);r.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const S=e.ref(!1);function me(a){S.value=a,I.value+=1}function Z(){h.value.showTable=!h.value.showTable}function ee(){h.value.sortDesc=!h.value.sortDesc,P()}function te(){h.value.showTooltip=!h.value.showTooltip}return ue({getData:fe,recalculateHeight:P,generatePdf:H,generateCsv:Q,generateImage:X,toggleTable:Z,toggleSort:ee,toggleTooltip:te}),(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:$,id:`vue-ui-vertical-bar_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[e.createVNode(Ce._sfc_main,{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"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(R),uid:m.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:$.value,onToggleFullscreen:me,onGeneratePdf:e.unref(H),onGenerateCsv:Q,onGenerateImage:e.unref(X),onToggleTable:Z,onToggleSort:ee,onToggleTooltip:te},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartLegend",ref:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[0]||(o[0]=({legend:l})=>N(l.id))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:s=>N(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(r.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:n})),13,Ve)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${m.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Be),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(r.shiftHue)(l.color,.03)}${e.unref(r.opacity)[100-t.value.style.chart.layout.bars.gradientIntensity]}`},null,8,Le)],8,Ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left,y:u.value.top+(v.value+c.value)*n,width:b(l.value)<=0?1e-4:b(l.value),height:c.value<=0?1e-4:c.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,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:_.value?u.value.left+u.value.width/2-(l.sign===1?0:b(l.value)<=0?1e-4:b(l.value)):u.value.left,y:u.value.top+(v.value+c.value)*n,width:b(l.value)<=0?1e-4:b(l.value),height:c.value<=0?1e-4:c.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${m.value}_${n})`:`${l.color}${e.unref(r.opacity)[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,Pe),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&n!==x.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:c.value+v.value/2+u.value.top+(v.value+c.value)*n,y2:c.value+v.value/2+u.value.top+(v.value+c.value)*n,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,De)):e.createCommentVNode("",!0),_.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,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,Fe)):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):ge(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(v.value+c.value)*n+c.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(J(l.value,l,n,l.sign)),9,Me),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(v.value+c.value)*n+c.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,Ie)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:w(l,n).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(w(l,n).name),9,Oe)):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:w(l,n).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(J(w(l,n).value),w(l,n),n,w(l,n).sign),9,Re)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(v.value+c.value)*n-v.value/2,width:d.value.width<=0?1e-4:d.value.width,height:c.value+v.value<=0?1e-4:c.value+v.value,fill:D.value===l.id?`${t.value.style.chart.layout.highlighter.color}${e.unref(r.opacity)[t.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:s=>be(l,n),onMouseleave:o[1]||(o[1]=s=>{de.value=null,B.value=!1,D.value=null})},null,40,qe)]))),256)),e.renderSlot(a.$slots,"svg",{svg:d.value},void 0,!0)],14,Te)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_e.default,{key:5,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:6,ref_key:"chartLegend",ref:z},[e.createVNode(oe.Legend,{legendSet:k.value,config:W.value,onClickMarker:o[2]||(o[2]=({legend:l})=>N(l.id))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:s=>N(l.id),style:e.normalizeStyle(`opacity:${y.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(r.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:n})),13,Xe)]),_:1},8,["legendSet","config"])],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0),e.createVNode(xe._sfc_main,{show:h.value.showTooltip&&B.value&&y.value.length<f.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:$.value,content:L.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({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),V.value?(e.openBlock(),e.createBlock($e.default,{key:7,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:A,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",je,[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(we.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":G.value})},[e.createElementVNode("table",Ae,[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",Ge,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(p.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Ue,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(g.value)?"":g.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(p.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),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":p.value.head[0]??""},[e.createElementVNode("div",Ye,[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,We),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[1]??""},[e.createElementVNode("div",Je,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,Ke),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[2]??""},[e.createElementVNode("div",Ze,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,Qe),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[3]??""},[e.createElementVNode("div",tt,e.toDisplayString(l.childName),1)],12,et),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[4]??""},[e.createElementVNode("div",at,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,lt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[5]??""},[e.createElementVNode("div",nt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,ot),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":p.value.head[6]??""},[e.createElementVNode("div",ut,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,rt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Se))}},it=Ne._export_sfc(st,[["__scopeId","data-v-bfc1046b"]]);exports.default=it;