vue-data-ui 2.4.1 → 2.4.3

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