vue-data-ui 3.27.0 → 3.27.1

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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-C2W0uGrq.js +1 -0
  3. package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
  4. package/dist/BaseIcon-DdIyewwY.js +1 -0
  5. package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-DoYifY2y.js +1 -0
  8. package/dist/ColorPicker-MLwiwxl5.js +1 -0
  9. package/dist/DataTable-WNecJMcY.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-CHg1AQ3p.js +1 -0
  12. package/dist/Legend-D8YoT1RJ.js +1 -0
  13. package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
  14. package/dist/PackageVersion-CdkxOy58.js +1 -0
  15. package/dist/PenAndPaper-IMw576MC.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-Bp9YNtPc.js +1 -0
  20. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  21. package/dist/SparkTooltip-C5JMcBXT.js +1 -0
  22. package/dist/Title-BGYFqulv.js +1 -0
  23. package/dist/Tooltip-Cus2-XNQ.js +1 -0
  24. package/dist/UserOptions-DTxMeZv3.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-CIvU_04o.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-D8t3Bm7s.js +3 -0
  103. package/dist/exposedLib-DHtyEc_G.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-DiT4ivZ5.js +1 -0
  106. package/dist/labelUtils-CG3uVXoZ.js +1 -0
  107. package/dist/lib-CV_IANZ6.js +12 -0
  108. package/dist/package-DE5cU1Rg.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-BQSB1V3H.js +1 -0
  111. package/dist/render-common-BdZ5aRyn.js +1 -0
  112. package/dist/resolveChartConfig-DZg-korK.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CB186vF2.js +1 -0
  203. package/dist/useObjectBindings-Dse7YyAf.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-hLW3cv4N.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-DyYgLIZN.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
  222. package/dist/vue-ui-accordion-BNvevckx.js +1 -0
  223. package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
  224. package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
  225. package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
  226. package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
  227. package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
  228. package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
  229. package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
  230. package/dist/vue-ui-chord-B6_veyvO.js +21 -0
  231. package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
  232. package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
  233. package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
  234. package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
  235. package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
  236. package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
  237. package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
  238. package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
  239. package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
  240. package/dist/vue-ui-flow-Dru76A2O.js +3 -0
  241. package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
  242. package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
  243. package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
  244. package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
  245. package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
  246. package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
  247. package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
  248. package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
  250. package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
  251. package/dist/vue-ui-label-B4pkXBxc.js +7 -0
  252. package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
  253. package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
  254. package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
  255. package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
  256. package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
  261. package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
  262. package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
  263. package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
  264. package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
  265. package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
  266. package/dist/vue-ui-rings-BOti0NGb.js +1 -0
  267. package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
  268. package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
  269. package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
  270. package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
  271. package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
  272. package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
  274. package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
  276. package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
  277. package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
  278. package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
  279. package/dist/vue-ui-table-CaFVLHxE.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
  281. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  282. package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
  283. package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
  284. package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
  285. package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
  286. package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
  287. package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
  288. package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
  289. package/dist/vue-ui-world-DjMy_utm.js +19 -0
  290. package/dist/vue-ui-xy-DaozHMfg.js +31 -0
  291. package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
  292. package/dist/vue-ui-xy-rGHSI1am.js +24 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1745 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ft as i, Ht as a, S as o, X as s, at as c, en as l, et as u, i as d, nn as f, nt as ee, pt as te, r as ne, t as re, w as ie, zt as ae } from "./lib-D4wK6ljP.js";
