vue-data-ui 3.26.5 → 3.27.1-beta.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17969 -17813
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -120
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-BQbcOtfC.js +0 -116
  350. package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
  351. package/dist/BaseIcon-CIK6Sqo3.js +0 -484
  352. package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
  355. package/dist/ColorPicker-Cb7qpvFt.js +0 -257
  356. package/dist/DataTable-B6LDCXBz.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-CwdgCb7Q.js +0 -187
  359. package/dist/Legend-D9FGXIbQ.js +0 -156
  360. package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
  361. package/dist/PackageVersion-CslTvFsC.js +0 -12
  362. package/dist/PenAndPaper-C1EcBgJW.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-BZgQLgu5.js +0 -143
  367. package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
  368. package/dist/SparkTooltip-D4cRlyuq.js +0 -93
  369. package/dist/Title-Bd98RysU.js +0 -87
  370. package/dist/Tooltip-DmQeI5WE.js +0 -312
  371. package/dist/UserOptions-B_yBcZ1-.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-B_RJohlM.js +0 -237
  374. package/dist/exposedLib-C-JlvWAt.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-KURaWjZI.js +0 -129
  377. package/dist/labelUtils-DShv2Mbg.js +0 -19
  378. package/dist/lib-TWIH5fGr.js +0 -2152
  379. package/dist/package-DbTqd5lc.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-CLl24Afl.js +0 -90
  382. package/dist/render-common-CKv-jztN.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-DObkR9Aa.js +0 -8008
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-BxOdWM0c.js +0 -12
  391. package/dist/useObjectBindings-CPmyIJxB.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-8Y1Rju0Y.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-C3G5Zdl5.js +0 -191
  406. package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
  407. package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
  408. package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
  409. package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
  410. package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
  411. package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
  412. package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
  413. package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
  414. package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
  415. package/dist/vue-ui-chord-64akfaem.js +0 -1347
  416. package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
  417. package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
  418. package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
  419. package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
  420. package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
  421. package/dist/vue-ui-donut-8joMj08Z.js +0 -974
  422. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  423. package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
  424. package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
  425. package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
  426. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  427. package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
  428. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  429. package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
  430. package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
  431. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  432. package/dist/vue-ui-hill-DONFacXR.js +0 -1747
  433. package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  435. package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
  436. package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
  437. package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
  438. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  439. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
  441. package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CueHa1Pm.js +0 -1979
  446. package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
  447. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  448. package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
  449. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  450. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  451. package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
  452. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  453. package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
  454. package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
  455. package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
  456. package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
  457. package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  459. package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
  461. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  462. package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
  463. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  464. package/dist/vue-ui-table-D295mJIf.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
  466. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  467. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
  468. package/dist/vue-ui-timer-BULpjYiI.js +0 -451
  469. package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
  470. package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
  471. package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
  472. package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
  473. package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
  474. package/dist/vue-ui-world-B755-zji.js +0 -3021
  475. package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
  476. package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
  477. package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-DdjDL6aq.js +0 -491
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1647 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, D as r, Et as i, Pt as a, Q as o, Qt as s, Rt as c, S as l, Vt as u, X as d, at as f, et as p, i as m, nt as ee, q as h, r as g, t as te, tn as ne, w as re } from "./lib-TWIH5fGr.js";
3
- import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
4
- import { t as oe } from "./useConfig-DObkR9Aa.js";
5
- import { t as se } from "./usePrinter-8Y1Rju0Y.js";
6
- import { n as ce, t as le } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as ue } from "./useNestedProp-BxOdWM0c.js";
8
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as fe } from "./useChartExport-iwOqiIWX.js";
10
- import { t as pe } from "./useTransitions-g_zBREk2.js";
11
- import { t as me } from "./img-KURaWjZI.js";
12
- import { n as he } from "./Title-Bd98RysU.js";
13
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
15
- import { t as ye } from "./DefGrad-DVBqDjhO.js";
16
- import { t as be } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Ce } from "./usePanZoom-CYU3B4T3.js";
20
- import { t as we } from "./vue_ui_circle_pack-DZC_rdfn.js";
21
- import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as C, guardReactiveProps as w, mergeProps as Oe, nextTick as ke, normalizeClass as T, normalizeProps as E, normalizeStyle as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as D, ref as O, renderList as Ne, renderSlot as k, resolveDynamicComponent as Pe, toDisplayString as A, toRefs as Fe, unref as j, useCssVars as Ie, watch as Le, withCtx as M } from "vue";
22
- //#region src/packCircles.js
23
- function Re(e, t = 0) {
24
- let n = e.reduce((e, { x: n, r }) => Math.min(e, n - r - t), Infinity), r = e.reduce((e, { x: n, r }) => Math.max(e, n + r + t), -Infinity), i = e.reduce((e, { y: n, r }) => Math.min(e, n - r - t), Infinity), a = e.reduce((e, { y: n, r }) => Math.max(e, n + r + t), -Infinity);
25
- return [
26
- n,
27
- i,
28
- r - n,
29
- a - i
30
- ];
31
- }
32
- function ze(e, t, n) {
33
- let r = e._, i = e.next._, a = r.r + i.r, o = (r.x * i.r + i.x * r.r) / a, s = (r.y * i.r + i.y * r.r) / a;
34
- return Math.max(Math.abs(o * n), Math.abs(s * t));
35
- }
36
- function Be(e, t, n) {
37
- let r = ze, i = e.length;
38
- if (!i) return e;
39
- e.sort((e, t) => t.r - e.r);
40
- let a, o, s;
41
- if (a = e[0], a.x = 0, a.y = 0, !(i > 1)) return e;
42
- if (o = e[1], a.x = -o.r, o.x = a.r, o.y = 0, !(i > 2)) return He(e, n, t), e;
43
- Ve(o, a, s = e[2]), a = new Ye(a), o = new Ye(o), s = new Ye(s), a.next = s.previous = o, o.next = a.previous = s, s.next = o.previous = a;
44
- packLoop: for (let c = 3; c < i; ++c) {
45
- Ve(a._, o._, s = e[c]), s = new Ye(s);
46
- let i = o.next, l = a.previous, u = o._.r, d = a._.r;
47
- do
48
- if (u <= d) {
49
- if (N(i._, s._)) {
50
- o = i, a.next = o, o.previous = a, --c;
51
- continue packLoop;
52
- }
53
- u += i._.r, i = i.next;
54
- } else {
55
- if (N(l._, s._)) {
56
- a = l, a.next = o, o.previous = a, --c;
57
- continue packLoop;
58
- }
59
- d += l._.r, l = l.previous;
60
- }
61
- while (i !== l.next);
62
- s.previous = a, s.next = o, a.next = o.previous = o = s;
63
- let f = a, p = r(a, n, t), m = a.next;
64
- for (; m !== o;) {
65
- let e = r(m, n, t);
66
- e < p && (f = m, p = e), m = m.next;
67
- }
68
- a = f, o = a.next;
69
- }
70
- return He(e, n, t), Ge(e, n, t), e;
71
- }
72
- function Ve(e, t, n) {
73
- let r = e.x - t.x, i = e.y - t.y, a = r * r + i * i;
74
- if (a) {
75
- let o = (t.r + n.r) ** 2, s = (e.r + n.r) ** 2;
76
- if (o > s) {
77
- let t = (a + s - o) / (2 * a), c = Math.sqrt(Math.max(0, s / a - t * t));
78
- n.x = e.x - t * r - c * i, n.y = e.y - t * i + c * r;
79
- } else {
80
- let e = (a + o - s) / (2 * a), c = Math.sqrt(Math.max(0, o / a - e * e));
81
- n.x = t.x + e * r - c * i, n.y = t.y + e * i + c * r;
82
- }
83
- } else n.x = t.x + n.r, n.y = t.y;
84
- }
85
- function N(e, t) {
86
- let n = e.r + t.r - 1e-6, r = t.x - e.x, i = t.y - e.y;
87
- return n > 0 && n * n > r * r + i * i;
88
- }
89
- function He(e, t, n) {
90
- if (e.length < 4) return;
91
- let r = e[0].r, i = e.findIndex((e) => e.r < r * .6), a = i === -1 ? Math.min(e.length, 12) : i, o = e.slice(0, Math.max(3, a));
92
- for (let t = 0; t < 80; t += 1) {
93
- let t = !1;
94
- for (let n = 0; n < o.length; n += 1) {
95
- let r = o[n], i = .06 * (1 - n / Math.max(1, o.length)), a = r.x * (1 - i), s = r.y * (1 - i);
96
- Ue(r, a, s, e, n) && (r.x = a, r.y = s, t = !0);
97
- }
98
- if (We(o), !t) break;
99
- }
100
- let s = o.reduce((e, t) => e + t.x, 0) / o.length, c = o.reduce((e, t) => e + t.y, 0) / o.length;
101
- for (let t of e) t.x -= s, t.y -= c;
102
- }
103
- function Ue(e, t, n, r) {
104
- let i = e.x, a = e.y;
105
- e.x = t, e.y = n;
106
- for (let t of r) if (t !== e && N(e, t)) return e.x = i, e.y = a, !1;
107
- return e.x = i, e.y = a, !0;
108
- }
109
- function We(e) {
110
- for (let t = 0; t < 6; t += 1) {
111
- let t = !1;
112
- for (let n = 0; n < e.length - 1; n += 1) for (let r = n + 1; r < e.length; r += 1) {
113
- let i = e[n], a = e[r], o = a.x - i.x, s = a.y - i.y, c = Math.sqrt(o * o + s * s) || 1e-6, l = i.r + a.r;
114
- if (c < l) {
115
- let e = (l - c) / 2, n = o / c, r = s / c;
116
- i.x -= n * e, i.y -= r * e, a.x += n * e, a.y += r * e, t = !0;
117
- }
118
- }
119
- if (!t) break;
120
- }
121
- }
122
- function Ge(e, t, n) {
123
- if (e.length < 6) return;
124
- let r = e[0].r, i = e.findIndex((e) => e.r <= r * .45);
125
- if (i !== -1) for (let r = i; r < e.length; r += 1) {
126
- let i = e[r], a = Ke(i, e.slice(0, r), t, n);
127
- a && (i.x = a.x, i.y = a.y);
128
- }
129
- }
130
- function Ke(e, t, n, r) {
131
- if (t.length < 2) return null;
132
- let i = null, a = Infinity;
133
- for (let o = 0; o < t.length - 1; o += 1) for (let s = o + 1; s < t.length; s += 1) {
134
- let c = t[o], l = t[s], u = qe(c, l, e.r);
135
- for (let o of u) {
136
- if (!o) continue;
137
- let s = {
138
- ...e,
139
- x: o.x,
140
- y: o.y
141
- };
142
- if (!P(s, t)) continue;
143
- let c = Je(s, t, n, r);
144
- c < a && (a = c, i = o);
145
- }
146
- }
147
- return i;
148
- }
149
- function qe(e, t, n) {
150
- let r = e.r + n, i = t.r + n, a = t.x - e.x, o = t.y - e.y, s = a * a + o * o, c = Math.sqrt(s);
151
- if (!c || c > r + i || c < Math.abs(r - i)) return [];
152
- let l = (r * r - i * i + s) / (2 * c), u = r * r - l * l;
153
- if (u < 0) return [];
154
- let d = Math.sqrt(u), f = a / c, p = o / c, m = e.x + l * f, ee = e.y + l * p, h = -p * d, g = f * d;
155
- return [{
156
- x: m + h,
157
- y: ee + g
158
- }, {
159
- x: m - h,
160
- y: ee - g
161
- }];
162
- }
163
- function P(e, t) {
164
- for (let n of t) if (N(n, e)) return !1;
165
- return !0;
166
- }
167
- function Je(e, t, n, r) {
168
- let i = e.x / Math.max(1, n), a = e.y / Math.max(1, r), o = i * i + a * a, s = [];
169
- for (let n of t) {
170
- let t = e.x - n.x, r = e.y - n.y, i = Math.sqrt(t * t + r * r) - (e.r + n.r);
171
- s.push(i);
172
- }
173
- s.sort((e, t) => e - t);
174
- let c = s[0] ?? 0, l = s[1] ?? c, u = s[2] ?? l;
175
- return c * 8 + l * 4 + u * 2 + o * e.r * 12;
176
- }
177
- var Ye = class {
178
- constructor(e) {
179
- this._ = e, this.next = null, this.previous = null;
180
- }
181
- }, Xe = /* @__PURE__ */ e({ default: () => _t }), Ze = ["id"], Qe = ["id"], $e = [
182
- "xmlns",
183
- "aria-describedby",
184
- "viewBox"
185
- ], et = [
186
- "x",
187
- "y",
188
- "width",
189
- "height"
190
- ], tt = { key: 0 }, nt = [
191
- "x",
192
- "y",
193
- "width",
194
- "height",
195
- "stroke",
196
- "stroke-width",
197
- "fill",
198
- "rx",
199
- "onMouseenter",
200
- "onMouseout",
201
- "onClick"
202
- ], rt = [
203
- "x",
204
- "y",
205
- "width",
206
- "height",
207
- "stroke",
208
- "stroke-width",
209
- "fill",
210
- "rx"
211
- ], it = [
212
- "x",
213
- "y",
214
- "width",
215
- "height",
216
- "fill",
217
- "rx"
218
- ], at = [
219
- "transform",
220
- "font-size",
221
- "fill",
222
- "font-weight"
223
- ], ot = [
224
- "transform",
225
- "font-size",
226
- "fill",
227
- "font-weight"
228
- ], st = {
229
- key: 1,
230
- style: { pointerEvents: "none" }
231
- }, ct = [
232
- "stroke",
233
- "stroke-width",
234
- "stroke-dasharray",
235
- "opacity",
236
- "d"
237
- ], lt = [
238
- "x",
239
- "y",
240
- "width",
241
- "height",
242
- "rx",
243
- "ry",
244
- "fill",
245
- "stroke",
246
- "stroke-width",
247
- "filter"
248
- ], ut = [
249
- "fill",
250
- "x",
251
- "y",
252
- "rx",
253
- "width",
254
- "height"
255
- ], dt = [
256
- "transform",
257
- "font-size",
258
- "fill",
259
- "font-family"
260
- ], ft = ["dy"], pt = {
261
- key: 0,
262
- style: {
263
- position: "absolute",
264
- top: "100%",
265
- left: "0",
266
- width: "100%"
267
- },
268
- "data-dom-to-png-ignore": "",
269
- "aria-hidden": "true"
270
- }, mt = {
271
- key: 5,
272
- class: "vue-data-ui-watermark"
273
- }, ht = {
274
- key: 6,
275
- "data-dom-to-png-ignore": "",
276
- class: "reset-wrapper"
277
- }, gt = { style: {
278
- display: "flex",
279
- "align-items": "center"
280
- } }, _t = /*#__PURE__*/ ge({
281
- __name: "vue-ui-circle-pack",
282
- props: {
283
- config: {
284
- type: Object,
285
- default() {
286
- return {};
287
- }
288
- },
289
- dataset: {
290
- type: Array,
291
- default() {
292
- return [];
293
- }
294
- }
295
- },
296
- emits: ["selectDatapoint", "copyAlt"],
297
- setup(e, { expose: ge, emit: ze }) {
298
- Ie((e) => ({ e036d6dc: fr.value }));
299
- let Ve = C(() => import("./Tooltip-DmQeI5WE.js")), N = C(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), He = C(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), Ue = C(() => import("./DataTable-B6LDCXBz.js")), We = C(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), Ge = C(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), Ke = C(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), qe = C(() => import("./BaseDraggableDialog-BCFCiP_6.js").then((e) => e.n)), P = e, Je = ze, { vue_ui_circle_pack: Ye } = oe(), { isThemeValid: Xe, warnInvalidTheme: _t } = de(), vt = v(() => !!P.dataset && P.dataset.length), F = O(d()), I = O(null), yt = O(null), bt = O(null), xt = O(0), St = O(0), Ct = O(0), wt = O(null), L = O(null), Tt = O(null), Et = O(!1), Dt = O(""), R = O(null), z = O(null), Ot = O({
300
- x: 0,
301
- y: 0
302
- }), kt = O("pointer"), At = O(!1), B = O(Rt()), V = v(() => B.value.style.chart.circles.labels), H = v(() => B.value.style.chart.circles), U = v(() => B.value.style.chart);
303
- ie({
304
- config: () => B.value,
305
- dataset: () => P.dataset,
306
- component: "VueUiCirclePack",
307
- rules: [
308
- ae.emptyArray,
309
- {
310
- test: (e) => e.length === 1 && (!e[0].children || e[0]?.children.length === 0),
311
- message: [
312
- "👀 The dataset only has a single series. Consider:",
313
- "",
314
- "▶️ Using a value display instead of a chart component, or using VueUiKpi."
315
- ]
316
- },
317
- {
318
- test: (e) => e.length === 1 && e[0]?.children && e[0]?.children.length < 6,
319
- message: [
320
- "👀 The number of datapoints is probably too low for this type of chart. Consider:",
321
- "",
322
- "▶️ Using VueUiDonut or VueUiWaffle instead."
323
- ]
324
- }
325
- ]
326
- });
327
- let { transitionEnabled: W } = pe({
328
- config: () => B.value.transitions,
329
- dataset: () => P.dataset
330
- }), jt = v(() => B.value.userOptions.useCursorPointer), Mt = v(() => ne({
331
- defaultConfig: {
332
- userOptions: { show: !1 },
333
- table: { show: !1 },
334
- style: { chart: {
335
- backgroundColor: "#99999930",
336
- circles: {
337
- stroke: "#6A6A6A",
338
- labels: {
339
- name: { show: !1 },
340
- value: { show: !1 }
341
- }
342
- }
343
- } }
344
- },
345
- userConfig: B.value.skeletonConfig ?? {}
346
- })), { loading: Nt, FINAL_DATASET: Pt } = ce({
347
- ...Fe(P),
348
- FINAL_CONFIG: B,
349
- prepareConfig: Rt,
350
- skeletonDataset: P.config?.skeletonDataset ?? [
351
- {
352
- name: "_",
353
- value: 13,
354
- color: "#F2F2F2"
355
- },
356
- {
357
- name: "_",
358
- value: 8,
359
- color: "#DBDBDB"
360
- },
361
- {
362
- name: "_",
363
- value: 5,
364
- color: "#ADADAD"
365
- },
366
- {
367
- name: "_",
368
- value: 3,
369
- color: "#969696"
370
- },
371
- {
372
- name: "_",
373
- value: 2,
374
- color: "#808080"
375
- },
376
- {
377
- name: "_",
378
- value: 1,
379
- color: "#696969"
380
- }
381
- ],
382
- skeletonConfig: ne({
383
- defaultConfig: B.value,
384
- userConfig: Mt.value
385
- })
386
- }), { svgRef: G } = Se({ config: U.value.title }), { userOptionsVisible: Ft, setUserOptionsVisibility: It, keepUserOptionState: Lt } = xe({ config: B.value });
387
- function Rt() {
388
- let e = ue({
389
- userConfig: P.config,
390
- defaultConfig: Ye
391
- }), t = e.theme;
392
- if (!t) return e;
393
- if (!Xe.value(e)) return _t(e), e;
394
- let r = ue({
395
- userConfig: we[t] || P.config,
396
- defaultConfig: e
397
- }), i = ue({
398
- userConfig: P.config,
399
- defaultConfig: r
400
- });
401
- return {
402
- ...i,
403
- customPalette: i.customPalette.length ? i.customPalette : n[t] || u
404
- };
405
- }
406
- function zt(e) {
407
- let t = p(e);
408
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
409
- }
410
- let Bt = zt(P.config);
411
- Le(() => P.config, (e, t) => {
412
- let n = zt(e), r = n !== Bt;
413
- Bt = n;
414
- let i = Rt();
415
- if (!r) {
416
- B.value.style.chart.tooltip = i.style.chart.tooltip, K.value.showTooltip = B.value.style.chart.tooltip.show;
417
- return;
418
- }
419
- B.value = i, Ft.value = !B.value.userOptions.showOnChartHover, un(), xt.value += 1, St.value += 1, K.value.showTable = B.value.table.show, K.value.showTooltip = U.value.tooltip.show, K.value.showZoom = U.value.zoom?.show ?? !1;
420
- }, { deep: !0 });
421
- let { isPrinting: Vt, isImaging: Ht, generatePdf: Ut, generateImage: Wt } = se({
422
- elementId: `vue-ui-circle-pack_${F.value}`,
423
- fileName: U.value.title.text || "vue-ui-circle-pack",
424
- options: B.value.userOptions.print
425
- }), Gt = v(() => B.value.userOptions.show && !U.value.title.text), K = O({
426
- showTable: B.value.table.show,
427
- showTooltip: U.value.tooltip.show,
428
- showZoom: U.value.zoom?.show ?? !1
429
- });
430
- Le(B, () => {
431
- K.value = {
432
- showTable: B.value.table.show,
433
- showTooltip: U.value.tooltip.show,
434
- showZoom: U.value.zoom?.show ?? !1
435
- };
436
- }, { immediate: !0 });
437
- let q = O({
438
- h: 10,
439
- w: 10
440
- }), Kt = O([
441
- 0,
442
- 0,
443
- 100,
444
- 100
445
- ]), qt = O({
446
- x: 0,
447
- y: 0,
448
- width: 100,
449
- height: 100
450
- }), Jt = v(() => B.value.debug), Yt = v(() => {
451
- let e = B.value.style?.chart || {};
452
- return e.dimensions && typeof e.dimensions.width == "number" ? e.dimensions.width : typeof e.width == "number" ? e.width : 300;
453
- }), Xt = v(() => {
454
- let e = B.value.style?.chart || {};
455
- return e.dimensions && typeof e.dimensions.height == "number" ? e.dimensions.height : typeof e.height == "number" ? e.height : 300;
456
- }), J = O([]), Y = O([]), X = O(null), Z = O(null);
457
- function Zt(e, t) {
458
- q.value = {
459
- w: e,
460
- h: t
461
- };
462
- let n = fn.value.map(Qt);
463
- if (!n.length) {
464
- let n = {
465
- x: 0,
466
- y: 0,
467
- width: e,
468
- height: t
469
- };
470
- J.value = [], Y.value = [], Kt.value = [
471
- n.x,
472
- n.y,
473
- n.width,
474
- n.height
475
- ], qt.value = { ...n }, On(n);
476
- return;
477
- }
478
- let r = Be(n, t, e), [i, a, o, s] = Re(r, 1), c = Math.min(o ? e / o : 1, s ? t / s : 1), l = (e - o * c) / 2, u = (t - s * c) / 2, d = r.map((e) => ({
479
- ...e,
480
- x: (e.x - i) * c + l,
481
- y: (e.y - a) * c + u,
482
- r: e.r * c
483
- }));
484
- J.value = an(d), Y.value = J.value;
485
- let f = zn({
486
- x: 0,
487
- y: 0,
488
- width: e,
489
- height: t
490
- });
491
- Kt.value = [
492
- f.x,
493
- f.y,
494
- f.width,
495
- f.height
496
- ], qt.value = { ...f }, On(f);
497
- }
498
- function Qt(e) {
499
- return {
500
- ...e,
501
- children: Array.isArray(e.children) ? e.children.map(Qt) : []
502
- };
503
- }
504
- function $t(e) {
505
- let t = Number(e?.value);
506
- return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e + $t(t), 0) : 0;
507
- }
508
- function en(e, t) {
509
- let r = n[B.value.theme || "default"] || u, i = dn.value.length ? dn.value : r.length ? r : u;
510
- return l(e.color) || i[t % i.length] || u[t % u.length];
511
- }
512
- function tn(e) {
513
- return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e + tn(t), 0);
514
- }
515
- function nn(e, t = null, n = 0, r = []) {
516
- return Array.isArray(e) ? e.map((e, i) => {
517
- let a = $t(e);
518
- if (!Number.isFinite(a) || a <= 0) return null;
519
- let o = d(), s = [...r, i], c = s.reduce((e, t, n) => e + t + n, 0), u = e.color || t?.color ? l(e.color || t?.color) : en(e, c), f = nn(e.children, {
520
- id: o,
521
- name: e.name,
522
- color: u,
523
- rootId: t?.rootId ?? o
524
- }, n + 1, s);
525
- return {
526
- ...e,
527
- value: a,
528
- r: a,
529
- id: o,
530
- color: u,
531
- depth: n,
532
- parentId: t?.id ?? null,
533
- parentName: t?.name ?? null,
534
- rootId: t?.rootId ?? o,
535
- hasChildren: f.length > 0,
536
- childCount: f.length,
537
- leafCount: f.length ? tn({ children: f }) : 1,
538
- hierarchyPath: s,
539
- children: f
540
- };
541
- }).filter(Boolean) : [];
542
- }
543
- function rn(e) {
544
- if (!Array.isArray(e.children) || !e.children.length) return [];
545
- let t = e.r * 2;
546
- if (!t) return [];
547
- let n = Be(e.children.map(Qt), t, t), [r, i, a, o] = Re(n, 1), s = Math.min(a ? t / a : 1, o ? t / o : 1) * .9, c = a * s, l = o * s, u = e.x - c / 2, d = e.y - l / 2;
548
- return n.map((e) => ({
549
- ...e,
550
- x: (e.x - r) * s + u,
551
- y: (e.y - i) * s + d,
552
- r: e.r * s
553
- }));
554
- }
555
- function an(e) {
556
- let t = [];
557
- return e.forEach((e) => {
558
- let n = rn(e);
559
- t.push({
560
- ...e,
561
- children: n
562
- }), t.push(...an(n));
563
- }), t;
564
- }
565
- function on(e, t) {
566
- return !e || !t || !Array.isArray(e.hierarchyPath) || !Array.isArray(t.hierarchyPath) || e.hierarchyPath.length <= t.hierarchyPath.length ? !1 : t.hierarchyPath.every((t, n) => e.hierarchyPath[n] === t);
567
- }
568
- function sn(e) {
569
- return e.hasChildren ? V.value.parents.show : V.value.children.show;
570
- }
571
- function cn() {
572
- if (!B.value.responsive || !I.value) return;
573
- let e = _e(() => {
574
- let { width: e, height: t } = ve({
575
- chart: I.value,
576
- title: U.value.title.text ? yt.value : null,
577
- legend: null,
578
- source: wt.value,
579
- noTitle: bt.value
580
- });
581
- requestAnimationFrame(() => {
582
- e && t && (G.value && (G.value.setAttribute("width", e), G.value.setAttribute("height", t)), Zt(e, t));
583
- });
584
- });
585
- X.value && (Z.value && X.value.unobserve(Z.value), X.value.disconnect()), X.value = new ResizeObserver(e), Z.value = I.value.parentNode || I.value, Z.value && X.value.observe(Z.value), e();
586
- }
587
- function ln() {
588
- X.value && (Z.value && X.value.unobserve(Z.value), X.value.disconnect(), X.value = null, Z.value = null);
589
- }
590
- async function un() {
591
- c(P.dataset) && f({
592
- componentName: "VueUiCirclePack",
593
- type: "dataset",
594
- debug: Jt.value
595
- });
596
- let e = Yt.value, t = Xt.value;
597
- Zt(e, t), B.value.responsive ? cn() : ln();
598
- }
599
- Me(un), je(() => {
600
- ln();
601
- }), Le(() => Pt.value, async (e) => {
602
- await un();
603
- }, { deep: !0 });
604
- let dn = v(() => re(B.value.customPalette)), fn = v(() => nn(Pt.value)), pn = v(() => J.value.length ? Math.max(...J.value.map((e) => e.r)) : 0);
605
- function mn(e, t) {
606
- return pn.value ? t / pn.value * e : 0;
607
- }
608
- function hn(e, t) {
609
- B.value.events.datapointLeave && B.value.events.datapointLeave({
610
- datapoint: e,
611
- seriesIndex: t
612
- }), (kt.value !== "keyboard" || R.value?.id !== e?.id) && (Et.value = !1, R.value = null, z.value = null, kt.value = "pointer");
613
- }
614
- function gn(e, t) {
615
- Je("selectDatapoint", e), B.value.events.datapointClick && B.value.events.datapointClick({
616
- datapoint: e,
617
- seriesIndex: t
618
- });
619
- }
620
- let _n = O(null), vn = O(!1);
621
- function yn(e, t, n = "pointer") {
622
- R.value = e, z.value = t, kt.value = n, B.value.events.datapointEnter && B.value.events.datapointEnter({
623
- datapoint: e,
624
- seriesIndex: t
625
- }), _n.value = {
626
- datapoint: e,
627
- seriesIndex: t,
628
- config: B.value,
629
- series: Y.value
630
- }, Et.value = !0;
631
- let r = U.value.tooltip.customFormat;
632
- if (vn.value = !1, i(r)) try {
633
- let n = r({
634
- seriesIndex: t,
635
- datapoint: e,
636
- series: Y.value,
637
- config: B.value
638
- });
639
- typeof n == "string" && (Dt.value = n, vn.value = !0);
640
- } catch {
641
- console.warn("Custom format cannot be applied."), vn.value = !1;
642
- }
643
- if (!vn.value) {
644
- let t = "";
645
- t += `
646
- <div style="display:flex;align-items:center;gap:4px;">
647
- <svg viewBox="0 0 10 10" height="${U.value.tooltip.fontSize}" width="${U.value.tooltip.fontSize}">
648
- <circle
649
- cx="5"
650
- cy="5"
651
- r="5"
652
- fill="${H.value.gradient.show ? `url(#${e.id})` : e.color}"
653
- />
654
- </svg>
655
- <span>${e.name}: <b>${bn(e)}</b></span>
656
- </div>
657
- `, Dt.value = t;
658
- }
659
- }
660
- function bn(e) {
661
- return m(V.value.value.formatter, e.value, t({
662
- p: V.value.value.prefix,
663
- v: e.value,
664
- s: V.value.value.suffix,
665
- r: V.value.value.rounding
666
- }));
667
- }
668
- function xn(e) {
669
- if (!e) return 0;
670
- let t = bn(e), n = e.r / (t.length || 1) * (t.length === 1 ? 1 : 2);
671
- return Math.min(e.r / 2.5, n);
672
- }
673
- let Q = O(!1);
674
- function Sn(e) {
675
- Q.value = e, Ct.value += 1;
676
- }
677
- let Cn = O(!1);
678
- function wn() {
679
- Cn.value = !Cn.value;
680
- }
681
- let Tn = v(() => !Cn.value && K.value.showZoom), { viewBox: $, resetZoom: En, isZoom: Dn, setInitialViewBox: On } = Ce(G, {
682
- x: 0,
683
- y: 0,
684
- width: Math.max(10, q.value.w),
685
- height: Math.max(10, q.value.h)
686
- }, U.value.zoom?.speed ?? 1, Tn);
687
- function kn(e, t, n = 0) {
688
- return !(e.x + e.width + n < t.x || t.x + t.width + n < e.x || e.y + e.height + n < t.y || t.y + t.height + n < e.y);
689
- }
690
- function An(e, t, n = 0) {
691
- let r = Math.min(Math.max(t.x, e.x - n), e.x + e.width + n), i = Math.min(Math.max(t.y, e.y - n), e.y + e.height + n), a = t.x - r, o = t.y - i;
692
- return a * a + o * o <= t.r * t.r;
693
- }
694
- function jn(e, t, n = 1) {
695
- let r = Math.max(4 * n, Math.min(t.width, t.height) * .01);
696
- return {
697
- ...e,
698
- x: Math.min(Math.max(e.x, t.x + r), t.x + t.width - e.width - r),
699
- y: Math.min(Math.max(e.y, t.y + r), t.y + t.height - e.height - r)
700
- };
701
- }
702
- function Mn(e) {
703
- let t = [e.name];
704
- return V.value.value.show && t.push(bn(e)), t.filter(Boolean);
705
- }
706
- function Nn(e, t, n, r, i) {
707
- let a = e.x, o = e.y;
708
- return {
709
- right: {
710
- x: a + e.r + i,
711
- y: o - n / 2,
712
- anchorX: a + e.r,
713
- anchorY: o
714
- },
715
- left: {
716
- x: a - e.r - i - t,
717
- y: o - n / 2,
718
- anchorX: a - e.r,
719
- anchorY: o
720
- },
721
- top: {
722
- x: a - t / 2,
723
- y: o - e.r - i - n,
724
- anchorX: a,
725
- anchorY: o - e.r
726
- },
727
- bottom: {
728
- x: a - t / 2,
729
- y: o + e.r + i,
730
- anchorX: a,
731
- anchorY: o + e.r
732
- },
733
- topRight: {
734
- x: a + e.r * .7 + i,
735
- y: o - e.r * .7 - i - n,
736
- anchorX: a + e.r * .7,
737
- anchorY: o - e.r * .7
738
- },
739
- topLeft: {
740
- x: a - e.r * .7 - i - t,
741
- y: o - e.r * .7 - i - n,
742
- anchorX: a - e.r * .7,
743
- anchorY: o - e.r * .7
744
- },
745
- bottomRight: {
746
- x: a + e.r * .7 + i,
747
- y: o + e.r * .7 + i,
748
- anchorX: a + e.r * .7,
749
- anchorY: o + e.r * .7
750
- },
751
- bottomLeft: {
752
- x: a - e.r * .7 - i - t,
753
- y: o + e.r * .7 + i,
754
- anchorX: a - e.r * .7,
755
- anchorY: o + e.r * .7
756
- }
757
- }[r];
758
- }
759
- function Pn(e, t) {
760
- let n = [], r = t.get(e.parentId);
761
- for (; r;) n.push(r), r = t.get(r.parentId);
762
- return n;
763
- }
764
- function Fn(e, t, n, r, i, a) {
765
- let o = e.x, s = e.y, c = t || e, l = a * .6, u = {
766
- right: {
767
- x: c.x + c.r + a,
768
- y: s - r / 2
769
- },
770
- left: {
771
- x: c.x - c.r - a - n,
772
- y: s - r / 2
773
- },
774
- top: {
775
- x: o - n / 2,
776
- y: c.y - c.r - a - r
777
- },
778
- bottom: {
779
- x: o - n / 2,
780
- y: c.y + c.r + a
781
- },
782
- topRight: {
783
- x: c.x + c.r + a,
784
- y: c.y - c.r - a - r - l
785
- },
786
- topLeft: {
787
- x: c.x - c.r - a - n,
788
- y: c.y - c.r - a - r - l
789
- },
790
- bottomRight: {
791
- x: c.x + c.r + a,
792
- y: c.y + c.r + a + l
793
- },
794
- bottomLeft: {
795
- x: c.x - c.r - a - n,
796
- y: c.y + c.r + a + l
797
- }
798
- }[i], d = u.x + n / 2, f = u.y + r / 2, p = Math.atan2(f - s, d - o);
799
- return {
800
- ...u,
801
- anchorX: o + Math.cos(p) * e.r,
802
- anchorY: s + Math.sin(p) * e.r
803
- };
804
- }
805
- function In(e, t = {}) {
806
- let { clamp: n = !0, scale: r = 1 } = t;
807
- if (!J.value.length || !q.value.w || !q.value.h || !U.value.parentTooltips.show) return [];
808
- let i = Math.max(8, U.value.parentTooltips.fontSizeRatio * 10) * r, a = i * 1.25, o = i * .75, s = i * .55, c = Math.max(8 * r, Math.min(e.width, e.height) * .025), l = Math.max(2 * r, Math.min(e.width, e.height) * .006), u = [
809
- "right",
810
- "left",
811
- "top",
812
- "bottom",
813
- "topRight",
814
- "topLeft",
815
- "bottomRight",
816
- "bottomLeft"
817
- ], d = [], f = new Map(J.value.map((e) => [e.id, e]));
818
- return J.value.filter((e) => e.hasChildren && e.name).sort((e, t) => t.r - e.r).forEach((t) => {
819
- let p = Pn(t, f).at(-1), m = Mn(t), ee = m.reduce((e, t) => Math.max(e, String(t).length), 0), h = Math.max(i * 5, ee * i * .62 + o * 2), g = m.length * a + s * 2, te = p ? u.map((e) => Fn(t, p, h, g, e, c)) : [], ne = u.map((e) => Nn(t, h, g, e, c)), re = [...te, ...ne].map((t) => {
820
- let i = n ? jn({
821
- x: t.x,
822
- y: t.y,
823
- width: h,
824
- height: g
825
- }, e, r) : {
826
- x: t.x,
827
- y: t.y,
828
- width: h,
829
- height: g
830
- };
831
- return {
832
- ...i,
833
- anchorX: t.anchorX,
834
- anchorY: t.anchorY,
835
- lineX: i.x + i.width / 2,
836
- lineY: i.y + i.height / 2
837
- };
838
- }).find((e) => !d.some((t) => kn(e, t, l)) && !J.value.some((t) => An(e, t, l)));
839
- re && d.push({
840
- ...re,
841
- datapoint: t,
842
- id: `parent_tooltip_${t.id}`,
843
- color: t.color,
844
- lines: m,
845
- fontSize: i,
846
- lineHeight: a,
847
- paddingX: o,
848
- paddingY: s,
849
- scale: r
850
- });
851
- }), d;
852
- }
853
- function Ln(e) {
854
- let t = qt.value;
855
- if (!t.width || !t.height || !e.width || !e.height) return 1;
856
- let n = Math.min(e.width / t.width, e.height / t.height);
857
- return Number.isFinite(n) && n > 0 ? n : 1;
858
- }
859
- let Rn = v(() => In($.value, {
860
- clamp: !0,
861
- scale: Ln($.value)
862
- }));
863
- function zn(e) {
864
- let t = In(e, { clamp: !1 });
865
- if (!t.length) return e;
866
- let n = Math.min(e.x, ...t.map((e) => e.x)), r = Math.min(e.y, ...t.map((e) => e.y)), i = Math.max(e.x + e.width, ...t.map((e) => e.x + e.width)), a = Math.max(e.y + e.height, ...t.map((e) => e.y + e.height)), o = Math.max(8, Math.min(e.width, e.height) * .025);
867
- return {
868
- x: n - o,
869
- y: r - o,
870
- width: i - n + o * 2,
871
- height: a - r + o * 2
872
- };
873
- }
874
- function Bn(e) {
875
- let t = [];
876
- function n(e, r = 0, i = "") {
877
- e.forEach((e) => {
878
- t.push({
879
- name: e.name,
880
- value: e.value,
881
- color: e.color,
882
- parentName: i,
883
- depth: r
884
- }), Array.isArray(e.children) && e.children.length && n(e.children, r + 1, e.name);
885
- });
886
- }
887
- return n(e), t;
888
- }
889
- let Vn = v(() => {
890
- let e = Bn(fn.value);
891
- return {
892
- head: Y.value.map((e) => ({
893
- name: e.name,
894
- value: e.value,
895
- color: e.color
896
- })).toSorted((e, t) => t.value - e.value),
897
- body: e.map((e) => e.value),
898
- hierarchy: e
899
- };
900
- }), Hn = v(() => Bn(fn.value).map((e) => ({
901
- ...e,
902
- name: `${"- ".repeat(e.depth)}${e.name}`
903
- })));
904
- function Un(e = null) {
905
- ke(() => {
906
- let t = Hn.value.map((e) => [
907
- [e.name],
908
- [e.parentName || ""],
909
- [e.depth],
910
- [e.value]
911
- ]), n = [
912
- [U.value.title.text],
913
- [U.value.title.subtitle.text],
914
- [
915
- [B.value.table.columnNames.datapoint],
916
- ["Parent"],
917
- ["Depth"],
918
- [B.value.table.columnNames.value]
919
- ]
920
- ].concat(t), i = r(n);
921
- e ? e(i) : ee({
922
- csvContent: i,
923
- title: U.value.title.text || "vue-ui-circle-pack"
924
- });
925
- });
926
- }
927
- let Wn = v(() => {
928
- let e = [
929
- B.value.table.columnNames.datapoint,
930
- B.value.table.columnNames.parent,
931
- B.value.table.columnNames.depth,
932
- B.value.table.columnNames.value
933
- ], n = Vn.value.hierarchy.map((e) => {
934
- let n = t({
935
- p: V.value.value.prefix,
936
- v: e.value,
937
- s: V.value.value.suffix,
938
- r: V.value.value.rounding
939
- });
940
- return [
941
- {
942
- color: e.color,
943
- name: `${" ".repeat(e.depth)}${e.name}`
944
- },
945
- e.parentName ?? "",
946
- e.depth ?? 0,
947
- n
948
- ];
949
- }), r = {
950
- th: {
951
- backgroundColor: B.value.table.th.backgroundColor,
952
- color: B.value.table.th.color,
953
- outline: B.value.table.th.outline
954
- },
955
- td: {
956
- backgroundColor: B.value.table.td.backgroundColor,
957
- color: B.value.table.td.color,
958
- outline: B.value.table.td.outline
959
- },
960
- breakpoint: B.value.table.responsiveBreakpoint
961
- };
962
- return {
963
- colNames: [
964
- B.value.table.columnNames.datapoint,
965
- B.value.table.columnNames.parent,
966
- B.value.table.columnNames.depth,
967
- B.value.table.columnNames.value
968
- ],
969
- head: e,
970
- body: n,
971
- config: r
972
- };
973
- });
974
- function Gn() {
975
- K.value.showTable = !K.value.showTable;
976
- }
977
- function Kn() {
978
- K.value.showTooltip = !K.value.showTooltip;
979
- }
980
- function qn() {
981
- K.value.showZoom = !K.value.showZoom;
982
- }
983
- function Jn() {
984
- return fn.value;
985
- }
986
- async function Yn({ scale: e = 2 } = {}) {
987
- if (!I.value) return;
988
- let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
989
- domElement: I.value,
990
- base64: !0,
991
- img: !0,
992
- scale: e
993
- });
994
- return {
995
- imageUri: i,
996
- base64: a,
997
- title: U.value.title.text,
998
- width: t,
999
- height: n,
1000
- aspectRatio: r
1001
- };
1002
- }
1003
- let Xn = v(() => {
1004
- let e = B.value.table.useDialog && !B.value.table.show, t = K.value.showTable;
1005
- return {
1006
- component: e ? qe : He,
1007
- title: `${U.value.title.text}${U.value.title.subtitle.text ? `: ${U.value.title.subtitle.text}` : ""}`,
1008
- props: e ? {
1009
- backgroundColor: B.value.table.th.backgroundColor,
1010
- color: B.value.table.th.color,
1011
- headerColor: B.value.table.th.color,
1012
- headerBg: B.value.table.th.backgroundColor,
1013
- isFullscreen: Q.value,
1014
- fullscreenParent: I.value,
1015
- forcedWidth: Math.min(500, window.innerWidth * .8),
1016
- isCursorPointer: jt.value
1017
- } : {
1018
- hideDetails: !0,
1019
- config: {
1020
- open: t,
1021
- maxHeight: 1e4,
1022
- body: {
1023
- backgroundColor: U.value.backgroundColor,
1024
- color: U.value.color
1025
- },
1026
- head: {
1027
- backgroundColor: U.value.backgroundColor,
1028
- color: U.value.color
1029
- }
1030
- }
1031
- }
1032
- };
1033
- });
1034
- Le(() => K.value.showTable, (e) => {
1035
- B.value.table.show || (e && B.value.table.useDialog && L.value ? L.value.open() : L.value && "close" in L.value && L.value.close());
1036
- });
1037
- function Zn() {
1038
- K.value.showTable = !1, Tt.value && Tt.value.setTableIconState(!1);
1039
- }
1040
- let Qn = v(() => U.value.backgroundColor), $n = v(() => U.value.title), { isCallbackImaging: er, isCallbackSvg: tr, generateSvg: nr, onGenerateImage: rr } = fe({
1041
- svg: G,
1042
- title: $n,
1043
- legend: null,
1044
- legendItems: null,
1045
- backgroundColor: Qn,
1046
- getSvgCallback: () => B.value.userOptions.callbacks.svg,
1047
- generateImage: Wt
1048
- });
1049
- async function ir() {
1050
- if (Je("copyAlt", {
1051
- config: B.value,
1052
- dataset: fn.value,
1053
- flattenedDataset: Y.value
1054
- }), !B.value.userOptions.callbacks.altCopy) {
1055
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1056
- return;
1057
- }
1058
- await Promise.resolve(B.value.userOptions.callbacks.altCopy({
1059
- config: B.value,
1060
- dataset: fn.value,
1061
- flattenedDataset: Y.value
1062
- }));
1063
- }
1064
- function ar(e) {
1065
- if (!Number.isFinite(e) || !G.value) return;
1066
- let t = J.value[e];
1067
- if (!t) return;
1068
- let n = s(t.x, t.y, G.value);
1069
- n && (Ot.value = n);
1070
- }
1071
- function or() {
1072
- if (z.value !== null) {
1073
- let e = J.value[z.value];
1074
- e && hn(e, z.value);
1075
- }
1076
- z.value = null, kt.value = "pointer", Et.value = !1, R.value = null;
1077
- }
1078
- function sr() {
1079
- z.value = null, At.value = !0;
1080
- }
1081
- function cr() {
1082
- or(), At.value = !1;
1083
- }
1084
- function lr(e, t) {
1085
- let n = J.value.length;
1086
- return n ? e === null || e < 0 || e >= n ? t === "next" ? 0 : n - 1 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
1087
- }
1088
- function ur(e) {
1089
- if (!G.value || Cn.value || document.activeElement !== G.value || !J.value.length) return;
1090
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1091
- if (!t && !n && !r && !i) return;
1092
- if (e.preventDefault(), e.stopPropagation(), i) {
1093
- or();
1094
- return;
1095
- }
1096
- if (r) {
1097
- if (z.value === null) return;
1098
- let e = J.value[z.value];
1099
- if (!e) return;
1100
- gn(e, z.value);
1101
- return;
1102
- }
1103
- let a = z.value;
1104
- a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? a = lr(a, "next") : t && (a = lr(a, "previous"));
1105
- let o = J.value[a];
1106
- o && (z.value = a, ar(a), yn(o, a, "keyboard"));
1107
- }
1108
- let dr = v(() => ({
1109
- headers: Wn.value?.colNames ?? [],
1110
- rows: Wn.value?.body?.map((e) => [e[0]?.name ?? "", e[1]]) ?? []
1111
- })), fr = v(() => U.value.color);
1112
- return ge({
1113
- getData: Jn,
1114
- getImage: Yn,
1115
- generateCsv: Un,
1116
- generatePdf: Ut,
1117
- generateImage: Wt,
1118
- generateSvg: nr,
1119
- toggleTable: Gn,
1120
- toggleAnnotator: wn,
1121
- toggleFullscreen: Sn,
1122
- copyAlt: ir,
1123
- toggleZoom: qn,
1124
- resetZoom: En
1125
- }), (e, t) => (D(), x("div", {
1126
- id: `vue-ui-circle-pack_${F.value}`,
1127
- class: T(`vue-data-ui-component vue-ui-circle-pack ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j(Nt) ? "loading" : ""}`),
1128
- ref_key: "circlePackChart",
1129
- ref: I,
1130
- style: Ae(`font-family:${B.value.style.fontFamily};text-align:center;background:${U.value.backgroundColor};`),
1131
- onMouseenter: t[2] ||= () => j(It)(!0),
1132
- onMouseleave: t[3] ||= () => j(It)(!1)
1133
- }, [
1134
- S("div", {
1135
- id: `chart-instructions-${F.value}`,
1136
- class: "sr-only"
1137
- }, [S("p", null, A(B.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1138
- dr.value?.rows?.length ? (D(), y(be, {
1139
- key: 0,
1140
- uid: F.value,
1141
- head: dr.value.headers,
1142
- body: dr.value.rows,
1143
- notice: B.value.a11y.translations.tableAvailable,
1144
- caption: B.value.a11y.translations.tableCaption
1145
- }, null, 8, [
1146
- "uid",
1147
- "head",
1148
- "body",
1149
- "notice",
1150
- "caption"
1151
- ])) : b("", !0),
1152
- B.value.userOptions.buttons.annotator ? (D(), y(j(Ge), {
1153
- key: 1,
1154
- svgRef: j(G),
1155
- backgroundColor: U.value.backgroundColor,
1156
- color: U.value.color,
1157
- active: Cn.value,
1158
- scale: pn.value / 100,
1159
- isCursorPointer: jt.value,
1160
- palette: B.value.userOptions.annotatorPalette,
1161
- onClose: wn
1162
- }, {
1163
- "annotator-action-close": M(() => [k(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1164
- "annotator-action-color": M(({ color: t }) => [k(e.$slots, "annotator-action-color", E(w({ color: t })), void 0, !0)]),
1165
- "annotator-action-draw": M(({ mode: t }) => [k(e.$slots, "annotator-action-draw", E(w({ mode: t })), void 0, !0)]),
1166
- "annotator-action-undo": M(({ disabled: t }) => [k(e.$slots, "annotator-action-undo", E(w({ disabled: t })), void 0, !0)]),
1167
- "annotator-action-redo": M(({ disabled: t }) => [k(e.$slots, "annotator-action-redo", E(w({ disabled: t })), void 0, !0)]),
1168
- "annotator-action-delete": M(({ disabled: t }) => [k(e.$slots, "annotator-action-delete", E(w({ disabled: t })), void 0, !0)]),
1169
- _: 3
1170
- }, 8, [
1171
- "svgRef",
1172
- "backgroundColor",
1173
- "color",
1174
- "active",
1175
- "scale",
1176
- "isCursorPointer",
1177
- "palette"
1178
- ])) : b("", !0),
1179
- k(e.$slots, "userConfig", {}, void 0, !0),
1180
- Gt.value ? (D(), x("div", {
1181
- key: 2,
1182
- ref_key: "noTitle",
1183
- ref: bt,
1184
- class: "vue-data-ui-no-title-space",
1185
- style: "height:36px; width: 100%;background:transparent"
1186
- }, null, 512)) : b("", !0),
1187
- U.value.title.text ? (D(), x("div", {
1188
- key: 3,
1189
- ref_key: "chartTitle",
1190
- ref: yt,
1191
- style: "width:100%;background:transparent;padding-bottom:12px"
1192
- }, [(D(), y(he, {
1193
- key: `title_${xt.value}`,
1194
- config: {
1195
- title: {
1196
- cy: "donut-div-title",
1197
- ...U.value.title
1198
- },
1199
- subtitle: {
1200
- cy: "donut-div-subtitle",
1201
- ...U.value.title.subtitle
1202
- }
1203
- }
1204
- }, null, 8, ["config"]))], 512)) : b("", !0),
1205
- B.value.userOptions.show && vt.value && (j(Lt) || j(Ft)) ? (D(), y(j(We), {
1206
- ref_key: "userOptionsRef",
1207
- ref: Tt,
1208
- key: `user_option_${Ct.value}`,
1209
- backgroundColor: U.value.backgroundColor,
1210
- color: U.value.color,
1211
- isPrinting: j(Vt),
1212
- isImaging: j(Ht),
1213
- uid: F.value,
1214
- hasTooltip: B.value.userOptions.buttons.tooltip,
1215
- isTooltip: K.value.showTooltip,
1216
- hasLabel: !1,
1217
- hasPdf: B.value.userOptions.buttons.pdf,
1218
- hasImg: B.value.userOptions.buttons.img,
1219
- hasSvg: B.value.userOptions.buttons.svg,
1220
- hasXls: B.value.userOptions.buttons.csv,
1221
- hasTable: B.value.userOptions.buttons.table,
1222
- hasFullscreen: B.value.userOptions.buttons.fullscreen,
1223
- hasAltCopy: B.value.userOptions.buttons.altCopy,
1224
- isFullscreen: Q.value,
1225
- chartElement: I.value,
1226
- position: B.value.userOptions.position,
1227
- callbacks: B.value.userOptions.callbacks,
1228
- printScale: B.value.userOptions.print.scale,
1229
- titles: { ...B.value.userOptions.buttonTitles },
1230
- hasAnnotator: B.value.userOptions.buttons.annotator,
1231
- isAnnotation: Cn.value,
1232
- tableDialog: B.value.table.useDialog,
1233
- isCursorPointer: jt.value,
1234
- hasZoom: B.value.userOptions.buttons.zoom,
1235
- isZoom: K.value.showZoom,
1236
- onToggleFullscreen: Sn,
1237
- onGeneratePdf: j(Ut),
1238
- onGenerateCsv: Un,
1239
- onGenerateImage: j(rr),
1240
- onGenerateSvg: j(nr),
1241
- onToggleTable: Gn,
1242
- onToggleTooltip: Kn,
1243
- onToggleAnnotator: wn,
1244
- onToggleZoom: qn,
1245
- onCopyAlt: ir,
1246
- style: Ae({ visibility: j(Lt) ? j(Ft) ? "visible" : "hidden" : "visible" })
1247
- }, Te({ _: 2 }, [
1248
- e.$slots.menuIcon ? {
1249
- name: "menuIcon",
1250
- fn: M(({ isOpen: t, color: n }) => [k(e.$slots, "menuIcon", E(w({
1251
- isOpen: t,
1252
- color: n
1253
- })), void 0, !0)]),
1254
- key: "0"
1255
- } : void 0,
1256
- e.$slots.optionTooltip ? {
1257
- name: "optionTooltip",
1258
- fn: M(() => [k(e.$slots, "optionTooltip", {}, void 0, !0)]),
1259
- key: "1"
1260
- } : void 0,
1261
- e.$slots.optionPdf ? {
1262
- name: "optionPdf",
1263
- fn: M(() => [k(e.$slots, "optionPdf", {}, void 0, !0)]),
1264
- key: "2"
1265
- } : void 0,
1266
- e.$slots.optionCsv ? {
1267
- name: "optionCsv",
1268
- fn: M(() => [k(e.$slots, "optionCsv", {}, void 0, !0)]),
1269
- key: "3"
1270
- } : void 0,
1271
- e.$slots.optionImg ? {
1272
- name: "optionImg",
1273
- fn: M(() => [k(e.$slots, "optionImg", {}, void 0, !0)]),
1274
- key: "4"
1275
- } : void 0,
1276
- e.$slots.optionSvg ? {
1277
- name: "optionSvg",
1278
- fn: M(() => [k(e.$slots, "optionSvg", {}, void 0, !0)]),
1279
- key: "5"
1280
- } : void 0,
1281
- e.$slots.optionTable ? {
1282
- name: "optionTable",
1283
- fn: M(() => [k(e.$slots, "optionTable", {}, void 0, !0)]),
1284
- key: "6"
1285
- } : void 0,
1286
- e.$slots.optionFullscreen ? {
1287
- name: "optionFullscreen",
1288
- fn: M(({ toggleFullscreen: t, isFullscreen: n }) => [k(e.$slots, "optionFullscreen", E(w({
1289
- toggleFullscreen: t,
1290
- isFullscreen: n
1291
- })), void 0, !0)]),
1292
- key: "7"
1293
- } : void 0,
1294
- e.$slots.optionAnnotator ? {
1295
- name: "optionAnnotator",
1296
- fn: M(({ toggleAnnotator: t, isAnnotator: n }) => [k(e.$slots, "optionAnnotator", E(w({
1297
- toggleAnnotator: t,
1298
- isAnnotator: n
1299
- })), void 0, !0)]),
1300
- key: "8"
1301
- } : void 0,
1302
- e.$slots.optionZoom ? {
1303
- name: "optionZoom",
1304
- fn: M(({ toggleZoom: t, isZoomLocked: n }) => [k(e.$slots, "optionZoom", E(w({
1305
- toggleZoom: t,
1306
- isZoomLocked: n
1307
- })), void 0, !0)]),
1308
- key: "9"
1309
- } : void 0,
1310
- e.$slots.optionAltCopy ? {
1311
- name: "optionAltCopy",
1312
- fn: M(({ altCopy: t }) => [k(e.$slots, "optionAltCopy", E(w({ altCopy: t })), void 0, !0)]),
1313
- key: "10"
1314
- } : void 0,
1315
- e.$slots["custom-menu-before"] ? {
1316
- name: "custom-menu-before",
1317
- fn: M(() => [k(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1318
- key: "11"
1319
- } : void 0,
1320
- e.$slots["custom-menu-after"] ? {
1321
- name: "custom-menu-after",
1322
- fn: M(() => [k(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1323
- key: "12"
1324
- } : void 0
1325
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.isTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.printScale.titles.hasAnnotator.isAnnotation.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
1326
- S("div", { class: T({
1327
- "vue-ui-circle-pack-svg-container": !0,
1328
- "not-responsive": !B.value.responsive
1329
- }) }, [(D(), x("svg", {
1330
- ref_key: "svgRef",
1331
- ref: G,
1332
- xmlns: j(te),
1333
- "aria-describedby": `chart-instructions-${F.value}`,
1334
- viewBox: `${j($).x} ${j($).y} ${j($).width} ${j($).height}`,
1335
- preserveAspectRatio: "xMidYMid meet",
1336
- class: T({
1337
- "vue-data-ui-fullscreen--on": Q.value,
1338
- "vue-data-ui-fulscreen--off": !Q.value,
1339
- "not-responsive": !B.value.responsive,
1340
- "vue-data-ui-no-transition": !j(W)
1341
- }),
1342
- style: Ae(`display:block;${B.value.responsive ? "width:100%;height:auto" : "height:100%;"};overflow:${K.value.showZoom ? "hidden" : "visible"};background:transparent;color:${U.value.color};background:${U.value.backgroundColor};`),
1343
- tabindex: "0",
1344
- onFocus: sr,
1345
- onBlur: cr,
1346
- onKeydown: ur
1347
- }, [
1348
- De(j(Ke)),
1349
- e.$slots["chart-background"] ? (D(), x("foreignObject", {
1350
- key: 0,
1351
- x: j($).x,
1352
- y: j($).y,
1353
- width: q.value.w,
1354
- height: q.value.h,
1355
- style: { pointerEvents: "none" }
1356
- }, [k(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : b("", !0),
1357
- (D(!0), x(_, null, Ne(J.value, (t, n) => (D(), x(_, { key: t.id }, [
1358
- S("defs", null, [De(ye, {
1359
- t: "radial",
1360
- id: t.id,
1361
- fy: "30%",
1362
- stops: [
1363
- [
1364
- "10%",
1365
- j(a)(t.color, H.value.gradient.intensity / 100),
1366
- 1
1367
- ],
1368
- [
1369
- "90%",
1370
- j(o)(t.color, .1),
1371
- 1
1372
- ],
1373
- [
1374
- "100%",
1375
- t.color,
1376
- 1
1377
- ]
1378
- ]
1379
- }, null, 8, ["id", "stops"])]),
1380
- e.$slots.pattern ? (D(), x("g", tt, [S("defs", null, [k(e.$slots, "pattern", Oe({ ref_for: !0 }, {
1381
- ...t,
1382
- patternId: `pattern_${F.value}_${t.id}`
1383
- }), void 0, !0)])])) : b("", !0),
1384
- S("rect", {
1385
- class: T({ "vue-data-ui-transition": j(W) }),
1386
- x: t.x - t.r,
1387
- y: t.y - t.r,
1388
- width: t.r * 2,
1389
- height: t.r * 2,
1390
- stroke: H.value.stroke,
1391
- "vector-effect": "non-scaling-stroke",
1392
- "stroke-width": H.value.strokeWidth * (pn.value || 1) / 100,
1393
- fill: H.value.gradient.show ? `url(#${t.id})` : t.color,
1394
- rx: t.r,
1395
- onMouseenter: (e) => yn(t, n, "pointer"),
1396
- onMouseout: (e) => hn(t, n),
1397
- onClick: (e) => gn(t, n)
1398
- }, null, 42, nt),
1399
- e.$slots.pattern ? (D(), x("rect", {
1400
- key: 1,
1401
- class: T({ "vue-data-ui-transition": j(W) }),
1402
- x: t.x - t.r,
1403
- y: t.y - t.r,
1404
- width: t.r * 2,
1405
- height: t.r * 2,
1406
- stroke: H.value.stroke,
1407
- "vector-effect": "non-scaling-stroke",
1408
- "stroke-width": H.value.strokeWidth * (pn.value || 1) / 100,
1409
- fill: `url(#pattern_${F.value}_${t.id})`,
1410
- rx: t.r,
1411
- style: { pointerEvents: "none" }
1412
- }, null, 10, rt)) : b("", !0)
1413
- ], 64))), 128)),
1414
- (D(!0), x(_, null, Ne(J.value, (e, t) => (D(), x(_, { key: e.id }, [e.hasChildren ? b("", !0) : (D(), x("rect", {
1415
- key: 0,
1416
- class: T({ "vue-data-ui-transition": j(W) }),
1417
- x: e.x - e.r,
1418
- y: e.y - e.r,
1419
- width: e.r * 2,
1420
- height: e.r * 2,
1421
- stroke: "none",
1422
- fill: R.value && R.value.id === e.id ? H.value.gradient.show ? `url(#${e.id})` : e.color : "transparent",
1423
- rx: e.r,
1424
- style: Ae({
1425
- filter: R.value && R.value.id === e.id ? `drop-shadow(0px 0px 6px ${H.value.selectedShadowColor})` : "none",
1426
- opacity: +!!R.value,
1427
- pointerEvents: "none"
1428
- })
1429
- }, null, 14, it))], 64))), 128)),
1430
- (D(!0), x(_, null, Ne(J.value, (t, n) => (D(), x(_, { key: `cl_${t.id}` }, [e.$slots["data-label"] && sn(t) ? k(e.$slots, "data-label", Oe({ ref_for: !0 }, {
1431
- ...t,
1432
- createTSpans: j(h),
1433
- fontSize: {
1434
- name: t.r / 3 * V.value.name.fontSizeRatio,
1435
- value: xn(t) * V.value.value.fontSizeRatio
1436
- },
1437
- color: V.value.name.color ? V.value.name.color : j(g)(t.color)
1438
- }), void 0, !0, 0) : (D(), x(_, { key: 1 }, [V.value.name.show && t.name && sn(t) ? (D(), x("text", {
1439
- key: 0,
1440
- style: { pointerEvents: "none" },
1441
- class: T({ "vue-data-ui-transition": j(W) }),
1442
- transform: `translate(${t.x}, ${t.y + mn(t.r, V.value.name.offsetY) - t.r / 10})`,
1443
- "font-size": t.r / 3 * V.value.name.fontSizeRatio,
1444
- fill: V.value.name.color === "auto" ? j(g)(t.color) : V.value.name.color,
1445
- "font-weight": V.value.name.bold ? "bold" : "normal",
1446
- "text-anchor": "middle"
1447
- }, A(t.name), 11, at)) : b("", !0), V.value.value.show && sn(t) ? (D(), x("text", {
1448
- key: 1,
1449
- class: T({ "vue-data-ui-transition": j(W) }),
1450
- style: {
1451
- pointerEvents: "none",
1452
- transition: "opacity 0.2s ease-in-out"
1453
- },
1454
- transform: `translate(${t.x}, ${t.y + mn(t.r, V.value.value.offsetY) + t.r / 2.5})`,
1455
- "font-size": xn(t) * V.value.value.fontSizeRatio,
1456
- fill: V.value.value.color === "auto" ? j(g)(t.color) : V.value.value.color,
1457
- "font-weight": V.value.value.bold ? "bold" : "normal",
1458
- "text-anchor": "middle"
1459
- }, A(bn(t)), 11, ot)) : b("", !0)], 64)), k(e.$slots, "circle", Oe({ ref_for: !0 }, {
1460
- ...t,
1461
- showLabel: sn(t),
1462
- isSelected: R.value?.id === t.id,
1463
- isDescendantOfSelected: on(t, R.value),
1464
- uid: `${n}_${F.value}`
1465
- }), void 0, !0)], 64))), 128)),
1466
- Rn.value.length && U.value.parentTooltips.show ? (D(), x("g", st, [(D(!0), x(_, null, Ne(Rn.value, (t) => (D(), x("g", { key: `tltp_${t.id}` }, [
1467
- S("path", {
1468
- class: T({ "vue-data-ui-transition": j(W) }),
1469
- stroke: U.value.parentTooltips.link.useSerieColor ? t.color : U.value.parentTooltips.link.stroke,
1470
- "vector-effect": "non-scaling-stroke",
1471
- "stroke-width": U.value.parentTooltips.link.strokeWidth,
1472
- "stroke-linecap": "round",
1473
- "stroke-dasharray": U.value.parentTooltips.link.strokeDasharray,
1474
- opacity: U.value.parentTooltips.link.opacity,
1475
- d: `M${t.anchorX}, ${t.anchorY} ${t.lineX}, ${t.lineY}`
1476
- }, null, 10, ct),
1477
- S("rect", {
1478
- class: T({ "vue-data-ui-transition": j(W) }),
1479
- x: t.x,
1480
- y: t.y,
1481
- width: t.width,
1482
- height: t.height,
1483
- rx: Math.max(3 * t.scale, t.fontSize / 2.5) * U.value.parentTooltips.borderRadiusRatio,
1484
- ry: Math.max(3 * t.scale, t.fontSize / 2.5) * U.value.parentTooltips.borderRadiusRatio,
1485
- fill: U.value.parentTooltips.backgroundColor,
1486
- stroke: U.value.parentTooltips.useSerieColor ? t.color : U.value.parentTooltips.stroke,
1487
- "vector-effect": "non-scaling-stroke",
1488
- "stroke-width": U.value.parentTooltips.strokeWidth,
1489
- filter: U.value.parentTooltips.filter
1490
- }, null, 10, lt),
1491
- k(e.$slots, "parent-tooltip", Oe({ ref_for: !0 }, { ...t }), () => [S("rect", {
1492
- class: T({ "vue-data-ui-transition": j(W) }),
1493
- fill: t.color,
1494
- x: t.x + t.paddingX * 1.3 - t.fontSize * .35,
1495
- y: t.y + t.paddingY + t.lineHeight / 2 - t.fontSize * .35,
1496
- rx: t.fontSize * .35,
1497
- width: t.fontSize * .7,
1498
- height: t.fontSize * .7
1499
- }, null, 10, ut), S("text", {
1500
- class: T({ "vue-data-ui-transition": j(W) }),
1501
- transform: `translate(${t.x + t.paddingX + t.fontSize}, ${t.y + t.paddingY + t.fontSize})`,
1502
- "font-size": t.fontSize,
1503
- fill: U.value.parentTooltips.color,
1504
- "font-family": B.value.style.fontFamily,
1505
- "text-anchor": "start"
1506
- }, [(D(!0), x(_, null, Ne(t.lines, (e, n) => (D(), x("tspan", {
1507
- key: `${t.id}_${n}`,
1508
- x: 0,
1509
- dy: n === 0 ? 0 : t.lineHeight
1510
- }, A(e), 9, ft))), 128))], 10, dt)], !0)
1511
- ]))), 128))])) : b("", !0),
1512
- k(e.$slots, "svg", { svg: {
1513
- drawingArea: { ...j($) },
1514
- width: q.value.w,
1515
- height: q.value.h,
1516
- isPrintingImg: j(Vt) || j(Ht) || j(er),
1517
- isPrintingSvg: j(tr)
1518
- } }, void 0, !0)
1519
- ], 46, $e)), e.$slots.hint ? (D(), x("div", pt, [k(e.$slots, "hint", E(w({
1520
- hint: B.value.a11y.translations.keyboardNavigation,
1521
- isVisible: At.value
1522
- })), void 0, !0)])) : b("", !0)], 2),
1523
- e.$slots.watermark ? (D(), x("div", mt, [k(e.$slots, "watermark", E(w({ isPrinting: j(Vt) || j(Ht) || j(er) || j(tr) })), void 0, !0)])) : b("", !0),
1524
- j(Dn) ? (D(), x("div", ht, [k(e.$slots, "reset-action", { reset: j(En) }, () => [S("button", {
1525
- "data-cy-reset": "",
1526
- tabindex: "0",
1527
- role: "button",
1528
- class: "vue-data-ui-refresh-button",
1529
- style: Ae({
1530
- background: U.value.backgroundColor,
1531
- cursor: jt.value ? "pointer" : "default"
1532
- }),
1533
- onClick: t[0] ||= (e) => j(En)(!0)
1534
- }, [De(j(N), {
1535
- name: "refresh",
1536
- stroke: U.value.color
1537
- }, null, 8, ["stroke"])], 4)], !0)])) : b("", !0),
1538
- e.$slots.source ? (D(), x("div", {
1539
- key: 7,
1540
- ref_key: "source",
1541
- ref: wt,
1542
- dir: "auto"
1543
- }, [k(e.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
1544
- De(j(Ve), {
1545
- teleportTo: U.value.tooltip.teleportTo,
1546
- show: K.value.showTooltip && Et.value,
1547
- backgroundColor: U.value.tooltip.backgroundColor,
1548
- color: U.value.tooltip.color,
1549
- fontSize: U.value.tooltip.fontSize,
1550
- borderRadius: U.value.tooltip.borderRadius,
1551
- borderColor: U.value.tooltip.borderColor,
1552
- borderWidth: U.value.tooltip.borderWidth,
1553
- backgroundOpacity: U.value.tooltip.backgroundOpacity,
1554
- position: U.value.tooltip.position,
1555
- offsetX: U.value.tooltip.offsetX,
1556
- offsetY: U.value.tooltip.offsetY,
1557
- parent: I.value,
1558
- content: Dt.value,
1559
- isCustom: vn.value,
1560
- isFullscreen: Q.value,
1561
- smooth: U.value.tooltip.smooth,
1562
- backdropFilter: U.value.tooltip.backdropFilter,
1563
- smoothForce: U.value.tooltip.smoothForce,
1564
- smoothSnapThreshold: U.value.tooltip.smoothSnapThrehsold,
1565
- isA11yMode: kt.value === "keyboard",
1566
- a11yPosition: Ot.value
1567
- }, {
1568
- "tooltip-before": M(() => [k(e.$slots, "tooltip-before", E(w({ ..._n.value })), void 0, !0)]),
1569
- tooltip: M(() => [k(e.$slots, "tooltip", E(w({ ..._n.value })), void 0, !0)]),
1570
- "tooltip-after": M(() => [k(e.$slots, "tooltip-after", E(w({ ..._n.value })), void 0, !0)]),
1571
- _: 3
1572
- }, 8, [
1573
- "teleportTo",
1574
- "show",
1575
- "backgroundColor",
1576
- "color",
1577
- "fontSize",
1578
- "borderRadius",
1579
- "borderColor",
1580
- "borderWidth",
1581
- "backgroundOpacity",
1582
- "position",
1583
- "offsetX",
1584
- "offsetY",
1585
- "parent",
1586
- "content",
1587
- "isCustom",
1588
- "isFullscreen",
1589
- "smooth",
1590
- "backdropFilter",
1591
- "smoothForce",
1592
- "smoothSnapThreshold",
1593
- "isA11yMode",
1594
- "a11yPosition"
1595
- ]),
1596
- vt.value && B.value.userOptions.buttons.table ? (D(), y(Pe(Xn.value.component), Oe({ key: 8 }, Xn.value.props, {
1597
- ref_key: "tableUnit",
1598
- ref: L,
1599
- onClose: Zn
1600
- }), Te({
1601
- content: M(() => [(D(), y(j(Ue), {
1602
- key: `table_${St.value}`,
1603
- colNames: Wn.value.colNames,
1604
- head: Wn.value.head,
1605
- body: Wn.value.body,
1606
- config: Wn.value.config,
1607
- title: B.value.table.useDialog ? "" : Xn.value.title,
1608
- withCloseButton: !B.value.table.useDialog,
1609
- isCursorPointer: jt.value,
1610
- onClose: Zn
1611
- }, {
1612
- th: M(({ th: e }) => [S("div", gt, A(e), 1)]),
1613
- td: M(({ td: e }) => [Ee(A(e.name || e), 1)]),
1614
- _: 1
1615
- }, 8, [
1616
- "colNames",
1617
- "head",
1618
- "body",
1619
- "config",
1620
- "title",
1621
- "withCloseButton",
1622
- "isCursorPointer"
1623
- ]))]),
1624
- _: 2
1625
- }, [B.value.table.useDialog ? {
1626
- name: "title",
1627
- fn: M(() => [Ee(A(Xn.value.title), 1)]),
1628
- key: "0"
1629
- } : void 0, B.value.table.useDialog ? {
1630
- name: "actions",
1631
- fn: M(() => [S("button", {
1632
- tabindex: "0",
1633
- class: "vue-ui-user-options-button",
1634
- onClick: t[1] ||= (e) => Un(B.value.userOptions.callbacks.csv),
1635
- style: Ae({ cursor: jt.value ? "pointer" : "default" })
1636
- }, [De(j(N), {
1637
- name: "fileCsv",
1638
- stroke: Xn.value.props.color
1639
- }, null, 8, ["stroke"])], 4)]),
1640
- key: "1"
1641
- } : void 0]), 1040)) : b("", !0),
1642
- k(e.$slots, "skeleton", {}, () => [j(Nt) ? (D(), y(le, { key: 0 })) : b("", !0)], !0)
1643
- ], 46, Ze));
1644
- }
1645
- }, [["__scopeId", "data-v-e1c088b7"]]);
1646
- //#endregion
1647
- export { Xe as n, _t as t };