vue-data-ui 3.23.0 → 3.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,29 +1,29 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-BuMGJ_a0.js";
2
+ import { $ as t, D as n, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-Bttd6u5E.js";
3
3
  import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-BilxnBNr.js";
5
- import { t as le } from "./usePrinter-BFvi4jVy.js";
4
+ import { t as ce } from "./useConfig-DlNpz6P8.js";
5
+ import { t as le } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as pe } from "./useNestedProp--NSEmhOH.js";
9
- import { t as me } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as fe } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as me } from "./useChartExport-DNiwdPmb.js";
10
10
  import { t as he } from "./useTransitions-g_zBREk2.js";
11
- import { t as ge } from "./img-DIQG5q8T.js";
12
- import { n as _e } from "./Title-BODtwViI.js";
11
+ import { t as ge } from "./img-Bnokohej.js";
12
+ import { n as _e } from "./Title-BE3qg9xl.js";
13
13
  import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
14
  import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
15
- import { t as xe } from "./BaseIcon-91MZoczJ.js";
15
+ import { t as xe } from "./BaseIcon-BfndwIWE.js";
16
16
  import { t as Se } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Ce } from "./BaseLegendToggle-CtAPwzr2.js";
17
+ import { t as Ce } from "./BaseLegendToggle-DZVucLnv.js";
18
18
  import { t as we } from "./A11yDataTable-DdRsVULz.js";
19
19
  import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
20
20
  import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as De } from "./Legend-CQTRlzK-.js";
21
+ import { t as De } from "./Legend-CQxUgOd-.js";
22
22
  import { t as Oe } from "./usePanZoom-CYU3B4T3.js";
23
23
  import { t as ke } from "./vue_ui_treemap-DoEtkRN6.js";
24
- import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Pe, nextTick as Fe, normalizeClass as Ie, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Le, onMounted as Re, openBlock as C, ref as w, renderList as ze, renderSlot as T, resolveDynamicComponent as Be, shallowRef as E, toDisplayString as Ve, toRefs as He, unref as D, useCssVars as Ue, useSlots as We, watch as O, withCtx as k, withKeys as Ge, withModifiers as Ke } from "vue";
24
+ import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as Pe, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as Le, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Re, onMounted as ze, openBlock as S, ref as C, renderList as Be, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as T, toDisplayString as He, toRefs as Ue, unref as E, useCssVars as We, useSlots as Ge, watch as D, withCtx as O, withKeys as Ke, withModifiers as qe } from "vue";
25
25
  //#region src/treemap.js