3
- import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
- import { t as ce } from "./useConfig-D_6ZrPMD.js";
5
- import { t as le } from "./usePrinter-DdW2GSm0.js";
6
- import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as fe } from "./useNestedProp-DR_8JPol.js";
8
- import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as me } from "./useChartExport-iwOqiIWX.js";
10
- import { t as he } from "./useTransitions-g_zBREk2.js";
11
- import { t as ge } from "./img-Bb5rHcpO.js";
12
- import { n as _e } from "./Title-BMCuINbv.js";
13
- import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
15
- import { t as xe } from "./BaseIcon-Cx9FD751.js";
16
- import { t as Se } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Ce } from "./BaseLegendToggle-CP3sddwv.js";
18
- import { t as we } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as De } from "./Legend-CulFgjUY.js";
22
- import { t as Oe } from "./usePanZoom-CYU3B4T3.js";
23
- import { t as ke } from "./vue_ui_treemap-DoEtkRN6.js";
24
- import { Fragment as Ae, Teleport as je, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as Fe, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ze, onMounted as Be, openBlock as x, ref as S, renderList as Ve, renderSlot as C, resolveDynamicComponent as He, shallowRef as w, toDisplayString as Ue, toRefs as We, unref as T, useCssVars as Ge, useSlots as Ke, watch as qe, withCtx as E, withKeys as Je, withModifiers as Ye } from "vue";
25
- //#region src/treemap.js
26
- function Xe(e, t) {
27
- let n = e.length;
28
- if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
29
- {
30
- let r = Infinity, i = -Infinity, a = 0;
31
- for (let t = 0; t < n; t += 1) {
32
- let n = e[t].normalizedValue;
33
- n < r && (r = n), n > i && (i = n), a += n;
34
- }
35
- return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
36
- }
37
- }
38
- function Ze(e) {
39
- let { xOffset: t, yOffset: n, width: r, height: i } = e;
40
- return {
41
- x0: t,
42
- y0: n,
43
- x1: t + r,
44
- y1: n + i
45
- };
46
- }
47
- function Qe(e, t, n) {
48
- if (e.length === 0) return !0;
49
- {
50
- let r = e.concat(t);
51
- return Xe(e, n) >= Xe(r, n);
52
- }
53
- }
54
- function $e(e) {
55
- let t = [], n = e.length;
56
- for (let r = 0; r < n; r += 1) {
57
- let n = e[r], i = n.length;
58
- for (let e = 0; e < i; e += 1) t.push(n[e]);
59
- }
60
- return t;
61
- }
62
- function et(e, t) {
63
- return st({
64
- ...t,
65
- children: e
66
- });
67
- }
68
- function tt(e) {
69
- return (e.x1 - e.x0) * (e.y1 - e.y0);
70
- }
71
- function nt(e, t) {
72
- let { width: n, height: r, xOffset: i, yOffset: a } = at(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
- if (n >= r) {
74
- for (let t = 0; t < o; t += 1) {
75
- let n = e[t], r = d + n.normalizedValue / c, i = {
76
- x0: u,
77
- y0: d,
78
- x1: u + c,
79
- y1: r
80
- }, a = Object.assign({}, n, i);
81
- d = r, f.push(a);
82
- }
83
- return f;
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;
95
- }
96
- function rt(e) {
97
- let t = at(e), n = t.width, r = t.height;
98
- return Math.min(n, r);
99
- }
100
- function it(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 at(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 ot(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 = nt(a, o);
120
- return s.concat(e);
121
- }
122
- let t = rt(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 = D(o, t), r = nt(a, o), c = s.concat(r);
130
- i = i, a = [], o = n, s = c;
131
- }
132
- }
133
- }
134
- function st(e) {
135
- if (e.children === void 0 || !e.children.length) return [e];
136
- {
137
- let t = ot(it(e.children, tt(e)), [], e, []), n = t.length, r = [];
138
- for (let e = 0; e < n; e += 1) r.push(st(t[e]));
139
- return $e(r);
140
- }
141
- }
142
- function D(e, t) {
143
- let { width: n, height: r, xOffset: i, yOffset: a } = at(e);
144
- if (n >= r) {
145
- let e = t / r, o = n - e;
146
- return Ze({
147
- xOffset: i + e,
148
- yOffset: a,
149
- width: o,
150
- height: r
151
- });
152
- }
153
- {
154
- let e = t / n, o = r - e;
155
- return Ze({
156
- xOffset: i,
157
- yOffset: a + e,
158
- width: n,
159
- height: o
160
- });
161
- }
162
- }
163
- //#endregion
164
- //#region src/components/vue-ui-treemap.vue
165
- var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt = ["id"], ft = [
166
- "tabindex",
167
- "onClick",
168
- "onKeydown",
169
- "data-last-crumb",
170
- "onMouseenter",
171
- "onFocus"
172
- ], pt = { class: "vue-ui-treemap-crumb-unit" }, mt = { class: "vue-ui-treemap-crumb-unit-label" }, ht = {
173
- key: 0,
174
- style: {
175
- width: "24px",
176
- display: "flex",
177
- "align-items": "center"
178
- }
179
- }, gt = {
180
- key: 0,
181
- class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, _t = { style: { position: "relative" } }, vt = [
183
- "xmlns",
184
- "aria-describedby",
185
- "viewBox"
186
- ], yt = { key: 0 }, bt = [
187
- "x",
188
- "y",
189
- "height",
190
- "width",
191
- "fill",
192
- "rx",
193
- "stroke",
194
- "stroke-width",
195
- "onClick",
196
- "onMouseenter",
197
- "onMouseleave"
198
- ], xt = ["id"], St = [
199
- "x",
200
- "y",
201
- "width",
202
- "height"
203
- ], Ct = ["clip-path"], wt = ["transform"], Tt = ["transform"], Et = [
204
- "x",
205
- "y",
206
- "fill",
207
- "font-size",
208
- "font-family",
209
- "font-weight"
210
- ], Dt = { key: 0 }, Ot = [
211
- "x",
212
- "y",
213
- "height",
214
- "width"
215
- ], kt = {
216
- style: {
217
- width: "100%",
218
- height: "100%",
219
- overflow: "hidden"
220
- },
221
- class: "vue-ui-treemap-cell"
222
- }, At = {
223
- key: 0,
224
- "data-dom-to-png-ignore": "",
225
- class: "reset-wrapper"
226
- }, jt = {
227
- key: 1,
228
- style: {
229
- position: "absolute",
230
- top: "100%",
231
- left: "0",
232
- width: "100%"
233
- },
234
- "data-dom-to-png-ignore": "",
235
- "aria-hidden": "true"
236
- }, Mt = {
237
- key: 6,
238
- class: "vue-data-ui-watermark"
239
- }, Nt = ["id"], Pt = ["onClick"], Ft = { style: {
240
- display: "flex",
241
- "align-items": "center"
242
- } }, It = 4, Lt = /*#__PURE__*/ ve({
243
- __name: "vue-ui-treemap",
244
- props: {
245
- config: {
246
- type: Object,
247
- default() {
248
- return {};
249
- }
250
- },
251
- dataset: {
252
- type: Array,
253
- default() {
254
- return [];
255
- }
256
- }
257
- },
258
- emits: [
259
- "selectLegend",
260
- "selectDatapoint",
261
- "copyAlt"
262
- ],
263
- setup(e, { expose: ve, emit: Xe }) {
264
- Ge((e) => ({ v798593f9: Ti.value }));
265
- let Ze = Fe(() => import("./DataTable-CjF_An2h.js")), Qe = Fe(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), $e = Fe(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), tt = Fe(() => import("./Tooltip-C4ZTwkLF.js")), nt = Fe(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), rt = Fe(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), it = Fe(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_treemap: at } = ce(), { isThemeValid: ot, warnInvalidTheme: st } = pe(), D = e, ct = Xe, Lt = Ke(), Rt = p(() => !!D.dataset && D.dataset.length), zt = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), O = S(s()), Bt = S(!1), Vt = S(""), Ht = S(!1), Ut = S(0), k = S([]), A = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S([]), Zt = S(null), Qt = S(!1), $t = S(null), en = S(null), tn = S(null), nn = S(/* @__PURE__ */ new Map()), M = S(null), rn = S({
266
- x: 0,
267
- y: 0
268
- }), an = S("pointer"), on = S(!1), N = S(gn()), P = p(() => N.value.userOptions), F = p(() => N.value.style.chart.tooltip), I = p(() => N.value.style.chart.legend), L = p(() => N.value.style.chart.layout.labels), R = p(() => N.value.style.chart.layout), z = p(() => N.value.style.chart);
269
- oe({
270
- config: () => N.value,
271
- dataset: () => D.dataset,
272
- component: "VueUiTreemap",
273
- rules: [
274
- se.emptyArray,
275
- {
276
- test: (e) => e.length === 1 && e[0]?.children && e[0].children.length < 6 && e[0].children.length > 0 || e.flatMap((e) => e?.children?.length ?? 0).reduce((e, t) => e + t, 0) < 6,
277
- message: [
278
- "👀 The number of data points is < 6. Consider:",
279
- "",
280
- "▶️ Using another type of chart instead to better show proportions: VueUiDonut, VueUiWaffle"
281
- ]
282
- },
283
- {
284
- test: (e) => e.length === 1 && e[0]?.children && e[0].children.length === 0,
285
- message: [
286
- "👀 There is a series defined in the dataset but it has no children items.",
287
- "",
288
- "▶️ Add children items to your series."
289
- ]
290
- }
291
- ]
292
- });
293
- let { transitionEnabled: sn } = he({
294
- config: () => N.value.transitions,
295
- dataset: () => D.dataset
296
- }), B = p(() => N.value.userOptions.useCursorPointer), cn = p(() => f({
297
- defaultConfig: {
298
- userOptions: { show: !1 },
299
- style: { chart: {
300
- backgroundColor: "#999999",
301
- layout: {
302
- labels: { showDefaultLabels: !1 },
303
- rects: { stroke: "#6A6A6A" }
304
- },
305
- legend: { backgroundColor: "transparent" }
306
- } }
307
- },
308
- userConfig: N.value.skeletonConfig ?? {}
309
- })), { loading: ln, FINAL_DATASET: un, manualLoading: dn } = ue({
310
- ...We(D),
311
- FINAL_CONFIG: N,
312
- prepareConfig: gn,
313
- skeletonDataset: D.config?.skeletonDataset ?? [{
314
- name: "_",
315
- value: 53,
316
- color: "#CACACA90",
317
- children: [
318
- {
319
- name: "_",
320
- value: 21
321
- },
322
- {
323
- name: "_",
324
- value: 13
325
- },
326
- {
327
- name: "_",
328
- value: 8
329
- },
330
- {
331
- name: "_",
332
- value: 5
333
- },
334
- {
335
- name: "_",
336
- value: 3
337
- },
338
- {
339
- name: "_",
340
- value: 2
341
- },
342
- {
343
- name: "_",
344
- value: 1
345
- }
346
- ]
347
- }],
348
- skeletonConfig: f({
349
- defaultConfig: N.value,
350
- userConfig: cn.value
351
- })
352
- }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Te({ config: N.value }), { svgRef: hn } = Ee({ config: z.value.title });
353
- function gn() {
354
- let e = fe({
355
- userConfig: D.config,
356
- defaultConfig: at
357
- }), t = e.theme;
358
- if (!t) return e;
359
- if (!ot.value(e)) return st(e), e;
360
- let n = fe({
361
- userConfig: ke[t] || D.config,
362
- defaultConfig: e
363
- }), r = fe({
364
- userConfig: D.config,
365
- defaultConfig: n
366
- });
367
- return {
368
- ...r,
369
- customPalette: r.customPalette.length ? r.customPalette : l[t] || a
370
- };
371
- }
372
- function _n(e) {
373
- let t = u(e);
374
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
375
- }
376
- let vn = _n(D.config);
377
- qe(() => D.config, (e, t) => {
378
- let n = _n(e), r = n !== vn;
379
- vn = n;
380
- let i = gn();
381
- if (!r) {
382
- N.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = N.value.style.chart.tooltip.show;
383
- return;
384
- }
385
- ln.value || (N.value = i), fn.value = !N.value.userOptions.showOnChartHover, Jt.value += 1, Yt.value += 1, Xt.value += 1, V.value.showTable = N.value.table.show, V.value.showTooltip = F.value.show, V.value.showZoom = z.value.zoom?.show ?? !1;
386
- }, { deep: !0 });
387
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = le({
388
- elementId: `treemap_${O.value}`,
389
- fileName: z.value.title.text || "vue-ui-treemap",
390
- options: N.value.userOptions.print
391
- }), Cn = p(() => N.value.userOptions.show && !z.value.title.text), wn = p(() => ie(N.value.customPalette)), V = S({
392
- showTable: N.value.table.show,
393
- showTooltip: F.value.show,
394
- showZoom: z.value.zoom?.show ?? !1
395
- });
396
- qe(N, () => {
397
- V.value = {
398
- showTable: N.value.table.show,
399
- showTooltip: F.value.show,
400
- showZoom: z.value.zoom?.show ?? !1
401
- };
402
- }, { immediate: !0 });
403
- let Tn = S({
404
- height: z.value.height,
405
- width: z.value.width
406
- });
407
- function En(e) {
408
- let t = A.value, n = Tn.value.height;
409
- return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
410
- }
411
- function Dn() {
412
- if (!Zt.value || X.value.length <= 1) return 0;
413
- let e = Zt.value, t = getComputedStyle(e);
414
- return En(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
415
- }
416
- let H = p(() => {
417
- let e = z.value.padding, t = Tn.value.width, n = Tn.value.height, r = Dn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
418
- return {
419
- left: i,
420
- top: o,
421
- right: a,
422
- bottom: s,
423
- width: a - i,
424
- height: Math.max(0, s - o),
425
- vbWidth: t,
426
- vbHeight: n - r,
427
- offsetY: r
428
- };
429
- }), U = S(u(un.value)), W = S(U.value), On = w(/* @__PURE__ */ new Map());
430
- qe([U, () => N.value], () => {
431
- tn.value = null, nn.value = /* @__PURE__ */ new Map();
432
- }, { deep: !0 }), qe(() => k.value, () => {
433
- tn.value = null, nn.value = /* @__PURE__ */ new Map(), Mn(), Xt.value += 1, Yt.value += 1;
434
- }, { deep: !0 }), qe([() => Tn.value.width, () => Tn.value.height], () => {
435
- nn.value = /* @__PURE__ */ new Map();
436
- });
437
- function kn(e) {
438
- Array.isArray(e) && e.forEach((e, t) => {
439
- e.id ||= s(), e.sourceColor === void 0 && (e.sourceColor = o(e.color) || null);
440
- let n = e.sourceColor || On.value.get(e.id) || wn.value[t] || a[t] || a[t % a.length];
441
- n = o(n), On.value.set(e.id, n), e.color = n, An(e, n);
442
- });
443
- }
444
- function An(e, t) {
445
- Array.isArray(e.children) && e.children.forEach((n) => {
446
- n.id ||= s(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = o(n.color) || null);
447
- let r = n.sourceColor || t;
448
- n.color = r, An(n, r);
449
- });
450
- }
451
- function jn(e) {
452
- let t = Y(e);
453
- for (; t?.parentId;) t = Y(t.parentId);
454
- return t?.id ?? null;
455
- }
456
- function Mn() {
457
- let e = U.value.filter((e) => !k.value.includes(e.id));
458
- if (!j.value.length) {
459
- W.value = e;
460
- return;
461
- }
462
- let t = j.value[j.value.length - 1], n = Y(t);
463
- if (!n) {
464
- j.value = [], W.value = e;
465
- return;
466
- }
467
- let r = jn(n.id);
468
- if (r && k.value.includes(r)) {
469
- j.value = [], W.value = e;
470
- return;
471
- }
472
- W.value = [n];
473
- }
474
- qe(() => un.value, () => {
475
- U.value = u(un.value), kn(U.value), Mn(), Xt.value += 1, Yt.value += 1;
476
- }, {
477
- deep: !0,
478
- immediate: !0,
479
- flush: "post"
480
- });
481
- let Nn = w(null), Pn = w(null);
482
- Be(() => {
483
- Qt.value = !0, In();
484
- });
485
- let Fn = p(() => N.value.debug);
486
- Be(() => {
487
- Lt["chart-background"] && Fn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
488
- });
489
- function In() {
490
- if (ae(D.dataset) && c({
491
- componentName: "VueUiTreemap",
492
- type: "dataset",
493
- debug: Fn.value
494
- }), kn(U.value), ae(D.dataset) || (dn.value = N.value.loading), N.value.responsive) {
495
- let e = ye(() => {
496
- let { width: e, height: t } = be({
497
- chart: A.value,
498
- title: z.value.title.text ? Wt.value : null,
499
- legend: I.value.show ? Gt.value : null,
500
- source: Kt.value,
501
- noTitle: qt.value
502
- });
503
- requestAnimationFrame(() => {
504
- Tn.value.width = e, Tn.value.height = t - 12;
505
- });
506
- });
507
- Nn.value && (Pn.value && Nn.value.unobserve(Pn.value), Nn.value.disconnect()), Nn.value = new ResizeObserver(e), Pn.value = A.value.parentNode, Nn.value.observe(Pn.value);
508
- }
509
- }
510
- ze(() => {
511
- Nn.value && (Pn.value && Nn.value.unobserve(Pn.value), Nn.value.disconnect());
512
- });
513
- let Ln = p(() => W.value.map((e, t) => ({
514
- ...e,
515
- color: o(e.color) || wn.value[t] || a[t] || a[t % a.length]
516
- })).filter((e) => !k.value.includes(e.id))), Rn = p(() => U.value.filter((e) => !k.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), zn = p({
517
- get() {
518
- let e = [...Ln.value];
519
- return R.value.sorted && (e = [...Ln.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
520
- },
521
- set(e) {
522
- return e;
523
- }
524
- });
525
- function Bn(e, t) {
526
- return e.value / t;
527
- }
528
- function Vn(e, t, n) {
529
- let r = R.value.rects.colorRatio - Bn(t, n);
530
- return i(e, r < 0 ? 0 : r);
531
- }
532
- function Hn(e) {
533
- return Array.isArray(e.children) && e.children.length > 0;
534
- }
535
- function Un(e) {
536
- return [...e].sort((e, t) => {
537
- let n = Hn(e), r = Hn(t);
538
- if (n !== r) return n - r;
539
- let i = Number(e.value) || 0;
540
- return (Number(t.value) || 0) - i;
541
- });
542
- }
543
- function Wn(e, t, n, r, i) {
544
- return Un(e).map((e, s) => {
545
- let c = e.sourceColor || o(e.color) || o(t) || wn.value[s] || a[s] || a[s % a.length], l = e.sourceColor ? e.sourceColor : Vn(c, e, r), u = Bn(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;
546
- return {
547
- ...e,
548
- color: l,
549
- proportion: u,
550
- parentName: n,
551
- rootId: d,
552
- children: Array.isArray(e.children) && e.children.length ? Wn(e.children, c, e.name, f, d) : void 0
553
- };
554
- });
555
- }
556
- function Gn(e) {
557
- let t = ir(e), n = Kn(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;
558
- return u <= l || f <= d ? null : {
559
- x0: l,
560
- y0: d,
561
- x1: u,
562
- y1: f
563
- };
564
- }
565
- function Kn(e) {
566
- return L.value.hideUnderProportion === 0 || qn(e);
567
- }
568
- function qn(e) {
569
- let t = Number(L.value.hideUnderProportion);
570
- return !Number.isFinite(t) || t <= 0 || e.proportion > t;
571
- }
572
- function Jn(e, t, n = 0, r = null) {
573
- if (!Array.isArray(e) || !e.length) return [];
574
- let i = e.map((e) => {
575
- let { children: t, ...n } = e;
576
- return { ...n };
577
- }), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = et(i, t), c = [];
578
- for (let e of s) {
579
- let t = a.get(e.id) || [], i = o.get(e.id), s = {
580
- ...e,
581
- depth: n,
582
- parentId: r ?? e.parentId ?? null,
583
- color: i?.color ?? e.color ?? null,
584
- children: t,
585
- isVisibleNode: !0,
586
- showLabel: Kn(e)
587
- };
588
- if (c.push(s), t.length) {
589
- let r = Gn(s);
590
- r && c.push(...Jn(t, r, n + 1, e.id));
591
- }
592
- }
593
- return c;
594
- }
595
- let Yn = p(() => {
596
- let e = W.value.length ? W.value : zn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
597
- return Jn(e.map((e, n) => {
598
- let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...c } = e, l = e.sourceColor || o(e.color) || On.value.get(e.id) || wn.value[n] || a[n] || a[n % a.length], u = e.sourceColor ? e.sourceColor : Vn(l, e, t);
599
- return {
600
- ...c,
601
- id: e.id || s(),
602
- parentId: e.parentId ?? null,
603
- name: e.name,
604
- value: e.value,
605
- color: u,
606
- proportion: (Number(e.value) || 0) / t,
607
- children: Array.isArray(e.children) && e.children.length ? Wn(e.children, l, e.name, r || 1) : void 0
608
- };
609
- }), {
610
- x0: H.value.left,
611
- y0: H.value.top,
612
- x1: H.value.left + H.value.width,
613
- y1: H.value.top + H.value.height
614
- });
615
- }), G = p(() => Yn.value);
616
- function Xn(e) {
617
- return (Z.value && Z.value.id === e.id ? R.value.rects.selected.strokeWidth : R.value.rects.strokeWidth) * Br.value;
618
- }
619
- function K({ y0: e, y1: t }) {
620
- return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
621
- }
622
- function q({ x0: e, x1: t }) {
623
- return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
624
- }
625
- function Zn() {
626
- let e = L.value, t = Number(e.minFontSize), n = Number(e.fontSize), r = Math.max(0, Math.min(Number.isFinite(t) ? t : 0, Number.isFinite(n) ? n : 0));
627
- return {
628
- lowerBound: r,
629
- upperBound: Math.max(r, Number.isFinite(n) ? n : r)
630
- };
631
- }
632
- function Qn(e) {
633
- let t = Math.min(4, Math.max(e * .25, .5));
634
- return {
635
- paddingX: t,
636
- paddingTop: t
637
- };
638
- }
639
- function $n(e, t) {
640
- let { paddingX: n, paddingTop: r } = Qn(t), i = t * 1.1;
641
- return {
642
- x: e.x0 + n,
643
- y: e.y0 + r,
644
- width: Math.max(q(e) - n * 2, 0),
645
- height: Math.max(K(e) - r * 2, 0),
646
- lineHeight: i
647
- };
648
- }
649
- function er(e, n) {
650
- return d(L.value.formatter, e.value, t({
651
- p: L.value.prefix,
652
- v: e.value,
653
- s: L.value.suffix,
654
- r: F.value.roundingValue
655
- }), {
656
- datapoint: e,
657
- seriesIndex: n
658
- });
659
- }
660
- function tr(e, t) {
661
- let n = er(e, t);
662
- return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
663
- }
664
- function nr(e, t, n) {
665
- let r = tr(e, n), i = $n(e, t);
666
- return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => _i(e, t, n === 0 ? 500 : 400) <= i.width);
667
- }
668
- function rr(e, t, n, r) {
669
- let i = tr(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);
670
- return Math.max(n, Math.min(r, u, d));
671
- }
672
- function ir(e, t) {
673
- let { lowerBound: n, upperBound: r } = Zn(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, rr(e, t, n, r));
674
- if (nr(e, o, t) || !nr(e, n, t)) return o;
675
- let s = n, c = o, l = n;
676
- for (let n = 0; n < 8; n += 1) {
677
- let n = (s + c) / 2;
678
- nr(e, n, t) ? (l = n, s = n) : c = n;
679
- }
680
- let u = Math.max(n, o * .7);
681
- return l >= u ? l : o;
682
- }
683
- function ar(e) {
684
- Ht.value = e, Ut.value += 1;
685
- }
686
- let J = p(() => ({
687
- x: 0,
688
- y: 0,
689
- width: H.value.vbWidth,
690
- height: H.value.vbHeight
691
- }));
692
- function Y(e, t = U.value) {
693
- for (let n of t) {
694
- if (n.id === e) return n;
695
- if (n.children) {
696
- let t = Y(e, n.children);
697
- if (t) return t;
698
- }
699
- }
700
- return null;
701
- }
702
- function or(e) {
703
- let t = [], n = Y(e);
704
- for (; n && n.parentId;) {
705
- let e = Y(n.parentId);
706
- if (!e) break;
707
- t.unshift(e.id), n = e;
708
- }
709
- return t;
710
- }
711
- let sr = p(() => j.value.length > 0);
712
- function cr() {
713
- W.value = U.value.slice(), j.value = [], ct("selectDatapoint", void 0);
714
- }
715
- function lr() {
716
- return j.value[j.value.length - 1] ?? null;
717
- }
718
- function ur(e, t, n) {
719
- j.value = [...or(e.id), e.id], W.value = [e], N.value.events.datapointClick && N.value.events.datapointClick({
720
- datapoint: t ?? e,
721
- seriesIndex: n
722
- }), ct("selectDatapoint", t ?? e);
723
- }
724
- function dr(e, t) {
725
- let n = lr();
726
- if (!n) {
727
- cr();
728
- return;
729
- }
730
- let r = Y(n);
731
- if (!r?.parentId) {
732
- N.value.events.datapointClick && N.value.events.datapointClick({
733
- datapoint: e,
734
- seriesIndex: t
735
- }), cr();
736
- return;
737
- }
738
- let i = Y(r.parentId);
739
- if (!i) {
740
- cr();
741
- return;
742
- }
743
- j.value = [...or(i.id), i.id], W.value = [i], N.value.events.datapointClick && N.value.events.datapointClick({
744
- datapoint: e,
745
- seriesIndex: t
746
- }), ct("selectDatapoint", e);
747
- }
748
- function fr(e, t) {
749
- if (!e) {
750
- cr();
751
- return;
752
- }
753
- let n = Y(e.id);
754
- if (n) {
755
- if (lr() === n.id) {
756
- dr(e, t);
757
- return;
758
- }
759
- ur(n, e, t);
760
- }
761
- }
762
- function pr(e) {
763
- return e ? lr() === e.id : !1;
764
- }
765
- let X = p(() => {
766
- let e = [{
767
- id: null,
768
- label: "All"
769
- }];
770
- if (j.value.length > 0) {
771
- let t = Y(j.value[j.value.length - 1]), n = [];
772
- for (; t;) n.unshift(t), t = t.parentId ? Y(t.parentId) : null;
773
- for (let t of n) e.push({
774
- id: t.id,
775
- label: t.name,
776
- node: t
777
- });
778
- }
779
- return e;
780
- }), Z = w(null), mr = p(() => U.value.map((e, t) => ({
781
- ...e,
782
- color: o(e.color) || wn.value[t] || a[t] || a[t % a.length],
783
- shape: "square"
784
- })).sort((e, t) => t.value - e.value).map((e, n) => {
785
- let r = e.value / U.value.map((e) => e.value).reduce((e, t) => e + t, 0);
786
- return {
787
- ...e,
788
- proportion: r,
789
- isSegregated: k.value.includes(e.id),
790
- segregate: () => vr(e),
791
- opacity: k.value.includes(e.id) ? .5 : 1,
792
- display: `${e.name}${I.value.showPercentage || I.value.showValue ? ": " : ""}${I.value.showValue ? d(L.value.formatter, e.value, t({
793
- p: L.value.prefix,
794
- v: e.value,
795
- s: L.value.suffix,
796
- r: I.value.roundingValue
797
- }), { datapoint: e }) : ""}${I.value.showPercentage ? k.value.includes(e.id) ? `${I.value.showValue ? " (" : ""}- %${I.value.showValue ? ")" : ""}` : `${I.value.showValue ? " (" : ""}${isNaN(e.value / Rn.value) ? "-" : (e.value / Rn.value * 100).toFixed(I.value.roundingPercentage)}%${I.value.showValue ? ")" : ""}` : ""}`
798
- };
799
- })), hr = p(() => ({
800
- cy: "treemap-div-legend",
801
- backgroundColor: I.value.backgroundColor,
802
- color: I.value.color,
803
- fontSize: I.value.fontSize,
804
- paddingBottom: 12,
805
- fontWeight: I.value.bold ? "bold" : ""
806
- })), gr = p(() => k.value.length === mr.value.length);
807
- function _r() {
808
- k.value.length ? k.value = [] : mr.value.forEach((e) => {
809
- k.value.push(e.id);
810
- }), ct("selectLegend", U.value.filter((e) => !k.value.includes(e.id)));
811
- }
812
- function vr(e) {
813
- Z.value = null, k.value.includes(e.id) ? k.value = k.value.filter((t) => t !== e.id) : k.value.length < D.dataset.length - 1 && k.value.push(e.id), ct("selectLegend", U.value.filter((e) => !k.value.includes(e.id)));
814
- }
815
- function yr(e) {
816
- return U.value.length ? U.value.find((t) => t.name === e) || (Fn.value && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (Fn.value && console.warn("VueUiTreemap - There are no series to show."), null);
817
- }
818
- function br(e) {
819
- let t = yr(e);
820
- t !== null && k.value.includes(t.id) && vr({ id: t.id });
821
- }
822
- function xr(e) {
823
- let t = yr(e);
824
- t !== null && (k.value.includes(t.id) || vr({ id: t.id }));
825
- }
826
- function Sr({ datapoint: e, seriesIndex: t }) {
827
- Z.value = null, Bt.value = !1, M.value = null, an.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
828
- datapoint: e,
829
- seriesIndex: t
830
- });
831
- }
832
- let Cr = S(null);
833
- function wr({ datapoint: e, seriesIndex: n, triggerMode: i = "pointer" }) {
834
- if (gr.value || i === "pointer" && Pr.value) return;
835
- N.value.events.datapointEnter && N.value.events.datapointEnter({
836
- datapoint: e,
837
- seriesIndex: n
838
- }), M.value = n, an.value = i, Z.value = e, Cr.value = {
839
- datapoint: e,
840
- seriesIndex: n,
841
- config: N.value,
842
- series: Ln.value
843
- };
844
- let a = F.value.customFormat;
845
- if (r(a) && te(() => a({
846
- seriesIndex: n,
847
- datapoint: e,
848
- series: Ln.value,
849
- config: N.value
850
- }))) Vt.value = a({
851
- seriesIndex: n,
852
- datapoint: e,
853
- series: Ln.value,
854
- config: N.value
855
- });
856
- else {
857
- let r = "";
858
- r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, r += `<b>${d(L.value.formatter, e.value, t({
859
- p: L.value.prefix,
860
- v: e.value,
861
- s: L.value.suffix,
862
- r: F.value.roundingValue
863
- }), {
864
- datapoint: e,
865
- seriesIndex: n
866
- })}</b>`, Vt.value = `<div>${r}</div>`;
867
- }
868
- Bt.value = !0;
869
- }
870
- let Q = p(() => ({
871
- head: G.value.map((e) => ({
872
- name: e.name,
873
- color: e.color
874
- })),
875
- body: G.value.map((e) => e.value)
876
- }));
877
- function Tr(e = null) {
878
- Le(() => {
879
- let t = Q.value.head.map((e, t) => [
880
- [e.name],
881
- [Q.value.body[t]],
882
- [isNaN(Q.value.body[t] / Rn.value) ? "-" : Q.value.body[t] / Rn.value * 100]
883
- ]), r = [
884
- [z.value.title.text],
885
- [z.value.title.subtitle.text],
886
- [
887
- [""],
888
- ["val"],
889
- ["%"]
890
- ]
891
- ].concat(t), i = n(r);
892
- e ? e(i) : ee({
893
- csvContent: i,
894
- title: z.value.title.text || "vue-ui-treemap"
895
- });
896
- });
897
- }
898
- let Er = p(() => {
899
- let e = [
900
- N.value.table.columnNames.series,
901
- N.value.table.columnNames.value,
902
- N.value.table.columnNames.percentage
903
- ], n = Q.value.head.map((e, n) => {
904
- let r = d(L.value.formatter, Q.value.body[n], t({
905
- p: L.value.prefix,
906
- v: Q.value.body[n],
907
- s: L.value.suffix,
908
- r: N.value.table.td.roundingValue
909
- }));
910
- return [
911
- {
912
- color: e.color,
913
- name: e.name,
914
- shape: "square"
915
- },
916
- r,
917
- isNaN(Q.value.body[n] / Rn.value) ? "-" : t({
918
- v: Q.value.body[n] / Rn.value * 100,
919
- s: "%",
920
- r: N.value.table.td.roundingPercentage
921
- })
922
- ];
923
- }), r = {
924
- th: {
925
- backgroundColor: N.value.table.th.backgroundColor,
926
- color: N.value.table.th.color,
927
- outline: N.value.table.th.outline
928
- },
929
- td: {
930
- backgroundColor: N.value.table.td.backgroundColor,
931
- color: N.value.table.td.color,
932
- outline: N.value.table.td.outline
933
- },
934
- breakpoint: N.value.table.responsiveBreakpoint
935
- };
936
- return {
937
- colNames: [N.value.table.columnNames.series, N.value.table.columnNames.value],
938
- head: e,
939
- body: n,
940
- config: r
941
- };
942
- });
943
- function Dr() {
944
- return G.value;
945
- }
946
- function Or() {
947
- V.value.showTable = !V.value.showTable;
948
- }
949
- function kr() {
950
- V.value.showTooltip = !V.value.showTooltip;
951
- }
952
- function Ar() {
953
- V.value.showZoom = !V.value.showZoom;
954
- }
955
- let jr = S(!1);
956
- function Mr() {
957
- jr.value = !jr.value;
958
- }
959
- let Nr = p(() => !jr.value && V.value.showZoom), Pr = S(null), Fr = S(!1), { viewBox: $, resetZoom: Ir, isZoom: Lr, setInitialViewBox: Rr, scale: zr } = Oe(hn, {
960
- x: J.value.x,
961
- y: J.value.y,
962
- width: Math.max(10, J.value.width),
963
- height: Math.max(10, J.value.height)
964
- }, 1, Nr), Br = p(() => 1 / zr.value), Vr = p(() => Math.min(1, L.value.fontSizeZoomFactor / Math.max(zr.value, 1e-4))), Hr = p(() => `scale(${Vr.value})`), Ur = p(() => V.value.showZoom || Lr.value);
965
- qe([
966
- () => J.value.x,
967
- () => J.value.y,
968
- () => J.value.width,
969
- () => J.value.height
970
- ], () => {
971
- Le(() => {
972
- Rr({
973
- x: J.value.x,
974
- y: J.value.y,
975
- width: Math.max(10, J.value.width),
976
- height: Math.max(10, J.value.height)
977
- });
978
- });
979
- }, { immediate: !0 });
980
- function Wr(e) {
981
- Nr.value && (e.button === void 0 || e.button === 0) && (Pr.value = {
982
- x: e.clientX,
983
- y: e.clientY
984
- }, Fr.value = !1);
985
- }
986
- function Gr(e) {
987
- if (!Nr.value || !Pr.value) return;
988
- let t = e.clientX - Pr.value.x, n = e.clientY - Pr.value.y;
989
- Math.hypot(t, n) > It && (Fr.value = !0);
990
- }
991
- function Kr() {
992
- Pr.value = null, Fr.value && window.setTimeout(() => {
993
- Fr.value = !1;
994
- }, 0);
995
- }
996
- function qr(e, t) {
997
- Fr.value || fr(e, t);
998
- }
999
- let Jr = S(null);
1000
- function Yr(e) {
1001
- Jr.value = e;
1002
- }
1003
- function Xr() {
1004
- Jr.value = null;
1005
- }
1006
- async function Zr({ scale: e = 2 } = {}) {
1007
- if (!A.value) return;
1008
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
1009
- domElement: A.value,
1010
- base64: !0,
1011
- img: !0,
1012
- scale: e
1013
- });
1014
- return {
1015
- imageUri: i,
1016
- base64: a,
1017
- title: z.value.title.text,
1018
- width: t,
1019
- height: n,
1020
- aspectRatio: r
1021
- };
1022
- }
1023
- let Qr = p(() => {
1024
- let e = N.value.table.useDialog && !N.value.table.show, t = V.value.showTable;
1025
- return {
1026
- component: e ? it : $e,
1027
- title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
1028
- props: e ? {
1029
- backgroundColor: N.value.table.th.backgroundColor,
1030
- color: N.value.table.th.color,
1031
- headerColor: N.value.table.th.color,
1032
- headerBg: N.value.table.th.backgroundColor,
1033
- isFullscreen: Ht.value,
1034
- fullscreenParent: A.value,
1035
- forcedWidth: Math.min(800, window.innerWidth * .8),
1036
- isCursorPointer: B.value
1037
- } : {
1038
- hideDetails: !0,
1039
- config: {
1040
- open: t,
1041
- maxHeight: 1e4,
1042
- body: {
1043
- backgroundColor: z.value.backgroundColor,
1044
- color: z.value.color
1045
- },
1046
- head: {
1047
- backgroundColor: z.value.backgroundColor,
1048
- color: z.value.color
1049
- }
1050
- }
1051
- }
1052
- };
1053
- });
1054
- qe(() => V.value.showTable, (e) => {
1055
- N.value.table.show || (e && N.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
1056
- });
1057
- function $r() {
1058
- V.value.showTable = !1, en.value && en.value.setTableIconState(!1);
1059
- }
1060
- let ei = p(() => mr.value.map((e) => ({
1061
- ...e,
1062
- name: e.display
1063
- }))), ti = p(() => z.value.backgroundColor), ni = p(() => z.value.title), { isCallbackImaging: ri, isCallbackSvg: ii, generateSvg: ai, onGenerateImage: oi } = me({
1064
- svg: hn,
1065
- title: ni,
1066
- legend: I,
1067
- legendItems: ei,
1068
- backgroundColor: ti,
1069
- getSvgCallback: () => N.value.userOptions.callbacks.svg,
1070
- generateImage: Sn
1071
- });
1072
- function si(e, t) {
1073
- let n = ir(e, t), { paddingX: r, paddingTop: i } = Qn(n);
1074
- return {
1075
- fontSize: n,
1076
- paddingX: r,
1077
- paddingTop: i,
1078
- lineHeight: n * 1.1
1079
- };
1080
- }
1081
- function ci(e) {
1082
- return ne(e.color ?? z.value.backgroundColor);
1083
- }
1084
- function li({ availableHeight: e, lineHeight: t, lineIndex: n }) {
1085
- if (n === 0) return Infinity;
1086
- let r = e / (n + 1);
1087
- return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
1088
- }
1089
- function ui() {
1090
- return Number(L.value.hideUnderProportion) === 0;
1091
- }
1092
- function di(e) {
1093
- let t = Vr.value;
1094
- return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Hr.value;
1095
- }
1096
- function fi({ rect: e, seriesIndex: t }) {
1097
- if (!e || !L.value.showDefaultLabels || !Kn(e)) return null;
1098
- let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = si(e, t), o = ci(e), s = tr(e, t).map((e) => String(e ?? "")), c = $n(e, n);
1099
- if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
1100
- let l = ui(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${O.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
1101
- return {
1102
- key: pi(e),
1103
- clipId: d,
1104
- clipX: f,
1105
- clipY: ee,
1106
- clipWidth: te,
1107
- clipHeight: ne,
1108
- translate: `translate(${e.x0}, ${e.y0})`,
1109
- alwaysShowAllLines: l,
1110
- allLinesScaleCap: u,
1111
- lines: s.map((t, s) => ({
1112
- key: `${e.id}_${s}`,
1113
- text: t,
1114
- x: r,
1115
- y: i + a * s,
1116
- maxZoomFactor: li({
1117
- availableHeight: c.height,
1118
- lineHeight: a,
1119
- lineIndex: s
1120
- }),
1121
- fill: o,
1122
- fontSize: n,
1123
- fontFamily: N.value.style.fontFamily,
1124
- fontWeight: s === 0 ? 500 : 400
1125
- }))
1126
- };
1127
- }
1128
- function pi(e) {
1129
- return `${e.id}`;
1130
- }
1131
- let mi = p(() => Lt.rect || ln.value || !L.value.showDefaultLabels || gr.value ? [] : G.value.map((e, t) => e.showLabel ? fi({
1132
- rect: e,
1133
- seriesIndex: t
1134
- }) : null).filter(Boolean)), hi;
1135
- function gi() {
1136
- return typeof document > "u" ? null : (hi ||= document.createElement("canvas"), hi.getContext("2d"));
1137
- }
1138
- function _i(e, t, n = 400) {
1139
- let r = gi();
1140
- return r ? (r.font = `${n} ${t}px ${N.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
1141
- }
1142
- function vi(e) {
1143
- let t = R.value.rects.borderRadius, n = q(e), r = K(e);
1144
- return Math.min(t, Math.min(n, r) / 6);
1145
- }
1146
- async function yi() {
1147
- if (ct("copyAlt", {
1148
- config: N.value,
1149
- dataset: G.value
1150
- }), !N.value.userOptions.callbacks.altCopy) {
1151
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1152
- return;
1153
- }
1154
- await Promise.resolve(N.value.userOptions.callbacks.altCopy({
1155
- config: N.value,
1156
- dataset: G.value
1157
- }));
1158
- }
1159
- function bi() {
1160
- M.value = null, on.value = !0;
1161
- }
1162
- function xi() {
1163
- M.value = null, an.value = "pointer", Bt.value = !1, Z.value = null, on.value = !1;
1164
- }
1165
- function Si(e) {
1166
- if (!hn.value || jr.value || document.activeElement !== hn.value || !G.value.length || gr.value) return;
1167
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1168
- if (!t && !n && !r && !i) return;
1169
- if (e.preventDefault(), e.stopPropagation(), i) {
1170
- M.value = null, an.value = "pointer", Bt.value = !1, Z.value = null;
1171
- return;
1172
- }
1173
- if (r) {
1174
- if (M.value === null) return;
1175
- let e = G.value[M.value];
1176
- if (!e) return;
1177
- fr(e, M.value);
1178
- return;
1179
- }
1180
- let a = M.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;
1181
- 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;
1182
- let l = G.value[a];
1183
- l && (Ci(a), wr({
1184
- datapoint: l,
1185
- seriesIndex: a,
1186
- triggerMode: "keyboard"
1187
- }));
1188
- }
1189
- function Ci(e) {
1190
- if (!Number.isFinite(e) || !hn.value) return;
1191
- let t = G.value[e];
1192
- if (!t) return;
1193
- let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = hn.value.getBoundingClientRect();
1194
- rn.value = {
1195
- x: i.left + (n - $.value.x) / $.value.width * i.width,
1196
- y: i.top + (r - $.value.y) / $.value.height * i.height
1197
- };
1198
- }
1199
- let wi = p(() => ({
1200
- headers: Er.value?.colNames ?? [],
1201
- rows: Er.value?.body ?? []
1202
- })), Ti = p(() => z.value.color);
1203
- return ve({
1204
- getData: Dr,
1205
- getImage: Zr,
1206
- generateCsv: Tr,
1207
- generateImage: Sn,
1208
- generateSvg: ai,
1209
- generatePdf: xn,
1210
- hideSeries: xr,
1211
- showSeries: br,
1212
- toggleTable: Or,
1213
- toggleTooltip: kr,
1214
- toggleZoom: Ar,
1215
- toggleAnnotator: Mr,
1216
- toggleFullscreen: ar,
1217
- resetZoom: Ir,
1218
- copyAlt: yi
1219
- }), (e, t) => (x(), g("div", {
1220
- ref_key: "treemapChart",
1221
- ref: A,
1222
- class: Re(`vue-data-ui-component vue-ui-treemap ${Ht.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1223
- style: b(`font-family:${N.value.style.fontFamily};width:100%; ${N.value.responsive ? "height: 100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
1224
- id: `treemap_${O.value}`,
1225
- onMouseenter: t[3] ||= () => T(pn)(!0),
1226
- onMouseleave: t[4] ||= () => T(pn)(!1)
1227
- }, [
1228
- _("div", {
1229
- id: `chart-instructions-${O.value}`,
1230
- class: "sr-only"
1231
- }, [_("p", null, Ue(N.value.a11y.translations.keyboardNavigation), 1)], 8, ut),
1232
- wi.value?.rows?.length ? (x(), m(we, {
1233
- key: 0,
1234
- uid: O.value,
1235
- head: wi.value.headers,
1236
- body: wi.value.rows,
1237
- notice: N.value.a11y.translations.tableAvailable,
1238
- caption: N.value.a11y.translations.tableCaption
1239
- }, null, 8, [
1240
- "uid",
1241
- "head",
1242
- "body",
1243
- "notice",
1244
- "caption"
1245
- ])) : h("", !0),
1246
- P.value.buttons.annotator ? (x(), m(T(Qe), {
1247
- key: 1,
1248
- svgRef: T(hn),
1249
- backgroundColor: z.value.backgroundColor,
1250
- color: z.value.color,
1251
- active: jr.value,
1252
- isCursorPointer: B.value,
1253
- palette: P.value.annotatorPalette,
1254
- onClose: Mr
1255
- }, {
1256
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1257
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
1258
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
1259
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
1260
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
1261
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
1262
- _: 3
1263
- }, 8, [
1264
- "svgRef",
1265
- "backgroundColor",
1266
- "color",
1267
- "active",
1268
- "isCursorPointer",
1269
- "palette"
1270
- ])) : h("", !0),
1271
- Cn.value ? (x(), g("div", {
1272
- key: 2,
1273
- ref_key: "noTitle",
1274
- ref: qt,
1275
- class: "vue-data-ui-no-title-space",
1276
- style: "height:36px; width: 100%;background:transparent"
1277
- }, null, 512)) : h("", !0),
1278
- z.value.title.text ? (x(), g("div", {
1279
- key: 3,
1280
- ref_key: "chartTitle",
1281
- ref: Wt,
1282
- style: b(`width:100%;background:${z.value.backgroundColor};padding-bottom:6px`)
1283
- }, [(x(), m(_e, {
1284
- key: `title_${Jt.value}`,
1285
- config: {
1286
- title: {
1287
- cy: "treemap-div-title",
1288
- ...z.value.title
1289
- },
1290
- subtitle: {
1291
- cy: "treemap-div-subtitle",
1292
- ...z.value.title.subtitle
1293
- }
1294
- }
1295
- }, null, 8, ["config"]))], 4)) : h("", !0),
1296
- _("div", { id: `legend-top-${O.value}` }, null, 8, dt),
1297
- P.value.show && Rt.value && (T(mn) || T(fn)) ? (x(), m(T(nt), {
1298
- ref_key: "userOptionsRef",
1299
- ref: en,
1300
- key: `user_option_${Ut.value}`,
1301
- backgroundColor: z.value.backgroundColor,
1302
- color: z.value.color,
1303
- isPrinting: T(yn),
1304
- isImaging: T(bn),
1305
- uid: O.value,
1306
- hasTooltip: P.value.buttons.tooltip && F.value.show,
1307
- hasPdf: P.value.buttons.pdf,
1308
- hasXls: P.value.buttons.csv,
1309
- hasImg: P.value.buttons.img,
1310
- hasSvg: P.value.buttons.svg,
1311
- hasTable: P.value.buttons.table,
1312
- hasFullscreen: P.value.buttons.fullscreen,
1313
- hasAltCopy: P.value.buttons.altCopy,
1314
- isFullscreen: Ht.value,
1315
- isTooltip: V.value.showTooltip,
1316
- titles: { ...P.value.buttonTitles },
1317
- chartElement: A.value,
1318
- position: P.value.position,
1319
- hasAnnotator: P.value.buttons.annotator,
1320
- isAnnotation: jr.value,
1321
- callbacks: P.value.callbacks,
1322
- printScale: P.value.print.scale,
1323
- tableDialog: N.value.table.useDialog,
1324
- isCursorPointer: B.value,
1325
- hasZoom: P.value.buttons.zoom,
1326
- isZoom: V.value.showZoom,
1327
- onToggleFullscreen: ar,
1328
- onGeneratePdf: T(xn),
1329
- onGenerateCsv: Tr,
1330
- onGenerateImage: T(oi),
1331
- onGenerateSvg: T(ai),
1332
- onToggleTable: Or,
1333
- onToggleTooltip: kr,
1334
- onToggleAnnotator: Mr,
1335
- onToggleZoom: Ar,
1336
- onCopyAlt: yi,
1337
- style: b({ visibility: T(mn) ? T(fn) ? "visible" : "hidden" : "visible" })
1338
- }, Me({ _: 2 }, [
1339
- e.$slots.menuIcon ? {
1340
- name: "menuIcon",
1341
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(v({
1342
- isOpen: t,
1343
- color: n
1344
- })), void 0, !0)]),
1345
- key: "0"
1346
- } : void 0,
1347
- e.$slots.optionTooltip ? {
1348
- name: "optionTooltip",
1349
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1350
- key: "1"
1351
- } : void 0,
1352
- e.$slots.optionPdf ? {
1353
- name: "optionPdf",
1354
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1355
- key: "2"
1356
- } : void 0,
1357
- e.$slots.optionCsv ? {
1358
- name: "optionCsv",
1359
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1360
- key: "3"
1361
- } : void 0,
1362
- e.$slots.optionImg ? {
1363
- name: "optionImg",
1364
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1365
- key: "4"
1366
- } : void 0,
1367
- e.$slots.optionSvg ? {
1368
- name: "optionSvg",
1369
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1370
- key: "5"
1371
- } : void 0,
1372
- e.$slots.optionTable ? {
1373
- name: "optionTable",
1374
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1375
- key: "6"
1376
- } : void 0,
1377
- e.$slots.optionFullscreen ? {
1378
- name: "optionFullscreen",
1379
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(v({
1380
- toggleFullscreen: t,
1381
- isFullscreen: n
1382
- })), void 0, !0)]),
1383
- key: "7"
1384
- } : void 0,
1385
- e.$slots.optionAnnotator ? {
1386
- name: "optionAnnotator",
1387
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(v({
1388
- toggleAnnotator: t,
1389
- isAnnotator: n
1390
- })), void 0, !0)]),
1391
- key: "8"
1392
- } : void 0,
1393
- e.$slots.optionZoom ? {
1394
- name: "optionZoom",
1395
- fn: E(({ toggleZoom: t, isZoomLocked: n }) => [C(e.$slots, "optionZoom", y(v({
1396
- toggleZoom: t,
1397
- isZoomLocked: n
1398
- })), void 0, !0)]),
1399
- key: "9"
1400
- } : void 0,
1401
- e.$slots.optionAltCopy ? {
1402
- name: "optionAltCopy",
1403
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
1404
- key: "10"
1405
- } : void 0,
1406
- e.$slots["custom-menu-before"] ? {
1407
- name: "custom-menu-before",
1408
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1409
- key: "11"
1410
- } : void 0,
1411
- e.$slots["custom-menu-after"] ? {
1412
- name: "custom-menu-after",
1413
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1414
- key: "12"
1415
- } : void 0
1416
- ]), 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("."))) : h("", !0),
1417
- X.value.length > 1 ? (x(), g("nav", {
1418
- key: 5,
1419
- class: "vue-ui-treemap-breadcrumbs",
1420
- "data-dom-to-png-ignore": "",
1421
- ref_key: "breadcrumbsNav",
1422
- ref: Zt
1423
- }, [(x(!0), g(Ae, null, Ve(X.value, (n, r) => (x(), g("span", {
1424
- role: "button",
1425
- tabindex: r < X.value.length - 1 ? 0 : void 0,
1426
- key: n.id || "root",
1427
- onClick: (e) => r === X.value.length - 1 ? () => {} : fr(n.node),
1428
- onKeydown: [Je(Ye((e) => r === X.value.length - 1 ? void 0 : fr(n.node), ["prevent"]), ["enter"]), Je(Ye((e) => r === X.value.length - 1 ? void 0 : fr(n.node), ["prevent"]), ["space"])],
1429
- class: "vue-ui-treemap-crumb",
1430
- "data-last-crumb": r === X.value.length - 1,
1431
- style: b({
1432
- color: z.value.color,
1433
- cursor: B.value ? "pointer" : "default"
1434
- }),
1435
- onMouseenter: (e) => Yr(r),
1436
- onMouseleave: Xr,
1437
- onFocus: (e) => Yr(r),
1438
- onBlur: Xr
1439
- }, [_("span", pt, [_("span", mt, [C(e.$slots, "breadcrumb-label", Ie({ ref_for: !0 }, {
1440
- crumb: n,
1441
- isRoot: r === 0,
1442
- isFocus: Jr.value === r
1443
- }), () => [r === 0 ? (x(), g("div", ht, [Pe(xe, {
1444
- name: Jr.value === 0 ? "homeFilled" : "home",
1445
- stroke: z.value.color
1446
- }, null, 8, ["name", "stroke"])])) : (x(), g(Ae, { key: 1 }, [Ne(Ue(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (x(), g("span", gt, [C(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= Ne(" › ", -1)], !0)])) : h("", !0)])], 44, ft))), 128))], 512)) : h("", !0),
1447
- _("div", _t, [
1448
- (x(), g("svg", {
1449
- ref_key: "svgRef",
1450
- ref: hn,
1451
- xmlns: T(re),
1452
- "aria-describedby": `chart-instructions-${O.value}`,
1453
- class: Re({
1454
- "vue-data-ui-fullscreen--on": Ht.value,
1455
- "vue-data-ui-fulscreen--off": !Ht.value,
1456
- "vue-data-ui-zoom-plus": !sr.value,
1457
- "vue-data-ui-zoom-minus": sr.value,
1458
- "vue-data-ui-no-transition": !T(sn),
1459
- loading: T(ln)
1460
- }),
1461
- viewBox: `${T($).x} ${T($).y} ${T($).width <= 0 ? 10 : T($).width} ${T($).height <= 0 ? 10 : T($).height}`,
1462
- style: b(`max-width:100%; overflow:${Ur.value ? "hidden" : "visible"}; background:transparent;color:${z.value.color}`),
1463
- tabindex: "0",
1464
- onFocus: bi,
1465
- onBlur: xi,
1466
- onKeydown: Si,
1467
- onPointerdown: Wr,
1468
- onPointermove: Gr,
1469
- onPointerup: Kr,
1470
- onPointercancel: Kr,
1471
- onPointerleave: Kr
1472
- }, [
1473
- Pe(T(rt)),
1474
- (x(!0), g(Ae, null, Ve(G.value, (e, t) => (x(), g("g", { key: `tgrad_${e.id}` }, [R.value.rects.gradient.show ? (x(), g("defs", yt, [Pe(Se, {
1475
- t: "radial",
1476
- id: `tgrad_${e.id}`,
1477
- gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
1478
- stops: [[
1479
- "18%",
1480
- e.color,
1481
- 1
1482
- ], [
1483
- "100%",
1484
- T(i)(e.color, R.value.rects.gradient.intensity / 100),
1485
- 1
1486
- ]]
1487
- }, null, 8, ["id", "stops"])])) : h("", !0)]))), 128)),
1488
- _("g", null, [
1489
- (x(!0), g(Ae, null, Ve(G.value, (e, t) => (x(), g("g", { key: `rect_${e.id}_${e.depth}` }, [_("rect", {
1490
- x: e.x0,
1491
- y: e.y0,
1492
- height: K(e),
1493
- width: q(e),
1494
- fill: zt.value ? e.color ?? z.value.backgroundColor : R.value.rects.gradient.show ? gr.value ? z.value.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? z.value.backgroundColor,
1495
- rx: T(zr) > 1 ? vi(e) * Br.value : vi(e),
1496
- stroke: Z.value && Z.value.id === e.id ? R.value.rects.selected.stroke : R.value.rects.stroke,
1497
- "stroke-width": Xn(e),
1498
- onClick: Ye((n) => qr(e, t), ["stop"]),
1499
- onMouseenter: () => wr({
1500
- datapoint: e,
1501
- seriesIndex: t,
1502
- triggerMode: "pointer"
1503
- }),
1504
- onMouseleave: (n) => Sr({
1505
- datapoint: e,
1506
- seriesIndex: t
1507
- }),
1508
- style: b(`opacity:${Z.value ? Z.value.id === e.id ? 1 : R.value.rects.selected.unselectedOpacity : 1}`),
1509
- class: Re([
1510
- "vue-ui-treemap-rect",
1511
- T(sn) ? "vue-data-ui-transition" : "",
1512
- pr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
1513
- ])
1514
- }, null, 46, bt)]))), 128)),
1515
- (x(!0), g(Ae, null, Ve(mi.value, (e) => (x(), g("g", {
1516
- key: e.key,
1517
- style: { "pointer-events": "none" }
1518
- }, [_("defs", null, [_("clipPath", {
1519
- id: e.clipId,
1520
- clipPathUnits: "userSpaceOnUse"
1521
- }, [_("rect", {
1522
- class: Re({ "vue-data-ui-transition": T(sn) }),
1523
- x: e.clipX,
1524
- y: e.clipY,
1525
- width: e.clipWidth,
1526
- height: e.clipHeight
1527
- }, null, 10, St)], 8, xt)]), _("g", { "clip-path": `url(#${e.clipId})` }, [_("g", { transform: e.translate }, [_("g", {
1528
- class: Re({ "vue-data-ui-transition": T(sn) }),
1529
- transform: di(e)
1530
- }, [(x(!0), g(Ae, null, Ve(e.lines, (t) => (x(), g(Ae, { key: t.key }, [t.text && (e.alwaysShowAllLines || Vr.value <= t.maxZoomFactor) ? (x(), g("text", {
1531
- key: 0,
1532
- x: t.x,
1533
- y: t.y,
1534
- fill: t.fill,
1535
- "font-size": t.fontSize,
1536
- "font-family": t.fontFamily,
1537
- "font-weight": t.fontWeight,
1538
- class: Re({ "vue-data-ui-transition": T(sn) }),
1539
- "text-anchor": "start",
1540
- "dominant-baseline": "text-before-edge"
1541
- }, Ue(t.text), 11, Et)) : h("", !0)], 64))), 128))], 10, Tt)], 8, wt)], 8, Ct)]))), 128)),
1542
- e.$slots.rect ? (x(), g("g", Dt, [(x(!0), g(Ae, null, Ve(G.value, (t, n) => (x(), g("g", { key: `slot_${t.id}_${t.depth}` }, [(x(), g("foreignObject", {
1543
- x: t.x0,
1544
- y: t.y0,
1545
- height: K(t),
1546
- width: q(t),
1547
- class: "vue-ui-treemap-cell-foreignObject",
1548
- style: {
1549
- "pointer-events": "none",
1550
- overflow: "hidden"
1551
- }
1552
- }, [_("div", kt, [T(ln) ? h("", !0) : C(e.$slots, "rect", Ie({ ref_for: !0 }, {
1553
- rect: {
1554
- ...t,
1555
- height: K(t),
1556
- width: q(t),
1557
- isSelected: !Z.value || Z.value.id === t.id
1558
- },
1559
- shouldShow: qn(t) || sr.value,
1560
- fontSize: ir(t, n),
1561
- isZoom: sr.value,
1562
- textColor: T(ne)(t.color)
1563
- }), void 0, !0, 0)])], 8, Ot))]))), 128))])) : h("", !0)
1564
- ]),
1565
- C(e.$slots, "svg", y(v({
1566
- svg: H.value,
1567
- isZoom: sr.value,
1568
- rect: Z.value,
1569
- config: N.value,
1570
- isPrintingImg: T(yn) || T(bn) || T(ri),
1571
- isPrintingSvg: T(ii)
1572
- })), void 0, !0)
1573
- ], 46, vt)),
1574
- T(Lr) ? (x(), g("div", At, [C(e.$slots, "reset-action", { reset: T(Ir) }, () => [_("button", {
1575
- "data-cy-reset": "",
1576
- tabindex: "0",
1577
- role: "button",
1578
- class: "vue-data-ui-refresh-button",
1579
- style: b({
1580
- background: z.value.backgroundColor,
1581
- cursor: B.value ? "pointer" : "default"
1582
- }),
1583
- onClick: t[0] ||= (e) => T(Ir)(!0)
1584
- }, [Pe(xe, {
1585
- name: "refresh",
1586
- stroke: z.value.color
1587
- }, null, 8, ["stroke"])], 4)], !0)])) : h("", !0),
1588
- e.$slots.hint ? (x(), g("div", jt, [C(e.$slots, "hint", y(v({
1589
- hint: N.value.a11y.translations.keyboardNavigation,
1590
- isVisible: on.value
1591
- })), void 0, !0)])) : h("", !0)
1592
- ]),
1593
- e.$slots.watermark ? (x(), g("div", Mt, [C(e.$slots, "watermark", y(v({ isPrinting: T(yn) || T(bn) || T(ri) || T(ii) })), void 0, !0)])) : h("", !0),
1594
- _("div", { id: `legend-bottom-${O.value}` }, null, 8, Nt),
1595
- Qt.value && (I.value.show || e.$slots.legend) ? (x(), m(je, {
1596
- key: 7,
1597
- to: I.value.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1598
- }, [_("div", {
1599
- ref_key: "chartLegend",
1600
- ref: Gt
1601
- }, [C(e.$slots, "legend", { legend: mr.value }, () => [I.value.show ? (x(), m(De, {
1602
- key: `legend_${Xt.value}`,
1603
- legendSet: mr.value,
1604
- config: hr.value,
1605
- id: `treemap_legend_${O.value}`,
1606
- isCursorPointer: B.value,
1607
- onClickMarker: t[1] ||= ({ legend: e }) => vr(e)
1608
- }, {
1609
- item: E(({ legend: e, index: t }) => [T(ln) ? h("", !0) : (x(), g("div", {
1610
- key: 0,
1611
- onClick: (t) => vr(e),
1612
- style: b(`opacity:${k.value.includes(e.id) ? .5 : 1}`)
1613
- }, Ue(e.display), 13, Pt))]),
1614
- legendToggle: E(() => [mr.value.length > 2 && I.value.selectAllToggle.show && !T(ln) ? (x(), m(Ce, {
1615
- key: 0,
1616
- backgroundColor: I.value.selectAllToggle.backgroundColor,
1617
- color: I.value.selectAllToggle.color,
1618
- fontSize: I.value.fontSize,
1619
- checked: k.value.length > 0,
1620
- isCursorPointer: B.value,
1621
- onToggle: _r
1622
- }, null, 8, [
1623
- "backgroundColor",
1624
- "color",
1625
- "fontSize",
1626
- "checked",
1627
- "isCursorPointer"
1628
- ])) : h("", !0)]),
1629
- _: 1
1630
- }, 8, [
1631
- "legendSet",
1632
- "config",
1633
- "id",
1634
- "isCursorPointer"
1635
- ])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
1636
- e.$slots.source ? (x(), g("div", {
1637
- key: 8,
1638
- ref_key: "source",
1639
- ref: Kt,
1640
- dir: "auto"
1641
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1642
- Pe(T(tt), {
1643
- teleportTo: F.value.teleportTo,
1644
- show: V.value.showTooltip && Bt.value,
1645
- backgroundColor: F.value.backgroundColor,
1646
- color: F.value.color,
1647
- fontSize: F.value.fontSize,
1648
- borderRadius: F.value.borderRadius,
1649
- borderColor: F.value.borderColor,
1650
- borderWidth: F.value.borderWidth,
1651
- backgroundOpacity: F.value.backgroundOpacity,
1652
- position: F.value.position,
1653
- offsetX: F.value.offsetX,
1654
- offsetY: F.value.offsetY,
1655
- parent: A.value,
1656
- content: Vt.value,
1657
- isFullscreen: Ht.value,
1658
- isCustom: T(r)(F.value.customFormat),
1659
- smooth: F.value.smooth,
1660
- backdropFilter: F.value.backdropFilter,
1661
- smoothForce: F.value.smoothForce,
1662
- smoothSnapThreshold: F.value.smoothSnapThreshold,
1663
- isA11yMode: an.value === "keyboard",
1664
- a11yPosition: rn.value
1665
- }, {
1666
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(v({ ...Cr.value })), void 0, !0)]),
1667
- tooltip: E(() => [C(e.$slots, "tooltip", y(v({ ...Cr.value })), void 0, !0)]),
1668
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(v({ ...Cr.value })), void 0, !0)]),
1669
- _: 3
1670
- }, 8, [
1671
- "teleportTo",
1672
- "show",
1673
- "backgroundColor",
1674
- "color",
1675
- "fontSize",
1676
- "borderRadius",
1677
- "borderColor",
1678
- "borderWidth",
1679
- "backgroundOpacity",
1680
- "position",
1681
- "offsetX",
1682
- "offsetY",
1683
- "parent",
1684
- "content",
1685
- "isFullscreen",
1686
- "isCustom",
1687
- "smooth",
1688
- "backdropFilter",
1689
- "smoothForce",
1690
- "smoothSnapThreshold",
1691
- "isA11yMode",
1692
- "a11yPosition"
1693
- ]),
1694
- Rt.value && P.value.buttons.table ? (x(), m(He(Qr.value.component), Ie({ key: 9 }, Qr.value.props, {
1695
- ref_key: "tableUnit",
1696
- ref: $t,
1697
- onClose: $r
1698
- }), Me({
1699
- content: E(() => [(x(), m(T(Ze), {
1700
- key: `table_${Yt.value}`,
1701
- colNames: Er.value.colNames,
1702
- head: Er.value.head,
1703
- body: Er.value.body,
1704
- config: Er.value.config,
1705
- title: N.value.table.useDialog ? "" : Qr.value.title,
1706
- withCloseButton: !N.value.table.useDialog,
1707
- isCursorPointer: B.value,
1708
- onClose: $r
1709
- }, {
1710
- th: E(({ th: e }) => [_("div", Ft, Ue(e), 1)]),
1711
- td: E(({ td: e }) => [Ne(Ue(e.name || e), 1)]),
1712
- _: 1
1713
- }, 8, [
1714
- "colNames",
1715
- "head",
1716
- "body",
1717
- "config",
1718
- "title",
1719
- "withCloseButton",
1720
- "isCursorPointer"
1721
- ]))]),
1722
- _: 2
1723
- }, [N.value.table.useDialog ? {
1724
- name: "title",
1725
- fn: E(() => [Ne(Ue(Qr.value.title), 1)]),
1726
- key: "0"
1727
- } : void 0, N.value.table.useDialog ? {
1728
- name: "actions",
1729
- fn: E(() => [_("button", {
1730
- tabindex: "0",
1731
- class: "vue-ui-user-options-button",
1732
- onClick: t[2] ||= (e) => Tr(P.value.callbacks.csv),
1733
- style: b({ cursor: B.value ? "pointer" : "default" })
1734
- }, [Pe(xe, {
1735
- name: "fileCsv",
1736
- stroke: Qr.value.props.color
1737
- }, null, 8, ["stroke"])], 4)]),
1738
- key: "1"
1739
- } : void 0]), 1040)) : h("", !0),
1740
- C(e.$slots, "skeleton", {}, () => [T(ln) ? (x(), m(de, { key: 0 })) : h("", !0)], !0)
1741
- ], 46, lt));
1742
- }
1743
- }, [["__scopeId", "data-v-34f9e8dd"]]);
1744
- //#endregion
1745
- export { ct as n, Lt as t };