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

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 (161) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-Bz8n6ycZ.js → Arrow-BIsMVdtn.js} +1 -1
  3. package/dist/{Arrow-C0LFlY5e.cjs → Arrow-DGay3Mq4.cjs} +1 -1
  4. package/dist/{BaseIcon-BySu2V3d.js → BaseIcon-BkG8oy7S.js} +4 -3
  5. package/dist/{BaseIcon-Bolmn50v.cjs → BaseIcon-CNr0ynIA.cjs} +1 -1
  6. package/dist/{ColorPicker-DxSpy5e2.js → ColorPicker-BolaeJP4.js} +3 -3
  7. package/dist/{ColorPicker-DUYztfXY.cjs → ColorPicker-Dk1k_q80.cjs} +1 -1
  8. package/dist/{DataTable-C5EKEHsp.js → DataTable-CMtUsL3k.js} +2 -2
  9. package/dist/{DataTable-DLUrhKkw.cjs → DataTable-ChXRV1c1.cjs} +1 -1
  10. package/dist/{Legend-DSzoXS-3.js → Legend-CNvH8CO_.js} +2 -2
  11. package/dist/{Legend-CHEbsxt2.cjs → Legend-DpeobB-J.cjs} +1 -1
  12. package/dist/PackageVersion-C9u9Pwxk.cjs +1 -0
  13. package/dist/{PackageVersion-BtrpyUPC.js → PackageVersion-DpTw0H2K.js} +3 -3
  14. package/dist/{PenAndPaper-DO7-xSYx.cjs → PenAndPaper-B3u1FDG_.cjs} +1 -1
  15. package/dist/{PenAndPaper-zjBsZuuq.js → PenAndPaper-CdyjU7Bn.js} +3 -3
  16. package/dist/{Shape-DzIamXsi.js → Shape--0X0ca4a.js} +1 -1
  17. package/dist/{Shape-_vXgfvZP.cjs → Shape-gapU-fux.cjs} +1 -1
  18. package/dist/{Slicer-DfOxim5W.js → Slicer-CZQhXgqN.js} +2 -2
  19. package/dist/{Slicer-oUyDkRff.cjs → Slicer-hryDvXmh.cjs} +1 -1
  20. package/dist/{Title-BS1zFx79.js → Title-CUTRN3ig.js} +1 -1
  21. package/dist/{Title-BuZQSd23.cjs → Title-DRo5NxnS.cjs} +1 -1
  22. package/dist/{Tooltip-BNOd4lK1.js → Tooltip-BvEZcxbc.js} +1 -1
  23. package/dist/{Tooltip-BiBcMMP3.cjs → Tooltip-Cbjcw6Jz.cjs} +1 -1
  24. package/dist/documentation/installation.md +2 -2
  25. package/dist/{index-CzjsUYng.js → index-DQCJDAtd.js} +1 -1
  26. package/dist/{index-Zf2fUMIO.cjs → index-hcakVXU6.cjs} +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/types/vue-data-ui.d.cts +2 -1
  29. package/dist/types/vue-data-ui.d.ts +2 -1
  30. package/dist/{useNestedProp-BcSwG6N0.cjs → useNestedProp-DCfCPrTU.cjs} +1 -1
  31. package/dist/{useNestedProp-RC28MVml.js → useNestedProp-WD6Qn-jr.js} +1 -1
  32. package/dist/{usePrinter-BGPa8G48.cjs → usePrinter-Dv0RMCX1.cjs} +1 -1
  33. package/dist/{usePrinter-CUsjlfpk.js → usePrinter-FM1PheWO.js} +1 -1
  34. package/dist/{vue-data-ui-UWKC8R6X.js → vue-data-ui-Byi8FBJM.js} +61 -61
  35. package/dist/{vue-data-ui-BjDb6Vux.cjs → vue-data-ui-CDVMMv3d.cjs} +1 -1
  36. package/dist/vue-data-ui.cjs +1 -1
  37. package/dist/vue-data-ui.js +1 -1
  38. package/dist/{vue-ui-3d-bar-5IdXbLb9.js → vue-ui-3d-bar-CZJ6Zo23.js} +9 -9
  39. package/dist/{vue-ui-3d-bar-WS8tL_FC.cjs → vue-ui-3d-bar-DJUNcjtc.cjs} +1 -1
  40. package/dist/{vue-ui-accordion-ConQex-C.js → vue-ui-accordion-BckkmphN.js} +3 -3
  41. package/dist/{vue-ui-accordion-CnGQYWdI.cjs → vue-ui-accordion-BfFg-sVJ.cjs} +1 -1
  42. package/dist/{vue-ui-age-pyramid-CP6Fd6zD.js → vue-ui-age-pyramid-DgGMb_Xp.js} +10 -10
  43. package/dist/{vue-ui-age-pyramid-CehCcwLC.cjs → vue-ui-age-pyramid-DunUSOpu.cjs} +1 -1
  44. package/dist/{vue-ui-annotator-CZ1F-VY2.cjs → vue-ui-annotator-B3G-FQLy.cjs} +1 -1
  45. package/dist/{vue-ui-annotator-C5NyXYkj.js → vue-ui-annotator-B_MQz1AA.js} +1 -1
  46. package/dist/{vue-ui-bullet-Djg_HER0.cjs → vue-ui-bullet-8Kk3qeH_.cjs} +1 -1
  47. package/dist/{vue-ui-bullet-DKqr4Rcd.js → vue-ui-bullet-DYpgP9uL.js} +8 -8
  48. package/dist/{vue-ui-candlestick-BU9MfLPt.cjs → vue-ui-candlestick-BSB_x1u_.cjs} +1 -1
  49. package/dist/{vue-ui-candlestick-DtVpSOzB.js → vue-ui-candlestick-DnY1Z5sA.js} +11 -11
  50. package/dist/{vue-ui-carousel-table-CYcrhcdv.js → vue-ui-carousel-table-Cd_2r90R.js} +4 -4
  51. package/dist/{vue-ui-carousel-table-EhzhIcW2.cjs → vue-ui-carousel-table-DNnBKojP.cjs} +1 -1
  52. package/dist/{vue-ui-chestnut-D5LH5zdq.js → vue-ui-chestnut-B1NWviH6.js} +8 -8
  53. package/dist/{vue-ui-chestnut-C3UVgMQo.cjs → vue-ui-chestnut-WcoV2zl6.cjs} +1 -1
  54. package/dist/{vue-ui-circle-pack-BL753_Uo.js → vue-ui-circle-pack-CxxPZDLO.js} +9 -9
  55. package/dist/{vue-ui-circle-pack-CJNBxO1N.cjs → vue-ui-circle-pack-D32Zo62g.cjs} +1 -1
  56. package/dist/{vue-ui-cursor-B2MxKYNM.cjs → vue-ui-cursor-BNdKosWF.cjs} +1 -1
  57. package/dist/{vue-ui-cursor-Fe70t9Bl.js → vue-ui-cursor-Df3A3tId.js} +2 -2
  58. package/dist/{vue-ui-dashboard-QOSGNhC9.js → vue-ui-dashboard-BD3v2yB2.js} +2 -2
  59. package/dist/{vue-ui-dashboard-C11-dJEl.cjs → vue-ui-dashboard-SRIs3xRd.cjs} +1 -1
  60. package/dist/{vue-ui-digits-C5D_xk6r.js → vue-ui-digits-6ixh72pY.js} +2 -2
  61. package/dist/{vue-ui-digits-H19fVeIu.cjs → vue-ui-digits-DiwdDWIi.cjs} +1 -1
  62. package/dist/{vue-ui-donut-Bd1mIoux.js → vue-ui-donut-BLrLvjYC.js} +12 -12
  63. package/dist/{vue-ui-donut-CwJg0emK.cjs → vue-ui-donut-O_bMKpp0.cjs} +1 -1
  64. package/dist/{vue-ui-donut-evolution-DTjfMlNh.cjs → vue-ui-donut-evolution-COqxvgDm.cjs} +1 -1
  65. package/dist/{vue-ui-donut-evolution-CFQ4lMWd.js → vue-ui-donut-evolution-DFeCoFLD.js} +11 -11
  66. package/dist/{vue-ui-dumbbell-KJd6G5qD.js → vue-ui-dumbbell-BdpORbsw.js} +10 -10
  67. package/dist/{vue-ui-dumbbell-CBsxNWVV.cjs → vue-ui-dumbbell-CnvbgjAc.cjs} +1 -1
  68. package/dist/{vue-ui-flow-DAxMQfhu.js → vue-ui-flow-Bq5TNf0q.js} +9 -9
  69. package/dist/{vue-ui-flow-D3gtil-H.cjs → vue-ui-flow-DZW6HtMG.cjs} +1 -1
  70. package/dist/{vue-ui-funnel-CkCNCQ1F.cjs → vue-ui-funnel-BTs69xlm.cjs} +1 -1
  71. package/dist/{vue-ui-funnel-PvEDGsfj.js → vue-ui-funnel-CdTmW2Dv.js} +9 -9
  72. package/dist/{vue-ui-galaxy-DjeZUCuE.cjs → vue-ui-galaxy-Bks-C0T9.cjs} +1 -1
  73. package/dist/{vue-ui-galaxy-DfAfjTDr.js → vue-ui-galaxy-Dc38cJm-.js} +11 -11
  74. package/dist/{vue-ui-gauge-DBGqwPZs.js → vue-ui-gauge-BPe-Wpxa.js} +7 -7
  75. package/dist/{vue-ui-gauge-BfDY3XHF.cjs → vue-ui-gauge-BTCMT6kZ.cjs} +1 -1
  76. package/dist/{vue-ui-gizmo-yWBMeY1e.cjs → vue-ui-gizmo-CUKcPiKM.cjs} +1 -1
  77. package/dist/{vue-ui-gizmo-BT0DknqD.js → vue-ui-gizmo-DBnHMb9H.js} +3 -3
  78. package/dist/{vue-ui-heatmap-Bkd2G7uW.cjs → vue-ui-heatmap-BufOxGx7.cjs} +1 -1
  79. package/dist/{vue-ui-heatmap-D_Tr1Hot.js → vue-ui-heatmap-C1YhyvNx.js} +10 -10
  80. package/dist/{vue-ui-history-plot-B-VBGxRa.cjs → vue-ui-history-plot-DWAkb7b_.cjs} +1 -1
  81. package/dist/{vue-ui-history-plot-BG4nMlp7.js → vue-ui-history-plot-oMjKnlp3.js} +11 -11
  82. package/dist/{vue-ui-kpi-WqBG4upX.js → vue-ui-kpi-BLHpMBxd.js} +3 -3
  83. package/dist/{vue-ui-kpi-LMze0lWI.cjs → vue-ui-kpi-ufMTcMPT.cjs} +1 -1
  84. package/dist/{vue-ui-mini-loader-eRXubESG.js → vue-ui-mini-loader-BLsy0k_A.js} +2 -2
  85. package/dist/{vue-ui-mini-loader-CoVSw6EU.cjs → vue-ui-mini-loader-T1GcVUKb.cjs} +1 -1
  86. package/dist/{vue-ui-molecule-Cu6_FpHD.cjs → vue-ui-molecule-B3GExfFV.cjs} +1 -1
  87. package/dist/{vue-ui-molecule-BcpPXHgo.js → vue-ui-molecule-BnCvFuus.js} +10 -10
  88. package/dist/{vue-ui-mood-radar-DlTYq1OE.cjs → vue-ui-mood-radar-Cxt_fhUy.cjs} +1 -1
  89. package/dist/{vue-ui-mood-radar-CBFN1PfU.js → vue-ui-mood-radar-Yso-s4of.js} +11 -11
  90. package/dist/{vue-ui-nested-donuts-c6Dc8R-H.cjs → vue-ui-nested-donuts-BBzhXq6P.cjs} +1 -1
  91. package/dist/{vue-ui-nested-donuts-Cq0PWd1N.js → vue-ui-nested-donuts-BfRWRgkw.js} +11 -11
  92. package/dist/{vue-ui-onion-BFDD4SN8.js → vue-ui-onion-Dt4TWe6t.js} +11 -11
  93. package/dist/{vue-ui-onion-Bd2D2Vld.cjs → vue-ui-onion-OEnDmiOB.cjs} +1 -1
  94. package/dist/{vue-ui-parallel-coordinate-plot-BTCld26y.cjs → vue-ui-parallel-coordinate-plot-BnAAzLae.cjs} +1 -1
  95. package/dist/{vue-ui-parallel-coordinate-plot-YF_ssmB7.js → vue-ui-parallel-coordinate-plot-DGLh0ael.js} +12 -12
  96. package/dist/{vue-ui-quadrant-B659Q5iR.cjs → vue-ui-quadrant-B6E6v1xG.cjs} +1 -1
  97. package/dist/{vue-ui-quadrant-BeEBWrsG.js → vue-ui-quadrant-nHh7YqG6.js} +12 -12
  98. package/dist/{vue-ui-quick-chart-w0LaPcFd.cjs → vue-ui-quick-chart-Dr20RPOf.cjs} +1 -1
  99. package/dist/{vue-ui-quick-chart-Ba6-ZZk9.js → vue-ui-quick-chart-SGvhac9d.js} +9 -9
  100. package/dist/{vue-ui-radar-DAUGZC3X.cjs → vue-ui-radar-BRtf9Ps5.cjs} +1 -1
  101. package/dist/{vue-ui-radar-Dgu656_F.js → vue-ui-radar-CcdphM-O.js} +12 -12
  102. package/dist/{vue-ui-rating-BIk1Ip7B.js → vue-ui-rating-DRlCBElN.js} +2 -2
  103. package/dist/{vue-ui-rating-BPgLpyoa.cjs → vue-ui-rating-DgwurE4x.cjs} +1 -1
  104. package/dist/{vue-ui-relation-circle-Dz_Du_5e.cjs → vue-ui-relation-circle-B4TErNPT.cjs} +1 -1
  105. package/dist/{vue-ui-relation-circle-CUU2Y66i.js → vue-ui-relation-circle-g1JlL2f2.js} +7 -7
  106. package/dist/{vue-ui-rings-DnZ3fSvL.js → vue-ui-rings-BM9uYCUU.js} +12 -12
  107. package/dist/{vue-ui-rings-B7kPmx8M.cjs → vue-ui-rings-CBeL3HIa.cjs} +1 -1
  108. package/dist/{vue-ui-scatter-Cej6ox0t.js → vue-ui-scatter-DT_QBIeo.js} +12 -12
  109. package/dist/{vue-ui-scatter-GfJALpzt.cjs → vue-ui-scatter-gkSm6cYR.cjs} +1 -1
  110. package/dist/{vue-ui-screenshot-DkuLYple.cjs → vue-ui-screenshot-2leQxim8.cjs} +1 -1
  111. package/dist/{vue-ui-screenshot-B4HNd362.js → vue-ui-screenshot-DGbuK-RT.js} +1 -1
  112. package/dist/{vue-ui-skeleton-XUKIcV-3.js → vue-ui-skeleton-BTfzoolB.js} +3 -3
  113. package/dist/{vue-ui-skeleton-CiGqKHDK.cjs → vue-ui-skeleton-FXF7pMM8.cjs} +1 -1
  114. package/dist/{vue-ui-smiley-Dfo5zjHi.cjs → vue-ui-smiley-Dijs1HRf.cjs} +1 -1
  115. package/dist/{vue-ui-smiley-BUgxzenz.js → vue-ui-smiley-rwgYU3A2.js} +2 -2
  116. package/dist/{vue-ui-spark-trend-CvsL1wxJ.js → vue-ui-spark-trend-Cj0B6A_8.js} +5 -5
  117. package/dist/{vue-ui-spark-trend-EK-zZg4U.cjs → vue-ui-spark-trend-D62Z0XyP.cjs} +1 -1
  118. package/dist/{vue-ui-sparkbar-QL_FFOna.js → vue-ui-sparkbar-B3R7uA_h.js} +4 -4
  119. package/dist/{vue-ui-sparkbar-CvWbFKnW.cjs → vue-ui-sparkbar-BB_OXsVx.cjs} +1 -1
  120. package/dist/{vue-ui-sparkgauge-g51bSap-.js → vue-ui-sparkgauge-20iVOcBv.js} +4 -4
  121. package/dist/{vue-ui-sparkgauge-CX9L1CCZ.cjs → vue-ui-sparkgauge-CV3MRct2.cjs} +1 -1
  122. package/dist/{vue-ui-sparkhistogram-C_RkgtwV.cjs → vue-ui-sparkhistogram-ASA1Izuq.cjs} +1 -1
  123. package/dist/{vue-ui-sparkhistogram-TwShrJAd.js → vue-ui-sparkhistogram-C8WGWsjQ.js} +5 -5
  124. package/dist/{vue-ui-sparkline-PoXP19tk.js → vue-ui-sparkline-C4MRWUBA.js} +4 -4
  125. package/dist/{vue-ui-sparkline-B-1mFAFf.cjs → vue-ui-sparkline-jX03CtPG.cjs} +1 -1
  126. package/dist/{vue-ui-sparkstackbar-BtOZ3Xvo.cjs → vue-ui-sparkstackbar-BcCB8Id3.cjs} +1 -1
  127. package/dist/{vue-ui-sparkstackbar-C6K5d1a8.js → vue-ui-sparkstackbar-C6jgtbtu.js} +5 -5
  128. package/dist/{vue-ui-stackbar-DP0kLFaZ.cjs → vue-ui-stackbar-CVS_1WMe.cjs} +1 -1
  129. package/dist/{vue-ui-stackbar-DoAp1q1k.js → vue-ui-stackbar-CkEnBXay.js} +13 -13
  130. package/dist/{vue-ui-strip-plot-C6r7wmgw.cjs → vue-ui-strip-plot-DBabY03i.cjs} +1 -1
  131. package/dist/{vue-ui-strip-plot-DFyDRMeJ.js → vue-ui-strip-plot-ES7BwMoF.js} +11 -11
  132. package/dist/{vue-ui-table-COQQvYVK.js → vue-ui-table-CCwzUTnA.js} +1 -1
  133. package/dist/{vue-ui-table-BoFUMpxE.cjs → vue-ui-table-Cf1g82vY.cjs} +1 -1
  134. package/dist/{vue-ui-table-heatmap-DEmDa6Mg.cjs → vue-ui-table-heatmap-CyHzz9rv.cjs} +1 -1
  135. package/dist/{vue-ui-table-heatmap-D1a4Jbfq.js → vue-ui-table-heatmap-DtzKVrpK.js} +4 -4
  136. package/dist/{vue-ui-table-sparkline-CH1R9R6a.js → vue-ui-table-sparkline-95pS3pBt.js} +5 -5
  137. package/dist/{vue-ui-table-sparkline-bsEJsgny.cjs → vue-ui-table-sparkline-CLAybURJ.cjs} +1 -1
  138. package/dist/{vue-ui-thermometer-CZIBISGi.js → vue-ui-thermometer-BQTWXeqU.js} +7 -7
  139. package/dist/{vue-ui-thermometer-1Gl2tpWy.cjs → vue-ui-thermometer-Cm_KBNVZ.cjs} +1 -1
  140. package/dist/{vue-ui-timer-DXZ_7lOR.cjs → vue-ui-timer-B0D_sZmm.cjs} +1 -1
  141. package/dist/{vue-ui-timer-CL0vPqGn.js → vue-ui-timer-tLNMbgLM.js} +5 -5
  142. package/dist/{vue-ui-tiremarks-D8rdzzQb.cjs → vue-ui-tiremarks-CWIZflLH.cjs} +1 -1
  143. package/dist/{vue-ui-tiremarks-DdwzlfZg.js → vue-ui-tiremarks-nIj267dw.js} +7 -7
  144. package/dist/vue-ui-treemap-DRDVV_Da.cjs +1 -0
  145. package/dist/vue-ui-treemap-Js5dG3BL.js +931 -0
  146. package/dist/{vue-ui-vertical-bar-BOpex-Xq.js → vue-ui-vertical-bar-NCB7yZQF.js} +12 -12
  147. package/dist/{vue-ui-vertical-bar-pwqVkPXV.cjs → vue-ui-vertical-bar-fh2mIy4s.cjs} +1 -1
  148. package/dist/{vue-ui-waffle-Bd_6bbdt.cjs → vue-ui-waffle-BTz72Vui.cjs} +1 -1
  149. package/dist/{vue-ui-waffle-CW6THuE8.js → vue-ui-waffle-C70QQeU2.js} +12 -12
  150. package/dist/{vue-ui-wheel-9xdDEq_q.js → vue-ui-wheel-BKAEI3lz.js} +7 -7
  151. package/dist/{vue-ui-wheel-BO3Xqux3.cjs → vue-ui-wheel-C9DYeu9D.cjs} +1 -1
  152. package/dist/{vue-ui-word-cloud-CJjvWjsc.cjs → vue-ui-word-cloud-BgxihpLV.cjs} +1 -1
  153. package/dist/{vue-ui-word-cloud-DAlBxzeY.js → vue-ui-word-cloud-ChIuYeMe.js} +10 -10
  154. package/dist/{vue-ui-xy-BIBSJN48.cjs → vue-ui-xy-BSKwWGbp.cjs} +1 -1
  155. package/dist/{vue-ui-xy-CDGKX79V.js → vue-ui-xy-DHgnF-1N.js} +14 -14
  156. package/dist/{vue-ui-xy-canvas-BN7OU1Ak.cjs → vue-ui-xy-canvas-BstJgVjY.cjs} +1 -1
  157. package/dist/{vue-ui-xy-canvas-C8YlVwjI.js → vue-ui-xy-canvas-xQvriWI0.js} +12 -12
  158. package/package.json +1 -1
  159. package/dist/PackageVersion-B6sWtTA0.cjs +0 -1
  160. package/dist/vue-ui-treemap-B3N6hzO2.js +0 -857
  161. package/dist/vue-ui-treemap-CTcY1Qxh.cjs +0 -1
