vue-data-ui 2.3.32 → 2.3.34

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 (142) hide show
  1. package/dist/{Arrow-C46rqWDg.cjs → Arrow-ByWmXiY-.cjs} +1 -1
  2. package/dist/{Arrow-f_7ZlBit.js → Arrow-De8PM01T.js} +1 -1
  3. package/dist/{BaseIcon-CejyHIZM.js → BaseIcon-BGb_p9W-.js} +1 -1
  4. package/dist/{BaseIcon-ChS1Bl3C.cjs → BaseIcon-aqUO3wo9.cjs} +1 -1
  5. package/dist/{DataTable-Rb6wEqzD.js → DataTable-D0s-F16a.js} +2 -2
  6. package/dist/{DataTable-BShm3pg0.cjs → DataTable-Df6uZv-T.cjs} +1 -1
  7. package/dist/{Legend-DUjHDr5A.cjs → Legend-Bw_SrfZv.cjs} +1 -1
  8. package/dist/{Legend-O1l-qwSU.js → Legend-xB4cmG5F.js} +1 -1
  9. package/dist/{Shape-DrbNfL39.cjs → Shape-BaAPMBdB.cjs} +1 -1
  10. package/dist/{Shape-jOLEEcCT.js → Shape-DJ-kAg5I.js} +1 -1
  11. package/dist/{Slicer-DMZ03tYD.cjs → Slicer-DmhzGeZJ.cjs} +1 -1
  12. package/dist/{Slicer-BtErYU-m.js → Slicer-Sp5HprCO.js} +1 -1
  13. package/dist/{Title-C6kjiyFi.cjs → Title-BSJEkzs1.cjs} +1 -1
  14. package/dist/{Title-B9DAMnKW.js → Title-BWhB-LZD.js} +1 -1
  15. package/dist/{Tooltip-Dc_Vk9k7.cjs → Tooltip-BuFiGszl.cjs} +1 -1
  16. package/dist/{Tooltip-B7LZQUXr.js → Tooltip-DG4rhTsB.js} +1 -1
  17. package/dist/{index-D5gus_lg.cjs → index-CXlW59V9.cjs} +1 -1
  18. package/dist/{index-DyzpYx72.js → index-_qS8WYUi.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-DGjp6yqE.js → useNestedProp-Cqc-Ol8-.js} +1 -1
  21. package/dist/{useNestedProp-dfy-beYA.cjs → useNestedProp-cZtyh-Ib.cjs} +1 -1
  22. package/dist/{usePrinter-D9HscgWK.cjs → usePrinter-BuaBVD2x.cjs} +1 -1
  23. package/dist/{usePrinter-_HAcfIJq.js → usePrinter-SBoyJa9C.js} +1 -1
  24. package/dist/{vue-data-ui-w642Au96.cjs → vue-data-ui-1R0YRWjj.cjs} +1 -1
  25. package/dist/{vue-data-ui-BYwT-L-y.js → vue-data-ui-D0vqg-FD.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-uIw4YyRe.cjs → vue-ui-3d-bar-B_LoyogH.cjs} +1 -1
  29. package/dist/{vue-ui-3d-bar-_idrDcTt.js → vue-ui-3d-bar-C0FfMmXm.js} +7 -7
  30. package/dist/{vue-ui-accordion-QESF0r0U.cjs → vue-ui-accordion-BYuReZs8.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-CQLN2WYC.js → vue-ui-accordion-sb2V8ews.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-BqIkETbo.cjs → vue-ui-age-pyramid-BlhSiSas.cjs} +1 -1
  33. package/dist/{vue-ui-age-pyramid-Bj_3AooT.js → vue-ui-age-pyramid-DKkYy5tD.js} +8 -8
  34. package/dist/{vue-ui-annotator-D0iuqAb9.js → vue-ui-annotator-Bibvw8Mk.js} +1 -1
  35. package/dist/{vue-ui-annotator-CLCPtXoo.cjs → vue-ui-annotator-uzIXnpgV.cjs} +1 -1
  36. package/dist/{vue-ui-candlestick-BBnC2umf.cjs → vue-ui-candlestick-C31Jc4Dc.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-D8AnaGwt.js → vue-ui-candlestick-CDd5rWIv.js} +9 -9
  38. package/dist/{vue-ui-carousel-table-DJtlOVqJ.cjs → vue-ui-carousel-table-D7iJo3HQ.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-CV4YRYfq.js → vue-ui-carousel-table-Dou6Qfo8.js} +4 -4
  40. package/dist/{vue-ui-chestnut-DxRF0eGJ.js → vue-ui-chestnut-BaQqkOdz.js} +6 -6
  41. package/dist/{vue-ui-chestnut-CRkC7aeK.cjs → vue-ui-chestnut-BnX1NDnM.cjs} +1 -1
  42. package/dist/{vue-ui-cursor-7KMholmU.js → vue-ui-cursor-As8Jm4Hv.js} +2 -2
  43. package/dist/{vue-ui-cursor-DxDaK5kl.cjs → vue-ui-cursor-Deq15E36.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-CjmpoQWU.cjs → vue-ui-dashboard-BVG4WGwu.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BMEkgCKF.js → vue-ui-dashboard-CqJ8ZxYq.js} +2 -2
  46. package/dist/{vue-ui-digits-KxGiWJBe.cjs → vue-ui-digits-CaGuKUkf.cjs} +1 -1
  47. package/dist/{vue-ui-digits-slk9W4ek.js → vue-ui-digits-CyTah6pc.js} +2 -2
  48. package/dist/{vue-ui-donut-CB3SfpSC.js → vue-ui-donut-CHbJOleP.js} +9 -9
  49. package/dist/{vue-ui-donut-CtkZaRur.cjs → vue-ui-donut-CXer4Zmf.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-292a6FEA.js → vue-ui-donut-evolution-C2kmOHk7.js} +9 -9
  51. package/dist/{vue-ui-donut-evolution-CptrmAtk.cjs → vue-ui-donut-evolution-Yj4dbvEo.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-Dx_-QB5p.cjs → vue-ui-dumbbell-BTKBNLZM.cjs} +1 -1
  53. package/dist/{vue-ui-dumbbell-BQrhfMqP.js → vue-ui-dumbbell-CY1ia2J9.js} +8 -8
  54. package/dist/{vue-ui-flow-C12EMKoJ.cjs → vue-ui-flow-D8vOxQVa.cjs} +1 -1
  55. package/dist/{vue-ui-flow-CcCeNf_k.js → vue-ui-flow-DsWuUCDN.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BAIRiq85.js → vue-ui-galaxy-C5yKY9Mt.js} +9 -9
  57. package/dist/{vue-ui-galaxy-CLVcP5Qh.cjs → vue-ui-galaxy-DvKE6ewZ.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-uFn_PRBN.js → vue-ui-gauge-DpCIu9AY.js} +5 -5
  59. package/dist/{vue-ui-gauge-eMLSa5k6.cjs → vue-ui-gauge-peeW-c0h.cjs} +1 -1
  60. package/dist/{vue-ui-gizmo-C5hlmv34.cjs → vue-ui-gizmo-BvTydERz.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-CkmuI8hn.js → vue-ui-gizmo-CkVcMLqB.js} +2 -2
  62. package/dist/{vue-ui-heatmap-C3oS64to.js → vue-ui-heatmap-Cpu6A1uY.js} +8 -8
  63. package/dist/{vue-ui-heatmap-mnnjTuAS.cjs → vue-ui-heatmap-CsnEOb5m.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-CpFr6mya.cjs → vue-ui-kpi-BZDLLvnb.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-CMn14HGk.js → vue-ui-kpi-C7W2y9ao.js} +2 -2
  66. package/dist/{vue-ui-mini-loader-CxhRP0o3.js → vue-ui-mini-loader-DeDpiJvH.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-DAE2b1aK.cjs → vue-ui-mini-loader-DlFOxvOz.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-BMtrEZXu.cjs → vue-ui-molecule-Bs2cNVbj.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-Chxy44E1.js → vue-ui-molecule-DG1NYo1h.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-D70upaRv.cjs → vue-ui-mood-radar-BUMhp7WM.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-B0944MVq.js → vue-ui-mood-radar-C22woDt3.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-C8U02J9G.cjs → vue-ui-nested-donuts-C9cHwf_t.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-Ct26fYcZ.js → vue-ui-nested-donuts-CvAFzKTf.js} +9 -9
  74. package/dist/{vue-ui-onion-BuAA53Z4.js → vue-ui-onion-BrJWGIKq.js} +9 -9
  75. package/dist/{vue-ui-onion-D7jdX-jE.cjs → vue-ui-onion-D3IGVcju.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-DR7GBD64.js → vue-ui-parallel-coordinate-plot-BbGueCL_.js} +10 -10
  77. package/dist/{vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs → vue-ui-parallel-coordinate-plot-DETkLRFW.cjs} +1 -1
  78. package/dist/{vue-ui-quadrant-D6XUNhwO.js → vue-ui-quadrant-C8xmFfKn.js} +10 -10
  79. package/dist/{vue-ui-quadrant-DjY4UFmX.cjs → vue-ui-quadrant-CQf1V-5a.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-a7twDc_t.cjs → vue-ui-quick-chart-B3Wt0iSi.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-CHWpjYVZ.js → vue-ui-quick-chart-C-BxV4Ze.js} +6 -6
  82. package/dist/{vue-ui-radar-BPH8c93c.cjs → vue-ui-radar-6s8dwkrk.cjs} +1 -1
  83. package/dist/{vue-ui-radar-w8--R-ur.js → vue-ui-radar-rlsADtZL.js} +10 -10
  84. package/dist/{vue-ui-rating-DyAunqH4.js → vue-ui-rating-Br5J5X24.js} +2 -2
  85. package/dist/{vue-ui-rating-Dfk9Umrh.cjs → vue-ui-rating-DboWXWg_.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-BCCHpnpL.js → vue-ui-relation-circle-D8w_cnpD.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-COsMXD8M.cjs → vue-ui-relation-circle-DI7wnSfh.cjs} +1 -1
  88. package/dist/{vue-ui-rings-COm1RO2W.js → vue-ui-rings-CEAhdamK.js} +9 -9
  89. package/dist/{vue-ui-rings-DrrT1cJn.cjs → vue-ui-rings-DG0GrO1P.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-ZjouDP_2.js → vue-ui-scatter-D7DXo6MF.js} +10 -10
  91. package/dist/{vue-ui-scatter-BwlMCoqN.cjs → vue-ui-scatter-bF0fn6qy.cjs} +1 -1
  92. package/dist/{vue-ui-screenshot-DCAQ7EZR.cjs → vue-ui-screenshot-CUjF8AWA.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-D0E4gBJg.js → vue-ui-screenshot-DkRboPBO.js} +1 -1
  94. package/dist/{vue-ui-skeleton-HxNUOQim.js → vue-ui-skeleton-BdsJjwOS.js} +2 -2
  95. package/dist/{vue-ui-skeleton-lzhZVBa5.cjs → vue-ui-skeleton-DRUBehRT.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-BNglGFZl.cjs → vue-ui-smiley-CKF90RQs.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-xoGBumeP.js → vue-ui-smiley-CUFtgit7.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-BP91Hhbk.js → vue-ui-spark-trend-D5dg9E4d.js} +4 -4
  99. package/dist/{vue-ui-spark-trend-9z2-nnDf.cjs → vue-ui-spark-trend-j_VSniak.cjs} +1 -1
  100. package/dist/{vue-ui-sparkbar-BV7lv1Mc.js → vue-ui-sparkbar-C7W2G0b1.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-CBwEk4Sp.cjs → vue-ui-sparkbar-D3BQwo6V.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-DAcXHJe3.js → vue-ui-sparkgauge-Bl7ltmlK.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-mf9TWCfM.cjs → vue-ui-sparkgauge-UIx49_Qw.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-BLG-wdNd.cjs → vue-ui-sparkhistogram-BDJuLxx7.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-Cw8kAsVJ.js → vue-ui-sparkhistogram-BPstzDL_.js} +4 -4
  106. package/dist/{vue-ui-sparkline-BIxUq0a0.cjs → vue-ui-sparkline-DvXoI7Ho.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-DtMX5BBW.js → vue-ui-sparkline-knojmGGz.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-Boz0na6c.js → vue-ui-sparkstackbar-Bos87fiK.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-CcNK8jkC.cjs → vue-ui-sparkstackbar-D219BdkF.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-Yj49aOwn.js → vue-ui-stackbar-DbXn6OqM.js} +209 -209
  111. package/dist/vue-ui-stackbar-DofTIN__.cjs +6 -0
  112. package/dist/{vue-ui-strip-plot-CTVAbRx1.js → vue-ui-strip-plot-BayysZJp.js} +9 -9
  113. package/dist/{vue-ui-strip-plot-BUpDy3ST.cjs → vue-ui-strip-plot-DOd46R6g.cjs} +1 -1
  114. package/dist/{vue-ui-table-JW8Ddbcv.js → vue-ui-table-B2e_Edtl.js} +1 -1
  115. package/dist/{vue-ui-table-Bn0Sh_ll.cjs → vue-ui-table-ByZt03OM.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CBt2T6Fi.cjs → vue-ui-table-heatmap-C2DYn2J7.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-D_hgGOnV.js → vue-ui-table-heatmap-CZipm8kF.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-lTi-b4a9.js → vue-ui-table-sparkline-Bnc7_7-9.js} +5 -5
  119. package/dist/{vue-ui-table-sparkline-CE15fs3Z.cjs → vue-ui-table-sparkline-CnGGcJEH.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-CnOa_c88.cjs → vue-ui-thermometer-BhRNMgI2.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-DDaejskt.js → vue-ui-thermometer-whi9mZRg.js} +5 -5
  122. package/dist/{vue-ui-timer-BTkcHF3d.js → vue-ui-timer-BJKrcaCb.js} +4 -4
  123. package/dist/{vue-ui-timer-DFN5EbaX.cjs → vue-ui-timer-CfZVIUoe.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-CHMhRw0X.cjs → vue-ui-tiremarks-BK3cRVKm.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-CaCbMety.js → vue-ui-tiremarks-KS0lCmhn.js} +5 -5
  126. package/dist/{vue-ui-treemap-BKRQnqlg.cjs → vue-ui-treemap-BtzJqV47.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-CRGZXH3Z.js → vue-ui-treemap-C9-Kx113.js} +9 -9
  128. package/dist/vue-ui-vertical-bar-C4n96-H7.cjs +4 -0
  129. package/dist/{vue-ui-vertical-bar-OiHb4ABm.js → vue-ui-vertical-bar-CuHv8MjK.js} +13 -13
  130. package/dist/{vue-ui-waffle-CIoGXtZP.cjs → vue-ui-waffle-D6mX6aPy.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-ChcZm0_Q.js → vue-ui-waffle-DDUb8Ufe.js} +9 -9
  132. package/dist/{vue-ui-wheel-DRgqt22e.js → vue-ui-wheel-BbgV7rRY.js} +5 -5
  133. package/dist/{vue-ui-wheel-BVDHANbp.cjs → vue-ui-wheel-Ce935eYZ.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-BbAFa1J5.cjs → vue-ui-word-cloud-BPaqt7Rz.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-B2OjEeWK.js → vue-ui-word-cloud-CeWdEIXe.js} +7 -7
  136. package/dist/{vue-ui-xy-6Qnf5k-u.cjs → vue-ui-xy-CptbO1gr.cjs} +1 -1
  137. package/dist/{vue-ui-xy-Cf3D_9Em.js → vue-ui-xy-Dtr2cfv4.js} +12 -12
  138. package/dist/{vue-ui-xy-canvas-ZvG2lyjk.cjs → vue-ui-xy-canvas-BrHRoIPQ.cjs} +1 -1
  139. package/dist/{vue-ui-xy-canvas-ihJeRvA1.js → vue-ui-xy-canvas-C8ni7sEK.js} +10 -10
  140. package/package.json +1 -1
  141. package/dist/vue-ui-stackbar-DFK6zb17.cjs +0 -6
  142. package/dist/vue-ui-vertical-bar-DppxsDym.cjs +0 -4
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-D5gus_lg.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-C6kjiyFi.cjs"),ae=require("./usePrinter-D9HscgWK.cjs"),xe=require("./Tooltip-Dc_Vk9k7.cjs"),oe=require("./Legend-DUjHDr5A.cjs"),_e=require("./vue-ui-skeleton-lzhZVBa5.cjs"),we=require("./BaseIcon-ChS1Bl3C.cjs"),$e=require("./vue-ui-accordion-QESF0r0U.cjs"),ne=require("./useNestedProp-dfy-beYA.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;