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