@@ -0,0 +1,931 @@
1
+ import { useSlots as it, onMounted as We, computed as C, ref as g, watch as ct, onBeforeUnmount as dt, createElementBlock as m, openBlock as v, unref as y, normalizeStyle as L, normalizeClass as Ee, createBlock as G, createCommentVNode as _, createElementVNode as O, createVNode as fe, createSlots as vt, withCtx as x, renderSlot as $, normalizeProps as q, guardReactiveProps as X, Fragment as ue, renderList as ge, mergeProps as Ge, createTextVNode as ie, toDisplayString as j, withModifiers as ht, nextTick as pt } from "vue";
2
+ import { u as ft, c as qe, t as gt, p as S, a as yt, b as mt, o as bt, e as kt, d as ce, i as de, f as le, X as wt, l as Xe, G as je, x as Ye, q as Ct, r as $t, y as xt } from "./index-DQCJDAtd.js";
3
+ import { _ as Tt } from "./Title-CUTRN3ig.js";
4
+ import { u as _t, U as Ot } from "./usePrinter-FM1PheWO.js";
5
+ import { _ as St } from "./Tooltip-BvEZcxbc.js";
6
+ import { L as Nt } from "./Legend-CNvH8CO_.js";
7
+ import It from "./vue-ui-skeleton-BTfzoolB.js";
8
+ import { D as At } from "./DataTable-CMtUsL3k.js";
9
+ import Pt from "./vue-ui-accordion-BckkmphN.js";
10
+ import { t as zt, u as Ft } from "./useResponsive-vZgZwV-S.js";
11
+ import { u as Ze } from "./useNestedProp-WD6Qn-jr.js";
12
+ import { _ as Rt } from "./PackageVersion-DpTw0H2K.js";
13
+ import { P as Lt } from "./PenAndPaper-CdyjU7Bn.js";
14
+ import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import { u as Mt } from "./useChartAccessibility-BWojgys7.js";
16
+ import Vt from "./BaseIcon-BkG8oy7S.js";
17
+ import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ function Je(n, u) {
19
+ const r = n.length;
20
+ if (r === 0)
21
+ throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
22
+ {
23
+ let i = 1 / 0, s = -1 / 0, c = 0;
24
+ for (let h = 0; h < r; h += 1) {
25
+ const p = n[h].normalizedValue;
26
+ p < i && (i = p), p > s && (s = p), c += p;
27
+ }
28
+ return Math.max(
29
+ u ** 2 * s / c ** 2,
30
+ c ** 2 / (u ** 2 * i)
31
+ );
32
+ }
33
+ }
34
+ function Ke(n) {
35
+ const { xOffset: u, yOffset: r, width: i, height: s } = n;
36
+ return {
37
+ x0: u,
38
+ y0: r,
39
+ x1: u + i,
40
+ y1: r + s
41
+ };
42
+ }
43
+ function Ut(n, u, r) {
44
+ if (n.length === 0)
45
+ return !0;
46
+ {
47
+ const i = n.concat(u), s = Je(
48
+ n,
49
+ r
50
+ ), c = Je(i, r);
51
+ return s >= c;
52
+ }
53
+ }
54
+ function Ht(n) {
55
+ const u = [], r = n.length;
56
+ for (let i = 0; i < r; i += 1) {
57
+ const s = n[i], c = s.length;
58
+ for (let d = 0; d < c; d += 1)
59
+ u.push(s[d]);
60
+ }
61
+ return u;
62
+ }
63
+ function Wt(n, u) {
64
+ const r = {
65
+ ...u,
66
+ children: n
67
+ };
68
+ return et(r);
69
+ }
70
+ function Et(n) {
71
+ return (n.x1 - n.x0) * (n.y1 - n.y0);
72
+ }
73
+ function Qe(n, u) {
74
+ const { width: r, height: i, xOffset: s, yOffset: c } = ye(u), d = n.length, h = n.map((k) => k.normalizedValue || 0).reduce((k, b) => k + b, 0), p = h / i, A = h / r;
75
+ let N = s, P = c;
76
+ const w = [];
77
+ if (r >= i) {
78
+ for (let k = 0; k < d; k += 1) {
79
+ const b = n[k], T = P + b.normalizedValue / p, M = {
80
+ x0: N,
81
+ y0: P,
82
+ x1: N + p,
83
+ y1: T
84
+ }, z = Object.assign({}, b, M);
85
+ P = T, w.push(z);
86
+ }
87
+ return w;
88
+ } else {
89
+ for (let k = 0; k < d; k += 1) {
90
+ const b = n[k], T = N + b.normalizedValue / A, M = {
91
+ x0: N,
92
+ y0: P,
93
+ x1: T,
94
+ y1: P + A
95
+ }, z = Object.assign({}, b, M);
96
+ N = T, w.push(z);
97
+ }
98
+ return w;
99
+ }
100
+ }
101
+ function Gt(n) {
102
+ const u = ye(n), r = u.width, i = u.height;
103
+ return Math.min(r, i);
104
+ }
105
+ function qt(n, u) {
106
+ const r = n.length, i = n.map((p) => p.value ?? 0).reduce((p, A) => p + A, 0), s = u / i, c = [];
107
+ let d, h;
108
+ for (let p = 0; p < r; p += 1)
109
+ h = n[p], d = Object.assign({}, h, {
110
+ normalizedValue: h.value * (s || 0)
111
+ }), c.push(d);
112
+ return c;
113
+ }
114
+ function ye(n) {
115
+ const { x0: u, y0: r, x1: i, y1: s } = n;
116
+ return {
117
+ xOffset: u,
118
+ yOffset: r,
119
+ width: i - u,
120
+ height: s - r
121
+ };
122
+ }
123
+ function Xt(n, u, r, i) {
124
+ let s = n, c = u, d = r, h = i;
125
+ for (; ; ) {
126
+ const p = s.length;
127
+ if (p === 0) {
128
+ const w = Qe(c, d);
129
+ return h.concat(w);
130
+ }
131
+ const A = Gt(d), N = s[0], P = s.slice(1, p);
132
+ if (Ut(c, N, A)) {
133
+ const w = c.concat(N);
134
+ s = P, c = w, d = d, h = h;
135
+ } else {
136
+ const w = c.length;
137
+ let k = 0;
138
+ for (let z = 0; z < w; z += 1)
139
+ k += c[z].normalizedValue;
140
+ const b = jt(d, k), T = Qe(c, d), M = h.concat(T);
141
+ s = s, c = [], d = b, h = M;
142
+ }
143
+ }
144
+ }
145
+ function et(n) {
146
+ if (typeof n.children > "u" || !n.children.length)
147
+ return [n];
148
+ {
149
+ const u = qt(
150
+ n.children,
151
+ Et(n)
152
+ ), r = Xt(u, [], n, []), i = r.length, s = [];
153
+ for (let d = 0; d < i; d += 1)
154
+ s.push(et(r[d]));
155
+ return Ht(s);
156
+ }
157
+ }
158
+ function jt(n, u) {
159
+ const { width: r, height: i, xOffset: s, yOffset: c } = ye(n);
160
+ if (r >= i) {
161
+ const d = u / i, h = r - d, p = {
162
+ xOffset: s + d,
163
+ yOffset: c,
164
+ width: h,
165
+ height: i
166
+ };
167
+ return Ke(p);
168
+ } else {
169
+ const d = u / r, h = i - d, p = {
170
+ xOffset: s,
171
+ yOffset: c + d,
172
+ width: r,
173
+ height: h
174
+ };
175
+ return Ke(p);
176
+ }
177
+ }
178
+ const Yt = ["id"], Zt = {
179
+ key: 4,
180
+ class: "vue-ui-treemap-breadcrumbs",
181
+ "data-html2canvas-ignore": ""
182
+ }, Jt = ["onClick", "data-last-crumb"], Kt = { class: "vue-ui-treemap-crumb-unit" }, Qt = { class: "vue-ui-treemap-crumb-unit-label" }, el = {
183
+ key: 0,
184
+ style: { width: "24px", display: "flex", "align-items": "center" }
185
+ }, tl = {
186
+ key: 0,
187
+ class: "vue-ui-treemap-crumb-unit-arrow"
188
+ }, ll = ["xmlns", "viewBox"], ol = { key: 0 }, al = ["id"], nl = ["stop-color"], sl = ["stop-color"], rl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], ul = ["x", "y", "height", "width"], il = {
189
+ style: { width: "100%", height: "100%" },
190
+ class: "vue-ui-treemap-cell"
191
+ }, cl = {
192
+ key: 6,
193
+ class: "vue-data-ui-watermark"
194
+ }, dl = ["onClick"], vl = { key: 0 }, hl = { key: 1 }, pl = ["innerHTML"], fl = {
195
+ __name: "vue-ui-treemap",
196
+ props: {
197
+ config: {
198
+ type: Object,
199
+ default() {
200
+ return {};
201
+ }
202
+ },
203
+ dataset: {
204
+ type: Array,
205
+ default() {
206
+ return [];
207
+ }
208
+ }
209
+ },
210
+ emits: ["selectLegend", "selectDatapoint"],
211
+ setup(n, { expose: u, emit: r }) {
212
+ const { vue_ui_treemap: i } = ft(), s = n, c = r, d = it();
213
+ We(() => {
214
+ d["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
215
+ });
216
+ const h = C(() => !!s.dataset && s.dataset.length), p = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = g(qe()), N = g(!1), P = g(""), w = g(!1), k = g(0), b = g([]), T = g(null), M = g(null), z = g(null), me = g(null), be = g(null), ke = g(0), we = g(0), Ce = g(0), e = C({
217
+ get: () => _e(),
218
+ set: (t) => t
219
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: $e, keepUserOptionState: xe } = Dt({ config: e.value }), { svgRef: Te } = Mt({ config: e.value.style.chart.title });
220
+ function _e() {
221
+ const t = Ze({
222
+ userConfig: s.config,
223
+ defaultConfig: i
224
+ });
225
+ return t.theme ? {
226
+ ...Ze({
227
+ userConfig: yt.vue_ui_treemap[t.theme] || s.config,
228
+ defaultConfig: t
229
+ }),
230
+ customPalette: gt[t.theme] || S
231
+ } : t;
232
+ }
233
+ ct(() => s.config, (t) => {
234
+ e.value = _e(), ve.value = !e.value.userOptions.showOnChartHover, ke.value += 1, we.value += 1, Ce.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
235
+ }, { deep: !0 });
236
+ const { isPrinting: Oe, isImaging: Se, generatePdf: Ne, generateImage: Ie } = _t({
237
+ elementId: `treemap_${A.value}`,
238
+ fileName: e.value.style.chart.title.text || "vue-ui-treemap",
239
+ options: e.value.userOptions.print
240
+ }), tt = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = C(() => mt(e.value.customPalette)), F = g({
241
+ showTable: e.value.table.show,
242
+ showTooltip: e.value.style.chart.tooltip.show
243
+ }), V = g({
244
+ height: e.value.style.chart.height,
245
+ width: e.value.style.chart.width
246
+ }), H = C(() => ({
247
+ bottom: V.value.height - e.value.style.chart.padding.bottom,
248
+ height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
249
+ left: e.value.style.chart.padding.left,
250
+ right: V.value.width - e.value.style.chart.padding.right,
251
+ top: e.value.style.chart.padding.top,
252
+ vbHeight: V.value.height,
253
+ vbWidth: V.value.width,
254
+ width: V.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
255
+ }));
256
+ function Ae(t) {
257
+ t.forEach((o, l) => {
258
+ o.id = qe(), o.color = ce(o.color) || oe.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
259
+ a.parentId = o.id, a.color = o.color;
260
+ }), Ae(o.children));
261
+ });
262
+ }
263
+ const B = g(s.dataset), ae = g(null);
264
+ We(() => {
265
+ lt();
266
+ });
267
+ function lt() {
268
+ if (bt(s.dataset) && kt({
269
+ componentName: "VueUiTreemap",
270
+ type: "dataset"
271
+ }), Ae(B.value), e.value.responsive) {
272
+ const t = zt(() => {
273
+ const { width: o, height: l } = Ft({
274
+ chart: T.value,
275
+ title: e.value.style.chart.title.text ? M.value : null,
276
+ legend: e.value.style.chart.legend.show ? z.value : null,
277
+ source: me.value,
278
+ noTitle: be.value
279
+ });
280
+ requestAnimationFrame(() => {
281
+ V.value.width = o, V.value.height = l;
282
+ });
283
+ });
284
+ ae.value = new ResizeObserver(t), ae.value.observe(T.value.parentNode);
285
+ }
286
+ }
287
+ dt(() => {
288
+ ae.value && ae.value.disconnect();
289
+ });
290
+ const Y = g(B.value), Q = C(() => Y.value.map((t, o) => ({
291
+ ...t,
292
+ color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length]
293
+ })).filter((t) => !b.value.includes(t.id))), Z = C(() => B.value.filter((t) => !b.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Pe = C({
294
+ get() {
295
+ let t = [...Q.value];
296
+ return e.value.style.chart.layout.sorted && (t = [...Q.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
297
+ ...o
298
+ }));
299
+ },
300
+ set(t) {
301
+ return t;
302
+ }
303
+ });
304
+ function ze(t, o) {
305
+ return t.value / o;
306
+ }
307
+ function ot(t, o, l) {
308
+ const a = e.value.style.chart.layout.rects.colorRatio - ze(o, l);
309
+ return Xe(t, a < 0 ? 0 : a);
310
+ }
311
+ function Fe(t, o, l, a) {
312
+ return t.map((f, U) => {
313
+ const re = ot(ce(o) || oe.value[U] || S[U] || S[U % S.length], f, a), ut = ze(f, a);
314
+ return {
315
+ ...f,
316
+ color: re,
317
+ proportion: ut,
318
+ parentName: l,
319
+ children: f.children ? Fe(f.children, re, f.name, a) : void 0
320
+ };
321
+ });
322
+ }
323
+ const ee = C(() => Wt(
324
+ Pe.value.map((t, o) => {
325
+ const l = t.children ? t.children.reduce((a, f) => a + f.value, 0) : t.value;
326
+ return {
327
+ value: t.value,
328
+ id: t.id,
329
+ children: t.children ? Fe(t.children.sort((a, f) => f.value - a.value), t.color, t.name, l) : void 0,
330
+ color: t.color,
331
+ name: t.name
332
+ };
333
+ }),
334
+ { x0: H.value.left * 2, y0: H.value.top, x1: H.value.width, y1: H.value.height }
335
+ ));
336
+ function Re({ y0: t, y1: o }) {
337
+ return o - t <= 0 ? 1e-4 : o - t;
338
+ }
339
+ function Le({ x0: t, x1: o }) {
340
+ return o - t <= 0 ? 1e-4 : o - t;
341
+ }
342
+ function W(t) {
343
+ const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
344
+ return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
345
+ }
346
+ function at(t) {
347
+ w.value = t, k.value += 1;
348
+ }
349
+ const J = C(() => ({
350
+ startX: 0,
351
+ startY: 0,
352
+ width: H.value.vbWidth,
353
+ height: H.value.vbHeight
354
+ }));
355
+ function K(t, o = B.value) {
356
+ for (const l of o) {
357
+ if (l.id === t)
358
+ return l;
359
+ if (l.children) {
360
+ const a = K(t, l.children);
361
+ if (a)
362
+ return a;
363
+ }
364
+ }
365
+ return null;
366
+ }
367
+ const I = g([]), E = C(() => I.value.length > 0);
368
+ function De(t) {
369
+ var l;
370
+ if (!t) {
371
+ Y.value = B.value.slice(), c("selectDatapoint", void 0), I.value = [];
372
+ return;
373
+ }
374
+ const o = K(t.id);
375
+ if (o && ((l = o.children) != null && l.length))
376
+ I.value.push(o.id), Y.value = o.children.slice(), c("selectDatapoint", t);
377
+ else if (t.parentId) {
378
+ I.value.push(t.parentId);
379
+ const a = K(t.parentId);
380
+ Y.value = a.children.slice(), c("selectDatapoint", t);
381
+ } else if (I.value.length > 0) {
382
+ I.value.pop();
383
+ const a = I.value[I.value.length - 1];
384
+ if (a) {
385
+ const f = K(a);
386
+ Y.value = f.children.slice();
387
+ } else
388
+ Y.value = B.value.slice(), I.value = [], c("selectDatapoint", void 0);
389
+ }
390
+ }
391
+ const te = C(() => {
392
+ const t = [
393
+ { id: null, label: "All" }
394
+ ];
395
+ if (I.value.length > 0) {
396
+ let o = K(I.value[I.value.length - 1]);
397
+ const l = [];
398
+ for (; o; )
399
+ l.unshift(o), o = o.parentId ? K(o.parentId) : null;
400
+ for (const a of l)
401
+ t.push({
402
+ id: a.id,
403
+ label: a.name,
404
+ node: a
405
+ });
406
+ }
407
+ return t;
408
+ }), R = g(null), Me = C(() => B.value.map((t, o) => ({
409
+ ...t,
410
+ color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length],
411
+ shape: "square"
412
+ })).sort((t, o) => o.value - t.value).map((t, o) => ({
413
+ ...t,
414
+ proportion: t.value / B.value.map((l) => l.value).reduce((l, a) => l + a, 0),
415
+ opacity: b.value.includes(t.id) ? 0.5 : 1
416
+ }))), nt = C(() => ({
417
+ cy: "treemap-div-legend",
418
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
419
+ color: e.value.style.chart.legend.color,
420
+ fontSize: e.value.style.chart.legend.fontSize,
421
+ paddingBottom: 12,
422
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
423
+ }));
424
+ function Ve(t) {
425
+ E.value = !1, R.value = null, b.value.includes(t.id) ? b.value = b.value.filter((o) => o !== t.id) : b.value.length < s.dataset.length - 1 && b.value.push(t.id), c("selectLegend", Pe.value);
426
+ }
427
+ const he = g(null);
428
+ function st({ datapoint: t, seriesIndex: o }) {
429
+ R.value = t, he.value = { datapoint: t, seriesIndex: o, config: e.value, series: Q.value };
430
+ const l = e.value.style.chart.tooltip.customFormat;
431
+ if (Ye(l) && xt(() => l({
432
+ seriesIndex: o,
433
+ datapoint: t,
434
+ series: Q.value,
435
+ config: e.value
436
+ })))
437
+ P.value = l({
438
+ seriesIndex: o,
439
+ datapoint: t,
440
+ series: Q.value,
441
+ config: e.value
442
+ });
443
+ else {
444
+ let a = "";
445
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<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="${t.color}"/></svg>`, a += `<b>${de(
446
+ e.value.style.chart.layout.labels.formatter,
447
+ t.value,
448
+ le({
449
+ p: e.value.style.chart.layout.labels.prefix,
450
+ v: t.value,
451
+ s: e.value.style.chart.layout.labels.suffix,
452
+ r: e.value.style.chart.tooltip.roundingValue
453
+ }),
454
+ { datapoint: t, seriesIndex: o }
455
+ )}</b>`, P.value = `<div>${a}</div>`;
456
+ }
457
+ N.value = !0;
458
+ }
459
+ const D = C(() => {
460
+ const t = ee.value.map((l) => ({
461
+ name: l.name,
462
+ color: l.color
463
+ })), o = ee.value.map((l) => l.value);
464
+ return { head: t, body: o };
465
+ });
466
+ function Be() {
467
+ pt(() => {
468
+ const t = D.value.head.map((a, f) => [[
469
+ a.name
470
+ ], [D.value.body[f]], [isNaN(D.value.body[f] / Z.value) ? "-" : D.value.body[f] / Z.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ct(o);
471
+ $t({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
472
+ });
473
+ }
474
+ const ne = C(() => {
475
+ const t = [
476
+ e.value.table.columnNames.series,
477
+ e.value.table.columnNames.value,
478
+ e.value.table.columnNames.percentage
479
+ ], o = D.value.head.map((f, U) => {
480
+ const re = de(
481
+ e.value.style.chart.layout.labels.formatter,
482
+ D.value.body[U],
483
+ le({
484
+ p: e.value.style.chart.layout.labels.prefix,
485
+ v: D.value.body[U],
486
+ s: e.value.style.chart.layout.labels.suffix,
487
+ r: e.value.table.td.roundingValue
488
+ })
489
+ );
490
+ return [
491
+ {
492
+ color: f.color,
493
+ name: f.name,
494
+ shape: "square"
495
+ },
496
+ re,
497
+ isNaN(D.value.body[U] / Z.value) ? "-" : le({
498
+ v: D.value.body[U] / Z.value * 100,
499
+ s: "%",
500
+ r: e.value.table.td.roundingPercentage
501
+ })
502
+ ];
503
+ }), l = {
504
+ th: {
505
+ backgroundColor: e.value.table.th.backgroundColor,
506
+ color: e.value.table.th.color,
507
+ outline: e.value.table.th.outline
508
+ },
509
+ td: {
510
+ backgroundColor: e.value.table.td.backgroundColor,
511
+ color: e.value.table.td.color,
512
+ outline: e.value.table.td.outline
513
+ },
514
+ breakpoint: e.value.table.responsiveBreakpoint
515
+ };
516
+ return {
517
+ colNames: [
518
+ e.value.table.columnNames.series,
519
+ e.value.table.columnNames.value
520
+ ],
521
+ head: t,
522
+ body: o,
523
+ config: l
524
+ };
525
+ });
526
+ function rt() {
527
+ return ee.value;
528
+ }
529
+ function Ue() {
530
+ F.value.showTable = !F.value.showTable;
531
+ }
532
+ function He() {
533
+ F.value.showTooltip = !F.value.showTooltip;
534
+ }
535
+ const se = g(!1);
536
+ function pe() {
537
+ se.value = !se.value;
538
+ }
539
+ return u({
540
+ getData: rt,
541
+ generateCsv: Be,
542
+ generateImage: Ie,
543
+ generatePdf: Ne,
544
+ toggleTable: Ue,
545
+ toggleTooltip: He,
546
+ toggleAnnotator: pe
547
+ }), (t, o) => (v(), m("div", {
548
+ ref_key: "treemapChart",
549
+ ref: T,
550
+ class: Ee(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
551
+ style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
552
+ id: `treemap_${A.value}`,
553
+ onMouseenter: o[3] || (o[3] = () => y($e)(!0)),
554
+ onMouseleave: o[4] || (o[4] = () => y($e)(!1))
555
+ }, [
556
+ e.value.userOptions.buttons.annotator ? (v(), G(Lt, {
557
+ key: 0,
558
+ svgRef: y(Te),
559
+ backgroundColor: e.value.style.chart.backgroundColor,
560
+ color: e.value.style.chart.color,
561
+ active: se.value,
562
+ onClose: pe
563
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
564
+ tt.value ? (v(), m("div", {
565
+ key: 1,
566
+ ref_key: "noTitle",
567
+ ref: be,
568
+ class: "vue-data-ui-no-title-space",
569
+ style: "height:36px; width: 100%;background:transparent"
570
+ }, null, 512)) : _("", !0),
571
+ e.value.style.chart.title.text ? (v(), m("div", {
572
+ key: 2,
573
+ ref_key: "chartTitle",
574
+ ref: M,
575
+ style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
576
+ }, [
577
+ (v(), G(Tt, {
578
+ key: `title_${ke.value}`,
579
+ config: {
580
+ title: {
581
+ cy: "treemap-div-title",
582
+ ...e.value.style.chart.title
583
+ },
584
+ subtitle: {
585
+ cy: "treemap-div-subtitle",
586
+ ...e.value.style.chart.title.subtitle
587
+ }
588
+ }
589
+ }, null, 8, ["config"]))
590
+ ], 4)) : _("", !0),
591
+ e.value.userOptions.show && h.value && (y(xe) || y(ve)) ? (v(), G(Ot, {
592
+ ref: "details",
593
+ key: `user_option_${k.value}`,
594
+ backgroundColor: e.value.style.chart.backgroundColor,
595
+ color: e.value.style.chart.color,
596
+ isPrinting: y(Oe),
597
+ isImaging: y(Se),
598
+ uid: A.value,
599
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
600
+ hasPdf: e.value.userOptions.buttons.pdf,
601
+ hasXls: e.value.userOptions.buttons.csv,
602
+ hasImg: e.value.userOptions.buttons.img,
603
+ hasTable: e.value.userOptions.buttons.table,
604
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
605
+ isFullscreen: w.value,
606
+ isTooltip: F.value.showTooltip,
607
+ titles: { ...e.value.userOptions.buttonTitles },
608
+ chartElement: T.value,
609
+ position: e.value.userOptions.position,
610
+ hasAnnotator: e.value.userOptions.buttons.annotator,
611
+ isAnnotation: se.value,
612
+ onToggleFullscreen: at,
613
+ onGeneratePdf: y(Ne),
614
+ onGenerateCsv: Be,
615
+ onGenerateImage: y(Ie),
616
+ onToggleTable: Ue,
617
+ onToggleTooltip: He,
618
+ onToggleAnnotator: pe,
619
+ style: L({
620
+ visibility: y(xe) ? y(ve) ? "visible" : "hidden" : "visible"
621
+ })
622
+ }, vt({ _: 2 }, [
623
+ t.$slots.menuIcon ? {
624
+ name: "menuIcon",
625
+ fn: x(({ isOpen: l, color: a }) => [
626
+ $(t.$slots, "menuIcon", q(X({ isOpen: l, color: a })), void 0, !0)
627
+ ]),
628
+ key: "0"
629
+ } : void 0,
630
+ t.$slots.optionTooltip ? {
631
+ name: "optionTooltip",
632
+ fn: x(() => [
633
+ $(t.$slots, "optionTooltip", {}, void 0, !0)
634
+ ]),
635
+ key: "1"
636
+ } : void 0,
637
+ t.$slots.optionPdf ? {
638
+ name: "optionPdf",
639
+ fn: x(() => [
640
+ $(t.$slots, "optionPdf", {}, void 0, !0)
641
+ ]),
642
+ key: "2"
643
+ } : void 0,
644
+ t.$slots.optionCsv ? {
645
+ name: "optionCsv",
646
+ fn: x(() => [
647
+ $(t.$slots, "optionCsv", {}, void 0, !0)
648
+ ]),
649
+ key: "3"
650
+ } : void 0,
651
+ t.$slots.optionImg ? {
652
+ name: "optionImg",
653
+ fn: x(() => [
654
+ $(t.$slots, "optionImg", {}, void 0, !0)
655
+ ]),
656
+ key: "4"
657
+ } : void 0,
658
+ t.$slots.optionTable ? {
659
+ name: "optionTable",
660
+ fn: x(() => [
661
+ $(t.$slots, "optionTable", {}, void 0, !0)
662
+ ]),
663
+ key: "5"
664
+ } : void 0,
665
+ t.$slots.optionFullscreen ? {
666
+ name: "optionFullscreen",
667
+ fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
668
+ $(t.$slots, "optionFullscreen", q(X({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
669
+ ]),
670
+ key: "6"
671
+ } : void 0,
672
+ t.$slots.optionAnnotator ? {
673
+ name: "optionAnnotator",
674
+ fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
675
+ $(t.$slots, "optionAnnotator", q(X({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
676
+ ]),
677
+ key: "7"
678
+ } : void 0
679
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
680
+ te.value.length > 1 ? (v(), m("nav", Zt, [
681
+ (v(!0), m(ue, null, ge(te.value, (l, a) => (v(), m("span", {
682
+ key: l.id || "root",
683
+ onClick: (f) => a === te.value.length - 1 ? () => {
684
+ } : De(l.node),
685
+ class: "vue-ui-treemap-crumb",
686
+ "data-last-crumb": a === te.value.length - 1,
687
+ style: L({
688
+ color: e.value.style.chart.color
689
+ })
690
+ }, [
691
+ O("span", Kt, [
692
+ O("span", Qt, [
693
+ $(t.$slots, "breadcrumb-label", Ge({ ref_for: !0 }, { crumb: l, isRoot: a === 0 }), () => [
694
+ a === 0 ? (v(), m("div", el, [
695
+ fe(Vt, {
696
+ name: "home",
697
+ stroke: e.value.style.chart.color
698
+ }, null, 8, ["stroke"])
699
+ ])) : (v(), m(ue, { key: 1 }, [
700
+ ie(j(l.label), 1)
701
+ ], 64))
702
+ ], !0)
703
+ ]),
704
+ a < te.value.length - 1 ? (v(), m("span", tl, [
705
+ $(t.$slots, "breadcrumb-arrow", {}, () => [
706
+ o[5] || (o[5] = ie(" › "))
707
+ ], !0)
708
+ ])) : _("", !0)
709
+ ])
710
+ ], 12, Jt))), 128))
711
+ ])) : _("", !0),
712
+ h.value ? (v(), m("svg", {
713
+ key: 5,
714
+ ref_key: "svgRef",
715
+ ref: Te,
716
+ xmlns: y(wt),
717
+ class: Ee({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !E.value, "vue-data-ui-zoom-minus": E.value }),
718
+ viewBox: `${J.value.startX} ${J.value.startY} ${J.value.width <= 0 ? 10 : J.value.width} ${J.value.height <= 0 ? 10 : J.value.height}`,
719
+ style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
720
+ }, [
721
+ fe(Rt),
722
+ (v(!0), m(ue, null, ge(ee.value, (l, a) => (v(), m("g", null, [
723
+ e.value.style.chart.layout.rects.gradient.show ? (v(), m("defs", ol, [
724
+ O("radialGradient", {
725
+ id: `tgrad_${l.id}`,
726
+ gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
727
+ }, [
728
+ O("stop", {
729
+ offset: "18%",
730
+ "stop-color": l.color
731
+ }, null, 8, nl),
732
+ O("stop", {
733
+ offset: "100%",
734
+ "stop-color": y(Xe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
735
+ }, null, 8, sl)
736
+ ], 8, al)
737
+ ])) : _("", !0)
738
+ ]))), 256)),
739
+ (v(!0), m(ue, null, ge(ee.value, (l, a) => (v(), m("g", null, [
740
+ O("rect", {
741
+ x: l.x0,
742
+ y: l.y0,
743
+ height: Re(l),
744
+ width: Le(l),
745
+ fill: p.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
746
+ rx: e.value.style.chart.layout.rects.borderRadius,
747
+ stroke: R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
748
+ "stroke-width": R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
749
+ onClick: ht((f) => De(l), ["stop"]),
750
+ onMouseenter: () => st({
751
+ datapoint: l,
752
+ seriesIndex: a
753
+ }),
754
+ onMouseleave: o[0] || (o[0] = (f) => {
755
+ R.value = null, N.value = !1;
756
+ }),
757
+ style: L(`opacity:${R.value ? R.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
758
+ class: "vue-ui-treemap-rect"
759
+ }, null, 44, rl),
760
+ (v(), m("foreignObject", {
761
+ x: l.x0,
762
+ y: l.y0,
763
+ height: Re(l),
764
+ width: Le(l),
765
+ class: "vue-ui-treemap-cell-foreignObject"
766
+ }, [
767
+ O("div", il, [
768
+ e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || E.value) ? (v(), m("div", {
769
+ key: 0,
770
+ class: "vue-ui-treemap-cell-default",
771
+ style: L(`width:calc(100% - ${W(l) / 1.5}px);text-align:left;line-height:${W(l) < 14 ? 14 : W(l)}px;padding:${W(l) / 3}px; color:${y(je)(l.color)}`)
772
+ }, [
773
+ O("span", {
774
+ style: L(`width:100%;font-size:${W(l)}px;`)
775
+ }, j(l.name), 5),
776
+ o[6] || (o[6] = O("br", null, null, -1)),
777
+ O("span", {
778
+ style: L(`width:100%;font-size:${W(l)}px;`)
779
+ }, j(y(de)(
780
+ e.value.style.chart.layout.labels.formatter,
781
+ l.value,
782
+ y(le)({
783
+ p: e.value.style.chart.layout.labels.prefix,
784
+ v: l.value,
785
+ s: e.value.style.chart.layout.labels.suffix,
786
+ r: e.value.style.chart.layout.labels.rounding
787
+ }),
788
+ { datapoint: l }
789
+ )), 5)
790
+ ], 4)) : _("", !0),
791
+ $(t.$slots, "rect", Ge({ ref_for: !0 }, {
792
+ rect: l,
793
+ shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || E.value,
794
+ fontSize: W(l),
795
+ isZoom: E.value,
796
+ textColor: y(je)(l.color)
797
+ }), void 0, !0)
798
+ ])
799
+ ], 8, ul))
800
+ ]))), 256)),
801
+ $(t.$slots, "svg", q(X({ svg: H.value, isZoom: E.value, rect: R.value, config: e.value })), void 0, !0)
802
+ ], 14, ll)) : _("", !0),
803
+ t.$slots.watermark ? (v(), m("div", cl, [
804
+ $(t.$slots, "watermark", q(X({ isPrinting: y(Oe) || y(Se) })), void 0, !0)
805
+ ])) : _("", !0),
806
+ h.value ? _("", !0) : (v(), G(It, {
807
+ key: 7,
808
+ config: {
809
+ type: "treemap",
810
+ style: {
811
+ backgroundColor: e.value.style.chart.backgroundColor,
812
+ treemap: {
813
+ color: "#CCCCCC"
814
+ }
815
+ }
816
+ }
817
+ }, null, 8, ["config"])),
818
+ O("div", {
819
+ ref_key: "chartLegend",
820
+ ref: z
821
+ }, [
822
+ e.value.style.chart.legend.show ? (v(), G(Nt, {
823
+ key: `legend_${Ce.value}`,
824
+ legendSet: Me.value,
825
+ config: nt.value,
826
+ id: `treemap_legend_${A.value}`,
827
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => Ve(l))
828
+ }, {
829
+ item: x(({ legend: l, index: a }) => [
830
+ O("div", {
831
+ onClick: (f) => Ve(l),
832
+ style: L(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
833
+ }, [
834
+ ie(j(l.name) + ": " + j(y(de)(
835
+ e.value.style.chart.layout.labels.formatter,
836
+ l.value,
837
+ y(le)({
838
+ p: e.value.style.chart.layout.labels.prefix,
839
+ v: l.value,
840
+ s: e.value.style.chart.layout.labels.suffix,
841
+ r: e.value.style.chart.legend.roundingValue
842
+ }),
843
+ { datapoint: l }
844
+ )) + " ", 1),
845
+ b.value.includes(l.id) ? (v(), m("span", hl, " ( - % ) ")) : (v(), m("span", vl, " (" + j(isNaN(l.value / Z.value) ? "-" : (l.value / Z.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
846
+ ], 12, dl)
847
+ ]),
848
+ _: 1
849
+ }, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
850
+ key: 1,
851
+ legend: Me.value
852
+ }, void 0, !0)
853
+ ], 512),
854
+ t.$slots.source ? (v(), m("div", {
855
+ key: 8,
856
+ ref_key: "source",
857
+ ref: me,
858
+ dir: "auto"
859
+ }, [
860
+ $(t.$slots, "source", {}, void 0, !0)
861
+ ], 512)) : _("", !0),
862
+ fe(St, {
863
+ show: F.value.showTooltip && N.value,
864
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
865
+ color: e.value.style.chart.tooltip.color,
866
+ fontSize: e.value.style.chart.tooltip.fontSize,
867
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
868
+ borderColor: e.value.style.chart.tooltip.borderColor,
869
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
870
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
871
+ position: e.value.style.chart.tooltip.position,
872
+ offsetY: e.value.style.chart.tooltip.offsetY,
873
+ parent: T.value,
874
+ content: P.value,
875
+ isFullscreen: w.value,
876
+ isCustom: y(Ye)(e.value.style.chart.tooltip.customFormat)
877
+ }, {
878
+ "tooltip-before": x(() => [
879
+ $(t.$slots, "tooltip-before", q(X({ ...he.value })), void 0, !0)
880
+ ]),
881
+ "tooltip-after": x(() => [
882
+ $(t.$slots, "tooltip-after", q(X({ ...he.value })), void 0, !0)
883
+ ]),
884
+ _: 3
885
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
886
+ h.value ? (v(), G(Pt, {
887
+ key: 9,
888
+ hideDetails: "",
889
+ config: {
890
+ open: F.value.showTable,
891
+ maxHeight: 1e4,
892
+ body: {
893
+ backgroundColor: e.value.style.chart.backgroundColor,
894
+ color: e.value.style.chart.color
895
+ },
896
+ head: {
897
+ backgroundColor: e.value.style.chart.backgroundColor,
898
+ color: e.value.style.chart.color
899
+ }
900
+ }
901
+ }, {
902
+ content: x(() => [
903
+ (v(), G(At, {
904
+ key: `table_${we.value}`,
905
+ colNames: ne.value.colNames,
906
+ head: ne.value.head,
907
+ body: ne.value.body,
908
+ config: ne.value.config,
909
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
910
+ onClose: o[2] || (o[2] = (l) => F.value.showTable = !1)
911
+ }, {
912
+ th: x(({ th: l }) => [
913
+ O("div", {
914
+ innerHTML: l,
915
+ style: { display: "flex", "align-items": "center" }
916
+ }, null, 8, pl)
917
+ ]),
918
+ td: x(({ td: l }) => [
919
+ ie(j(l.name || l), 1)
920
+ ]),
921
+ _: 1
922
+ }, 8, ["colNames", "head", "body", "config", "title"]))
923
+ ]),
924
+ _: 1
925
+ }, 8, ["config"])) : _("", !0)
926
+ ], 46, Yt));
927
+ }
928
+ }, zl = /* @__PURE__ */ Bt(fl, [["__scopeId", "data-v-a6058301"]]);
929
+ export {
930
+ zl as default
931
+ };