vue-data-ui 3.22.13 → 3.23.0

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