vue-data-ui 3.27.0 → 3.27.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-C2W0uGrq.js +1 -0
  3. package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
  4. package/dist/BaseIcon-DdIyewwY.js +1 -0
  5. package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-DoYifY2y.js +1 -0
  8. package/dist/ColorPicker-MLwiwxl5.js +1 -0
  9. package/dist/DataTable-WNecJMcY.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-CHg1AQ3p.js +1 -0
  12. package/dist/Legend-D8YoT1RJ.js +1 -0
  13. package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
  14. package/dist/PackageVersion-CdkxOy58.js +1 -0
  15. package/dist/PenAndPaper-IMw576MC.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-Bp9YNtPc.js +1 -0
  20. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  21. package/dist/SparkTooltip-C5JMcBXT.js +1 -0
  22. package/dist/Title-BGYFqulv.js +1 -0
  23. package/dist/Tooltip-Cus2-XNQ.js +1 -0
  24. package/dist/UserOptions-DTxMeZv3.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-CIvU_04o.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-D8t3Bm7s.js +3 -0
  103. package/dist/exposedLib-DHtyEc_G.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-DiT4ivZ5.js +1 -0
  106. package/dist/labelUtils-CG3uVXoZ.js +1 -0
  107. package/dist/lib-CV_IANZ6.js +12 -0
  108. package/dist/package-DE5cU1Rg.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-BQSB1V3H.js +1 -0
  111. package/dist/render-common-BdZ5aRyn.js +1 -0
  112. package/dist/resolveChartConfig-DZg-korK.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CB186vF2.js +1 -0
  203. package/dist/useObjectBindings-Dse7YyAf.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-hLW3cv4N.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-DyYgLIZN.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
  222. package/dist/vue-ui-accordion-BNvevckx.js +1 -0
  223. package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
  224. package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
  225. package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
  226. package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
  227. package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
  228. package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
  229. package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
  230. package/dist/vue-ui-chord-B6_veyvO.js +21 -0
  231. package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
  232. package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
  233. package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
  234. package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
  235. package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
  236. package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
  237. package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
  238. package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
  239. package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
  240. package/dist/vue-ui-flow-Dru76A2O.js +3 -0
  241. package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
  242. package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
  243. package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
  244. package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
  245. package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
  246. package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
  247. package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
  248. package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
  250. package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
  251. package/dist/vue-ui-label-B4pkXBxc.js +7 -0
  252. package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
  253. package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
  254. package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
  255. package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
  256. package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
  261. package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
  262. package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
  263. package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
  264. package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
  265. package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
  266. package/dist/vue-ui-rings-BOti0NGb.js +1 -0
  267. package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
  268. package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
  269. package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
  270. package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
  271. package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
  272. package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
  274. package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
  276. package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
  277. package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
  278. package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
  279. package/dist/vue-ui-table-CaFVLHxE.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
  281. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  282. package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
  283. package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
  284. package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
  285. package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
  286. package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
  287. package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
  288. package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
  289. package/dist/vue-ui-world-DjMy_utm.js +19 -0
  290. package/dist/vue-ui-xy-DaozHMfg.js +31 -0
  291. package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
  292. package/dist/vue-ui-xy-rGHSI1am.js +24 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1723 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ht as i, S as a, X as o, Z as s, at as c, b as l, en as u, et as d, nn as f, nt as p, t as m, yt as h, zt as g } from "./lib-D4wK6ljP.js";
