vue-data-ui 2.4.1 → 2.4.2

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 (201) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
  3. package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
  4. package/dist/BaseIcon-BGExhz6v.cjs +1 -0
  5. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
  8. package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
  9. package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
  10. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
  11. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
  12. package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
  13. package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
  16. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
  17. package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
  18. package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
  19. package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
  23. package/dist/index-FfZRtJ6A.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +18 -16
  26. package/dist/types/vue-data-ui.d.ts +18 -16
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
  29. package/dist/usePrinter-BCAFeO_J.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
  31. package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
  32. package/dist/vue-data-ui-W7nnqn0v.js +261 -0
  33. package/dist/vue-data-ui.cjs +1 -1
  34. package/dist/vue-data-ui.js +1 -1
  35. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
  36. package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
  37. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
  38. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
  39. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
  40. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
  41. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
  42. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
  43. package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
  44. package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
  45. package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
  46. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
  47. package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
  48. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
  49. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
  50. package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
  51. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
  52. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
  54. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
  55. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
  56. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
  57. package/dist/vue-ui-donut-CplNylps.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
  59. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
  61. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
  62. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
  63. package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
  64. package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
  65. package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
  66. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
  67. package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
  68. package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
  69. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
  70. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
  71. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
  72. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
  73. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
  74. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
  75. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
  77. package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
  78. package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
  80. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
  81. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
  82. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
  83. package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
  84. package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
  85. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
  86. package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
  87. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
  88. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
  89. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
  90. package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
  91. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
  92. package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
  93. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
  94. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
  95. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
  96. package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
  97. package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
  98. package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
  99. package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
  100. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
  101. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
  102. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
  103. package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
  105. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
  106. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
  107. package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
  108. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
  109. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
  110. package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
  111. package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
  113. package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
  115. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
  116. package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
  117. package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
  119. package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
  120. package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
  121. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
  122. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
  123. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
  124. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
  125. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
  126. package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
  129. package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
  130. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
  131. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
  132. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
  133. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
  134. package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
  135. package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
  136. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
  137. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
  138. package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
  139. package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
  140. package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
  141. package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
  142. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
  143. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
  145. package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
  146. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
  147. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
  148. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
  149. package/package.json +1 -1
  150. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  151. package/dist/index-C7_6YjWN.cjs +0 -9
  152. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  153. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  154. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  155. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  156. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  157. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  158. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  159. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  160. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  161. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  162. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  163. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  164. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  165. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  166. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  167. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  168. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  169. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  170. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  171. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  172. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  173. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  174. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  175. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  176. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  177. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  178. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  179. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  180. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  181. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  182. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  183. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  184. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  185. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  186. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  187. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  188. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  189. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  190. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  191. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  192. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  193. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  194. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  195. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  196. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  197. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  198. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  199. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  200. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  201. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -0,0 +1,816 @@
