vue-data-ui 3.17.2 → 3.17.4

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 (262) hide show
  1. package/README.md +228 -228
  2. package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
  3. package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
  4. package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
  5. package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
  6. package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
  7. package/dist/BaseScanner-BON3d_Sx.js +38 -0
  8. package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
  9. package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
  10. package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
  11. package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
  12. package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
  13. package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
  14. package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
  15. package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
  16. package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
  17. package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
  18. package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
  19. package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
  20. package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
  21. package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-history-plot.js +1 -1
  49. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  50. package/dist/components/vue-ui-icon.js +1 -1
  51. package/dist/components/vue-ui-kpi.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-pattern-seed.js +5 -0
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
  93. package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
  94. package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
  95. package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
  96. package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
  97. package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
  98. package/dist/patternUtils-BINhU4Ky.js +615 -0
  99. package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/arrow.d.ts +1 -1
  102. package/dist/types/utils.d.ts +500 -451
  103. package/dist/types/vue-data-ui.d.ts +2124 -1786
  104. package/dist/types/vue-ui-3d-bar.d.ts +10 -7
  105. package/dist/types/vue-ui-accordion.d.ts +2 -4
  106. package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
  107. package/dist/types/vue-ui-annotator.d.ts +3 -3
  108. package/dist/types/vue-ui-bullet.d.ts +10 -7
  109. package/dist/types/vue-ui-bump.d.ts +9 -6
  110. package/dist/types/vue-ui-candlestick.d.ts +10 -7
  111. package/dist/types/vue-ui-carousel-table.d.ts +2 -2
  112. package/dist/types/vue-ui-chestnut.d.ts +9 -6
  113. package/dist/types/vue-ui-chord.d.ts +10 -7
  114. package/dist/types/vue-ui-circle-pack.d.ts +10 -7
  115. package/dist/types/vue-ui-cursor.d.ts +2 -2
  116. package/dist/types/vue-ui-dag.d.ts +10 -7
  117. package/dist/types/vue-ui-dashboard.d.ts +3 -3
  118. package/dist/types/vue-ui-digits.d.ts +2 -2
  119. package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
  120. package/dist/types/vue-ui-donut.d.ts +11 -8
  121. package/dist/types/vue-ui-dumbbell.d.ts +11 -8
  122. package/dist/types/vue-ui-flow.d.ts +11 -8
  123. package/dist/types/vue-ui-funnel.d.ts +11 -8
  124. package/dist/types/vue-ui-galaxy.d.ts +11 -8
  125. package/dist/types/vue-ui-gauge.d.ts +11 -8
  126. package/dist/types/vue-ui-geo.d.ts +13 -6
  127. package/dist/types/vue-ui-gizmo.d.ts +2 -5
  128. package/dist/types/vue-ui-heatmap.d.ts +11 -8
  129. package/dist/types/vue-ui-history-plot.d.ts +11 -8
  130. package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
  131. package/dist/types/vue-ui-icon.d.ts +2 -4
  132. package/dist/types/vue-ui-kpi.d.ts +2 -4
  133. package/dist/types/vue-ui-mini-loader.d.ts +4 -4
  134. package/dist/types/vue-ui-molecule.d.ts +11 -8
  135. package/dist/types/vue-ui-mood-radar.d.ts +11 -8
  136. package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
  137. package/dist/types/vue-ui-onion.d.ts +11 -8
  138. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
  139. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  140. package/dist/types/vue-ui-pattern.d.ts +2 -4
  141. package/dist/types/vue-ui-quadrant.d.ts +11 -8
  142. package/dist/types/vue-ui-quick-chart.d.ts +11 -8
  143. package/dist/types/vue-ui-radar.d.ts +11 -8
  144. package/dist/types/vue-ui-rating.d.ts +4 -4
  145. package/dist/types/vue-ui-relation-circle.d.ts +11 -8
  146. package/dist/types/vue-ui-ridgeline.d.ts +11 -8
  147. package/dist/types/vue-ui-rings.d.ts +11 -8
  148. package/dist/types/vue-ui-scatter.d.ts +11 -8
  149. package/dist/types/vue-ui-skeleton.d.ts +2 -4
  150. package/dist/types/vue-ui-smiley.d.ts +2 -5
  151. package/dist/types/vue-ui-spark-trend.d.ts +2 -4
  152. package/dist/types/vue-ui-sparkbar.d.ts +4 -4
  153. package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
  154. package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
  155. package/dist/types/vue-ui-sparkline.d.ts +4 -4
  156. package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
  157. package/dist/types/vue-ui-stackbar.d.ts +11 -8
  158. package/dist/types/vue-ui-stackline.d.ts +11 -8
  159. package/dist/types/vue-ui-strip-plot.d.ts +11 -8
  160. package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
  161. package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
  162. package/dist/types/vue-ui-table.d.ts +4 -4
  163. package/dist/types/vue-ui-thermometer.d.ts +11 -8
  164. package/dist/types/vue-ui-timer.d.ts +2 -4
  165. package/dist/types/vue-ui-tiremarks.d.ts +11 -8
  166. package/dist/types/vue-ui-treemap.d.ts +11 -8
  167. package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
  168. package/dist/types/vue-ui-waffle.d.ts +11 -8
  169. package/dist/types/vue-ui-wheel.d.ts +11 -8
  170. package/dist/types/vue-ui-word-cloud.d.ts +11 -8
  171. package/dist/types/vue-ui-world.d.ts +11 -8
  172. package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
  173. package/dist/types/vue-ui-xy.d.ts +9 -6
  174. package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
  175. package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
  176. package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
  177. package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
  178. package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
  179. package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
  180. package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
  181. package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
  182. package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
  183. package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
  184. package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
  185. package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
  186. package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
  187. package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
  188. package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
  189. package/dist/utils.js +28 -25
  190. package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
  191. package/dist/vue-data-ui.js +103 -99
  192. package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
  193. package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
  194. package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
  195. package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
  196. package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
  197. package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
  198. package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
  199. package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
  200. package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
  201. package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
  202. package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
  203. package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
  204. package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
  205. package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
  206. package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
  207. package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
  208. package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
  209. package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
  210. package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
  211. package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
  212. package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
  213. package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
  214. package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
  215. package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
  216. package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
  217. package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
  218. package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
  219. package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
  220. package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
  221. package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
  222. package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
  223. package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
  224. package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
  225. package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
  226. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
  227. package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
  228. package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
  229. package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
  230. package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
  231. package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
  232. package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
  233. package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
  234. package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
  235. package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
  236. package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
  237. package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
  238. package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
  239. package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
  240. package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
  241. package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
  242. package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
  243. package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
  244. package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
  245. package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
  246. package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
  247. package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
  248. package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
  249. package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
  250. package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
  251. package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
  252. package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
  253. package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
  254. package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
  255. package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
  256. package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
  257. package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
  258. package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
  259. package/package.json +120 -119
  260. package/dist/BaseScanner-BhhkKVoj.js +0 -30
  261. package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
  262. package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
