vue-data-ui 3.17.13 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1076 +0,0 @@
1
- import { defineAsyncComponent as U, computed as w, ref as r, toRefs as Ut, watch as fe, onMounted as Vt, onBeforeUnmount as Gt, openBlock as d, createElementBlock as C, unref as v, normalizeStyle as ae, normalizeClass as _e, createElementVNode as O, toDisplayString as ne, createBlock as K, createCommentVNode as x, withCtx as m, renderSlot as c, normalizeProps as P, guardReactiveProps as S, createSlots as vt, createVNode as Oe, Fragment as W, renderList as Fe, mergeProps as pe, resolveDynamicComponent as Kt, createTextVNode as ct, nextTick as dt } from "vue";
2
- import { u as Yt } from "./useConfig-CG4HT3wS.js";
3
- import { j as ft, t as pt, m as De, p as he, o as jt, q as Xt, n as qt, s as Wt, l as ht, X as Ht, x as Zt, w as Jt, W as Ie, d as Qt, a0 as eo, a1 as to, T as oo, k as lo, a3 as ao } from "./lib-DMzrGQHK.js";
4
- import { u as no } from "./usePrinter-C4t8DdQ-.js";
5
- import { u as so, B as uo } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as ro } from "./useSvgExport-BTG4hVPO.js";
7
- import { u as Ne } from "./useNestedProp-DH0BEVVS.js";
8
- import { u as io } from "./useThemeCheck-C9Ccl7U9.js";
9
- import { u as vo } from "./useUserOptionState-B7Ej974k.js";
10
- import { u as co } from "./useChartAccessibility-cp6XQtqi.js";
11
- import { t as fo, u as po } from "./useResponsive-DfdjqQps.js";
12
- import ho from "./img-CjTQXS0U.js";
13
- import yo from "./Title-BbKoiBk2.js";
14
- import bo from "./vue_ui_circle_pack-CLmw8nHe.js";
15
- import { A as mo } from "./A11yDataTable-BpmuNomI.js";
16
- import { _ as go } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- function ko(i, f = 0) {
18
- const y = i.reduce(
19
- (a, { x: s, r: h }) => Math.min(a, s - h - f),
20
- 1 / 0
21
- ), g = i.reduce(
22
- (a, { x: s, r: h }) => Math.max(a, s + h + f),
23
- -1 / 0
24
- ), p = i.reduce(
25
- (a, { y: s, r: h }) => Math.min(a, s - h - f),
26
- 1 / 0
27
- ), n = i.reduce(
28
- (a, { y: s, r: h }) => Math.max(a, s + h + f),
29
- -1 / 0
30
- );
31
- return [y, p, g - y, n - p];
32
- }
33
- function Co(i, f, y) {
34
- const g = i._, p = i.next._, n = g.r + p.r, a = (g.x * p.r + p.x * g.r) / n, s = (g.y * p.r + p.y * g.r) / n;
35
- return Math.max(Math.abs(a * y), Math.abs(s * f));
36
- }
37
- function wo(i, f, y) {
38
- const g = Co, p = i.length;
39
- if (!p) return i;
40
- let n, a, s;
41
- if (n = i[0], n.x = 0, n.y = 0, !(p > 1) || (a = i[1], n.x = -a.r, a.x = n.r, a.y = 0, !(p > 2))) return i;
42
- yt(a, n, s = i[2]), n = new ye(n), a = new ye(a), s = new ye(s), n.next = s.previous = a, a.next = n.previous = s, s.next = a.previous = n;
43
- e: for (let h = 3; h < p; ++h) {
44
- yt(n._, a._, s = i[h]), s = new ye(s);
45
- let T = a.next, B = n.previous, A = a._.r, H = n._.r;
46
- do
47
- if (A <= H) {
48
- if (bt(T._, s._)) {
49
- a = T, n.next = a, a.previous = n, --h;
50
- continue e;
51
- }
52
- A += T._.r, T = T.next;
53
- } else {
54
- if (bt(B._, s._)) {
55
- n = B, n.next = a, a.previous = n, --h;
56
- continue e;
57
- }
58
- H += B._.r, B = B.previous;
59
- }
60
- while (T !== B.next);
61
- s.previous = n, s.next = a, n.next = a.previous = a = s;
62
- let se = g(n, y, f), ue;
63
- for (; (s = s.next) !== a; )
64
- (ue = g(s, y, f)) < se && (n = s, se = ue);
65
- a = n.next;
66
- }
67
- return i;
68
- }
69
- function yt(i, f, y) {
70
- const g = i.x - f.x, p = i.y - f.y, n = g * g + p * p;
71
- if (n) {
72
- const a = (f.r + y.r) ** 2, s = (i.r + y.r) ** 2;
73
- if (a > s) {
74
- const h = (n + s - a) / (2 * n), T = Math.sqrt(Math.max(0, s / n - h * h));
75
- y.x = i.x - h * g - T * p, y.y = i.y - h * p + T * g;
76
- } else {
77
- const h = (n + a - s) / (2 * n), T = Math.sqrt(Math.max(0, a / n - h * h));
78
- y.x = f.x + h * g - T * p, y.y = f.y + h * p + T * g;
79
- }
80
- } else
81
- y.x = f.x + y.r, y.y = f.y;
82
- }
83
- function bt(i, f) {
84
- const y = i.r + f.r - 1e-6, g = f.x - i.x, p = f.y - i.y;
85
- return y > 0 && y * y > g * g + p * p;
86
- }
87
- class ye {
88
- constructor(f) {
89
- this._ = f, this.next = null, this.previous = null;
90
- }
91
- }
92
- const $o = ["id"], xo = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], Po = ["x", "y", "width", "height"], So = ["id"], Ao = ["stop-color"], _o = ["stop-color"], Oo = ["stop-color"], Fo = { key: 0 }, Do = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], Io = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], No = ["x", "y", "width", "height", "fill", "rx"], Mo = ["x", "y", "font-size", "fill", "font-weight"], Ro = ["x", "y", "font-size", "fill", "font-weight"], Bo = {
93
- key: 0,
94
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
95
- "data-dom-to-png-ignore": "",
96
- "aria-hidden": "true"
97
- }, Eo = {
98
- key: 5,
99
- class: "vue-data-ui-watermark"
100
- }, zo = ["innerHTML"], Lo = {
101
- __name: "vue-ui-circle-pack",
102
- props: {
103
- config: {
104
- type: Object,
105
- default() {
106
- return {};
107
- }
108
- },
109
- dataset: {
110
- type: Array,
111
- default() {
112
- return [];
113
- }
114
- }
115
- },
116
- emits: ["selectDatapoint", "copyAlt"],
117
- setup(i, { expose: f, emit: y }) {
118
- const g = U(() => import("./Tooltip-Cvt7Fi0Q.js")), p = U(() => import("./BaseIcon-DX0hTWa-.js")), n = U(() => import("./vue-ui-accordion-DFtpH_16.js")), a = U(() => import("./DataTable-cMnb68Ik.js")), s = U(
119
- () => import("./UserOptions-DVduN6X7.js")
120
- ), h = U(
121
- () => import("./PenAndPaper-CJDoB5H9.js")
122
- ), T = U(
123
- () => import("./PackageVersion-BfrCAH6_.js")
124
- ), B = U(
125
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
126
- ), A = i, H = y, { vue_ui_circle_pack: se } = Yt(), { isThemeValid: ue, warnInvalidTheme: mt } = io(), Me = w(() => !!A.dataset && A.dataset.length), M = r(ft()), F = r(null), Re = r(null), Be = r(null), Ee = r(0), ze = r(0), Le = r(0), Ue = r(null), Y = r(null), be = r(null), re = r(!1), me = r(""), I = r(null), ie = r(!1), ve = r(!1), _ = r(null), Ve = r({ x: 0, y: 0 }), Z = r("pointer"), ge = r(!1), e = r(Ce()), J = w(
127
- () => e.value.userOptions.useCursorPointer
128
- ), gt = w(() => pt({
129
- defaultConfig: {
130
- userOptions: { show: !1 },
131
- table: { show: !1 },
132
- style: {
133
- chart: {
134
- backgroundColor: "#99999930",
135
- circles: {
136
- stroke: "#6A6A6A",
137
- labels: {
138
- name: { show: !1 },
139
- value: { show: !1 }
140
- }
141
- }
142
- }
143
- }
144
- },
145
- userConfig: e.value.skeletonConfig ?? {}
146
- })), { loading: Ge, FINAL_DATASET: Ke } = so({
147
- ...Ut(A),
148
- FINAL_CONFIG: e,
149
- prepareConfig: Ce,
150
- skeletonDataset: A.config?.skeletonDataset ?? [
151
- { name: "_", value: 13, color: "#F2F2F2" },
152
- { name: "_", value: 8, color: "#DBDBDB" },
153
- { name: "_", value: 5, color: "#ADADAD" },
154
- { name: "_", value: 3, color: "#969696" },
155
- { name: "_", value: 2, color: "#808080" },
156
- { name: "_", value: 1, color: "#696969" }
157
- ],
158
- skeletonConfig: pt({
159
- defaultConfig: e.value,
160
- userConfig: gt.value
161
- })
162
- }), { svgRef: N } = co({
163
- config: e.value.style.chart.title
164
- }), { userOptionsVisible: ke, setUserOptionsVisibility: Ye, keepUserOptionState: je } = vo({ config: e.value });
165
- function Ce() {
166
- const t = Ne({
167
- userConfig: A.config,
168
- defaultConfig: se
169
- }), l = t.theme;
170
- if (!l) return t;
171
- if (!ue.value(t))
172
- return mt(t), t;
173
- const o = Ne({
174
- userConfig: bo[l] || A.config,
175
- defaultConfig: t
176
- }), u = Ne({
177
- userConfig: A.config,
178
- defaultConfig: o
179
- });
180
- return {
181
- ...u,
182
- customPalette: u.customPalette.length ? u.customPalette : De[l] || he
183
- };
184
- }
185
- fe(
186
- () => A.config,
187
- (t) => {
188
- e.value = Ce(), ke.value = !e.value.userOptions.showOnChartHover, xe(), Ee.value += 1, ze.value += 1, D.value.showTable = e.value.table.show;
189
- },
190
- { deep: !0 }
191
- );
192
- const { isPrinting: we, isImaging: $e, generatePdf: Xe, generateImage: qe } = no({
193
- elementId: `vue-ui-circle-pack_${M.value}`,
194
- fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
195
- options: e.value.userOptions.print
196
- }), kt = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = r({
197
- showTable: e.value.table.show,
198
- showTooltip: e.value.style.chart.tooltip.show
199
- });
200
- fe(
201
- e,
202
- () => {
203
- D.value = {
204
- showTable: e.value.table.show,
205
- showTooltip: e.value.style.chart.tooltip.show
206
- };
207
- },
208
- { immediate: !0 }
209
- );
210
- const Ct = r({ h: 10, w: 10 }), We = r([0, 0, 100, 100]), wt = w(() => e.value.debug), $t = w(() => {
211
- const t = e.value.style?.chart || {};
212
- return t.dimensions && typeof t.dimensions.width == "number" ? t.dimensions.width : typeof t.width == "number" ? t.width : 300;
213
- }), xt = w(() => {
214
- const t = e.value.style?.chart || {};
215
- return t.dimensions && typeof t.dimensions.height == "number" ? t.dimensions.height : typeof t.height == "number" ? t.height : 300;
216
- }), $ = r([]), E = r("0 0 100 100"), R = r(null), z = r(null);
217
- function He(t, l) {
218
- Ct.value = {
219
- w: t,
220
- h: l
221
- };
222
- const o = V.value.map((q) => ({ ...q }));
223
- if (!o.length) {
224
- $.value = [], We.value = [0, 0, t, l], E.value = `0 0 ${t} ${l}`;
225
- return;
226
- }
227
- const u = wo(o, l, t), [b, k, L, X] = ko(u, 1), le = Math.min(
228
- L ? t / L : 1,
229
- X ? l / X : 1
230
- ), zt = (t - L * le) / 2, Lt = (l - X * le) / 2;
231
- $.value = u.map((q) => ({
232
- ...q,
233
- x: (q.x - b) * le + zt,
234
- y: (q.y - k) * le + Lt,
235
- r: q.r * le
236
- })), We.value = [0, 0, t, l], E.value = `0 0 ${t} ${l}`;
237
- }
238
- function Tt() {
239
- if (!e.value.responsive || !F.value) return;
240
- const t = fo(() => {
241
- const { width: l, height: o } = po({
242
- chart: F.value,
243
- title: e.value.style.chart.title.text ? Re.value : null,
244
- legend: null,
245
- source: Ue.value,
246
- noTitle: Be.value
247
- });
248
- requestAnimationFrame(() => {
249
- !l || !o || (N.value && (N.value.setAttribute("width", l), N.value.setAttribute("height", o)), He(l, o));
250
- });
251
- });
252
- R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(t), z.value = F.value.parentNode || F.value, z.value && R.value.observe(z.value), t();
253
- }
254
- function Ze() {
255
- R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect(), R.value = null, z.value = null);
256
- }
257
- async function xe() {
258
- jt(A.dataset) && Xt({
259
- componentName: "VueUiCirclePack",
260
- type: "dataset",
261
- debug: wt.value
262
- });
263
- const t = $t.value, l = xt.value;
264
- He(t, l), e.value.responsive ? Tt() : Ze();
265
- }
266
- Vt(xe), Gt(() => {
267
- Ze();
268
- }), fe(
269
- () => Ke.value,
270
- async (t) => {
271
- await xe();
272
- },
273
- { deep: !0 }
274
- );
275
- const Pt = w(() => qt(e.value.customPalette)), V = w(() => Ke.value.map((t, l) => {
276
- const o = Wt(t.color) || Pt.value[l] || De[e.value.theme || "default"][l % De[e.value.theme || "default"].length] || he[l] || he[l % he.length];
277
- return {
278
- ...t,
279
- r: t.value,
280
- id: ft(),
281
- color: o
282
- };
283
- }).filter(
284
- (t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value)
285
- )), Q = w(() => $.value.length ? Math.max(...$.value.map((t) => t.r)) : 0);
286
- function Je(t, l) {
287
- return Q.value ? l / Q.value * t : 0;
288
- }
289
- function Qe(t, l) {
290
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), !(Z.value === "keyboard" && I.value?.id === t?.id) && (re.value = !1, I.value = null, _.value = null, Z.value = "pointer");
291
- }
292
- function et(t, l) {
293
- H("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
294
- }
295
- const ce = r(null), ee = r(!1);
296
- function tt(t, l, o = "pointer") {
297
- I.value = t, _.value = l, Z.value = o, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ce.value = {
298
- datapoint: t,
299
- seriesIndex: l,
300
- config: e.value,
301
- series: V.value
302
- }, re.value = !0;
303
- const u = e.value.style.chart.tooltip.customFormat;
304
- if (ee.value = !1, oo(u))
305
- try {
306
- const b = u({
307
- seriesIndex: l,
308
- datapoint: t,
309
- series: V.value,
310
- config: e.value
311
- });
312
- typeof b == "string" && (me.value = b, ee.value = !0);
313
- } catch {
314
- console.warn("Custom format cannot be applied."), ee.value = !1;
315
- }
316
- if (!ee.value) {
317
- let b = "";
318
- b += `
319
- <div style="display:flex;align-items:center;gap:4px;">
320
- <svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
321
- <circle
322
- cx="5"
323
- cy="5"
324
- r="5"
325
- fill="${e.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color}"
326
- />
327
- </svg>
328
- <span>${t.name}: <b>${Te(t)}</b></span>
329
- </div>
330
- `, me.value = b;
331
- }
332
- }
333
- function Te(t) {
334
- return lo(
335
- e.value.style.chart.circles.labels.value.formatter,
336
- t.value,
337
- ht({
338
- p: e.value.style.chart.circles.labels.value.prefix,
339
- v: t.value,
340
- s: e.value.style.chart.circles.labels.value.suffix,
341
- r: e.value.style.chart.circles.labels.value.rounding
342
- })
343
- );
344
- }
345
- function ot(t) {
346
- if (!t)
347
- return 0;
348
- const l = Te(t), o = t.r / (l.length || 1) * (l.length === 1 ? 1 : 2);
349
- return Math.min(t.r / 2.5, o);
350
- }
351
- const G = r(!1);
352
- function lt(t) {
353
- G.value = t, Le.value += 1;
354
- }
355
- const te = r(!1);
356
- function Pe() {
357
- te.value = !te.value;
358
- }
359
- const de = w(() => {
360
- const t = V.value.map((o) => ({
361
- name: o.name,
362
- value: o.value,
363
- color: o.color
364
- })).toSorted((o, u) => u.value - o.value), l = t.map((o) => o.value);
365
- return { head: t, body: l };
366
- });
367
- function Se(t = null) {
368
- dt(() => {
369
- const l = de.value.head.map((b, k) => [[b.name], [de.value.body[k]]]), o = [
370
- [e.value.style.chart.title.text],
371
- [e.value.style.chart.title.subtitle.text],
372
- [[""], [e.value.table.columnNames.value]]
373
- ].concat(l), u = eo(o);
374
- t ? t(u) : to({
375
- csvContent: u,
376
- title: e.value.style.chart.title.text || "vue-ui-circle-pack"
377
- });
378
- });
379
- }
380
- const j = w(() => {
381
- const t = [
382
- e.value.table.columnNames.datapoint,
383
- e.value.table.columnNames.value
384
- ], l = de.value.head.map((b, k) => {
385
- const L = ht({
386
- p: e.value.style.chart.circles.labels.value.prefix,
387
- v: de.value.body[k],
388
- s: e.value.style.chart.circles.labels.value.suffix,
389
- r: e.value.style.chart.circles.labels.value.rounding
390
- });
391
- return [
392
- {
393
- color: b.color,
394
- name: b.name
395
- },
396
- L
397
- ];
398
- }), o = {
399
- th: {
400
- backgroundColor: e.value.table.th.backgroundColor,
401
- color: e.value.table.th.color,
402
- outline: e.value.table.th.outline
403
- },
404
- td: {
405
- backgroundColor: e.value.table.td.backgroundColor,
406
- color: e.value.table.td.color,
407
- outline: e.value.table.td.outline
408
- },
409
- breakpoint: e.value.table.responsiveBreakpoint
410
- };
411
- return {
412
- colNames: [
413
- e.value.table.columnNames.datapoint,
414
- e.value.table.columnNames.value
415
- ],
416
- head: t,
417
- body: l,
418
- config: o
419
- };
420
- });
421
- function at() {
422
- D.value.showTable = !D.value.showTable;
423
- }
424
- function St() {
425
- D.value.showTooltip = !D.value.showTooltip;
426
- }
427
- function At() {
428
- return V.value;
429
- }
430
- async function _t({ scale: t = 2 } = {}) {
431
- if (!F.value) return;
432
- const { width: l, height: o } = F.value.getBoundingClientRect(), u = l / o, { imageUri: b, base64: k } = await ho({
433
- domElement: F.value,
434
- base64: !0,
435
- img: !0,
436
- scale: t
437
- });
438
- return {
439
- imageUri: b,
440
- base64: k,
441
- title: e.value.style.chart.title.text,
442
- width: l,
443
- height: o,
444
- aspectRatio: u
445
- };
446
- }
447
- const oe = w(() => {
448
- const t = e.value.table.useDialog && !e.value.table.show, l = D.value.showTable;
449
- return {
450
- component: t ? B : n,
451
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
452
- props: t ? {
453
- backgroundColor: e.value.table.th.backgroundColor,
454
- color: e.value.table.th.color,
455
- headerColor: e.value.table.th.color,
456
- headerBg: e.value.table.th.backgroundColor,
457
- isFullscreen: G.value,
458
- fullscreenParent: F.value,
459
- forcedWidth: Math.min(500, window.innerWidth * 0.8),
460
- isCursorPointer: J.value
461
- } : {
462
- hideDetails: !0,
463
- config: {
464
- open: l,
465
- maxHeight: 1e4,
466
- body: {
467
- backgroundColor: e.value.style.chart.backgroundColor,
468
- color: e.value.style.chart.color
469
- },
470
- head: {
471
- backgroundColor: e.value.style.chart.backgroundColor,
472
- color: e.value.style.chart.color
473
- }
474
- }
475
- }
476
- };
477
- });
478
- fe(
479
- () => D.value.showTable,
480
- (t) => {
481
- e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : Y.value && "close" in Y.value && Y.value.close());
482
- }
483
- );
484
- function nt() {
485
- D.value.showTable = !1, be.value && be.value.setTableIconState(!1);
486
- }
487
- const Ot = w(() => e.value.style.chart.backgroundColor), Ft = w(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: It } = ro({
488
- svg: N,
489
- title: Ft,
490
- backgroundColor: Ot
491
- });
492
- async function st({ isCb: t }) {
493
- ve.value = !0, await dt();
494
- try {
495
- if (t) {
496
- const { blob: l, url: o, text: u, dataUrl: b } = await It();
497
- await Promise.resolve(
498
- e.value.userOptions.callbacks.svg({
499
- blob: l,
500
- url: o,
501
- text: u,
502
- dataUrl: b
503
- })
504
- );
505
- } else
506
- await Promise.resolve(Dt());
507
- } finally {
508
- ve.value = !1;
509
- }
510
- }
511
- function Nt(t) {
512
- if (t?.stage === "start") {
513
- ie.value = !0;
514
- return;
515
- }
516
- if (t?.stage === "end") {
517
- ie.value = !1;
518
- return;
519
- }
520
- qe();
521
- }
522
- async function ut() {
523
- if (H("copyAlt", {
524
- config: e.value,
525
- dataset: V.value
526
- }), !e.value.userOptions.callbacks.altCopy) {
527
- console.warn(
528
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
529
- );
530
- return;
531
- }
532
- await Promise.resolve(
533
- e.value.userOptions.callbacks.altCopy({
534
- config: e.value,
535
- dataset: V.value
536
- })
537
- );
538
- }
539
- function Mt(t) {
540
- if (!Number.isFinite(t) || !N.value) return;
541
- const l = $.value[t];
542
- if (!l) return;
543
- const o = ao(l.x, l.y, N.value);
544
- o && (Ve.value = o);
545
- }
546
- function rt() {
547
- if (_.value !== null) {
548
- const t = $.value[_.value];
549
- t && Qe(t, _.value);
550
- }
551
- _.value = null, Z.value = "pointer", re.value = !1, I.value = null;
552
- }
553
- function Rt() {
554
- _.value = null, ge.value = !0;
555
- }
556
- function Bt() {
557
- rt(), ge.value = !1;
558
- }
559
- function it(t, l) {
560
- const o = $.value.length;
561
- return o ? t === null || t < 0 || t >= o ? l === "next" ? 0 : o - 1 : l === "previous" ? (t - 1 + o) % o : (t + 1) % o : null;
562
- }
563
- function Et(t) {
564
- if (!N.value || te.value || document.activeElement !== N.value || !$.value.length) return;
565
- const l = ["ArrowLeft", "ArrowUp"].includes(t.key), o = ["ArrowRight", "ArrowDown"].includes(t.key), u = t.key === "Enter" || t.key === " ", b = t.key === "Escape";
566
- if (!l && !o && !u && !b)
567
- return;
568
- if (t.preventDefault(), t.stopPropagation(), b) {
569
- rt();
570
- return;
571
- }
572
- if (u) {
573
- if (_.value === null) return;
574
- const X = $.value[_.value];
575
- if (!X) return;
576
- et(X, _.value);
577
- return;
578
- }
579
- let k = _.value;
580
- k === null || k < 0 || k >= $.value.length ? k = o ? 0 : $.value.length - 1 : o ? k = it(k, "next") : l && (k = it(k, "previous"));
581
- const L = $.value[k];
582
- L && (_.value = k, Mt(k), tt(L, k, "keyboard"));
583
- }
584
- const Ae = w(() => {
585
- const t = j.value?.colNames ?? [], l = j.value?.body?.map((o) => [o[0]?.name ?? "", o[1]]) ?? [];
586
- return { headers: t, rows: l };
587
- });
588
- return f({
589
- getData: At,
590
- getImage: _t,
591
- generateCsv: Se,
592
- generatePdf: Xe,
593
- generateImage: qe,
594
- generateSvg: st,
595
- toggleTable: at,
596
- toggleAnnotator: Pe,
597
- toggleFullscreen: lt,
598
- copyAlt: ut
599
- }), (t, l) => (d(), C("div", {
600
- id: `vue-ui-circle-pack_${M.value}`,
601
- class: _e(`vue-data-ui-component vue-ui-circle-pack ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${v(Ge) ? "loading" : ""}`),
602
- ref_key: "circlePackChart",
603
- ref: F,
604
- style: ae(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor};`),
605
- onMouseenter: l[1] || (l[1] = () => v(Ye)(!0)),
606
- onMouseleave: l[2] || (l[2] = () => v(Ye)(!1))
607
- }, [
608
- O("div", {
609
- id: `chart-instructions-${M.value}`,
610
- class: "sr-only"
611
- }, [
612
- O("p", null, ne(e.value.a11y.translations.keyboardNavigation), 1)
613
- ], 8, xo),
614
- Ae.value?.rows?.length ? (d(), K(mo, {
615
- key: 0,
616
- uid: M.value,
617
- head: Ae.value.headers,
618
- body: Ae.value.rows,
619
- notice: e.value.a11y.translations.tableAvailable,
620
- caption: e.value.a11y.translations.tableCaption
621
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
622
- e.value.userOptions.buttons.annotator ? (d(), K(v(h), {
623
- key: 1,
624
- svgRef: v(N),
625
- backgroundColor: e.value.style.chart.backgroundColor,
626
- color: e.value.style.chart.color,
627
- active: te.value,
628
- scale: Q.value / 100,
629
- isCursorPointer: J.value,
630
- onClose: Pe
631
- }, {
632
- "annotator-action-close": m(() => [
633
- c(t.$slots, "annotator-action-close", {}, void 0, !0)
634
- ]),
635
- "annotator-action-color": m(({ color: o }) => [
636
- c(t.$slots, "annotator-action-color", P(S({ color: o })), void 0, !0)
637
- ]),
638
- "annotator-action-draw": m(({ mode: o }) => [
639
- c(t.$slots, "annotator-action-draw", P(S({ mode: o })), void 0, !0)
640
- ]),
641
- "annotator-action-undo": m(({ disabled: o }) => [
642
- c(t.$slots, "annotator-action-undo", P(S({ disabled: o })), void 0, !0)
643
- ]),
644
- "annotator-action-redo": m(({ disabled: o }) => [
645
- c(t.$slots, "annotator-action-redo", P(S({ disabled: o })), void 0, !0)
646
- ]),
647
- "annotator-action-delete": m(({ disabled: o }) => [
648
- c(t.$slots, "annotator-action-delete", P(S({ disabled: o })), void 0, !0)
649
- ]),
650
- _: 3
651
- }, 8, ["svgRef", "backgroundColor", "color", "active", "scale", "isCursorPointer"])) : x("", !0),
652
- c(t.$slots, "userConfig", {}, void 0, !0),
653
- kt.value ? (d(), C("div", {
654
- key: 2,
655
- ref_key: "noTitle",
656
- ref: Be,
657
- class: "vue-data-ui-no-title-space",
658
- style: "height:36px; width: 100%;background:transparent"
659
- }, null, 512)) : x("", !0),
660
- e.value.style.chart.title.text ? (d(), C("div", {
661
- key: 3,
662
- ref_key: "chartTitle",
663
- ref: Re,
664
- style: "width:100%;background:transparent;padding-bottom:12px"
665
- }, [
666
- (d(), K(yo, {
667
- key: `title_${Ee.value}`,
668
- config: {
669
- title: {
670
- cy: "donut-div-title",
671
- ...e.value.style.chart.title
672
- },
673
- subtitle: {
674
- cy: "donut-div-subtitle",
675
- ...e.value.style.chart.title.subtitle
676
- }
677
- }
678
- }, null, 8, ["config"]))
679
- ], 512)) : x("", !0),
680
- e.value.userOptions.show && Me.value && (v(je) || v(ke)) ? (d(), K(v(s), {
681
- ref_key: "userOptionsRef",
682
- ref: be,
683
- key: `user_option_${Le.value}`,
684
- backgroundColor: e.value.style.chart.backgroundColor,
685
- color: e.value.style.chart.color,
686
- isPrinting: v(we),
687
- isImaging: v($e),
688
- uid: M.value,
689
- hasTooltip: e.value.userOptions.buttons.tooltip,
690
- isTooltip: D.value.showTooltip,
691
- hasLabel: !1,
692
- hasPdf: e.value.userOptions.buttons.pdf,
693
- hasImg: e.value.userOptions.buttons.img,
694
- hasSvg: e.value.userOptions.buttons.svg,
695
- hasXls: e.value.userOptions.buttons.csv,
696
- hasTable: e.value.userOptions.buttons.table,
697
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
698
- hasAltCopy: e.value.userOptions.buttons.altCopy,
699
- isFullscreen: G.value,
700
- chartElement: F.value,
701
- position: e.value.userOptions.position,
702
- callbacks: e.value.userOptions.callbacks,
703
- printScale: e.value.userOptions.print.scale,
704
- titles: { ...e.value.userOptions.buttonTitles },
705
- hasAnnotator: e.value.userOptions.buttons.annotator,
706
- isAnnotation: te.value,
707
- tableDialog: e.value.table.useDialog,
708
- isCursorPointer: J.value,
709
- onToggleFullscreen: lt,
710
- onGeneratePdf: v(Xe),
711
- onGenerateCsv: Se,
712
- onGenerateImage: Nt,
713
- onGenerateSvg: st,
714
- onToggleTable: at,
715
- onToggleTooltip: St,
716
- onToggleAnnotator: Pe,
717
- onCopyAlt: ut,
718
- style: ae({
719
- visibility: v(je) ? v(ke) ? "visible" : "hidden" : "visible"
720
- })
721
- }, vt({ _: 2 }, [
722
- t.$slots.menuIcon ? {
723
- name: "menuIcon",
724
- fn: m(({ isOpen: o, color: u }) => [
725
- c(t.$slots, "menuIcon", P(S({ isOpen: o, color: u })), void 0, !0)
726
- ]),
727
- key: "0"
728
- } : void 0,
729
- t.$slots.optionPdf ? {
730
- name: "optionPdf",
731
- fn: m(() => [
732
- c(t.$slots, "optionPdf", {}, void 0, !0)
733
- ]),
734
- key: "1"
735
- } : void 0,
736
- t.$slots.optionCsv ? {
737
- name: "optionCsv",
738
- fn: m(() => [
739
- c(t.$slots, "optionCsv", {}, void 0, !0)
740
- ]),
741
- key: "2"
742
- } : void 0,
743
- t.$slots.optionImg ? {
744
- name: "optionImg",
745
- fn: m(() => [
746
- c(t.$slots, "optionImg", {}, void 0, !0)
747
- ]),
748
- key: "3"
749
- } : void 0,
750
- t.$slots.optionSvg ? {
751
- name: "optionSvg",
752
- fn: m(() => [
753
- c(t.$slots, "optionSvg", {}, void 0, !0)
754
- ]),
755
- key: "4"
756
- } : void 0,
757
- t.$slots.optionTable ? {
758
- name: "optionTable",
759
- fn: m(() => [
760
- c(t.$slots, "optionTable", {}, void 0, !0)
761
- ]),
762
- key: "5"
763
- } : void 0,
764
- t.$slots.optionFullscreen ? {
765
- name: "optionFullscreen",
766
- fn: m(({ toggleFullscreen: o, isFullscreen: u }) => [
767
- c(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
768
- ]),
769
- key: "6"
770
- } : void 0,
771
- t.$slots.optionAnnotator ? {
772
- name: "optionAnnotator",
773
- fn: m(({ toggleAnnotator: o, isAnnotator: u }) => [
774
- c(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
775
- ]),
776
- key: "7"
777
- } : void 0,
778
- t.$slots.optionAltCopy ? {
779
- name: "optionAltCopy",
780
- fn: m(({ altCopy: o }) => [
781
- c(t.$slots, "optionAltCopy", P(S({ altCopy: o })), void 0, !0)
782
- ]),
783
- key: "8"
784
- } : void 0
785
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "isTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
786
- O("div", {
787
- class: _e({
788
- "vue-ui-circle-pack-svg-container": !0,
789
- "not-responsive": !e.value.responsive
790
- })
791
- }, [
792
- (d(), C("svg", {
793
- ref_key: "svgRef",
794
- ref: N,
795
- xmlns: v(Ht),
796
- "aria-describedby": `chart-instructions-${M.value}`,
797
- viewBox: E.value,
798
- preserveAspectRatio: "xMidYMid meet",
799
- class: _e({
800
- "vue-data-ui-fullscreen--on": G.value,
801
- "vue-data-ui-fulscreen--off": !G.value,
802
- "not-responsive": !e.value.responsive
803
- }),
804
- style: ae(`display:block;${e.value.responsive ? "width:100%;height:auto" : "height:100%;"};overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`),
805
- tabindex: "0",
806
- onFocus: Rt,
807
- onBlur: Bt,
808
- onKeydown: Et
809
- }, [
810
- Oe(v(T)),
811
- t.$slots["chart-background"] ? (d(), C("foreignObject", {
812
- key: 0,
813
- x: E.value.x,
814
- y: E.value.y,
815
- width: E.value.width,
816
- height: E.value.height,
817
- style: { pointerEvents: "none" }
818
- }, [
819
- c(t.$slots, "chart-background", {}, void 0, !0)
820
- ], 8, Po)) : x("", !0),
821
- (d(!0), C(W, null, Fe($.value, (o, u) => (d(), C(W, {
822
- key: o.id
823
- }, [
824
- O("defs", null, [
825
- O("radialGradient", {
826
- id: o.id,
827
- fy: "30%"
828
- }, [
829
- O("stop", {
830
- offset: "10%",
831
- "stop-color": v(Zt)(
832
- o.color,
833
- e.value.style.chart.circles.gradient.intensity / 100
834
- )
835
- }, null, 8, Ao),
836
- O("stop", {
837
- offset: "90%",
838
- "stop-color": v(Jt)(o.color, 0.1)
839
- }, null, 8, _o),
840
- O("stop", {
841
- offset: "100%",
842
- "stop-color": o.color
843
- }, null, 8, Oo)
844
- ], 8, So)
845
- ]),
846
- t.$slots.pattern ? (d(), C("g", Fo, [
847
- O("defs", null, [
848
- c(t.$slots, "pattern", pe({ ref_for: !0 }, {
849
- ...o,
850
- patternId: `pattern_${M.value}_${o.id}`
851
- }), void 0, !0)
852
- ])
853
- ])) : x("", !0),
854
- O("rect", {
855
- x: o.x - o.r,
856
- y: o.y - o.r,
857
- width: o.r * 2,
858
- height: o.r * 2,
859
- stroke: e.value.style.chart.circles.stroke,
860
- "stroke-width": e.value.style.chart.circles.strokeWidth * (Q.value || 1) / 100,
861
- fill: e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color,
862
- rx: o.r,
863
- onMouseenter: (b) => tt(o, u, "pointer"),
864
- onMouseout: (b) => Qe(o, u),
865
- onClick: (b) => et(o, u)
866
- }, null, 40, Do),
867
- t.$slots.pattern ? (d(), C("rect", {
868
- key: 1,
869
- x: o.x - o.r,
870
- y: o.y - o.r,
871
- width: o.r * 2,
872
- height: o.r * 2,
873
- stroke: e.value.style.chart.circles.stroke,
874
- "stroke-width": e.value.style.chart.circles.strokeWidth * (Q.value || 1) / 100,
875
- fill: `url(#pattern_${M.value}_${o.id})`,
876
- rx: o.r,
877
- style: { pointerEvents: "none" }
878
- }, null, 8, Io)) : x("", !0)
879
- ], 64))), 128)),
880
- (d(!0), C(W, null, Fe($.value, (o, u) => (d(), C("rect", {
881
- key: o.id,
882
- x: o.x - o.r,
883
- y: o.y - o.r,
884
- width: o.r * 2,
885
- height: o.r * 2,
886
- stroke: "none",
887
- fill: I.value && I.value.id === o.id ? e.value.style.chart.circles.gradient.show ? `url(#${o.id})` : o.color : "transparent",
888
- rx: o.r,
889
- style: ae({
890
- filter: I.value && I.value.id === o.id ? `drop-shadow(0px 0px 6px ${e.value.style.chart.circles.selectedShadowColor})` : "none",
891
- opacity: I.value ? 1 : 0,
892
- pointerEvents: "none",
893
- transition: "opacity 0.2s ease-in-out"
894
- })
895
- }, null, 12, No))), 128)),
896
- (d(!0), C(W, null, Fe($.value, (o, u) => (d(), C(W, {
897
- key: o.id
898
- }, [
899
- t.$slots["data-label"] ? c(t.$slots, "data-label", pe({
900
- key: 0,
901
- ref_for: !0
902
- }, {
903
- ...o,
904
- createTSpans: v(Qt),
905
- fontSize: {
906
- name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
907
- value: ot(o) * e.value.style.chart.circles.labels.value.fontSizeRatio
908
- },
909
- color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : v(Ie)(o.color)
910
- }), void 0, !0) : (d(), C(W, { key: 1 }, [
911
- e.value.style.chart.circles.labels.name.show && o.name ? (d(), C("text", {
912
- key: 0,
913
- style: {
914
- pointerEvents: "none",
915
- transition: "opacity 0.2s ease-in-out"
916
- },
917
- x: o.x,
918
- y: o.y + Je(
919
- o.r,
920
- e.value.style.chart.circles.labels.name.offsetY
921
- ) - o.r / 10,
922
- "font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
923
- fill: e.value.style.chart.circles.labels.name.color === "auto" ? v(Ie)(o.color) : e.value.style.chart.circles.labels.name.color,
924
- "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
925
- "text-anchor": "middle"
926
- }, ne(o.name), 9, Mo)) : x("", !0),
927
- e.value.style.chart.circles.labels.value.show ? (d(), C("text", {
928
- key: 1,
929
- style: {
930
- pointerEvents: "none",
931
- transition: "opacity 0.2s ease-in-out"
932
- },
933
- x: o.x,
934
- y: o.y + Je(
935
- o.r,
936
- e.value.style.chart.circles.labels.value.offsetY
937
- ) + o.r / 2.5,
938
- "font-size": ot(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
939
- fill: e.value.style.chart.circles.labels.value.color === "auto" ? v(Ie)(o.color) : e.value.style.chart.circles.labels.value.color,
940
- "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
941
- "text-anchor": "middle"
942
- }, ne(Te(o)), 9, Ro)) : x("", !0)
943
- ], 64)),
944
- c(t.$slots, "circle", pe({ ref_for: !0 }, {
945
- ...o,
946
- isSelected: I.value?.id === o.id,
947
- uid: `${u}_${M.value}`
948
- }), void 0, !0)
949
- ], 64))), 128)),
950
- c(t.$slots, "svg", {
951
- svg: {
952
- ...E.value,
953
- isPrintingImg: v(we) | v($e) | ie.value,
954
- isPrintingSvg: ve.value
955
- }
956
- }, void 0, !0)
957
- ], 46, To)),
958
- t.$slots.hint ? (d(), C("div", Bo, [
959
- c(t.$slots, "hint", P(S({
960
- hint: e.value.a11y.translations.keyboardNavigation,
961
- isVisible: ge.value
962
- })), void 0, !0)
963
- ])) : x("", !0)
964
- ], 2),
965
- t.$slots.watermark ? (d(), C("div", Eo, [
966
- c(t.$slots, "watermark", P(S({
967
- isPrinting: v(we) || v($e) || ie.value || ve.value
968
- })), void 0, !0)
969
- ])) : x("", !0),
970
- t.$slots.source ? (d(), C("div", {
971
- key: 6,
972
- ref_key: "source",
973
- ref: Ue,
974
- dir: "auto"
975
- }, [
976
- c(t.$slots, "source", {}, void 0, !0)
977
- ], 512)) : x("", !0),
978
- Oe(v(g), {
979
- teleportTo: e.value.style.chart.tooltip.teleportTo,
980
- show: D.value.showTooltip && re.value,
981
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
982
- color: e.value.style.chart.tooltip.color,
983
- fontSize: e.value.style.chart.tooltip.fontSize,
984
- borderRadius: e.value.style.chart.tooltip.borderRadius,
985
- borderColor: e.value.style.chart.tooltip.borderColor,
986
- borderWidth: e.value.style.chart.tooltip.borderWidth,
987
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
988
- position: e.value.style.chart.tooltip.position,
989
- offsetY: e.value.style.chart.tooltip.offsetY,
990
- parent: F.value,
991
- content: me.value,
992
- isCustom: ee.value,
993
- isFullscreen: G.value,
994
- smooth: e.value.style.chart.tooltip.smooth,
995
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
996
- smoothForce: e.value.style.chart.tooltip.smoothForce,
997
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold,
998
- isA11yMode: Z.value === "keyboard",
999
- a11yPosition: Ve.value
1000
- }, {
1001
- "tooltip-before": m(() => [
1002
- c(t.$slots, "tooltip-before", P(S({ ...ce.value })), void 0, !0)
1003
- ]),
1004
- tooltip: m(() => [
1005
- c(t.$slots, "tooltip", P(S({ ...ce.value })), void 0, !0)
1006
- ]),
1007
- "tooltip-after": m(() => [
1008
- c(t.$slots, "tooltip-after", P(S({ ...ce.value })), void 0, !0)
1009
- ]),
1010
- _: 3
1011
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1012
- Me.value && e.value.userOptions.buttons.table ? (d(), K(Kt(oe.value.component), pe({ key: 7 }, oe.value.props, {
1013
- ref_key: "tableUnit",
1014
- ref: Y,
1015
- onClose: nt
1016
- }), vt({
1017
- content: m(() => [
1018
- (d(), K(v(a), {
1019
- key: `table_${ze.value}`,
1020
- colNames: j.value.colNames,
1021
- head: j.value.head,
1022
- body: j.value.body,
1023
- config: j.value.config,
1024
- title: e.value.table.useDialog ? "" : oe.value.title,
1025
- withCloseButton: !e.value.table.useDialog,
1026
- isCursorPointer: J.value,
1027
- onClose: nt
1028
- }, {
1029
- th: m(({ th: o }) => [
1030
- O("div", {
1031
- innerHTML: o,
1032
- style: { display: "flex", "align-items": "center" }
1033
- }, null, 8, zo)
1034
- ]),
1035
- td: m(({ td: o }) => [
1036
- ct(ne(o.name || o), 1)
1037
- ]),
1038
- _: 1
1039
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1040
- ]),
1041
- _: 2
1042
- }, [
1043
- e.value.table.useDialog ? {
1044
- name: "title",
1045
- fn: m(() => [
1046
- ct(ne(oe.value.title), 1)
1047
- ]),
1048
- key: "0"
1049
- } : void 0,
1050
- e.value.table.useDialog ? {
1051
- name: "actions",
1052
- fn: m(() => [
1053
- O("button", {
1054
- tabindex: "0",
1055
- class: "vue-ui-user-options-button",
1056
- onClick: l[0] || (l[0] = (o) => Se(e.value.userOptions.callbacks.csv)),
1057
- style: ae({ cursor: J.value ? "pointer" : "default" })
1058
- }, [
1059
- Oe(v(p), {
1060
- name: "fileCsv",
1061
- stroke: oe.value.props.color
1062
- }, null, 8, ["stroke"])
1063
- ], 4)
1064
- ]),
1065
- key: "1"
1066
- } : void 0
1067
- ]), 1040)) : x("", !0),
1068
- c(t.$slots, "skeleton", {}, () => [
1069
- v(Ge) ? (d(), K(uo, { key: 0 })) : x("", !0)
1070
- ], !0)
1071
- ], 46, $o));
1072
- }
1073
- }, ll = /* @__PURE__ */ go(Lo, [["__scopeId", "data-v-22655fbd"]]);
1074
- export {
1075
- ll as default
1076
- };