vue-data-ui 2.3.27 → 2.3.29

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 (183) hide show
  1. package/README.md +17 -1
  2. package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
  3. package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
  4. package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
  5. package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
  6. package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
  7. package/dist/DataTable-Doh_4M84.cjs +1 -0
  8. package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
  9. package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
  10. package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
  11. package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
  12. package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
  13. package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
  14. package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
  15. package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
  16. package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
  17. package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
  18. package/dist/documentation/installation.md +1 -1
  19. package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
  20. package/dist/index-hKWfT7Wa.cjs +4 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +66 -0
  23. package/dist/types/vue-data-ui.d.ts +66 -0
  24. package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
  25. package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
  26. package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
  27. package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
  28. package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
  29. package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +6 -6
  32. package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
  33. package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
  34. package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
  36. package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
  38. package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
  39. package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
  42. package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
  44. package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
  45. package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
  46. package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
  47. package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
  50. package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
  51. package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
  52. package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
  53. package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
  54. package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
  55. package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
  56. package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
  57. package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
  58. package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
  59. package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
  60. package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
  61. package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
  62. package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
  64. package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
  65. package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
  66. package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
  67. package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
  68. package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
  69. package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
  70. package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
  75. package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
  76. package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
  77. package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
  78. package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
  79. package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
  80. package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
  81. package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
  82. package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
  83. package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
  84. package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
  85. package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
  86. package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
  87. package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
  88. package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
  89. package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
  90. package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
  91. package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
  92. package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
  93. package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
  94. package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
  95. package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
  96. package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
  98. package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
  99. package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
  104. package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
  105. package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
  106. package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
  108. package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
  109. package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
  110. package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
  112. package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
  113. package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
  114. package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
  115. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
  116. package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
  117. package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
  118. package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
  119. package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
  120. package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
  122. package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
  124. package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
  125. package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
  126. package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
  127. package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
  128. package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
  129. package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
  131. package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
  132. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
  133. package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
  134. package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
  135. package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
  136. package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
  138. package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
  139. package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
  140. package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
  141. package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
  142. package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
  143. package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
  144. package/package.json +1 -1
  145. package/dist/DataTable-C6HTLT7L.cjs +0 -1
  146. package/dist/index-BQOxn6SH.cjs +0 -4
  147. package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
  148. package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
  149. package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
  150. package/dist/vue-ui-donut-C33U3e8H.js +0 -751
  151. package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
  152. package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
  153. package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
  154. package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
  155. package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
  156. package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
  157. package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
  158. package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
  159. package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
  160. package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
  161. package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
  162. package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
  163. package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
  164. package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
  165. package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
  166. package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
  168. package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
  170. package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
  171. package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
  173. package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
  174. package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
  175. package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
  176. package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
  177. package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
  178. package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
  179. package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
  180. package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
  181. package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
  182. package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
  183. package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
@@ -1,15 +1,15 @@
1
- import { computed as w, ref as y, onMounted as He, onBeforeUnmount as Ee, openBlock as m, createElementBlock as C, normalizeClass as ke, normalizeStyle as D, createVNode as ne, createCommentVNode as M, createBlock as ee, unref as k, createSlots as Ue, withCtx as T, renderSlot as _, normalizeProps as G, guardReactiveProps as X, Fragment as xe, renderList as $e, createElementVNode as O, toDisplayString as q, createTextVNode as Te, nextTick as Ge, pushScopeId as Xe, popScopeId as qe } from "vue";
2
- import { u as je, c as _e, t as Ye, a as Ze, p as x, b as Je, o as Ke, e as Qe, d as te, f as le, X as et, l as Oe, C as Se, v as Ne, w as tt, n as lt, q as ot } from "./index-DiWO-_ca.js";
3
- import { _ as at } from "./Title-C3Ez1ceq.js";
4
- import { u as nt, U as st } from "./usePrinter-BD40aUzH.js";
5
- import { _ as rt } from "./Tooltip-7SRMoiu-.js";
6
- import { L as ut } from "./Legend-8eVERYMn.js";
7
- import it from "./vue-ui-skeleton-CeNL0kH-.js";
8
- import { D as ct } from "./DataTable-EqeVt-K-.js";
9
- import dt from "./vue-ui-accordion-CiNdgRO9.js";
10
- import { t as vt, u as ht } from "./useResponsive-NZB-WLRF.js";
11
- import { u as ze } from "./useNestedProp-DNX5EefQ.js";
12
- import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { computed as C, ref as y, onMounted as Ee, onBeforeUnmount as Ue, openBlock as m, createElementBlock as k, normalizeClass as xe, normalizeStyle as M, createVNode as se, createCommentVNode as V, createBlock as te, unref as b, createSlots as Ge, withCtx as T, renderSlot as _, normalizeProps as G, guardReactiveProps as X, Fragment as $e, renderList as Te, createElementVNode as O, toDisplayString as q, createTextVNode as _e, nextTick as Xe, pushScopeId as qe, popScopeId as je } from "vue";
2
+ import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-BlXzlBwZ.js";
3
+ import { _ as nt } from "./Title-eBTH8iGJ.js";
4
+ import { u as st, U as rt } from "./usePrinter-CZ8F5Cth.js";
5
+ import { _ as ut } from "./Tooltip-B11OahTD.js";
6
+ import { L as it } from "./Legend-CkQ_zypV.js";
7
+ import ct from "./vue-ui-skeleton-CJ2R5R6u.js";
8
+ import { D as dt } from "./DataTable-CsPidn0_.js";
9
+ import vt from "./vue-ui-accordion-wHRG3nXl.js";
10
+ import { t as ht, u as ft } from "./useResponsive-NZB-WLRF.js";
11
+ import { u as Pe } from "./useNestedProp-BoNl5H_z.js";
12
+ import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function Ie(a, i) {
14
14
  const s = a.length;
15
15
  if (s === 0)
@@ -26,7 +26,7 @@ function Ie(a, i) {
26
26
  );
27
27
  }