@@ -1,1726 +0,0 @@
1
- import { defineAsyncComponent as Ne, useSlots as Fl, onMounted as No, computed as k, ref as b, shallowRef as Ce, toRefs as Ll, watch as Be, onBeforeUnmount as Nl, openBlock as v, createElementBlock as M, unref as y, normalizeStyle as xe, normalizeClass as Zt, createElementVNode as E, toDisplayString as tt, createBlock as he, createCommentVNode as N, withCtx as S, renderSlot as C, normalizeProps as Y, guardReactiveProps as X, createSlots as Bo, Fragment as ot, renderList as ft, withKeys as Ro, withModifiers as Jt, mergeProps as pt, createVNode as gt, createTextVNode as yt, Teleport as Bl, resolveDynamicComponent as Rl, nextTick as Do } from "vue";
2
- import { j as mt, t as zo, m as Dl, p as G, n as zl, o as Vo, q as Vl, s as lt, k as bt, l as at, X as Qt, x as wt, W as kt, T as Ho, a0 as Hl, a1 as El, az as Ct, aA as eo, U as Wl } from "./lib-DBptbyyI.js";
3
- import { t as Ul, u as Yl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Xl } from "./useConfig-C40HvGpD.js";
5
- import { u as jl, B as Kl } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as ql } from "./usePrinter-CEpYU3r5.js";
7
- import { u as Gl } from "./useSvgExport-ByUukOZt.js";
8
- import { u as to } from "./useNestedProp-Bf5XFbs8.js";
9
- import { u as Zl } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as Jl } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Ql } from "./useChartAccessibility-9icAAmYg.js";
12
- import ea from "./img-LXxMLmCg.js";
13
- import ta from "./Title-BeMKE1cj.js";
14
- import oa from "./vue_ui_treemap-D9-AIkT-.js";
15
- import la from "./Legend-CS7Xo5LK.js";
16
- import Eo from "./BaseIcon-Cb3zzG6s.js";
17
- import { A as aa } from "./A11yDataTable-KcVAX2cP.js";
18
- import { B as na } from "./BaseLegendToggle-BQVIawmA.js";
19
- import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- function Wo(r, p) {
21
- const h = r.length;
22
- if (h === 0)
23
- throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);
24
- {
25
- let g = 1 / 0, f = -1 / 0, x = 0;
26
- for (let P = 0; P < h; P += 1) {
27
- const A = r[P].normalizedValue;
28
- A < g && (g = A), A > f && (f = A), x += A;
29
- }
30
- return Math.max(
31
- p ** 2 * f / x ** 2,
32
- x ** 2 / (p ** 2 * g)
33
- );
34
- }
35
- }
36
- function Uo(r) {
37
- const { xOffset: p, yOffset: h, width: g, height: f } = r;
38
- return {
39
- x0: p,
40
- y0: h,
41
- x1: p + g,
42
- y1: h + f
43
- };
44
- }
45
- function ua(r, p, h) {
46
- if (r.length === 0)
47
- return !0;
48
- {
49
- const g = r.concat(p), f = Wo(
50
- r,
51
- h
52
- ), x = Wo(g, h);
53
- return f >= x;
54
- }
55
- }
56
- function ra(r) {
57
- const p = [], h = r.length;
58
- for (let g = 0; g < h; g += 1) {
59
- const f = r[g], x = f.length;
60
- for (let m = 0; m < x; m += 1)
61
- p.push(f[m]);
62
- }
63
- return p;
64
- }
65
- function Yo(r, p) {
66
- const h = {
67
- ...p,
68
- children: r
69
- };
70
- return jo(h);
71
- }
72
- function ia(r) {
73
- return (r.x1 - r.x0) * (r.y1 - r.y0);
74
- }
75
- function Xo(r, p) {
76
- const { width: h, height: g, xOffset: f, yOffset: x } = oo(p), m = r.length, P = r.map(($) => $.normalizedValue || 0).reduce(($, V) => $ + V, 0), A = P / g, $e = P / h;
77
- let ue = f, fe = x;
78
- const Z = [];
79
- if (h >= g) {
80
- for (let $ = 0; $ < m; $ += 1) {
81
- const V = r[$], pe = fe + V.normalizedValue / A, Te = {
82
- x0: ue,
83
- y0: fe,
84
- x1: ue + A,
85
- y1: pe
86
- }, ge = Object.assign({}, V, Te);
87
- fe = pe, Z.push(ge);
88
- }
89
- return Z;
90
- } else {
91
- for (let $ = 0; $ < m; $ += 1) {
92
- const V = r[$], pe = ue + V.normalizedValue / $e, Te = {
93
- x0: ue,
94
- y0: fe,
95
- x1: pe,
96
- y1: fe + $e
97
- }, ge = Object.assign({}, V, Te);
98
- ue = pe, Z.push(ge);
99
- }
100
- return Z;
101
- }
102
- }
103
- function ca(r) {
104
- const p = oo(r), h = p.width, g = p.height;
105
- return Math.min(h, g);
106
- }
107
- function da(r, p) {
108
- const h = r.length, g = r.map((A) => A.value ?? 0).reduce((A, $e) => A + $e, 0), f = p / g, x = [];
109
- let m, P;
110
- for (let A = 0; A < h; A += 1)
111
- P = r[A], m = Object.assign({}, P, {
112
- normalizedValue: P.value * (f || 0)
113
- }), x.push(m);
114
- return x;
115
- }
116
- function oo(r) {
117
- const { x0: p, y0: h, x1: g, y1: f } = r;
118
- return {
119
- xOffset: p,
120
- yOffset: h,
121
- width: g - p,
122
- height: f - h
123
- };
124
- }
125
- function va(r, p, h, g) {
126
- let f = r, x = p, m = h, P = g;
127
- for (; ; ) {
128
- const A = f.length;
129
- if (A === 0) {
130
- const Z = Xo(x, m);
131
- return P.concat(Z);
132
- }
133
- const $e = ca(m), ue = f[0], fe = f.slice(1, A);
134
- if (ua(x, ue, $e)) {
135
- const Z = x.concat(ue);
136
- f = fe, x = Z, m = m, P = P;
137
- } else {
138
- const Z = x.length;
139
- let $ = 0;
140
- for (let ge = 0; ge < Z; ge += 1)
141
- $ += x[ge].normalizedValue;
142
- const V = ha(m, $), pe = Xo(x, m), Te = P.concat(pe);
143
- f = f, x = [], m = V, P = Te;
144
- }
145
- }
146
- }
147
- function jo(r) {
148
- if (typeof r.children > "u" || !r.children.length)
149
- return [r];
150
- {
151
- const p = da(
152
- r.children,
153
- ia(r)
154
- ), h = va(p, [], r, []), g = h.length, f = [];
155
- for (let m = 0; m < g; m += 1)
156
- f.push(jo(h[m]));
157
- return ra(f);
158
- }
159
- }
160
- function ha(r, p) {
161
- const { width: h, height: g, xOffset: f, yOffset: x } = oo(r);
162
- if (h >= g) {
163
- const m = p / g, P = h - m, A = {
164
- xOffset: f + m,
165
- yOffset: x,
166
- width: P,
167
- height: g
168
- };
169
- return Uo(A);
170
- } else {
171
- const m = p / h, P = g - m, A = {
172
- xOffset: f,
173
- yOffset: x + m,
174
- width: h,
175
- height: P
176
- };
177
- return Uo(A);
178
- }
179
- }
180
- const fa = ["id"], pa = ["id"], ga = ["id"], ya = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], ma = { class: "vue-ui-treemap-crumb-unit" }, ba = { class: "vue-ui-treemap-crumb-unit-label" }, wa = {
181
- key: 0,
182
- style: { width: "24px", display: "flex", "align-items": "center" }
183
- }, ka = {
184
- key: 0,
185
- class: "vue-ui-treemap-crumb-unit-arrow"
186
- }, Ca = { style: { position: "relative" } }, xa = ["xmlns", "aria-describedby", "viewBox"], $a = { key: 0 }, Ta = ["id"], Sa = ["stop-color"], Aa = ["stop-color"], Ma = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Pa = ["width", "height", "x", "y"], Oa = ["innerHTML"], Ia = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], _a = ["innerHTML"], Fa = ["x", "y", "height", "width"], La = {
187
- style: {
188
- width: "100%",
189
- height: "100%"
190
- },
191
- class: "vue-ui-treemap-cell"
192
- }, Na = {
193
- key: 0,
194
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
195
- "data-dom-to-png-ignore": "",
196
- "aria-hidden": "true"
197
- }, Ba = {
198
- key: 6,
199
- class: "vue-data-ui-watermark"
200
- }, Ra = ["id"], Da = ["onClick"], za = ["innerHTML"], Va = {
201
- __name: "vue-ui-treemap",
202
- props: {
203
- config: {
204
- type: Object,
205
- default() {
206
- return {};
207
- }
208
- },
209
- dataset: {
210
- type: Array,
211
- default() {
212
- return [];
213
- }
214
- }
215
- },
216
- emits: ["selectLegend", "selectDatapoint", "copyAlt"],
217
- setup(r, { expose: p, emit: h }) {
218
- const g = Ne(() => import("./DataTable-DT2kIdQ6.js")), f = Ne(() => import("./PenAndPaper-Ct3qJ4lA.js")), x = Ne(() => import("./vue-ui-accordion-DDuJT1xA.js")), m = Ne(() => import("./Tooltip-C8KGyqQk.js")), P = Ne(() => import("./UserOptions-rW2fRf3V.js")), A = Ne(() => import("./PackageVersion-PjmqM4wb.js")), $e = Ne(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_treemap: ue } = Xl(), { isThemeValid: fe, warnInvalidTheme: Z } = Zl(), $ = r, V = h, pe = Fl();
219
- No(() => {
220
- pe["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
221
- });
222
- const Te = k(() => !!$.dataset && $.dataset.length), ge = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), le = b(mt()), Ue = b(!1), xt = b(""), _e = b(!1), lo = b(0), B = b([]), re = Ce(null), ao = Ce(null), no = Ce(null), so = Ce(null), uo = Ce(null), ro = b(0), $t = b(0), Tt = b(0), _ = b([]), St = b(null), io = b(!1), Ye = b(null), At = b(null), Xe = b(null), K = b(/* @__PURE__ */ new Map()), nt = b(!1), st = b(!1), ye = b(null), co = b({ x: 0, y: 0 }), je = b("pointer"), Mt = b(!1), t = b(It()), Se = k(() => t.value.userOptions.useCursorPointer), Ko = k(() => zo({
223
- defaultConfig: {
224
- userOptions: { show: !1 },
225
- style: {
226
- chart: {
227
- backgroundColor: "#999999",
228
- layout: {
229
- labels: {
230
- showDefaultLabels: !1
231
- },
232
- rects: {
233
- stroke: "#6A6A6A"
234
- }
235
- },
236
- legend: {
237
- backgroundColor: "transparent"
238
- }
239
- }
240
- }
241
- },
242
- userConfig: t.value.skeletonConfig ?? {}
243
- })), { loading: Ae, FINAL_DATASET: Pt, manualLoading: qo } = jl({
244
- ...Ll($),
245
- FINAL_CONFIG: t,
246
- prepareConfig: It,
247
- skeletonDataset: $.config?.skeletonDataset ?? [
248
- {
249
- name: "_",
250
- value: 53,
251
- color: "#CACACA90",
252
- children: [
253
- { name: "_", value: 21 },
254
- { name: "_", value: 13 },
255
- { name: "_", value: 8 },
256
- { name: "_", value: 5 },
257
- { name: "_", value: 3 },
258
- { name: "_", value: 2 },
259
- { name: "_", value: 1 }
260
- ]
261
- }
262
- ],
263
- skeletonConfig: zo({
264
- defaultConfig: t.value,
265
- userConfig: Ko.value
266
- })
267
- }), { userOptionsVisible: Ot, setUserOptionsVisibility: vo, keepUserOptionState: ho } = Jl({ config: t.value }), { svgRef: Fe } = Ql({ config: t.value.style.chart.title });
268
- function It() {
269
- const e = to({
270
- userConfig: $.config,
271
- defaultConfig: ue
272
- }), l = e.theme;
273
- if (!l) return e;
274
- if (!fe.value(e))
275
- return Z(e), e;
276
- const o = to({
277
- userConfig: oa[l] || $.config,
278
- defaultConfig: e
279
- }), a = to({
280
- userConfig: $.config,
281
- defaultConfig: o
282
- });
283
- return {
284
- ...a,
285
- customPalette: a.customPalette.length ? a.customPalette : Dl[l] || G
286
- };
287
- }
288
- Be(() => $.config, (e) => {
289
- Ae.value || (t.value = It()), Ot.value = !t.value.userOptions.showOnChartHover, ro.value += 1, $t.value += 1, Tt.value += 1, J.value.showTable = t.value.table.show, J.value.showTooltip = t.value.style.chart.tooltip.show;
290
- }, { deep: !0 });
291
- const { isPrinting: _t, isImaging: Ft, generatePdf: fo, generateImage: po } = ql({
292
- elementId: `treemap_${le.value}`,
293
- fileName: t.value.style.chart.title.text || "vue-ui-treemap",
294
- options: t.value.userOptions.print
295
- }), Go = k(() => t.value.userOptions.show && !t.value.style.chart.title.text), ut = k(() => zl(t.value.customPalette)), J = b({
296
- showTable: t.value.table.show,
297
- showTooltip: t.value.style.chart.tooltip.show
298
- });
299
- Be(t, () => {
300
- J.value = {
301
- showTable: t.value.table.show,
302
- showTooltip: t.value.style.chart.tooltip.show
303
- };
304
- }, { immediate: !0 });
305
- const Le = b({
306
- height: t.value.style.chart.height,
307
- width: t.value.style.chart.width
308
- });
309
- function Zo(e) {
310
- const l = re.value, o = Le.value.height;
311
- if (!l || !o) return e;
312
- const a = l.getBoundingClientRect();
313
- return e * (o / a.height);
314
- }
315
- function Jo() {
316
- if (!St.value || me.value.length <= 1) return 0;
317
- const e = St.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
318
- return Zo(o);
319
- }
320
- const D = k(() => {
321
- const e = t.value.style.chart.padding, l = Le.value.width, o = Le.value.height, a = Jo(), n = e.left, s = l - e.right, u = e.top, i = o - e.bottom - a;
322
- return {
323
- left: n,
324
- top: u,
325
- right: s,
326
- bottom: i,
327
- width: s - n,
328
- height: Math.max(0, i - u),
329
- vbWidth: l,
330
- vbHeight: o - a,
331
- offsetY: a
332
- };
333
- }), j = b(Pt.value), Me = b(j.value), go = Ce(/* @__PURE__ */ new Map());
334
- Be(
335
- [j, () => t.value],
336
- () => {
337
- Xe.value = null, K.value = /* @__PURE__ */ new Map();
338
- },
339
- { deep: !0 }
340
- ), Be(
341
- () => B.value,
342
- () => {
343
- Xe.value = null, K.value = /* @__PURE__ */ new Map();
344
- },
345
- { deep: !0 }
346
- ), Be(
347
- [() => Le.value.width, () => Le.value.height],
348
- () => {
349
- K.value = /* @__PURE__ */ new Map();
350
- }
351
- );
352
- function yo(e) {
353
- Array.isArray(e) && e.forEach((l, o) => {
354
- l.id || (l.id = mt());
355
- let a = lt(l.color) || go.value.get(l.id) || ut.value[o] || G[o] || G[o % G.length];
356
- a = lt(a), go.value.set(l.id, a), l.color = a, mo(l, a);
357
- });
358
- }
359
- function mo(e, l) {
360
- Array.isArray(e.children) && e.children.forEach((o) => {
361
- o.id || (o.id = mt()), o.parentId = e.id, o.color = l, mo(o, l);
362
- });
363
- }
364
- function Qo() {
365
- if (!_.value.length)
366
- Me.value = j.value.slice();
367
- else {
368
- const e = _.value[_.value.length - 1], l = te(e);
369
- Me.value = l?.children?.slice() || [];
370
- }
371
- }
372
- Be(
373
- () => Pt.value,
374
- () => {
375
- j.value = Pt.value, yo(j.value), Qo(), Tt.value += 1, $t.value += 1;
376
- },
377
- { deep: !0, immediate: !0, flush: "post" }
378
- );
379
- const Pe = Ce(null), Re = Ce(null);
380
- No(() => {
381
- io.value = !0, tl();
382
- });
383
- const el = k(() => t.value.debug);
384
- function tl() {
385
- if (Vo($.dataset) && Vl({
386
- componentName: "VueUiTreemap",
387
- type: "dataset",
388
- debug: el.value
389
- }), yo(j.value), Vo($.dataset) || (qo.value = t.value.loading), t.value.responsive) {
390
- const e = Ul(() => {
391
- const { width: l, height: o } = Yl({
392
- chart: re.value,
393
- title: t.value.style.chart.title.text ? ao.value : null,
394
- legend: t.value.style.chart.legend.show ? no.value : null,
395
- source: so.value,
396
- noTitle: uo.value
397
- });
398
- requestAnimationFrame(() => {
399
- Le.value.width = l, Le.value.height = o - 12;
400
- });
401
- });
402
- Pe.value && (Re.value && Pe.value.unobserve(Re.value), Pe.value.disconnect()), Pe.value = new ResizeObserver(e), Re.value = re.value.parentNode, Pe.value.observe(Re.value);
403
- }
404
- }
405
- Nl(() => {
406
- Pe.value && (Re.value && Pe.value.unobserve(Re.value), Pe.value.disconnect());
407
- });
408
- const Ke = k(() => Me.value.map((e, l) => ({
409
- ...e,
410
- color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length]
411
- })).filter((e) => !B.value.includes(e.id))), De = k(() => j.value.filter((e) => !B.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), Lt = k({
412
- get() {
413
- let e = [...Ke.value];
414
- return t.value.style.chart.layout.sorted && (e = [...Ke.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
415
- ...l
416
- }));
417
- },
418
- set(e) {
419
- return e;
420
- }
421
- });
422
- function bo(e, l) {
423
- return e.value / l;
424
- }
425
- function ol(e, l, o) {
426
- const a = t.value.style.chart.layout.rects.colorRatio - bo(l, o);
427
- return wt(e, a < 0 ? 0 : a);
428
- }
429
- function wo(e) {
430
- return Array.isArray(e.children) && e.children.length > 0;
431
- }
432
- function ll(e) {
433
- return [...e].sort((l, o) => {
434
- const a = wo(l), n = wo(o);
435
- if (a !== n)
436
- return a - n;
437
- const s = Number(l.value) || 0;
438
- return (Number(o.value) || 0) - s;
439
- });
440
- }
441
- function ko(e, l, o, a, n) {
442
- return ll(e).map((u, i) => {
443
- const c = ol(
444
- lt(l) || ut.value[i] || G[i] || G[i % G.length],
445
- u,
446
- a
447
- ), d = bo(u, a), w = n ?? u.parentId ?? u.id;
448
- return {
449
- ...u,
450
- color: c,
451
- proportion: d,
452
- parentName: o,
453
- rootId: w,
454
- children: Array.isArray(u.children) && u.children.length ? ko(
455
- u.children,
456
- c,
457
- u.name,
458
- a,
459
- w
460
- ) : void 0
461
- };
462
- });
463
- }
464
- const Co = k(() => {
465
- const e = Lt.value.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, l = Lt.value.map((n) => {
466
- const s = n.children ? n.children.reduce((q, Oe) => q + (Number(Oe.value) || 0), 0) : n.value, { children: u, parentId: i, id: c, value: d, name: w, color: z, ...T } = n, H = n.id || mt();
467
- return {
468
- ...T,
469
- id: H,
470
- name: n.name,
471
- value: n.value,
472
- color: n.color,
473
- proportion: (Number(n.value) || 0) / e,
474
- children: Array.isArray(n.children) && n.children.length ? ko(
475
- n.children,
476
- n.color,
477
- n.name,
478
- s || 1
479
- ) : void 0
480
- };
481
- });
482
- if (_.value.length === 0) {
483
- if (!Xe.value) {
484
- const i = { x0: 0, y0: 0, x1: 1, y1: 1 };
485
- Xe.value = Yo(l, i);
486
- }
487
- const n = {
488
- x0: D.value.left,
489
- y0: D.value.top,
490
- x1: D.value.left + D.value.width,
491
- y1: D.value.top + D.value.height
492
- }, s = n.x1 - n.x0, u = n.y1 - n.y0;
493
- return Xe.value.map((i) => ({
494
- ...i,
495
- x0: n.x0 + i.x0 * s,
496
- x1: n.x0 + i.x1 * s,
497
- y0: n.y0 + i.y0 * u,
498
- y1: n.y0 + i.y1 * u
499
- }));
500
- }
501
- const a = {
502
- x0: D.value.left,
503
- y0: D.value.top,
504
- x1: D.value.left + D.value.width,
505
- y1: D.value.top + D.value.height
506
- };
507
- return Yo(l, a);
508
- });
509
- function al(e) {
510
- const l = _.value.length ? _.value[_.value.length - 1] : null, o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
511
- for (const i of e) {
512
- let c = rl(i.id);
513
- if (l) {
514
- const d = c.indexOf(l);
515
- if (d >= 0)
516
- c = c.slice(d);
517
- else
518
- continue;
519
- }
520
- c = c.filter((d) => {
521
- const w = te(d);
522
- return w && Array.isArray(w.children) && w.children.length;
523
- }), c.length && (c.forEach((d, w) => {
524
- const z = te(d);
525
- if (!z) return;
526
- let T = o.get(d);
527
- T ? (T.x0 = Math.min(T.x0, i.x0), T.y0 = Math.min(T.y0, i.y0), T.x1 = Math.max(T.x1, i.x1), T.y1 = Math.max(T.y1, i.y1), T.depth = Math.min(T.depth, w)) : (T = {
528
- id: d,
529
- name: z.name,
530
- value: z.value,
531
- color: z.color,
532
- x0: i.x0,
533
- y0: i.y0,
534
- x1: i.x1,
535
- y1: i.y1,
536
- depth: w
537
- // depth from visible root
538
- }, o.set(d, T));
539
- let H = n.get(d);
540
- H || (H = /* @__PURE__ */ new Set(), n.set(d, H)), H.add(i.id);
541
- const q = s.get(d);
542
- (q == null || w < q) && s.set(d, w);
543
- }), a.set(i.id, c));
544
- }
545
- return {
546
- wrappers: Array.from(o.values()).map((i) => ({
547
- ...i,
548
- depth: s.get(i.id) ?? i.depth ?? 0,
549
- childrenIds: Array.from(n.get(i.id) || [])
550
- })),
551
- ancestorsByLeaf: a
552
- };
553
- }
554
- const Nt = k(() => al(Co.value)), nl = k(() => {
555
- const e = Nt.value.wrappers;
556
- return e.length ? e.filter((l) => sl(l)) : [];
557
- });
558
- function Bt(e) {
559
- return ze(e) * 1.2;
560
- }
561
- function sl(e) {
562
- const l = Bt(e);
563
- return Q(e) < l * 1.1 ? !1 : (e.labelY0 = e.y0, !0);
564
- }
565
- const F = k(() => ul({
566
- rects: Co.value,
567
- wrappers: Nt.value.wrappers,
568
- ancestorsByLeaf: Nt.value.ancestorsByLeaf
569
- }));
570
- function ul({ rects: e, wrappers: l, ancestorsByLeaf: o }) {
571
- if (!l.length || !o) return e;
572
- const a = new Map(l.map((n) => [n.id, n]));
573
- return e.map((n) => {
574
- const s = o.get(n.id);
575
- if (!s || !s.length) return n;
576
- let u = { ...n };
577
- for (const i of s) {
578
- const c = a.get(i);
579
- if (!c) continue;
580
- const d = Q(c), w = Bt(c);
581
- if (d < w * 1.1) continue;
582
- const z = ze(c), T = z * 1.2, H = z * 0.5, q = z * 0.5, Oe = T * 0.5, Je = ee(c) / 3, Qe = Math.min(H, Je), Ie = d * 0.25, Ht = Math.min(q, Ie), Wt = (typeof c.labelY0 == "number" ? c.labelY0 : c.y0) + w, ce = Math.max(u.x0, c.x0 + Qe), we = Math.min(u.x1, c.x1 - Qe), ke = Math.max(u.y0, Wt + Oe), Ut = Math.min(u.y1, c.y1 - Ht);
583
- if (we <= ce || Ut <= ke)
584
- break;
585
- u = {
586
- ...u,
587
- x0: ce,
588
- y0: ke,
589
- x1: we,
590
- y1: Ut
591
- };
592
- }
593
- return u;
594
- });
595
- }
596
- function Q({ y0: e, y1: l }) {
597
- return l - e <= 0 ? 1e-4 : l - e;
598
- }
599
- function ee({ x0: e, x1: l }) {
600
- return l - e <= 0 ? 1e-4 : l - e;
601
- }
602
- function ze(e) {
603
- const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, u = 0.6, i = 1, c = 0.9;
604
- let d = e.proportion;
605
- if (!(typeof d == "number" && isFinite(d))) {
606
- const q = Math.max(1e-6, ee(e) * Q(e)), Oe = Math.max(1e-6, D.value.width * D.value.height);
607
- d = q / Oe;
608
- }
609
- const w = Math.pow(Math.min(1, Math.max(0, d)), s), z = u + (i - u) * w;
610
- let T = o * z;
611
- const H = Math.max(1e-4, Math.min(ee(e), Q(e)));
612
- return T = Math.min(T, H * c), T = Math.max(a, Math.min(n, T)), T;
613
- }
614
- function xo(e) {
615
- _e.value = e, lo.value += 1;
616
- }
617
- const ie = k(() => ({
618
- startX: 0,
619
- startY: 0,
620
- width: D.value.vbWidth,
621
- height: D.value.vbHeight
622
- }));
623
- function te(e, l = j.value) {
624
- for (const o of l) {
625
- if (o.id === e)
626
- return o;
627
- if (o.children) {
628
- const a = te(e, o.children);
629
- if (a)
630
- return a;
631
- }
632
- }
633
- return null;
634
- }
635
- function rl(e) {
636
- const l = [];
637
- let o = te(e);
638
- for (; o && o.parentId; ) {
639
- const a = te(o.parentId);
640
- if (!a) break;
641
- l.unshift(a.id), o = a;
642
- }
643
- return l;
644
- }
645
- const Ve = k(() => _.value.length > 0);
646
- function qe(e, l) {
647
- if (!e) {
648
- Me.value = j.value.slice(), V("selectDatapoint", void 0), _.value = [];
649
- return;
650
- }
651
- t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: l });
652
- const o = te(e.id);
653
- if (o && o.children?.length)
654
- _.value.push(o.id), Me.value = o.children.slice(), V("selectDatapoint", e);
655
- else if (e.parentId) {
656
- _.value.push(e.parentId);
657
- const a = te(e.parentId);
658
- Me.value = a.children.slice(), V("selectDatapoint", e);
659
- } else if (_.value.length > 0) {
660
- _.value.pop();
661
- const a = _.value[_.value.length - 1];
662
- if (a) {
663
- const n = te(a);
664
- Me.value = n.children.slice();
665
- } else
666
- Me.value = j.value.slice(), _.value = [], V("selectDatapoint", void 0);
667
- }
668
- }
669
- function il(e) {
670
- return !!(te(e.id)?.children?.length || e.parentId);
671
- }
672
- const me = k(() => {
673
- const e = [
674
- { id: null, label: "All" }
675
- ];
676
- if (_.value.length > 0) {
677
- let l = te(_.value[_.value.length - 1]);
678
- const o = [];
679
- for (; l; )
680
- o.unshift(l), l = l.parentId ? te(l.parentId) : null;
681
- for (const a of o)
682
- e.push({
683
- id: a.id,
684
- label: a.name,
685
- node: a
686
- });
687
- }
688
- return e;
689
- }), R = Ce(null), He = k(() => j.value.map((e, l) => ({
690
- ...e,
691
- color: lt(e.color) || ut.value[l] || G[l] || G[l % G.length],
692
- shape: "square"
693
- })).sort((e, l) => l.value - e.value).map((e, l) => {
694
- const o = e.value / j.value.map((a) => a.value).reduce((a, n) => a + n, 0);
695
- return {
696
- ...e,
697
- proportion: o,
698
- opacity: B.value.includes(e.id) ? 0.5 : 1,
699
- display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? bt(
700
- t.value.style.chart.layout.labels.formatter,
701
- e.value,
702
- at({
703
- p: t.value.style.chart.layout.labels.prefix,
704
- v: e.value,
705
- s: t.value.style.chart.layout.labels.suffix,
706
- r: t.value.style.chart.legend.roundingValue
707
- }),
708
- { datapoint: e }
709
- ) : ""}${t.value.style.chart.legend.showPercentage ? B.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 / De.value) ? "-" : (e.value / De.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
710
- };
711
- })), cl = k(() => ({
712
- cy: "treemap-div-legend",
713
- backgroundColor: t.value.style.chart.legend.backgroundColor,
714
- color: t.value.style.chart.legend.color,
715
- fontSize: t.value.style.chart.legend.fontSize,
716
- paddingBottom: 12,
717
- fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
718
- })), Ee = k(() => B.value.length === He.value.length);
719
- function dl() {
720
- B.value.length ? B.value = [] : He.value.forEach((e) => {
721
- B.value.push(e.id);
722
- });
723
- }
724
- function rt(e) {
725
- R.value = null, B.value.includes(e.id) ? B.value = B.value.filter((l) => l !== e.id) : B.value.length < $.dataset.length - 1 && B.value.push(e.id), V("selectLegend", Lt.value);
726
- }
727
- function $o(e) {
728
- if (!j.value.length)
729
- return t.value.debug && console.warn("VueUiTreemap - There are no series to show."), null;
730
- const l = j.value.find((o) => o.name === e);
731
- return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
732
- }
733
- function vl(e) {
734
- const l = $o(e);
735
- l !== null && B.value.includes(l.id) && rt({ id: l.id });
736
- }
737
- function hl(e) {
738
- const l = $o(e);
739
- l !== null && (B.value.includes(l.id) || rt({ id: l.id }));
740
- }
741
- function fl({ datapoint: e, seriesIndex: l }) {
742
- R.value = null, Ue.value = !1, ye.value = null, je.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
743
- }
744
- const it = b(null);
745
- function To({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
746
- if (Ee.value) return;
747
- t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), ye.value = l, je.value = o, R.value = e, it.value = { datapoint: e, seriesIndex: l, config: t.value, series: Ke.value };
748
- const a = t.value.style.chart.tooltip.customFormat;
749
- if (Ho(a) && Wl(() => a({
750
- seriesIndex: l,
751
- datapoint: e,
752
- series: Ke.value,
753
- config: t.value
754
- })))
755
- xt.value = a({
756
- seriesIndex: l,
757
- datapoint: e,
758
- series: Ke.value,
759
- config: t.value
760
- });
761
- else {
762
- let n = "";
763
- 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>${bt(
764
- t.value.style.chart.layout.labels.formatter,
765
- e.value,
766
- at({
767
- p: t.value.style.chart.layout.labels.prefix,
768
- v: e.value,
769
- s: t.value.style.chart.layout.labels.suffix,
770
- r: t.value.style.chart.tooltip.roundingValue
771
- }),
772
- { datapoint: e, seriesIndex: l }
773
- )}</b>`, xt.value = `<div>${n}</div>`;
774
- }
775
- Ue.value = !0;
776
- }
777
- const be = k(() => {
778
- const e = F.value.map((o) => ({
779
- name: o.name,
780
- color: o.color
781
- })), l = F.value.map((o) => o.value);
782
- return { head: e, body: l };
783
- });
784
- function Rt(e = null) {
785
- Do(() => {
786
- const l = be.value.head.map((n, s) => [[
787
- n.name
788
- ], [be.value.body[s]], [isNaN(be.value.body[s] / De.value) ? "-" : be.value.body[s] / De.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = Hl(o);
789
- e ? e(a) : El({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
790
- });
791
- }
792
- const We = k(() => {
793
- const e = [
794
- t.value.table.columnNames.series,
795
- t.value.table.columnNames.value,
796
- t.value.table.columnNames.percentage
797
- ], l = be.value.head.map((n, s) => {
798
- const u = bt(
799
- t.value.style.chart.layout.labels.formatter,
800
- be.value.body[s],
801
- at({
802
- p: t.value.style.chart.layout.labels.prefix,
803
- v: be.value.body[s],
804
- s: t.value.style.chart.layout.labels.suffix,
805
- r: t.value.table.td.roundingValue
806
- })
807
- );
808
- return [
809
- {
810
- color: n.color,
811
- name: n.name,
812
- shape: "square"
813
- },
814
- u,
815
- isNaN(be.value.body[s] / De.value) ? "-" : at({
816
- v: be.value.body[s] / De.value * 100,
817
- s: "%",
818
- r: t.value.table.td.roundingPercentage
819
- })
820
- ];
821
- }), o = {
822
- th: {
823
- backgroundColor: t.value.table.th.backgroundColor,
824
- color: t.value.table.th.color,
825
- outline: t.value.table.th.outline
826
- },
827
- td: {
828
- backgroundColor: t.value.table.td.backgroundColor,
829
- color: t.value.table.td.color,
830
- outline: t.value.table.td.outline
831
- },
832
- breakpoint: t.value.table.responsiveBreakpoint
833
- };
834
- return {
835
- colNames: [
836
- t.value.table.columnNames.series,
837
- t.value.table.columnNames.value
838
- ],
839
- head: e,
840
- body: l,
841
- config: o
842
- };
843
- });
844
- function pl() {
845
- return F.value;
846
- }
847
- function So() {
848
- J.value.showTable = !J.value.showTable;
849
- }
850
- function Ao() {
851
- J.value.showTooltip = !J.value.showTooltip;
852
- }
853
- const Ge = b(!1);
854
- function Dt() {
855
- Ge.value = !Ge.value;
856
- }
857
- const ct = b(null);
858
- function Mo(e) {
859
- ct.value = e;
860
- }
861
- function Po() {
862
- ct.value = null;
863
- }
864
- async function gl({ scale: e = 2 } = {}) {
865
- if (!re.value) return;
866
- const { width: l, height: o } = re.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: s } = await ea({ domElement: re.value, base64: !0, img: !0, scale: e });
867
- return {
868
- imageUri: n,
869
- base64: s,
870
- title: t.value.style.chart.title.text,
871
- width: l,
872
- height: o,
873
- aspectRatio: a
874
- };
875
- }
876
- const Ze = k(() => {
877
- const e = t.value.table.useDialog && !t.value.table.show, l = J.value.showTable;
878
- return {
879
- component: e ? $e : x,
880
- title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
881
- props: e ? {
882
- backgroundColor: t.value.table.th.backgroundColor,
883
- color: t.value.table.th.color,
884
- headerColor: t.value.table.th.color,
885
- headerBg: t.value.table.th.backgroundColor,
886
- isFullscreen: _e.value,
887
- fullscreenParent: re.value,
888
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
889
- isCursorPointer: Se.value
890
- } : {
891
- hideDetails: !0,
892
- config: {
893
- open: l,
894
- maxHeight: 1e4,
895
- body: {
896
- backgroundColor: t.value.style.chart.backgroundColor,
897
- color: t.value.style.chart.color
898
- },
899
- head: {
900
- backgroundColor: t.value.style.chart.backgroundColor,
901
- color: t.value.style.chart.color
902
- }
903
- }
904
- }
905
- };
906
- });
907
- Be(() => J.value.showTable, (e) => {
908
- t.value.table.show || (e && t.value.table.useDialog && Ye.value ? Ye.value.open() : "close" in Ye.value && Ye.value.close());
909
- });
910
- function Oo() {
911
- J.value.showTable = !1, At.value && At.value.setTableIconState(!1);
912
- }
913
- const yl = k(() => He.value.map((e) => ({
914
- ...e,
915
- name: e.display
916
- }))), ml = k(() => t.value.style.chart.backgroundColor), bl = k(() => t.value.style.chart.legend), wl = k(() => t.value.style.chart.title), { exportSvg: kl, getSvg: Cl } = Gl({
917
- svg: Fe,
918
- title: wl,
919
- legend: bl,
920
- legendItems: yl,
921
- backgroundColor: ml
922
- });
923
- async function Io({ isCb: e }) {
924
- st.value = !0, await Do();
925
- try {
926
- if (e) {
927
- const { blob: l, url: o, text: a, dataUrl: n } = await Cl();
928
- await Promise.resolve(t.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: n }));
929
- } else
930
- await Promise.resolve(kl());
931
- } finally {
932
- st.value = !1;
933
- }
934
- }
935
- function xl(e) {
936
- if (e?.stage === "start") {
937
- nt.value = !0;
938
- return;
939
- }
940
- if (e?.stage === "end") {
941
- nt.value = !1;
942
- return;
943
- }
944
- po();
945
- }
946
- function $l(e) {
947
- const o = ze(e) * 0.6;
948
- return Math.max(0, ee(e) - 2 * o);
949
- }
950
- function _o({ rect: e, seriesIndex: l, isTitle: o = !1 }) {
951
- const a = t.value.style.chart.layout.labels.name.show, n = t.value.style.chart.layout.labels.value.show;
952
- if (!a && !n) return "";
953
- const s = _.value.length === 0, u = s ? `${e.id}:${o ? "title" : "rect"}` : null;
954
- if (s && K.value.has(u))
955
- return K.value.get(u);
956
- const i = Math.max(2, ze(e) / 3), c = Math.max(8, ze(e)), d = c * 1.2, w = Math.max(0, ee(e) - i * 2), z = Math.max(0, Q(e) - i * 2);
957
- if (w <= 2 || z <= c * 0.8)
958
- return s && u && K.value.set(u, ""), "";
959
- const T = t.value.style.fontFamily, H = t.value.style.chart.layout.labels.name.bold ? "600" : "400", q = t.value.style.chart.layout.labels.value.bold ? "600" : "400", Oe = o ? t.value.style.chart.layout.rects.group.label.adaptColorToBackground ? t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? kt(wt(e.color, 0.4)) : kt(t.value.style.chart.backgroundColor) : t.value.style.chart.layout.rects.group.label.color : kt(e.color), Vt = a ? String(e.name ?? "") : "", Je = n ? bt(
960
- t.value.style.chart.layout.labels.formatter,
961
- e.value ?? 0,
962
- at({
963
- p: t.value.style.chart.layout.labels.prefix,
964
- v: e.value ?? 0,
965
- s: t.value.style.chart.layout.labels.suffix,
966
- r: t.value.style.chart.layout.labels.rounding
967
- }),
968
- { datapoint: e, seriesIndex: l }
969
- ) : "", Qe = o ? $l(e) : w;
970
- function Ie(L, ae = c, et = "400") {
971
- const oe = document.createElementNS(Qt, "svg");
972
- oe.setAttribute("width", "0"), oe.setAttribute("height", "0"), oe.style.position = "absolute", oe.style.visibility = "hidden", oe.style.pointerEvents = "none";
973
- const ne = document.createElementNS(Qt, "text");
974
- ne.setAttribute("font-size", String(ae)), ne.setAttribute("font-family", T), ne.setAttribute("font-weight", String(et)), ne.textContent = L || "", oe.appendChild(ne), document.body.appendChild(oe);
975
- const dt = ne.getComputedTextLength();
976
- return document.body.removeChild(oe), dt;
977
- }
978
- if (o) {
979
- let L = "";
980
- if (a && (L = Vt), n && (L = L ? `${L} (${Je})` : Je), !L)
981
- return s && u && K.value.set(u, ""), "";
982
- let ae = L;
983
- if (Ie(ae, c, H) > Qe) {
984
- let U = ae;
985
- for (; U.length && Ie(U + "…", c, H) > Qe; )
986
- U = U.slice(0, -1);
987
- ae = U ? U + "…" : "";
988
- }
989
- if (!ae)
990
- return s && u && K.value.set(u, ""), "";
991
- const et = Bt(e), oe = typeof e.depth == "number" ? e.depth : 0, ne = et * 1.4, dt = typeof e.labelY0 == "number" ? e.labelY0 : e.y0 + oe * ne, jt = e.x0 + i + c / 2, W = dt + i + c, se = `<text
992
- x="${jt}"
993
- y="${W}"
994
- font-size="${c}"
995
- font-family="${Ct(T)}"
996
- font-weight="${H}"
997
- fill="${Ct(Oe)}"
998
- paint-order="stroke"
999
- stroke="transparent"
1000
- stroke-width="0"
1001
- style="transition: all 0.2s ease-in-out;"
1002
- >
1003
- ${eo(ae)}
1004
- </text>`;
1005
- return s && u && K.value.set(u, se), se;
1006
- }
1007
- const Ht = n ? 1 : 0, Et = Math.max(0, Math.floor(z / d) - Ht);
1008
- if (Et <= 0 && !n)
1009
- return s && u && K.value.set(u, ""), "";
1010
- function Wt(L, ae, et, oe, ne, dt) {
1011
- const jt = String(L).split(/\s+/).filter(Boolean), W = [];
1012
- let se = "";
1013
- function U(I) {
1014
- return Ie(I, et, oe) <= ae;
1015
- }
1016
- function Il(I) {
1017
- if (U(I)) return [I];
1018
- const de = [];
1019
- let O = 0;
1020
- for (; O < I.length; ) {
1021
- let ve = 1, qt = I.length - O, Gt = 1;
1022
- for (; ve <= qt; ) {
1023
- const ht = ve + qt >> 1, _l = I.slice(O, O + ht);
1024
- U(_l) ? (Gt = ht, ve = ht + 1) : qt = ht - 1;
1025
- }
1026
- de.push(I.slice(O, O + Gt)), O += Gt;
1027
- }
1028
- return de;
1029
- }
1030
- const vt = jt.flatMap((I) => Il(I));
1031
- let Kt = !1;
1032
- for (let I = 0; I < vt.length; I += 1) {
1033
- const de = vt[I], O = se ? se + " " + de : de;
1034
- if (U(O))
1035
- se = O;
1036
- else {
1037
- if (se)
1038
- W.push(se);
1039
- else {
1040
- let ve = de;
1041
- for (; ve.length && !U(ve); ) ve = ve.slice(0, -1);
1042
- ve && W.push(ve);
1043
- }
1044
- if (se = "", W.length === ne) {
1045
- Kt = !0;
1046
- break;
1047
- }
1048
- }
1049
- I === vt.length - 1 && se && W.length < ne && W.push(se);
1050
- }
1051
- if (W.length && W.join(" ") !== vt.join(" ") && (Kt = !0), Kt && W.length > 0) {
1052
- let I = W[W.length - 1];
1053
- if (!U(I)) {
1054
- let O = I;
1055
- for (; O.length && !U(O); ) O = O.slice(0, -1);
1056
- I = O;
1057
- }
1058
- let de = I + "…";
1059
- if (!U(de)) {
1060
- let O = I;
1061
- for (; O.length && !U(O + "…"); )
1062
- O = O.slice(0, -1);
1063
- de = O + "…";
1064
- }
1065
- W[W.length - 1] = de;
1066
- }
1067
- return W;
1068
- }
1069
- const ce = a ? Wt(
1070
- Vt,
1071
- w,
1072
- c,
1073
- H,
1074
- Et
1075
- ) : [];
1076
- let we = c, ke = String(Je);
1077
- if (n) {
1078
- for (; Ie(ke, we, q) > w && we > Math.max(8, c * 0.75); )
1079
- we -= 1;
1080
- if (Ie(ke, we, q) > w) {
1081
- let L = ke;
1082
- for (; L.length && Ie(L + "…", we, q) > w; )
1083
- L = L.slice(0, -1);
1084
- if (ke = L ? L + "…" : "", !ke.length)
1085
- return s && u && K.value.set(u, ""), "";
1086
- }
1087
- }
1088
- if (ce.length * d + (n ? d : 0) > z) {
1089
- for (; ce.length && ce.length * d + (n ? d : 0) > z; )
1090
- ce.pop();
1091
- if (!ce.length && (!n || d > z))
1092
- return s && u && K.value.set(u, ""), "";
1093
- }
1094
- const Yt = e.x0 + i, Ol = e.y0 + i + c, Xt = [];
1095
- a && ce.forEach((L, ae) => {
1096
- Xt.push(`
1097
- <tspan
1098
- x="${Yt}"
1099
- dy="${ae === 0 ? 0 : d}"
1100
- font-weight="${H}"
1101
- >
1102
- ${eo(L)}
1103
- </tspan>`);
1104
- }), n && Xt.push(`
1105
- <tspan
1106
- x="${Yt}"
1107
- dy="${ce.length ? d : 0}"
1108
- font-weight="${q}"
1109
- font-size="${we}"
1110
- >
1111
- ${eo(ke)}
1112
- </tspan>`);
1113
- const Lo = `<text
1114
- x="${Yt}"
1115
- y="${Ol}"
1116
- font-size="${c}"
1117
- font-family="${Ct(T)}"
1118
- fill="${Ct(Oe)}"
1119
- paint-order="stroke"
1120
- stroke="transparent"
1121
- stroke-width="0"
1122
- style="transition: all 0.2s ease-in-out;"
1123
- >
1124
- ${Xt.join("")}
1125
- </text>`;
1126
- return s && u && K.value.set(u, Lo), Lo;
1127
- }
1128
- function Tl(e) {
1129
- const l = t.value.style.chart.layout.rects.borderRadius, o = ee(e), a = Q(e);
1130
- return Math.min(l, Math.min(o, a) / 6);
1131
- }
1132
- async function Fo() {
1133
- if (V("copyAlt", {
1134
- config: t.value,
1135
- dataset: F.value
1136
- }), !t.value.userOptions.callbacks.altCopy) {
1137
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1138
- return;
1139
- }
1140
- await Promise.resolve(t.value.userOptions.callbacks.altCopy({
1141
- config: t.value,
1142
- dataset: F.value
1143
- }));
1144
- }
1145
- function Sl() {
1146
- ye.value = null, Mt.value = !0;
1147
- }
1148
- function Al() {
1149
- ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null, Mt.value = !1;
1150
- }
1151
- function Ml(e) {
1152
- if (!Fe.value || Ge.value || document.activeElement !== Fe.value || !F.value.length || Ee.value) return;
1153
- const l = ["ArrowLeft", "ArrowUp"].includes(e.key), o = ["ArrowRight", "ArrowDown"].includes(e.key), a = e.key === "Enter" || e.key === " ", n = e.key === "Escape";
1154
- if (!l && !o && !a && !n) return;
1155
- if (e.preventDefault(), e.stopPropagation(), n) {
1156
- ye.value = null, je.value = "pointer", Ue.value = !1, R.value = null;
1157
- return;
1158
- }
1159
- if (a) {
1160
- if (ye.value === null) return;
1161
- const w = F.value[ye.value];
1162
- if (!w) return;
1163
- qe(w, ye.value);
1164
- return;
1165
- }
1166
- let s = ye.value;
1167
- const u = R.value ? F.value.findIndex((w) => w.id === R.value.id) : null, i = s !== null && s >= 0 && s < F.value.length, c = u !== null && u >= 0 && u < F.value.length;
1168
- i ? o ? (s += 1, s >= F.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = F.value.length - 1)) : c ? (s = o ? u + 1 : u - 1, s >= F.value.length && (s = 0), s < 0 && (s = F.value.length - 1)) : o ? s = 0 : s = F.value.length - 1;
1169
- const d = F.value[s];
1170
- d && (Pl(s), To({
1171
- datapoint: d,
1172
- seriesIndex: s,
1173
- triggerMode: "keyboard"
1174
- }));
1175
- }
1176
- function Pl(e) {
1177
- if (!Number.isFinite(e) || !Fe.value) return;
1178
- const l = F.value[e];
1179
- if (!l) return;
1180
- const o = l.x0 + ee(l) / 2, a = l.y0 + Q(l) / 2, n = Fe.value.getBoundingClientRect();
1181
- co.value = {
1182
- x: n.left + (o - ie.value.startX) / ie.value.width * n.width,
1183
- y: n.top + (a - ie.value.startY) / ie.value.height * n.height
1184
- };
1185
- }
1186
- const zt = k(() => {
1187
- const e = We.value?.colNames ?? [], l = We.value?.body ?? [];
1188
- return { headers: e, rows: l };
1189
- });
1190
- return p({
1191
- getData: pl,
1192
- getImage: gl,
1193
- generateCsv: Rt,
1194
- generateImage: po,
1195
- generateSvg: Io,
1196
- generatePdf: fo,
1197
- hideSeries: hl,
1198
- showSeries: vl,
1199
- toggleTable: So,
1200
- toggleTooltip: Ao,
1201
- toggleAnnotator: Dt,
1202
- toggleFullscreen: xo,
1203
- copyAlt: Fo
1204
- }), (e, l) => (v(), M("div", {
1205
- ref_key: "treemapChart",
1206
- ref: re,
1207
- class: Zt(`vue-data-ui-component vue-ui-treemap ${_e.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1208
- style: xe(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
1209
- id: `treemap_${le.value}`,
1210
- onMouseenter: l[2] || (l[2] = () => y(vo)(!0)),
1211
- onMouseleave: l[3] || (l[3] = () => y(vo)(!1))
1212
- }, [
1213
- E("div", {
1214
- id: `chart-instructions-${le.value}`,
1215
- class: "sr-only"
1216
- }, [
1217
- E("p", null, tt(t.value.a11y.translations.keyboardNavigation), 1)
1218
- ], 8, pa),
1219
- zt.value?.rows?.length ? (v(), he(aa, {
1220
- key: 0,
1221
- uid: le.value,
1222
- head: zt.value.headers,
1223
- body: zt.value.rows,
1224
- notice: t.value.a11y.translations.tableAvailable,
1225
- caption: t.value.a11y.translations.tableCaption
1226
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : N("", !0),
1227
- t.value.userOptions.buttons.annotator ? (v(), he(y(f), {
1228
- key: 1,
1229
- svgRef: y(Fe),
1230
- backgroundColor: t.value.style.chart.backgroundColor,
1231
- color: t.value.style.chart.color,
1232
- active: Ge.value,
1233
- isCursorPointer: Se.value,
1234
- onClose: Dt
1235
- }, {
1236
- "annotator-action-close": S(() => [
1237
- C(e.$slots, "annotator-action-close", {}, void 0, !0)
1238
- ]),
1239
- "annotator-action-color": S(({ color: o }) => [
1240
- C(e.$slots, "annotator-action-color", Y(X({ color: o })), void 0, !0)
1241
- ]),
1242
- "annotator-action-draw": S(({ mode: o }) => [
1243
- C(e.$slots, "annotator-action-draw", Y(X({ mode: o })), void 0, !0)
1244
- ]),
1245
- "annotator-action-undo": S(({ disabled: o }) => [
1246
- C(e.$slots, "annotator-action-undo", Y(X({ disabled: o })), void 0, !0)
1247
- ]),
1248
- "annotator-action-redo": S(({ disabled: o }) => [
1249
- C(e.$slots, "annotator-action-redo", Y(X({ disabled: o })), void 0, !0)
1250
- ]),
1251
- "annotator-action-delete": S(({ disabled: o }) => [
1252
- C(e.$slots, "annotator-action-delete", Y(X({ disabled: o })), void 0, !0)
1253
- ]),
1254
- _: 3
1255
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : N("", !0),
1256
- Go.value ? (v(), M("div", {
1257
- key: 2,
1258
- ref_key: "noTitle",
1259
- ref: uo,
1260
- class: "vue-data-ui-no-title-space",
1261
- style: "height:36px; width: 100%;background:transparent"
1262
- }, null, 512)) : N("", !0),
1263
- t.value.style.chart.title.text ? (v(), M("div", {
1264
- key: 3,
1265
- ref_key: "chartTitle",
1266
- ref: ao,
1267
- style: xe(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
1268
- }, [
1269
- (v(), he(ta, {
1270
- key: `title_${ro.value}`,
1271
- config: {
1272
- title: {
1273
- cy: "treemap-div-title",
1274
- ...t.value.style.chart.title
1275
- },
1276
- subtitle: {
1277
- cy: "treemap-div-subtitle",
1278
- ...t.value.style.chart.title.subtitle
1279
- }
1280
- }
1281
- }, null, 8, ["config"]))
1282
- ], 4)) : N("", !0),
1283
- E("div", {
1284
- id: `legend-top-${le.value}`
1285
- }, null, 8, ga),
1286
- t.value.userOptions.show && Te.value && (y(ho) || y(Ot)) ? (v(), he(y(P), {
1287
- ref_key: "userOptionsRef",
1288
- ref: At,
1289
- key: `user_option_${lo.value}`,
1290
- backgroundColor: t.value.style.chart.backgroundColor,
1291
- color: t.value.style.chart.color,
1292
- isPrinting: y(_t),
1293
- isImaging: y(Ft),
1294
- uid: le.value,
1295
- hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
1296
- hasPdf: t.value.userOptions.buttons.pdf,
1297
- hasXls: t.value.userOptions.buttons.csv,
1298
- hasImg: t.value.userOptions.buttons.img,
1299
- hasSvg: t.value.userOptions.buttons.svg,
1300
- hasTable: t.value.userOptions.buttons.table,
1301
- hasFullscreen: t.value.userOptions.buttons.fullscreen,
1302
- hasAltCopy: t.value.userOptions.buttons.altCopy,
1303
- isFullscreen: _e.value,
1304
- isTooltip: J.value.showTooltip,
1305
- titles: { ...t.value.userOptions.buttonTitles },
1306
- chartElement: re.value,
1307
- position: t.value.userOptions.position,
1308
- hasAnnotator: t.value.userOptions.buttons.annotator,
1309
- isAnnotation: Ge.value,
1310
- callbacks: t.value.userOptions.callbacks,
1311
- printScale: t.value.userOptions.print.scale,
1312
- tableDialog: t.value.table.useDialog,
1313
- isCursorPointer: Se.value,
1314
- onToggleFullscreen: xo,
1315
- onGeneratePdf: y(fo),
1316
- onGenerateCsv: Rt,
1317
- onGenerateImage: xl,
1318
- onGenerateSvg: Io,
1319
- onToggleTable: So,
1320
- onToggleTooltip: Ao,
1321
- onToggleAnnotator: Dt,
1322
- onCopyAlt: Fo,
1323
- style: xe({
1324
- visibility: y(ho) ? y(Ot) ? "visible" : "hidden" : "visible"
1325
- })
1326
- }, Bo({ _: 2 }, [
1327
- e.$slots.menuIcon ? {
1328
- name: "menuIcon",
1329
- fn: S(({ isOpen: o, color: a }) => [
1330
- C(e.$slots, "menuIcon", Y(X({ isOpen: o, color: a })), void 0, !0)
1331
- ]),
1332
- key: "0"
1333
- } : void 0,
1334
- e.$slots.optionTooltip ? {
1335
- name: "optionTooltip",
1336
- fn: S(() => [
1337
- C(e.$slots, "optionTooltip", {}, void 0, !0)
1338
- ]),
1339
- key: "1"
1340
- } : void 0,
1341
- e.$slots.optionPdf ? {
1342
- name: "optionPdf",
1343
- fn: S(() => [
1344
- C(e.$slots, "optionPdf", {}, void 0, !0)
1345
- ]),
1346
- key: "2"
1347
- } : void 0,
1348
- e.$slots.optionCsv ? {
1349
- name: "optionCsv",
1350
- fn: S(() => [
1351
- C(e.$slots, "optionCsv", {}, void 0, !0)
1352
- ]),
1353
- key: "3"
1354
- } : void 0,
1355
- e.$slots.optionImg ? {
1356
- name: "optionImg",
1357
- fn: S(() => [
1358
- C(e.$slots, "optionImg", {}, void 0, !0)
1359
- ]),
1360
- key: "4"
1361
- } : void 0,
1362
- e.$slots.optionSvg ? {
1363
- name: "optionSvg",
1364
- fn: S(() => [
1365
- C(e.$slots, "optionSvg", {}, void 0, !0)
1366
- ]),
1367
- key: "5"
1368
- } : void 0,
1369
- e.$slots.optionTable ? {
1370
- name: "optionTable",
1371
- fn: S(() => [
1372
- C(e.$slots, "optionTable", {}, void 0, !0)
1373
- ]),
1374
- key: "6"
1375
- } : void 0,
1376
- e.$slots.optionFullscreen ? {
1377
- name: "optionFullscreen",
1378
- fn: S(({ toggleFullscreen: o, isFullscreen: a }) => [
1379
- C(e.$slots, "optionFullscreen", Y(X({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
1380
- ]),
1381
- key: "7"
1382
- } : void 0,
1383
- e.$slots.optionAnnotator ? {
1384
- name: "optionAnnotator",
1385
- fn: S(({ toggleAnnotator: o, isAnnotator: a }) => [
1386
- C(e.$slots, "optionAnnotator", Y(X({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
1387
- ]),
1388
- key: "8"
1389
- } : void 0,
1390
- e.$slots.optionAltCopy ? {
1391
- name: "optionAltCopy",
1392
- fn: S(({ altCopy: o }) => [
1393
- C(e.$slots, "optionAltCopy", Y(X({ altCopy: o })), void 0, !0)
1394
- ]),
1395
- key: "9"
1396
- } : void 0
1397
- ]), 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"])) : N("", !0),
1398
- me.value.length > 1 ? (v(), M("nav", {
1399
- key: 5,
1400
- class: "vue-ui-treemap-breadcrumbs",
1401
- "data-dom-to-png-ignore": "",
1402
- ref_key: "breadcrumbsNav",
1403
- ref: St
1404
- }, [
1405
- (v(!0), M(ot, null, ft(me.value, (o, a) => (v(), M("span", {
1406
- role: "button",
1407
- tabindex: a < me.value.length - 1 ? 0 : void 0,
1408
- key: o.id || "root",
1409
- onClick: (n) => a === me.value.length - 1 ? () => {
1410
- } : qe(o.node),
1411
- onKeydown: [
1412
- Ro(Jt((n) => a === me.value.length - 1 ? void 0 : qe(o.node), ["prevent"]), ["enter"]),
1413
- Ro(Jt((n) => a === me.value.length - 1 ? void 0 : qe(o.node), ["prevent"]), ["space"])
1414
- ],
1415
- class: "vue-ui-treemap-crumb",
1416
- "data-last-crumb": a === me.value.length - 1,
1417
- style: xe({
1418
- color: t.value.style.chart.color,
1419
- cursor: Se.value ? "pointer" : "default"
1420
- }),
1421
- onMouseenter: (n) => Mo(a),
1422
- onMouseleave: Po,
1423
- onFocus: (n) => Mo(a),
1424
- onBlur: Po
1425
- }, [
1426
- E("span", ma, [
1427
- E("span", ba, [
1428
- C(e.$slots, "breadcrumb-label", pt({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: ct.value === a }), () => [
1429
- a === 0 ? (v(), M("div", wa, [
1430
- gt(Eo, {
1431
- name: ct.value === 0 ? "homeFilled" : "home",
1432
- stroke: t.value.style.chart.color
1433
- }, null, 8, ["name", "stroke"])
1434
- ])) : (v(), M(ot, { key: 1 }, [
1435
- yt(tt(o.label), 1)
1436
- ], 64))
1437
- ], !0)
1438
- ]),
1439
- a < me.value.length - 1 ? (v(), M("span", ka, [
1440
- C(e.$slots, "breadcrumb-arrow", {}, () => [
1441
- l[4] || (l[4] = yt(" › ", -1))
1442
- ], !0)
1443
- ])) : N("", !0)
1444
- ])
1445
- ], 44, ya))), 128))
1446
- ], 512)) : N("", !0),
1447
- E("div", Ca, [
1448
- (v(), M("svg", {
1449
- ref_key: "svgRef",
1450
- ref: Fe,
1451
- xmlns: y(Qt),
1452
- "aria-describedby": `chart-instructions-${le.value}`,
1453
- class: Zt({ "vue-data-ui-fullscreen--on": _e.value, "vue-data-ui-fulscreen--off": !_e.value, "vue-data-ui-zoom-plus": !Ve.value, "vue-data-ui-zoom-minus": Ve.value, loading: y(Ae) }),
1454
- viewBox: `${ie.value.startX} ${ie.value.startY} ${ie.value.width <= 0 ? 10 : ie.value.width} ${ie.value.height <= 0 ? 10 : ie.value.height}`,
1455
- style: xe(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
1456
- tabindex: "0",
1457
- onFocus: Sl,
1458
- onBlur: Al,
1459
- onKeydown: Ml
1460
- }, [
1461
- gt(y(A)),
1462
- (v(!0), M(ot, null, ft(F.value, (o, a) => (v(), M("g", {
1463
- key: `tgrad_${o.id}`
1464
- }, [
1465
- t.value.style.chart.layout.rects.gradient.show ? (v(), M("defs", $a, [
1466
- E("radialGradient", {
1467
- id: `tgrad_${o.id}`,
1468
- gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
1469
- }, [
1470
- E("stop", {
1471
- offset: "18%",
1472
- "stop-color": o.color
1473
- }, null, 8, Sa),
1474
- E("stop", {
1475
- offset: "100%",
1476
- "stop-color": y(wt)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
1477
- }, null, 8, Aa)
1478
- ], 8, Ta)
1479
- ])) : N("", !0)
1480
- ]))), 128)),
1481
- (v(!0), M(ot, null, ft(nl.value, (o, a) => (v(), M("g", {
1482
- key: `parent_${o.id}`,
1483
- class: "vue-ui-treemap-parent-wrapper"
1484
- }, [
1485
- E("rect", {
1486
- x: o.x0,
1487
- y: o.y0,
1488
- height: Q(o),
1489
- width: ee(o),
1490
- fill: t.value.style.chart.layout.rects.group.useSeriesBackgroundColor ? y(wt)(o.color ?? t.value.style.chart.backgroundColor, t.value.style.chart.layout.rects.group.backgroundLighterRatio) : t.value.style.chart.backgroundColor,
1491
- rx: 0,
1492
- stroke: t.value.style.chart.layout.rects.group.stroke,
1493
- "stroke-width": t.value.style.chart.layout.rects.group.strokeWidth,
1494
- class: "vue-data-ui-cursor-default vue-ui-treemap-rect"
1495
- }, null, 8, Ma),
1496
- e.$slots["group-label"] && !Ee.value ? (v(), M("foreignObject", {
1497
- key: 0,
1498
- width: ee(o),
1499
- height: Q(o),
1500
- x: o.x0,
1501
- y: o.y0
1502
- }, [
1503
- C(e.$slots, "group-label", pt({ ref_for: !0 }, { group: o }), void 0, !0)
1504
- ], 8, Pa)) : !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), M("g", {
1505
- key: 1,
1506
- style: { "pointer-events": "none" },
1507
- innerHTML: _o({ rect: o, seriesIndex: 0, isTitle: !0 }),
1508
- class: "vue-data-ui-cursor-default"
1509
- }, null, 8, Oa)) : N("", !0)
1510
- ]))), 128)),
1511
- (v(!0), M(ot, null, ft(F.value, (o, a) => (v(), M("g", {
1512
- key: `k_${o.id}`
1513
- }, [
1514
- E("rect", {
1515
- x: o.x0,
1516
- y: o.y0,
1517
- height: Q(o),
1518
- width: ee(o),
1519
- fill: ge.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ee.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
1520
- rx: Tl(o),
1521
- stroke: R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
1522
- "stroke-width": R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
1523
- onClick: Jt((n) => qe(o, a), ["stop"]),
1524
- onMouseenter: () => To({
1525
- datapoint: o,
1526
- seriesIndex: a,
1527
- triggerMode: "pointer"
1528
- }),
1529
- onMouseleave: (n) => fl({ datapoint: o, seriesIndex: a }),
1530
- style: xe(`opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1531
- class: Zt([
1532
- "vue-ui-treemap-rect",
1533
- il(o) ? "vue-data-ui-zoom-plus" : Ve.value ? "vue-data-ui-zoom-minus" : ""
1534
- ])
1535
- }, null, 46, Ia),
1536
- !e.$slots.rect && !y(Ae) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value ? (v(), M("g", {
1537
- key: 0,
1538
- style: xe(`pointer-events:none; opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
1539
- innerHTML: _o({ rect: o, seriesIndex: a })
1540
- }, null, 12, _a)) : N("", !0),
1541
- (v(), M("foreignObject", {
1542
- x: o.x0,
1543
- y: o.y0,
1544
- height: Q(o),
1545
- width: ee(o),
1546
- class: "vue-ui-treemap-cell-foreignObject"
1547
- }, [
1548
- E("div", La, [
1549
- y(Ae) ? N("", !0) : C(e.$slots, "rect", pt({
1550
- key: 0,
1551
- ref_for: !0
1552
- }, {
1553
- rect: {
1554
- ...o,
1555
- height: Q(o),
1556
- width: ee(o),
1557
- isSelected: R.value ? R.value.id === o.id : !0
1558
- },
1559
- shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Ve.value,
1560
- fontSize: ze(o),
1561
- isZoom: Ve.value,
1562
- textColor: y(kt)(o.color)
1563
- }), void 0, !0)
1564
- ])
1565
- ], 8, Fa))
1566
- ]))), 128)),
1567
- C(e.$slots, "svg", Y(X({ svg: D.value, isZoom: Ve.value, rect: R.value, config: t.value, isPrintingImg: y(_t) | y(Ft) | nt.value, isPrintingSvg: st.value })), void 0, !0)
1568
- ], 46, xa)),
1569
- e.$slots.hint ? (v(), M("div", Na, [
1570
- C(e.$slots, "hint", Y(X({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: Mt.value })), void 0, !0)
1571
- ])) : N("", !0)
1572
- ]),
1573
- e.$slots.watermark ? (v(), M("div", Ba, [
1574
- C(e.$slots, "watermark", Y(X({ isPrinting: y(_t) || y(Ft) || nt.value || st.value })), void 0, !0)
1575
- ])) : N("", !0),
1576
- E("div", {
1577
- id: `legend-bottom-${le.value}`
1578
- }, null, 8, Ra),
1579
- io.value ? (v(), he(Bl, {
1580
- key: 7,
1581
- to: t.value.style.chart.legend.position === "top" ? `#legend-top-${le.value}` : `#legend-bottom-${le.value}`
1582
- }, [
1583
- E("div", {
1584
- ref_key: "chartLegend",
1585
- ref: no
1586
- }, [
1587
- t.value.style.chart.legend.show ? (v(), he(la, {
1588
- key: `legend_${Tt.value}`,
1589
- legendSet: He.value,
1590
- config: cl.value,
1591
- id: `treemap_legend_${le.value}`,
1592
- isCursorPointer: Se.value,
1593
- onClickMarker: l[0] || (l[0] = ({ legend: o }) => rt(o))
1594
- }, {
1595
- item: S(({ legend: o, index: a }) => [
1596
- y(Ae) ? N("", !0) : (v(), M("div", {
1597
- key: 0,
1598
- onClick: (n) => rt(o),
1599
- style: xe(`opacity:${B.value.includes(o.id) ? 0.5 : 1}`)
1600
- }, tt(o.display), 13, Da))
1601
- ]),
1602
- legendToggle: S(() => [
1603
- He.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(Ae) ? (v(), he(na, {
1604
- key: 0,
1605
- backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
1606
- color: t.value.style.chart.legend.selectAllToggle.color,
1607
- fontSize: t.value.style.chart.legend.fontSize,
1608
- checked: B.value.length > 0,
1609
- isCursorPointer: Se.value,
1610
- onToggle: dl
1611
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : N("", !0)
1612
- ]),
1613
- _: 1
1614
- }, 8, ["legendSet", "config", "id", "isCursorPointer"])) : C(e.$slots, "legend", {
1615
- key: 1,
1616
- legend: He.value
1617
- }, void 0, !0)
1618
- ], 512)
1619
- ], 8, ["to"])) : N("", !0),
1620
- e.$slots.source ? (v(), M("div", {
1621
- key: 8,
1622
- ref_key: "source",
1623
- ref: so,
1624
- dir: "auto"
1625
- }, [
1626
- C(e.$slots, "source", {}, void 0, !0)
1627
- ], 512)) : N("", !0),
1628
- gt(y(m), {
1629
- teleportTo: t.value.style.chart.tooltip.teleportTo,
1630
- show: J.value.showTooltip && Ue.value,
1631
- backgroundColor: t.value.style.chart.tooltip.backgroundColor,
1632
- color: t.value.style.chart.tooltip.color,
1633
- fontSize: t.value.style.chart.tooltip.fontSize,
1634
- borderRadius: t.value.style.chart.tooltip.borderRadius,
1635
- borderColor: t.value.style.chart.tooltip.borderColor,
1636
- borderWidth: t.value.style.chart.tooltip.borderWidth,
1637
- backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
1638
- position: t.value.style.chart.tooltip.position,
1639
- offsetY: t.value.style.chart.tooltip.offsetY,
1640
- parent: re.value,
1641
- content: xt.value,
1642
- isFullscreen: _e.value,
1643
- isCustom: y(Ho)(t.value.style.chart.tooltip.customFormat),
1644
- smooth: t.value.style.chart.tooltip.smooth,
1645
- backdropFilter: t.value.style.chart.tooltip.backdropFilter,
1646
- smoothForce: t.value.style.chart.tooltip.smoothForce,
1647
- smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold,
1648
- isA11yMode: je.value === "keyboard",
1649
- a11yPosition: co.value
1650
- }, {
1651
- "tooltip-before": S(() => [
1652
- C(e.$slots, "tooltip-before", Y(X({ ...it.value })), void 0, !0)
1653
- ]),
1654
- tooltip: S(() => [
1655
- C(e.$slots, "tooltip", Y(X({ ...it.value })), void 0, !0)
1656
- ]),
1657
- "tooltip-after": S(() => [
1658
- C(e.$slots, "tooltip-after", Y(X({ ...it.value })), void 0, !0)
1659
- ]),
1660
- _: 3
1661
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1662
- Te.value && t.value.userOptions.buttons.table ? (v(), he(Rl(Ze.value.component), pt({ key: 9 }, Ze.value.props, {
1663
- ref_key: "tableUnit",
1664
- ref: Ye,
1665
- onClose: Oo
1666
- }), Bo({
1667
- content: S(() => [
1668
- (v(), he(y(g), {
1669
- key: `table_${$t.value}`,
1670
- colNames: We.value.colNames,
1671
- head: We.value.head,
1672
- body: We.value.body,
1673
- config: We.value.config,
1674
- title: t.value.table.useDialog ? "" : Ze.value.title,
1675
- withCloseButton: !t.value.table.useDialog,
1676
- isCursorPointer: Se.value,
1677
- onClose: Oo
1678
- }, {
1679
- th: S(({ th: o }) => [
1680
- E("div", {
1681
- innerHTML: o,
1682
- style: { display: "flex", "align-items": "center" }
1683
- }, null, 8, za)
1684
- ]),
1685
- td: S(({ td: o }) => [
1686
- yt(tt(o.name || o), 1)
1687
- ]),
1688
- _: 1
1689
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1690
- ]),
1691
- _: 2
1692
- }, [
1693
- t.value.table.useDialog ? {
1694
- name: "title",
1695
- fn: S(() => [
1696
- yt(tt(Ze.value.title), 1)
1697
- ]),
1698
- key: "0"
1699
- } : void 0,
1700
- t.value.table.useDialog ? {
1701
- name: "actions",
1702
- fn: S(() => [
1703
- E("button", {
1704
- tabindex: "0",
1705
- class: "vue-ui-user-options-button",
1706
- onClick: l[1] || (l[1] = (o) => Rt(t.value.userOptions.callbacks.csv)),
1707
- style: xe({ cursor: Se.value ? "pointer" : "default" })
1708
- }, [
1709
- gt(Eo, {
1710
- name: "fileCsv",
1711
- stroke: Ze.value.props.color
1712
- }, null, 8, ["stroke"])
1713
- ], 4)
1714
- ]),
1715
- key: "1"
1716
- } : void 0
1717
- ]), 1040)) : N("", !0),
1718
- C(e.$slots, "skeleton", {}, () => [
1719
- y(Ae) ? (v(), he(Kl, { key: 0 })) : N("", !0)
1720
- ], !0)
1721
- ], 46, fa));
1722
- }
1723
- }, sn = /* @__PURE__ */ sa(Va, [["__scopeId", "data-v-dc025d13"]]);
1724
- export {
1725
- sn as default
1726
- };