vue-data-ui 3.17.13 → 3.18.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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1757 +0,0 @@
1
- import { defineAsyncComponent as be, useSlots as rl, onMounted as ao, computed as $, ref as g, shallowRef as se, toRefs as ul, watch as Ce, onBeforeUnmount as il, openBlock as c, createElementBlock as A, unref as m, normalizeStyle as he, normalizeClass as Ct, createElementVNode as N, toDisplayString as Ne, createBlock as Q, createCommentVNode as _, withCtx as T, renderSlot as b, normalizeProps as D, guardReactiveProps as B, createSlots as no, Fragment as xe, renderList as Re, withKeys as so, withModifiers as wt, mergeProps as kt, createVNode as Ze, createTextVNode as je, Teleport as cl, resolveDynamicComponent as dl, nextTick as ro } from "vue";
2
- import { j as Ke, t as uo, m as vl, p as R, n as hl, ag as io, o as co, q as fl, s as fe, k as qe, l as ze, X as pl, x as vo, W as ho, T as fo, a0 as gl, a1 as yl, U as ml, az as bl } from "./lib-DMzrGQHK.js";
3
- import { t as Cl, u as wl } from "./useResponsive-DfdjqQps.js";
4
- import { u as kl } from "./useConfig-CG4HT3wS.js";
5
- import { u as $l, B as Tl } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as xl } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as Al } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as $t } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as Sl } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as Il } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as Ml } from "./useChartAccessibility-cp6XQtqi.js";
12
- import Ol from "./img-CjTQXS0U.js";
13
- import Pl from "./Title-BbKoiBk2.js";
14
- import _l from "./vue_ui_treemap-D9-AIkT-.js";
15
- import Ll from "./Legend-DGN5lY60.js";
16
- import po from "./BaseIcon-DX0hTWa-.js";
17
- import { A as Fl } from "./A11yDataTable-BpmuNomI.js";
18
- import { B as Nl } from "./BaseLegendToggle-cMP8M2u0.js";
19
- import { _ as Rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- function go(u, h) {
21
- const d = u.length;
22
- if (d === 0)
23
- throw new Error(
24
- `Max aspect ratio cannot be computed: ${u} is an empty array`
25
- );
26
- {
27
- let f = 1 / 0, v = -1 / 0, C = 0;
28
- for (let S = 0; S < d; S += 1) {
29
- const x = u[S].normalizedValue;
30
- x < f && (f = x), x > v && (v = x), C += x;
31
- }
32
- return Math.max(
33
- h ** 2 * v / C ** 2,
34
- C ** 2 / (h ** 2 * f)
35
- );
36
- }
37
- }
38
- function yo(u) {
39
- const { xOffset: h, yOffset: d, width: f, height: v } = u;
40
- return {
41
- x0: h,
42
- y0: d,
43
- x1: h + f,
44
- y1: d + v
45
- };
46
- }
47
- function zl(u, h, d) {
48
- if (u.length === 0)
49
- return !0;
50
- {
51
- const f = u.concat(h), v = go(u, d), C = go(f, d);
52
- return v >= C;
53
- }
54
- }
55
- function Dl(u) {
56
- const h = [], d = u.length;
57
- for (let f = 0; f < d; f += 1) {
58
- const v = u[f], C = v.length;
59
- for (let p = 0; p < C; p += 1)
60
- h.push(v[p]);
61
- }
62
- return h;
63
- }
64
- function Bl(u, h) {
65
- const d = {
66
- ...h,
67
- children: u
68
- };
69
- return bo(d);
70
- }
71
- function Vl(u) {
72
- return (u.x1 - u.x0) * (u.y1 - u.y0);
73
- }
74
- function mo(u, h) {
75
- const { width: d, height: f, xOffset: v, yOffset: C } = Tt(h), p = u.length, S = u.map((w) => w.normalizedValue || 0).reduce((w, z) => w + z, 0), x = S / f, re = S / d;
76
- let j = v, ee = C;
77
- const U = [];
78
- if (d >= f) {
79
- for (let w = 0; w < p; w += 1) {
80
- const z = u[w], te = ee + z.normalizedValue / x, ue = {
81
- x0: j,
82
- y0: ee,
83
- x1: j + x,
84
- y1: te
85
- }, oe = Object.assign({}, z, ue);
86
- ee = te, U.push(oe);
87
- }
88
- return U;
89
- } else {
90
- for (let w = 0; w < p; w += 1) {
91
- const z = u[w], te = j + z.normalizedValue / re, ue = {
92
- x0: j,
93
- y0: ee,
94
- x1: te,
95
- y1: ee + re
96
- }, oe = Object.assign({}, z, ue);
97
- j = te, U.push(oe);
98
- }
99
- return U;
100
- }
101
- }
102
- function Hl(u) {
103
- const h = Tt(u), d = h.width, f = h.height;
104
- return Math.min(d, f);
105
- }
106
- function El(u, h) {
107
- const d = u.length, f = u.map((x) => x.value ?? 0).reduce((x, re) => x + re, 0), v = h / f, C = [];
108
- let p, S;
109
- for (let x = 0; x < d; x += 1)
110
- S = u[x], p = Object.assign({}, S, {
111
- normalizedValue: S.value * (v || 0)
112
- }), C.push(p);
113
- return C;
114
- }
115
- function Tt(u) {
116
- const { x0: h, y0: d, x1: f, y1: v } = u;
117
- return {
118
- xOffset: h,
119
- yOffset: d,
120
- width: f - h,
121
- height: v - d
122
- };
123
- }
124
- function Ul(u, h, d, f) {
125
- let v = u, C = h, p = d, S = f;
126
- for (; ; ) {
127
- const x = v.length;
128
- if (x === 0) {
129
- const U = mo(C, p);
130
- return S.concat(U);
131
- }
132
- const re = Hl(p), j = v[0], ee = v.slice(1, x);
133
- if (zl(C, j, re)) {
134
- const U = C.concat(j);
135
- v = ee, C = U, p = p, S = S;
136
- } else {
137
- const U = C.length;
138
- let w = 0;
139
- for (let oe = 0; oe < U; oe += 1)
140
- w += C[oe].normalizedValue;
141
- const z = Wl(p, w), te = mo(C, p), ue = S.concat(te);
142
- v = v, C = [], p = z, S = ue;
143
- }
144
- }
145
- }
146
- function bo(u) {
147
- if (typeof u.children > "u" || !u.children.length)
148
- return [u];
149
- {
150
- const h = El(u.children, Vl(u)), d = Ul(h, [], u, []), f = d.length, v = [];
151
- for (let p = 0; p < f; p += 1)
152
- v.push(bo(d[p]));
153
- return Dl(v);
154
- }
155
- }
156
- function Wl(u, h) {
157
- const { width: d, height: f, xOffset: v, yOffset: C } = Tt(u);
158
- if (d >= f) {
159
- const p = h / f, S = d - p, x = {
160
- xOffset: v + p,
161
- yOffset: C,
162
- width: S,
163
- height: f
164
- };
165
- return yo(x);
166
- } else {
167
- const p = h / d, S = f - p, x = {
168
- xOffset: v,
169
- yOffset: C + p,
170
- width: d,
171
- height: S
172
- };
173
- return yo(x);
174
- }
175
- }
176
- const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], jl = { class: "vue-ui-treemap-crumb-unit" }, Kl = { class: "vue-ui-treemap-crumb-unit-label" }, ql = {
177
- key: 0,
178
- style: { width: "24px", display: "flex", "align-items": "center" }
179
- }, Jl = {
180
- key: 0,
181
- class: "vue-ui-treemap-crumb-unit-arrow"
182
- }, Ql = { style: { position: "relative" } }, ea = ["xmlns", "aria-describedby", "viewBox"], ta = { key: 0 }, oa = ["id"], la = ["stop-color"], aa = ["stop-color"], na = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], sa = ["innerHTML"], ra = ["x", "y", "height", "width"], ua = {
183
- style: {
184
- width: "100%",
185
- height: "100%"
186
- },
187
- class: "vue-ui-treemap-cell"
188
- }, ia = {
189
- key: 0,
190
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
191
- "data-dom-to-png-ignore": "",
192
- "aria-hidden": "true"
193
- }, ca = {
194
- key: 6,
195
- class: "vue-data-ui-watermark"
196
- }, da = ["id"], va = ["onClick"], ha = ["innerHTML"], fa = {
197
- __name: "vue-ui-treemap",
198
- props: {
199
- config: {
200
- type: Object,
201
- default() {
202
- return {};
203
- }
204
- },
205
- dataset: {
206
- type: Array,
207
- default() {
208
- return [];
209
- }
210
- }
211
- },
212
- emits: ["selectLegend", "selectDatapoint", "copyAlt"],
213
- setup(u, { expose: h, emit: d }) {
214
- const f = be(() => import("./DataTable-cMnb68Ik.js")), v = be(
215
- () => import("./PenAndPaper-CJDoB5H9.js")
216
- ), C = be(() => import("./vue-ui-accordion-DFtpH_16.js")), p = be(() => import("./Tooltip-Cvt7Fi0Q.js")), S = be(
217
- () => import("./UserOptions-DVduN6X7.js")
218
- ), x = be(
219
- () => import("./PackageVersion-BfrCAH6_.js")
220
- ), re = be(
221
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
222
- ), { vue_ui_treemap: j } = kl(), { isThemeValid: ee, warnInvalidTheme: U } = Sl(), w = u, z = d, te = rl();
223
- ao(() => {
224
- te["chart-background"] && console.warn(
225
- "VueUiTreemap does not support the #chart-background slot."
226
- );
227
- });
228
- const ue = $(() => !!w.dataset && w.dataset.length), oe = $(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), W = g(Ke()), Ae = g(!1), Je = g(""), pe = g(!1), xt = g(0), P = g([]), K = se(null), At = se(null), St = se(null), It = se(null), Mt = se(null), Ot = g(0), De = g(0), Be = g(0), V = g([]), Qe = g(null), Pt = g(!1), Se = g(null), et = g(null), _t = g(null), tt = g(/* @__PURE__ */ new Map()), Ve = g(!1), He = g(!1), le = g(null), Lt = g({ x: 0, y: 0 }), Ie = g("pointer"), ot = g(!1), t = g(nt()), ie = $(
229
- () => t.value.userOptions.useCursorPointer
230
- ), Co = $(() => uo({
231
- defaultConfig: {
232
- userOptions: { show: !1 },
233
- style: {
234
- chart: {
235
- backgroundColor: "#999999",
236
- layout: {
237
- labels: {
238
- showDefaultLabels: !1
239
- },
240
- rects: {
241
- stroke: "#6A6A6A"
242
- }
243
- },
244
- legend: {
245
- backgroundColor: "transparent"
246
- }
247
- }
248
- }
249
- },
250
- userConfig: t.value.skeletonConfig ?? {}
251
- })), { loading: ge, FINAL_DATASET: lt, manualLoading: wo } = $l({
252
- ...ul(w),
253
- FINAL_CONFIG: t,
254
- prepareConfig: nt,
255
- skeletonDataset: w.config?.skeletonDataset ?? [
256
- {
257
- name: "_",
258
- value: 53,
259
- color: "#CACACA90",
260
- children: [
261
- { name: "_", value: 21 },
262
- { name: "_", value: 13 },
263
- { name: "_", value: 8 },
264
- { name: "_", value: 5 },
265
- { name: "_", value: 3 },
266
- { name: "_", value: 2 },
267
- { name: "_", value: 1 }
268
- ]
269
- }
270
- ],
271
- skeletonConfig: uo({
272
- defaultConfig: t.value,
273
- userConfig: Co.value
274
- })
275
- }), { userOptionsVisible: at, setUserOptionsVisibility: Ft, keepUserOptionState: Nt } = Il({ config: t.value }), { svgRef: ye } = Ml({
276
- config: t.value.style.chart.title
277
- });
278
- function nt() {
279
- const e = $t({
280
- userConfig: w.config,
281
- defaultConfig: j
282
- }), l = e.theme;
283
- if (!l) return e;
284
- if (!ee.value(e))
285
- return U(e), e;
286
- const o = $t({
287
- userConfig: _l[l] || w.config,
288
- defaultConfig: e
289
- }), a = $t({
290
- userConfig: w.config,
291
- defaultConfig: o
292
- });
293
- return {
294
- ...a,
295
- customPalette: a.customPalette.length ? a.customPalette : vl[l] || R
296
- };
297
- }
298
- Ce(
299
- () => w.config,
300
- (e) => {
301
- ge.value || (t.value = nt()), at.value = !t.value.userOptions.showOnChartHover, Ot.value += 1, De.value += 1, Be.value += 1, X.value.showTable = t.value.table.show, X.value.showTooltip = t.value.style.chart.tooltip.show;
302
- },
303
- { deep: !0 }
304
- );
305
- const { isPrinting: st, isImaging: rt, generatePdf: Rt, generateImage: zt } = xl({
306
- elementId: `treemap_${W.value}`,
307
- fileName: t.value.style.chart.title.text || "vue-ui-treemap",
308
- options: t.value.userOptions.print
309
- }), ko = $(() => t.value.userOptions.show && !t.value.style.chart.title.text), Me = $(() => hl(t.value.customPalette)), X = g({
310
- showTable: t.value.table.show,
311
- showTooltip: t.value.style.chart.tooltip.show
312
- });
313
- Ce(
314
- t,
315
- () => {
316
- X.value = {
317
- showTable: t.value.table.show,
318
- showTooltip: t.value.style.chart.tooltip.show
319
- };
320
- },
321
- { immediate: !0 }
322
- );
323
- const me = g({
324
- height: t.value.style.chart.height,
325
- width: t.value.style.chart.width
326
- });
327
- function $o(e) {
328
- const l = K.value, o = me.value.height;
329
- if (!l || !o) return e;
330
- const a = l.getBoundingClientRect();
331
- return e * (o / a.height);
332
- }
333
- function To() {
334
- if (!Qe.value || ae.value.length <= 1) return 0;
335
- const e = Qe.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
336
- return $o(o);
337
- }
338
- const Y = $(() => {
339
- const e = t.value.style.chart.padding, l = me.value.width, o = me.value.height, a = To(), n = e.left, s = l - e.right, r = e.top, k = o - e.bottom - a;
340
- return {
341
- left: n,
342
- top: r,
343
- right: s,
344
- bottom: k,
345
- width: s - n,
346
- height: Math.max(0, k - r),
347
- vbWidth: l,
348
- vbHeight: o - a,
349
- offsetY: a
350
- };
351
- }), E = g(io(lt.value)), q = g(E.value), ut = se(/* @__PURE__ */ new Map());
352
- Ce(
353
- [E, () => t.value],
354
- () => {
355
- _t.value = null, tt.value = /* @__PURE__ */ new Map();
356
- },
357
- { deep: !0 }
358
- ), Ce(
359
- () => P.value,
360
- () => {
361
- _t.value = null, tt.value = /* @__PURE__ */ new Map(), Vt(), Be.value += 1, De.value += 1;
362
- },
363
- { deep: !0 }
364
- ), Ce(
365
- [() => me.value.width, () => me.value.height],
366
- () => {
367
- tt.value = /* @__PURE__ */ new Map();
368
- }
369
- );
370
- function Dt(e) {
371
- Array.isArray(e) && e.forEach((l, o) => {
372
- l.id || (l.id = Ke()), l.sourceColor === void 0 && (l.sourceColor = fe(l.color) || null);
373
- let a = l.sourceColor || ut.value.get(l.id) || Me.value[o] || R[o] || R[o % R.length];
374
- a = fe(a), ut.value.set(l.id, a), l.color = a, Bt(l, a);
375
- });
376
- }
377
- function Bt(e, l) {
378
- Array.isArray(e.children) && e.children.forEach((o) => {
379
- o.id || (o.id = Ke()), o.parentId = e.id, o.sourceColor === void 0 && (o.sourceColor = fe(o.color) || null);
380
- const a = o.sourceColor || l;
381
- o.color = a, Bt(o, a);
382
- });
383
- }
384
- function xo(e) {
385
- let l = Z(e);
386
- for (; l?.parentId; )
387
- l = Z(l.parentId);
388
- return l?.id ?? null;
389
- }
390
- function Vt() {
391
- const e = E.value.filter(
392
- (n) => !P.value.includes(n.id)
393
- );
394
- if (!V.value.length) {
395
- q.value = e;
396
- return;
397
- }
398
- const l = V.value[V.value.length - 1], o = Z(l);
399
- if (!o) {
400
- V.value = [], q.value = e;
401
- return;
402
- }
403
- const a = xo(o.id);
404
- if (a && P.value.includes(a)) {
405
- V.value = [], q.value = e;
406
- return;
407
- }
408
- q.value = [o];
409
- }
410
- Ce(
411
- () => lt.value,
412
- () => {
413
- E.value = io(lt.value), Dt(E.value), Vt(), Be.value += 1, De.value += 1;
414
- },
415
- { deep: !0, immediate: !0, flush: "post" }
416
- );
417
- const ce = se(null), we = se(null);
418
- ao(() => {
419
- Pt.value = !0, So();
420
- });
421
- const Ao = $(() => t.value.debug);
422
- function So() {
423
- if (co(w.dataset) && fl({
424
- componentName: "VueUiTreemap",
425
- type: "dataset",
426
- debug: Ao.value
427
- }), Dt(E.value), co(w.dataset) || (wo.value = t.value.loading), t.value.responsive) {
428
- const e = Cl(() => {
429
- const { width: l, height: o } = wl({
430
- chart: K.value,
431
- title: t.value.style.chart.title.text ? At.value : null,
432
- legend: t.value.style.chart.legend.show ? St.value : null,
433
- source: It.value,
434
- noTitle: Mt.value
435
- });
436
- requestAnimationFrame(() => {
437
- me.value.width = l, me.value.height = o - 12;
438
- });
439
- });
440
- ce.value && (we.value && ce.value.unobserve(we.value), ce.value.disconnect()), ce.value = new ResizeObserver(e), we.value = K.value.parentNode, ce.value.observe(we.value);
441
- }
442
- }
443
- il(() => {
444
- ce.value && (we.value && ce.value.unobserve(we.value), ce.value.disconnect());
445
- });
446
- const Oe = $(() => q.value.map((e, l) => ({
447
- ...e,
448
- color: fe(e.color) || Me.value[l] || R[l] || R[l % R.length]
449
- })).filter((e) => !P.value.includes(e.id))), ke = $(
450
- () => E.value.filter((e) => !P.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)
451
- ), Ht = $({
452
- get() {
453
- let e = [...Oe.value];
454
- return t.value.style.chart.layout.sorted && (e = [...Oe.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
455
- ...l
456
- }));
457
- },
458
- set(e) {
459
- return e;
460
- }
461
- });
462
- function Et(e, l) {
463
- return e.value / l;
464
- }
465
- function Ut(e, l, o) {
466
- const a = t.value.style.chart.layout.rects.colorRatio - Et(l, o);
467
- return vo(e, a < 0 ? 0 : a);
468
- }
469
- function Wt(e) {
470
- return Array.isArray(e.children) && e.children.length > 0;
471
- }
472
- function Io(e) {
473
- return [...e].sort((l, o) => {
474
- const a = Wt(l), n = Wt(o);
475
- if (a !== n)
476
- return a - n;
477
- const s = Number(l.value) || 0;
478
- return (Number(o.value) || 0) - s;
479
- });
480
- }
481
- function Xt(e, l, o, a, n) {
482
- return Io(e).map((r, k) => {
483
- const I = r.sourceColor || fe(r.color) || fe(l) || Me.value[k] || R[k] || R[k % R.length], i = r.sourceColor ? r.sourceColor : Ut(I, r, a), y = Et(r, a), M = n ?? r.parentId ?? r.id, L = Array.isArray(r.children) && r.children.length && r.children.reduce(
484
- (H, G) => H + (Number(G.value) || 0),
485
- 0
486
- ) || 1;
487
- return {
488
- ...r,
489
- color: i,
490
- proportion: y,
491
- parentName: o,
492
- rootId: M,
493
- children: Array.isArray(r.children) && r.children.length ? Xt(
494
- r.children,
495
- I,
496
- r.name,
497
- L,
498
- M
499
- ) : void 0
500
- };
501
- });
502
- }
503
- function Mo(e) {
504
- const l = ct(e), o = it(e), a = l * 0.55, n = l * 0.55, s = l * 1.05, r = l * 1.05, k = l * 0.35, I = o ? s + r + k : l * 0.45, i = e.x0 + a, y = e.x1 - a, M = e.y0 + I, L = e.y1 - n;
505
- return y <= i || L <= M ? null : { x0: i, y0: M, x1: y, y1: L };
506
- }
507
- function it(e) {
508
- const { height: l, lineHeight: o, width: a } = Ye(e);
509
- return l >= o && a > 6;
510
- }
511
- function Gt(e, l, o = 0, a = null) {
512
- if (!Array.isArray(e) || !e.length) return [];
513
- const n = e.map((i) => {
514
- const { children: y, ...M } = i;
515
- return {
516
- ...M
517
- };
518
- }), s = new Map(
519
- e.map((i) => [
520
- i.id,
521
- Array.isArray(i.children) ? i.children : []
522
- ])
523
- ), r = new Map(e.map((i) => [i.id, i])), k = Bl(n, l), I = [];
524
- for (const i of k) {
525
- const y = s.get(i.id) || [], M = r.get(i.id), L = {
526
- ...i,
527
- depth: o,
528
- parentId: a ?? i.parentId ?? null,
529
- color: M?.color ?? i.color ?? null,
530
- children: y,
531
- isVisibleNode: !0,
532
- showLabel: it(i)
533
- };
534
- if (I.push(L), y.length) {
535
- const H = Mo(L);
536
- H && I.push(
537
- ...Gt(
538
- y,
539
- H,
540
- o + 1,
541
- i.id
542
- )
543
- );
544
- }
545
- }
546
- return I;
547
- }
548
- const Oo = $(() => {
549
- const e = q.value.length ? q.value : Ht.value, l = e.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, o = e.map((n, s) => {
550
- const r = n.children ? n.children.reduce(
551
- (M, L) => M + (Number(L.value) || 0),
552
- 0
553
- ) : n.value, { children: k, ...I } = n, i = n.sourceColor || fe(n.color) || ut.value.get(n.id) || Me.value[s] || R[s] || R[s % R.length], y = n.sourceColor ? n.sourceColor : Ut(i, n, l);
554
- return {
555
- ...I,
556
- id: n.id || Ke(),
557
- parentId: n.parentId ?? null,
558
- name: n.name,
559
- value: n.value,
560
- color: y,
561
- proportion: (Number(n.value) || 0) / l,
562
- children: Array.isArray(n.children) && n.children.length ? Xt(
563
- n.children,
564
- i,
565
- n.name,
566
- r || 1
567
- ) : void 0
568
- };
569
- }), a = {
570
- x0: Y.value.left,
571
- y0: Y.value.top,
572
- x1: Y.value.left + Y.value.width,
573
- y1: Y.value.top + Y.value.height
574
- };
575
- return Gt(o, a);
576
- }), O = $(() => Oo.value);
577
- function de({ y0: e, y1: l }) {
578
- return l - e <= 0 ? 1e-4 : l - e;
579
- }
580
- function ve({ x0: e, x1: l }) {
581
- return l - e <= 0 ? 1e-4 : l - e;
582
- }
583
- function ct(e) {
584
- const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, r = 0.6, k = 1, I = 0.9;
585
- let i = e.proportion;
586
- if (!(typeof i == "number" && isFinite(i))) {
587
- const nl = Math.max(1e-6, ve(e) * de(e)), sl = Math.max(1e-6, Y.value.width * Y.value.height);
588
- i = nl / sl;
589
- }
590
- const y = Math.pow(
591
- Math.min(1, Math.max(0, i)),
592
- s
593
- ), M = r + (k - r) * y, L = Math.max(0, Number(e.depth) || 0), H = Math.pow(0.9, L);
594
- let G = o * M * H;
595
- const bt = Math.max(1e-4, Math.min(ve(e), de(e)));
596
- return G = Math.min(G, bt * I), G = Math.min(G, n), G = Math.max(a, G), G;
597
- }
598
- function Yt(e) {
599
- pe.value = e, xt.value += 1;
600
- }
601
- const J = $(() => ({
602
- startX: 0,
603
- startY: 0,
604
- width: Y.value.vbWidth,
605
- height: Y.value.vbHeight
606
- }));
607
- function Z(e, l = E.value) {
608
- for (const o of l) {
609
- if (o.id === e)
610
- return o;
611
- if (o.children) {
612
- const a = Z(e, o.children);
613
- if (a)
614
- return a;
615
- }
616
- }
617
- return null;
618
- }
619
- function Zt(e) {
620
- const l = [];
621
- let o = Z(e);
622
- for (; o && o.parentId; ) {
623
- const a = Z(o.parentId);
624
- if (!a) break;
625
- l.unshift(a.id), o = a;
626
- }
627
- return l;
628
- }
629
- const Pe = $(() => V.value.length > 0);
630
- function Ee() {
631
- q.value = E.value.slice(), V.value = [], z("selectDatapoint", void 0);
632
- }
633
- function dt() {
634
- return V.value[V.value.length - 1] ?? null;
635
- }
636
- function Po(e, l, o) {
637
- V.value = [...Zt(e.id), e.id], q.value = [e], t.value.events.datapointClick && t.value.events.datapointClick({
638
- datapoint: l ?? e,
639
- seriesIndex: o
640
- }), z("selectDatapoint", l ?? e);
641
- }
642
- function _o(e, l) {
643
- const o = dt();
644
- if (!o) {
645
- Ee();
646
- return;
647
- }
648
- const a = Z(o);
649
- if (!a?.parentId) {
650
- t.value.events.datapointClick && t.value.events.datapointClick({
651
- datapoint: e,
652
- seriesIndex: l
653
- }), Ee();
654
- return;
655
- }
656
- const n = Z(a.parentId);
657
- if (!n) {
658
- Ee();
659
- return;
660
- }
661
- V.value = [...Zt(n.id), n.id], q.value = [n], t.value.events.datapointClick && t.value.events.datapointClick({
662
- datapoint: e,
663
- seriesIndex: l
664
- }), z("selectDatapoint", e);
665
- }
666
- function _e(e, l) {
667
- if (!e) {
668
- Ee();
669
- return;
670
- }
671
- const o = Z(e.id);
672
- if (!o) return;
673
- if (dt() === o.id) {
674
- _o(e, l);
675
- return;
676
- }
677
- Po(o, e, l);
678
- }
679
- function Lo(e) {
680
- return e ? dt() === e.id : !1;
681
- }
682
- const ae = $(() => {
683
- const e = [{ id: null, label: "All" }];
684
- if (V.value.length > 0) {
685
- let l = Z(V.value[V.value.length - 1]);
686
- const o = [];
687
- for (; l; )
688
- o.unshift(l), l = l.parentId ? Z(l.parentId) : null;
689
- for (const a of o)
690
- e.push({
691
- id: a.id,
692
- label: a.name,
693
- node: a
694
- });
695
- }
696
- return e;
697
- }), F = se(null), $e = $(() => E.value.map((e, l) => ({
698
- ...e,
699
- color: fe(e.color) || Me.value[l] || R[l] || R[l % R.length],
700
- shape: "square"
701
- })).sort((e, l) => l.value - e.value).map((e, l) => {
702
- const o = e.value / E.value.map((a) => a.value).reduce((a, n) => a + n, 0);
703
- return {
704
- ...e,
705
- proportion: o,
706
- opacity: P.value.includes(e.id) ? 0.5 : 1,
707
- display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? qe(
708
- t.value.style.chart.layout.labels.formatter,
709
- e.value,
710
- ze({
711
- p: t.value.style.chart.layout.labels.prefix,
712
- v: e.value,
713
- s: t.value.style.chart.layout.labels.suffix,
714
- r: t.value.style.chart.legend.roundingValue
715
- }),
716
- { datapoint: e }
717
- ) : ""}${t.value.style.chart.legend.showPercentage ? P.value.includes(e.id) ? `${t.value.style.chart.legend.showValue ? " (" : ""}- %${t.value.style.chart.legend.showValue ? ")" : ""}` : `${t.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ke.value) ? "-" : (e.value / ke.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
718
- };
719
- })), Fo = $(() => ({
720
- cy: "treemap-div-legend",
721
- backgroundColor: t.value.style.chart.legend.backgroundColor,
722
- color: t.value.style.chart.legend.color,
723
- fontSize: t.value.style.chart.legend.fontSize,
724
- paddingBottom: 12,
725
- fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
726
- })), Ue = $(
727
- () => P.value.length === $e.value.length
728
- );
729
- function No() {
730
- P.value.length ? P.value = [] : $e.value.forEach((e) => {
731
- P.value.push(e.id);
732
- });
733
- }
734
- function We(e) {
735
- F.value = null, P.value.includes(e.id) ? P.value = P.value.filter((l) => l !== e.id) : P.value.length < w.dataset.length - 1 && P.value.push(e.id), z("selectLegend", Ht.value);
736
- }
737
- function jt(e) {
738
- if (!E.value.length)
739
- return t.value.debug && console.warn("VueUiTreemap - There are no series to show."), null;
740
- const l = E.value.find((o) => o.name === e);
741
- return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
742
- }
743
- function Ro(e) {
744
- const l = jt(e);
745
- l !== null && P.value.includes(l.id) && We({ id: l.id });
746
- }
747
- function zo(e) {
748
- const l = jt(e);
749
- l !== null && (P.value.includes(l.id) || We({ id: l.id }));
750
- }
751
- function Do({ datapoint: e, seriesIndex: l }) {
752
- F.value = null, Ae.value = !1, le.value = null, Ie.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
753
- }
754
- const Xe = g(null);
755
- function Kt({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
756
- if (Ue.value) return;
757
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), le.value = l, Ie.value = o, F.value = e, Xe.value = {
758
- datapoint: e,
759
- seriesIndex: l,
760
- config: t.value,
761
- series: Oe.value
762
- };
763
- const a = t.value.style.chart.tooltip.customFormat;
764
- if (fo(a) && ml(
765
- () => a({
766
- seriesIndex: l,
767
- datapoint: e,
768
- series: Oe.value,
769
- config: t.value
770
- })
771
- ))
772
- Je.value = a({
773
- seriesIndex: l,
774
- datapoint: e,
775
- series: Oe.value,
776
- config: t.value
777
- });
778
- else {
779
- let n = "";
780
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.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>${qe(
781
- t.value.style.chart.layout.labels.formatter,
782
- e.value,
783
- ze({
784
- p: t.value.style.chart.layout.labels.prefix,
785
- v: e.value,
786
- s: t.value.style.chart.layout.labels.suffix,
787
- r: t.value.style.chart.tooltip.roundingValue
788
- }),
789
- { datapoint: e, seriesIndex: l }
790
- )}</b>`, Je.value = `<div>${n}</div>`;
791
- }
792
- Ae.value = !0;
793
- }
794
- const ne = $(() => {
795
- const e = O.value.map((o) => ({
796
- name: o.name,
797
- color: o.color
798
- })), l = O.value.map((o) => o.value);
799
- return { head: e, body: l };
800
- });
801
- function vt(e = null) {
802
- ro(() => {
803
- const l = ne.value.head.map((n, s) => [
804
- [n.name],
805
- [ne.value.body[s]],
806
- [
807
- isNaN(ne.value.body[s] / ke.value) ? "-" : ne.value.body[s] / ke.value * 100
808
- ]
809
- ]), o = [
810
- [t.value.style.chart.title.text],
811
- [t.value.style.chart.title.subtitle.text],
812
- [[""], ["val"], ["%"]]
813
- ].concat(l), a = gl(o);
814
- e ? e(a) : yl({
815
- csvContent: a,
816
- title: t.value.style.chart.title.text || "vue-ui-treemap"
817
- });
818
- });
819
- }
820
- const Te = $(() => {
821
- const e = [
822
- t.value.table.columnNames.series,
823
- t.value.table.columnNames.value,
824
- t.value.table.columnNames.percentage
825
- ], l = ne.value.head.map((n, s) => {
826
- const r = qe(
827
- t.value.style.chart.layout.labels.formatter,
828
- ne.value.body[s],
829
- ze({
830
- p: t.value.style.chart.layout.labels.prefix,
831
- v: ne.value.body[s],
832
- s: t.value.style.chart.layout.labels.suffix,
833
- r: t.value.table.td.roundingValue
834
- })
835
- );
836
- return [
837
- {
838
- color: n.color,
839
- name: n.name,
840
- shape: "square"
841
- },
842
- r,
843
- isNaN(ne.value.body[s] / ke.value) ? "-" : ze({
844
- v: ne.value.body[s] / ke.value * 100,
845
- s: "%",
846
- r: t.value.table.td.roundingPercentage
847
- })
848
- ];
849
- }), o = {
850
- th: {
851
- backgroundColor: t.value.table.th.backgroundColor,
852
- color: t.value.table.th.color,
853
- outline: t.value.table.th.outline
854
- },
855
- td: {
856
- backgroundColor: t.value.table.td.backgroundColor,
857
- color: t.value.table.td.color,
858
- outline: t.value.table.td.outline
859
- },
860
- breakpoint: t.value.table.responsiveBreakpoint
861
- };
862
- return {
863
- colNames: [
864
- t.value.table.columnNames.series,
865
- t.value.table.columnNames.value
866
- ],
867
- head: e,
868
- body: l,
869
- config: o
870
- };
871
- });
872
- function Bo() {
873
- return O.value;
874
- }
875
- function qt() {
876
- X.value.showTable = !X.value.showTable;
877
- }
878
- function Jt() {
879
- X.value.showTooltip = !X.value.showTooltip;
880
- }
881
- const Le = g(!1);
882
- function ht() {
883
- Le.value = !Le.value;
884
- }
885
- const Ge = g(null);
886
- function Qt(e) {
887
- Ge.value = e;
888
- }
889
- function eo() {
890
- Ge.value = null;
891
- }
892
- async function Vo({ scale: e = 2 } = {}) {
893
- if (!K.value) return;
894
- const { width: l, height: o } = K.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: s } = await Ol({
895
- domElement: K.value,
896
- base64: !0,
897
- img: !0,
898
- scale: e
899
- });
900
- return {
901
- imageUri: n,
902
- base64: s,
903
- title: t.value.style.chart.title.text,
904
- width: l,
905
- height: o,
906
- aspectRatio: a
907
- };
908
- }
909
- const Fe = $(() => {
910
- const e = t.value.table.useDialog && !t.value.table.show, l = X.value.showTable;
911
- return {
912
- component: e ? re : C,
913
- title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
914
- props: e ? {
915
- backgroundColor: t.value.table.th.backgroundColor,
916
- color: t.value.table.th.color,
917
- headerColor: t.value.table.th.color,
918
- headerBg: t.value.table.th.backgroundColor,
919
- isFullscreen: pe.value,
920
- fullscreenParent: K.value,
921
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
922
- isCursorPointer: ie.value
923
- } : {
924
- hideDetails: !0,
925
- config: {
926
- open: l,
927
- maxHeight: 1e4,
928
- body: {
929
- backgroundColor: t.value.style.chart.backgroundColor,
930
- color: t.value.style.chart.color
931
- },
932
- head: {
933
- backgroundColor: t.value.style.chart.backgroundColor,
934
- color: t.value.style.chart.color
935
- }
936
- }
937
- }
938
- };
939
- });
940
- Ce(
941
- () => X.value.showTable,
942
- (e) => {
943
- t.value.table.show || (e && t.value.table.useDialog && Se.value ? Se.value.open() : "close" in Se.value && Se.value.close());
944
- }
945
- );
946
- function to() {
947
- X.value.showTable = !1, et.value && et.value.setTableIconState(!1);
948
- }
949
- const Ho = $(() => $e.value.map((e) => ({
950
- ...e,
951
- name: e.display
952
- }))), Eo = $(() => t.value.style.chart.backgroundColor), Uo = $(() => t.value.style.chart.legend), Wo = $(() => t.value.style.chart.title), { exportSvg: Xo, getSvg: Go } = Al({
953
- svg: ye,
954
- title: Wo,
955
- legend: Uo,
956
- legendItems: Ho,
957
- backgroundColor: Eo
958
- });
959
- async function oo({ isCb: e }) {
960
- He.value = !0, await ro();
961
- try {
962
- if (e) {
963
- const { blob: l, url: o, text: a, dataUrl: n } = await Go();
964
- await Promise.resolve(
965
- t.value.userOptions.callbacks.svg({
966
- blob: l,
967
- url: o,
968
- text: a,
969
- dataUrl: n
970
- })
971
- );
972
- } else
973
- await Promise.resolve(Xo());
974
- } finally {
975
- He.value = !1;
976
- }
977
- }
978
- function Yo(e) {
979
- if (e?.stage === "start") {
980
- Ve.value = !0;
981
- return;
982
- }
983
- if (e?.stage === "end") {
984
- Ve.value = !1;
985
- return;
986
- }
987
- zt();
988
- }
989
- function ft(e) {
990
- const l = ct(e), o = Math.max(l * 0.5, 4), a = Math.max(l * 0.5, 4), n = l * 1.1;
991
- return {
992
- fontSize: l,
993
- paddingX: o,
994
- paddingTop: a,
995
- lineHeight: n
996
- };
997
- }
998
- function Ye(e) {
999
- const { paddingX: l, paddingTop: o, lineHeight: a } = ft(e), n = e.x0 + l, s = e.y0 + o, r = Math.max(ve(e) - l * 2, 0), k = Math.max(de(e) - o * 2, 0);
1000
- return {
1001
- x: n,
1002
- y: s,
1003
- width: r,
1004
- height: k,
1005
- lineHeight: a
1006
- };
1007
- }
1008
- function Zo(e) {
1009
- return ho(
1010
- e.color ?? t.value.style.chart.backgroundColor
1011
- );
1012
- }
1013
- function jo(e, l) {
1014
- const { fontSize: o, lineHeight: a } = ft(e), n = Jo(e), s = Qo(e);
1015
- if (n <= 0 || s <= 0)
1016
- return [];
1017
- const r = Math.max(
1018
- Math.floor(s / Math.max(a, 1)),
1019
- 1
1020
- ), k = qe(
1021
- t.value.style.chart.layout.labels.formatter,
1022
- e.value,
1023
- ze({
1024
- p: t.value.style.chart.layout.labels.prefix,
1025
- v: e.value,
1026
- s: t.value.style.chart.layout.labels.suffix,
1027
- r: t.value.style.chart.tooltip.roundingValue
1028
- }),
1029
- { datapoint: e, seriesIndex: l }
1030
- ), I = Math.ceil(o * 0.2), i = Math.ceil(o * 1.4), y = Math.max(
1031
- n - i - I,
1032
- 0
1033
- );
1034
- if (y <= 0)
1035
- return [];
1036
- if (Array.isArray(e.children) && e.children.length) {
1037
- const H = yt(
1038
- `${e.name} (${k})`,
1039
- y,
1040
- o,
1041
- 500
1042
- );
1043
- return H ? [H] : [];
1044
- }
1045
- const M = [], L = yt(
1046
- `${e.name}`,
1047
- y,
1048
- o,
1049
- 500
1050
- );
1051
- if (L && M.push(L), r >= 2) {
1052
- const H = yt(
1053
- k,
1054
- y,
1055
- o,
1056
- 400
1057
- );
1058
- H && M.push(H);
1059
- }
1060
- return M.slice(0, r);
1061
- }
1062
- function Ko({ rect: e, seriesIndex: l, isTitle: o }) {
1063
- if (!e || !t.value.style.chart.layout.labels.showDefaultLabels || !it(e))
1064
- return "";
1065
- const { fontSize: a } = ft(e), n = Zo(e), s = jo(e, l), r = Ye(e);
1066
- if (!s.length || r.width <= 0 || r.height <= 0)
1067
- return "";
1068
- const k = `treemap_clip_${W.value}_${e.id}_${e.depth}_${l}`, I = r.x, i = r.y, y = Math.max(r.width, 0), M = Math.max(r.height, 0), L = s.map((H, G) => {
1069
- const bt = r.y + r.lineHeight * G;
1070
- return `
1071
- <text
1072
- x="${r.x}"
1073
- y="${bt}"
1074
- fill="${n}"
1075
- font-size="${a}"
1076
- font-family="${t.value.style.fontFamily}"
1077
- font-weight="${G === 0 ? 500 : 400}"
1078
- text-anchor="start"
1079
- dominant-baseline="text-before-edge"
1080
- >
1081
- ${bl(H)}
1082
- </text>
1083
- `;
1084
- }).join("");
1085
- return `
1086
- <g>
1087
- <defs>
1088
- <clipPath id="${k}" clipPathUnits="userSpaceOnUse">
1089
- <rect
1090
- x="${I}"
1091
- y="${i}"
1092
- width="${y}"
1093
- height="${M}"
1094
- />
1095
- </clipPath>
1096
- </defs>
1097
- <g clip-path="url(#${k})">
1098
- ${L}
1099
- </g>
1100
- </g>
1101
- `;
1102
- }
1103
- let pt;
1104
- function qo() {
1105
- return pt || (pt = document.createElement("canvas")), pt.getContext("2d");
1106
- }
1107
- function gt(e, l, o = 400) {
1108
- const a = qo();
1109
- return a ? (a.font = `${o} ${l}px ${t.value.style.fontFamily}`, a.measureText(String(e)).width) : e.length * l * 0.6;
1110
- }
1111
- function yt(e, l, o, a = 400) {
1112
- const n = String(e ?? "");
1113
- if (!n.length || l <= 0)
1114
- return "";
1115
- if (gt(n, o, a) <= l)
1116
- return n;
1117
- const s = "…";
1118
- if (gt(
1119
- s,
1120
- o,
1121
- a
1122
- ) > l)
1123
- return "";
1124
- let k = 0, I = n.length, i = "";
1125
- for (; k <= I; ) {
1126
- const y = Math.floor((k + I) / 2), M = `${n.slice(0, y)}${s}`;
1127
- gt(
1128
- M,
1129
- o,
1130
- a
1131
- ) <= l ? (i = M, k = y + 1) : I = y - 1;
1132
- }
1133
- return i || s;
1134
- }
1135
- function Jo(e) {
1136
- return Ye(e).width;
1137
- }
1138
- function Qo(e) {
1139
- return Ye(e).height;
1140
- }
1141
- function el(e) {
1142
- const l = t.value.style.chart.layout.rects.borderRadius, o = ve(e), a = de(e);
1143
- return Math.min(l, Math.min(o, a) / 6);
1144
- }
1145
- async function lo() {
1146
- if (z("copyAlt", {
1147
- config: t.value,
1148
- dataset: O.value
1149
- }), !t.value.userOptions.callbacks.altCopy) {
1150
- console.warn(
1151
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
1152
- );
1153
- return;
1154
- }
1155
- await Promise.resolve(
1156
- t.value.userOptions.callbacks.altCopy({
1157
- config: t.value,
1158
- dataset: O.value
1159
- })
1160
- );
1161
- }
1162
- function tl() {
1163
- le.value = null, ot.value = !0;
1164
- }
1165
- function ol() {
1166
- le.value = null, Ie.value = "pointer", Ae.value = !1, F.value = null, ot.value = !1;
1167
- }
1168
- function ll(e) {
1169
- if (!ye.value || Le.value || document.activeElement !== ye.value || !O.value.length || Ue.value) return;
1170
- const l = ["ArrowLeft", "ArrowUp"].includes(e.key), o = ["ArrowRight", "ArrowDown"].includes(e.key), a = e.key === "Enter" || e.key === " ", n = e.key === "Escape";
1171
- if (!l && !o && !a && !n)
1172
- return;
1173
- if (e.preventDefault(), e.stopPropagation(), n) {
1174
- le.value = null, Ie.value = "pointer", Ae.value = !1, F.value = null;
1175
- return;
1176
- }
1177
- if (a) {
1178
- if (le.value === null) return;
1179
- const y = O.value[le.value];
1180
- if (!y) return;
1181
- _e(y, le.value);
1182
- return;
1183
- }
1184
- let s = le.value;
1185
- const r = F.value ? O.value.findIndex(
1186
- (y) => y.id === F.value.id
1187
- ) : null, k = s !== null && s >= 0 && s < O.value.length, I = r !== null && r >= 0 && r < O.value.length;
1188
- k ? o ? (s += 1, s >= O.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = O.value.length - 1)) : I ? (s = o ? r + 1 : r - 1, s >= O.value.length && (s = 0), s < 0 && (s = O.value.length - 1)) : o ? s = 0 : s = O.value.length - 1;
1189
- const i = O.value[s];
1190
- i && (al(s), Kt({
1191
- datapoint: i,
1192
- seriesIndex: s,
1193
- triggerMode: "keyboard"
1194
- }));
1195
- }
1196
- function al(e) {
1197
- if (!Number.isFinite(e) || !ye.value) return;
1198
- const l = O.value[e];
1199
- if (!l) return;
1200
- const o = l.x0 + ve(l) / 2, a = l.y0 + de(l) / 2, n = ye.value.getBoundingClientRect();
1201
- Lt.value = {
1202
- x: n.left + (o - J.value.startX) / J.value.width * n.width,
1203
- y: n.top + (a - J.value.startY) / J.value.height * n.height
1204
- };
1205
- }
1206
- const mt = $(() => {
1207
- const e = Te.value?.colNames ?? [], l = Te.value?.body ?? [];
1208
- return { headers: e, rows: l };
1209
- });
1210
- return h({
1211
- getData: Bo,
1212
- getImage: Vo,
1213
- generateCsv: vt,
1214
- generateImage: zt,
1215
- generateSvg: oo,
1216
- generatePdf: Rt,
1217
- hideSeries: zo,
1218
- showSeries: Ro,
1219
- toggleTable: qt,
1220
- toggleTooltip: Jt,
1221
- toggleAnnotator: ht,
1222
- toggleFullscreen: Yt,
1223
- copyAlt: lo
1224
- }), (e, l) => (c(), A("div", {
1225
- ref_key: "treemapChart",
1226
- ref: K,
1227
- class: Ct(`vue-data-ui-component vue-ui-treemap ${pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1228
- style: he(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
1229
- id: `treemap_${W.value}`,
1230
- onMouseenter: l[2] || (l[2] = () => m(Ft)(!0)),
1231
- onMouseleave: l[3] || (l[3] = () => m(Ft)(!1))
1232
- }, [
1233
- N("div", {
1234
- id: `chart-instructions-${W.value}`,
1235
- class: "sr-only"
1236
- }, [
1237
- N("p", null, Ne(t.value.a11y.translations.keyboardNavigation), 1)
1238
- ], 8, Gl),
1239
- mt.value?.rows?.length ? (c(), Q(Fl, {
1240
- key: 0,
1241
- uid: W.value,
1242
- head: mt.value.headers,
1243
- body: mt.value.rows,
1244
- notice: t.value.a11y.translations.tableAvailable,
1245
- caption: t.value.a11y.translations.tableCaption
1246
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : _("", !0),
1247
- t.value.userOptions.buttons.annotator ? (c(), Q(m(v), {
1248
- key: 1,
1249
- svgRef: m(ye),
1250
- backgroundColor: t.value.style.chart.backgroundColor,
1251
- color: t.value.style.chart.color,
1252
- active: Le.value,
1253
- isCursorPointer: ie.value,
1254
- onClose: ht
1255
- }, {
1256
- "annotator-action-close": T(() => [
1257
- b(e.$slots, "annotator-action-close", {}, void 0, !0)
1258
- ]),
1259
- "annotator-action-color": T(({ color: o }) => [
1260
- b(e.$slots, "annotator-action-color", D(B({ color: o })), void 0, !0)
1261
- ]),
1262
- "annotator-action-draw": T(({ mode: o }) => [
1263
- b(e.$slots, "annotator-action-draw", D(B({ mode: o })), void 0, !0)
1264
- ]),
1265
- "annotator-action-undo": T(({ disabled: o }) => [
1266
- b(e.$slots, "annotator-action-undo", D(B({ disabled: o })), void 0, !0)
1267
- ]),
1268
- "annotator-action-redo": T(({ disabled: o }) => [
1269
- b(e.$slots, "annotator-action-redo", D(B({ disabled: o })), void 0, !0)
1270
- ]),
1271
- "annotator-action-delete": T(({ disabled: o }) => [
1272
- b(e.$slots, "annotator-action-delete", D(B({ disabled: o })), void 0, !0)
1273
- ]),
1274
- _: 3
1275
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : _("", !0),
1276
- ko.value ? (c(), A("div", {
1277
- key: 2,
1278
- ref_key: "noTitle",
1279
- ref: Mt,
1280
- class: "vue-data-ui-no-title-space",
1281
- style: "height:36px; width: 100%;background:transparent"
1282
- }, null, 512)) : _("", !0),
1283
- t.value.style.chart.title.text ? (c(), A("div", {
1284
- key: 3,
1285
- ref_key: "chartTitle",
1286
- ref: At,
1287
- style: he(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
1288
- }, [
1289
- (c(), Q(Pl, {
1290
- key: `title_${Ot.value}`,
1291
- config: {
1292
- title: {
1293
- cy: "treemap-div-title",
1294
- ...t.value.style.chart.title
1295
- },
1296
- subtitle: {
1297
- cy: "treemap-div-subtitle",
1298
- ...t.value.style.chart.title.subtitle
1299
- }
1300
- }
1301
- }, null, 8, ["config"]))
1302
- ], 4)) : _("", !0),
1303
- N("div", {
1304
- id: `legend-top-${W.value}`
1305
- }, null, 8, Yl),
1306
- t.value.userOptions.show && ue.value && (m(Nt) || m(at)) ? (c(), Q(m(S), {
1307
- ref_key: "userOptionsRef",
1308
- ref: et,
1309
- key: `user_option_${xt.value}`,
1310
- backgroundColor: t.value.style.chart.backgroundColor,
1311
- color: t.value.style.chart.color,
1312
- isPrinting: m(st),
1313
- isImaging: m(rt),
1314
- uid: W.value,
1315
- hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
1316
- hasPdf: t.value.userOptions.buttons.pdf,
1317
- hasXls: t.value.userOptions.buttons.csv,
1318
- hasImg: t.value.userOptions.buttons.img,
1319
- hasSvg: t.value.userOptions.buttons.svg,
1320
- hasTable: t.value.userOptions.buttons.table,
1321
- hasFullscreen: t.value.userOptions.buttons.fullscreen,
1322
- hasAltCopy: t.value.userOptions.buttons.altCopy,
1323
- isFullscreen: pe.value,
1324
- isTooltip: X.value.showTooltip,
1325
- titles: { ...t.value.userOptions.buttonTitles },
1326
- chartElement: K.value,
1327
- position: t.value.userOptions.position,
1328
- hasAnnotator: t.value.userOptions.buttons.annotator,
1329
- isAnnotation: Le.value,
1330
- callbacks: t.value.userOptions.callbacks,
1331
- printScale: t.value.userOptions.print.scale,
1332
- tableDialog: t.value.table.useDialog,
1333
- isCursorPointer: ie.value,
1334
- onToggleFullscreen: Yt,
1335
- onGeneratePdf: m(Rt),
1336
- onGenerateCsv: vt,
1337
- onGenerateImage: Yo,
1338
- onGenerateSvg: oo,
1339
- onToggleTable: qt,
1340
- onToggleTooltip: Jt,
1341
- onToggleAnnotator: ht,
1342
- onCopyAlt: lo,
1343
- style: he({
1344
- visibility: m(Nt) ? m(at) ? "visible" : "hidden" : "visible"
1345
- })
1346
- }, no({ _: 2 }, [
1347
- e.$slots.menuIcon ? {
1348
- name: "menuIcon",
1349
- fn: T(({ isOpen: o, color: a }) => [
1350
- b(e.$slots, "menuIcon", D(B({ isOpen: o, color: a })), void 0, !0)
1351
- ]),
1352
- key: "0"
1353
- } : void 0,
1354
- e.$slots.optionTooltip ? {
1355
- name: "optionTooltip",
1356
- fn: T(() => [
1357
- b(e.$slots, "optionTooltip", {}, void 0, !0)
1358
- ]),
1359
- key: "1"
1360
- } : void 0,
1361
- e.$slots.optionPdf ? {
1362
- name: "optionPdf",
1363
- fn: T(() => [
1364
- b(e.$slots, "optionPdf", {}, void 0, !0)
1365
- ]),
1366
- key: "2"
1367
- } : void 0,
1368
- e.$slots.optionCsv ? {
1369
- name: "optionCsv",
1370
- fn: T(() => [
1371
- b(e.$slots, "optionCsv", {}, void 0, !0)
1372
- ]),
1373
- key: "3"
1374
- } : void 0,
1375
- e.$slots.optionImg ? {
1376
- name: "optionImg",
1377
- fn: T(() => [
1378
- b(e.$slots, "optionImg", {}, void 0, !0)
1379
- ]),
1380
- key: "4"
1381
- } : void 0,
1382
- e.$slots.optionSvg ? {
1383
- name: "optionSvg",
1384
- fn: T(() => [
1385
- b(e.$slots, "optionSvg", {}, void 0, !0)
1386
- ]),
1387
- key: "5"
1388
- } : void 0,
1389
- e.$slots.optionTable ? {
1390
- name: "optionTable",
1391
- fn: T(() => [
1392
- b(e.$slots, "optionTable", {}, void 0, !0)
1393
- ]),
1394
- key: "6"
1395
- } : void 0,
1396
- e.$slots.optionFullscreen ? {
1397
- name: "optionFullscreen",
1398
- fn: T(({ toggleFullscreen: o, isFullscreen: a }) => [
1399
- b(e.$slots, "optionFullscreen", D(B({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1400
- ]),
1401
- key: "7"
1402
- } : void 0,
1403
- e.$slots.optionAnnotator ? {
1404
- name: "optionAnnotator",
1405
- fn: T(({ toggleAnnotator: o, isAnnotator: a }) => [
1406
- b(e.$slots, "optionAnnotator", D(B({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1407
- ]),
1408
- key: "8"
1409
- } : void 0,
1410
- e.$slots.optionAltCopy ? {
1411
- name: "optionAltCopy",
1412
- fn: T(({ altCopy: o }) => [
1413
- b(e.$slots, "optionAltCopy", D(B({ altCopy: o })), void 0, !0)
1414
- ]),
1415
- key: "9"
1416
- } : void 0
1417
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : _("", !0),
1418
- ae.value.length > 1 ? (c(), A("nav", {
1419
- key: 5,
1420
- class: "vue-ui-treemap-breadcrumbs",
1421
- "data-dom-to-png-ignore": "",
1422
- ref_key: "breadcrumbsNav",
1423
- ref: Qe
1424
- }, [
1425
- (c(!0), A(xe, null, Re(ae.value, (o, a) => (c(), A("span", {
1426
- role: "button",
1427
- tabindex: a < ae.value.length - 1 ? 0 : void 0,
1428
- key: o.id || "root",
1429
- onClick: (n) => a === ae.value.length - 1 ? () => {
1430
- } : _e(o.node),
1431
- onKeydown: [
1432
- so(wt((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["enter"]),
1433
- so(wt((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["space"])
1434
- ],
1435
- class: "vue-ui-treemap-crumb",
1436
- "data-last-crumb": a === ae.value.length - 1,
1437
- style: he({
1438
- color: t.value.style.chart.color,
1439
- cursor: ie.value ? "pointer" : "default"
1440
- }),
1441
- onMouseenter: (n) => Qt(a),
1442
- onMouseleave: eo,
1443
- onFocus: (n) => Qt(a),
1444
- onBlur: eo
1445
- }, [
1446
- N("span", jl, [
1447
- N("span", Kl, [
1448
- b(e.$slots, "breadcrumb-label", kt({ ref_for: !0 }, {
1449
- crumb: o,
1450
- isRoot: a === 0,
1451
- isFocus: Ge.value === a
1452
- }), () => [
1453
- a === 0 ? (c(), A("div", ql, [
1454
- Ze(po, {
1455
- name: Ge.value === 0 ? "homeFilled" : "home",
1456
- stroke: t.value.style.chart.color
1457
- }, null, 8, ["name", "stroke"])
1458
- ])) : (c(), A(xe, { key: 1 }, [
1459
- je(Ne(o.label), 1)
1460
- ], 64))
1461
- ], !0)
1462
- ]),
1463
- a < ae.value.length - 1 ? (c(), A("span", Jl, [
1464
- b(e.$slots, "breadcrumb-arrow", {}, () => [
1465
- l[4] || (l[4] = je(" › ", -1))
1466
- ], !0)
1467
- ])) : _("", !0)
1468
- ])
1469
- ], 44, Zl))), 128))
1470
- ], 512)) : _("", !0),
1471
- N("div", Ql, [
1472
- (c(), A("svg", {
1473
- ref_key: "svgRef",
1474
- ref: ye,
1475
- xmlns: m(pl),
1476
- "aria-describedby": `chart-instructions-${W.value}`,
1477
- class: Ct({
1478
- "vue-data-ui-fullscreen--on": pe.value,
1479
- "vue-data-ui-fulscreen--off": !pe.value,
1480
- "vue-data-ui-zoom-plus": !Pe.value,
1481
- "vue-data-ui-zoom-minus": Pe.value,
1482
- loading: m(ge)
1483
- }),
1484
- viewBox: `${J.value.startX} ${J.value.startY} ${J.value.width <= 0 ? 10 : J.value.width} ${J.value.height <= 0 ? 10 : J.value.height}`,
1485
- style: he(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
1486
- tabindex: "0",
1487
- onFocus: tl,
1488
- onBlur: ol,
1489
- onKeydown: ll
1490
- }, [
1491
- Ze(m(x)),
1492
- (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1493
- key: `tgrad_${o.id}`
1494
- }, [
1495
- t.value.style.chart.layout.rects.gradient.show ? (c(), A("defs", ta, [
1496
- N("radialGradient", {
1497
- id: `tgrad_${o.id}`,
1498
- gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
1499
- }, [
1500
- N("stop", {
1501
- offset: "18%",
1502
- "stop-color": o.color
1503
- }, null, 8, la),
1504
- N("stop", {
1505
- offset: "100%",
1506
- "stop-color": m(vo)(
1507
- o.color,
1508
- t.value.style.chart.layout.rects.gradient.intensity / 100
1509
- )
1510
- }, null, 8, aa)
1511
- ], 8, oa)
1512
- ])) : _("", !0)
1513
- ]))), 128)),
1514
- N("g", null, [
1515
- (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1516
- key: `rect_${o.id}_${o.depth}`
1517
- }, [
1518
- N("rect", {
1519
- x: o.x0,
1520
- y: o.y0,
1521
- height: de(o),
1522
- width: ve(o),
1523
- fill: oe.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ue.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
1524
- rx: el(o),
1525
- stroke: F.value && F.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1526
- "stroke-width": F.value && F.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1527
- onClick: wt((n) => _e(o, a), ["stop"]),
1528
- onMouseenter: () => Kt({
1529
- datapoint: o,
1530
- seriesIndex: a,
1531
- triggerMode: "pointer"
1532
- }),
1533
- onMouseleave: (n) => Do({ datapoint: o, seriesIndex: a }),
1534
- style: he(`opacity:${F.value ? F.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1535
- class: Ct([
1536
- "vue-ui-treemap-rect",
1537
- Lo(o) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
1538
- ])
1539
- }, null, 46, na)
1540
- ]))), 128)),
1541
- (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1542
- key: `label_${o.id}_${o.depth}`
1543
- }, [
1544
- !e.$slots.rect && !m(ge) && t.value.style.chart.layout.labels.showDefaultLabels && !Ue.value && o.showLabel ? (c(), A("g", {
1545
- key: 0,
1546
- style: { "pointer-events": "none" },
1547
- innerHTML: Ko({
1548
- rect: o,
1549
- seriesIndex: a,
1550
- isTitle: !!(o.children && o.children.length)
1551
- })
1552
- }, null, 8, sa)) : _("", !0)
1553
- ]))), 128)),
1554
- (c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
1555
- key: `slot_${o.id}_${o.depth}`
1556
- }, [
1557
- (c(), A("foreignObject", {
1558
- x: o.x0,
1559
- y: o.y0,
1560
- height: de(o),
1561
- width: ve(o),
1562
- class: "vue-ui-treemap-cell-foreignObject",
1563
- style: { "pointer-events": "none" }
1564
- }, [
1565
- N("div", ua, [
1566
- m(ge) ? _("", !0) : b(e.$slots, "rect", kt({
1567
- key: 0,
1568
- ref_for: !0
1569
- }, {
1570
- rect: {
1571
- ...o,
1572
- height: de(o),
1573
- width: ve(o),
1574
- isSelected: F.value ? F.value.id === o.id : !0
1575
- },
1576
- shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Pe.value,
1577
- fontSize: ct(o),
1578
- isZoom: Pe.value,
1579
- textColor: m(ho)(
1580
- o.color
1581
- )
1582
- }), void 0, !0)
1583
- ])
1584
- ], 8, ra))
1585
- ]))), 128))
1586
- ]),
1587
- b(e.$slots, "svg", D(B({
1588
- svg: Y.value,
1589
- isZoom: Pe.value,
1590
- rect: F.value,
1591
- config: t.value,
1592
- isPrintingImg: m(st) | m(rt) | Ve.value,
1593
- isPrintingSvg: He.value
1594
- })), void 0, !0)
1595
- ], 46, ea)),
1596
- e.$slots.hint ? (c(), A("div", ia, [
1597
- b(e.$slots, "hint", D(B({
1598
- hint: t.value.a11y.translations.keyboardNavigation,
1599
- isVisible: ot.value
1600
- })), void 0, !0)
1601
- ])) : _("", !0)
1602
- ]),
1603
- e.$slots.watermark ? (c(), A("div", ca, [
1604
- b(e.$slots, "watermark", D(B({
1605
- isPrinting: m(st) || m(rt) || Ve.value || He.value
1606
- })), void 0, !0)
1607
- ])) : _("", !0),
1608
- N("div", {
1609
- id: `legend-bottom-${W.value}`
1610
- }, null, 8, da),
1611
- Pt.value && (t.value.style.chart.legend.show || e.$slots.legend) ? (c(), Q(cl, {
1612
- key: 7,
1613
- to: t.value.style.chart.legend.position === "top" ? `#legend-top-${W.value}` : `#legend-bottom-${W.value}`
1614
- }, [
1615
- N("div", {
1616
- ref_key: "chartLegend",
1617
- ref: St
1618
- }, [
1619
- b(e.$slots, "legend", { legend: $e.value }, () => [
1620
- t.value.style.chart.legend.show ? (c(), Q(Ll, {
1621
- key: `legend_${Be.value}`,
1622
- legendSet: $e.value,
1623
- config: Fo.value,
1624
- id: `treemap_legend_${W.value}`,
1625
- isCursorPointer: ie.value,
1626
- onClickMarker: l[0] || (l[0] = ({ legend: o }) => We(o))
1627
- }, {
1628
- item: T(({ legend: o, index: a }) => [
1629
- m(ge) ? _("", !0) : (c(), A("div", {
1630
- key: 0,
1631
- onClick: (n) => We(o),
1632
- style: he(`opacity:${P.value.includes(o.id) ? 0.5 : 1}`)
1633
- }, Ne(o.display), 13, va))
1634
- ]),
1635
- legendToggle: T(() => [
1636
- $e.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !m(ge) ? (c(), Q(Nl, {
1637
- key: 0,
1638
- backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
1639
- color: t.value.style.chart.legend.selectAllToggle.color,
1640
- fontSize: t.value.style.chart.legend.fontSize,
1641
- checked: P.value.length > 0,
1642
- isCursorPointer: ie.value,
1643
- onToggle: No
1644
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : _("", !0)
1645
- ]),
1646
- _: 1
1647
- }, 8, ["legendSet", "config", "id", "isCursorPointer"])) : _("", !0)
1648
- ], !0)
1649
- ], 512)
1650
- ], 8, ["to"])) : _("", !0),
1651
- e.$slots.source ? (c(), A("div", {
1652
- key: 8,
1653
- ref_key: "source",
1654
- ref: It,
1655
- dir: "auto"
1656
- }, [
1657
- b(e.$slots, "source", {}, void 0, !0)
1658
- ], 512)) : _("", !0),
1659
- Ze(m(p), {
1660
- teleportTo: t.value.style.chart.tooltip.teleportTo,
1661
- show: X.value.showTooltip && Ae.value,
1662
- backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1663
- color: t.value.style.chart.tooltip.color,
1664
- fontSize: t.value.style.chart.tooltip.fontSize,
1665
- borderRadius: t.value.style.chart.tooltip.borderRadius,
1666
- borderColor: t.value.style.chart.tooltip.borderColor,
1667
- borderWidth: t.value.style.chart.tooltip.borderWidth,
1668
- backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1669
- position: t.value.style.chart.tooltip.position,
1670
- offsetY: t.value.style.chart.tooltip.offsetY,
1671
- parent: K.value,
1672
- content: Je.value,
1673
- isFullscreen: pe.value,
1674
- isCustom: m(fo)(t.value.style.chart.tooltip.customFormat),
1675
- smooth: t.value.style.chart.tooltip.smooth,
1676
- backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1677
- smoothForce: t.value.style.chart.tooltip.smoothForce,
1678
- smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold,
1679
- isA11yMode: Ie.value === "keyboard",
1680
- a11yPosition: Lt.value
1681
- }, {
1682
- "tooltip-before": T(() => [
1683
- b(e.$slots, "tooltip-before", D(B({ ...Xe.value })), void 0, !0)
1684
- ]),
1685
- tooltip: T(() => [
1686
- b(e.$slots, "tooltip", D(B({ ...Xe.value })), void 0, !0)
1687
- ]),
1688
- "tooltip-after": T(() => [
1689
- b(e.$slots, "tooltip-after", D(B({ ...Xe.value })), void 0, !0)
1690
- ]),
1691
- _: 3
1692
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1693
- ue.value && t.value.userOptions.buttons.table ? (c(), Q(dl(Fe.value.component), kt({ key: 9 }, Fe.value.props, {
1694
- ref_key: "tableUnit",
1695
- ref: Se,
1696
- onClose: to
1697
- }), no({
1698
- content: T(() => [
1699
- (c(), Q(m(f), {
1700
- key: `table_${De.value}`,
1701
- colNames: Te.value.colNames,
1702
- head: Te.value.head,
1703
- body: Te.value.body,
1704
- config: Te.value.config,
1705
- title: t.value.table.useDialog ? "" : Fe.value.title,
1706
- withCloseButton: !t.value.table.useDialog,
1707
- isCursorPointer: ie.value,
1708
- onClose: to
1709
- }, {
1710
- th: T(({ th: o }) => [
1711
- N("div", {
1712
- innerHTML: o,
1713
- style: { display: "flex", "align-items": "center" }
1714
- }, null, 8, ha)
1715
- ]),
1716
- td: T(({ td: o }) => [
1717
- je(Ne(o.name || o), 1)
1718
- ]),
1719
- _: 1
1720
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1721
- ]),
1722
- _: 2
1723
- }, [
1724
- t.value.table.useDialog ? {
1725
- name: "title",
1726
- fn: T(() => [
1727
- je(Ne(Fe.value.title), 1)
1728
- ]),
1729
- key: "0"
1730
- } : void 0,
1731
- t.value.table.useDialog ? {
1732
- name: "actions",
1733
- fn: T(() => [
1734
- N("button", {
1735
- tabindex: "0",
1736
- class: "vue-ui-user-options-button",
1737
- onClick: l[1] || (l[1] = (o) => vt(t.value.userOptions.callbacks.csv)),
1738
- style: he({ cursor: ie.value ? "pointer" : "default" })
1739
- }, [
1740
- Ze(po, {
1741
- name: "fileCsv",
1742
- stroke: Fe.value.props.color
1743
- }, null, 8, ["stroke"])
1744
- ], 4)
1745
- ]),
1746
- key: "1"
1747
- } : void 0
1748
- ]), 1040)) : _("", !0),
1749
- b(e.$slots, "skeleton", {}, () => [
1750
- m(ge) ? (c(), Q(Tl, { key: 0 })) : _("", !0)
1751
- ], !0)
1752
- ], 46, Xl));
1753
- }
1754
- }, Fa = /* @__PURE__ */ Rl(fa, [["__scopeId", "data-v-88e620a1"]]);
1755
- export {
1756
- Fa as default
1757
- };