26
- function qe(e, t) {
26
+ function Je(e, t) {
27
27
  let n = e.length;
28
28
  if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
29
29
  {
@@ -35,7 +35,7 @@ function qe(e, t) {
35
35
  return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
36
36
  }
37
37
  }
38
- function Je(e) {
38
+ function Ye(e) {
39
39
  let { xOffset: t, yOffset: n, width: r, height: i } = e;
40
40
  return {
41
41
  x0: t,
@@ -44,14 +44,14 @@ function Je(e) {
44
44
  y1: n + i
45
45
  };
46
46
  }
47
- function Ye(e, t, n) {
47
+ function Xe(e, t, n) {
48
48
  if (e.length === 0) return !0;
49
49
  {
50
50
  let r = e.concat(t);
51
- return qe(e, n) >= qe(r, n);
51
+ return Je(e, n) >= Je(r, n);
52
52
  }
53
53
  }
54
- function Xe(e) {
54
+ function Ze(e) {
55
55
  let t = [], n = e.length;
56
56
  for (let r = 0; r < n; r += 1) {
57
57
  let n = e[r], i = n.length;
@@ -59,17 +59,17 @@ function Xe(e) {
59
59
  }
60
60
  return t;
61
61
  }
62
- function Ze(e, t) {
63
- return it({
62
+ function Qe(e, t) {
63
+ return at({
64
64
  ...t,
65
65
  children: e
66
66
  });
67
67
  }
68
- function Qe(e) {
68
+ function $e(e) {
69
69
  return (e.x1 - e.x0) * (e.y1 - e.y0);
70
70
  }
71
- function $e(e, t) {
72
- let { width: n, height: r, xOffset: i, yOffset: a } = nt(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
71
+ function et(e, t) {
72
+ let { width: n, height: r, xOffset: i, yOffset: a } = rt(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
73
73
  if (n >= r) {
74
74
  for (let t = 0; t < o; t += 1) {
75
75
  let n = e[t], r = d + n.normalizedValue / c, i = {
@@ -81,29 +81,28 @@ function $e(e, t) {
81
81
  d = r, f.push(a);
82
82
  }
83
83
  return f;
84
- } else {
85
- for (let t = 0; t < o; t += 1) {
86
- let n = e[t], r = u + n.normalizedValue / l, i = {
87
- x0: u,
88
- y0: d,
89
- x1: r,
90
- y1: d + l
91
- }, a = Object.assign({}, n, i);
92
- u = r, f.push(a);
93
- }
94
- return f;
95
84
  }
85
+ for (let t = 0; t < o; t += 1) {
86
+ let n = e[t], r = u + n.normalizedValue / l, i = {
87
+ x0: u,
88
+ y0: d,
89
+ x1: r,
90
+ y1: d + l
91
+ }, a = Object.assign({}, n, i);
92
+ u = r, f.push(a);
93
+ }
94
+ return f;
96
95
  }
97
- function et(e) {
98
- let t = nt(e), n = t.width, r = t.height;
96
+ function tt(e) {
97
+ let t = rt(e), n = t.width, r = t.height;
99
98
  return Math.min(n, r);
100
99
  }
101
- function tt(e, t) {
100
+ function nt(e, t) {
102
101
  let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
103
102
  for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
104
103
  return i;
105
104
  }
106
- function nt(e) {
105
+ function rt(e) {
107
106
  let { x0: t, y0: n, x1: r, y1: i } = e;
108
107
  return {
109
108
  xOffset: t,
@@ -112,47 +111,48 @@ function nt(e) {
112
111
  height: i - n
113
112
  };
114
113
  }
115
- function rt(e, t, n, r) {
114
+ function it(e, t, n, r) {
116
115
  let i = e, a = t, o = n, s = r;
117
116
  for (;;) {
118
117
  let e = i.length;
119
118
  if (e === 0) {
120
- let e = $e(a, o);
119
+ let e = et(a, o);
121
120
  return s.concat(e);
122
121
  }
123
- let t = et(o), n = i[0], r = i.slice(1, e);
124
- if (Ye(a, n, t)) {
122
+ let t = tt(o), n = i[0], r = i.slice(1, e);
123
+ if (Xe(a, n, t)) {
125
124
  let e = a.concat(n);
126
125
  i = r, a = e, o = o, s = s;
127
126
  } else {
128
127
  let e = a.length, t = 0;
129
128
  for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
130
- let n = A(o, t), r = $e(a, o), c = s.concat(r);
129
+ let n = k(o, t), r = et(a, o), c = s.concat(r);
131
130
  i = i, a = [], o = n, s = c;
132
131
  }
133
132
  }
134
133
  }
135
- function it(e) {
134
+ function at(e) {
136
135
  if (e.children === void 0 || !e.children.length) return [e];
137
136
  {
138
- let t = rt(tt(e.children, Qe(e)), [], e, []), n = t.length, r = [];
139
- for (let e = 0; e < n; e += 1) r.push(it(t[e]));
140
- return Xe(r);
137
+ let t = it(nt(e.children, $e(e)), [], e, []), n = t.length, r = [];
138
+ for (let e = 0; e < n; e += 1) r.push(at(t[e]));
139
+ return Ze(r);
141
140
  }
142
141
  }
143
- function A(e, t) {
144
- let { width: n, height: r, xOffset: i, yOffset: a } = nt(e);
142
+ function k(e, t) {
143
+ let { width: n, height: r, xOffset: i, yOffset: a } = rt(e);
145
144
  if (n >= r) {
146
145
  let e = t / r, o = n - e;
147
- return Je({
146
+ return Ye({
148
147
  xOffset: i + e,
149
148
  yOffset: a,
150
149
  width: o,
151
150
  height: r
152
151
  });
153
- } else {
152
+ }
153
+ {
154
154
  let e = t / n, o = r - e;
155
- return Je({
155
+ return Ye({
156
156
  xOffset: i,
157
157
  yOffset: a + e,
158
158
  width: n,
@@ -162,28 +162,28 @@ function A(e, t) {
162
162
  }
163
163
  //#endregion
164
164
  //#region src/components/vue-ui-treemap.vue
165
- var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct = ["id"], lt = [
165
+ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt = ["id"], ut = [
166
166
  "tabindex",
167
167
  "onClick",
168
168
  "onKeydown",
169
169
  "data-last-crumb",
170
170
  "onMouseenter",
171
171
  "onFocus"
172
- ], ut = { class: "vue-ui-treemap-crumb-unit" }, dt = { class: "vue-ui-treemap-crumb-unit-label" }, ft = {
172
+ ], dt = { class: "vue-ui-treemap-crumb-unit" }, ft = { class: "vue-ui-treemap-crumb-unit-label" }, pt = {
173
173
  key: 0,
174
174
  style: {
175
175
  width: "24px",
176
176
  display: "flex",
177
177
  "align-items": "center"
178
178
  }
179
- }, pt = {
179
+ }, mt = {
180
180
  key: 0,
181
181
  class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, mt = { style: { position: "relative" } }, ht = [
182
+ }, ht = { style: { position: "relative" } }, gt = [
183
183
  "xmlns",
184
184
  "aria-describedby",
185
185
  "viewBox"
186
- ], gt = { key: 0 }, _t = [
186
+ ], _t = { key: 0 }, vt = [
187
187
  "x",
188
188
  "y",
189
189
  "height",
@@ -195,35 +195,35 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
195
195
  "onClick",
196
196
  "onMouseenter",
197
197
  "onMouseleave"
198
- ], vt = ["id"], yt = [
198
+ ], yt = ["id"], bt = [
199
199
  "x",
200
200
  "y",
201
201
  "width",
202
202
  "height"
203
- ], bt = ["clip-path"], xt = ["transform"], St = ["transform"], Ct = [
203
+ ], xt = ["clip-path"], St = ["transform"], Ct = ["transform"], wt = [
204
204
  "x",
205
205
  "y",
206
206
  "fill",
207
207
  "font-size",
208
208
  "font-family",
209
209
  "font-weight"
210
- ], wt = { key: 0 }, Tt = [
210
+ ], Tt = { key: 0 }, Et = [
211
211
  "x",
212
212
  "y",
213
213
  "height",
214
214
  "width"
215
- ], Et = {
215
+ ], Dt = {
216
216
  style: {
217
217
  width: "100%",
218
218
  height: "100%",
219
219
  overflow: "hidden"
220
220
  },
221
221
  class: "vue-ui-treemap-cell"
222
- }, Dt = {
222
+ }, Ot = {
223
223
  key: 0,
224
224
  "data-dom-to-png-ignore": "",
225
225
  class: "reset-wrapper"
226
- }, Ot = {
226
+ }, kt = {
227
227
  key: 1,
228
228
  style: {
229
229
  position: "absolute",
@@ -233,10 +233,10 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
233
233
  },
234
234
  "data-dom-to-png-ignore": "",
235
235
  "aria-hidden": "true"
236
- }, kt = {
236
+ }, At = {
237
237
  key: 6,
238
238
  class: "vue-data-ui-watermark"
239
- }, At = ["id"], jt = ["onClick"], Mt = ["innerHTML"], Nt = 4, Pt = /*#__PURE__*/ ve({
239
+ }, jt = ["id"], Mt = ["onClick"], Nt = ["innerHTML"], Pt = 4, Ft = /*#__PURE__*/ ve({
240
240
  __name: "vue-ui-treemap",
241
241
  props: {
242
242
  config: {
@@ -257,19 +257,15 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
257
257
  "selectDatapoint",
258
258
  "copyAlt"
259
259
  ],
260
- setup(e, { expose: ve, emit: qe }) {
261
- Ue((e) => ({ d2c2c446: yi.value }));
262
- let Je = y(() => import("./DataTable-D4tM9s5Y.js")), Ye = y(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Xe = y(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Qe = y(() => import("./Tooltip-CMTGxeYO.js")), $e = y(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), et = y(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), tt = y(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_treemap: nt } = ce(), { isThemeValid: rt, warnInvalidTheme: it } = me(), A = e, at = qe, Pt = We();
263
- Re(() => {
264
- Pt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
265
- });
266
- let Ft = m(() => !!A.dataset && A.dataset.length), It = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), j = w(ee()), Lt = w(!1), Rt = w(""), zt = w(!1), Bt = w(0), M = w([]), N = E(null), Vt = E(null), Ht = E(null), Ut = E(null), Wt = E(null), Gt = w(0), Kt = w(0), qt = w(0), P = w([]), Jt = w(null), Yt = w(!1), Xt = w(null), Zt = w(null), Qt = w(null), $t = w(/* @__PURE__ */ new Map()), en = w(!1), tn = w(!1), F = w(null), nn = w({
260
+ setup(e, { expose: ve, emit: Je }) {
261
+ We((e) => ({ v5ebbeef2: vi.value }));
262
+ let Ye = Pe(() => import("./DataTable-BbKgJ5UI.js")), Xe = Pe(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ze = Pe(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), $e = Pe(() => import("./Tooltip-DhjyfHwz.js")), et = Pe(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), tt = Pe(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), nt = Pe(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_treemap: rt } = ce(), { isThemeValid: it, warnInvalidTheme: at } = pe(), k = e, ot = Je, Ft = Ge(), It = m(() => !!k.dataset && k.dataset.length), Lt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = C(ee()), Rt = C(!1), zt = C(""), j = C(!1), Bt = C(0), M = C([]), N = T(null), Vt = T(null), Ht = T(null), Ut = T(null), Wt = T(null), Gt = C(0), Kt = C(0), qt = C(0), P = C([]), Jt = C(null), Yt = C(!1), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(/* @__PURE__ */ new Map()), F = C(null), en = C({
267
263
  x: 0,
268
264
  y: 0
269
- }), rn = w("pointer"), an = w(!1), I = w(pn());
265
+ }), tn = C("pointer"), nn = C(!1), I = C(dn());
270
266
  oe({
271
267
  config: () => I.value,
272
- dataset: () => A.dataset,
268
+ dataset: () => k.dataset,
273
269
  component: "VueUiTreemap",
274
270
  rules: [
275
271
  se.emptyArray,
@@ -291,10 +287,10 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
291
287
  }
292
288
  ]
293
289
  });
294
- let { transitionEnabled: on } = he({
290
+ let { transitionEnabled: rn } = he({
295
291
  config: () => I.value.transitions,
296
- dataset: () => A.dataset
297
- }), L = m(() => I.value.userOptions.useCursorPointer), sn = m(() => r({
292
+ dataset: () => k.dataset
293
+ }), L = m(() => I.value.userOptions.useCursorPointer), an = m(() => r({
298
294
  defaultConfig: {
299
295
  userOptions: { show: !1 },
300
296
  style: { chart: {
@@ -307,11 +303,11 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
307
303
  } }
308
304
  },
309
305
  userConfig: I.value.skeletonConfig ?? {}
310
- })), { loading: R, FINAL_DATASET: cn, manualLoading: ln } = ue({
311
- ...He(A),
306
+ })), { loading: R, FINAL_DATASET: on, manualLoading: sn } = ue({
307
+ ...Ue(k),
312
308
  FINAL_CONFIG: I,
313
- prepareConfig: pn,
314
- skeletonDataset: A.config?.skeletonDataset ?? [{
309
+ prepareConfig: dn,
310
+ skeletonDataset: k.config?.skeletonDataset ?? [{
315
311
  name: "_",
316
312
  value: 53,
317
313
  color: "#CACACA90",
@@ -348,21 +344,21 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
348
344
  }],
349
345
  skeletonConfig: r({
350
346
  defaultConfig: I.value,
351
- userConfig: sn.value
347
+ userConfig: an.value
352
348
  })
353
- }), { userOptionsVisible: un, setUserOptionsVisibility: dn, keepUserOptionState: fn } = Te({ config: I.value }), { svgRef: z } = Ee({ config: I.value.style.chart.title });
354
- function pn() {
355
- let e = pe({
356
- userConfig: A.config,
357
- defaultConfig: nt
349
+ }), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = Te({ config: I.value }), { svgRef: z } = Ee({ config: I.value.style.chart.title });
350
+ function dn() {
351
+ let e = fe({
352
+ userConfig: k.config,
353
+ defaultConfig: rt
358
354
  }), t = e.theme;
359
355
  if (!t) return e;
360
- if (!rt.value(e)) return it(e), e;
361
- let n = pe({
362
- userConfig: ke[t] || A.config,
356
+ if (!it.value(e)) return at(e), e;
357
+ let n = fe({
358
+ userConfig: ke[t] || k.config,
363
359
  defaultConfig: e
364
- }), r = pe({
365
- userConfig: A.config,
360
+ }), r = fe({
361
+ userConfig: k.config,
366
362
  defaultConfig: n
367
363
  });
368
364
  return {
@@ -370,40 +366,40 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
370
366
  customPalette: r.customPalette.length ? r.customPalette : i[t] || o
371
367
  };
372
368
  }
373
- O(() => A.config, (e) => {
374
- R.value || (I.value = pn()), un.value = !I.value.userOptions.showOnChartHover, Gt.value += 1, Kt.value += 1, qt.value += 1, B.value.showTable = I.value.table.show, B.value.showTooltip = I.value.style.chart.tooltip.show, B.value.showZoom = I.value.style.chart.zoom?.show ?? !1;
369
+ D(() => k.config, (e) => {
370
+ R.value || (I.value = dn()), cn.value = !I.value.userOptions.showOnChartHover, Gt.value += 1, Kt.value += 1, qt.value += 1, B.value.showTable = I.value.table.show, B.value.showTooltip = I.value.style.chart.tooltip.show, B.value.showZoom = I.value.style.chart.zoom?.show ?? !1;
375
371
  }, { deep: !0 });
376
- let { isPrinting: mn, isImaging: hn, generatePdf: gn, generateImage: _n } = le({
377
- elementId: `treemap_${j.value}`,
372
+ let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = le({
373
+ elementId: `treemap_${A.value}`,
378
374
  fileName: I.value.style.chart.title.text || "vue-ui-treemap",
379
375
  options: I.value.userOptions.print
380
- }), vn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), yn = m(() => ie(I.value.customPalette)), B = w({
376
+ }), gn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), _n = m(() => ie(I.value.customPalette)), B = C({
381
377
  showTable: I.value.table.show,
382
378
  showTooltip: I.value.style.chart.tooltip.show,
383
379
  showZoom: I.value.style.chart.zoom?.show ?? !1
384
380
  });
385
- O(I, () => {
381
+ D(I, () => {
386
382
  B.value = {
387
383
  showTable: I.value.table.show,
388
384
  showTooltip: I.value.style.chart.tooltip.show,
389
385
  showZoom: I.value.style.chart.zoom?.show ?? !1
390
386
  };
391
387
  }, { immediate: !0 });
392
- let bn = w({
388
+ let vn = C({
393
389
  height: I.value.style.chart.height,
394
390
  width: I.value.style.chart.width
395
391
  });
396
- function xn(e) {
397
- let t = N.value, n = bn.value.height;
392
+ function yn(e) {
393
+ let t = N.value, n = vn.value.height;
398
394
  return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
399
395
  }
400
- function Sn() {
396
+ function bn() {
401
397
  if (!Jt.value || X.value.length <= 1) return 0;
402
398
  let e = Jt.value, t = getComputedStyle(e);
403
- return xn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
399
+ return yn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
404
400
  }
405
401
  let V = m(() => {
406
- let e = I.value.style.chart.padding, t = bn.value.width, n = bn.value.height, r = Sn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
402
+ let e = I.value.style.chart.padding, t = vn.value.width, n = vn.value.height, r = bn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
407
403
  return {
408
404
  left: i,
409
405
  top: o,
@@ -415,34 +411,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
415
411
  vbHeight: n - r,
416
412
  offsetY: r
417
413
  };
418
- }), H = w(l(cn.value)), U = w(H.value), Cn = E(/* @__PURE__ */ new Map());
419
- O([H, () => I.value], () => {
414
+ }), H = C(l(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
415
+ D([H, () => I.value], () => {
420
416
  Qt.value = null, $t.value = /* @__PURE__ */ new Map();
421
- }, { deep: !0 }), O(() => M.value, () => {
422
- Qt.value = null, $t.value = /* @__PURE__ */ new Map(), Dn(), qt.value += 1, Kt.value += 1;
423
- }, { deep: !0 }), O([() => bn.value.width, () => bn.value.height], () => {
417
+ }, { deep: !0 }), D(() => M.value, () => {
418
+ Qt.value = null, $t.value = /* @__PURE__ */ new Map(), Tn(), qt.value += 1, Kt.value += 1;
419
+ }, { deep: !0 }), D([() => vn.value.width, () => vn.value.height], () => {
424
420
  $t.value = /* @__PURE__ */ new Map();
425
421
  });
426
- function wn(e) {
422
+ function Sn(e) {
427
423
  Array.isArray(e) && e.forEach((e, t) => {
428
424
  e.id ||= ee(), e.sourceColor === void 0 && (e.sourceColor = s(e.color) || null);
429
- let n = e.sourceColor || Cn.value.get(e.id) || yn.value[t] || o[t] || o[t % o.length];
430
- n = s(n), Cn.value.set(e.id, n), e.color = n, Tn(e, n);
425
+ let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || o[t] || o[t % o.length];
426
+ n = s(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
431
427
  });
432
428
  }
433
- function Tn(e, t) {
429
+ function Cn(e, t) {
434
430
  Array.isArray(e.children) && e.children.forEach((n) => {
435
431
  n.id ||= ee(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = s(n.color) || null);
436
432
  let r = n.sourceColor || t;
437
- n.color = r, Tn(n, r);
433
+ n.color = r, Cn(n, r);
438
434
  });
439
435
  }
440
- function En(e) {
436
+ function wn(e) {
441
437
  let t = Y(e);
442
438
  for (; t?.parentId;) t = Y(t.parentId);
443
439
  return t?.id ?? null;
444
440
  }
445
- function Dn() {
441
+ function Tn() {
446
442
  let e = H.value.filter((e) => !M.value.includes(e.id));
447
443
  if (!P.value.length) {
448
444
  U.value = e;
@@ -453,31 +449,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
453
449
  P.value = [], U.value = e;
454
450
  return;
455
451
  }
456
- let r = En(n.id);
452
+ let r = wn(n.id);
457
453
  if (r && M.value.includes(r)) {
458
454
  P.value = [], U.value = e;
459
455
  return;
460
456
  }
461
457
  U.value = [n];
462
458
  }
463
- O(() => cn.value, () => {
464
- H.value = l(cn.value), wn(H.value), Dn(), qt.value += 1, Kt.value += 1;
459
+ D(() => on.value, () => {
460
+ H.value = l(on.value), Sn(H.value), Tn(), qt.value += 1, Kt.value += 1;
465
461
  }, {
466
462
  deep: !0,
467
463
  immediate: !0,
468
464
  flush: "post"
469
465
  });
470
- let W = E(null), On = E(null);
471
- Re(() => {
472
- Yt.value = !0, An();
466
+ let W = T(null), En = T(null);
467
+ ze(() => {
468
+ Yt.value = !0, On();
469
+ });
470
+ let Dn = m(() => I.value.debug);
471
+ ze(() => {
472
+ Ft["chart-background"] && Dn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
473
473
  });
474
- let kn = m(() => I.value.debug);
475
- function An() {
476
- if (f(A.dataset) && re({
474
+ function On() {
475
+ if (f(k.dataset) && re({
477
476
  componentName: "VueUiTreemap",
478
477
  type: "dataset",
479
- debug: kn.value
480
- }), wn(H.value), f(A.dataset) || (ln.value = I.value.loading), I.value.responsive) {
478
+ debug: Dn.value
479
+ }), Sn(H.value), f(k.dataset) || (sn.value = I.value.loading), I.value.responsive) {
481
480
  let e = ye(() => {
482
481
  let { width: e, height: t } = be({
483
482
  chart: N.value,
@@ -487,60 +486,60 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
487
486
  noTitle: Wt.value
488
487
  });
489
488
  requestAnimationFrame(() => {
490
- bn.value.width = e, bn.value.height = t - 12;
489
+ vn.value.width = e, vn.value.height = t - 12;
491
490
  });
492
491
  });
493
- W.value && (On.value && W.value.unobserve(On.value), W.value.disconnect()), W.value = new ResizeObserver(e), On.value = N.value.parentNode, W.value.observe(On.value);
492
+ W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value = N.value.parentNode, W.value.observe(En.value);
494
493
  }
495
494
  }
496
- Le(() => {
497
- W.value && (On.value && W.value.unobserve(On.value), W.value.disconnect());
495
+ Re(() => {
496
+ W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect());
498
497
  });
499
- let jn = m(() => U.value.map((e, t) => ({
498
+ let kn = m(() => U.value.map((e, t) => ({
500
499
  ...e,
501
- color: s(e.color) || yn.value[t] || o[t] || o[t % o.length]
502
- })).filter((e) => !M.value.includes(e.id))), Mn = m(() => H.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), Nn = m({
500
+ color: s(e.color) || _n.value[t] || o[t] || o[t % o.length]
501
+ })).filter((e) => !M.value.includes(e.id))), An = m(() => H.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = m({
503
502
  get() {
504
- let e = [...jn.value];
505
- return I.value.style.chart.layout.sorted && (e = [...jn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
503
+ let e = [...kn.value];
504
+ return I.value.style.chart.layout.sorted && (e = [...kn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
506
505
  },
507
506
  set(e) {
508
507
  return e;
509
508
  }
510
509
  });
511
- function Pn(e, t) {
510
+ function Mn(e, t) {
512
511
  return e.value / t;
513
512
  }
514
- function Fn(e, t, n) {
515
- let r = I.value.style.chart.layout.rects.colorRatio - Pn(t, n);
513
+ function Nn(e, t, n) {
514
+ let r = I.value.style.chart.layout.rects.colorRatio - Mn(t, n);
516
515
  return a(e, r < 0 ? 0 : r);
517
516
  }
518
- function In(e) {
517
+ function Pn(e) {
519
518
  return Array.isArray(e.children) && e.children.length > 0;
520
519
  }
521
- function Ln(e) {
520
+ function Fn(e) {
522
521
  return [...e].sort((e, t) => {
523
- let n = In(e), r = In(t);
522
+ let n = Pn(e), r = Pn(t);
524
523
  if (n !== r) return n - r;
525
524
  let i = Number(e.value) || 0;
526
525
  return (Number(t.value) || 0) - i;
527
526
  });
528
527
  }
529
- function Rn(e, t, n, r, i) {
530
- return Ln(e).map((e, a) => {
531
- let c = e.sourceColor || s(e.color) || s(t) || yn.value[a] || o[a] || o[a % o.length], l = e.sourceColor ? e.sourceColor : Fn(c, e, r), u = Pn(e, r), d = i ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
528
+ function In(e, t, n, r, i) {
529
+ return Fn(e).map((e, a) => {
530
+ let c = e.sourceColor || s(e.color) || s(t) || _n.value[a] || o[a] || o[a % o.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, r), u = Mn(e, r), d = i ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
532
531
  return {
533
532
  ...e,
534
533
  color: l,
535
534
  proportion: u,
536
535
  parentName: n,
537
536
  rootId: d,
538
- children: Array.isArray(e.children) && e.children.length ? Rn(e.children, c, e.name, f, d) : void 0
537
+ children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, f, d) : void 0
539
538
  };
540
539
  });
541
540
  }
542
- function zn(e) {
543
- let t = Qn(e), n = Bn(e), r = t * .55, i = t * .55, a = t * 1.05, o = t * 1.05, s = t * .35, c = n ? a + o + s : t * .45, l = e.x0 + r, u = e.x1 - r, d = e.y0 + c, f = e.y1 - i;
541
+ function Ln(e) {
542
+ let t = Xn(e), n = Rn(e), r = t * .55, i = t * .55, a = t * 1.05, o = t * 1.05, s = t * .35, c = n ? a + o + s : t * .45, l = e.x0 + r, u = e.x1 - r, d = e.y0 + c, f = e.y1 - i;
544
543
  return u <= l || f <= d ? null : {
545
544
  x0: l,
546
545
  y0: d,
@@ -548,19 +547,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
548
547
  y1: f
549
548
  };
550
549
  }
551
- function Bn(e) {
552
- return I.value.style.chart.layout.labels.hideUnderProportion === 0 || Vn(e);
550
+ function Rn(e) {
551
+ return I.value.style.chart.layout.labels.hideUnderProportion === 0 || zn(e);
553
552
  }
554
- function Vn(e) {
553
+ function zn(e) {
555
554
  let t = Number(I.value.style.chart.layout.labels.hideUnderProportion);
556
555
  return !Number.isFinite(t) || t <= 0 || e.proportion > t;
557
556
  }
558
- function Hn(e, t, n = 0, r = null) {
557
+ function Bn(e, t, n = 0, r = null) {
559
558
  if (!Array.isArray(e) || !e.length) return [];
560
559
  let i = e.map((e) => {
561
560
  let { children: t, ...n } = e;
562
561
  return { ...n };
563
- }), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Ze(i, t), c = [];
562
+ }), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Qe(i, t), c = [];
564
563
  for (let e of s) {
565
564
  let t = a.get(e.id) || [], i = o.get(e.id), s = {
566
565
  ...e,
@@ -569,19 +568,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
569
568
  color: i?.color ?? e.color ?? null,
570
569
  children: t,
571
570
  isVisibleNode: !0,
572
- showLabel: Bn(e)
571
+ showLabel: Rn(e)
573
572
  };
574
573
  if (c.push(s), t.length) {
575
- let r = zn(s);
576
- r && c.push(...Hn(t, r, n + 1, e.id));
574
+ let r = Ln(s);
575
+ r && c.push(...Bn(t, r, n + 1, e.id));
577
576
  }
578
577
  }
579
578
  return c;
580
579
  }
581
- let Un = m(() => {
582
- let e = U.value.length ? U.value : Nn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
583
- return Hn(e.map((e, n) => {
584
- let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || s(e.color) || Cn.value.get(e.id) || yn.value[n] || o[n] || o[n % o.length], l = e.sourceColor ? e.sourceColor : Fn(c, e, t);
580
+ let Vn = m(() => {
581
+ let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
582
+ return Bn(e.map((e, n) => {
583
+ let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || s(e.color) || xn.value.get(e.id) || _n.value[n] || o[n] || o[n % o.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
585
584
  return {
586
585
  ...a,
587
586
  id: e.id || ee(),
@@ -590,7 +589,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
590
589
  value: e.value,
591
590
  color: l,
592
591
  proportion: (Number(e.value) || 0) / t,
593
- children: Array.isArray(e.children) && e.children.length ? Rn(e.children, c, e.name, r || 1) : void 0
592
+ children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, r || 1) : void 0
594
593
  };
595
594
  }), {
596
595
  x0: V.value.left,
@@ -598,9 +597,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
598
597
  x1: V.value.left + V.value.width,
599
598
  y1: V.value.top + V.value.height
600
599
  });
601
- }), G = m(() => Un.value);
602
- function Wn(e) {
603
- return (Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth) * Pr.value;
600
+ }), G = m(() => Vn.value);
601
+ function Hn(e) {
602
+ return (Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.strokeWidth : I.value.style.chart.layout.rects.strokeWidth) * Mr.value;
604
603
  }
605
604
  function K({ y0: e, y1: t }) {
606
605
  return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
@@ -608,22 +607,22 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
608
607
  function q({ x0: e, x1: t }) {
609
608
  return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
610
609
  }
611
- function Gn() {
610
+ function Un() {
612
611
  let e = I.value.style.chart.layout.labels, t = Number(e.minFontSize), n = Number(e.fontSize), r = Math.max(0, Math.min(Number.isFinite(t) ? t : 0, Number.isFinite(n) ? n : 0));
613
612
  return {
614
613
  lowerBound: r,
615
614
  upperBound: Math.max(r, Number.isFinite(n) ? n : r)
616
615
  };
617
616
  }
618
- function Kn(e) {
617
+ function Wn(e) {
619
618
  let t = Math.min(4, Math.max(e * .25, .5));
620
619
  return {
621
620
  paddingX: t,
622
621
  paddingTop: t
623
622
  };
624
623
  }
625
- function qn(e, t) {
626
- let { paddingX: n, paddingTop: r } = Kn(t), i = t * 1.1;
624
+ function Gn(e, t) {
625
+ let { paddingX: n, paddingTop: r } = Wn(t), i = t * 1.1;
627
626
  return {
628
627
  x: e.x0 + n,
629
628
  y: e.y0 + r,
@@ -632,7 +631,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
632
631
  lineHeight: i
633
632
  };
634
633
  }
635
- function Jn(e, t) {
634
+ function Kn(e, t) {
636
635
  return d(I.value.style.chart.layout.labels.formatter, e.value, c({
637
636
  p: I.value.style.chart.layout.labels.prefix,
638
637
  v: e.value,
@@ -643,31 +642,31 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
643
642
  seriesIndex: t
644
643
  });
645
644
  }
646
- function Yn(e, t) {
647
- let n = Jn(e, t);
645
+ function qn(e, t) {
646
+ let n = Kn(e, t);
648
647
  return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
649
648
  }
650
- function Xn(e, t, n) {
651
- let r = Yn(e, n), i = qn(e, t);
652
- return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => di(e, t, n === 0 ? 500 : 400) <= i.width);
649
+ function Jn(e, t, n) {
650
+ let r = qn(e, n), i = Gn(e, t);
651
+ return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => ui(e, t, n === 0 ? 500 : 400) <= i.width);
653
652
  }
654
- function Zn(e, t, n, r) {
655
- let i = Yn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
653
+ function Yn(e, t, n, r) {
654
+ let i = qn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
656
655
  return Math.max(n, Math.min(r, u, d));
657
656
  }
658
- function Qn(e, t) {
659
- let { lowerBound: n, upperBound: r } = Gn(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Zn(e, t, n, r));
660
- if (Xn(e, o, t) || !Xn(e, n, t)) return o;
657
+ function Xn(e, t) {
658
+ let { lowerBound: n, upperBound: r } = Un(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Yn(e, t, n, r));
659
+ if (Jn(e, o, t) || !Jn(e, n, t)) return o;
661
660
  let s = n, c = o, l = n;
662
661
  for (let n = 0; n < 8; n += 1) {
663
662
  let n = (s + c) / 2;
664
- Xn(e, n, t) ? (l = n, s = n) : c = n;
663
+ Jn(e, n, t) ? (l = n, s = n) : c = n;
665
664
  }
666
665
  let u = Math.max(n, o * .7);
667
666
  return l >= u ? l : o;
668
667
  }
669
- function $n(e) {
670
- zt.value = e, Bt.value += 1;
668
+ function Zn(e) {
669
+ j.value = e, Bt.value += 1;
671
670
  }
672
671
  let J = m(() => ({
673
672
  x: 0,
@@ -685,7 +684,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
685
684
  }
686
685
  return null;
687
686
  }
688
- function er(e) {
687
+ function Qn(e) {
689
688
  let t = [], n = Y(e);
690
689
  for (; n && n.parentId;) {
691
690
  let e = Y(n.parentId);
@@ -694,23 +693,23 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
694
693
  }
695
694
  return t;
696
695
  }
697
- let tr = m(() => P.value.length > 0);
698
- function nr() {
699
- U.value = H.value.slice(), P.value = [], at("selectDatapoint", void 0);
696
+ let $n = m(() => P.value.length > 0);
697
+ function er() {
698
+ U.value = H.value.slice(), P.value = [], ot("selectDatapoint", void 0);
700
699
  }
701
- function rr() {
700
+ function tr() {
702
701
  return P.value[P.value.length - 1] ?? null;
703
702
  }
704
- function ir(e, t, n) {
705
- P.value = [...er(e.id), e.id], U.value = [e], I.value.events.datapointClick && I.value.events.datapointClick({
703
+ function nr(e, t, n) {
704
+ P.value = [...Qn(e.id), e.id], U.value = [e], I.value.events.datapointClick && I.value.events.datapointClick({
706
705
  datapoint: t ?? e,
707
706
  seriesIndex: n
708
- }), at("selectDatapoint", t ?? e);
707
+ }), ot("selectDatapoint", t ?? e);
709
708
  }
710
- function ar(e, t) {
711
- let n = rr();
709
+ function rr(e, t) {
710
+ let n = tr();
712
711
  if (!n) {
713
- nr();
712
+ er();
714
713
  return;
715
714
  }
716
715
  let r = Y(n);
@@ -718,35 +717,35 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
718
717
  I.value.events.datapointClick && I.value.events.datapointClick({
719
718
  datapoint: e,
720
719
  seriesIndex: t
721
- }), nr();
720
+ }), er();
722
721
  return;
723
722
  }
724
723
  let i = Y(r.parentId);
725
724
  if (!i) {
726
- nr();
725
+ er();
727
726
  return;
728
727
  }
729
- P.value = [...er(i.id), i.id], U.value = [i], I.value.events.datapointClick && I.value.events.datapointClick({
728
+ P.value = [...Qn(i.id), i.id], U.value = [i], I.value.events.datapointClick && I.value.events.datapointClick({
730
729
  datapoint: e,
731
730
  seriesIndex: t
732
- }), at("selectDatapoint", e);
731
+ }), ot("selectDatapoint", e);
733
732
  }
734
- function or(e, t) {
733
+ function ir(e, t) {
735
734
  if (!e) {
736
- nr();
735
+ er();
737
736
  return;
738
737
  }
739
738
  let n = Y(e.id);
740
739
  if (n) {
741
- if (rr() === n.id) {
742
- ar(e, t);
740
+ if (tr() === n.id) {
741
+ rr(e, t);
743
742
  return;
744
743
  }
745
- ir(n, e, t);
744
+ nr(n, e, t);
746
745
  }
747
746
  }
748
- function sr(e) {
749
- return e ? rr() === e.id : !1;
747
+ function ar(e) {
748
+ return e ? tr() === e.id : !1;
750
749
  }
751
750
  let X = m(() => {
752
751
  let e = [{
@@ -763,9 +762,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
763
762
  });
764
763
  }
765
764
  return e;
766
- }), Z = E(null), cr = m(() => H.value.map((e, t) => ({
765
+ }), Z = T(null), or = m(() => H.value.map((e, t) => ({
767
766
  ...e,
768
- color: s(e.color) || yn.value[t] || o[t] || o[t % o.length],
767
+ color: s(e.color) || _n.value[t] || o[t] || o[t % o.length],
769
768
  shape: "square"
770
769
  })).sort((e, t) => t.value - e.value).map((e, t) => {
771
770
  let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
@@ -773,70 +772,70 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
773
772
  ...e,
774
773
  proportion: n,
775
774
  isSegregated: M.value.includes(e.id),
776
- segregate: () => fr(e),
775
+ segregate: () => ur(e),
777
776
  opacity: M.value.includes(e.id) ? .5 : 1,
778
777
  display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? d(I.value.style.chart.layout.labels.formatter, e.value, c({
779
778
  p: I.value.style.chart.layout.labels.prefix,
780
779
  v: e.value,
781
780
  s: I.value.style.chart.layout.labels.suffix,
782
781
  r: I.value.style.chart.legend.roundingValue
783
- }), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / Mn.value) ? "-" : (e.value / Mn.value * 100).toFixed(I.value.style.chart.legend.roundingPercentage)}%${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
782
+ }), { datapoint: e }) : ""}${I.value.style.chart.legend.showPercentage ? M.value.includes(e.id) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / An.value) ? "-" : (e.value / An.value * 100).toFixed(I.value.style.chart.legend.roundingPercentage)}%${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
784
783
  };
785
- })), lr = m(() => ({
784
+ })), sr = m(() => ({
786
785
  cy: "treemap-div-legend",
787
786
  backgroundColor: I.value.style.chart.legend.backgroundColor,
788
787
  color: I.value.style.chart.legend.color,
789
788
  fontSize: I.value.style.chart.legend.fontSize,
790
789
  paddingBottom: 12,
791
790
  fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
792
- })), ur = m(() => M.value.length === cr.value.length);
793
- function dr() {
794
- M.value.length ? M.value = [] : cr.value.forEach((e) => {
791
+ })), cr = m(() => M.value.length === or.value.length);
792
+ function lr() {
793
+ M.value.length ? M.value = [] : or.value.forEach((e) => {
795
794
  M.value.push(e.id);
796
- }), at("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
795
+ }), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
797
796
  }
798
- function fr(e) {
799
- Z.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length < A.dataset.length - 1 && M.value.push(e.id), at("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
797
+ function ur(e) {
798
+ Z.value = null, M.value.includes(e.id) ? M.value = M.value.filter((t) => t !== e.id) : M.value.length < k.dataset.length - 1 && M.value.push(e.id), ot("selectLegend", H.value.filter((e) => !M.value.includes(e.id)));
800
799
  }
801
- function pr(e) {
802
- return H.value.length ? H.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
800
+ function dr(e) {
801
+ return H.value.length ? H.value.find((t) => t.name === e) || (Dn.value && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (Dn.value && console.warn("VueUiTreemap - There are no series to show."), null);
803
802
  }
804
- function mr(e) {
805
- let t = pr(e);
806
- t !== null && M.value.includes(t.id) && fr({ id: t.id });
803
+ function fr(e) {
804
+ let t = dr(e);
805
+ t !== null && M.value.includes(t.id) && ur({ id: t.id });
807
806
  }
808
- function hr(e) {
809
- let t = pr(e);
810
- t !== null && (M.value.includes(t.id) || fr({ id: t.id }));
807
+ function pr(e) {
808
+ let t = dr(e);
809
+ t !== null && (M.value.includes(t.id) || ur({ id: t.id }));
811
810
  }
812
- function gr({ datapoint: e, seriesIndex: t }) {
813
- Z.value = null, Lt.value = !1, F.value = null, rn.value = "pointer", I.value.events.datapointLeave && I.value.events.datapointLeave({
811
+ function mr({ datapoint: e, seriesIndex: t }) {
812
+ Z.value = null, Rt.value = !1, F.value = null, tn.value = "pointer", I.value.events.datapointLeave && I.value.events.datapointLeave({
814
813
  datapoint: e,
815
814
  seriesIndex: t
816
815
  });
817
816
  }
818
- let _r = w(null);
819
- function vr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
820
- if (ur.value || n === "pointer" && Or.value) return;
817
+ let hr = C(null);
818
+ function gr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
819
+ if (cr.value || n === "pointer" && Er.value) return;
821
820
  I.value.events.datapointEnter && I.value.events.datapointEnter({
822
821
  datapoint: e,
823
822
  seriesIndex: t
824
- }), F.value = t, rn.value = n, Z.value = e, _r.value = {
823
+ }), F.value = t, tn.value = n, Z.value = e, hr.value = {
825
824
  datapoint: e,
826
825
  seriesIndex: t,
827
826
  config: I.value,
828
- series: jn.value
827
+ series: kn.value
829
828
  };
830
829
  let r = I.value.style.chart.tooltip.customFormat;
831
830
  if (ae(r) && u(() => r({
832
831
  seriesIndex: t,
833
832
  datapoint: e,
834
- series: jn.value,
833
+ series: kn.value,
835
834
  config: I.value
836
- }))) Rt.value = r({
835
+ }))) zt.value = r({
837
836
  seriesIndex: t,
838
837
  datapoint: e,
839
- series: jn.value,
838
+ series: kn.value,
840
839
  config: I.value
841
840
  });
842
841
  else {
@@ -849,9 +848,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
849
848
  }), {
850
849
  datapoint: e,
851
850
  seriesIndex: t
852
- })}</b>`, Rt.value = `<div>${n}</div>`;
851
+ })}</b>`, zt.value = `<div>${n}</div>`;
853
852
  }
854
- Lt.value = !0;
853
+ Rt.value = !0;
855
854
  }
856
855
  let Q = m(() => ({
857
856
  head: G.value.map((e) => ({
@@ -860,13 +859,13 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
860
859
  })),
861
860
  body: G.value.map((e) => e.value)
862
861
  }));
863
- function yr(e = null) {
864
- Fe(() => {
862
+ function _r(e = null) {
863
+ Ie(() => {
865
864
  let r = Q.value.head.map((e, t) => [
866
865
  [e.name],
867
866
  [Q.value.body[t]],
868
- [isNaN(Q.value.body[t] / Mn.value) ? "-" : Q.value.body[t] / Mn.value * 100]
869
- ]), i = n([
867
+ [isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
868
+ ]), i = [
870
869
  [I.value.style.chart.title.text],
871
870
  [I.value.style.chart.title.subtitle.text],
872
871
  [
@@ -874,14 +873,14 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
874
873
  ["val"],
875
874
  ["%"]
876
875
  ]
877
- ].concat(r));
878
- e ? e(i) : t({
879
- csvContent: i,
876
+ ].concat(r), a = n(i);
877
+ e ? e(a) : t({
878
+ csvContent: a,
880
879
  title: I.value.style.chart.title.text || "vue-ui-treemap"
881
880
  });
882
881
  });
883
882
  }
884
- let br = m(() => {
883
+ let vr = m(() => {
885
884
  let e = [
886
885
  I.value.table.columnNames.series,
887
886
  I.value.table.columnNames.value,
@@ -900,8 +899,8 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
900
899
  shape: "square"
901
900
  },
902
901
  n,
903
- isNaN(Q.value.body[t] / Mn.value) ? "-" : c({
904
- v: Q.value.body[t] / Mn.value * 100,
902
+ isNaN(Q.value.body[t] / An.value) ? "-" : c({
903
+ v: Q.value.body[t] / An.value * 100,
905
904
  s: "%",
906
905
  r: I.value.table.td.roundingPercentage
907
906
  })
@@ -926,36 +925,36 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
926
925
  config: n
927
926
  };
928
927
  });
929
- function xr() {
928
+ function yr() {
930
929
  return G.value;
931
930
  }
932
- function Sr() {
931
+ function br() {
933
932
  B.value.showTable = !B.value.showTable;
934
933
  }
935
- function Cr() {
934
+ function xr() {
936
935
  B.value.showTooltip = !B.value.showTooltip;
937
936
  }
938
- function wr() {
937
+ function Sr() {
939
938
  B.value.showZoom = !B.value.showZoom;
940
939
  }
941
- let Tr = w(!1);
942
- function Er() {
943
- Tr.value = !Tr.value;
940
+ let Cr = C(!1);
941
+ function wr() {
942
+ Cr.value = !Cr.value;
944
943
  }
945
- let Dr = m(() => !Tr.value && B.value.showZoom), Or = w(null), kr = w(!1), { viewBox: $, resetZoom: Ar, isZoom: jr, setInitialViewBox: Mr, scale: Nr } = Oe(z, {
944
+ let Tr = m(() => !Cr.value && B.value.showZoom), Er = C(null), Dr = C(!1), { viewBox: $, resetZoom: Or, isZoom: kr, setInitialViewBox: Ar, scale: jr } = Oe(z, {
946
945
  x: J.value.x,
947
946
  y: J.value.y,
948
947
  width: Math.max(10, J.value.width),
949
948
  height: Math.max(10, J.value.height)
950
- }, 1, Dr), Pr = m(() => 1 / Nr.value), Fr = m(() => Math.min(1, I.value.style.chart.layout.labels.fontSizeZoomFactor / Math.max(Nr.value, 1e-4))), Ir = m(() => `scale(${Fr.value})`), Lr = m(() => B.value.showZoom || jr.value);
951
- O([
949
+ }, 1, Tr), Mr = m(() => 1 / jr.value), Nr = m(() => Math.min(1, I.value.style.chart.layout.labels.fontSizeZoomFactor / Math.max(jr.value, 1e-4))), Pr = m(() => `scale(${Nr.value})`), Fr = m(() => B.value.showZoom || kr.value);
950
+ D([
952
951
  () => J.value.x,
953
952
  () => J.value.y,
954
953
  () => J.value.width,
955
954
  () => J.value.height
956
955
  ], () => {
957
- Fe(() => {
958
- Mr({
956
+ Ie(() => {
957
+ Ar({
959
958
  x: J.value.x,
960
959
  y: J.value.y,
961
960
  width: Math.max(10, J.value.width),
@@ -963,33 +962,33 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
963
962
  });
964
963
  });
965
964
  }, { immediate: !0 });
966
- function Rr(e) {
967
- Dr.value && (e.button !== void 0 && e.button !== 0 || (Or.value = {
965
+ function Ir(e) {
966
+ Tr.value && (e.button === void 0 || e.button === 0) && (Er.value = {
968
967
  x: e.clientX,
969
968
  y: e.clientY
970
- }, kr.value = !1));
969
+ }, Dr.value = !1);
971
970
  }
972
- function zr(e) {
973
- if (!Dr.value || !Or.value) return;
974
- let t = e.clientX - Or.value.x, n = e.clientY - Or.value.y;
975
- Math.hypot(t, n) > Nt && (kr.value = !0);
971
+ function Lr(e) {
972
+ if (!Tr.value || !Er.value) return;
973
+ let t = e.clientX - Er.value.x, n = e.clientY - Er.value.y;
974
+ Math.hypot(t, n) > Pt && (Dr.value = !0);
976
975
  }
977
- function Br() {
978
- Or.value = null, kr.value && window.setTimeout(() => {
979
- kr.value = !1;
976
+ function Rr() {
977
+ Er.value = null, Dr.value && window.setTimeout(() => {
978
+ Dr.value = !1;
980
979
  }, 0);
981
980
  }
982
- function Vr(e, t) {
983
- kr.value || or(e, t);
981
+ function zr(e, t) {
982
+ Dr.value || ir(e, t);
984
983
  }
985
- let Hr = w(null);
986
- function Ur(e) {
987
- Hr.value = e;
984
+ let Br = C(null);
985
+ function Vr(e) {
986
+ Br.value = e;
988
987
  }
989
- function Wr() {
990
- Hr.value = null;
988
+ function Hr() {
989
+ Br.value = null;
991
990
  }
992
- async function Gr({ scale: e = 2 } = {}) {
991
+ async function Ur({ scale: e = 2 } = {}) {
993
992
  if (!N.value) return;
994
993
  let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
995
994
  domElement: N.value,
@@ -1006,17 +1005,17 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1006
1005
  aspectRatio: r
1007
1006
  };
1008
1007
  }
1009
- let Kr = m(() => {
1008
+ let Wr = m(() => {
1010
1009
  let e = I.value.table.useDialog && !I.value.table.show, t = B.value.showTable;
1011
1010
  return {
1012
- component: e ? tt : Xe,
1011
+ component: e ? nt : Ze,
1013
1012
  title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
1014
1013
  props: e ? {
1015
1014
  backgroundColor: I.value.table.th.backgroundColor,
1016
1015
  color: I.value.table.th.color,
1017
1016
  headerColor: I.value.table.th.color,
1018
1017
  headerBg: I.value.table.th.backgroundColor,
1019
- isFullscreen: zt.value,
1018
+ isFullscreen: j.value,
1020
1019
  fullscreenParent: N.value,
1021
1020
  forcedWidth: Math.min(800, window.innerWidth * .8),
1022
1021
  isCursorPointer: L.value
@@ -1037,51 +1036,26 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1037
1036
  }
1038
1037
  };
1039
1038
  });
1040
- O(() => B.value.showTable, (e) => {
1039
+ D(() => B.value.showTable, (e) => {
1041
1040
  I.value.table.show || (e && I.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
1042
1041
  });
1043
- function qr() {
1042
+ function Gr() {
1044
1043
  B.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
1045
1044
  }
1046
- let Jr = m(() => cr.value.map((e) => ({
1045
+ let Kr = m(() => or.value.map((e) => ({
1047
1046
  ...e,
1048
1047
  name: e.display
1049
- }))), Yr = m(() => I.value.style.chart.backgroundColor), Xr = m(() => I.value.style.chart.legend), { exportSvg: Zr, getSvg: Qr } = fe({
1048
+ }))), qr = m(() => I.value.style.chart.backgroundColor), Jr = m(() => I.value.style.chart.legend), Yr = m(() => I.value.style.chart.title), { isCallbackImaging: Xr, isCallbackSvg: Zr, generateSvg: Qr, onGenerateImage: $r } = me({
1050
1049
  svg: z,
1051
- title: m(() => I.value.style.chart.title),
1052
- legend: Xr,
1053
- legendItems: Jr,
1054
- backgroundColor: Yr
1050
+ title: Yr,
1051
+ legend: Jr,
1052
+ legendItems: Kr,
1053
+ backgroundColor: qr,
1054
+ getSvgCallback: () => I.value.userOptions.callbacks.svg,
1055
+ generateImage: hn
1055
1056
  });
1056
- async function $r({ isCb: e }) {
1057
- tn.value = !0, await Fe();
1058
- try {
1059
- if (e) {
1060
- let { blob: e, url: t, text: n, dataUrl: r } = await Qr();
1061
- await Promise.resolve(I.value.userOptions.callbacks.svg({
1062
- blob: e,
1063
- url: t,
1064
- text: n,
1065
- dataUrl: r
1066
- }));
1067
- } else await Promise.resolve(Zr());
1068
- } finally {
1069
- tn.value = !1;
1070
- }
1071
- }
1072
- function ei(e) {
1073
- if (e?.stage === "start") {
1074
- en.value = !0;
1075
- return;
1076
- }
1077
- if (e?.stage === "end") {
1078
- en.value = !1;
1079
- return;
1080
- }
1081
- _n();
1082
- }
1083
- function ti(e, t) {
1084
- let n = Qn(e, t), { paddingX: r, paddingTop: i } = Kn(n);
1057
+ function ei(e, t) {
1058
+ let n = Xn(e, t), { paddingX: r, paddingTop: i } = Wn(n);
1085
1059
  return {
1086
1060
  fontSize: n,
1087
1061
  paddingX: r,
@@ -1089,28 +1063,28 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1089
1063
  lineHeight: n * 1.1
1090
1064
  };
1091
1065
  }
1092
- function ni(e) {
1066
+ function ti(e) {
1093
1067
  return te(e.color ?? I.value.style.chart.backgroundColor);
1094
1068
  }
1095
- function ri({ availableHeight: e, lineHeight: t, lineIndex: n }) {
1069
+ function ni({ availableHeight: e, lineHeight: t, lineIndex: n }) {
1096
1070
  if (n === 0) return Infinity;
1097
1071
  let r = e / (n + 1);
1098
1072
  return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
1099
1073
  }
1100
- function ii() {
1074
+ function ri() {
1101
1075
  return Number(I.value.style.chart.layout.labels.hideUnderProportion) === 0;
1102
1076
  }
1103
- function ai(e) {
1104
- let t = Fr.value;
1105
- return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Ir.value;
1077
+ function ii(e) {
1078
+ let t = Nr.value;
1079
+ return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Pr.value;
1106
1080
  }
1107
- function oi({ rect: e, seriesIndex: t }) {
1108
- if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !Bn(e)) return null;
1109
- let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = ti(e, t), o = ni(e), s = Yn(e, t).map((e) => String(e ?? "")), c = qn(e, n);
1081
+ function ai({ rect: e, seriesIndex: t }) {
1082
+ if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !Rn(e)) return null;
1083
+ let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = ei(e, t), o = ti(e), s = qn(e, t).map((e) => String(e ?? "")), c = Gn(e, n);
1110
1084
  if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
1111
- let l = ii(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${j.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
1085
+ let l = ri(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${A.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
1112
1086
  return {
1113
- key: si(e),
1087
+ key: oi(e),
1114
1088
  clipId: d,
1115
1089
  clipX: f,
1116
1090
  clipY: ee,
@@ -1124,7 +1098,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1124
1098
  text: t,
1125
1099
  x: r,
1126
1100
  y: i + a * s,
1127
- maxZoomFactor: ri({
1101
+ maxZoomFactor: ni({
1128
1102
  availableHeight: c.height,
1129
1103
  lineHeight: a,
1130
1104
  lineIndex: s
@@ -1136,26 +1110,26 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1136
1110
  }))
1137
1111
  };
1138
1112
  }
1139
- function si(e) {
1113
+ function oi(e) {
1140
1114
  return `${e.id}`;
1141
1115
  }
1142
- let ci = m(() => Pt.rect || R.value || !I.value.style.chart.layout.labels.showDefaultLabels || ur.value ? [] : G.value.map((e, t) => e.showLabel ? oi({
1116
+ let si = m(() => Ft.rect || R.value || !I.value.style.chart.layout.labels.showDefaultLabels || cr.value ? [] : G.value.map((e, t) => e.showLabel ? ai({
1143
1117
  rect: e,
1144
1118
  seriesIndex: t
1145
- }) : null).filter(Boolean)), li;
1146
- function ui() {
1147
- return typeof document > "u" ? null : (li ||= document.createElement("canvas"), li.getContext("2d"));
1119
+ }) : null).filter(Boolean)), ci;
1120
+ function li() {
1121
+ return typeof document > "u" ? null : (ci ||= document.createElement("canvas"), ci.getContext("2d"));
1148
1122
  }
1149
- function di(e, t, n = 400) {
1150
- let r = ui();
1123
+ function ui(e, t, n = 400) {
1124
+ let r = li();
1151
1125
  return r ? (r.font = `${n} ${t}px ${I.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
1152
1126
  }
1153
- function fi(e) {
1127
+ function di(e) {
1154
1128
  let t = I.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
1155
1129
  return Math.min(t, Math.min(n, r) / 6);
1156
1130
  }
1157
- async function pi() {
1158
- if (at("copyAlt", {
1131
+ async function fi() {
1132
+ if (ot("copyAlt", {
1159
1133
  config: I.value,
1160
1134
  dataset: G.value
1161
1135
  }), !I.value.userOptions.callbacks.altCopy) {
@@ -1167,84 +1141,84 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1167
1141
  dataset: G.value
1168
1142
  }));
1169
1143
  }
1170
- function mi() {
1171
- F.value = null, an.value = !0;
1144
+ function pi() {
1145
+ F.value = null, nn.value = !0;
1172
1146
  }
1173
- function hi() {
1174
- F.value = null, rn.value = "pointer", Lt.value = !1, Z.value = null, an.value = !1;
1147
+ function mi() {
1148
+ F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null, nn.value = !1;
1175
1149
  }
1176
- function gi(e) {
1177
- if (!z.value || Tr.value || document.activeElement !== z.value || !G.value.length || ur.value) return;
1150
+ function hi(e) {
1151
+ if (!z.value || Cr.value || document.activeElement !== z.value || !G.value.length || cr.value) return;
1178
1152
  let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1179
1153
  if (!t && !n && !r && !i) return;
1180
1154
  if (e.preventDefault(), e.stopPropagation(), i) {
1181
- F.value = null, rn.value = "pointer", Lt.value = !1, Z.value = null;
1155
+ F.value = null, tn.value = "pointer", Rt.value = !1, Z.value = null;
1182
1156
  return;
1183
1157
  }
1184
1158
  if (r) {
1185
1159
  if (F.value === null) return;
1186
1160
  let e = G.value[F.value];
1187
1161
  if (!e) return;
1188
- or(e, F.value);
1162
+ ir(e, F.value);
1189
1163
  return;
1190
1164
  }
1191
1165
  let a = F.value, o = Z.value ? G.value.findIndex((e) => e.id === Z.value.id) : null, s = a !== null && a >= 0 && a < G.value.length, c = o !== null && o >= 0 && o < G.value.length;
1192
1166
  s ? n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= G.value.length && (a = 0), a < 0 && (a = G.value.length - 1)) : a = n ? 0 : G.value.length - 1;
1193
1167
  let l = G.value[a];
1194
- l && (_i(a), vr({
1168
+ l && (gi(a), gr({
1195
1169
  datapoint: l,
1196
1170
  seriesIndex: a,
1197
1171
  triggerMode: "keyboard"
1198
1172
  }));
1199
1173
  }
1200
- function _i(e) {
1174
+ function gi(e) {
1201
1175
  if (!Number.isFinite(e) || !z.value) return;
1202
1176
  let t = G.value[e];
1203
1177
  if (!t) return;
1204
1178
  let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
1205
- nn.value = {
1179
+ en.value = {
1206
1180
  x: i.left + (n - $.value.x) / $.value.width * i.width,
1207
1181
  y: i.top + (r - $.value.y) / $.value.height * i.height
1208
1182
  };
1209
1183
  }
1210
- let vi = m(() => ({
1211
- headers: br.value?.colNames ?? [],
1212
- rows: br.value?.body ?? []
1213
- })), yi = m(() => I.value.style.chart.color);
1184
+ let _i = m(() => ({
1185
+ headers: vr.value?.colNames ?? [],
1186
+ rows: vr.value?.body ?? []
1187
+ })), vi = m(() => I.value.style.chart.color);
1214
1188
  return ve({
1215
- getData: xr,
1216
- getImage: Gr,
1217
- generateCsv: yr,
1218
- generateImage: _n,
1219
- generateSvg: $r,
1220
- generatePdf: gn,
1221
- hideSeries: hr,
1222
- showSeries: mr,
1223
- toggleTable: Sr,
1224
- toggleTooltip: Cr,
1225
- toggleZoom: wr,
1226
- toggleAnnotator: Er,
1227
- toggleFullscreen: $n,
1228
- resetZoom: Ar,
1229
- copyAlt: pi
1230
- }), (e, t) => (C(), _("div", {
1189
+ getData: yr,
1190
+ getImage: Ur,
1191
+ generateCsv: _r,
1192
+ generateImage: hn,
1193
+ generateSvg: Qr,
1194
+ generatePdf: mn,
1195
+ hideSeries: pr,
1196
+ showSeries: fr,
1197
+ toggleTable: br,
1198
+ toggleTooltip: xr,
1199
+ toggleZoom: Sr,
1200
+ toggleAnnotator: wr,
1201
+ toggleFullscreen: Zn,
1202
+ resetZoom: Or,
1203
+ copyAlt: fi
1204
+ }), (e, t) => (S(), _("div", {
1231
1205
  ref_key: "treemapChart",
1232
1206
  ref: N,
1233
- class: Ie(`vue-data-ui-component vue-ui-treemap ${zt.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1234
- style: S(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
1235
- id: `treemap_${j.value}`,
1236
- onMouseenter: t[3] ||= () => D(dn)(!0),
1237
- onMouseleave: t[4] ||= () => D(dn)(!1)
1207
+ class: Le(`vue-data-ui-component vue-ui-treemap ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1208
+ style: x(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height: 100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
1209
+ id: `treemap_${A.value}`,
1210
+ onMouseenter: t[3] ||= () => E(ln)(!0),
1211
+ onMouseleave: t[4] ||= () => E(ln)(!1)
1238
1212
  }, [
1239
1213
  v("div", {
1240
- id: `chart-instructions-${j.value}`,
1214
+ id: `chart-instructions-${A.value}`,
1241
1215
  class: "sr-only"
1242
- }, [v("p", null, Ve(I.value.a11y.translations.keyboardNavigation), 1)], 8, st),
1243
- vi.value?.rows?.length ? (C(), h(we, {
1216
+ }, [v("p", null, He(I.value.a11y.translations.keyboardNavigation), 1)], 8, ct),
1217
+ _i.value?.rows?.length ? (S(), h(we, {
1244
1218
  key: 0,
1245
- uid: j.value,
1246
- head: vi.value.headers,
1247
- body: vi.value.rows,
1219
+ uid: A.value,
1220
+ head: _i.value.headers,
1221
+ body: _i.value.rows,
1248
1222
  notice: I.value.a11y.translations.tableAvailable,
1249
1223
  caption: I.value.a11y.translations.tableCaption
1250
1224
  }, null, 8, [
@@ -1254,21 +1228,21 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1254
1228
  "notice",
1255
1229
  "caption"
1256
1230
  ])) : g("", !0),
1257
- I.value.userOptions.buttons.annotator ? (C(), h(D(Ye), {
1231
+ I.value.userOptions.buttons.annotator ? (S(), h(E(Xe), {
1258
1232
  key: 1,
1259
- svgRef: D(z),
1233
+ svgRef: E(z),
1260
1234
  backgroundColor: I.value.style.chart.backgroundColor,
1261
1235
  color: I.value.style.chart.color,
1262
- active: Tr.value,
1236
+ active: Cr.value,
1263
1237
  isCursorPointer: L.value,
1264
- onClose: Er
1238
+ onClose: wr
1265
1239
  }, {
1266
- "annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1267
- "annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
1268
- "annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
1269
- "annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
1270
- "annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
1271
- "annotator-action-delete": k(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
1240
+ "annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1241
+ "annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", b(y({ color: t })), void 0, !0)]),
1242
+ "annotator-action-draw": O(({ mode: t }) => [w(e.$slots, "annotator-action-draw", b(y({ mode: t })), void 0, !0)]),
1243
+ "annotator-action-undo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", b(y({ disabled: t })), void 0, !0)]),
1244
+ "annotator-action-redo": O(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", b(y({ disabled: t })), void 0, !0)]),
1245
+ "annotator-action-delete": O(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", b(y({ disabled: t })), void 0, !0)]),
1272
1246
  _: 3
1273
1247
  }, 8, [
1274
1248
  "svgRef",
@@ -1277,19 +1251,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1277
1251
  "active",
1278
1252
  "isCursorPointer"
1279
1253
  ])) : g("", !0),
1280
- vn.value ? (C(), _("div", {
1254
+ gn.value ? (S(), _("div", {
1281
1255
  key: 2,
1282
1256
  ref_key: "noTitle",
1283
1257
  ref: Wt,
1284
1258
  class: "vue-data-ui-no-title-space",
1285
1259
  style: "height:36px; width: 100%;background:transparent"
1286
1260
  }, null, 512)) : g("", !0),
1287
- I.value.style.chart.title.text ? (C(), _("div", {
1261
+ I.value.style.chart.title.text ? (S(), _("div", {
1288
1262
  key: 3,
1289
1263
  ref_key: "chartTitle",
1290
1264
  ref: Vt,
1291
- style: S(`width:100%;background:${I.value.style.chart.backgroundColor};padding-bottom:6px`)
1292
- }, [(C(), h(_e, {
1265
+ style: x(`width:100%;background:${I.value.style.chart.backgroundColor};padding-bottom:6px`)
1266
+ }, [(S(), h(_e, {
1293
1267
  key: `title_${Gt.value}`,
1294
1268
  config: {
1295
1269
  title: {
@@ -1302,16 +1276,16 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1302
1276
  }
1303
1277
  }
1304
1278
  }, null, 8, ["config"]))], 4)) : g("", !0),
1305
- v("div", { id: `legend-top-${j.value}` }, null, 8, ct),
1306
- I.value.userOptions.show && Ft.value && (D(fn) || D(un)) ? (C(), h(D($e), {
1279
+ v("div", { id: `legend-top-${A.value}` }, null, 8, lt),
1280
+ I.value.userOptions.show && It.value && (E(un) || E(cn)) ? (S(), h(E(et), {
1307
1281
  ref_key: "userOptionsRef",
1308
1282
  ref: Zt,
1309
1283
  key: `user_option_${Bt.value}`,
1310
1284
  backgroundColor: I.value.style.chart.backgroundColor,
1311
1285
  color: I.value.style.chart.color,
1312
- isPrinting: D(mn),
1313
- isImaging: D(hn),
1314
- uid: j.value,
1286
+ isPrinting: E(fn),
1287
+ isImaging: E(pn),
1288
+ uid: A.value,
1315
1289
  hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
1316
1290
  hasPdf: I.value.userOptions.buttons.pdf,
1317
1291
  hasXls: I.value.userOptions.buttons.csv,
@@ -1320,34 +1294,34 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1320
1294
  hasTable: I.value.userOptions.buttons.table,
1321
1295
  hasFullscreen: I.value.userOptions.buttons.fullscreen,
1322
1296
  hasAltCopy: I.value.userOptions.buttons.altCopy,
1323
- isFullscreen: zt.value,
1297
+ isFullscreen: j.value,
1324
1298
  isTooltip: B.value.showTooltip,
1325
1299
  titles: { ...I.value.userOptions.buttonTitles },
1326
1300
  chartElement: N.value,
1327
1301
  position: I.value.userOptions.position,
1328
1302
  hasAnnotator: I.value.userOptions.buttons.annotator,
1329
- isAnnotation: Tr.value,
1303
+ isAnnotation: Cr.value,
1330
1304
  callbacks: I.value.userOptions.callbacks,
1331
1305
  printScale: I.value.userOptions.print.scale,
1332
1306
  tableDialog: I.value.table.useDialog,
1333
1307
  isCursorPointer: L.value,
1334
1308
  hasZoom: I.value.userOptions.buttons.zoom,
1335
1309
  isZoom: B.value.showZoom,
1336
- onToggleFullscreen: $n,
1337
- onGeneratePdf: D(gn),
1338
- onGenerateCsv: yr,
1339
- onGenerateImage: ei,
1340
- onGenerateSvg: $r,
1341
- onToggleTable: Sr,
1342
- onToggleTooltip: Cr,
1343
- onToggleAnnotator: Er,
1344
- onToggleZoom: wr,
1345
- onCopyAlt: pi,
1346
- style: S({ visibility: D(fn) ? D(un) ? "visible" : "hidden" : "visible" })
1310
+ onToggleFullscreen: Zn,
1311
+ onGeneratePdf: E(mn),
1312
+ onGenerateCsv: _r,
1313
+ onGenerateImage: E($r),
1314
+ onGenerateSvg: E(Qr),
1315
+ onToggleTable: br,
1316
+ onToggleTooltip: xr,
1317
+ onToggleAnnotator: wr,
1318
+ onToggleZoom: Sr,
1319
+ onCopyAlt: fi,
1320
+ style: x({ visibility: E(un) ? E(cn) ? "visible" : "hidden" : "visible" })
1347
1321
  }, je({ _: 2 }, [
1348
1322
  e.$slots.menuIcon ? {
1349
1323
  name: "menuIcon",
1350
- fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
1324
+ fn: O(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", b(y({
1351
1325
  isOpen: t,
1352
1326
  color: n
1353
1327
  })), void 0, !0)]),
@@ -1355,37 +1329,37 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1355
1329
  } : void 0,
1356
1330
  e.$slots.optionTooltip ? {
1357
1331
  name: "optionTooltip",
1358
- fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1332
+ fn: O(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1359
1333
  key: "1"
1360
1334
  } : void 0,
1361
1335
  e.$slots.optionPdf ? {
1362
1336
  name: "optionPdf",
1363
- fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1337
+ fn: O(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1364
1338
  key: "2"
1365
1339
  } : void 0,
1366
1340
  e.$slots.optionCsv ? {
1367
1341
  name: "optionCsv",
1368
- fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1342
+ fn: O(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1369
1343
  key: "3"
1370
1344
  } : void 0,
1371
1345
  e.$slots.optionImg ? {
1372
1346
  name: "optionImg",
1373
- fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1347
+ fn: O(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1374
1348
  key: "4"
1375
1349
  } : void 0,
1376
1350
  e.$slots.optionSvg ? {
1377
1351
  name: "optionSvg",
1378
- fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1352
+ fn: O(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1379
1353
  key: "5"
1380
1354
  } : void 0,
1381
1355
  e.$slots.optionTable ? {
1382
1356
  name: "optionTable",
1383
- fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1357
+ fn: O(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1384
1358
  key: "6"
1385
1359
  } : void 0,
1386
1360
  e.$slots.optionFullscreen ? {
1387
1361
  name: "optionFullscreen",
1388
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
1362
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", b(y({
1389
1363
  toggleFullscreen: t,
1390
1364
  isFullscreen: n
1391
1365
  })), void 0, !0)]),
@@ -1393,7 +1367,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1393
1367
  } : void 0,
1394
1368
  e.$slots.optionAnnotator ? {
1395
1369
  name: "optionAnnotator",
1396
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
1370
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", b(y({
1397
1371
  toggleAnnotator: t,
1398
1372
  isAnnotator: n
1399
1373
  })), void 0, !0)]),
@@ -1401,7 +1375,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1401
1375
  } : void 0,
1402
1376
  e.$slots.optionZoom ? {
1403
1377
  name: "optionZoom",
1404
- fn: k(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(b({
1378
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [w(e.$slots, "optionZoom", b(y({
1405
1379
  toggleZoom: t,
1406
1380
  isZoomLocked: n
1407
1381
  })), void 0, !0)]),
@@ -1409,78 +1383,78 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1409
1383
  } : void 0,
1410
1384
  e.$slots.optionAltCopy ? {
1411
1385
  name: "optionAltCopy",
1412
- fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
1386
+ fn: O(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", b(y({ altCopy: t })), void 0, !0)]),
1413
1387
  key: "10"
1414
1388
  } : void 0,
1415
1389
  e.$slots["custom-menu-before"] ? {
1416
1390
  name: "custom-menu-before",
1417
- fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1391
+ fn: O(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1418
1392
  key: "11"
1419
1393
  } : void 0,
1420
1394
  e.$slots["custom-menu-after"] ? {
1421
1395
  name: "custom-menu-after",
1422
- fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1396
+ fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1423
1397
  key: "12"
1424
1398
  } : void 0
1425
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) : g("", !0),
1426
- X.value.length > 1 ? (C(), _("nav", {
1399
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : g("", !0),
1400
+ X.value.length > 1 ? (S(), _("nav", {
1427
1401
  key: 5,
1428
1402
  class: "vue-ui-treemap-breadcrumbs",
1429
1403
  "data-dom-to-png-ignore": "",
1430
1404
  ref_key: "breadcrumbsNav",
1431
1405
  ref: Jt
1432
- }, [(C(!0), _(p, null, ze(X.value, (n, r) => (C(), _("span", {
1406
+ }, [(S(!0), _(p, null, Be(X.value, (n, r) => (S(), _("span", {
1433
1407
  role: "button",
1434
1408
  tabindex: r < X.value.length - 1 ? 0 : void 0,
1435
1409
  key: n.id || "root",
1436
- onClick: (e) => r === X.value.length - 1 ? () => {} : or(n.node),
1437
- onKeydown: [Ge(Ke((e) => r === X.value.length - 1 ? void 0 : or(n.node), ["prevent"]), ["enter"]), Ge(Ke((e) => r === X.value.length - 1 ? void 0 : or(n.node), ["prevent"]), ["space"])],
1410
+ onClick: (e) => r === X.value.length - 1 ? () => {} : ir(n.node),
1411
+ onKeydown: [Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["enter"]), Ke(qe((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["space"])],
1438
1412
  class: "vue-ui-treemap-crumb",
1439
1413
  "data-last-crumb": r === X.value.length - 1,
1440
- style: S({
1414
+ style: x({
1441
1415
  color: I.value.style.chart.color,
1442
1416
  cursor: L.value ? "pointer" : "default"
1443
1417
  }),
1444
- onMouseenter: (e) => Ur(r),
1445
- onMouseleave: Wr,
1446
- onFocus: (e) => Ur(r),
1447
- onBlur: Wr
1448
- }, [v("span", ut, [v("span", dt, [T(e.$slots, "breadcrumb-label", Pe({ ref_for: !0 }, {
1418
+ onMouseenter: (e) => Vr(r),
1419
+ onMouseleave: Hr,
1420
+ onFocus: (e) => Vr(r),
1421
+ onBlur: Hr
1422
+ }, [v("span", dt, [v("span", ft, [w(e.$slots, "breadcrumb-label", Fe({ ref_for: !0 }, {
1449
1423
  crumb: n,
1450
1424
  isRoot: r === 0,
1451
- isFocus: Hr.value === r
1452
- }), () => [r === 0 ? (C(), _("div", ft, [Ne(xe, {
1453
- name: Hr.value === 0 ? "homeFilled" : "home",
1425
+ isFocus: Br.value === r
1426
+ }), () => [r === 0 ? (S(), _("div", pt, [Ne(xe, {
1427
+ name: Br.value === 0 ? "homeFilled" : "home",
1454
1428
  stroke: I.value.style.chart.color
1455
- }, null, 8, ["name", "stroke"])])) : (C(), _(p, { key: 1 }, [Me(Ve(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (C(), _("span", pt, [T(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Me(" › ", -1)], !0)])) : g("", !0)])], 44, lt))), 128))], 512)) : g("", !0),
1456
- v("div", mt, [
1457
- (C(), _("svg", {
1429
+ }, null, 8, ["name", "stroke"])])) : (S(), _(p, { key: 1 }, [Me(He(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (S(), _("span", mt, [w(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Me(" › ", -1)], !0)])) : g("", !0)])], 44, ut))), 128))], 512)) : g("", !0),
1430
+ v("div", ht, [
1431
+ (S(), _("svg", {
1458
1432
  ref_key: "svgRef",
1459
1433
  ref: z,
1460
- xmlns: D(ne),
1461
- "aria-describedby": `chart-instructions-${j.value}`,
1462
- class: Ie({
1463
- "vue-data-ui-fullscreen--on": zt.value,
1464
- "vue-data-ui-fulscreen--off": !zt.value,
1465
- "vue-data-ui-zoom-plus": !tr.value,
1466
- "vue-data-ui-zoom-minus": tr.value,
1467
- "vue-data-ui-no-transition": !D(on),
1468
- loading: D(R)
1434
+ xmlns: E(ne),
1435
+ "aria-describedby": `chart-instructions-${A.value}`,
1436
+ class: Le({
1437
+ "vue-data-ui-fullscreen--on": j.value,
1438
+ "vue-data-ui-fulscreen--off": !j.value,
1439
+ "vue-data-ui-zoom-plus": !$n.value,
1440
+ "vue-data-ui-zoom-minus": $n.value,
1441
+ "vue-data-ui-no-transition": !E(rn),
1442
+ loading: E(R)
1469
1443
  }),
1470
- viewBox: `${D($).x} ${D($).y} ${D($).width <= 0 ? 10 : D($).width} ${D($).height <= 0 ? 10 : D($).height}`,
1471
- style: S(`max-width:100%; overflow:${Lr.value ? "hidden" : "visible"}; background:transparent;color:${I.value.style.chart.color}`),
1444
+ viewBox: `${E($).x} ${E($).y} ${E($).width <= 0 ? 10 : E($).width} ${E($).height <= 0 ? 10 : E($).height}`,
1445
+ style: x(`max-width:100%; overflow:${Fr.value ? "hidden" : "visible"}; background:transparent;color:${I.value.style.chart.color}`),
1472
1446
  tabindex: "0",
1473
- onFocus: mi,
1474
- onBlur: hi,
1475
- onKeydown: gi,
1476
- onPointerdown: Rr,
1477
- onPointermove: zr,
1478
- onPointerup: Br,
1479
- onPointercancel: Br,
1480
- onPointerleave: Br
1447
+ onFocus: pi,
1448
+ onBlur: mi,
1449
+ onKeydown: hi,
1450
+ onPointerdown: Ir,
1451
+ onPointermove: Lr,
1452
+ onPointerup: Rr,
1453
+ onPointercancel: Rr,
1454
+ onPointerleave: Rr
1481
1455
  }, [
1482
- Ne(D(et)),
1483
- (C(!0), _(p, null, ze(G.value, (e, t) => (C(), _("g", { key: `tgrad_${e.id}` }, [I.value.style.chart.layout.rects.gradient.show ? (C(), _("defs", gt, [Ne(Se, {
1456
+ Ne(E(tt)),
1457
+ (S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `tgrad_${e.id}` }, [I.value.style.chart.layout.rects.gradient.show ? (S(), _("defs", _t, [Ne(Se, {
1484
1458
  t: "radial",
1485
1459
  id: `tgrad_${e.id}`,
1486
1460
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
@@ -1490,53 +1464,53 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1490
1464
  1
1491
1465
  ], [
1492
1466
  "100%",
1493
- D(a)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
1467
+ E(a)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
1494
1468
  1
1495
1469
  ]]
1496
1470
  }, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
1497
1471
  v("g", null, [
1498
- (C(!0), _(p, null, ze(G.value, (e, t) => (C(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
1472
+ (S(!0), _(p, null, Be(G.value, (e, t) => (S(), _("g", { key: `rect_${e.id}_${e.depth}` }, [v("rect", {
1499
1473
  x: e.x0,
1500
1474
  y: e.y0,
1501
1475
  height: K(e),
1502
1476
  width: q(e),
1503
- fill: It.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? ur.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
1504
- rx: D(Nr) > 1 ? fi(e) * Pr.value : fi(e),
1477
+ fill: Lt.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? cr.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
1478
+ rx: E(jr) > 1 ? di(e) * Mr.value : di(e),
1505
1479
  stroke: Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.stroke : I.value.style.chart.layout.rects.stroke,
1506
- "stroke-width": Wn(e),
1507
- onClick: Ke((n) => Vr(e, t), ["stop"]),
1508
- onMouseenter: () => vr({
1480
+ "stroke-width": Hn(e),
1481
+ onClick: qe((n) => zr(e, t), ["stop"]),
1482
+ onMouseenter: () => gr({
1509
1483
  datapoint: e,
1510
1484
  seriesIndex: t,
1511
1485
  triggerMode: "pointer"
1512
1486
  }),
1513
- onMouseleave: (n) => gr({
1487
+ onMouseleave: (n) => mr({
1514
1488
  datapoint: e,
1515
1489
  seriesIndex: t
1516
1490
  }),
1517
- style: S(`opacity:${Z.value ? Z.value.id === e.id ? 1 : I.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1518
- class: Ie([
1491
+ style: x(`opacity:${Z.value ? Z.value.id === e.id ? 1 : I.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1492
+ class: Le([
1519
1493
  "vue-ui-treemap-rect",
1520
- D(on) ? "vue-data-ui-transition" : "",
1521
- sr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
1494
+ E(rn) ? "vue-data-ui-transition" : "",
1495
+ ar(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
1522
1496
  ])
1523
- }, null, 46, _t)]))), 128)),
1524
- (C(!0), _(p, null, ze(ci.value, (e) => (C(), _("g", {
1497
+ }, null, 46, vt)]))), 128)),
1498
+ (S(!0), _(p, null, Be(si.value, (e) => (S(), _("g", {
1525
1499
  key: e.key,
1526
1500
  style: { "pointer-events": "none" }
1527
1501
  }, [v("defs", null, [v("clipPath", {
1528
1502
  id: e.clipId,
1529
1503
  clipPathUnits: "userSpaceOnUse"
1530
1504
  }, [v("rect", {
1531
- class: Ie({ "vue-data-ui-transition": D(on) }),
1505
+ class: Le({ "vue-data-ui-transition": E(rn) }),
1532
1506
  x: e.clipX,
1533
1507
  y: e.clipY,
1534
1508
  width: e.clipWidth,
1535
1509
  height: e.clipHeight
1536
- }, null, 10, yt)], 8, vt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [v("g", { transform: e.translate }, [v("g", {
1537
- class: Ie({ "vue-data-ui-transition": D(on) }),
1538
- transform: ai(e)
1539
- }, [(C(!0), _(p, null, ze(e.lines, (t) => (C(), _(p, { key: t.key }, [t.text && (e.alwaysShowAllLines || Fr.value <= t.maxZoomFactor) ? (C(), _("text", {
1510
+ }, null, 10, bt)], 8, yt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [v("g", { transform: e.translate }, [v("g", {
1511
+ class: Le({ "vue-data-ui-transition": E(rn) }),
1512
+ transform: ii(e)
1513
+ }, [(S(!0), _(p, null, Be(e.lines, (t) => (S(), _(p, { key: t.key }, [t.text && (e.alwaysShowAllLines || Nr.value <= t.maxZoomFactor) ? (S(), _("text", {
1540
1514
  key: 0,
1541
1515
  x: t.x,
1542
1516
  y: t.y,
@@ -1544,11 +1518,11 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1544
1518
  "font-size": t.fontSize,
1545
1519
  "font-family": t.fontFamily,
1546
1520
  "font-weight": t.fontWeight,
1547
- class: Ie({ "vue-data-ui-transition": D(on) }),
1521
+ class: Le({ "vue-data-ui-transition": E(rn) }),
1548
1522
  "text-anchor": "start",
1549
1523
  "dominant-baseline": "text-before-edge"
1550
- }, Ve(t.text), 11, Ct)) : g("", !0)], 64))), 128))], 10, St)], 8, xt)], 8, bt)]))), 128)),
1551
- e.$slots.rect ? (C(), _("g", wt, [(C(!0), _(p, null, ze(G.value, (t, n) => (C(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(C(), _("foreignObject", {
1524
+ }, He(t.text), 11, wt)) : g("", !0)], 64))), 128))], 10, Ct)], 8, St)], 8, xt)]))), 128)),
1525
+ e.$slots.rect ? (S(), _("g", Tt, [(S(!0), _(p, null, Be(G.value, (t, n) => (S(), _("g", { key: `slot_${t.id}_${t.depth}` }, [(S(), _("foreignObject", {
1552
1526
  x: t.x0,
1553
1527
  y: t.y0,
1554
1528
  height: K(t),
@@ -1558,76 +1532,76 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1558
1532
  "pointer-events": "none",
1559
1533
  overflow: "hidden"
1560
1534
  }
1561
- }, [v("div", Et, [D(R) ? g("", !0) : T(e.$slots, "rect", Pe({ ref_for: !0 }, {
1535
+ }, [v("div", Dt, [E(R) ? g("", !0) : w(e.$slots, "rect", Fe({ ref_for: !0 }, {
1562
1536
  rect: {
1563
1537
  ...t,
1564
1538
  height: K(t),
1565
1539
  width: q(t),
1566
1540
  isSelected: !Z.value || Z.value.id === t.id
1567
1541
  },
1568
- shouldShow: Vn(t) || tr.value,
1569
- fontSize: Qn(t, n),
1570
- isZoom: tr.value,
1571
- textColor: D(te)(t.color)
1572
- }), void 0, !0, 0)])], 8, Tt))]))), 128))])) : g("", !0)
1542
+ shouldShow: zn(t) || $n.value,
1543
+ fontSize: Xn(t, n),
1544
+ isZoom: $n.value,
1545
+ textColor: E(te)(t.color)
1546
+ }), void 0, !0, 0)])], 8, Et))]))), 128))])) : g("", !0)
1573
1547
  ]),
1574
- T(e.$slots, "svg", x(b({
1548
+ w(e.$slots, "svg", b(y({
1575
1549
  svg: V.value,
1576
- isZoom: tr.value,
1550
+ isZoom: $n.value,
1577
1551
  rect: Z.value,
1578
1552
  config: I.value,
1579
- isPrintingImg: D(mn) || D(hn) || en.value,
1580
- isPrintingSvg: tn.value
1553
+ isPrintingImg: E(fn) || E(pn) || E(Xr),
1554
+ isPrintingSvg: E(Zr)
1581
1555
  })), void 0, !0)
1582
- ], 46, ht)),
1583
- D(jr) ? (C(), _("div", Dt, [T(e.$slots, "reset-action", { reset: D(Ar) }, () => [v("button", {
1556
+ ], 46, gt)),
1557
+ E(kr) ? (S(), _("div", Ot, [w(e.$slots, "reset-action", { reset: E(Or) }, () => [v("button", {
1584
1558
  "data-cy-reset": "",
1585
1559
  tabindex: "0",
1586
1560
  role: "button",
1587
1561
  class: "vue-data-ui-refresh-button",
1588
- style: S({
1562
+ style: x({
1589
1563
  background: I.value.style.chart.backgroundColor,
1590
1564
  cursor: L.value ? "pointer" : "default"
1591
1565
  }),
1592
- onClick: t[0] ||= (e) => D(Ar)(!0)
1566
+ onClick: t[0] ||= (e) => E(Or)(!0)
1593
1567
  }, [Ne(xe, {
1594
1568
  name: "refresh",
1595
1569
  stroke: I.value.style.chart.color
1596
1570
  }, null, 8, ["stroke"])], 4)], !0)])) : g("", !0),
1597
- e.$slots.hint ? (C(), _("div", Ot, [T(e.$slots, "hint", x(b({
1571
+ e.$slots.hint ? (S(), _("div", kt, [w(e.$slots, "hint", b(y({
1598
1572
  hint: I.value.a11y.translations.keyboardNavigation,
1599
- isVisible: an.value
1573
+ isVisible: nn.value
1600
1574
  })), void 0, !0)])) : g("", !0)
1601
1575
  ]),
1602
- e.$slots.watermark ? (C(), _("div", kt, [T(e.$slots, "watermark", x(b({ isPrinting: D(mn) || D(hn) || en.value || tn.value })), void 0, !0)])) : g("", !0),
1603
- v("div", { id: `legend-bottom-${j.value}` }, null, 8, At),
1604
- Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (C(), h(Ae, {
1576
+ e.$slots.watermark ? (S(), _("div", At, [w(e.$slots, "watermark", b(y({ isPrinting: E(fn) || E(pn) || E(Xr) || E(Zr) })), void 0, !0)])) : g("", !0),
1577
+ v("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
1578
+ Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Ae, {
1605
1579
  key: 7,
1606
- to: I.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
1580
+ to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1607
1581
  }, [v("div", {
1608
1582
  ref_key: "chartLegend",
1609
1583
  ref: Ht
1610
- }, [T(e.$slots, "legend", { legend: cr.value }, () => [I.value.style.chart.legend.show ? (C(), h(De, {
1584
+ }, [w(e.$slots, "legend", { legend: or.value }, () => [I.value.style.chart.legend.show ? (S(), h(De, {
1611
1585
  key: `legend_${qt.value}`,
1612
- legendSet: cr.value,
1613
- config: lr.value,
1614
- id: `treemap_legend_${j.value}`,
1586
+ legendSet: or.value,
1587
+ config: sr.value,
1588
+ id: `treemap_legend_${A.value}`,
1615
1589
  isCursorPointer: L.value,
1616
- onClickMarker: t[1] ||= ({ legend: e }) => fr(e)
1590
+ onClickMarker: t[1] ||= ({ legend: e }) => ur(e)
1617
1591
  }, {
1618
- item: k(({ legend: e, index: t }) => [D(R) ? g("", !0) : (C(), _("div", {
1592
+ item: O(({ legend: e, index: t }) => [E(R) ? g("", !0) : (S(), _("div", {
1619
1593
  key: 0,
1620
- onClick: (t) => fr(e),
1621
- style: S(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
1622
- }, Ve(e.display), 13, jt))]),
1623
- legendToggle: k(() => [cr.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(R) ? (C(), h(Ce, {
1594
+ onClick: (t) => ur(e),
1595
+ style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
1596
+ }, He(e.display), 13, Mt))]),
1597
+ legendToggle: O(() => [or.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(R) ? (S(), h(Ce, {
1624
1598
  key: 0,
1625
1599
  backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1626
1600
  color: I.value.style.chart.legend.selectAllToggle.color,
1627
1601
  fontSize: I.value.style.chart.legend.fontSize,
1628
1602
  checked: M.value.length > 0,
1629
1603
  isCursorPointer: L.value,
1630
- onToggle: dr
1604
+ onToggle: lr
1631
1605
  }, null, 8, [
1632
1606
  "backgroundColor",
1633
1607
  "color",
@@ -1642,15 +1616,15 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1642
1616
  "id",
1643
1617
  "isCursorPointer"
1644
1618
  ])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
1645
- e.$slots.source ? (C(), _("div", {
1619
+ e.$slots.source ? (S(), _("div", {
1646
1620
  key: 8,
1647
1621
  ref_key: "source",
1648
1622
  ref: Ut,
1649
1623
  dir: "auto"
1650
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1651
- Ne(D(Qe), {
1624
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1625
+ Ne(E($e), {
1652
1626
  teleportTo: I.value.style.chart.tooltip.teleportTo,
1653
- show: B.value.showTooltip && Lt.value,
1627
+ show: B.value.showTooltip && Rt.value,
1654
1628
  backgroundColor: I.value.style.chart.tooltip.backgroundColor,
1655
1629
  color: I.value.style.chart.tooltip.color,
1656
1630
  fontSize: I.value.style.chart.tooltip.fontSize,
@@ -1662,19 +1636,19 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1662
1636
  offsetX: I.value.style.chart.tooltip.offsetX,
1663
1637
  offsetY: I.value.style.chart.tooltip.offsetY,
1664
1638
  parent: N.value,
1665
- content: Rt.value,
1666
- isFullscreen: zt.value,
1667
- isCustom: D(ae)(I.value.style.chart.tooltip.customFormat),
1639
+ content: zt.value,
1640
+ isFullscreen: j.value,
1641
+ isCustom: E(ae)(I.value.style.chart.tooltip.customFormat),
1668
1642
  smooth: I.value.style.chart.tooltip.smooth,
1669
1643
  backdropFilter: I.value.style.chart.tooltip.backdropFilter,
1670
1644
  smoothForce: I.value.style.chart.tooltip.smoothForce,
1671
1645
  smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
1672
- isA11yMode: rn.value === "keyboard",
1673
- a11yPosition: nn.value
1646
+ isA11yMode: tn.value === "keyboard",
1647
+ a11yPosition: en.value
1674
1648
  }, {
1675
- "tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ..._r.value })), void 0, !0)]),
1676
- tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ..._r.value })), void 0, !0)]),
1677
- "tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ..._r.value })), void 0, !0)]),
1649
+ "tooltip-before": O(() => [w(e.$slots, "tooltip-before", b(y({ ...hr.value })), void 0, !0)]),
1650
+ tooltip: O(() => [w(e.$slots, "tooltip", b(y({ ...hr.value })), void 0, !0)]),
1651
+ "tooltip-after": O(() => [w(e.$slots, "tooltip-after", b(y({ ...hr.value })), void 0, !0)]),
1678
1652
  _: 3
1679
1653
  }, 8, [
1680
1654
  "teleportTo",
@@ -1700,30 +1674,30 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1700
1674
  "isA11yMode",
1701
1675
  "a11yPosition"
1702
1676
  ]),
1703
- Ft.value && I.value.userOptions.buttons.table ? (C(), h(Be(Kr.value.component), Pe({ key: 9 }, Kr.value.props, {
1677
+ It.value && I.value.userOptions.buttons.table ? (S(), h(Ve(Wr.value.component), Fe({ key: 9 }, Wr.value.props, {
1704
1678
  ref_key: "tableUnit",
1705
1679
  ref: Xt,
1706
- onClose: qr
1680
+ onClose: Gr
1707
1681
  }), je({
1708
- content: k(() => [(C(), h(D(Je), {
1682
+ content: O(() => [(S(), h(E(Ye), {
1709
1683
  key: `table_${Kt.value}`,
1710
- colNames: br.value.colNames,
1711
- head: br.value.head,
1712
- body: br.value.body,
1713
- config: br.value.config,
1714
- title: I.value.table.useDialog ? "" : Kr.value.title,
1684
+ colNames: vr.value.colNames,
1685
+ head: vr.value.head,
1686
+ body: vr.value.body,
1687
+ config: vr.value.config,
1688
+ title: I.value.table.useDialog ? "" : Wr.value.title,
1715
1689
  withCloseButton: !I.value.table.useDialog,
1716
1690
  isCursorPointer: L.value,
1717
- onClose: qr
1691
+ onClose: Gr
1718
1692
  }, {
1719
- th: k(({ th: e }) => [v("div", {
1693
+ th: O(({ th: e }) => [v("div", {
1720
1694
  innerHTML: e,
1721
1695
  style: {
1722
1696
  display: "flex",
1723
1697
  "align-items": "center"
1724
1698
  }
1725
- }, null, 8, Mt)]),
1726
- td: k(({ td: e }) => [Me(Ve(e.name || e), 1)]),
1699
+ }, null, 8, Nt)]),
1700
+ td: O(({ td: e }) => [Me(He(e.name || e), 1)]),
1727
1701
  _: 1
1728
1702
  }, 8, [
1729
1703
  "colNames",
@@ -1737,24 +1711,24 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
1737
1711
  _: 2
1738
1712
  }, [I.value.table.useDialog ? {
1739
1713
  name: "title",
1740
- fn: k(() => [Me(Ve(Kr.value.title), 1)]),
1714
+ fn: O(() => [Me(He(Wr.value.title), 1)]),
1741
1715
  key: "0"
1742
1716
  } : void 0, I.value.table.useDialog ? {
1743
1717
  name: "actions",
1744
- fn: k(() => [v("button", {
1718
+ fn: O(() => [v("button", {
1745
1719
  tabindex: "0",
1746
1720
  class: "vue-ui-user-options-button",
1747
- onClick: t[2] ||= (e) => yr(I.value.userOptions.callbacks.csv),
1748
- style: S({ cursor: L.value ? "pointer" : "default" })
1721
+ onClick: t[2] ||= (e) => _r(I.value.userOptions.callbacks.csv),
1722
+ style: x({ cursor: L.value ? "pointer" : "default" })
1749
1723
  }, [Ne(xe, {
1750
1724
  name: "fileCsv",
1751
- stroke: Kr.value.props.color
1725
+ stroke: Wr.value.props.color
1752
1726
  }, null, 8, ["stroke"])], 4)]),
1753
1727
  key: "1"
1754
1728
  } : void 0]), 1040)) : g("", !0),
1755
- T(e.$slots, "skeleton", {}, () => [D(R) ? (C(), h(de, { key: 0 })) : g("", !0)], !0)
1756
- ], 46, ot));
1729
+ w(e.$slots, "skeleton", {}, () => [E(R) ? (S(), h(de, { key: 0 })) : g("", !0)], !0)
1730
+ ], 46, st));
1757
1731
  }
1758
- }, [["__scopeId", "data-v-a997b3ea"]]);
1732
+ }, [["__scopeId", "data-v-da6e1542"]]);
1759
1733
  //#endregion
1760
- export { at as n, Pt as t };
1734
+ export { ot as n, Ft as t };