3
- import { n as _, t as v } from "./useHints-Dq_w2E8B.js";
4
- import { t as ee } from "./useConfig-D_6ZrPMD.js";
5
- import { t as te } from "./usePrinter-DdW2GSm0.js";
6
- import { n as ne, t as y } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as b } from "./useNestedProp-DR_8JPol.js";
8
- import { t as x } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as S } from "./useChartExport-iwOqiIWX.js";
10
- import { t as C } from "./img-Bb5rHcpO.js";
11
- import { n as w } from "./Title-BMCuINbv.js";
12
- import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { i as T, t as ie } from "./useResponsive-ZtArZtUf.js";
14
- import { t as E } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as se } from "./usePanZoom-CYU3B4T3.js";
18
- import { t as ce } from "./vue_ui_word_cloud-C-qIMNLu.js";
19
- import { t as le } from "./BaseZoomControls-vNi8YykO.js";
20
- import { Fragment as ue, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as de, createSlots as fe, createTextVNode as pe, createVNode as me, defineAsyncComponent as j, guardReactiveProps as M, mergeProps as he, nextTick as ge, normalizeClass as _e, normalizeProps as N, normalizeStyle as ve, onBeforeUnmount as ye, onMounted as be, openBlock as P, ref as F, renderList as xe, renderSlot as I, resolveDynamicComponent as Se, shallowRef as Ce, toDisplayString as we, toRefs as Te, unref as L, watch as Ee, withCtx as R } from "vue";
21
- //#region src/wordcloud.js
22
- var De = {
23
- fast: {
24
- spiralStep: 6,
25
- fallbackSpiralStep: 2,
26
- spiralRadiusStep: 2,
27
- fallbackSpiralRadiusStep: 1,
28
- primaryAttempts: 1e4,
29
- fallbackAttempts: 25e3,
30
- minimumVisualPadding: 2,
31
- scaleStep: .9
32
- },
33
- balanced: {
34
- spiralStep: 4,
35
- fallbackSpiralStep: 1,
36
- spiralRadiusStep: 1.5,
37
- fallbackSpiralRadiusStep: 1,
38
- primaryAttempts: 2e4,
39
- fallbackAttempts: 5e4,
40
- minimumVisualPadding: 3,
41
- scaleStep: .92
42
- },
43
- precise: {
44
- spiralStep: 2,
45
- fallbackSpiralStep: 1,
46
- spiralRadiusStep: 1,
47
- fallbackSpiralRadiusStep: .75,
48
- primaryAttempts: 5e4,
49
- fallbackAttempts: 1e5,
50
- minimumVisualPadding: 4,
51
- scaleStep: .95
52
- }
53
- }, Oe = "fast";
54
- function ke(e) {
55
- return De[e] || De[Oe];
56
- }
57
- var Ae = /* @__PURE__ */ new Map();
58
- function je(e) {
59
- let t = String(e), n = Ae.get(t);
60
- if (n) return n;
61
- let r = Math.PI / 180, i = [], a = [];
62
- for (let t = 0; t < 360; t += e) {
63
- let e = t * r;
64
- i.push(Math.cos(e)), a.push(Math.sin(e));
65
- }
66
- let o = {
67
- cosineArray: i,
68
- sineArray: a
69
- };
70
- return Ae.set(t, o), o;
71
- }
72
- function Me({ word: e, fontSize: t, pad: n, canvas: r, ctx: i, svg: a }) {
73
- let o = a.style && a.style.bold, s = a.style && a.style.fontFamily || "Arial, \"Noto Sans Arabic\", Tahoma, sans-serif", c = `${o ? "bold " : ""}${t}px ${s}`, l = String(e.name || ""), u = /[\u0600-\u06FF]/.test(l);
74
- i.font = c, i.direction = u ? "rtl" : "ltr", i.textAlign = "left", i.textBaseline = "alphabetic";
75
- let d = i.measureText(l), f = Math.ceil(Math.abs(d.actualBoundingBoxLeft || 0)), p = Math.ceil(Math.abs(d.actualBoundingBoxRight || d.width)), m = Math.ceil(d.actualBoundingBoxAscent || t), h = Math.ceil(d.actualBoundingBoxDescent || t * .25), g = Math.max(0, Math.round(n || 0)) + Math.ceil(t * (u ? .22 : .12)), _ = Math.max(1, f + p + g * 2), v = Math.max(1, m + h + g * 2);
76
- r.width = _, r.height = v, i.font = c, i.direction = u ? "rtl" : "ltr", i.textAlign = "left", i.textBaseline = "alphabetic", i.fillStyle = "black";
77
- let ee = g + f, te = g + m;
78
- i.fillText(l, ee, te);
79
- let ne = i.getImageData(0, 0, _, v).data, y = [], b = [], x = _, S = v, C = 0, w = 0, re = !1;
80
- for (let e = 0; e < v; e += 1) {
81
- let t = e * _ * 4, n = -1, r = !1;
82
- for (let i = 0; i < _; i += 1) ne[t + i * 4 + 3] > 1 ? (y.push([i, e]), re = !0, i < x && (x = i), i > C && (C = i), e < S && (S = e), e > w && (w = e), r || (r = !0, n = i)) : r && (b.push([
83
- e,
84
- n,
85
- i - 1
86
- ]), r = !1, n = -1);
87
- r && b.push([
88
- e,
89
- n,
90
- _ - 1
91
- ]);
92
- }
93
- return re || (x = 0, S = 0, C = 0, w = 0), {
94
- w: _,
95
- h: v,
96
- wordMask: y,
97
- runs: b,
98
- minX: x,
99
- minY: S,
100
- maxX: C,
101
- maxY: w
102
- };
103
- }
104
- function Ne(e) {
105
- let t = [];
106
- if (!e.length) return t;
107
- let n = e[0][1], r = e[0][0], i = r;
108
- for (let a = 1; a < e.length; a += 1) {
109
- let o = e[a][0], s = e[a][1];
110
- s === n ? o === i + 1 ? i = o : (t.push([
111
- n,
112
- r,
113
- i
114
- ]), r = o, i = o) : (t.push([
115
- n,
116
- r,
117
- i
118
- ]), n = s, r = o, i = o);
119
- }
120
- return t.push([
121
- n,
122
- r,
123
- i
124
- ]), t;
125
- }
126
- function Pe(e, t) {
127
- return 4294967295 >>> 32 - (t - e + 1) << e >>> 0;
128
- }
129
- function Fe(e) {
130
- return 4294967295 << e >>> 0;
131
- }
132
- function Ie(e) {
133
- return 4294967295 >>> 31 - e >>> 0;
134
- }
135
- function Le({ maskBits: e, maskRowStride: t, maskW: n, maskH: r, wx: i, wy: a, runs: o }) {
136
- for (let s = 0; s < o.length; s += 1) {
137
- let c = o[s][0], l = o[s][1], u = o[s][2], d = a + c;
138
- if (d < 0 || d >= r) return !1;
139
- let f = i + l, p = i + u;
140
- if (f < 0 || p >= n) return !1;
141
- let m = d * t, h = f >>> 5, g = p >>> 5, _ = f & 31, v = p & 31;
142
- if (h === g) {
143
- if (e[m + h] & Pe(_, v)) return !1;
144
- } else {
145
- if (e[m + h] & Fe(_)) return !1;
146
- for (let t = h + 1; t < g; t += 1) if (e[m + t]) return !1;
147
- if (e[m + g] & Ie(v)) return !1;
148
- }
149
- }
150
- return !0;
151
- }
152
- function Re({ maskBits: e, maskRowStride: t, maskW: n, maskH: r, wx: i, wy: a, runs: o }) {
153
- for (let s = 0; s < o.length; s += 1) {
154
- let c = o[s][0], l = o[s][1], u = o[s][2], d = a + c;
155
- if (d < 0 || d >= r) continue;
156
- let f = i + l, p = i + u;
157
- if (p < 0 || f >= n) continue;
158
- let m = d * t, h = f >>> 5, g = p >>> 5, _ = f & 31, v = p & 31;
159
- if (h === g) {
160
- let t = Pe(_, v);
161
- e[m + h] |= t;
162
- } else {
163
- {
164
- let t = Fe(_);
165
- e[m + h] |= t;
166
- }
167
- for (let t = h + 1; t < g; t += 1) e[m + t] = 4294967295;
168
- {
169
- let t = Ie(v);
170
- e[m + g] |= t;
171
- }
172
- }
173
- }
174
- }
175
- function z({ wordMask: e, w: t, h: n, dilation: r }) {
176
- let i = new Uint8Array(t * n), a = [];
177
- for (let n = 0; n < e.length; n += 1) {
178
- let r = e[n][0], o = e[n][1] * t + r;
179
- i[o] || (i[o] = 1, a.push(o));
180
- }
181
- for (let e = 0; e < a.length; e += 1) {
182
- let o = a[e], s = o / t | 0, c = o - s * t;
183
- for (let e = -r; e <= r; e += 1) {
184
- let a = s + e;
185
- if (a < 0 || a >= n) continue;
186
- let o = a * t;
187
- for (let n = -r; n <= r; n += 1) {
188
- if (n === 0 && e === 0) continue;
189
- let r = c + n;
190
- r < 0 || r >= t || (i[o + r] = 1);
191
- }
192
- }
193
- }
194
- let o = [];
195
- for (let e = 0; e < i.length; e += 1) if (i[e]) {
196
- let n = e / t | 0, r = e - n * t;
197
- o.push([r, n]);
198
- }
199
- return o;
200
- }
201
- function ze(e, t) {
202
- let n = [];
203
- for (let r = 0; r < t; r += 1) {
204
- let t = e[r];
205
- if (!t || t.length === 0) continue;
206
- t.sort((e, t) => e[0] - t[0]);
207
- let i = t[0][0], a = t[0][1];
208
- for (let e = 1; e < t.length; e += 1) {
209
- let o = t[e][0], s = t[e][1];
210
- o <= a + 1 ? s > a && (a = s) : (n.push([
211
- r,
212
- i,
213
- a
214
- ]), i = o, a = s);
215
- }
216
- n.push([
217
- r,
218
- i,
219
- a
220
- ]);
221
- }
222
- return n;
223
- }
224
- function Be({ runs: e, w: t, h: n, dilation: r }) {
225
- if (!e.length || r <= 0) return e;
226
- let i = Array(n);
227
- for (let a = 0; a < e.length; a += 1) {
228
- let o = e[a], s = o[0], c = Math.max(0, o[1] - r), l = Math.min(t - 1, o[2] + r), u = Math.max(0, s - r), d = Math.min(n - 1, s + r);
229
- for (let e = u; e <= d; e += 1) {
230
- let t = i[e];
231
- t || (t = [], i[e] = t), t.push([c, l]);
232
- }
233
- }
234
- return ze(i, n);
235
- }
236
- function B(e, t) {
237
- let n = e.runs, r = e.w, i = e.h, a = Math.max(1, Math.round(r * t)), o = Math.max(1, Math.round(i * t)), s = Array(o), c = a, l = o, u = 0, d = 0, f = !1;
238
- for (let e = 0; e < n.length; e += 1) {
239
- let r = n[e], i = r[0], a = r[1], p = r[2], m = Math.round(i * t);
240
- if (m < 0 || m >= o) continue;
241
- let h = Math.round(a * t), g = Math.round((p + 1) * t) - 1;
242
- if (g < h) continue;
243
- let _ = s[m];
244
- _ || (_ = [], s[m] = _), _.push([h, g]), f = !0, h < c && (c = h), g > u && (u = g), m < l && (l = m), m > d && (d = m);
245
- }
246
- if (!f) return {
247
- w: a,
248
- h: o,
249
- runs: [],
250
- minX: 0,
251
- minY: 0,
252
- maxX: 0,
253
- maxY: 0
254
- };
255
- let p = [];
256
- for (let e = 0; e < o; e += 1) {
257
- let t = s[e];
258
- if (!t || t.length === 0) continue;
259
- t.sort((e, t) => e[0] - t[0]);
260
- let n = t[0][0], r = t[0][1];
261
- for (let i = 1; i < t.length; i += 1) {
262
- let a = t[i][0], o = t[i][1];
263
- a <= r + 1 ? o > r && (r = o) : (p.push([
264
- e,
265
- n,
266
- r
267
- ]), n = a, r = o);
268
- }
269
- p.push([
270
- e,
271
- n,
272
- r
273
- ]);
274
- }
275
- return {
276
- w: a,
277
- h: o,
278
- runs: p,
279
- minX: c,
280
- minY: l,
281
- maxX: u,
282
- maxY: d
283
- };
284
- }
285
- var Ve = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
286
- function He({ word: e, fontSize: t, pad: n, svg: r }) {
287
- let i = r.style && r.style.bold ? 1 : 0, a = n || 0;
288
- return `${e.name}::${t}::${a}::${i}`;
289
- }
290
- function Ue({ word: e, fontSize: t, pad: n, canvas: r, ctx: i, svg: a }) {
291
- let o = He({
292
- word: e,
293
- fontSize: t,
294
- pad: n,
295
- svg: a
296
- }), s = Ve.get(o);
297
- if (s) return {
298
- key: o,
299
- bitmap: s
300
- };
301
- let c = Me({
302
- word: e,
303
- fontSize: t,
304
- pad: n,
305
- canvas: r,
306
- ctx: i,
307
- svg: a
308
- });
309
- return Ve.set(o, c), {
310
- key: o,
311
- bitmap: c
312
- };
313
- }
314
- function We({ bitmapKey: e, wordMask: t, w: n, h: r, dilation: i }) {
315
- let a = `${e}::d${i}`, o = V.get(a);
316
- if (o) return o;
317
- let s = z({
318
- wordMask: t,
319
- w: n,
320
- h: r,
321
- dilation: i
322
- }), c = {
323
- wordMask: s,
324
- runs: Ne(s)
325
- };
326
- return V.set(a, c), c;
327
- }
328
- function Ge(e, t, n) {
329
- if (!e.length) return;
330
- let r = Infinity, i = -Infinity, a = Infinity, o = -Infinity;
331
- for (let t = 0; t < e.length; t += 1) {
332
- let n = e[t], s = n.x + n.minX, c = n.x + n.maxX, l = n.y + n.minY, u = n.y + n.maxY;
333
- s < r && (r = s), c > i && (i = c), l < a && (a = l), u > o && (o = u);
334
- }
335
- if (!isFinite(r) || !isFinite(i) || !isFinite(a) || !isFinite(o)) return;
336
- let s = Math.max(Math.abs(r), Math.abs(i)), c = Math.max(Math.abs(a), Math.abs(o));
337
- if (s === 0 || c === 0) return;
338
- let l = .9, u = t * .5 * l / s, d = n * .5 * l / c, f = Math.min(u, d);
339
- if (!(f <= 1)) {
340
- f > 4 && (f = 4);
341
- for (let t = 0; t < e.length; t += 1) {
342
- let n = e[t];
343
- n.x *= f, n.y *= f, n.width *= f, n.height *= f, n.fontSize *= f, n.minX *= f, n.maxX *= f, n.minY *= f, n.maxY *= f;
344
- }
345
- }
346
- }
347
- function Ke() {
348
- return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
349
- }
350
- function qe({ value: e, minimumValue: t, maximumValue: n, configuredMinimumFontSize: r, maximumFontSize: i }) {
351
- if (n === t) return i;
352
- let a = (e - t) / (n - t) * (i - r) + r;
353
- return Math.max(r, Math.min(i, a));
354
- }
355
- function Je({ bitmapHeight: e, proximity: t, strictPixelPadding: n, minimumVisualPadding: r }) {
356
- let i = Math.max(0, Math.round(t || 0)), a = Math.ceil(e * .035) + 2;
357
- return Math.max(i, a, n ? 3 : 0, r);
358
- }
359
- function Ye({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitmap: r, bitmapKey: i, proximity: a, minimumVisualPadding: o }) {
360
- let s = e.runs, c = e.w, l = e.h, u = e.minX, d = e.minY, f = e.maxX, p = e.maxY;
361
- if (!s.length) return {
362
- runs: s,
363
- bitmapWidth: c,
364
- bitmapHeight: l,
365
- bitmapMinimumX: u,
366
- bitmapMinimumY: d,
367
- bitmapMaximumX: f,
368
- bitmapMaximumY: p
369
- };
370
- let m = Je({
371
- bitmapHeight: l,
372
- proximity: a,
373
- strictPixelPadding: t,
374
- minimumVisualPadding: o
375
- });
376
- return m <= 0 ? {
377
- runs: s,
378
- bitmapWidth: c,
379
- bitmapHeight: l,
380
- bitmapMinimumX: u,
381
- bitmapMinimumY: d,
382
- bitmapMaximumX: f,
383
- bitmapMaximumY: p
384
- } : n === 1 && m === 2 && t ? {
385
- runs: We({
386
- bitmapKey: i,
387
- wordMask: r.wordMask,
388
- w: r.w,
389
- h: r.h,
390
- dilation: m
391
- }).runs,
392
- bitmapWidth: c,
393
- bitmapHeight: l,
394
- bitmapMinimumX: u,
395
- bitmapMinimumY: d,
396
- bitmapMaximumX: f,
397
- bitmapMaximumY: p
398
- } : {
399
- runs: Be({
400
- runs: s,
401
- w: c,
402
- h: l,
403
- dilation: m
404
- }),
405
- bitmapWidth: c,
406
- bitmapHeight: l,
407
- bitmapMinimumX: u,
408
- bitmapMinimumY: d,
409
- bitmapMaximumX: f,
410
- bitmapMaximumY: p
411
- };
412
- }
413
- async function Xe({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, cosineArray: h, sineArray: g, radiusStep: _, maximumAttempts: v, maybeYield: ee, proximity: te, minimumVisualPadding: ne }) {
414
- let y = 1;
415
- for (; y >= n;) {
416
- let { runs: n, bitmapWidth: b, bitmapHeight: x, bitmapMinimumX: S, bitmapMinimumY: C, bitmapMaximumX: w, bitmapMaximumY: re } = Ye({
417
- currentBitmap: y === 1 ? e : B(e, y),
418
- strictPixelPadding: d,
419
- scaleFactor: y,
420
- baseBitmap: e,
421
- bitmapKey: f,
422
- proximity: te,
423
- minimumVisualPadding: ne
424
- }), T = 0, ie = 0;
425
- for (; T < l && ie < v;) {
426
- for (let e = 0; e < h.length; e += 1) {
427
- ie += 1;
428
- let l = Math.round(s + T * h[e] - b / 2), u = Math.round(c + T * g[e] - x / 2);
429
- if (!(l < 0 || u < 0 || l + b > a || u + x > o) && Le({
430
- maskBits: r,
431
- maskRowStride: i,
432
- maskW: a,
433
- maskH: o,
434
- wx: l,
435
- wy: u,
436
- runs: n
437
- })) {
438
- let { __wcIndex: e, ...s } = m, c = Math.max(p, Math.round(t * y)), d = {
439
- ...s,
440
- x: l - a / 2,
441
- y: u - o / 2,
442
- fontSize: c,
443
- width: b,
444
- height: x,
445
- angle: 0,
446
- minX: S,
447
- minY: C,
448
- maxX: w,
449
- maxY: re
450
- };
451
- return Re({
452
- maskBits: r,
453
- maskRowStride: i,
454
- maskW: a,
455
- maskH: o,
456
- wx: l,
457
- wy: u,
458
- runs: n
459
- }), d;
460
- }
461
- }
462
- T += _, ie & 1023 || await ee();
463
- }
464
- y *= u, await ee();
465
- }
466
- return null;
467
- }
468
- async function Ze({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, maybeYield: h, proximity: g, qualityPreset: _, primarySpiral: v, fallbackSpiral: ee }) {
469
- return await Xe({
470
- baseBitmap: e,
471
- baseFontSize: t,
472
- minimumScaleFactor: n,
473
- maskBits: r,
474
- maskRowStride: i,
475
- maskWidth: a,
476
- maskHeight: o,
477
- centerX: s,
478
- centerY: c,
479
- maximumRadius: l,
480
- scaleStep: u,
481
- strictPixelPadding: d,
482
- bitmapKey: f,
483
- minimumFontSize: p,
484
- rawWord: m,
485
- cosineArray: v.cosineArray,
486
- sineArray: v.sineArray,
487
- radiusStep: _.spiralRadiusStep,
488
- maximumAttempts: _.primaryAttempts,
489
- maybeYield: h,
490
- proximity: g,
491
- minimumVisualPadding: _.minimumVisualPadding
492
- }) || await Xe({
493
- baseBitmap: e,
494
- baseFontSize: t,
495
- minimumScaleFactor: n,
496
- maskBits: r,
497
- maskRowStride: i,
498
- maskWidth: a,
499
- maskHeight: o,
500
- centerX: s,
501
- centerY: c,
502
- maximumRadius: l,
503
- scaleStep: u,
504
- strictPixelPadding: d,
505
- bitmapKey: f,
506
- minimumFontSize: p,
507
- rawWord: m,
508
- cosineArray: ee.cosineArray,
509
- sineArray: ee.sineArray,
510
- radiusStep: _.fallbackSpiralRadiusStep,
511
- maximumAttempts: _.fallbackAttempts,
512
- maybeYield: h,
513
- proximity: g,
514
- minimumVisualPadding: _.minimumVisualPadding
515
- });
516
- }
517
- async function Qe({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, quality: i = Oe, onProgress: a, debugTiming: o = !1 }) {
518
- let s = Ke(), c = s(), l = c;
519
- async function u() {
520
- s() - l >= 12 && (await new Promise((e) => setTimeout(e, 0)), l = s());
521
- }
522
- let d = n.width, f = n.height, p = Math.round(d), m = Math.round(f), h = ke(i), g = je(h.spiralStep), _ = je(h.fallbackSpiralStep), v = n.minFontSize, ee = Math.min(n.maxFontSize, 100), te = e.map((e) => e.value), ne = Math.min(...te), y = Math.max(...te);
523
- if (p <= 0 || m <= 0) return [];
524
- let b = p + 31 >>> 5, x = new Uint32Array(b * m), S = document.createElement("canvas"), C = S.getContext("2d", { willReadFrequently: !0 });
525
- S.width = p, S.height = m;
526
- let w = Math.max(p, m), re = Math.floor(p / 2), T = Math.floor(m / 2), ie = [...e.map((e, t) => ({
527
- ...e,
528
- __wcIndex: t,
529
- id: e.id == null ? `${e.name}__${t}` : e.id
530
- }))].sort((e, t) => t.value - e.value), E = [], ae = h.scaleStep;
531
- for (let e = 0; e < ie.length; e += 1) {
532
- let i = ie[e], o = E.length, s = qe({
533
- value: i.value,
534
- minimumValue: ne,
535
- maximumValue: y,
536
- configuredMinimumFontSize: v,
537
- maximumFontSize: ee
538
- }), c = Ue({
539
- word: i,
540
- fontSize: s,
541
- pad: t,
542
- canvas: S,
543
- ctx: C,
544
- svg: n
545
- }), l = c.key, d = c.bitmap, f = d.w, te = d.h;
546
- if (f <= 0 || te <= 0) {
547
- await u();
548
- continue;
549
- }
550
- let oe = await Ze({
551
- baseBitmap: d,
552
- baseFontSize: s,
553
- minimumScaleFactor: Math.max(1 / s, .1),
554
- maskBits: x,
555
- maskRowStride: b,
556
- maskWidth: p,
557
- maskHeight: m,
558
- centerX: re,
559
- centerY: T,
560
- maximumRadius: w,
561
- scaleStep: ae,
562
- strictPixelPadding: r,
563
- bitmapKey: l,
564
- minimumFontSize: 1,
565
- rawWord: i,
566
- maybeYield: u,
567
- proximity: t,
568
- qualityPreset: h,
569
- primarySpiral: g,
570
- fallbackSpiral: _
571
- });
572
- if (oe && (E.push(oe), a && E.length > o)) {
573
- let e = E[E.length - 1];
574
- a({
575
- word: e,
576
- all: E
577
- });
578
- }
579
- await u();
580
- }
581
- if (!E.length) return [];
582
- Ge(E, p, m);
583
- let oe = s() - c;
584
- return o && typeof console < "u" && console.log && console.log("[vue-data-ui][word-cloud] positionWordsAsync:", `${oe.toFixed(2)} ms for ${e.length} words`), E.sort((e, t) => t.fontSize - e.fontSize);
585
- }
586
- //#endregion
587
- //#region src/components/vue-ui-word-cloud.vue
588
- var H = /* @__PURE__ */ e({ default: () => ft }), $e = [
589
- "id",
590
- "data-resizing",
591
- "data-relayout"
592
- ], et = ["id"], tt = { style: { position: "relative" } }, nt = [
593
- "aria-describedby",
594
- "xmlns",
595
- "viewBox"
596
- ], rt = ["width", "height"], it = ["transform"], at = ["transform"], ot = [
597
- "data-a11y-word-index",
598
- "x",
599
- "y",
600
- "width",
601
- "height",
602
- "aria-label",
603
- "onMouseover",
604
- "onMouseleave",
605
- "onClick"
606
- ], st = [
607
- "fill",
608
- "font-weight",
609
- "font-size",
610
- "transform",
611
- "stroke",
612
- "stroke-width"
613
- ], ct = {
614
- key: 0,
615
- style: {
616
- position: "absolute",
617
- top: "100%",
618
- left: "0",
619
- width: "100%"
620
- },
621
- "data-dom-to-png-ignore": "",
622
- "aria-hidden": "true"
623
- }, lt = {
624
- key: 5,
625
- class: "vue-data-ui-watermark"
626
- }, ut = {
627
- key: 6,
628
- "data-dom-to-png-ignore": "",
629
- class: "reset-wrapper"
630
- }, dt = { style: {
631
- display: "flex",
632
- "align-items": "center"
633
- } }, ft = /*#__PURE__*/ re({
634
- __name: "vue-ui-word-cloud",
635
- props: {
636
- config: {
637
- type: Object,
638
- default() {
639
- return {};
640
- }
641
- },
642
- dataset: {
643
- type: [Array, String],
644
- default() {
645
- return [];
646
- }
647
- }
648
- },
649
- emits: ["copyAlt"],
650
- setup(e, { expose: re, emit: De }) {
651
- let Oe = j(() => import("./Tooltip-C4ZTwkLF.js")), ke = j(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Ae = j(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), je = j(() => import("./DataTable-CjF_An2h.js")), Me = j(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ne = j(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Pe = j(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Fe = j(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_word_cloud: Ie } = ee(), { isThemeValid: Le, warnInvalidTheme: Re } = x(), z = e, ze = De, Be = D({
652
- get() {
653
- return !!z.dataset && z.dataset.length;
654
- },
655
- set(e) {
656
- return e;
657
- }
658
- }), B = F(o()), Ve = F(0), V = F(null), He = F(null), Ue = F(null), We = F(0), Ge = F(0), Ke = F(!1), qe = F(null), Je = F(null), Ye = F(!1), Xe = F(!1), Ze = F(null), H = F(null), ft = F({
659
- x: 0,
660
- y: 0
661
- }), pt = F("pointer"), mt = F(!1), U = F(Et()), W = D(() => U.value.userOptions), G = D(() => U.value.style.chart.tooltip), ht = D(() => U.value.style.chart.controls), K = D(() => U.value.style.chart.words), q = D(() => U.value.style.chart);
662
- _({
663
- config: () => U.value,
664
- dataset: () => z.dataset,
665
- component: "VueUiWordCloud",
666
- rules: [v.noHint]
667
- });
668
- let gt = D(() => U.value.userOptions.useCursorPointer), _t = D(() => f({
669
- defaultConfig: {
670
- userOptions: { show: !1 },
671
- table: { show: !1 },
672
- useCssAnimation: !1,
673
- animationDelayMs: 0,
674
- nodeCategories: {},
675
- nodeCategoryColors: {},
676
- style: { chart: {
677
- backgroundColor: "#99999930",
678
- words: {
679
- color: "#6A6A6A",
680
- usePalette: !1,
681
- selectedStroke: "#CCCCCC"
682
- }
683
- } }
684
- },
685
- userConfig: U.value.skeletonConfig ?? {}
686
- })), { loading: vt, FINAL_DATASET: yt, manualLoading: bt } = ne({
687
- ...Te(z),
688
- FINAL_CONFIG: U,
689
- prepareConfig: Et,
690
- callback: () => {
691
- Promise.resolve().then(() => {
692
- Z.value.showTable = U.value.table.show, Z.value.showTooltip = G.value.show, Z.value.showZoom = q.value.zoom.show;
693
- });
694
- },
695
- skeletonDataset: z.config?.skeletonDataset ?? [
696
- {
697
- name: "Lorem",
698
- value: 6
699
- },
700
- {
701
- name: "ipsum",
702
- value: 3
703
- },
704
- {
705
- name: "dolor",
706
- value: 1
707
- },
708
- {
709
- name: "sit",
710
- value: 3
711
- },
712
- {
713
- name: "amet",
714
- value: 3
715
- },
716
- {
717
- name: "consectetur",
718
- value: 2
719
- },
720
- {
721
- name: "adipiscing",
722
- value: 1
723
- },
724
- {
725
- name: "elit",
726
- value: 2
727
- },
728
- {
729
- name: "Vivamus",
730
- value: 2
731
- },
732
- {
733
- name: "pulvinar",
734
- value: 1
735
- },
736
- {
737
- name: "pretium",
738
- value: 1
739
- },
740
- {
741
- name: "venenatis",
742
- value: 2
743
- },
744
- {
745
- name: "Donec",
746
- value: 1
747
- },
748
- {
749
- name: "imperdiet",
750
- value: 3
751
- },
752
- {
753
- name: "id",
754
- value: 1
755
- },
756
- {
757
- name: "porttitor",
758
- value: 2
759
- },
760
- {
761
- name: "tristique",
762
- value: 1
763
- },
764
- {
765
- name: "Aenean",
766
- value: 2
767
- },
768
- {
769
- name: "ac",
770
- value: 5
771
- },
772
- {
773
- name: "commodo",
774
- value: 2
775
- },
776
- {
777
- name: "justo",
778
- value: 2
779
- },
780
- {
781
- name: "Vestibulum",
782
- value: 2
783
- },
784
- {
785
- name: "placerat",
786
- value: 1
787
- },
788
- {
789
- name: "molestie",
790
- value: 1
791
- },
792
- {
793
- name: "nisl",
794
- value: 1
795
- },
796
- {
797
- name: "lacinia",
798
- value: 2
799
- },
800
- {
801
- name: "nulla",
802
- value: 1
803
- },
804
- {
805
- name: "posuere",
806
- value: 2
807
- },
808
- {
809
- name: "quis",
810
- value: 3
811
- },
812
- {
813
- name: "ullamcorper",
814
- value: 1
815
- },
816
- {
817
- name: "eu",
818
- value: 1
819
- },
820
- {
821
- name: "ex",
822
- value: 1
823
- },
824
- {
825
- name: "vitae",
826
- value: 3
827
- },
828
- {
829
- name: "facilisis",
830
- value: 1
831
- },
832
- {
833
- name: "Aliquam",
834
- value: 1
835
- },
836
- {
837
- name: "erat",
838
- value: 1
839
- },
840
- {
841
- name: "volutpat",
842
- value: 1
843
- },
844
- {
845
- name: "Proin",
846
- value: 1
847
- },
848
- {
849
- name: "nunc",
850
- value: 1
851
- },
852
- {
853
- name: "felis",
854
- value: 1
855
- },
856
- {
857
- name: "gravida",
858
- value: 3
859
- },
860
- {
861
- name: "sed",
862
- value: 1
863
- },
864
- {
865
- name: "orci",
866
- value: 1
867
- },
868
- {
869
- name: "Interdum",
870
- value: 1
871
- },
872
- {
873
- name: "et",
874
- value: 1
875
- },
876
- {
877
- name: "malesuada",
878
- value: 1
879
- },
880
- {
881
- name: "fames",
882
- value: 1
883
- },
884
- {
885
- name: "ante",
886
- value: 1
887
- }
888
- ],
889
- skeletonConfig: f({
890
- defaultConfig: U.value,
891
- userConfig: _t.value
892
- })
893
- }), xt = F(St());
894
- function St() {
895
- return typeof yt.value == "string" ? s(yt.value) : yt.value.map((e, t) => ({
896
- ...e,
897
- value: l(e.value)
898
- }));
899
- }
900
- let { userOptionsVisible: Ct, setUserOptionsVisibility: wt, keepUserOptionState: Tt } = ae({ config: U.value }), { svgRef: J } = oe({ config: q.value.title });
901
- function Et() {
902
- let e = b({
903
- userConfig: z.config,
904
- defaultConfig: Ie
905
- }), t = e.theme;
906
- if (!t) return e;
907
- if (!Le.value(e)) return Re(e), e;
908
- let n = b({
909
- userConfig: ce[t] || z.config,
910
- defaultConfig: e
911
- }), r = b({
912
- userConfig: z.config,
913
- defaultConfig: n
914
- });
915
- return {
916
- ...r,
917
- customPalette: r.customPalette.length ? r.customPalette : u[t] || i
918
- };
919
- }
920
- let Dt = F({
921
- x: 0,
922
- y: 0
923
- });
924
- function Ot() {
925
- let e = {
926
- x: 0,
927
- y: 0,
928
- width: Math.max(10, Y.value.width),
929
- height: Math.max(10, Y.value.height)
930
- };
931
- on(e), Dt.value = {
932
- x: e.x + e.width / 2,
933
- y: e.y + e.height / 2
934
- }, rn();
935
- }
936
- let kt = T(() => {
937
- Wt();
938
- }, 100), At = F(!1);
939
- Ee(() => At.value, (e) => {
940
- e === !1 && (Xe.value = !0, kt(), Ot());
941
- });
942
- function jt(e) {
943
- let t = d(e);
944
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
945
- }
946
- let Mt = jt(z.config);
947
- Ee(() => z.config, (e, t) => {
948
- let n = jt(e), r = n !== Mt;
949
- Mt = n;
950
- let i = Et();
951
- if (!r) {
952
- U.value.style.chart.tooltip = i.style.chart.tooltip, Z.value.showTooltip = U.value.style.chart.tooltip.show;
953
- return;
954
- }
955
- U.value = i, Ct.value = !U.value.userOptions.showOnChartHover, Lt(), We.value += 1, Ge.value += 1, Z.value.showTable = U.value.table.show, Z.value.showTooltip = G.value.show, Z.value.showZoom = q.value.zoom.show;
956
- }, { deep: !0 });
957
- let Y = F({
958
- width: q.value.width,
959
- height: q.value.height,
960
- maxFontSize: K.value.maxFontSize,
961
- minFontSize: K.value.minFontSize,
962
- bold: K.value.bold
963
- }), Nt = T(() => {
964
- let { width: e, height: t } = ie({
965
- chart: V.value,
966
- title: q.value.title.text ? He.value : null,
967
- legend: ht.value.show ? Ze.value?.$el : null,
968
- source: Ue.value
969
- });
970
- requestAnimationFrame(async () => {
971
- Y.value.width = Math.max(10, e), Y.value.height = Math.max(10, t - 12), await ge(), At.value = !1;
972
- });
973
- }, 100), Pt = () => {
974
- At.value = !0, Nt();
975
- }, X = Ce(null), Ft = Ce(null);
976
- be(Lt);
977
- let It = D(() => U.value.debug);
978
- function Lt() {
979
- g(z.dataset) ? c({
980
- componentName: "VueUiWordCloud",
981
- type: "dataset",
982
- debug: It.value
983
- }) : xt.value.forEach((e, t) => {
984
- h({
985
- datasetObject: e,
986
- requiredAttributes: ["name", "value"]
987
- }).forEach((e) => {
988
- Be.value = !1, c({
989
- componentName: "VueUiWordCloud",
990
- type: "datasetSerieAttribute",
991
- property: e,
992
- index: t,
993
- debug: It.value
994
- });
995
- });
996
- }), g(z.dataset) || (bt.value = U.value.loading), U.value.responsive && (X.value && (Ft.value && X.value.unobserve(Ft.value), X.value.disconnect()), X.value = new ResizeObserver(Pt), Ft.value = V.value.parentNode, X.value.observe(Ft.value)), Ot();
997
- }
998
- ye(() => {
999
- X.value && (Ft.value && X.value.unobserve(Ft.value), X.value.disconnect());
1000
- });
1001
- let { isPrinting: Rt, isImaging: zt, generatePdf: Bt, generateImage: Vt } = te({
1002
- elementId: `wordCloud_${B.value}`,
1003
- fileName: q.value.title.text || "vue-ui-word-cloud",
1004
- options: U.value.userOptions.print
1005
- }), Z = F({
1006
- showTable: U.value.table.show,
1007
- showTooltip: G.value.show,
1008
- showZoom: q.value.zoom.show
1009
- });
1010
- Ee(U, () => {
1011
- Z.value.showTable = U.value.table.show, Z.value.showTooltip = G.value.show, Z.value.showZoom = q.value.zoom.show;
1012
- }, { immediate: !0 });
1013
- function Ht(e, t, n = "Arial") {
1014
- let r = document.createElement("canvas").getContext("2d");
1015
- return r.font = `${t}px ${K.value.bold ? "bold" : "normal"} ${n}`, {
1016
- width: r.measureText(e).width + K.value.proximity,
1017
- height: t
1018
- };
1019
- }
1020
- let Q = F([]), Ut = /* @__PURE__ */ new Map();
1021
- function Wt() {
1022
- let e = [...xt.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [...xt.value].map((e, r) => {
1023
- let o = (e.value - n) / (t - n) * (Y.value.maxFontSize - Y.value.minFontSize) + Y.value.minFontSize;
1024
- o = isNaN(o) ? Y.value.minFontSize : o;
1025
- let s = Ht(e.name, o);
1026
- return {
1027
- ...e,
1028
- id: e.id ?? `${e.name}__${r}`,
1029
- fontSize: o,
1030
- width: s.width,
1031
- height: s.height,
1032
- color: e.color ? a(e.color) : K.value.usePalette ? U.value.customPalette[r] || U.value.customPalette[r % U.value.customPalette.length] || i[r] || i[r % i.length] : K.value.color
1033
- };
1034
- });
1035
- Q.value.length = 0, Ut.clear(), Qe({
1036
- debugTiming: It.value,
1037
- words: r,
1038
- svg: Y.value,
1039
- proximity: K.value.proximity,
1040
- strictPixelPadding: U.value.strictPixelPadding,
1041
- quality: U.value.quality,
1042
- onProgress: ({ all: e }) => {
1043
- for (let t of e) {
1044
- let e = t.id, n = Ut.get(e);
1045
- if (n === void 0) n = Q.value.length, Ut.set(e, n), Q.value.push({ ...t });
1046
- else {
1047
- let e = Q.value[n];
1048
- e.x = t.x, e.y = t.y, e.width = t.width, e.height = t.height, e.fontSize = t.fontSize, e.minX = t.minX, e.minY = t.minY, e.maxX = t.maxX, e.maxY = t.maxY;
1049
- }
1050
- }
1051
- }
1052
- }), Q.value.sort((e, t) => t.fontSize - e.fontSize), Ut.clear(), Q.value.forEach((e, t) => {
1053
- Ut.set(e.id, t);
1054
- }), Ye.value = !0, Xe.value = !1;
1055
- }
1056
- let Gt = D(() => ({
1057
- head: Q.value.map((e) => ({
1058
- name: e.name,
1059
- color: e.color
1060
- })),
1061
- body: Q.value.map((e) => e.value)
1062
- }));
1063
- function Kt(e = null) {
1064
- ge(() => {
1065
- let t = Gt.value.head.map((e, t) => [[e.name], [Gt.value.body[t]]]), r = [
1066
- [q.value.title.text],
1067
- [q.value.title.subtitle.text],
1068
- [[""], [U.value.table.columnNames.value]]
1069
- ].concat(t), i = n(r);
1070
- e ? e(i) : p({
1071
- csvContent: i,
1072
- title: q.value.title.text || "vue-ui-word-cloud"
1073
- });
1074
- });
1075
- }
1076
- let qt = D(() => {
1077
- let e = [U.value.table.columnNames.series, U.value.table.columnNames.value], n = Gt.value.head.map((e, n) => {
1078
- let r = t({
1079
- p: U.value.table.td.prefix,
1080
- v: Gt.value.body[n],
1081
- s: U.value.table.td.suffix,
1082
- r: U.value.table.td.roundingValue
1083
- });
1084
- return [{
1085
- color: e.color,
1086
- name: e.name
1087
- }, r];
1088
- }), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
1089
- th: {
1090
- backgroundColor: U.value.table.th.backgroundColor,
1091
- color: U.value.table.th.color,
1092
- outline: U.value.table.th.outline
1093
- },
1094
- td: {
1095
- backgroundColor: U.value.table.td.backgroundColor,
1096
- color: U.value.table.td.color,
1097
- outline: U.value.table.td.outline
1098
- },
1099
- breakpoint: U.value.table.responsiveBreakpoint
1100
- };
1101
- return {
1102
- colNames: [U.value.table.columnNames.series, U.value.table.columnNames.value],
1103
- head: e,
1104
- body: n,
1105
- a11yBody: r,
1106
- config: i
1107
- };
1108
- }), $ = F(!1);
1109
- function Jt(e) {
1110
- $.value = e, Ve.value += 1;
1111
- }
1112
- function Yt() {
1113
- return Q.value;
1114
- }
1115
- function Xt() {
1116
- Z.value.showTable = !Z.value.showTable;
1117
- }
1118
- function Zt() {
1119
- Z.value.showTooltip = !Z.value.showTooltip;
1120
- }
1121
- let Qt = F(!1);
1122
- function $t() {
1123
- Qt.value = !Qt.value;
1124
- }
1125
- function en() {
1126
- Z.value.showZoom = !Z.value.showZoom;
1127
- }
1128
- let tn = D(() => !Qt.value && Z.value.showZoom), { viewBox: nn, resetZoom: rn, isZoom: an, setInitialViewBox: on, zoomByFactor: sn, scale: cn } = se(J, {
1129
- x: 0,
1130
- y: 0,
1131
- width: Y.value.width <= 0 ? 10 : Y.value.width,
1132
- height: Y.value.height <= 0 ? 10 : Y.value.height
1133
- }, 1, tn);
1134
- Ee(() => z.dataset, () => {
1135
- xt.value = St(), U.value.responsive || (Wt(), Ot());
1136
- }, { immediate: !0 });
1137
- async function ln({ scale: e = 2 } = {}) {
1138
- if (!V.value) return;
1139
- let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await C({
1140
- domElement: V.value,
1141
- base64: !0,
1142
- img: !0,
1143
- scale: e
1144
- });
1145
- return {
1146
- imageUri: i,
1147
- base64: a,
1148
- title: q.value.title.text,
1149
- width: t,
1150
- height: n,
1151
- aspectRatio: r
1152
- };
1153
- }
1154
- let un = D(() => {
1155
- let e = U.value.table.useDialog && !U.value.table.show, t = Z.value.showTable;
1156
- return {
1157
- component: e ? Fe : Ae,
1158
- title: `${q.value.title.text}${q.value.title.subtitle.text ? `: ${q.value.title.subtitle.text}` : ""}`,
1159
- props: e ? {
1160
- backgroundColor: U.value.table.th.backgroundColor,
1161
- color: U.value.table.th.color,
1162
- headerColor: U.value.table.th.color,
1163
- headerBg: U.value.table.th.backgroundColor,
1164
- isFullscreen: $.value,
1165
- fullscreenParent: V.value,
1166
- forcedWidth: Math.min(500, window.innerWidth * .8),
1167
- isCursorPointer: gt.value
1168
- } : {
1169
- hideDetails: !0,
1170
- config: {
1171
- open: t,
1172
- maxHeight: 1e4,
1173
- body: {
1174
- backgroundColor: q.value.backgroundColor,
1175
- color: q.value.color
1176
- },
1177
- head: {
1178
- backgroundColor: q.value.backgroundColor,
1179
- color: q.value.color
1180
- }
1181
- }
1182
- }
1183
- };
1184
- });
1185
- Ee(() => Z.value.showTable, (e) => {
1186
- U.value.table.show || (e && U.value.table.useDialog && qe.value ? qe.value.open() : "close" in qe.value && qe.value.close());
1187
- });
1188
- function dn() {
1189
- Z.value.showTable = !1, Je.value && Je.value.setTableIconState(!1);
1190
- }
1191
- let fn = D(() => q.value.backgroundColor), pn = D(() => q.value.title), { isCallbackImaging: mn, isCallbackSvg: hn, generateSvg: gn, onGenerateImage: _n } = S({
1192
- svg: J,
1193
- title: pn,
1194
- legend: null,
1195
- legendItems: null,
1196
- backgroundColor: fn,
1197
- getSvgCallback: () => U.value.userOptions.callbacks.svg,
1198
- generateImage: Vt
1199
- });
1200
- function vn() {
1201
- sn(1.5, !0);
1202
- }
1203
- function yn() {
1204
- sn(1 / 1.5, !0);
1205
- }
1206
- let bn = F(null), xn = F(!1), Sn = F(""), Cn = F(null);
1207
- function wn() {
1208
- bn.value = null, H.value = null, Ke.value = !1;
1209
- }
1210
- function Tn(e, t) {
1211
- U.value.events.datapointLeave && U.value.events.datapointLeave({
1212
- datapoint: e,
1213
- seriesIndex: t
1214
- }), (H.value !== t || pt.value !== "keyboard") && (bn.value = null, Ke.value = !1);
1215
- }
1216
- function En(e, t) {
1217
- U.value.events.datapointClick && U.value.events.datapointClick({
1218
- datapoint: e,
1219
- seriesIndex: t
1220
- });
1221
- }
1222
- function Dn(e) {
1223
- if (!J.value || e == null) return;
1224
- let t = J.value.querySelector(`[data-a11y-word-index="${e}-${B.value}"]`);
1225
- if (!t) return;
1226
- let n = t.getBoundingClientRect();
1227
- ft.value = {
1228
- x: n.left + n.width / 2,
1229
- y: n.top + n.height / 2
1230
- };
1231
- }
1232
- function On(e, t, n = "pointer") {
1233
- if (U.value.events.datapointEnter && U.value.events.datapointEnter({
1234
- datapoint: e,
1235
- seriesIndex: t
1236
- }), !Z.value.showTooltip) return;
1237
- pt.value = n, H.value = t, bn.value = e.id, Cn.value = {
1238
- datapoint: e,
1239
- config: U.value,
1240
- seriesIndex: t
1241
- };
1242
- let i = G.value.customFormat;
1243
- if (xn.value = !1, r(i)) try {
1244
- let t = i({
1245
- datapoint: e,
1246
- config: U.value
1247
- });
1248
- typeof t == "string" && (Sn.value = t, xn.value = !0);
1249
- } catch {
1250
- console.warn("Custom format cannot be applied."), xn.value = !1;
1251
- }
1252
- if (!xn.value) {
1253
- let t = `<svg viewBox="0 0 10 10" height="${G.value.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value || 0).toFixed(G.value.roundingValue)}</b>`;
1254
- Sn.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${t}</div>`;
1255
- }
1256
- n === "keyboard" && ge(() => {
1257
- Dn(t);
1258
- }), Ke.value = !0;
1259
- }
1260
- async function kn() {
1261
- if (ze("copyAlt", {
1262
- config: U.value,
1263
- dataset: Q.value
1264
- }), !U.value.userOptions.callbacks.altCopy) {
1265
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1266
- return;
1267
- }
1268
- await Promise.resolve(U.value.userOptions.callbacks.altCopy({
1269
- config: U.value,
1270
- dataset: Q.value
1271
- }));
1272
- }
1273
- function An() {
1274
- H.value = null, mt.value = !0;
1275
- }
1276
- function jn() {
1277
- wn(), mt.value = !1;
1278
- }
1279
- function Mn(e) {
1280
- if (!J.value || Qt.value || document.activeElement !== J.value || !Q.value.length) return;
1281
- let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1282
- if (!t && !n && !r && !i) return;
1283
- if (e.preventDefault(), e.stopPropagation(), i) {
1284
- wn();
1285
- return;
1286
- }
1287
- if (r) {
1288
- if (H.value === null) return;
1289
- let e = Q.value[H.value];
1290
- if (!e) return;
1291
- En(e, H.value);
1292
- return;
1293
- }
1294
- let a = H.value;
1295
- a === null || a < 0 || a >= Q.value.length ? a = n ? 0 : Q.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = Q.value.length - 1), a >= Q.value.length && (a = 0));
1296
- let o = Q.value[a];
1297
- o && On(o, a, "keyboard");
1298
- }
1299
- let Nn = D(() => ({
1300
- headers: qt.value?.colNames ?? [],
1301
- rows: qt.value?.a11yBody ?? []
1302
- }));
1303
- return re({
1304
- getData: Yt,
1305
- getImage: ln,
1306
- generateCsv: Kt,
1307
- generatePdf: Bt,
1308
- generateImage: Vt,
1309
- generateSvg: gn,
1310
- resetZoom: rn,
1311
- toggleTable: Xt,
1312
- toggleTooltip: Zt,
1313
- toggleAnnotator: $t,
1314
- toggleFullscreen: Jt,
1315
- toggleZoom: en,
1316
- copyAlt: kn
1317
- }), (e, t) => (P(), A("div", {
1318
- class: "vue-data-ui-component vue-ui-word-cloud",
1319
- ref_key: "wordCloudChart",
1320
- ref: V,
1321
- id: `wordCloud_${B.value}`,
1322
- "data-resizing": At.value,
1323
- "data-relayout": Xe.value,
1324
- style: ve(`width: 100%; font-family:${U.value.style.fontFamily};background:${q.value.backgroundColor};${U.value.responsive ? "height:100%" : ""}`),
1325
- onMouseenter: t[3] ||= () => L(wt)(!0),
1326
- onMouseleave: t[4] ||= () => {
1327
- L(wt)(!1), mt.value || wn();
1328
- }
1329
- }, [
1330
- de("div", {
1331
- id: `chart-instructions-${B.value}`,
1332
- class: "sr-only"
1333
- }, [de("p", null, we(U.value.a11y.translations.keyboardNavigation), 1)], 8, et),
1334
- Nn.value?.rows?.length ? (P(), O(E, {
1335
- key: 0,
1336
- uid: B.value,
1337
- head: Nn.value.headers,
1338
- body: Nn.value.rows,
1339
- notice: U.value.a11y.translations.tableAvailable,
1340
- caption: U.value.a11y.translations.tableCaption
1341
- }, null, 8, [
1342
- "uid",
1343
- "head",
1344
- "body",
1345
- "notice",
1346
- "caption"
1347
- ])) : k("", !0),
1348
- W.value.buttons.annotator ? (P(), O(L(Me), {
1349
- key: 1,
1350
- svgRef: L(J),
1351
- backgroundColor: q.value.backgroundColor,
1352
- color: q.value.color,
1353
- active: Qt.value,
1354
- isCursorPointer: gt.value,
1355
- palette: W.value.annotatorPalette,
1356
- onClose: $t
1357
- }, {
1358
- "annotator-action-close": R(() => [I(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1359
- "annotator-action-color": R(({ color: t }) => [I(e.$slots, "annotator-action-color", N(M({ color: t })), void 0, !0)]),
1360
- "annotator-action-draw": R(({ mode: t }) => [I(e.$slots, "annotator-action-draw", N(M({ mode: t })), void 0, !0)]),
1361
- "annotator-action-undo": R(({ disabled: t }) => [I(e.$slots, "annotator-action-undo", N(M({ disabled: t })), void 0, !0)]),
1362
- "annotator-action-redo": R(({ disabled: t }) => [I(e.$slots, "annotator-action-redo", N(M({ disabled: t })), void 0, !0)]),
1363
- "annotator-action-delete": R(({ disabled: t }) => [I(e.$slots, "annotator-action-delete", N(M({ disabled: t })), void 0, !0)]),
1364
- _: 3
1365
- }, 8, [
1366
- "svgRef",
1367
- "backgroundColor",
1368
- "color",
1369
- "active",
1370
- "isCursorPointer",
1371
- "palette"
1372
- ])) : k("", !0),
1373
- q.value.title.text ? (P(), A("div", {
1374
- key: 2,
1375
- ref_key: "chartTitle",
1376
- ref: He,
1377
- style: "width:100%;background:transparent;padding-bottom:24px"
1378
- }, [(P(), O(w, {
1379
- key: `title_${We.value}`,
1380
- config: {
1381
- title: { ...q.value.title },
1382
- subtitle: { ...q.value.title.subtitle }
1383
- }
1384
- }, null, 8, ["config"]))], 512)) : k("", !0),
1385
- W.value.show && Be.value && (L(Tt) || L(Ct)) ? (P(), O(L(Ne), {
1386
- ref_key: "userOptionsRef",
1387
- ref: Je,
1388
- key: `user_option_${Ve.value}`,
1389
- backgroundColor: q.value.backgroundColor,
1390
- color: q.value.color,
1391
- isPrinting: L(Rt),
1392
- isImaging: L(zt),
1393
- uid: B.value,
1394
- hasPdf: W.value.buttons.pdf,
1395
- hasXls: W.value.buttons.csv,
1396
- hasImg: W.value.buttons.img,
1397
- hasSvg: W.value.buttons.svg,
1398
- hasTable: W.value.buttons.table,
1399
- hasFullscreen: W.value.buttons.fullscreen,
1400
- hasAltCopy: W.value.buttons.altCopy,
1401
- isFullscreen: $.value,
1402
- titles: { ...W.value.buttonTitles },
1403
- chartElement: V.value,
1404
- position: W.value.position,
1405
- hasTooltip: G.value.show && W.value.buttons.tooltip,
1406
- isTooltip: Z.value.showTooltip,
1407
- hasAnnotator: W.value.buttons.annotator,
1408
- isAnnotation: Qt.value,
1409
- callbacks: W.value.callbacks,
1410
- printScale: W.value.print.scale,
1411
- tableDialog: U.value.table.useDialog,
1412
- hasZoom: W.value.buttons.zoom,
1413
- isZoom: Z.value.showZoom,
1414
- isCursorPointer: gt.value,
1415
- onToggleFullscreen: Jt,
1416
- onGeneratePdf: L(Bt),
1417
- onGenerateCsv: Kt,
1418
- onGenerateImage: L(_n),
1419
- onGenerateSvg: L(gn),
1420
- onToggleTable: Xt,
1421
- onToggleTooltip: Zt,
1422
- onToggleAnnotator: $t,
1423
- onToggleZoom: en,
1424
- onCopyAlt: kn,
1425
- style: ve({ visibility: L(Tt) ? L(Ct) ? "visible" : "hidden" : "visible" })
1426
- }, fe({ _: 2 }, [
1427
- e.$slots.menuIcon ? {
1428
- name: "menuIcon",
1429
- fn: R(({ isOpen: t, color: n }) => [I(e.$slots, "menuIcon", N(M({
1430
- isOpen: t,
1431
- color: n
1432
- })), void 0, !0)]),
1433
- key: "0"
1434
- } : void 0,
1435
- e.$slots.optionTooltip ? {
1436
- name: "optionTooltip",
1437
- fn: R(() => [I(e.$slots, "optionTooltip", {}, void 0, !0)]),
1438
- key: "1"
1439
- } : void 0,
1440
- e.$slots.optionPdf ? {
1441
- name: "optionPdf",
1442
- fn: R(() => [I(e.$slots, "optionPdf", {}, void 0, !0)]),
1443
- key: "2"
1444
- } : void 0,
1445
- e.$slots.optionCsv ? {
1446
- name: "optionCsv",
1447
- fn: R(() => [I(e.$slots, "optionCsv", {}, void 0, !0)]),
1448
- key: "3"
1449
- } : void 0,
1450
- e.$slots.optionImg ? {
1451
- name: "optionImg",
1452
- fn: R(() => [I(e.$slots, "optionImg", {}, void 0, !0)]),
1453
- key: "4"
1454
- } : void 0,
1455
- e.$slots.optionSvg ? {
1456
- name: "optionSvg",
1457
- fn: R(() => [I(e.$slots, "optionSvg", {}, void 0, !0)]),
1458
- key: "5"
1459
- } : void 0,
1460
- e.$slots.optionTable ? {
1461
- name: "optionTable",
1462
- fn: R(() => [I(e.$slots, "optionTable", {}, void 0, !0)]),
1463
- key: "6"
1464
- } : void 0,
1465
- e.$slots.optionFullscreen ? {
1466
- name: "optionFullscreen",
1467
- fn: R(({ toggleFullscreen: t, isFullscreen: n }) => [I(e.$slots, "optionFullscreen", N(M({
1468
- toggleFullscreen: t,
1469
- isFullscreen: n
1470
- })), void 0, !0)]),
1471
- key: "7"
1472
- } : void 0,
1473
- e.$slots.optionAnnotator ? {
1474
- name: "optionAnnotator",
1475
- fn: R(({ toggleAnnotator: t, isAnnotator: n }) => [I(e.$slots, "optionAnnotator", N(M({
1476
- toggleAnnotator: t,
1477
- isAnnotator: n
1478
- })), void 0, !0)]),
1479
- key: "8"
1480
- } : void 0,
1481
- e.$slots.optionZoom ? {
1482
- name: "optionZoom",
1483
- fn: R(({ toggleZoom: t, isZoomLocked: n }) => [I(e.$slots, "optionZoom", N(M({
1484
- toggleZoom: t,
1485
- isZoomLocked: n
1486
- })), void 0, !0)]),
1487
- key: "9"
1488
- } : void 0,
1489
- e.$slots.optionAltCopy ? {
1490
- name: "optionAltCopy",
1491
- fn: R(({ altCopy: t }) => [I(e.$slots, "optionAltCopy", N(M({ altCopy: t })), void 0, !0)]),
1492
- key: "10"
1493
- } : void 0,
1494
- e.$slots["custom-menu-before"] ? {
1495
- name: "custom-menu-before",
1496
- fn: R(() => [I(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1497
- key: "11"
1498
- } : void 0,
1499
- e.$slots["custom-menu-after"] ? {
1500
- name: "custom-menu-after",
1501
- fn: R(() => [I(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1502
- key: "12"
1503
- } : void 0
1504
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasTooltip.isTooltip.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : k("", !0),
1505
- ht.value.position === "top" && ht.value.show && !L(vt) ? (P(), O(le, {
1506
- key: 4,
1507
- ref_key: "zoomControls",
1508
- ref: Ze,
1509
- config: U.value,
1510
- scale: L(cn),
1511
- isFullscreen: $.value,
1512
- isCursorPointer: gt.value,
1513
- onZoomIn: vn,
1514
- onZoomOut: yn,
1515
- onResetZoom: t[0] ||= (e) => L(rn)(!0)
1516
- }, null, 8, [
1517
- "config",
1518
- "scale",
1519
- "isFullscreen",
1520
- "isCursorPointer"
1521
- ])) : k("", !0),
1522
- de("div", tt, [(P(), A("svg", {
1523
- ref_key: "svgRef",
1524
- ref: J,
1525
- class: _e({
1526
- "vue-data-ui-fullscreen--on": $.value,
1527
- "vue-data-ui-fulscreen--off": !$.value
1528
- }),
1529
- "aria-describedby": `chart-instructions-${B.value}`,
1530
- xmlns: L(m),
1531
- viewBox: `${L(nn).x} ${L(nn).y} ${L(nn).width} ${L(nn).height}`,
1532
- style: "overflow:hidden;background:transparent;display:block",
1533
- tabindex: "0",
1534
- onFocus: An,
1535
- onBlur: jn,
1536
- onKeydown: Mn
1537
- }, [
1538
- me(L(Pe)),
1539
- e.$slots["chart-background"] ? (P(), A("foreignObject", {
1540
- key: 0,
1541
- x: 0,
1542
- y: 0,
1543
- width: Y.value.width <= 0 ? 10 : Y.value.width,
1544
- height: Y.value.height <= 0 ? 10 : Y.value.height,
1545
- style: { pointerEvents: "none" }
1546
- }, [I(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : k("", !0),
1547
- de("g", {
1548
- transform: `translate(${Dt.value.x}, ${Dt.value.y})`,
1549
- class: _e({ "wc-finalized": Ye.value })
1550
- }, [(P(!0), A(ue, null, xe(Q.value, (e, t) => (P(), A("g", {
1551
- key: e.id,
1552
- class: "vue-ui-word-cloud-word",
1553
- transform: `translate(${e.x}, ${e.y})`
1554
- }, [e.minX === void 0 ? k("", !0) : (P(), A("rect", {
1555
- key: 0,
1556
- "data-a11y-word-index": `${t}-${B.value}`,
1557
- x: e.minX,
1558
- y: e.minY * 1.25,
1559
- width: e.maxX - e.minX,
1560
- height: e.maxY - e.minY,
1561
- fill: "transparent",
1562
- "pointer-events": "visiblePainted",
1563
- "aria-label": `${e.name}: ${(e.value || 0).toFixed(G.value.roundingValue)}`,
1564
- onMouseover: (n) => On(e, t),
1565
- onMouseleave: (n) => Tn(e, t),
1566
- onClick: (n) => En(e, t)
1567
- }, null, 40, ot)), de("text", {
1568
- fill: e.color,
1569
- "font-weight": K.value.bold ? "bold" : "normal",
1570
- x: 0,
1571
- y: 0,
1572
- "font-size": e.fontSize,
1573
- transform: `translate(${e.width / 2}, ${e.height / 2})`,
1574
- "text-anchor": "middle",
1575
- "dominant-baseline": "central",
1576
- "paint-order": "stroke fill",
1577
- stroke: !bn.value || bn.value === e.id ? K.value.selectedStroke : void 0,
1578
- "stroke-width": e.height * .05,
1579
- "stroke-linecap": "round",
1580
- "stroke-linejoin": "round",
1581
- style: ve(`
1582
- pointer-events:none;
1583
- fill-opacity:${!bn.value || bn.value === e.id || !Ye.value ? 1 : K.value.hoverOpacity} !important;
1584
- `)
1585
- }, we(e.name), 13, st)], 8, at))), 128))], 10, it),
1586
- I(e.$slots, "svg", { svg: {
1587
- ...Y.value,
1588
- isPrintingImg: L(Rt) || L(zt) || L(mn),
1589
- isPrintingSvg: L(hn)
1590
- } }, void 0, !0)
1591
- ], 42, nt)), e.$slots.hint ? (P(), A("div", ct, [I(e.$slots, "hint", N(M({
1592
- hint: U.value.a11y.translations.keyboardNavigation,
1593
- isVisible: mt.value
1594
- })), void 0, !0)])) : k("", !0)]),
1595
- e.$slots.watermark ? (P(), A("div", lt, [I(e.$slots, "watermark", N(M({ isPrinting: L(Rt) || L(zt) || L(mn) || L(hn) })), void 0, !0)])) : k("", !0),
1596
- L(an) ? (P(), A("div", ut, [I(e.$slots, "reset-action", { reset: L(rn) }, void 0, !0)])) : k("", !0),
1597
- ht.value.position === "bottom" && ht.value.show && !L(vt) ? (P(), O(le, {
1598
- key: 7,
1599
- ref_key: "zoomControls",
1600
- ref: Ze,
1601
- config: U.value,
1602
- scale: L(cn),
1603
- isFullscreen: $.value,
1604
- isCursorPointer: gt.value,
1605
- onZoomIn: vn,
1606
- onZoomOut: yn,
1607
- onResetZoom: t[1] ||= (e) => L(rn)(!0)
1608
- }, null, 8, [
1609
- "config",
1610
- "scale",
1611
- "isFullscreen",
1612
- "isCursorPointer"
1613
- ])) : k("", !0),
1614
- me(L(Oe), {
1615
- teleportTo: G.value.teleportTo,
1616
- show: Z.value.showTooltip && Ke.value,
1617
- backgroundColor: G.value.backgroundColor,
1618
- color: G.value.color,
1619
- fontSize: G.value.fontSize,
1620
- borderRadius: G.value.borderRadius,
1621
- borderColor: G.value.borderColor,
1622
- borderWidth: G.value.borderWidth,
1623
- backgroundOpacity: G.value.backgroundOpacity,
1624
- position: G.value.position,
1625
- offsetX: G.value.offsetX,
1626
- offsetY: G.value.offsetY,
1627
- parent: V.value,
1628
- content: Sn.value,
1629
- isCustom: xn.value,
1630
- isFullscreen: $.value,
1631
- smooth: G.value.smooth,
1632
- backdropFilter: G.value.backdropFilter,
1633
- smoothForce: G.value.smoothForce,
1634
- smoothSnapThreshold: G.value.smoothSnapThreshold,
1635
- isA11yMode: pt.value === "keyboard",
1636
- a11yPosition: ft.value
1637
- }, {
1638
- "tooltip-before": R(() => [I(e.$slots, "tooltip-before", N(M({ ...Cn.value })), void 0, !0)]),
1639
- tooltip: R(() => [I(e.$slots, "tooltip", N(M({ ...Cn.value })), void 0, !0)]),
1640
- "tooltip-after": R(() => [I(e.$slots, "tooltip-after", N(M({ ...Cn.value })), void 0, !0)]),
1641
- _: 3
1642
- }, 8, [
1643
- "teleportTo",
1644
- "show",
1645
- "backgroundColor",
1646
- "color",
1647
- "fontSize",
1648
- "borderRadius",
1649
- "borderColor",
1650
- "borderWidth",
1651
- "backgroundOpacity",
1652
- "position",
1653
- "offsetX",
1654
- "offsetY",
1655
- "parent",
1656
- "content",
1657
- "isCustom",
1658
- "isFullscreen",
1659
- "smooth",
1660
- "backdropFilter",
1661
- "smoothForce",
1662
- "smoothSnapThreshold",
1663
- "isA11yMode",
1664
- "a11yPosition"
1665
- ]),
1666
- e.$slots.source ? (P(), A("div", {
1667
- key: 8,
1668
- ref_key: "source",
1669
- ref: Ue,
1670
- dir: "auto"
1671
- }, [I(e.$slots, "source", {}, void 0, !0)], 512)) : k("", !0),
1672
- Be.value && W.value.buttons.table ? (P(), O(Se(un.value.component), he({ key: 9 }, un.value.props, {
1673
- ref_key: "tableUnit",
1674
- ref: qe,
1675
- onClose: dn
1676
- }), fe({
1677
- content: R(() => [(P(), O(L(je), {
1678
- key: `table_${Ge.value}`,
1679
- colNames: qt.value.colNames,
1680
- head: qt.value.head,
1681
- body: qt.value.body,
1682
- config: qt.value.config,
1683
- title: U.value.table.useDialog ? "" : un.value.title,
1684
- withCloseButton: !U.value.table.useDialog,
1685
- isCursorPointer: gt.value,
1686
- onClose: dn
1687
- }, {
1688
- th: R(({ th: e }) => [de("div", dt, we(e), 1)]),
1689
- td: R(({ td: e }) => [pe(we(e.name || e), 1)]),
1690
- _: 1
1691
- }, 8, [
1692
- "colNames",
1693
- "head",
1694
- "body",
1695
- "config",
1696
- "title",
1697
- "withCloseButton",
1698
- "isCursorPointer"
1699
- ]))]),
1700
- _: 2
1701
- }, [U.value.table.useDialog ? {
1702
- name: "title",
1703
- fn: R(() => [pe(we(un.value.title), 1)]),
1704
- key: "0"
1705
- } : void 0, U.value.table.useDialog ? {
1706
- name: "actions",
1707
- fn: R(() => [de("button", {
1708
- tabindex: "0",
1709
- class: "vue-ui-user-options-button",
1710
- onClick: t[2] ||= (e) => Kt(W.value.callbacks.csv),
1711
- style: ve({ cursor: gt.value ? "pointer" : "default" })
1712
- }, [me(L(ke), {
1713
- name: "fileCsv",
1714
- stroke: un.value.props.color
1715
- }, null, 8, ["stroke"])], 4)]),
1716
- key: "1"
1717
- } : void 0]), 1040)) : k("", !0),
1718
- I(e.$slots, "skeleton", {}, () => [L(vt) ? (P(), O(y, { key: 0 })) : k("", !0)], !0)
1719
- ], 44, $e));
1720
- }
1721
- }, [["__scopeId", "data-v-aa6e09c8"]]);
1722
- //#endregion
1723
- export { H as n, ft as t };