28
28
  }
29
- function Pe(a) {
29
+ function Fe(a) {
30
30
  const { xOffset: i, yOffset: s, width: n, height: r } = a;
31
31
  return {
32
32
  x0: i,
@@ -35,7 +35,7 @@ function Pe(a) {
35
35
  y1: s + r
36
36
  };
37
37
  }
38
- function pt(a, i, s) {
38
+ function gt(a, i, s) {
39
39
  if (a.length === 0)
40
40
  return !0;
41
41
  {
@@ -46,7 +46,7 @@ function pt(a, i, s) {
46
46
  return r >= c;
47
47
  }
48
48
  }
49
- function gt(a) {
49
+ function yt(a) {
50
50
  const i = [], s = a.length;
51
51
  for (let n = 0; n < s; n += 1) {
52
52
  const r = a[n], c = r.length;
@@ -55,49 +55,49 @@ function gt(a) {
55
55
  }
56
56
  return i;
57
57
  }
58
- function yt(a, i) {
58
+ function mt(a, i) {
59
59
  const s = {
60
60
  ...i,
61
61
  children: a
62
62
  };
63
- return Le(s);
63
+ return Re(s);
64
64
  }
65
- function mt(a) {
65
+ function bt(a) {
66
66
  return (a.x1 - a.x0) * (a.y1 - a.y0);
67
67
  }
68
- function Fe(a, i) {
69
- const { width: s, height: n, xOffset: r, yOffset: c } = se(i), d = a.length, h = a.map((p) => p.normalizedValue || 0).reduce((p, $) => p + $, 0), v = h / n, S = h / s;
70
- let b = r, N = c;
68
+ function Le(a, i) {
69
+ const { width: s, height: n, xOffset: r, yOffset: c } = re(i), d = a.length, h = a.map((p) => p.normalizedValue || 0).reduce((p, $) => p + $, 0), v = h / n, S = h / s;
70
+ let w = r, N = c;
71
71
  const f = [];
72
72
  if (s >= n) {
73
73
  for (let p = 0; p < d; p += 1) {
74
74
  const $ = a[p], z = N + $.normalizedValue / v, e = {
75
- x0: b,
75
+ x0: w,
76
76
  y0: N,
77
- x1: b + v,
77
+ x1: w + v,
78
78
  y1: z
79
- }, I = Object.assign({}, $, e);
80
- N = z, f.push(I);
79
+ }, P = Object.assign({}, $, e);
80
+ N = z, f.push(P);
81
81
  }
82
82
  return f;
83
83
  } else {
84
84
  for (let p = 0; p < d; p += 1) {
85
- const $ = a[p], z = b + $.normalizedValue / S, e = {
86
- x0: b,
85
+ const $ = a[p], z = w + $.normalizedValue / S, e = {
86
+ x0: w,
87
87
  y0: N,
88
88
  x1: z,
89
89
  y1: N + S
90
- }, I = Object.assign({}, $, e);
91
- b = z, f.push(I);
90
+ }, P = Object.assign({}, $, e);
91
+ w = z, f.push(P);
92
92
  }
93
93
  return f;
94
94
  }
95
95
  }
96
- function bt(a) {
97
- const i = se(a), s = i.width, n = i.height;
96
+ function wt(a) {
97
+ const i = re(a), s = i.width, n = i.height;
98
98
  return Math.min(s, n);
99
99
  }
100
- function wt(a, i) {
100
+ function Ct(a, i) {
101
101
  const s = a.length, n = a.map((v) => v.value ?? 0).reduce((v, S) => v + S, 0), r = i / n, c = [];
102
102
  let d, h;
103
103
  for (let v = 0; v < s; v += 1)
@@ -106,7 +106,7 @@ function wt(a, i) {
106
106
  }), c.push(d);
107
107
  return c;
108
108
  }
109
- function se(a) {
109
+ function re(a) {
110
110
  const { x0: i, y0: s, x1: n, y1: r } = a;
111
111
  return {
112
112
  xOffset: i,
@@ -115,43 +115,43 @@ function se(a) {
115
115
  height: r - s
116
116
  };
117
117
  }
118
- function Ct(a, i, s, n) {
118
+ function kt(a, i, s, n) {
119
119
  let r = a, c = i, d = s, h = n;
120
120
  for (; ; ) {
121
121
  const v = r.length;
122
122
  if (v === 0) {
123
- const f = Fe(c, d);
123
+ const f = Le(c, d);
124
124
  return h.concat(f);
125
125
  }
126
- const S = bt(d), b = r[0], N = r.slice(1, v);
127
- if (pt(c, b, S)) {
128
- const f = c.concat(b);
126
+ const S = wt(d), w = r[0], N = r.slice(1, v);
127
+ if (gt(c, w, S)) {
128
+ const f = c.concat(w);
129
129
  r = N, c = f, d = d, h = h;
130
130
  } else {
131
131
  const f = c.length;
132
132
  let p = 0;
133
- for (let I = 0; I < f; I += 1)
134
- p += c[I].normalizedValue;
135
- const $ = kt(d, p), z = Fe(c, d), e = h.concat(z);
133
+ for (let P = 0; P < f; P += 1)
134
+ p += c[P].normalizedValue;
135
+ const $ = xt(d, p), z = Le(c, d), e = h.concat(z);
136
136
  r = r, c = [], d = $, h = e;
137
137
  }
138
138
  }
139
139
  }
140
- function Le(a) {
140
+ function Re(a) {
141
141
  if (typeof a.children > "u" || !a.children.length)
142
142
  return [a];
143
143
  {
144
- const i = wt(
144
+ const i = Ct(
145
145
  a.children,
146
- mt(a)
147
- ), s = Ct(i, [], a, []), n = s.length, r = [];
146
+ bt(a)
147
+ ), s = kt(i, [], a, []), n = s.length, r = [];
148
148
  for (let d = 0; d < n; d += 1)
149
- r.push(Le(s[d]));
150
- return gt(r);
149
+ r.push(Re(s[d]));
150
+ return yt(r);
151
151
  }
152
152
  }
153
- function kt(a, i) {
154
- const { width: s, height: n, xOffset: r, yOffset: c } = se(a);
153
+ function xt(a, i) {
154
+ const { width: s, height: n, xOffset: r, yOffset: c } = re(a);
155
155
  if (s >= n) {
156
156
  const d = i / n, h = s - d, v = {
157
157
  xOffset: r + d,
@@ -159,7 +159,7 @@ function kt(a, i) {
159
159
  width: h,
160
160
  height: n
161
161
  };
162
- return Pe(v);
162
+ return Fe(v);
163
163
  } else {
164
164
  const d = i / s, h = n - d, v = {
165
165
  xOffset: r,
@@ -167,16 +167,16 @@ function kt(a, i) {
167
167
  width: s,
168
168
  height: h
169
169
  };
170
- return Pe(v);
170
+ return Fe(v);
171
171
  }
172
172
  }
173
- const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = ["xmlns", "viewBox"], _t = { key: 0 }, Ot = ["id"], St = ["stop-color"], Nt = ["stop-color"], zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], It = ["x", "y", "height", "width"], Pt = {
173
+ const $t = (a) => (qe("data-v-7028d693"), a = a(), je(), a), Tt = ["id"], _t = ["xmlns", "viewBox"], Ot = { key: 0 }, St = ["id"], Nt = ["stop-color"], zt = ["stop-color"], Pt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], It = ["x", "y", "height", "width"], Ft = {
174
174
  style: { width: "100%", height: "100%" },
175
175
  class: "vue-ui-treemap-cell"
176
- }, Ft = /* @__PURE__ */ xt(() => /* @__PURE__ */ O("br", null, null, -1)), Lt = {
176
+ }, Lt = /* @__PURE__ */ $t(() => /* @__PURE__ */ O("br", null, null, -1)), Rt = {
177
177
  key: 3,
178
178
  class: "vue-data-ui-watermark"
179
- }, Rt = ["onClick"], At = { key: 0 }, Dt = { key: 1 }, Mt = ["innerHTML"], Vt = {
179
+ }, Dt = ["onClick"], At = { key: 0 }, Mt = { key: 1 }, Vt = ["innerHTML"], Bt = {
180
180
  __name: "vue-ui-treemap",
181
181
  props: {
182
182
  config: {
@@ -194,67 +194,67 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
194
194
  },
195
195
  emits: ["selectLegend", "selectDatapoint"],
196
196
  setup(a, { expose: i, emit: s }) {
197
- const n = a, { vue_ui_treemap: r } = je(), c = w(() => !!n.dataset && n.dataset.length), d = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = y(_e()), v = y(!1), S = y(""), b = y(!1), N = y(0), f = y([]), p = y(null), $ = y(null), z = y(null), e = w(() => {
198
- const t = ze({
197
+ const n = a, { vue_ui_treemap: r } = Ye(), c = C(() => !!n.dataset && n.dataset.length), d = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = y(Oe()), v = y(!1), S = y(""), w = y(!1), N = y(0), f = y([]), p = y(null), $ = y(null), z = y(null), e = C(() => {
198
+ const t = Pe({
199
199
  userConfig: n.config,
200
200
  defaultConfig: r
201
201
  });
202
202
  return t.theme ? {
203
- ...ze({
204
- userConfig: Ye.vue_ui_treemap[t.theme] || n.config,
203
+ ...Pe({
204
+ userConfig: Ze.vue_ui_treemap[t.theme] || n.config,
205
205
  defaultConfig: t
206
206
  }),
207
- customPalette: Ze[t.theme] || x
207
+ customPalette: Je[t.theme] || x
208
208
  } : t;
209
- }), { isPrinting: I, isImaging: re, generatePdf: ue, generateImage: ie } = nt({
209
+ }), { isPrinting: P, isImaging: ue, generatePdf: ie, generateImage: ce } = st({
210
210
  elementId: `treemap_${h.value}`,
211
211
  fileName: e.value.style.chart.title.text || "vue-ui-treemap"
212
- }), Z = w(() => Je(e.value.customPalette)), L = y({
212
+ }), J = C(() => Ke(e.value.customPalette)), R = y({
213
213
  showTable: e.value.table.show,
214
214
  showTooltip: e.value.style.chart.tooltip.show
215
- }), R = y({
215
+ }), D = y({
216
216
  height: e.value.style.chart.height,
217
217
  width: e.value.style.chart.width
218
- }), V = w(() => ({
219
- bottom: R.value.height - e.value.style.chart.padding.bottom,
220
- height: R.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
218
+ }), B = C(() => ({
219
+ bottom: D.value.height - e.value.style.chart.padding.bottom,
220
+ height: D.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
221
221
  left: e.value.style.chart.padding.left,
222
- right: R.value.width - e.value.style.chart.padding.right,
222
+ right: D.value.width - e.value.style.chart.padding.right,
223
223
  top: e.value.style.chart.padding.top,
224
- vbHeight: R.value.height,
225
- vbWidth: R.value.width,
226
- width: R.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
224
+ vbHeight: D.value.height,
225
+ vbWidth: D.value.width,
226
+ width: D.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
227
227
  }));
228
- function ce(t) {
228
+ function de(t) {
229
229
  t.forEach((o, l) => {
230
- o.id = _e(), o.color = te(o.color) || Z.value[l] || x[l] || x[l % x.length], o.children && (o.children.forEach((u) => {
230
+ o.id = Oe(), o.color = le(o.color) || J.value[l] || x[l] || x[l % x.length], o.children && (o.children.forEach((u) => {
231
231
  u.parentId = o.id, u.color = o.color;
232
- }), ce(o.children));
232
+ }), de(o.children));
233
233
  });
234
234
  }
235
- const B = y(n.dataset), J = y(null);
236
- He(() => {
237
- if (Ke(n.dataset) && Qe({
235
+ const W = y(n.dataset), K = y(null);
236
+ Ee(() => {
237
+ if (Qe(n.dataset) && et({
238
238
  componentName: "VueUiTreemap",
239
239
  type: "dataset"
240
- }), ce(B.value), e.value.responsive) {
241
- const t = vt(() => {
242
- const { width: o, height: l } = ht({
240
+ }), de(W.value), e.value.responsive) {
241
+ const t = ht(() => {
242
+ const { width: o, height: l } = ft({
243
243
  chart: p.value,
244
244
  title: e.value.style.chart.title.text ? $.value : null,
245
245
  legend: e.value.style.chart.legend.show ? z.value : null
246
246
  });
247
- R.value.width = o, R.value.height = l;
247
+ D.value.width = o, D.value.height = l;
248
248
  });
249
- J.value = new ResizeObserver(t), J.value.observe(p.value.parentNode);
249
+ K.value = new ResizeObserver(t), K.value.observe(p.value.parentNode);
250
250
  }
251
- }), Ee(() => {
252
- J.value && J.value.disconnect();
251
+ }), Ue(() => {
252
+ K.value && K.value.disconnect();
253
253
  });
254
- const oe = y(B.value), j = w(() => oe.value.map((t, o) => ({
254
+ const ae = y(W.value), j = C(() => ae.value.map((t, o) => ({
255
255
  ...t,
256
- color: te(t.color) || Z.value[o] || x[o] || x[o % x.length]
257
- })).filter((t) => !f.value.includes(t.id))), E = w(() => B.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), de = w({
256
+ color: le(t.color) || J.value[o] || x[o] || x[o % x.length]
257
+ })).filter((t) => !f.value.includes(t.id))), E = C(() => W.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), ve = C({
258
258
  get() {
259
259
  let t = [...j.value];
260
260
  return e.value.style.chart.layout.sorted && (t = [...j.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
@@ -265,81 +265,81 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
265
265
  return t;
266
266
  }
267
267
  });
268
- function ve(t, o) {
268
+ function he(t, o) {
269
269
  return t.value / o;
270
270
  }
271
- function Re(t, o, l) {
272
- const u = e.value.style.chart.layout.rects.colorRatio - ve(o, l);
273
- return Oe(t, u < 0 ? 0 : u);
271
+ function De(t, o, l) {
272
+ const u = e.value.style.chart.layout.rects.colorRatio - he(o, l);
273
+ return Se(t, u < 0 ? 0 : u);
274
274
  }
275
- function he(t, o, l, u) {
276
- return t.map((g, H) => {
277
- const Q = Re(te(o) || Z.value[H] || x[H] || x[H % x.length], g, u), We = ve(g, u);
275
+ function fe(t, o, l, u) {
276
+ return t.map((g, A) => {
277
+ const ee = De(le(o) || J.value[A] || x[A] || x[A % x.length], g, u), He = he(g, u);
278
278
  return {
279
279
  ...g,
280
- color: Q,
281
- proportion: We,
280
+ color: ee,
281
+ proportion: He,
282
282
  parentName: l,
283
- children: g.children ? he(g.children, Q, g.name, u) : void 0
283
+ children: g.children ? fe(g.children, ee, g.name, u) : void 0
284
284
  };
285
285
  });
286
286
  }
287
- const Y = w(() => yt(
288
- de.value.map((t, o) => {
287
+ const Y = C(() => mt(
288
+ ve.value.map((t, o) => {
289
289
  const l = t.children ? t.children.reduce((u, g) => u + g.value, 0) : t.value;
290
290
  return {
291
291
  value: t.value,
292
292
  id: t.id,
293
- children: t.children ? he(t.children.sort((u, g) => g.value - u.value), t.color, t.name, l) : void 0,
293
+ children: t.children ? fe(t.children.sort((u, g) => g.value - u.value), t.color, t.name, l) : void 0,
294
294
  color: t.color,
295
295
  name: t.name
296
296
  };
297
297
  }),
298
- { x0: V.value.left * 2, y0: V.value.top, x1: V.value.width, y1: V.value.height }
298
+ { x0: B.value.left * 2, y0: B.value.top, x1: B.value.width, y1: B.value.height }
299
299
  ));
300
- function fe({ y0: t, y1: o }) {
300
+ function pe({ y0: t, y1: o }) {
301
301
  return o - t <= 0 ? 1e-4 : o - t;
302
302
  }
303
- function pe({ x0: t, x1: o }) {
303
+ function ge({ x0: t, x1: o }) {
304
304
  return o - t <= 0 ? 1e-4 : o - t;
305
305
  }
306
- function W(t) {
306
+ function H(t) {
307
307
  const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
308
308
  return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
309
309
  }
310
310
  function Ae(t) {
311
- b.value = t, N.value += 1;
311
+ w.value = t, N.value += 1;
312
312
  }
313
- const U = w(() => ({
313
+ const U = C(() => ({
314
314
  startX: 0,
315
315
  startY: 0,
316
- width: V.value.vbWidth,
317
- height: V.value.vbHeight
318
- })), P = y(!1);
319
- function ge(t, o = B.value) {
316
+ width: B.value.vbWidth,
317
+ height: B.value.vbHeight
318
+ })), I = y(!1);
319
+ function ye(t, o = W.value) {
320
320
  for (const l of o) {
321
321
  if (l.id === t)
322
322
  return l;
323
323
  if (l.children) {
324
- const u = ge(t, l.children);
324
+ const u = ye(t, l.children);
325
325
  if (u)
326
326
  return u;
327
327
  }
328
328
  }
329
329
  return null;
330
330
  }
331
- function De(t) {
332
- P.value ? (s("selectDatapoint", void 0), oe.value = B.value) : (s("selectDatapoint", t), oe.value = [ge(t.parentId)]), P.value = !P.value;
331
+ function Me(t) {
332
+ I.value ? (s("selectDatapoint", void 0), ae.value = W.value) : (s("selectDatapoint", t), ae.value = [ye(t.parentId)]), I.value = !I.value;
333
333
  }
334
- const F = y(null), ye = w(() => B.value.map((t, o) => ({
334
+ const F = y(null), me = C(() => W.value.map((t, o) => ({
335
335
  ...t,
336
- color: te(t.color) || Z.value[o] || x[o] || x[o % x.length],
336
+ color: le(t.color) || J.value[o] || x[o] || x[o % x.length],
337
337
  shape: "square"
338
338
  })).sort((t, o) => o.value - t.value).map((t, o) => ({
339
339
  ...t,
340
- proportion: t.value / B.value.map((l) => l.value).reduce((l, u) => l + u, 0),
340
+ proportion: t.value / W.value.map((l) => l.value).reduce((l, u) => l + u, 0),
341
341
  opacity: f.value.includes(t.id) ? 0.5 : 1
342
- }))), Me = w(() => ({
342
+ }))), Ve = C(() => ({
343
343
  cy: "treemap-div-legend",
344
344
  backgroundColor: e.value.style.chart.legend.backgroundColor,
345
345
  color: e.value.style.chart.legend.color,
@@ -347,14 +347,14 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
347
347
  paddingBottom: 12,
348
348
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
349
349
  }));
350
- function me(t) {
351
- 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", de.value);
350
+ function be(t) {
351
+ I.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", ve.value);
352
352
  }
353
- const ae = y(null);
354
- function Ve({ datapoint: t, seriesIndex: o }) {
355
- F.value = t, ae.value = { datapoint: t, seriesIndex: o, config: e.value, series: j.value };
353
+ const ne = y(null);
354
+ function Be({ datapoint: t, seriesIndex: o }) {
355
+ F.value = t, ne.value = { datapoint: t, seriesIndex: o, config: e.value, series: j.value };
356
356
  const l = e.value.style.chart.tooltip.customFormat;
357
- if (Ne(l) && tt(() => l({
357
+ if (ze(l) && lt(() => l({
358
358
  seriesIndex: o,
359
359
  datapoint: t,
360
360
  series: j.value,
@@ -368,40 +368,63 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
368
368
  });
369
369
  else {
370
370
  let u = "";
371
- 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>${le({ p: e.value.style.chart.layout.labels.prefix, v: t.value, s: e.value.style.chart.layout.labels.suffix, r: e.value.style.chart.tooltip.roundingValue })}</b>`, S.value = `<div>${u}</div>`;
371
+ 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>${oe(
372
+ e.value.style.chart.layout.labels.formatter,
373
+ t.value,
374
+ Z({
375
+ p: e.value.style.chart.layout.labels.prefix,
376
+ v: t.value,
377
+ s: e.value.style.chart.layout.labels.suffix,
378
+ r: e.value.style.chart.tooltip.roundingValue
379
+ }),
380
+ { datapoint: t, seriesIndex: o }
381
+ )}</b>`, S.value = `<div>${u}</div>`;
372
382
  }
373
383
  v.value = !0;
374
384
  }
375
- const A = w(() => {
385
+ const L = C(() => {
376
386
  const t = Y.value.map((l) => ({
377
387
  name: l.name,
378
388
  color: l.color
379
389
  })), o = Y.value.map((l) => l.value);
380
390
  return { head: t, body: o };
381
391
  });
382
- function be() {
383
- Ge(() => {
384
- const t = A.value.head.map((u, g) => [[
392
+ function we() {
393
+ Xe(() => {
394
+ const t = L.value.head.map((u, g) => [[
385
395
  u.name
386
- ], [A.value.body[g]], [isNaN(A.value.body[g] / E.value) ? "-" : A.value.body[g] / E.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = lt(o);
387
- ot({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
396
+ ], [L.value.body[g]], [isNaN(L.value.body[g] / E.value) ? "-" : L.value.body[g] / E.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ot(o);
397
+ at({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
388
398
  });
389
399
  }
390
- const K = w(() => {
400
+ const Q = C(() => {
391
401
  const t = [
392
402
  e.value.table.columnNames.series,
393
403
  e.value.table.columnNames.value,
394
404
  e.value.table.columnNames.percentage
395
- ], o = A.value.head.map((g, H) => {
396
- const Q = le({ p: e.value.style.chart.layout.labels.prefix, v: A.value.body[H], s: e.value.style.chart.layout.labels.suffix, r: e.value.table.td.roundingValue });
405
+ ], o = L.value.head.map((g, A) => {
406
+ const ee = oe(
407
+ e.value.style.chart.layout.labels.formatter,
408
+ L.value.body[A],
409
+ Z({
410
+ p: e.value.style.chart.layout.labels.prefix,
411
+ v: L.value.body[A],
412
+ s: e.value.style.chart.layout.labels.suffix,
413
+ r: e.value.table.td.roundingValue
414
+ })
415
+ );
397
416
  return [
398
417
  {
399
418
  color: g.color,
400
419
  name: g.name,
401
420
  shape: "square"
402
421
  },
403
- Q,
404
- isNaN(A.value.body[H] / E.value) ? "-" : (A.value.body[H] / E.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
422
+ ee,
423
+ isNaN(L.value.body[A] / E.value) ? "-" : Z({
424
+ v: L.value.body[A] / E.value * 100,
425
+ s: "%",
426
+ r: e.value.table.td.roundingPercentage
427
+ })
405
428
  ];
406
429
  }), l = {
407
430
  th: {
@@ -426,36 +449,36 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
426
449
  config: l
427
450
  };
428
451
  });
429
- function Be() {
452
+ function We() {
430
453
  return Y.value;
431
454
  }
432
- function we() {
433
- L.value.showTable = !L.value.showTable;
434
- }
435
455
  function Ce() {
436
- L.value.showTooltip = !L.value.showTooltip;
456
+ R.value.showTable = !R.value.showTable;
457
+ }
458
+ function ke() {
459
+ R.value.showTooltip = !R.value.showTooltip;
437
460
  }
438
461
  return i({
439
- getData: Be,
440
- generateCsv: be,
441
- generateImage: ie,
442
- generatePdf: ue,
443
- toggleTable: we,
444
- toggleTooltip: Ce
445
- }), (t, o) => (m(), C("div", {
462
+ getData: We,
463
+ generateCsv: we,
464
+ generateImage: ce,
465
+ generatePdf: ie,
466
+ toggleTable: Ce,
467
+ toggleTooltip: ke
468
+ }), (t, o) => (m(), k("div", {
446
469
  ref_key: "treemapChart",
447
470
  ref: p,
448
- class: ke(`vue-ui-treemap ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
449
- style: D(`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}`),
471
+ class: xe(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
472
+ style: M(`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}`),
450
473
  id: `treemap_${h.value}`
451
474
  }, [
452
- e.value.style.chart.title.text ? (m(), C("div", {
475
+ e.value.style.chart.title.text ? (m(), k("div", {
453
476
  key: 0,
454
477
  ref_key: "chartTitle",
455
478
  ref: $,
456
- style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
479
+ style: M(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
457
480
  }, [
458
- ne(at, {
481
+ se(nt, {
459
482
  config: {
460
483
  title: {
461
484
  cy: "treemap-div-title",
@@ -467,14 +490,14 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
467
490
  }
468
491
  }
469
492
  }, null, 8, ["config"])
470
- ], 4)) : M("", !0),
471
- e.value.userOptions.show && c.value ? (m(), ee(st, {
493
+ ], 4)) : V("", !0),
494
+ e.value.userOptions.show && c.value ? (m(), te(rt, {
472
495
  ref: "details",
473
496
  key: `user_option_${N.value}`,
474
497
  backgroundColor: e.value.style.chart.backgroundColor,
475
498
  color: e.value.style.chart.color,
476
- isPrinting: k(I),
477
- isImaging: k(re),
499
+ isPrinting: b(P),
500
+ isImaging: b(ue),
478
501
  uid: h.value,
479
502
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
480
503
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -482,17 +505,17 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
482
505
  hasImg: e.value.userOptions.buttons.img,
483
506
  hasTable: e.value.userOptions.buttons.table,
484
507
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
485
- isFullscreen: b.value,
486
- isTooltip: L.value.showTooltip,
508
+ isFullscreen: w.value,
509
+ isTooltip: R.value.showTooltip,
487
510
  titles: { ...e.value.userOptions.buttonTitles },
488
511
  chartElement: p.value,
489
512
  onToggleFullscreen: Ae,
490
- onGeneratePdf: k(ue),
491
- onGenerateCsv: be,
492
- onGenerateImage: k(ie),
493
- onToggleTable: we,
494
- onToggleTooltip: Ce
495
- }, Ue({ _: 2 }, [
513
+ onGeneratePdf: b(ie),
514
+ onGenerateCsv: we,
515
+ onGenerateImage: b(ce),
516
+ onToggleTable: Ce,
517
+ onToggleTooltip: ke
518
+ }, Ge({ _: 2 }, [
496
519
  t.$slots.optionTooltip ? {
497
520
  name: "optionTooltip",
498
521
  fn: T(() => [
@@ -535,16 +558,16 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
535
558
  ]),
536
559
  key: "5"
537
560
  } : void 0
538
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : M("", !0),
539
- c.value ? (m(), C("svg", {
561
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : V("", !0),
562
+ c.value ? (m(), k("svg", {
540
563
  key: 2,
541
- xmlns: k(et),
542
- class: ke({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value, "vue-data-ui-zoom-plus": !P.value, "vue-data-ui-zoom-minus": P.value }),
564
+ xmlns: b(tt),
565
+ class: xe({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !I.value, "vue-data-ui-zoom-minus": I.value }),
543
566
  viewBox: `${U.value.startX} ${U.value.startY} ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
544
- style: D(`max-width:100%; overflow: hidden; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
567
+ style: M(`max-width:100%; overflow: hidden; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
545
568
  }, [
546
- (m(!0), C(xe, null, $e(Y.value, (l, u) => (m(), C("g", null, [
547
- e.value.style.chart.layout.rects.gradient.show ? (m(), C("defs", _t, [
569
+ (m(!0), k($e, null, Te(Y.value, (l, u) => (m(), k("g", null, [
570
+ e.value.style.chart.layout.rects.gradient.show ? (m(), k("defs", Ot, [
548
571
  O("radialGradient", {
549
572
  id: `tgrad_${l.id}`,
550
573
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
@@ -552,77 +575,82 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
552
575
  O("stop", {
553
576
  offset: "18%",
554
577
  "stop-color": l.color
555
- }, null, 8, St),
578
+ }, null, 8, Nt),
556
579
  O("stop", {
557
580
  offset: "100%",
558
- "stop-color": k(Oe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
559
- }, null, 8, Nt)
560
- ], 8, Ot)
561
- ])) : M("", !0)
581
+ "stop-color": b(Se)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
582
+ }, null, 8, zt)
583
+ ], 8, St)
584
+ ])) : V("", !0)
562
585
  ]))), 256)),
563
- (m(!0), C(xe, null, $e(Y.value, (l, u) => (m(), C("g", null, [
586
+ (m(!0), k($e, null, Te(Y.value, (l, u) => (m(), k("g", null, [
564
587
  O("rect", {
565
588
  x: l.x0,
566
589
  y: l.y0,
567
- height: fe(l),
568
- width: pe(l),
590
+ height: pe(l),
591
+ width: ge(l),
569
592
  fill: d.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
570
593
  rx: e.value.style.chart.layout.rects.borderRadius,
571
594
  stroke: F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
572
595
  "stroke-width": F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
573
- onClick: (g) => De(l),
574
- onMouseenter: () => Ve({
596
+ onClick: (g) => Me(l),
597
+ onMouseenter: () => Be({
575
598
  datapoint: l,
576
599
  seriesIndex: u
577
600
  }),
578
601
  onMouseleave: o[0] || (o[0] = (g) => {
579
602
  F.value = null, v.value = !1;
580
603
  }),
581
- style: D(`opacity:${F.value ? F.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
604
+ style: M(`opacity:${F.value ? F.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
582
605
  class: "vue-ui-treemap-rect"
583
- }, null, 44, zt),
584
- (m(), C("foreignObject", {
606
+ }, null, 44, Pt),
607
+ (m(), k("foreignObject", {
585
608
  x: l.x0,
586
609
  y: l.y0,
587
- height: fe(l),
588
- width: pe(l),
610
+ height: pe(l),
611
+ width: ge(l),
589
612
  class: "vue-ui-treemap-cell-foreignObject"
590
613
  }, [
591
- O("div", Pt, [
592
- e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || P.value) ? (m(), C("div", {
614
+ O("div", Ft, [
615
+ e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value) ? (m(), k("div", {
593
616
  key: 0,
594
617
  class: "vue-ui-treemap-cell-default",
595
- style: D(`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:${k(Se)(l.color)}`)
618
+ style: M(`width:calc(100% - ${H(l) / 1.5}px);text-align:left;line-height:${H(l) < 14 ? 14 : H(l)}px;padding:${H(l) / 3}px; color:${b(Ne)(l.color)}`)
596
619
  }, [
597
620
  O("span", {
598
- style: D(`width:100%;font-size:${W(l)}px;`)
621
+ style: M(`width:100%;font-size:${H(l)}px;`)
599
622
  }, q(l.name), 5),
600
- Ft,
623
+ Lt,
601
624
  O("span", {
602
- style: D(`width:100%;font-size:${W(l)}px;`)
603
- }, q(k(le)({
604
- p: e.value.style.chart.layout.labels.prefix,
605
- v: l.value,
606
- s: e.value.style.chart.layout.labels.suffix,
607
- r: e.value.style.chart.layout.labels.rounding
608
- })), 5)
609
- ], 4)) : M("", !0),
625
+ style: M(`width:100%;font-size:${H(l)}px;`)
626
+ }, q(b(oe)(
627
+ e.value.style.chart.layout.labels.formatter,
628
+ l.value,
629
+ b(Z)({
630
+ p: e.value.style.chart.layout.labels.prefix,
631
+ v: l.value,
632
+ s: e.value.style.chart.layout.labels.suffix,
633
+ r: e.value.style.chart.layout.labels.rounding
634
+ }),
635
+ { datapoint: l }
636
+ )), 5)
637
+ ], 4)) : V("", !0),
610
638
  _(t.$slots, "rect", G(X({
611
639
  rect: l,
612
- shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || P.value,
613
- fontSize: W(l),
614
- isZoom: P.value,
615
- textColor: k(Se)(l.color)
640
+ shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value,
641
+ fontSize: H(l),
642
+ isZoom: I.value,
643
+ textColor: b(Ne)(l.color)
616
644
  })), void 0, !0)
617
645
  ])
618
646
  ], 8, It))
619
647
  ]))), 256)),
620
- _(t.$slots, "svg", G(X({ svg: V.value, isZoom: P.value, rect: F.value, config: e.value })), void 0, !0)
621
- ], 14, Tt)) : M("", !0),
622
- t.$slots.watermark ? (m(), C("div", Lt, [
623
- _(t.$slots, "watermark", G(X({ isPrinting: k(I) || k(re) })), void 0, !0)
624
- ])) : M("", !0),
625
- c.value ? M("", !0) : (m(), ee(it, {
648
+ _(t.$slots, "svg", G(X({ svg: B.value, isZoom: I.value, rect: F.value, config: e.value })), void 0, !0)
649
+ ], 14, _t)) : V("", !0),
650
+ t.$slots.watermark ? (m(), k("div", Rt, [
651
+ _(t.$slots, "watermark", G(X({ isPrinting: b(P) || b(ue) })), void 0, !0)
652
+ ])) : V("", !0),
653
+ c.value ? V("", !0) : (m(), te(ct, {
626
654
  key: 4,
627
655
  config: {
628
656
  type: "treemap",
@@ -638,30 +666,40 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
638
666
  ref_key: "chartLegend",
639
667
  ref: z
640
668
  }, [
641
- e.value.style.chart.legend.show ? (m(), ee(ut, {
669
+ e.value.style.chart.legend.show ? (m(), te(it, {
642
670
  key: 0,
643
- legendSet: ye.value,
644
- config: Me.value,
671
+ legendSet: me.value,
672
+ config: Ve.value,
645
673
  id: `treemap_legend_${h.value}`,
646
- onClickMarker: o[1] || (o[1] = ({ legend: l }) => me(l))
674
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => be(l))
647
675
  }, {
648
676
  item: T(({ legend: l, index: u }) => [
649
677
  O("div", {
650
- onClick: (g) => me(l),
651
- style: D(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
678
+ onClick: (g) => be(l),
679
+ style: M(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
652
680
  }, [
653
- Te(q(l.name) + ": " + q(k(le)({ p: e.value.style.chart.layout.labels.prefix, v: l.value, s: e.value.style.chart.layout.labels.suffix, r: e.value.style.chart.legend.roundingValue })) + " ", 1),
654
- f.value.includes(l.id) ? (m(), C("span", Dt, " ( - % ) ")) : (m(), C("span", At, " (" + q(isNaN(l.value / E.value) ? "-" : (l.value / E.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
655
- ], 12, Rt)
681
+ _e(q(l.name) + ": " + q(b(oe)(
682
+ e.value.style.chart.layout.labels.formatter,
683
+ l.value,
684
+ b(Z)({
685
+ p: e.value.style.chart.layout.labels.prefix,
686
+ v: l.value,
687
+ s: e.value.style.chart.layout.labels.suffix,
688
+ r: e.value.style.chart.legend.roundingValue
689
+ }),
690
+ { datapoint: l }
691
+ )) + " ", 1),
692
+ f.value.includes(l.id) ? (m(), k("span", Mt, " ( - % ) ")) : (m(), k("span", At, " (" + q(isNaN(l.value / E.value) ? "-" : (l.value / E.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
693
+ ], 12, Dt)
656
694
  ]),
657
695
  _: 1
658
696
  }, 8, ["legendSet", "config", "id"])) : _(t.$slots, "legend", {
659
697
  key: 1,
660
- legend: ye.value
698
+ legend: me.value
661
699
  }, void 0, !0)
662
700
  ], 512),
663
- ne(rt, {
664
- show: L.value.showTooltip && v.value,
701
+ se(ut, {
702
+ show: R.value.showTooltip && v.value,
665
703
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
666
704
  color: e.value.style.chart.tooltip.color,
667
705
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -673,21 +711,21 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
673
711
  offsetY: e.value.style.chart.tooltip.offsetY,
674
712
  parent: p.value,
675
713
  content: S.value,
676
- isCustom: k(Ne)(e.value.style.chart.tooltip.customFormat)
714
+ isCustom: b(ze)(e.value.style.chart.tooltip.customFormat)
677
715
  }, {
678
716
  "tooltip-before": T(() => [
679
- _(t.$slots, "tooltip-before", G(X({ ...ae.value })), void 0, !0)
717
+ _(t.$slots, "tooltip-before", G(X({ ...ne.value })), void 0, !0)
680
718
  ]),
681
719
  "tooltip-after": T(() => [
682
- _(t.$slots, "tooltip-after", G(X({ ...ae.value })), void 0, !0)
720
+ _(t.$slots, "tooltip-after", G(X({ ...ne.value })), void 0, !0)
683
721
  ]),
684
722
  _: 3
685
723
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
686
- c.value ? (m(), ee(dt, {
724
+ c.value ? (m(), te(vt, {
687
725
  key: 5,
688
726
  hideDetails: "",
689
727
  config: {
690
- open: L.value.showTable,
728
+ open: R.value.showTable,
691
729
  maxHeight: 1e4,
692
730
  body: {
693
731
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -700,31 +738,31 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
700
738
  }
701
739
  }, {
702
740
  content: T(() => [
703
- ne(ct, {
704
- colNames: K.value.colNames,
705
- head: K.value.head,
706
- body: K.value.body,
707
- config: K.value.config,
741
+ se(dt, {
742
+ colNames: Q.value.colNames,
743
+ head: Q.value.head,
744
+ body: Q.value.body,
745
+ config: Q.value.config,
708
746
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
709
- onClose: o[2] || (o[2] = (l) => L.value.showTable = !1)
747
+ onClose: o[2] || (o[2] = (l) => R.value.showTable = !1)
710
748
  }, {
711
749
  th: T(({ th: l }) => [
712
750
  O("div", {
713
751
  innerHTML: l,
714
752
  style: { display: "flex", "align-items": "center" }
715
- }, null, 8, Mt)
753
+ }, null, 8, Vt)
716
754
  ]),
717
755
  td: T(({ td: l }) => [
718
- Te(q(l.name || l), 1)
756
+ _e(q(l.name || l), 1)
719
757
  ]),
720
758
  _: 1
721
759
  }, 8, ["colNames", "head", "body", "config", "title"])
722
760
  ]),
723
761
  _: 1
724
- }, 8, ["config"])) : M("", !0)
725
- ], 14, $t));
762
+ }, 8, ["config"])) : V("", !0)
763
+ ], 14, Tt));
726
764
  }
727
- }, Kt = /* @__PURE__ */ ft(Vt, [["__scopeId", "data-v-1e3a642b"]]);
765
+ }, Qt = /* @__PURE__ */ pt(Bt, [["__scopeId", "data-v-7028d693"]]);
728
766
  export {
729
- Kt as default
767
+ Qt as default
730
768
  };