vue-data-ui 2.3.31 → 2.3.33

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 (144) hide show
  1. package/dist/{Arrow-CiAaagmx.js → Arrow-CUxfM_Pi.js} +1 -1
  2. package/dist/{Arrow-CiUBvBlb.cjs → Arrow-U-GXPs_S.cjs} +1 -1
  3. package/dist/{BaseIcon-BHjAlRHU.js → BaseIcon-Cq04T7KZ.js} +1 -1
  4. package/dist/{BaseIcon-D5tyFpQV.cjs → BaseIcon-DsmnhCxw.cjs} +1 -1
  5. package/dist/{DataTable-DqPGv4Ms.js → DataTable-COtc9-N3.js} +2 -2
  6. package/dist/{DataTable-ByKKUsaO.cjs → DataTable-i6_WDL4K.cjs} +1 -1
  7. package/dist/{Legend-BfwTJ9M-.cjs → Legend-B_gotRVB.cjs} +1 -1
  8. package/dist/{Legend-3WC5-bUm.js → Legend-Bj_2LeEE.js} +1 -1
  9. package/dist/{Shape-C4kR-mjQ.js → Shape-J2c5E_YE.js} +1 -1
  10. package/dist/{Shape-CAjMa3HT.cjs → Shape-e7Tqal5k.cjs} +1 -1
  11. package/dist/{Slicer-BScyt_Vx.cjs → Slicer-CDFjbPHy.cjs} +1 -1
  12. package/dist/{Slicer-CPKkdrpR.js → Slicer-CL9wj6Ug.js} +1 -1
  13. package/dist/{Title-CNJKmNgA.cjs → Title-D5JSyW9g.cjs} +1 -1
  14. package/dist/{Title-CKSMMGjd.js → Title-n2bQMWGU.js} +1 -1
  15. package/dist/{Tooltip-C9Q2lE3W.js → Tooltip-B2-UhSCE.js} +1 -1
  16. package/dist/{Tooltip-BIHm4byQ.cjs → Tooltip-Bd80EmMe.cjs} +1 -1
  17. package/dist/{index-DQvb5Vgo.cjs → index-C9r5MSxp.cjs} +1 -1
  18. package/dist/{index-BJ6NXF-z.js → index-D4ZfmZSg.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-AR9tJrsp.js → useNestedProp-DWL7GF6p.js} +1 -1
  21. package/dist/{useNestedProp-D1F0KM3m.cjs → useNestedProp-DlpyayQg.cjs} +1 -1
  22. package/dist/{usePrinter-BUIam1ao.js → usePrinter-2BdamNLl.js} +1 -1
  23. package/dist/{usePrinter-C4oaA82s.cjs → usePrinter-CgeascwN.cjs} +1 -1
  24. package/dist/{vue-data-ui-Ch_eQQZR.cjs → vue-data-ui-C60pgqBZ.cjs} +1 -1
  25. package/dist/{vue-data-ui-DfNedsHE.js → vue-data-ui-D98veSqI.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-BiF2mAOR.cjs → vue-ui-3d-bar-CPC6HEVe.cjs} +1 -1
  29. package/dist/{vue-ui-3d-bar-cav5cdhf.js → vue-ui-3d-bar-ChlIQYo8.js} +7 -7
  30. package/dist/{vue-ui-accordion-D5-giD3x.cjs → vue-ui-accordion-B_pg4OcN.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-GCDGaaYO.js → vue-ui-accordion-W99d82RY.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CCDfdeJE.js → vue-ui-age-pyramid-CApF0nDH.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DA-7y6nN.cjs → vue-ui-age-pyramid-jU-pS_FX.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-BKzaeqJR.cjs → vue-ui-annotator-4-SHlO9R.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-B_vPtBm9.js → vue-ui-annotator-DBlQGFBE.js} +1 -1
  36. package/dist/{vue-ui-candlestick-CeZC3-9i.js → vue-ui-candlestick-BJfFRmNj.js} +9 -9
  37. package/dist/{vue-ui-candlestick-Cgg58gem.cjs → vue-ui-candlestick-rPD-ZQra.cjs} +1 -1
  38. package/dist/{vue-ui-carousel-table-ySFFobPq.cjs → vue-ui-carousel-table-CulRP90Z.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-e0zW3fCz.js → vue-ui-carousel-table-DO-9-fol.js} +4 -4
  40. package/dist/{vue-ui-chestnut-Cxw7FjDt.cjs → vue-ui-chestnut-CPL4jyF7.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-ClIE26od.js → vue-ui-chestnut-CRdOMFxs.js} +6 -6
  42. package/dist/{vue-ui-cursor-DyIiGBho.cjs → vue-ui-cursor-Bj3h6sDD.cjs} +1 -1
  43. package/dist/{vue-ui-cursor-5ilFNncb.js → vue-ui-cursor-D12DG4Kf.js} +2 -2
  44. package/dist/{vue-ui-dashboard-CXrmy76c.js → vue-ui-dashboard-DUK0wNgQ.js} +2 -2
  45. package/dist/{vue-ui-dashboard-D-JyU495.cjs → vue-ui-dashboard-IOYL5mEF.cjs} +1 -1
  46. package/dist/{vue-ui-digits-BEZa60-l.js → vue-ui-digits-BC_4rx73.js} +2 -2
  47. package/dist/{vue-ui-digits-B30HSHeA.cjs → vue-ui-digits-BzhcctF7.cjs} +1 -1
  48. package/dist/{vue-ui-donut-0jWL1Wzc.cjs → vue-ui-donut-BomizJUs.cjs} +1 -1
  49. package/dist/{vue-ui-donut-GPrnPVJq.js → vue-ui-donut-D74abrbu.js} +9 -9
  50. package/dist/{vue-ui-donut-evolution-hoHN3gzZ.cjs → vue-ui-donut-evolution-BJ4Ok-Yp.cjs} +1 -1
  51. package/dist/{vue-ui-donut-evolution-D0LbULdi.js → vue-ui-donut-evolution-BUa4csgt.js} +9 -9
  52. package/dist/{vue-ui-dumbbell-67OcxNA7.js → vue-ui-dumbbell-CUYETxFP.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-Cb87RX2P.cjs → vue-ui-dumbbell-DwWTHgZG.cjs} +1 -1
  54. package/dist/{vue-ui-flow-DPVIb1Kj.cjs → vue-ui-flow-CCLdNeJ-.cjs} +1 -1
  55. package/dist/{vue-ui-flow-Vi3PWSP4.js → vue-ui-flow-D27Aqy5V.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BgO0ZTYY.js → vue-ui-galaxy-BTiLZwc-.js} +9 -9
  57. package/dist/{vue-ui-galaxy-B5oGFG97.cjs → vue-ui-galaxy-D5J1WxYR.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-B0w9GJOy.js → vue-ui-gauge-Bhpq7HDO.js} +5 -5
  59. package/dist/{vue-ui-gauge-qe4o6Sjl.cjs → vue-ui-gauge-TX5Mp_Mp.cjs} +1 -1
  60. package/dist/{vue-ui-gizmo-BVoL7TEm.cjs → vue-ui-gizmo-AigQjkN4.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-BXN_MwN4.js → vue-ui-gizmo-Dw4ItxKs.js} +2 -2
  62. package/dist/{vue-ui-heatmap-8TBiusXd.cjs → vue-ui-heatmap-DdSBSZCN.cjs} +1 -1
  63. package/dist/{vue-ui-heatmap-BHNaaYJl.js → vue-ui-heatmap-TBi8dmtO.js} +8 -8
  64. package/dist/{vue-ui-kpi-BeGFsXxC.cjs → vue-ui-kpi-DsKGWQHr.cjs} +1 -1
  65. package/dist/{vue-ui-kpi-DTu-z6sj.js → vue-ui-kpi-IYD-xkcq.js} +2 -2
  66. package/dist/{vue-ui-mini-loader-D1vhrkOt.cjs → vue-ui-mini-loader-M-frsLpu.cjs} +1 -1
  67. package/dist/{vue-ui-mini-loader-BHX2lzqL.js → vue-ui-mini-loader-_gmuDh2Q.js} +2 -2
  68. package/dist/{vue-ui-molecule-Bow2JLXO.cjs → vue-ui-molecule-CAi5aoBp.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-DLbPBobL.js → vue-ui-molecule-PDKF_CLU.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-C0-KPgNg.js → vue-ui-mood-radar-CbR_Qbbh.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-CqosXQQX.cjs → vue-ui-mood-radar-D4QwpYsd.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-C2NpczwE.cjs → vue-ui-nested-donuts-DGTR7aLK.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-BFa-oFEx.js → vue-ui-nested-donuts-Doe9ng0y.js} +9 -9
  74. package/dist/{vue-ui-onion-BexMkS4E.js → vue-ui-onion-BuigCMf3.js} +9 -9
  75. package/dist/{vue-ui-onion-DwdVlm0O.cjs → vue-ui-onion-DHknupJ5.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-BKKl2c7B.cjs → vue-ui-parallel-coordinate-plot-CWkSo4cL.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-BALCmQ5Z.js → vue-ui-parallel-coordinate-plot-Re0LZuAY.js} +10 -10
  78. package/dist/{vue-ui-quadrant-CTrV6HgE.js → vue-ui-quadrant-DpPJj0z7.js} +10 -10
  79. package/dist/{vue-ui-quadrant-BPoDyM8A.cjs → vue-ui-quadrant-EI_IElYh.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-BmMbY6SQ.js → vue-ui-quick-chart-BDhl2kNP.js} +6 -6
  81. package/dist/{vue-ui-quick-chart-D4GFWcp7.cjs → vue-ui-quick-chart-BsjrnDad.cjs} +1 -1
  82. package/dist/{vue-ui-radar-7sSdEfcO.cjs → vue-ui-radar-CBSzPrBN.cjs} +1 -1
  83. package/dist/{vue-ui-radar-Clfa-6Le.js → vue-ui-radar-dnfC3Ts9.js} +10 -10
  84. package/dist/{vue-ui-rating-Cs45C-53.cjs → vue-ui-rating-Du9DDruY.cjs} +1 -1
  85. package/dist/{vue-ui-rating-Ce8pPHCS.js → vue-ui-rating-v0CG2kgK.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-CuZjr_W8.cjs → vue-ui-relation-circle-BWOVSaOS.cjs} +1 -1
  87. package/dist/{vue-ui-relation-circle-DokQNUAI.js → vue-ui-relation-circle-QrWQ4Qai.js} +5 -5
  88. package/dist/{vue-ui-rings-Cd_5yc8m.js → vue-ui-rings-CU1fcuiz.js} +9 -9
  89. package/dist/{vue-ui-rings-DlcUcstZ.cjs → vue-ui-rings-VIofJZ94.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-Diih7alT.cjs → vue-ui-scatter-B76IQkXa.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-CGUY8yGo.js → vue-ui-scatter-B9YxRg1S.js} +10 -10
  92. package/dist/{vue-ui-screenshot-CslXMiXF.js → vue-ui-screenshot-BYVANzt7.js} +1 -1
  93. package/dist/{vue-ui-screenshot-C4CVXRBT.cjs → vue-ui-screenshot-idw5giko.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-DdAE1RlM.js → vue-ui-skeleton-Dil3xmv9.js} +2 -2
  95. package/dist/{vue-ui-skeleton-6fxZMdtV.cjs → vue-ui-skeleton-ldYPv9PF.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-enpMVkNM.cjs → vue-ui-smiley-CEz1wWuk.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-DTY5KiDB.js → vue-ui-smiley-DwxiNgdv.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-CNqfwxj9.js → vue-ui-spark-trend-BG9DZeZe.js} +4 -4
  99. package/dist/{vue-ui-spark-trend-UUDAPzlU.cjs → vue-ui-spark-trend-DN25w-rB.cjs} +1 -1
  100. package/dist/{vue-ui-sparkbar-D2M_uMU8.js → vue-ui-sparkbar-Cs4n_GY1.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-BEwF2ZHO.cjs → vue-ui-sparkbar-DaVxC8Nf.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-BQo2RtDp.js → vue-ui-sparkgauge-D_I53hj4.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-DCXz-sVO.cjs → vue-ui-sparkgauge-W8c5LNBs.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-B83GykeL.js → vue-ui-sparkhistogram-CGRVea-3.js} +4 -4
  105. package/dist/{vue-ui-sparkhistogram-DnJyQqnN.cjs → vue-ui-sparkhistogram-j1RxtN2d.cjs} +1 -1
  106. package/dist/{vue-ui-sparkline-pblHktJQ.cjs → vue-ui-sparkline-C77GWtzb.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-DDGgABlc.js → vue-ui-sparkline-ChuyFXnO.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-CA3xOex0.js → vue-ui-sparkstackbar-DOThH5PJ.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-Btx1pr5F.cjs → vue-ui-sparkstackbar-DeGSbEIo.cjs} +1 -1
  110. package/dist/vue-ui-stackbar-BYEBWNws.js +786 -0
  111. package/dist/vue-ui-stackbar-BakzF6CM.cjs +6 -0
  112. package/dist/{vue-ui-strip-plot-CX2aCzHG.js → vue-ui-strip-plot-CK0dO53m.js} +9 -9
  113. package/dist/{vue-ui-strip-plot-BaLXVgu4.cjs → vue-ui-strip-plot-Dx6P2lA2.cjs} +1 -1
  114. package/dist/{vue-ui-table-sQc-MSR_.cjs → vue-ui-table-DIPNLMvf.cjs} +1 -1
  115. package/dist/{vue-ui-table-ClECxS2U.js → vue-ui-table-DkMrvnDz.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-BL8cy2H3.js → vue-ui-table-heatmap-B4q7WfSh.js} +4 -4
  117. package/dist/{vue-ui-table-heatmap-9BG7K8wL.cjs → vue-ui-table-heatmap-BVEhEE0q.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-Dptv8kIS.cjs → vue-ui-table-sparkline-CU0SCv36.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-D0CF7Nwo.js → vue-ui-table-sparkline-Cl4a56D9.js} +5 -5
  120. package/dist/{vue-ui-thermometer-CDI0CdOu.cjs → vue-ui-thermometer-DiOXG9FE.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BIWGfZUV.js → vue-ui-thermometer-pcKB72qU.js} +5 -5
  122. package/dist/{vue-ui-timer-CLoIqr2Z.js → vue-ui-timer-BFcCXVhI.js} +4 -4
  123. package/dist/{vue-ui-timer-BUj9O2DA.cjs → vue-ui-timer-DnEhYkYY.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-BbTYG885.cjs → vue-ui-tiremarks-ChIQAk_l.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-QCCPssnC.js → vue-ui-tiremarks-Cx5AJacV.js} +5 -5
  126. package/dist/{vue-ui-treemap-B1mD4WbM.js → vue-ui-treemap-BeAjlsgd.js} +9 -9
  127. package/dist/{vue-ui-treemap-D6YxChmu.cjs → vue-ui-treemap-CUkSlJWq.cjs} +1 -1
  128. package/dist/vue-ui-vertical-bar-C6CBhGbv.js +805 -0
  129. package/dist/vue-ui-vertical-bar-lJGZ-IJS.cjs +4 -0
  130. package/dist/{vue-ui-waffle-xeawcYID.cjs → vue-ui-waffle-C29vX0FU.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-BMYYVoRM.js → vue-ui-waffle-DM2bqLaZ.js} +9 -9
  132. package/dist/{vue-ui-wheel-t6sMmDHN.js → vue-ui-wheel-Br23_h13.js} +5 -5
  133. package/dist/{vue-ui-wheel-Sp4i7L2L.cjs → vue-ui-wheel-D-KizYjp.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-ohI8RK1_.cjs → vue-ui-word-cloud-CNrw2pGa.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-BURJJFyJ.js → vue-ui-word-cloud-DkqrXhGq.js} +7 -7
  136. package/dist/{vue-ui-xy-CruxD8qY.js → vue-ui-xy-Bl-Jb6uH.js} +12 -12
  137. package/dist/{vue-ui-xy-DcjiVoXA.cjs → vue-ui-xy-CJkw_ARZ.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-D3KZ8rIM.js → vue-ui-xy-canvas-BIYJhOix.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-B5pcGCvN.cjs → vue-ui-xy-canvas-CXK6EGbI.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-stackbar-BhLDK1Rx.js +0 -765
  142. package/dist/vue-ui-stackbar-DPsuPIje.cjs +0 -15
  143. package/dist/vue-ui-vertical-bar-CIbzBp6T.cjs +0 -4
  144. package/dist/vue-ui-vertical-bar-Cq7SX6st.js +0 -792
@@ -1,9 +1,9 @@
1
1
  import { computed as h, ref as p, watch as Z, onMounted as ee, openBlock as s, createElementBlock as v, normalizeClass as O, normalizeStyle as S, createVNode as te, createCommentVNode as _, createBlock as V, unref as d, createSlots as ae, withCtx as A, renderSlot as w, normalizeProps as X, guardReactiveProps as D, Fragment as M, renderList as H, toDisplayString as le } from "vue";
2
- import { u as R } from "./useNestedProp-AR9tJrsp.js";
3
- import { u as re, c as oe, t as se, o as ne, e as ue, s as Y, X as ie, i as ce, f as ve } from "./index-BJ6NXF-z.js";
4
- import { _ as he } from "./Title-CKSMMGjd.js";
5
- import { u as de, U as ge } from "./usePrinter-BUIam1ao.js";
6
- import ye from "./vue-ui-skeleton-DdAE1RlM.js";
2
+ import { u as R } from "./useNestedProp-DWL7GF6p.js";
3
+ import { u as re, c as oe, t as se, o as ne, e as ue, s as Y, X as ie, i as ce, f as ve } from "./index-D4ZfmZSg.js";
4
+ import { _ as he } from "./Title-n2bQMWGU.js";
5
+ import { u as de, U as ge } from "./usePrinter-2BdamNLl.js";
6
+ import ye from "./vue-ui-skeleton-Dil3xmv9.js";
7
7
  import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const fe = ["id"], pe = ["xmlns", "viewBox"], ke = { key: 0 }, _e = ["d", "stroke-width", "stroke"], be = { key: 1 }, Ce = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], $e = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], xe = {
9
9
  key: 3,
@@ -1,14 +1,14 @@
1
1
  import { computed as C, ref as y, onMounted as Ee, onBeforeUnmount as Ue, openBlock as m, createElementBlock as k, normalizeClass as xe, normalizeStyle as M, createVNode as se, createCommentVNode as V, createBlock as te, unref as b, createSlots as Ge, withCtx as T, renderSlot as _, normalizeProps as G, guardReactiveProps as X, Fragment as $e, renderList as Te, createElementVNode as O, toDisplayString as q, createTextVNode as _e, nextTick as Xe, pushScopeId as qe, popScopeId as je } from "vue";
2
- import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-BJ6NXF-z.js";
3
- import { _ as nt } from "./Title-CKSMMGjd.js";
4
- import { u as st, U as rt } from "./usePrinter-BUIam1ao.js";
5
- import { _ as ut } from "./Tooltip-C9Q2lE3W.js";
6
- import { L as it } from "./Legend-3WC5-bUm.js";
7
- import ct from "./vue-ui-skeleton-DdAE1RlM.js";
8
- import { D as dt } from "./DataTable-DqPGv4Ms.js";
9
- import vt from "./vue-ui-accordion-GCDGaaYO.js";
2
+ import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-D4ZfmZSg.js";
3
+ import { _ as nt } from "./Title-n2bQMWGU.js";
4
+ import { u as st, U as rt } from "./usePrinter-2BdamNLl.js";
5
+ import { _ as ut } from "./Tooltip-B2-UhSCE.js";
6
+ import { L as it } from "./Legend-Bj_2LeEE.js";
7
+ import ct from "./vue-ui-skeleton-Dil3xmv9.js";
8
+ import { D as dt } from "./DataTable-COtc9-N3.js";
9
+ import vt from "./vue-ui-accordion-W99d82RY.js";
10
10
  import { t as ht, u as ft } from "./useResponsive-NZB-WLRF.js";
11
- import { u as Pe } from "./useNestedProp-AR9tJrsp.js";
11
+ import { u as Pe } from "./useNestedProp-DWL7GF6p.js";
12
12
  import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function Ie(a, i) {
14
14
  const s = a.length;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DQvb5Vgo.cjs"),ke=require("./Title-CNJKmNgA.cjs"),re=require("./usePrinter-C4oaA82s.cjs"),Ce=require("./Tooltip-BIHm4byQ.cjs"),we=require("./Legend-BfwTJ9M-.cjs"),xe=require("./vue-ui-skeleton-6fxZMdtV.cjs"),Te=require("./DataTable-ByKKUsaO.cjs"),$e=require("./vue-ui-accordion-D5-giD3x.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),se=require("./useNestedProp-D1F0KM3m.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ie(n,d){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,i=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>i&&(i=p),v+=p}return Math.max(d**2*i/v**2,v**2/(d**2*u))}}function ce(n){const{xOffset:d,yOffset:s,width:u,height:i}=n;return{x0:d,y0:s,x1:d+u,y1:s+i}}function Ne(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),i=ie(n,s),v=ie(u,s);return i>=v}}function Be(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const i=n[u],v=i.length;for(let h=0;h<v;h+=1)d.push(i[h])}return d}function _e(n,d){const s={...d,children:n};return ve(s)}function ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function de(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(d),h=n.length,f=n.map(m=>m.normalizedValue||0).reduce((m,k)=>m+k,0),p=f/u,C=f/s;let b=i,w=v;const g=[];if(s>=u){for(let m=0;m<h;m+=1){const k=n[m],x=w+k.normalizedValue/p,t={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,t);w=x,g.push(T)}return g}else{for(let m=0;m<h;m+=1){const k=n[m],x=b+k.normalizedValue/C,t={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,t);b=x,g.push(T)}return g}}function Pe(n){const d=W(n),s=d.width,u=d.height;return Math.min(s,u)}function Oe(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),i=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(i||0)}),v.push(h);return v}function W(n){const{x0:d,y0:s,x1:u,y1:i}=n;return{xOffset:d,yOffset:s,width:u-d,height:i-s}}function Ve(n,d,s,u){let i=n,v=d,h=s,f=u;for(;;){const p=i.length;if(p===0){const g=de(v,h);return f.concat(g)}const C=Pe(h),b=i[0],w=i.slice(1,p);if(Ne(v,b,C)){const g=v.concat(b);i=w,v=g,h=h,f=f}else{const g=v.length;let m=0;for(let T=0;T<g;T+=1)m+=v[T].normalizedValue;const k=Ee(h,m),x=de(v,h),t=f.concat(x);i=i,v=[],h=k,f=t}}}function ve(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Oe(n.children,ze(n)),s=Ve(d,[],n,[]),u=s.length,i=[];for(let h=0;h<u;h+=1)i.push(ve(s[h]));return Be(i)}}function Ee(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:i+h,yOffset:v,width:f,height:u};return ce(p)}else{const h=d/s,f=u-h,p={xOffset:i,yOffset:v+h,width:s,height:f};return ce(p)}}const Le=n=>(e.pushScopeId("data-v-7028d693"),n=n(),e.popScopeId(),n),Re=["id"],Fe=["xmlns","viewBox"],De={key:0},Ie=["id"],qe=["stop-color"],Ae=["stop-color"],He=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Me=["x","y","height","width"],We={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},Ue=Le(()=>e.createElementVNode("br",null,null,-1)),Ge={key:3,class:"vue-data-ui-watermark"},je=["onClick"],Xe={key:0},Ye={key:1},Ze=["innerHTML"],Je={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:d,emit:s}){const u=n,{vue_ui_treemap:i}=r.useConfig(),v=e.computed(()=>!!u.dataset&&u.dataset.length),h=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),f=e.ref(r.createUid()),p=e.ref(!1),C=e.ref(""),b=e.ref(!1),w=e.ref(0),g=e.ref([]),m=e.ref(null),k=e.ref(null),x=e.ref(null),t=e.computed(()=>{const l=se.useNestedProp({userConfig:u.config,defaultConfig:i});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_treemap[l.theme]||u.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:T,isImaging:U,generatePdf:G,generateImage:j}=re.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),D=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),P=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function X(l){l.forEach((a,o)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||D.value[o]||r.palette[o]||r.palette[o%r.palette.length],a.children&&(a.children.forEach(c=>{c.parentId=a.id,c.color=a.color}),X(a.children))})}const O=e.ref(u.dataset),I=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),X(O.value),t.value.responsive){const l=ue.throttle(()=>{const{width:a,height:o}=ue.useResponsive({chart:m.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null});_.value.width=a,_.value.height=o});I.value=new ResizeObserver(l),I.value.observe(m.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});const H=e.ref(O.value),R=e.computed(()=>H.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(l=>!g.value.includes(l.id))),E=e.computed(()=>O.value.filter(l=>!g.value.includes(l.id)).map(l=>l.value||0).reduce((l,a)=>l+a,0)),Y=e.computed({get(){let l=[...R.value];return t.value.style.chart.layout.sorted&&(l=[...R.value].sort((a,o)=>o.value-a.value)),l.map(a=>({...a}))},set(l){return l}});function Z(l,a){return l.value/a}function he(l,a,o){const c=t.value.style.chart.layout.rects.colorRatio-Z(a,o);return r.lightenHexColor(l,c<0?0:c)}function J(l,a,o,c){return l.map((y,z)=>{const A=he(r.convertColorToHex(a)||D.value[z]||r.palette[z]||r.palette[z%r.palette.length],y,c),be=Z(y,c);return{...y,color:A,proportion:be,parentName:o,children:y.children?J(y.children,A,y.name,c):void 0}})}const F=e.computed(()=>_e(Y.value.map((l,a)=>{const o=l.children?l.children.reduce((c,y)=>c+y.value,0):l.value;return{value:l.value,id:l.id,children:l.children?J(l.children.sort((c,y)=>y.value-c.value),l.color,l.name,o):void 0,color:l.color,name:l.name}}),{x0:P.value.left*2,y0:P.value.top,x1:P.value.width,y1:P.value.height}));function K({y0:l,y1:a}){return a-l<=0?1e-4:a-l}function Q({x0:l,x1:a}){return a-l<=0?1e-4:a-l}function V(l){const a=t.value.style.chart.layout.labels.fontSize*(l.proportion*2>1?1:l.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function pe(l){b.value=l,w.value+=1}const L=e.computed(()=>({startX:0,startY:0,width:P.value.vbWidth,height:P.value.vbHeight})),$=e.ref(!1);function ee(l,a=O.value){for(const o of a){if(o.id===l)return o;if(o.children){const c=ee(l,o.children);if(c)return c}}return null}function fe(l){$.value?(s("selectDatapoint",void 0),H.value=O.value):(s("selectDatapoint",l),H.value=[ee(l.parentId)]),$.value=!$.value}const S=e.ref(null),te=e.computed(()=>O.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((l,a)=>a.value-l.value).map((l,a)=>({...l,proportion:l.value/O.value.map(o=>o.value).reduce((o,c)=>o+c,0),opacity:g.value.includes(l.id)?.5:1}))),ge=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 le(l){$.value=!1,S.value=null,g.value.includes(l.id)?g.value=g.value.filter(a=>a!==l.id):g.value.length<u.dataset.length-1&&g.value.push(l.id),s("selectLegend",Y.value)}const M=e.ref(null);function me({datapoint:l,seriesIndex:a}){S.value=l,M.value={datapoint:l,seriesIndex:a,config:t.value,series:R.value};const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:a,datapoint:l,series:R.value,config:t.value})))C.value=o({seriesIndex:a,datapoint:l,series:R.value,config:t.value});else{let c="";c+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,c+=`<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="${l.color}"/></svg>`,c+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,l.value,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.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</b>`,C.value=`<div>${c}</div>`}p.value=!0}const N=e.computed(()=>{const l=F.value.map(o=>({name:o.name,color:o.color})),a=F.value.map(o=>o.value);return{head:l,body:a}});function oe(){e.nextTick(()=>{const l=N.value.head.map((c,y)=>[[c.name],[N.value.body[y]],[isNaN(N.value.body[y]/E.value)?"-":N.value.body[y]/E.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,z)=>{const A=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},A,isNaN(N.value.body[z]/E.value)?"-":r.dataLabel({v:N.value.body[z]/E.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={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:l,body:a,config:o}});function ye(){return F.value}function ae(){B.value.showTable=!B.value.showTable}function ne(){B.value.showTooltip=!B.value.showTooltip}return d({getData:ye,generateCsv:oe,generateImage:j,generatePdf:G,toggleTable:ae,toggleTooltip:ne}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:m,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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[e.createVNode(ke._sfc_main,{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&&v.value?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(U),uid:f.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:B.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(G),onGenerateCsv:oe,onGenerateImage:e.unref(j),onToggleTable:ae,onToggleTooltip:ne},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:2,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":!$.value,"vue-data-ui-zoom-minus":$.value}),viewBox:`${L.value.startX} ${L.value.startY} ${L.value.width<=0?10:L.value.width} ${L.value.height<=0?10:L.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",De,[e.createElementVNode("radialGradient",{id:`tgrad_${o.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":o.color},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,Ae)],8,Ie)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.x0,y:o.y0,height:K(o),width:Q(o),fill:h.value?o.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${o.id})`:o.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>fe(o),onMouseenter:()=>me({datapoint:o,seriesIndex:c}),onMouseleave:a[0]||(a[0]=y=>{S.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${S.value?S.value.id===o.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,He),(e.openBlock(),e.createElementBlock("foreignObject",{x:o.x0,y:o.y0,height:K(o),width:Q(o),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",We,[t.value.style.chart.layout.labels.showDefaultLabels&&(o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${V(o)/1.5}px);text-align:left;line-height:${V(o)<14?14:V(o)}px;padding:${V(o)/3}px; color:${e.unref(r.adaptColorToBackground)(o.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(o.name),5),Ue,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(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.layout.labels.rounding}),{datapoint:o})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:o,shouldShow:o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value,fontSize:V(o),isZoom:$.value,textColor:e.unref(r.adaptColorToBackground)(o.color)})),void 0,!0)])],8,Me))]))),256)),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:P.value,isZoom:$.value,rect:S.value,config:t.value})),void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:4,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:x},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:0,legendSet:te.value,config:ge.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:o})=>le(o))},{item:e.withCtx(({legend:o,index:c})=>[e.createElementVNode("div",{onClick:y=>le(o),style:e.normalizeStyle(`opacity:${g.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(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.legend.roundingValue}),{datapoint:o}))+" ",1),g.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Ye," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(isNaN(o.value/E.value)?"-":(o.value/E.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,je)]),_:1},8,["legendSet","config","id"])):e.renderSlot(l.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Ce._sfc_main,{show:B.value.showTooltip&&p.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:m.value,content:C.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),v.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:B.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.createVNode(Te.DataTable,{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]=o=>B.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ze)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Re))}},Ke=Se._export_sfc(Je,[["__scopeId","data-v-7028d693"]]);exports.default=Ke;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C9r5MSxp.cjs"),ke=require("./Title-D5JSyW9g.cjs"),re=require("./usePrinter-CgeascwN.cjs"),Ce=require("./Tooltip-Bd80EmMe.cjs"),we=require("./Legend-B_gotRVB.cjs"),xe=require("./vue-ui-skeleton-ldYPv9PF.cjs"),Te=require("./DataTable-i6_WDL4K.cjs"),$e=require("./vue-ui-accordion-B_pg4OcN.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),se=require("./useNestedProp-DlpyayQg.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ie(n,d){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,i=-1/0,v=0;for(let f=0;f<s;f+=1){const p=n[f].normalizedValue;p<u&&(u=p),p>i&&(i=p),v+=p}return Math.max(d**2*i/v**2,v**2/(d**2*u))}}function ce(n){const{xOffset:d,yOffset:s,width:u,height:i}=n;return{x0:d,y0:s,x1:d+u,y1:s+i}}function Ne(n,d,s){if(n.length===0)return!0;{const u=n.concat(d),i=ie(n,s),v=ie(u,s);return i>=v}}function Be(n){const d=[],s=n.length;for(let u=0;u<s;u+=1){const i=n[u],v=i.length;for(let h=0;h<v;h+=1)d.push(i[h])}return d}function _e(n,d){const s={...d,children:n};return ve(s)}function ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function de(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(d),h=n.length,f=n.map(m=>m.normalizedValue||0).reduce((m,k)=>m+k,0),p=f/u,C=f/s;let b=i,w=v;const g=[];if(s>=u){for(let m=0;m<h;m+=1){const k=n[m],x=w+k.normalizedValue/p,t={x0:b,y0:w,x1:b+p,y1:x},T=Object.assign({},k,t);w=x,g.push(T)}return g}else{for(let m=0;m<h;m+=1){const k=n[m],x=b+k.normalizedValue/C,t={x0:b,y0:w,x1:x,y1:w+C},T=Object.assign({},k,t);b=x,g.push(T)}return g}}function Pe(n){const d=W(n),s=d.width,u=d.height;return Math.min(s,u)}function Oe(n,d){const s=n.length,u=n.map(p=>p.value??0).reduce((p,C)=>p+C,0),i=d/u,v=[];let h,f;for(let p=0;p<s;p+=1)f=n[p],h=Object.assign({},f,{normalizedValue:f.value*(i||0)}),v.push(h);return v}function W(n){const{x0:d,y0:s,x1:u,y1:i}=n;return{xOffset:d,yOffset:s,width:u-d,height:i-s}}function Ve(n,d,s,u){let i=n,v=d,h=s,f=u;for(;;){const p=i.length;if(p===0){const g=de(v,h);return f.concat(g)}const C=Pe(h),b=i[0],w=i.slice(1,p);if(Ne(v,b,C)){const g=v.concat(b);i=w,v=g,h=h,f=f}else{const g=v.length;let m=0;for(let T=0;T<g;T+=1)m+=v[T].normalizedValue;const k=Ee(h,m),x=de(v,h),t=f.concat(x);i=i,v=[],h=k,f=t}}}function ve(n){if(typeof n.children>"u"||!n.children.length)return[n];{const d=Oe(n.children,ze(n)),s=Ve(d,[],n,[]),u=s.length,i=[];for(let h=0;h<u;h+=1)i.push(ve(s[h]));return Be(i)}}function Ee(n,d){const{width:s,height:u,xOffset:i,yOffset:v}=W(n);if(s>=u){const h=d/u,f=s-h,p={xOffset:i+h,yOffset:v,width:f,height:u};return ce(p)}else{const h=d/s,f=u-h,p={xOffset:i,yOffset:v+h,width:s,height:f};return ce(p)}}const Le=n=>(e.pushScopeId("data-v-7028d693"),n=n(),e.popScopeId(),n),Re=["id"],Fe=["xmlns","viewBox"],De={key:0},Ie=["id"],qe=["stop-color"],Ae=["stop-color"],He=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Me=["x","y","height","width"],We={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},Ue=Le(()=>e.createElementVNode("br",null,null,-1)),Ge={key:3,class:"vue-data-ui-watermark"},je=["onClick"],Xe={key:0},Ye={key:1},Ze=["innerHTML"],Je={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:d,emit:s}){const u=n,{vue_ui_treemap:i}=r.useConfig(),v=e.computed(()=>!!u.dataset&&u.dataset.length),h=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),f=e.ref(r.createUid()),p=e.ref(!1),C=e.ref(""),b=e.ref(!1),w=e.ref(0),g=e.ref([]),m=e.ref(null),k=e.ref(null),x=e.ref(null),t=e.computed(()=>{const l=se.useNestedProp({userConfig:u.config,defaultConfig:i});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_treemap[l.theme]||u.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),{isPrinting:T,isImaging:U,generatePdf:G,generateImage:j}=re.usePrinter({elementId:`treemap_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),D=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),P=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function X(l){l.forEach((a,o)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||D.value[o]||r.palette[o]||r.palette[o%r.palette.length],a.children&&(a.children.forEach(c=>{c.parentId=a.id,c.color=a.color}),X(a.children))})}const O=e.ref(u.dataset),I=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),X(O.value),t.value.responsive){const l=ue.throttle(()=>{const{width:a,height:o}=ue.useResponsive({chart:m.value,title:t.value.style.chart.title.text?k.value:null,legend:t.value.style.chart.legend.show?x.value:null});_.value.width=a,_.value.height=o});I.value=new ResizeObserver(l),I.value.observe(m.value.parentNode)}}),e.onBeforeUnmount(()=>{I.value&&I.value.disconnect()});const H=e.ref(O.value),R=e.computed(()=>H.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(l=>!g.value.includes(l.id))),E=e.computed(()=>O.value.filter(l=>!g.value.includes(l.id)).map(l=>l.value||0).reduce((l,a)=>l+a,0)),Y=e.computed({get(){let l=[...R.value];return t.value.style.chart.layout.sorted&&(l=[...R.value].sort((a,o)=>o.value-a.value)),l.map(a=>({...a}))},set(l){return l}});function Z(l,a){return l.value/a}function he(l,a,o){const c=t.value.style.chart.layout.rects.colorRatio-Z(a,o);return r.lightenHexColor(l,c<0?0:c)}function J(l,a,o,c){return l.map((y,z)=>{const A=he(r.convertColorToHex(a)||D.value[z]||r.palette[z]||r.palette[z%r.palette.length],y,c),be=Z(y,c);return{...y,color:A,proportion:be,parentName:o,children:y.children?J(y.children,A,y.name,c):void 0}})}const F=e.computed(()=>_e(Y.value.map((l,a)=>{const o=l.children?l.children.reduce((c,y)=>c+y.value,0):l.value;return{value:l.value,id:l.id,children:l.children?J(l.children.sort((c,y)=>y.value-c.value),l.color,l.name,o):void 0,color:l.color,name:l.name}}),{x0:P.value.left*2,y0:P.value.top,x1:P.value.width,y1:P.value.height}));function K({y0:l,y1:a}){return a-l<=0?1e-4:a-l}function Q({x0:l,x1:a}){return a-l<=0?1e-4:a-l}function V(l){const a=t.value.style.chart.layout.labels.fontSize*(l.proportion*2>1?1:l.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function pe(l){b.value=l,w.value+=1}const L=e.computed(()=>({startX:0,startY:0,width:P.value.vbWidth,height:P.value.vbHeight})),$=e.ref(!1);function ee(l,a=O.value){for(const o of a){if(o.id===l)return o;if(o.children){const c=ee(l,o.children);if(c)return c}}return null}function fe(l){$.value?(s("selectDatapoint",void 0),H.value=O.value):(s("selectDatapoint",l),H.value=[ee(l.parentId)]),$.value=!$.value}const S=e.ref(null),te=e.computed(()=>O.value.map((l,a)=>({...l,color:r.convertColorToHex(l.color)||D.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((l,a)=>a.value-l.value).map((l,a)=>({...l,proportion:l.value/O.value.map(o=>o.value).reduce((o,c)=>o+c,0),opacity:g.value.includes(l.id)?.5:1}))),ge=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 le(l){$.value=!1,S.value=null,g.value.includes(l.id)?g.value=g.value.filter(a=>a!==l.id):g.value.length<u.dataset.length-1&&g.value.push(l.id),s("selectLegend",Y.value)}const M=e.ref(null);function me({datapoint:l,seriesIndex:a}){S.value=l,M.value={datapoint:l,seriesIndex:a,config:t.value,series:R.value};const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:a,datapoint:l,series:R.value,config:t.value})))C.value=o({seriesIndex:a,datapoint:l,series:R.value,config:t.value});else{let c="";c+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,c+=`<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="${l.color}"/></svg>`,c+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,l.value,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.tooltip.roundingValue}),{datapoint:l,seriesIndex:a})}</b>`,C.value=`<div>${c}</div>`}p.value=!0}const N=e.computed(()=>{const l=F.value.map(o=>({name:o.name,color:o.color})),a=F.value.map(o=>o.value);return{head:l,body:a}});function oe(){e.nextTick(()=>{const l=N.value.head.map((c,y)=>[[c.name],[N.value.body[y]],[isNaN(N.value.body[y]/E.value)?"-":N.value.body[y]/E.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((y,z)=>{const A=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:y.color,name:y.name,shape:"square"},A,isNaN(N.value.body[z]/E.value)?"-":r.dataLabel({v:N.value.body[z]/E.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),o={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:l,body:a,config:o}});function ye(){return F.value}function ae(){B.value.showTable=!B.value.showTable}function ne(){B.value.showTooltip=!B.value.showTooltip}return d({getData:ye,generateCsv:oe,generateImage:j,generatePdf:G,toggleTable:ae,toggleTooltip:ne}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:m,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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`treemap_${f.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:k,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[e.createVNode(ke._sfc_main,{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&&v.value?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(T),isImaging:e.unref(U),uid:f.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:B.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:m.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(G),onGenerateCsv:oe,onGenerateImage:e.unref(j),onToggleTable:ae,onToggleTooltip:ne},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createElementBlock("svg",{key:2,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":!$.value,"vue-data-ui-zoom-minus":$.value}),viewBox:`${L.value.startX} ${L.value.startY} ${L.value.width<=0?10:L.value.width} ${L.value.height<=0?10:L.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",De,[e.createElementVNode("radialGradient",{id:`tgrad_${o.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":o.color},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,Ae)],8,Ie)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:o.x0,y:o.y0,height:K(o),width:Q(o),fill:h.value?o.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${o.id})`:o.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":S.value&&S.value.id===o.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:y=>fe(o),onMouseenter:()=>me({datapoint:o,seriesIndex:c}),onMouseleave:a[0]||(a[0]=y=>{S.value=null,p.value=!1}),style:e.normalizeStyle(`opacity:${S.value?S.value.id===o.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,He),(e.openBlock(),e.createElementBlock("foreignObject",{x:o.x0,y:o.y0,height:K(o),width:Q(o),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",We,[t.value.style.chart.layout.labels.showDefaultLabels&&(o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${V(o)/1.5}px);text-align:left;line-height:${V(o)<14?14:V(o)}px;padding:${V(o)/3}px; color:${e.unref(r.adaptColorToBackground)(o.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(o.name),5),Ue,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${V(o)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(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.layout.labels.rounding}),{datapoint:o})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:o,shouldShow:o.proportion>t.value.style.chart.layout.labels.hideUnderProportion||$.value,fontSize:V(o),isZoom:$.value,textColor:e.unref(r.adaptColorToBackground)(o.color)})),void 0,!0)])],8,Me))]))),256)),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:P.value,isZoom:$.value,rect:S.value,config:t.value})),void 0,!0)],14,Fe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(T)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:4,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:x},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:0,legendSet:te.value,config:ge.value,id:`treemap_legend_${f.value}`,onClickMarker:a[1]||(a[1]=({legend:o})=>le(o))},{item:e.withCtx(({legend:o,index:c})=>[e.createElementVNode("div",{onClick:y=>le(o),style:e.normalizeStyle(`opacity:${g.value.includes(o.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,o.value,e.unref(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.legend.roundingValue}),{datapoint:o}))+" ",1),g.value.includes(o.id)?(e.openBlock(),e.createElementBlock("span",Ye," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Xe," ("+e.toDisplayString(isNaN(o.value/E.value)?"-":(o.value/E.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,je)]),_:1},8,["legendSet","config","id"])):e.renderSlot(l.$slots,"legend",{key:1,legend:te.value},void 0,!0)],512),e.createVNode(Ce._sfc_main,{show:B.value.showTooltip&&p.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:m.value,content:C.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...M.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),v.value?(e.openBlock(),e.createBlock($e.default,{key:5,hideDetails:"",config:{open:B.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.createVNode(Te.DataTable,{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]=o=>B.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ze)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Re))}},Ke=Se._export_sfc(Je,[["__scopeId","data-v-7028d693"]]);exports.default=Ke;