1
+ import { computed as C, ref as g, watch as Ze, onMounted as Je, onBeforeUnmount as Ke, openBlock as m, createElementBlock as k, normalizeClass as Se, normalizeStyle as B, createBlock as U, createCommentVNode as L, unref as b, createSlots as Qe, withCtx as x, renderSlot as $, normalizeProps as G, guardReactiveProps as X, createVNode as Ne, Fragment as ze, renderList as Pe, createElementVNode as O, toDisplayString as Y, createTextVNode as Ae, nextTick as et, pushScopeId as tt, popScopeId as ot } from "vue";
2
+ import { u as lt, c as Ie, t as at, a as nt, p as T, b as st, o as rt, e as ut, d as ae, i as ne, f as K, X as it, l as Fe, F as Le, x as Re, y as ct, q as dt, r as vt } from "./index-DnVHQ2xI.js";
3
+ import { _ as ht } from "./Title-5VmBwT4i.js";
4
+ import { u as ft, U as pt } from "./usePrinter-BEeNAqS5.js";
5
+ import { _ as gt } from "./Tooltip-Cj4EF7v1.js";
6
+ import { L as yt } from "./Legend-CYF2gpXG.js";
7
+ import mt from "./vue-ui-skeleton-aZmkNzAe.js";
8
+ import { D as bt } from "./DataTable-DTk7C4Pr.js";
9
+ import wt from "./vue-ui-accordion-DspS4q3f.js";
10
+ import { t as Ct, u as kt } from "./useResponsive-NZB-WLRF.js";
11
+ import { u as De } from "./useNestedProp-Cox0K0Y5.js";
12
+ import { _ as xt } from "./PackageVersion-CvCRsT5_.js";
13
+ import { P as $t } from "./PenAndPaper-Jb0pLt3G.js";
14
+ import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ function Me(a, i) {
16
+ const s = a.length;
17
+ if (s === 0)
18
+ throw new Error(`Max aspect ratio cannot be computed: ${a} is an empty array`);
19
+ {
20
+ let n = 1 / 0, u = -1 / 0, c = 0;
21
+ for (let h = 0; h < s; h += 1) {
22
+ const v = a[h].normalizedValue;
23
+ v < n && (n = v), v > u && (u = v), c += v;
24
+ }
25
+ return Math.max(
26
+ i ** 2 * u / c ** 2,
27
+ c ** 2 / (i ** 2 * n)
28
+ );
29
+ }
30
+ }
31
+ function Ve(a) {
32
+ const { xOffset: i, yOffset: s, width: n, height: u } = a;
33
+ return {
34
+ x0: i,
35
+ y0: s,
36
+ x1: i + n,
37
+ y1: s + u
38
+ };
39
+ }
40
+ function _t(a, i, s) {
41
+ if (a.length === 0)
42
+ return !0;
43
+ {
44
+ const n = a.concat(i), u = Me(
45
+ a,
46
+ s
47
+ ), c = Me(n, s);
48
+ return u >= c;
49
+ }
50
+ }
51
+ function Ot(a) {
52
+ const i = [], s = a.length;
53
+ for (let n = 0; n < s; n += 1) {
54
+ const u = a[n], c = u.length;
55
+ for (let d = 0; d < c; d += 1)
56
+ i.push(u[d]);
57
+ }
58
+ return i;
59
+ }
60
+ function St(a, i) {
61
+ const s = {
62
+ ...i,
63
+ children: a
64
+ };
65
+ return We(s);
66
+ }
67
+ function Nt(a) {
68
+ return (a.x1 - a.x0) * (a.y1 - a.y0);
69
+ }
70
+ function Be(a, i) {
71
+ const { width: s, height: n, xOffset: u, yOffset: c } = ce(i), d = a.length, h = a.map((f) => f.normalizedValue || 0).reduce((f, _) => f + _, 0), v = h / n, S = h / s;
72
+ let w = u, N = c;
73
+ const p = [];
74
+ if (s >= n) {
75
+ for (let f = 0; f < d; f += 1) {
76
+ const _ = a[f], z = N + _.normalizedValue / v, R = {
77
+ x0: w,
78
+ y0: N,
79
+ x1: w + v,
80
+ y1: z
81
+ }, P = Object.assign({}, _, R);
82
+ N = z, p.push(P);
83
+ }
84
+ return p;
85
+ } else {
86
+ for (let f = 0; f < d; f += 1) {
87
+ const _ = a[f], z = w + _.normalizedValue / S, R = {
88
+ x0: w,
89
+ y0: N,
90
+ x1: z,
91
+ y1: N + S
92
+ }, P = Object.assign({}, _, R);
93
+ w = z, p.push(P);
94
+ }
95
+ return p;
96
+ }
97
+ }
98
+ function zt(a) {
99
+ const i = ce(a), s = i.width, n = i.height;
100
+ return Math.min(s, n);
101
+ }
102
+ function Pt(a, i) {
103
+ const s = a.length, n = a.map((v) => v.value ?? 0).reduce((v, S) => v + S, 0), u = i / n, c = [];
104
+ let d, h;
105
+ for (let v = 0; v < s; v += 1)
106
+ h = a[v], d = Object.assign({}, h, {
107
+ normalizedValue: h.value * (u || 0)
108
+ }), c.push(d);
109
+ return c;
110
+ }
111
+ function ce(a) {
112
+ const { x0: i, y0: s, x1: n, y1: u } = a;
113
+ return {
114
+ xOffset: i,
115
+ yOffset: s,
116
+ width: n - i,
117
+ height: u - s
118
+ };
119
+ }
120
+ function At(a, i, s, n) {
121
+ let u = a, c = i, d = s, h = n;
122
+ for (; ; ) {
123
+ const v = u.length;
124
+ if (v === 0) {
125
+ const p = Be(c, d);
126
+ return h.concat(p);
127
+ }
128
+ const S = zt(d), w = u[0], N = u.slice(1, v);
129
+ if (_t(c, w, S)) {
130
+ const p = c.concat(w);
131
+ u = N, c = p, d = d, h = h;
132
+ } else {
133
+ const p = c.length;
134
+ let f = 0;
135
+ for (let P = 0; P < p; P += 1)
136
+ f += c[P].normalizedValue;
137
+ const _ = It(d, f), z = Be(c, d), R = h.concat(z);
138
+ u = u, c = [], d = _, h = R;
139
+ }
140
+ }
141
+ }
142
+ function We(a) {
143
+ if (typeof a.children > "u" || !a.children.length)
144
+ return [a];
145
+ {
146
+ const i = Pt(
147
+ a.children,
148
+ Nt(a)
149
+ ), s = At(i, [], a, []), n = s.length, u = [];
150
+ for (let d = 0; d < n; d += 1)
151
+ u.push(We(s[d]));
152
+ return Ot(u);
153
+ }
154
+ }
155
+ function It(a, i) {
156
+ const { width: s, height: n, xOffset: u, yOffset: c } = ce(a);
157
+ if (s >= n) {
158
+ const d = i / n, h = s - d, v = {
159
+ xOffset: u + d,
160
+ yOffset: c,
161
+ width: h,
162
+ height: n
163
+ };
164
+ return Ve(v);
165
+ } else {
166
+ const d = i / s, h = n - d, v = {
167
+ xOffset: u,
168
+ yOffset: c + d,
169
+ width: s,
170
+ height: h
171
+ };
172
+ return Ve(v);
173
+ }
174
+ }
175
+ const Ft = (a) => (tt("data-v-3cef6fec"), a = a(), ot(), a), Lt = ["id"], Rt = ["xmlns", "viewBox"], Dt = { key: 0 }, Mt = ["id"], Vt = ["stop-color"], Bt = ["stop-color"], Wt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Ht = ["x", "y", "height", "width"], Et = {
176
+ style: { width: "100%", height: "100%" },
177
+ class: "vue-ui-treemap-cell"
178
+ }, Ut = /* @__PURE__ */ Ft(() => /* @__PURE__ */ O("br", null, null, -1)), Gt = {
179
+ key: 4,
180
+ class: "vue-data-ui-watermark"
181
+ }, Xt = ["onClick"], qt = { key: 0 }, jt = { key: 1 }, Yt = ["innerHTML"], Zt = {
182
+ __name: "vue-ui-treemap",
183
+ props: {
184
+ config: {
185
+ type: Object,
186
+ default() {
187
+ return {};
188
+ }
189
+ },
190
+ dataset: {
191
+ type: Array,
192
+ default() {
193
+ return [];
194
+ }
195
+ }
196
+ },
197
+ emits: ["selectLegend", "selectDatapoint"],
198
+ setup(a, { expose: i, emit: s }) {
199
+ const n = a, { vue_ui_treemap: u } = lt(), c = C(() => !!n.dataset && n.dataset.length), d = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = g(Ie()), v = g(!1), S = g(""), w = g(!1), N = g(0), p = g([]), f = g(null), _ = g(null), z = g(null), R = g(0), P = g(0), de = g(0), e = C({
200
+ get: () => ve(),
201
+ set: (t) => t
202
+ });
203
+ function ve() {
204
+ const t = De({
205
+ userConfig: n.config,
206
+ defaultConfig: u
207
+ });
208
+ return t.theme ? {
209
+ ...De({
210
+ userConfig: at.vue_ui_treemap[t.theme] || n.config,
211
+ defaultConfig: t
212
+ }),
213
+ customPalette: nt[t.theme] || T
214
+ } : t;
215
+ }
216
+ Ze(() => n.config, (t) => {
217
+ e.value = ve(), R.value += 1, P.value += 1, de.value += 1;
218
+ }, { deep: !0 });
219
+ const { isPrinting: he, isImaging: fe, generatePdf: pe, generateImage: ge } = ft({
220
+ elementId: `treemap_${h.value}`,
221
+ fileName: e.value.style.chart.title.text || "vue-ui-treemap"
222
+ }), Q = C(() => st(e.value.customPalette)), D = g({
223
+ showTable: e.value.table.show,
224
+ showTooltip: e.value.style.chart.tooltip.show
225
+ }), M = g({
226
+ height: e.value.style.chart.height,
227
+ width: e.value.style.chart.width
228
+ }), W = C(() => ({
229
+ bottom: M.value.height - e.value.style.chart.padding.bottom,
230
+ height: M.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
231
+ left: e.value.style.chart.padding.left,
232
+ right: M.value.width - e.value.style.chart.padding.right,
233
+ top: e.value.style.chart.padding.top,
234
+ vbHeight: M.value.height,
235
+ vbWidth: M.value.width,
236
+ width: M.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
237
+ }));
238
+ function ye(t) {
239
+ t.forEach((l, o) => {
240
+ l.id = Ie(), l.color = ae(l.color) || Q.value[o] || T[o] || T[o % T.length], l.children && (l.children.forEach((r) => {
241
+ r.parentId = l.id, r.color = l.color;
242
+ }), ye(l.children));
243
+ });
244
+ }
245
+ const H = g(n.dataset), ee = g(null);
246
+ Je(() => {
247
+ He();
248
+ });
249
+ function He() {
250
+ if (rt(n.dataset) && ut({
251
+ componentName: "VueUiTreemap",
252
+ type: "dataset"
253
+ }), ye(H.value), e.value.responsive) {
254
+ const t = Ct(() => {
255
+ const { width: l, height: o } = kt({
256
+ chart: f.value,
257
+ title: e.value.style.chart.title.text ? _.value : null,
258
+ legend: e.value.style.chart.legend.show ? z.value : null
259
+ });
260
+ M.value.width = l, M.value.height = o;
261
+ });
262
+ ee.value = new ResizeObserver(t), ee.value.observe(f.value.parentNode);
263
+ }
264
+ }
265
+ Ke(() => {
266
+ ee.value && ee.value.disconnect();
267
+ });
268
+ const se = g(H.value), Z = C(() => se.value.map((t, l) => ({
269
+ ...t,
270
+ color: ae(t.color) || Q.value[l] || T[l] || T[l % T.length]
271
+ })).filter((t) => !p.value.includes(t.id))), q = C(() => H.value.filter((t) => !p.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), me = C({
272
+ get() {
273
+ let t = [...Z.value];
274
+ return e.value.style.chart.layout.sorted && (t = [...Z.value].sort((l, o) => o.value - l.value)), t.map((l) => ({
275
+ ...l
276
+ }));
277
+ },
278
+ set(t) {
279
+ return t;
280
+ }
281
+ });
282
+ function be(t, l) {
283
+ return t.value / l;
284
+ }
285
+ function Ee(t, l, o) {
286
+ const r = e.value.style.chart.layout.rects.colorRatio - be(l, o);
287
+ return Fe(t, r < 0 ? 0 : r);
288
+ }
289
+ function we(t, l, o, r) {
290
+ return t.map((y, V) => {
291
+ const le = Ee(ae(l) || Q.value[V] || T[V] || T[V % T.length], y, r), Ye = be(y, r);
292
+ return {
293
+ ...y,
294
+ color: le,
295
+ proportion: Ye,
296
+ parentName: o,
297
+ children: y.children ? we(y.children, le, y.name, r) : void 0
298
+ };
299
+ });
300
+ }
301
+ const J = C(() => St(
302
+ me.value.map((t, l) => {
303
+ const o = t.children ? t.children.reduce((r, y) => r + y.value, 0) : t.value;
304
+ return {
305
+ value: t.value,
306
+ id: t.id,
307
+ children: t.children ? we(t.children.sort((r, y) => y.value - r.value), t.color, t.name, o) : void 0,
308
+ color: t.color,
309
+ name: t.name
310
+ };
311
+ }),
312
+ { x0: W.value.left * 2, y0: W.value.top, x1: W.value.width, y1: W.value.height }
313
+ ));
314
+ function Ce({ y0: t, y1: l }) {
315
+ return l - t <= 0 ? 1e-4 : l - t;
316
+ }
317
+ function ke({ x0: t, x1: l }) {
318
+ return l - t <= 0 ? 1e-4 : l - t;
319
+ }
320
+ function E(t) {
321
+ const l = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
322
+ return l < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : l;
323
+ }
324
+ function Ue(t) {
325
+ w.value = t, N.value += 1;
326
+ }
327
+ const j = C(() => ({
328
+ startX: 0,
329
+ startY: 0,
330
+ width: W.value.vbWidth,
331
+ height: W.value.vbHeight
332
+ })), A = g(!1);
333
+ function re(t, l = H.value) {
334
+ for (const o of l) {
335
+ if (o.id === t)
336
+ return o;
337
+ if (o.children) {
338
+ const r = re(t, o.children);
339
+ if (r)
340
+ return r;
341
+ }
342
+ }
343
+ return null;
344
+ }
345
+ function Ge(t) {
346
+ if (A.value)
347
+ s("selectDatapoint", void 0), se.value = H.value;
348
+ else {
349
+ if (s("selectDatapoint", t), !re(t.parentId))
350
+ return;
351
+ se.value = [re(t.parentId)];
352
+ }
353
+ A.value = !A.value;
354
+ }
355
+ const I = g(null), xe = C(() => H.value.map((t, l) => ({
356
+ ...t,
357
+ color: ae(t.color) || Q.value[l] || T[l] || T[l % T.length],
358
+ shape: "square"
359
+ })).sort((t, l) => l.value - t.value).map((t, l) => ({
360
+ ...t,
361
+ proportion: t.value / H.value.map((o) => o.value).reduce((o, r) => o + r, 0),
362
+ opacity: p.value.includes(t.id) ? 0.5 : 1
363
+ }))), Xe = C(() => ({
364
+ cy: "treemap-div-legend",
365
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
366
+ color: e.value.style.chart.legend.color,
367
+ fontSize: e.value.style.chart.legend.fontSize,
368
+ paddingBottom: 12,
369
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
370
+ }));
371
+ function $e(t) {
372
+ A.value = !1, I.value = null, p.value.includes(t.id) ? p.value = p.value.filter((l) => l !== t.id) : p.value.length < n.dataset.length - 1 && p.value.push(t.id), s("selectLegend", me.value);
373
+ }
374
+ const ue = g(null);
375
+ function qe({ datapoint: t, seriesIndex: l }) {
376
+ I.value = t, ue.value = { datapoint: t, seriesIndex: l, config: e.value, series: Z.value };
377
+ const o = e.value.style.chart.tooltip.customFormat;
378
+ if (Re(o) && ct(() => o({
379
+ seriesIndex: l,
380
+ datapoint: t,
381
+ series: Z.value,
382
+ config: e.value
383
+ })))
384
+ S.value = o({
385
+ seriesIndex: l,
386
+ datapoint: t,
387
+ series: Z.value,
388
+ config: e.value
389
+ });
390
+ else {
391
+ let r = "";
392
+ r += `<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>`, r += `<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>`, r += `<b>${ne(
393
+ e.value.style.chart.layout.labels.formatter,
394
+ t.value,
395
+ K({
396
+ p: e.value.style.chart.layout.labels.prefix,
397
+ v: t.value,
398
+ s: e.value.style.chart.layout.labels.suffix,
399
+ r: e.value.style.chart.tooltip.roundingValue
400
+ }),
401
+ { datapoint: t, seriesIndex: l }
402
+ )}</b>`, S.value = `<div>${r}</div>`;
403
+ }
404
+ v.value = !0;
405
+ }
406
+ const F = C(() => {
407
+ const t = J.value.map((o) => ({
408
+ name: o.name,
409
+ color: o.color
410
+ })), l = J.value.map((o) => o.value);
411
+ return { head: t, body: l };
412
+ });
413
+ function Te() {
414
+ et(() => {
415
+ const t = F.value.head.map((r, y) => [[
416
+ r.name
417
+ ], [F.value.body[y]], [isNaN(F.value.body[y] / q.value) ? "-" : F.value.body[y] / q.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = dt(l);
418
+ vt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
419
+ });
420
+ }
421
+ const te = C(() => {
422
+ const t = [
423
+ e.value.table.columnNames.series,
424
+ e.value.table.columnNames.value,
425
+ e.value.table.columnNames.percentage
426
+ ], l = F.value.head.map((y, V) => {
427
+ const le = ne(
428
+ e.value.style.chart.layout.labels.formatter,
429
+ F.value.body[V],
430
+ K({
431
+ p: e.value.style.chart.layout.labels.prefix,
432
+ v: F.value.body[V],
433
+ s: e.value.style.chart.layout.labels.suffix,
434
+ r: e.value.table.td.roundingValue
435
+ })
436
+ );
437
+ return [
438
+ {
439
+ color: y.color,
440
+ name: y.name,
441
+ shape: "square"
442
+ },
443
+ le,
444
+ isNaN(F.value.body[V] / q.value) ? "-" : K({
445
+ v: F.value.body[V] / q.value * 100,
446
+ s: "%",
447
+ r: e.value.table.td.roundingPercentage
448
+ })
449
+ ];
450
+ }), o = {
451
+ th: {
452
+ backgroundColor: e.value.table.th.backgroundColor,
453
+ color: e.value.table.th.color,
454
+ outline: e.value.table.th.outline
455
+ },
456
+ td: {
457
+ backgroundColor: e.value.table.td.backgroundColor,
458
+ color: e.value.table.td.color,
459
+ outline: e.value.table.td.outline
460
+ },
461
+ breakpoint: e.value.table.responsiveBreakpoint
462
+ };
463
+ return {
464
+ colNames: [
465
+ e.value.table.columnNames.series,
466
+ e.value.table.columnNames.value
467
+ ],
468
+ head: t,
469
+ body: l,
470
+ config: o
471
+ };
472
+ });
473
+ function je() {
474
+ return J.value;
475
+ }
476
+ function _e() {
477
+ D.value.showTable = !D.value.showTable;
478
+ }
479
+ function Oe() {
480
+ D.value.showTooltip = !D.value.showTooltip;
481
+ }
482
+ const oe = g(!1);
483
+ function ie() {
484
+ oe.value = !oe.value;
485
+ }
486
+ return i({
487
+ getData: je,
488
+ generateCsv: Te,
489
+ generateImage: ge,
490
+ generatePdf: pe,
491
+ toggleTable: _e,
492
+ toggleTooltip: Oe,
493
+ toggleAnnotator: ie
494
+ }), (t, l) => (m(), k("div", {
495
+ ref_key: "treemapChart",
496
+ ref: f,
497
+ class: Se(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
498
+ style: B(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
499
+ id: `treemap_${h.value}`
500
+ }, [
501
+ e.value.userOptions.buttons.annotator ? (m(), U($t, {
502
+ key: 0,
503
+ parent: f.value,
504
+ backgroundColor: e.value.style.chart.backgroundColor,
505
+ color: e.value.style.chart.color,
506
+ active: oe.value,
507
+ onClose: ie
508
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : L("", !0),
509
+ e.value.style.chart.title.text ? (m(), k("div", {
510
+ key: 1,
511
+ ref_key: "chartTitle",
512
+ ref: _,
513
+ style: B(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
514
+ }, [
515
+ (m(), U(ht, {
516
+ key: `title_${R.value}`,
517
+ config: {
518
+ title: {
519
+ cy: "treemap-div-title",
520
+ ...e.value.style.chart.title
521
+ },
522
+ subtitle: {
523
+ cy: "treemap-div-subtitle",
524
+ ...e.value.style.chart.title.subtitle
525
+ }
526
+ }
527
+ }, null, 8, ["config"]))
528
+ ], 4)) : L("", !0),
529
+ e.value.userOptions.show && c.value ? (m(), U(pt, {
530
+ ref: "details",
531
+ key: `user_option_${N.value}`,
532
+ backgroundColor: e.value.style.chart.backgroundColor,
533
+ color: e.value.style.chart.color,
534
+ isPrinting: b(he),
535
+ isImaging: b(fe),
536
+ uid: h.value,
537
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
538
+ hasPdf: e.value.userOptions.buttons.pdf,
539
+ hasXls: e.value.userOptions.buttons.csv,
540
+ hasImg: e.value.userOptions.buttons.img,
541
+ hasTable: e.value.userOptions.buttons.table,
542
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
543
+ isFullscreen: w.value,
544
+ isTooltip: D.value.showTooltip,
545
+ titles: { ...e.value.userOptions.buttonTitles },
546
+ chartElement: f.value,
547
+ position: e.value.userOptions.position,
548
+ hasAnnotator: e.value.userOptions.buttons.annotator,
549
+ isAnnotation: oe.value,
550
+ onToggleFullscreen: Ue,
551
+ onGeneratePdf: b(pe),
552
+ onGenerateCsv: Te,
553
+ onGenerateImage: b(ge),
554
+ onToggleTable: _e,
555
+ onToggleTooltip: Oe,
556
+ onToggleAnnotator: ie
557
+ }, Qe({ _: 2 }, [
558
+ t.$slots.optionTooltip ? {
559
+ name: "optionTooltip",
560
+ fn: x(() => [
561
+ $(t.$slots, "optionTooltip", {}, void 0, !0)
562
+ ]),
563
+ key: "0"
564
+ } : void 0,
565
+ t.$slots.optionPdf ? {
566
+ name: "optionPdf",
567
+ fn: x(() => [
568
+ $(t.$slots, "optionPdf", {}, void 0, !0)
569
+ ]),
570
+ key: "1"
571
+ } : void 0,
572
+ t.$slots.optionCsv ? {
573
+ name: "optionCsv",
574
+ fn: x(() => [
575
+ $(t.$slots, "optionCsv", {}, void 0, !0)
576
+ ]),
577
+ key: "2"
578
+ } : void 0,
579
+ t.$slots.optionImg ? {
580
+ name: "optionImg",
581
+ fn: x(() => [
582
+ $(t.$slots, "optionImg", {}, void 0, !0)
583
+ ]),
584
+ key: "3"
585
+ } : void 0,
586
+ t.$slots.optionTable ? {
587
+ name: "optionTable",
588
+ fn: x(() => [
589
+ $(t.$slots, "optionTable", {}, void 0, !0)
590
+ ]),
591
+ key: "4"
592
+ } : void 0,
593
+ t.$slots.optionFullscreen ? {
594
+ name: "optionFullscreen",
595
+ fn: x(({ toggleFullscreen: o, isFullscreen: r }) => [
596
+ $(t.$slots, "optionFullscreen", G(X({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
597
+ ]),
598
+ key: "5"
599
+ } : void 0,
600
+ t.$slots.optionAnnotator ? {
601
+ name: "optionAnnotator",
602
+ fn: x(({ toggleAnnotator: o, isAnnotator: r }) => [
603
+ $(t.$slots, "optionAnnotator", G(X({ toggleAnnotator: o, isAnnotator: r })), void 0, !0)
604
+ ]),
605
+ key: "6"
606
+ } : void 0
607
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : L("", !0),
608
+ c.value ? (m(), k("svg", {
609
+ key: 3,
610
+ xmlns: b(it),
611
+ class: Se({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !A.value, "vue-data-ui-zoom-minus": A.value }),
612
+ viewBox: `${j.value.startX} ${j.value.startY} ${j.value.width <= 0 ? 10 : j.value.width} ${j.value.height <= 0 ? 10 : j.value.height}`,
613
+ style: B(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
614
+ }, [
615
+ Ne(xt),
616
+ (m(!0), k(ze, null, Pe(J.value, (o, r) => (m(), k("g", null, [
617
+ e.value.style.chart.layout.rects.gradient.show ? (m(), k("defs", Dt, [
618
+ O("radialGradient", {
619
+ id: `tgrad_${o.id}`,
620
+ gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
621
+ }, [
622
+ O("stop", {
623
+ offset: "18%",
624
+ "stop-color": o.color
625
+ }, null, 8, Vt),
626
+ O("stop", {
627
+ offset: "100%",
628
+ "stop-color": b(Fe)(o.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
629
+ }, null, 8, Bt)
630
+ ], 8, Mt)
631
+ ])) : L("", !0)
632
+ ]))), 256)),
633
+ (m(!0), k(ze, null, Pe(J.value, (o, r) => (m(), k("g", null, [
634
+ O("rect", {
635
+ x: o.x0,
636
+ y: o.y0,
637
+ height: Ce(o),
638
+ width: ke(o),
639
+ fill: d.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
640
+ rx: e.value.style.chart.layout.rects.borderRadius,
641
+ stroke: I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
642
+ "stroke-width": I.value && I.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
643
+ onClick: (y) => Ge(o),
644
+ onMouseenter: () => qe({
645
+ datapoint: o,
646
+ seriesIndex: r
647
+ }),
648
+ onMouseleave: l[0] || (l[0] = (y) => {
649
+ I.value = null, v.value = !1;
650
+ }),
651
+ style: B(`opacity:${I.value ? I.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
652
+ class: "vue-ui-treemap-rect"
653
+ }, null, 44, Wt),
654
+ (m(), k("foreignObject", {
655
+ x: o.x0,
656
+ y: o.y0,
657
+ height: Ce(o),
658
+ width: ke(o),
659
+ class: "vue-ui-treemap-cell-foreignObject"
660
+ }, [
661
+ O("div", Et, [
662
+ e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || A.value) ? (m(), k("div", {
663
+ key: 0,
664
+ class: "vue-ui-treemap-cell-default",
665
+ style: B(`width:calc(100% - ${E(o) / 1.5}px);text-align:left;line-height:${E(o) < 14 ? 14 : E(o)}px;padding:${E(o) / 3}px; color:${b(Le)(o.color)}`)
666
+ }, [
667
+ O("span", {
668
+ style: B(`width:100%;font-size:${E(o)}px;`)
669
+ }, Y(o.name), 5),
670
+ Ut,
671
+ O("span", {
672
+ style: B(`width:100%;font-size:${E(o)}px;`)
673
+ }, Y(b(ne)(
674
+ e.value.style.chart.layout.labels.formatter,
675
+ o.value,
676
+ b(K)({
677
+ p: e.value.style.chart.layout.labels.prefix,
678
+ v: o.value,
679
+ s: e.value.style.chart.layout.labels.suffix,
680
+ r: e.value.style.chart.layout.labels.rounding
681
+ }),
682
+ { datapoint: o }
683
+ )), 5)
684
+ ], 4)) : L("", !0),
685
+ $(t.$slots, "rect", G(X({
686
+ rect: o,
687
+ shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || A.value,
688
+ fontSize: E(o),
689
+ isZoom: A.value,
690
+ textColor: b(Le)(o.color)
691
+ })), void 0, !0)
692
+ ])
693
+ ], 8, Ht))
694
+ ]))), 256)),
695
+ $(t.$slots, "svg", G(X({ svg: W.value, isZoom: A.value, rect: I.value, config: e.value })), void 0, !0)
696
+ ], 14, Rt)) : L("", !0),
697
+ t.$slots.watermark ? (m(), k("div", Gt, [
698
+ $(t.$slots, "watermark", G(X({ isPrinting: b(he) || b(fe) })), void 0, !0)
699
+ ])) : L("", !0),
700
+ c.value ? L("", !0) : (m(), U(mt, {
701
+ key: 5,
702
+ config: {
703
+ type: "treemap",
704
+ style: {
705
+ backgroundColor: e.value.style.chart.backgroundColor,
706
+ treemap: {
707
+ color: "#CCCCCC"
708
+ }
709
+ }
710
+ }
711
+ }, null, 8, ["config"])),
712
+ O("div", {
713
+ ref_key: "chartLegend",
714
+ ref: z
715
+ }, [
716
+ e.value.style.chart.legend.show ? (m(), U(yt, {
717
+ key: `legend_${de.value}`,
718
+ legendSet: xe.value,
719
+ config: Xe.value,
720
+ id: `treemap_legend_${h.value}`,
721
+ onClickMarker: l[1] || (l[1] = ({ legend: o }) => $e(o))
722
+ }, {
723
+ item: x(({ legend: o, index: r }) => [
724
+ O("div", {
725
+ onClick: (y) => $e(o),
726
+ style: B(`opacity:${p.value.includes(o.id) ? 0.5 : 1}`)
727
+ }, [
728
+ Ae(Y(o.name) + ": " + Y(b(ne)(
729
+ e.value.style.chart.layout.labels.formatter,
730
+ o.value,
731
+ b(K)({
732
+ p: e.value.style.chart.layout.labels.prefix,
733
+ v: o.value,
734
+ s: e.value.style.chart.layout.labels.suffix,
735
+ r: e.value.style.chart.legend.roundingValue
736
+ }),
737
+ { datapoint: o }
738
+ )) + " ", 1),
739
+ p.value.includes(o.id) ? (m(), k("span", jt, " ( - % ) ")) : (m(), k("span", qt, " (" + Y(isNaN(o.value / q.value) ? "-" : (o.value / q.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
740
+ ], 12, Xt)
741
+ ]),
742
+ _: 1
743
+ }, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
744
+ key: 1,
745
+ legend: xe.value
746
+ }, void 0, !0)
747
+ ], 512),
748
+ Ne(gt, {
749
+ show: D.value.showTooltip && v.value,
750
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
751
+ color: e.value.style.chart.tooltip.color,
752
+ fontSize: e.value.style.chart.tooltip.fontSize,
753
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
754
+ borderColor: e.value.style.chart.tooltip.borderColor,
755
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
756
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
757
+ position: e.value.style.chart.tooltip.position,
758
+ offsetY: e.value.style.chart.tooltip.offsetY,
759
+ parent: f.value,
760
+ content: S.value,
761
+ isCustom: b(Re)(e.value.style.chart.tooltip.customFormat)
762
+ }, {
763
+ "tooltip-before": x(() => [
764
+ $(t.$slots, "tooltip-before", G(X({ ...ue.value })), void 0, !0)
765
+ ]),
766
+ "tooltip-after": x(() => [
767
+ $(t.$slots, "tooltip-after", G(X({ ...ue.value })), void 0, !0)
768
+ ]),
769
+ _: 3
770
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
771
+ c.value ? (m(), U(wt, {
772
+ key: 6,
773
+ hideDetails: "",
774
+ config: {
775
+ open: D.value.showTable,
776
+ maxHeight: 1e4,
777
+ body: {
778
+ backgroundColor: e.value.style.chart.backgroundColor,
779
+ color: e.value.style.chart.color
780
+ },
781
+ head: {
782
+ backgroundColor: e.value.style.chart.backgroundColor,
783
+ color: e.value.style.chart.color
784
+ }
785
+ }
786
+ }, {
787
+ content: x(() => [
788
+ (m(), U(bt, {
789
+ key: `table_${P.value}`,
790
+ colNames: te.value.colNames,
791
+ head: te.value.head,
792
+ body: te.value.body,
793
+ config: te.value.config,
794
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
795
+ onClose: l[2] || (l[2] = (o) => D.value.showTable = !1)
796
+ }, {
797
+ th: x(({ th: o }) => [
798
+ O("div", {
799
+ innerHTML: o,
800
+ style: { display: "flex", "align-items": "center" }
801
+ }, null, 8, Yt)
802
+ ]),
803
+ td: x(({ td: o }) => [
804
+ Ae(Y(o.name || o), 1)
805
+ ]),
806
+ _: 1
807
+ }, 8, ["colNames", "head", "body", "config", "title"]))
808
+ ]),
809
+ _: 1
810
+ }, 8, ["config"])) : L("", !0)
811
+ ], 14, Lt));
812
+ }
813
+ }, vo = /* @__PURE__ */ Tt(Zt, [["__scopeId", "data-v-3cef6fec"]]);
814
+ export {
815
+ vo as default
816
+ };