vue-data-ui 2.6.43 → 2.6.44-beta.0

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 (158) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-Bz8n6ycZ.js → Arrow-BoxEqBI9.js} +1 -1
  3. package/dist/{Arrow-C0LFlY5e.cjs → Arrow-DIUU40P5.cjs} +1 -1
  4. package/dist/{BaseIcon-BySu2V3d.js → BaseIcon-BDBwHXHX.js} +1 -1
  5. package/dist/{BaseIcon-Bolmn50v.cjs → BaseIcon-HOCzoYbs.cjs} +1 -1
  6. package/dist/{ColorPicker-DUYztfXY.cjs → ColorPicker-BE7dtNKz.cjs} +1 -1
  7. package/dist/{ColorPicker-DxSpy5e2.js → ColorPicker-D5xsaimt.js} +3 -3
  8. package/dist/{DataTable-DLUrhKkw.cjs → DataTable-CWmGoVel.cjs} +1 -1
  9. package/dist/{DataTable-C5EKEHsp.js → DataTable-DpYrmdKR.js} +2 -2
  10. package/dist/{Legend-DSzoXS-3.js → Legend-Bns8n5XI.js} +2 -2
  11. package/dist/{Legend-CHEbsxt2.cjs → Legend-CAcWDl5L.cjs} +1 -1
  12. package/dist/{PackageVersion-BtrpyUPC.js → PackageVersion-C-jBIpMs.js} +1 -1
  13. package/dist/{PackageVersion-B6sWtTA0.cjs → PackageVersion-KqTLourS.cjs} +1 -1
  14. package/dist/{PenAndPaper-zjBsZuuq.js → PenAndPaper-B1x7gtt0.js} +3 -3
  15. package/dist/{PenAndPaper-DO7-xSYx.cjs → PenAndPaper-Bhj2KfFw.cjs} +1 -1
  16. package/dist/{Shape-DzIamXsi.js → Shape-B53a4cKQ.js} +1 -1
  17. package/dist/{Shape-_vXgfvZP.cjs → Shape-BejVJkvz.cjs} +1 -1
  18. package/dist/{Slicer-DfOxim5W.js → Slicer-BUH3aQru.js} +2 -2
  19. package/dist/{Slicer-oUyDkRff.cjs → Slicer-ZM-g13q7.cjs} +1 -1
  20. package/dist/{Title-BuZQSd23.cjs → Title-B5DeSNYN.cjs} +1 -1
  21. package/dist/{Title-BS1zFx79.js → Title-CuyN78xN.js} +1 -1
  22. package/dist/{Tooltip-BiBcMMP3.cjs → Tooltip-BfRrUigu.cjs} +1 -1
  23. package/dist/{Tooltip-BNOd4lK1.js → Tooltip-CoZJLSUy.js} +1 -1
  24. package/dist/documentation/installation.md +2 -2
  25. package/dist/{index-CzjsUYng.js → index-BjeHPQB2.js} +1 -1
  26. package/dist/{index-Zf2fUMIO.cjs → index-CFpKg6bb.cjs} +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/{useNestedProp-BcSwG6N0.cjs → useNestedProp-D1QXXl5v.cjs} +1 -1
  29. package/dist/{useNestedProp-RC28MVml.js → useNestedProp-jWaei8o8.js} +1 -1
  30. package/dist/{usePrinter-CUsjlfpk.js → usePrinter-BDx4dDHp.js} +1 -1
  31. package/dist/{usePrinter-BGPa8G48.cjs → usePrinter-D9AdulyE.cjs} +1 -1
  32. package/dist/{vue-data-ui-BjDb6Vux.cjs → vue-data-ui-DHxKOYW-.cjs} +1 -1
  33. package/dist/{vue-data-ui-UWKC8R6X.js → vue-data-ui-DVsBaIUb.js} +61 -61
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-5IdXbLb9.js → vue-ui-3d-bar-ConzsB93.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-WS8tL_FC.cjs → vue-ui-3d-bar-Cz46fEZ0.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-CnGQYWdI.cjs → vue-ui-accordion-BMLckzAQ.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-ConQex-C.js → vue-ui-accordion-CrDhNoyv.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-CehCcwLC.cjs → vue-ui-age-pyramid-CDADFGzK.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-CP6Fd6zD.js → vue-ui-age-pyramid-DS4QeJhs.js} +10 -10
  42. package/dist/{vue-ui-annotator-C5NyXYkj.js → vue-ui-annotator-Bfc_tJu5.js} +1 -1
  43. package/dist/{vue-ui-annotator-CZ1F-VY2.cjs → vue-ui-annotator-RGa73O7h.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-DKqr4Rcd.js → vue-ui-bullet-B8lNyqBU.js} +8 -8
  45. package/dist/{vue-ui-bullet-Djg_HER0.cjs → vue-ui-bullet-lJ7H217l.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-DtVpSOzB.js → vue-ui-candlestick-CG3Btn-O.js} +11 -11
  47. package/dist/{vue-ui-candlestick-BU9MfLPt.cjs → vue-ui-candlestick-LN1alZy4.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-CYcrhcdv.js → vue-ui-carousel-table-BPPE00f_.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-EhzhIcW2.cjs → vue-ui-carousel-table-CPGwzLmi.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-D5LH5zdq.js → vue-ui-chestnut-CDahTtnd.js} +8 -8
  51. package/dist/{vue-ui-chestnut-C3UVgMQo.cjs → vue-ui-chestnut-Cc84Oypu.cjs} +1 -1
  52. package/dist/{vue-ui-circle-pack-CJNBxO1N.cjs → vue-ui-circle-pack-CxueIMwV.cjs} +1 -1
  53. package/dist/{vue-ui-circle-pack-BL753_Uo.js → vue-ui-circle-pack-xNnpqKCg.js} +9 -9
  54. package/dist/{vue-ui-cursor-B2MxKYNM.cjs → vue-ui-cursor-C1SnyUxK.cjs} +1 -1
  55. package/dist/{vue-ui-cursor-Fe70t9Bl.js → vue-ui-cursor-CglUvQEj.js} +2 -2
  56. package/dist/{vue-ui-dashboard-C11-dJEl.cjs → vue-ui-dashboard-BqmoMynd.cjs} +1 -1
  57. package/dist/{vue-ui-dashboard-QOSGNhC9.js → vue-ui-dashboard-CVuQnChA.js} +2 -2
  58. package/dist/{vue-ui-digits-C5D_xk6r.js → vue-ui-digits-32Kp_eG8.js} +2 -2
  59. package/dist/{vue-ui-digits-H19fVeIu.cjs → vue-ui-digits-DCBTsq9c.cjs} +1 -1
  60. package/dist/{vue-ui-donut-CwJg0emK.cjs → vue-ui-donut-BLx9gvvp.cjs} +1 -1
  61. package/dist/{vue-ui-donut-Bd1mIoux.js → vue-ui-donut-CsC2XlsB.js} +12 -12
  62. package/dist/{vue-ui-donut-evolution-DTjfMlNh.cjs → vue-ui-donut-evolution-BVgSIx_N.cjs} +1 -1
  63. package/dist/{vue-ui-donut-evolution-CFQ4lMWd.js → vue-ui-donut-evolution-CoHKwqOx.js} +11 -11
  64. package/dist/{vue-ui-dumbbell-CBsxNWVV.cjs → vue-ui-dumbbell-BFSenYlM.cjs} +1 -1
  65. package/dist/{vue-ui-dumbbell-KJd6G5qD.js → vue-ui-dumbbell-BtlUd-Uf.js} +10 -10
  66. package/dist/{vue-ui-flow-DAxMQfhu.js → vue-ui-flow-CQfZK1gp.js} +9 -9
  67. package/dist/{vue-ui-flow-D3gtil-H.cjs → vue-ui-flow-Cmy--LB8.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-CkCNCQ1F.cjs → vue-ui-funnel-CuYKPXfV.cjs} +1 -1
  69. package/dist/{vue-ui-funnel-PvEDGsfj.js → vue-ui-funnel-ZDkI00Ns.js} +9 -9
  70. package/dist/{vue-ui-galaxy-DfAfjTDr.js → vue-ui-galaxy-Dw_3R-md.js} +11 -11
  71. package/dist/{vue-ui-galaxy-DjeZUCuE.cjs → vue-ui-galaxy-X7w_aTcI.cjs} +1 -1
  72. package/dist/{vue-ui-gauge-BfDY3XHF.cjs → vue-ui-gauge-1DflQ456.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-DBGqwPZs.js → vue-ui-gauge-e4FDUuhW.js} +7 -7
  74. package/dist/{vue-ui-gizmo-BT0DknqD.js → vue-ui-gizmo-B6n0z4F6.js} +3 -3
  75. package/dist/{vue-ui-gizmo-yWBMeY1e.cjs → vue-ui-gizmo-DX6dnsfI.cjs} +1 -1
  76. package/dist/{vue-ui-heatmap-D_Tr1Hot.js → vue-ui-heatmap-DBzP4OF3.js} +10 -10
  77. package/dist/{vue-ui-heatmap-Bkd2G7uW.cjs → vue-ui-heatmap-Df4bNpxS.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-BG4nMlp7.js → vue-ui-history-plot-DDrPZ1aW.js} +11 -11
  79. package/dist/{vue-ui-history-plot-B-VBGxRa.cjs → vue-ui-history-plot-XPpTXFdp.cjs} +1 -1
  80. package/dist/{vue-ui-kpi-LMze0lWI.cjs → vue-ui-kpi-DCnXbmlM.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-WqBG4upX.js → vue-ui-kpi-DllQnaM_.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-CoVSw6EU.cjs → vue-ui-mini-loader-CAksZ5CW.cjs} +1 -1
  83. package/dist/{vue-ui-mini-loader-eRXubESG.js → vue-ui-mini-loader-DUUOG16Y.js} +2 -2
  84. package/dist/{vue-ui-molecule-BcpPXHgo.js → vue-ui-molecule-CNT6Iqi5.js} +10 -10
  85. package/dist/{vue-ui-molecule-Cu6_FpHD.cjs → vue-ui-molecule-DyQHaYZM.cjs} +1 -1
  86. package/dist/{vue-ui-mood-radar-CBFN1PfU.js → vue-ui-mood-radar-CprLBHpU.js} +11 -11
  87. package/dist/{vue-ui-mood-radar-DlTYq1OE.cjs → vue-ui-mood-radar-j9nneyUO.cjs} +1 -1
  88. package/dist/{vue-ui-nested-donuts-Cq0PWd1N.js → vue-ui-nested-donuts-CF-jSyUa.js} +11 -11
  89. package/dist/{vue-ui-nested-donuts-c6Dc8R-H.cjs → vue-ui-nested-donuts-Cg1p47uP.cjs} +1 -1
  90. package/dist/{vue-ui-onion-Bd2D2Vld.cjs → vue-ui-onion-CGvPHton.cjs} +1 -1
  91. package/dist/{vue-ui-onion-BFDD4SN8.js → vue-ui-onion-lAop0oO0.js} +11 -11
  92. package/dist/{vue-ui-parallel-coordinate-plot-BTCld26y.cjs → vue-ui-parallel-coordinate-plot-CF1Dt-34.cjs} +1 -1
  93. package/dist/{vue-ui-parallel-coordinate-plot-YF_ssmB7.js → vue-ui-parallel-coordinate-plot-vM7BVVi0.js} +12 -12
  94. package/dist/{vue-ui-quadrant-BeEBWrsG.js → vue-ui-quadrant-DlAbj_j6.js} +12 -12
  95. package/dist/{vue-ui-quadrant-B659Q5iR.cjs → vue-ui-quadrant-Te6mWq8u.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-Ba6-ZZk9.js → vue-ui-quick-chart-CIFSsg2O.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-w0LaPcFd.cjs → vue-ui-quick-chart-CJ69T4A5.cjs} +1 -1
  98. package/dist/{vue-ui-radar-DAUGZC3X.cjs → vue-ui-radar-Bpw4Ol7S.cjs} +1 -1
  99. package/dist/{vue-ui-radar-Dgu656_F.js → vue-ui-radar-DJJEwaWW.js} +12 -12
  100. package/dist/{vue-ui-rating-BIk1Ip7B.js → vue-ui-rating-BWQ3gtDw.js} +2 -2
  101. package/dist/{vue-ui-rating-BPgLpyoa.cjs → vue-ui-rating-CEOcHUR1.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-Dz_Du_5e.cjs → vue-ui-relation-circle-EAC-_4KL.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-CUU2Y66i.js → vue-ui-relation-circle-hTF7gfQf.js} +7 -7
  104. package/dist/{vue-ui-rings-DnZ3fSvL.js → vue-ui-rings-BHhzJO6R.js} +12 -12
  105. package/dist/{vue-ui-rings-B7kPmx8M.cjs → vue-ui-rings-nshYhfg6.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-Cej6ox0t.js → vue-ui-scatter-B05oU03T.js} +12 -12
  107. package/dist/{vue-ui-scatter-GfJALpzt.cjs → vue-ui-scatter-mkaSgzbX.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-DkuLYple.cjs → vue-ui-screenshot-BkHsxMBx.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-B4HNd362.js → vue-ui-screenshot-DcYLymGX.js} +1 -1
  110. package/dist/{vue-ui-skeleton-CiGqKHDK.cjs → vue-ui-skeleton-C_vRaZhI.cjs} +1 -1
  111. package/dist/{vue-ui-skeleton-XUKIcV-3.js → vue-ui-skeleton-Db5GDVLW.js} +3 -3
  112. package/dist/{vue-ui-smiley-BUgxzenz.js → vue-ui-smiley-BVsPtDbp.js} +2 -2
  113. package/dist/{vue-ui-smiley-Dfo5zjHi.cjs → vue-ui-smiley-C5grOPd7.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-EK-zZg4U.cjs → vue-ui-spark-trend-BhJUXEbd.cjs} +1 -1
  115. package/dist/{vue-ui-spark-trend-CvsL1wxJ.js → vue-ui-spark-trend-DVMI0hHl.js} +5 -5
  116. package/dist/{vue-ui-sparkbar-QL_FFOna.js → vue-ui-sparkbar-BP4Klcwq.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-CvWbFKnW.cjs → vue-ui-sparkbar-CchD9Z0i.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-g51bSap-.js → vue-ui-sparkgauge-Bh40wvEN.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-CX9L1CCZ.cjs → vue-ui-sparkgauge-Cc544Aj9.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-C_RkgtwV.cjs → vue-ui-sparkhistogram-2aQdqbS-.cjs} +1 -1
  121. package/dist/{vue-ui-sparkhistogram-TwShrJAd.js → vue-ui-sparkhistogram-B27-9RmD.js} +5 -5
  122. package/dist/{vue-ui-sparkline-PoXP19tk.js → vue-ui-sparkline-C4z4BgdB.js} +4 -4
  123. package/dist/{vue-ui-sparkline-B-1mFAFf.cjs → vue-ui-sparkline-DcjnRMCm.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-BtOZ3Xvo.cjs → vue-ui-sparkstackbar-BGV781nw.cjs} +1 -1
  125. package/dist/{vue-ui-sparkstackbar-C6K5d1a8.js → vue-ui-sparkstackbar-BfD-pJWc.js} +5 -5
  126. package/dist/{vue-ui-stackbar-DP0kLFaZ.cjs → vue-ui-stackbar-Dj_h3XUr.cjs} +1 -1
  127. package/dist/{vue-ui-stackbar-DoAp1q1k.js → vue-ui-stackbar-fMdRSsVo.js} +13 -13
  128. package/dist/{vue-ui-strip-plot-C6r7wmgw.cjs → vue-ui-strip-plot-D2geizj0.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-DFyDRMeJ.js → vue-ui-strip-plot-DMmf9d_H.js} +11 -11
  130. package/dist/{vue-ui-table-COQQvYVK.js → vue-ui-table-CcKldUI9.js} +1 -1
  131. package/dist/{vue-ui-table-BoFUMpxE.cjs → vue-ui-table-GdqtmrDJ.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-DEmDa6Mg.cjs → vue-ui-table-heatmap-B1IFStem.cjs} +1 -1
  133. package/dist/{vue-ui-table-heatmap-D1a4Jbfq.js → vue-ui-table-heatmap-B82viIhG.js} +4 -4
  134. package/dist/{vue-ui-table-sparkline-CH1R9R6a.js → vue-ui-table-sparkline-Bm_vy6Lk.js} +5 -5
  135. package/dist/{vue-ui-table-sparkline-bsEJsgny.cjs → vue-ui-table-sparkline-qY93ZgAb.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-CZIBISGi.js → vue-ui-thermometer-BCV4os_6.js} +7 -7
  137. package/dist/{vue-ui-thermometer-1Gl2tpWy.cjs → vue-ui-thermometer-D6YPh58k.cjs} +1 -1
  138. package/dist/{vue-ui-timer-CL0vPqGn.js → vue-ui-timer-BH4RyRGU.js} +5 -5
  139. package/dist/{vue-ui-timer-DXZ_7lOR.cjs → vue-ui-timer-C6tuiP54.cjs} +1 -1
  140. package/dist/{vue-ui-tiremarks-DdwzlfZg.js → vue-ui-tiremarks-Dp3x0P0N.js} +7 -7
  141. package/dist/{vue-ui-tiremarks-D8rdzzQb.cjs → vue-ui-tiremarks-Dt_VsUOM.cjs} +1 -1
  142. package/dist/vue-ui-treemap-BHdWvB2b.js +920 -0
  143. package/dist/vue-ui-treemap-CjFIqX2j.cjs +1 -0
  144. package/dist/{vue-ui-vertical-bar-pwqVkPXV.cjs → vue-ui-vertical-bar-BCt5jXfW.cjs} +1 -1
  145. package/dist/{vue-ui-vertical-bar-BOpex-Xq.js → vue-ui-vertical-bar-C52t8maW.js} +12 -12
  146. package/dist/{vue-ui-waffle-CW6THuE8.js → vue-ui-waffle-C-KQIRg5.js} +12 -12
  147. package/dist/{vue-ui-waffle-Bd_6bbdt.cjs → vue-ui-waffle-CZcsqZNd.cjs} +1 -1
  148. package/dist/{vue-ui-wheel-9xdDEq_q.js → vue-ui-wheel-CIIaCb2O.js} +7 -7
  149. package/dist/{vue-ui-wheel-BO3Xqux3.cjs → vue-ui-wheel-CQAT1WY8.cjs} +1 -1
  150. package/dist/{vue-ui-word-cloud-CJjvWjsc.cjs → vue-ui-word-cloud-BTH_Iu4E.cjs} +1 -1
  151. package/dist/{vue-ui-word-cloud-DAlBxzeY.js → vue-ui-word-cloud-CgC7nBrO.js} +10 -10
  152. package/dist/{vue-ui-xy-BIBSJN48.cjs → vue-ui-xy-BSlyU66u.cjs} +1 -1
  153. package/dist/{vue-ui-xy-CDGKX79V.js → vue-ui-xy-XERn_sPB.js} +14 -14
  154. package/dist/{vue-ui-xy-canvas-BN7OU1Ak.cjs → vue-ui-xy-canvas-DDmWzosq.cjs} +1 -1
  155. package/dist/{vue-ui-xy-canvas-C8YlVwjI.js → vue-ui-xy-canvas-DogYqOaq.js} +12 -12
  156. package/package.json +1 -1
  157. package/dist/vue-ui-treemap-B3N6hzO2.js +0 -857
  158. package/dist/vue-ui-treemap-CTcY1Qxh.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Zf2fUMIO.cjs"),Ae=require("./Title-BuZQSd23.cjs"),ke=require("./usePrinter-BGPa8G48.cjs"),Le=require("./Tooltip-BiBcMMP3.cjs"),Fe=require("./Legend-CHEbsxt2.cjs"),Ie=require("./vue-ui-skeleton-CiGqKHDK.cjs"),De=require("./DataTable-DLUrhKkw.cjs"),qe=require("./vue-ui-accordion-CnGQYWdI.cjs"),Ce=require("./useResponsive-N8jl0-aC.cjs"),we=require("./useNestedProp-BcSwG6N0.cjs"),Me=require("./PackageVersion-B6sWtTA0.cjs"),He=require("./PenAndPaper-DO7-xSYx.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),We=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function xe(n,c){const i=n.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let d=1/0,s=-1/0,h=0;for(let p=0;p<i;p+=1){const f=n[p].normalizedValue;f<d&&(d=f),f>s&&(s=f),h+=f}return Math.max(c**2*s/h**2,h**2/(c**2*d))}}function Te(n){const{xOffset:c,yOffset:i,width:d,height:s}=n;return{x0:c,y0:i,x1:c+d,y1:i+s}}function je(n,c,i){if(n.length===0)return!0;{const d=n.concat(c),s=xe(n,i),h=xe(d,i);return s>=h}}function Xe(n){const c=[],i=n.length;for(let d=0;d<i;d+=1){const s=n[d],h=s.length;for(let v=0;v<h;v+=1)c.push(s[v])}return c}function Ye(n,c){const i={...c,children:n};return Se(i)}function Ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function $e(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(c),v=n.length,p=n.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,w=p/i;let C=s,x=h;const b=[];if(i>=d){for(let y=0;y<v;y+=1){const g=n[y],k=x+g.normalizedValue/f,O={x0:C,y0:x,x1:C+f,y1:k},T=Object.assign({},g,O);x=k,b.push(T)}return b}else{for(let y=0;y<v;y+=1){const g=n[y],k=C+g.normalizedValue/w,O={x0:C,y0:x,x1:k,y1:x+w},T=Object.assign({},g,O);C=k,b.push(T)}return b}}function Je(n){const c=Y(n),i=c.width,d=c.height;return Math.min(i,d)}function Ke(n,c){const i=n.length,d=n.map(f=>f.value??0).reduce((f,w)=>f+w,0),s=c/d,h=[];let v,p;for(let f=0;f<i;f+=1)p=n[f],v=Object.assign({},p,{normalizedValue:p.value*(s||0)}),h.push(v);return h}function Y(n){const{x0:c,y0:i,x1:d,y1:s}=n;return{xOffset:c,yOffset:i,width:d-c,height:s-i}}function Qe(n,c,i,d){let s=n,h=c,v=i,p=d;for(;;){const f=s.length;if(f===0){const b=$e(h,v);return p.concat(b)}const w=Je(v),C=s[0],x=s.slice(1,f);if(je(h,C,w)){const b=h.concat(C);s=x,h=b,v=v,p=p}else{const b=h.length;let y=0;for(let T=0;T<b;T+=1)y+=h[T].normalizedValue;const g=et(v,y),k=$e(h,v),O=p.concat(k);s=s,h=[],v=g,p=O}}}function Se(n){if(typeof n.children>"u"||!n.children.length)return[n];{const c=Ke(n.children,Ze(n)),i=Qe(c,[],n,[]),d=i.length,s=[];for(let v=0;v<d;v+=1)s.push(Se(i[v]));return Xe(s)}}function et(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(n);if(i>=d){const v=c/d,p=i-v,f={xOffset:s+v,yOffset:h,width:p,height:d};return Te(f)}else{const v=c/i,p=d-v,f={xOffset:s,yOffset:h+v,width:i,height:p};return Te(f)}}const tt=["id"],ot=["xmlns","viewBox"],lt={key:0},at=["id"],nt=["stop-color"],rt=["stop-color"],st=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],ut=["x","y","height","width"],it={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},ct={key:5,class:"vue-data-ui-watermark"},dt=["onClick"],vt={key:0},ht={key:1},pt=["innerHTML"],ft={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:c,emit:i}){const{vue_ui_treemap:d}=r.useConfig(),s=n,h=i,v=e.useSlots();e.onMounted(()=>{v["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!s.dataset&&s.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),w=e.ref(r.createUid()),C=e.ref(!1),x=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),T=e.ref(null),Z=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>ae(),set:o=>o}),{userOptionsVisible:U,setUserOptionsVisibility:te,keepUserOptionState:oe}=Ue.useUserOptionState({config:t.value}),{svgRef:le}=We.useChartAccessibility({config:t.value.style.chart.title});function ae(){const o=we.useNestedProp({userConfig:s.config,defaultConfig:d});return o.theme?{...we.useNestedProp({userConfig:r.themes.vue_ui_treemap[o.theme]||s.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>s.config,o=>{t.value=ae(),U.value=!t.value.userOptions.showOnChartHover,K.value+=1,Q.value+=1,ee.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:ne,isImaging:re,generatePdf:se,generateImage:ue}=ke.usePrinter({elementId:`treemap_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),Ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),I=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),V=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function ie(o){o.forEach((a,l)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||I.value[l]||r.palette[l]||r.palette[l%r.palette.length],a.children&&(a.children.forEach(u=>{u.parentId=a.id,u.color=a.color}),ie(a.children))})}const _=e.ref(s.dataset),D=e.ref(null);e.onMounted(()=>{Be()});function Be(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),ie(_.value),t.value.responsive){const o=Ce.throttle(()=>{const{width:a,height:l}=Ce.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?T.value:null,source:Z.value,noTitle:J.value});requestAnimationFrame(()=>{P.value.width=a,P.value.height=l})});D.value=new ResizeObserver(o),D.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const W=e.ref(_.value),L=e.computed(()=>W.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(o=>!g.value.includes(o.id))),R=e.computed(()=>_.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ce=e.computed({get(){let o=[...L.value];return t.value.style.chart.layout.sorted&&(o=[...L.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function de(o,a){return o.value/a}function Oe(o,a,l){const u=t.value.style.chart.layout.rects.colorRatio-de(a,l);return r.lightenHexColor(o,u<0?0:u)}function ve(o,a,l,u){return o.map((m,z)=>{const H=Oe(r.convertColorToHex(a)||I.value[z]||r.palette[z]||r.palette[z%r.palette.length],m,u),Re=de(m,u);return{...m,color:H,proportion:Re,parentName:l,children:m.children?ve(m.children,H,m.name,u):void 0}})}const F=e.computed(()=>Ye(ce.value.map((o,a)=>{const l=o.children?o.children.reduce((u,m)=>u+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?ve(o.children.sort((u,m)=>m.value-u.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:V.value.left*2,y0:V.value.top,x1:V.value.width,y1:V.value.height}));function he({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function pe({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Pe(o){b.value=o,y.value+=1}const A=e.computed(()=>({startX:0,startY:0,width:V.value.vbWidth,height:V.value.vbHeight})),S=e.ref(!1);function G(o,a=_.value){for(const l of a){if(l.id===o)return l;if(l.children){const u=G(o,l.children);if(u)return u}}return null}function ze(o){if(S.value)h("selectDatapoint",void 0),W.value=_.value;else{if(h("selectDatapoint",o),!G(o.parentId))return;W.value=[G(o.parentId)]}S.value=!S.value}const N=e.ref(null),fe=e.computed(()=>_.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/_.value.map(l=>l.value).reduce((l,u)=>l+u,0),opacity:g.value.includes(o.id)?.5:1}))),Ve=e.computed(()=>({cy:"treemap-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":""}));function ge(o){S.value=!1,N.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<s.dataset.length-1&&g.value.push(o.id),h("selectLegend",ce.value)}const j=e.ref(null);function _e({datapoint:o,seriesIndex:a}){N.value=o,j.value={datapoint:o,seriesIndex:a,config:t.value,series:L.value};const l=t.value.style.chart.tooltip.customFormat;if(r.isFunction(l)&&r.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:L.value,config:t.value})))x.value=l({seriesIndex:a,datapoint:o,series:L.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${o.color}"/></svg>`,u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,x.value=`<div>${u}</div>`}C.value=!0}const B=e.computed(()=>{const o=F.value.map(l=>({name:l.name,color:l.color})),a=F.value.map(l=>l.value);return{head:o,body:a}});function me(){e.nextTick(()=>{const o=B.value.head.map((u,m)=>[[u.name],[B.value.body[m]],[isNaN(B.value.body[m]/R.value)?"-":B.value.body[m]/R.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=B.value.head.map((m,z)=>{const H=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,B.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:B.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},H,isNaN(B.value.body[z]/R.value)?"-":r.dataLabel({v:B.value.body[z]/R.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function Ee(){return F.value}function ye(){$.value.showTable=!$.value.showTable}function be(){$.value.showTooltip=!$.value.showTooltip}const M=e.ref(!1);function X(){M.value=!M.value}return c({getData:Ee,generateCsv:me,generateImage:ue,generatePdf:se,toggleTable:ye,toggleTooltip:be,toggleAnnotator:X}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${w.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(te)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(He.PenAndPaper,{key:0,svgRef:e.unref(le),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:X},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:J,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:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Ae._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(oe)||e.unref(U))?(e.openBlock(),e.createBlock(ke.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ne),isImaging:e.unref(re),uid:w.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:Pe,onGeneratePdf:e.unref(se),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ye,onToggleTooltip:be,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(U)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:le,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!S.value,"vue-data-ui-zoom-minus":S.value}),viewBox:`${A.value.startX} ${A.value.startY} ${A.value.width<=0?10:A.value.width} ${A.value.height<=0?10:A.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",lt,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,nt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,rt)],8,at)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:he(l),width:pe(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:m=>ze(l),onMouseenter:()=>_e({datapoint:l,seriesIndex:u}),onMouseleave:a[0]||(a[0]=m=>{N.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${N.value?N.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,st),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:he(l),width:pe(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",it,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(l)/1.5}px);text-align:left;line-height:${E(l)<14?14:E(l)}px;padding:${E(l)/3}px; color:${e.unref(r.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),a[5]||(a[5]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value,fontSize:E(l),isZoom:S.value,textColor:e.unref(r.adaptColorToBackground)(l.color)}),void 0,!0)])],8,ut))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:V.value,isZoom:S.value,rect:N.value,config:t.value})),void 0,!0)],14,ot)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ne)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:T},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Fe.Legend,{key:`legend_${ee.value}`,legendSet:fe.value,config:Ve.value,id:`treemap_legend_${w.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>ge(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:m=>ge(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",ht," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",vt," ("+e.toDisplayString(isNaN(l.value/R.value)?"-":(l.value/R.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,dt)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:fe.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Z,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Le._sfc_main,{show:$.value.showTooltip&&C.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:x.value,isFullscreen:b.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:$.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.openBlock(),e.createBlock(De.DataTable,{key:`table_${Q.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,pt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,tt))}},gt=Ge._export_sfc(ft,[["__scopeId","data-v-57b31c44"]]);exports.default=gt;