vue-data-ui 3.20.1 → 3.20.2

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/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-f0MuYk3R.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-C3m9eNp0.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
  207. package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
  208. package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
  209. package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
  210. package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
  211. package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
  213. package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
  214. package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
  215. package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
  216. package/dist/vue-ui-digits-BlHqILF0.js +209 -0
  217. package/dist/vue-ui-donut-CclzduCs.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
  219. package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
  220. package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
  221. package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
  222. package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
  223. package/dist/vue-ui-gauge-s8pl305B.js +920 -0
  224. package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
  225. package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
  226. package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
  227. package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
  229. package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
  232. package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
  234. package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
  239. package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
  240. package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
  243. package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
  244. package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
  245. package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
  246. package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
  249. package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
  250. package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
  252. package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
  254. package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
  255. package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
  256. package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
  257. package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
  260. package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
  261. package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
  262. package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
  263. package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
  264. package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
  265. package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
  266. package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
  267. package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
  268. package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,885 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Ct as n, G as r, H as i, Nt as a, X as o, bt as s, i as c, t as l, v as u, xt as d } from "./lib-DUeYQsS0.js";
3
+ import { t as f } from "./useConfig-DAyQk86L.js";
4
+ import { t as p } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as m, t as h } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as g } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as _ } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as v } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as y } from "./img-1cKsci8e.js";
10
+ import { n as b } from "./Title-NWp4qB4K.js";
11
+ import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as ee } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as te } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as S } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as ne } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as re } from "./usePrefersMotion-BC-CsqR1.js";
17
+ import { t as ie } from "./vue_ui_wheel-DZ_nR--t.js";
18
+ import { Fragment as C, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as ae, createSlots as oe, createVNode as se, defineAsyncComponent as ce, guardReactiveProps as O, nextTick as le, normalizeClass as k, normalizeProps as A, normalizeStyle as j, onBeforeUnmount as ue, onMounted as de, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as fe, toDisplayString as pe, toRefs as me, unref as I, useCssVars as he, watch as ge, withCtx as L } from "vue";
19
+ //#region src/components/vue-ui-wheel.vue
20
+ var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
21
+ "xmlns",
22
+ "viewBox",
23
+ "aria-labelledby",
24
+ "aria-describedby"
25
+ ], be = ["id"], xe = ["id"], Se = [
26
+ "x",
27
+ "y",
28
+ "width",
29
+ "height"
30
+ ], Ce = [
31
+ "d",
32
+ "stroke",
33
+ "stroke-width"
34
+ ], we = [
35
+ "cx",
36
+ "cy",
37
+ "r",
38
+ "stroke",
39
+ "stroke-width"
40
+ ], Te = { key: 0 }, Ee = [
41
+ "x1",
42
+ "y1",
43
+ "x2",
44
+ "y2",
45
+ "stroke",
46
+ "stroke-width",
47
+ "stroke-linecap"
48
+ ], De = [
49
+ "x1",
50
+ "y1",
51
+ "x2",
52
+ "y2",
53
+ "stroke",
54
+ "stroke-width",
55
+ "stroke-linecap"
56
+ ], Oe = { key: 1 }, ke = [
57
+ "d",
58
+ "fill",
59
+ "stroke",
60
+ "stroke-width"
61
+ ], Ae = [
62
+ "d",
63
+ "fill",
64
+ "stroke",
65
+ "stroke-width"
66
+ ], je = [
67
+ "d",
68
+ "fill",
69
+ "stroke",
70
+ "stroke-width"
71
+ ], Me = [
72
+ "x1",
73
+ "x2",
74
+ "y1",
75
+ "y2",
76
+ "stroke",
77
+ "stroke-width",
78
+ "stroke-linecap"
79
+ ], Ne = [
80
+ "d",
81
+ "fill",
82
+ "stroke",
83
+ "stroke-width"
84
+ ], Pe = ["aria-label"], Fe = [
85
+ "x",
86
+ "y",
87
+ "height"
88
+ ], Ie = [
89
+ "x",
90
+ "y",
91
+ "font-size",
92
+ "fill",
93
+ "font-weight",
94
+ "stroke",
95
+ "stroke-width"
96
+ ], Le = {
97
+ key: 4,
98
+ class: "vue-data-ui-watermark"
99
+ }, Re = /* @__PURE__ */ x({
100
+ __name: "vue-ui-wheel",
101
+ props: {
102
+ config: {
103
+ type: Object,
104
+ default() {
105
+ return {};
106
+ }
107
+ },
108
+ dataset: {
109
+ type: Object,
110
+ default() {
111
+ return {};
112
+ }
113
+ }
114
+ },
115
+ emits: ["copyAlt"],
116
+ setup(e, { expose: x, emit: _e }) {
117
+ he((e) => ({
118
+ v6c761863: Ft.value,
119
+ c5f7f2ee: It.value,
120
+ c5f82dc8: Lt.value
121
+ }));
122
+ let Re = ce(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), ze = ce(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Be = ce(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = re(), z = e, We = _e, Ge = w(() => !!z.dataset && Object.keys(z.dataset).length), B = N(i()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = w(() => H.value.userOptions.useCursorPointer), tt = w(() => t({
123
+ defaultConfig: {
124
+ userOptions: { show: !1 },
125
+ style: { chart: {
126
+ backgroundColor: "#99999930",
127
+ animation: { use: !1 },
128
+ layout: {
129
+ wheel: { ticks: {
130
+ activeColor: "#6A6A6A80",
131
+ inactiveColor: "#CACACA80"
132
+ } },
133
+ innerCircle: { stroke: "#CACACA80" }
134
+ }
135
+ } }
136
+ },
137
+ userConfig: H.value.skeletonConfig ?? {}
138
+ })), { loading: nt, FINAL_DATASET: U } = m({
139
+ ...me(z),
140
+ FINAL_CONFIG: H,
141
+ prepareConfig: st,
142
+ skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
143
+ skeletonConfig: t({
144
+ defaultConfig: H.value,
145
+ userConfig: tt.value
146
+ })
147
+ }), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = S({ config: H.value }), { svgRef: ot } = ne({ config: H.value.style.chart.title });
148
+ function st() {
149
+ let e = _({
150
+ userConfig: z.config,
151
+ defaultConfig: Ve
152
+ }), t = e.theme;
153
+ if (!t) return e;
154
+ if (!He.value(e)) return Ue(e), e;
155
+ let n = _({
156
+ userConfig: ie[t] || z.config,
157
+ defaultConfig: e
158
+ });
159
+ return _({
160
+ userConfig: z.config,
161
+ defaultConfig: n
162
+ });
163
+ }
164
+ ge(() => z.config, (e) => {
165
+ H.value = st(), rt.value = !H.value.userOptions.showOnChartHover, ht(), Ze.value += 1;
166
+ }, { deep: !0 });
167
+ let { isPrinting: ct, isImaging: lt, generatePdf: ut, generateImage: dt } = p({
168
+ elementId: B.value,
169
+ fileName: H.value.style.chart.title.text || "vue-ui-wheel",
170
+ options: H.value.userOptions.print
171
+ }), ft = w(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
172
+ size: 360,
173
+ height: 360,
174
+ width: 360
175
+ }), G = N(H.value.style.chart.layout.percentage.fontSize), K = w(() => ({
176
+ radius: Math.min(W.value.width, W.value.height) * .9 / 2 * H.value.style.chart.layout.wheel.radiusRatio,
177
+ centerX: W.value.width / 2,
178
+ centerY: W.value.height / 2
179
+ }));
180
+ function pt(e, t = 1) {
181
+ let n = 29.85;
182
+ return {
183
+ x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
184
+ y: K.value.centerY + K.value.radius * Math.sin(n + e * Math.PI / 180) * t
185
+ };
186
+ }
187
+ let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
188
+ ge(() => U.value, (e) => {
189
+ H.value.style.chart.animation.use && !R.value ? Dt(e.percentage) : q.value = e.percentage || 0;
190
+ }, { deep: !0 });
191
+ let J = fe(null), Y = fe(null);
192
+ de(() => {
193
+ ht();
194
+ });
195
+ let mt = w(() => !!H.value.debug);
196
+ function ht() {
197
+ if (n(z.dataset) && o({
198
+ componentName: "VueUiWheel",
199
+ type: "dataset",
200
+ debug: mt.value
201
+ }), H.value.responsive) {
202
+ let e = ee(() => {
203
+ let { width: e, height: t } = te({
204
+ chart: V.value,
205
+ title: H.value.style.chart.title.text ? Je.value : null,
206
+ source: Ye.value,
207
+ noTitle: Xe.value
208
+ });
209
+ requestAnimationFrame(() => {
210
+ W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
211
+ });
212
+ });
213
+ J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = V.value.parentNode, J.value.observe(Y.value);
214
+ }
215
+ Dt(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
216
+ }
217
+ ue(() => {
218
+ J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
219
+ });
220
+ function gt([e, t, n], r) {
221
+ let i = Math.cos(r), a = Math.sin(r);
222
+ return [
223
+ e,
224
+ t * i - n * a,
225
+ t * a + n * i
226
+ ];
227
+ }
228
+ function _t([e, t, n], r) {
229
+ let i = r / (r - n);
230
+ return [
231
+ e * i,
232
+ t * i,
233
+ n,
234
+ i
235
+ ];
236
+ }
237
+ function vt(e, t) {
238
+ let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
239
+ return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
240
+ }
241
+ function yt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
242
+ let p = s * Math.PI / 180, m = n, h = n * r, g = [];
243
+ for (let n = 0; n < i; n += 1) {
244
+ let r = (n / i * 360 + o) * Math.PI / 180, s = e + m * Math.cos(r), _ = t + m * Math.sin(r), v = e + h * Math.cos(r), y = t + h * Math.sin(r), b = [
245
+ s - e,
246
+ _ - t,
247
+ 0
248
+ ], x = [
249
+ v - e,
250
+ y - t,
251
+ 0
252
+ ], [ee, te, S] = gt(b, p), [ne, re, ie] = gt(x, p), [C, w, , T] = _t([
253
+ ee,
254
+ te,
255
+ S
256
+ ], c), [E, D, , ae] = _t([
257
+ ne,
258
+ re,
259
+ ie
260
+ ], c), oe = e + C, se = t + w, ce = e + E, O = t + D, le = (Math.max(S, ie) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = f ? f(n) : !0, A = H.value.style.chart.layout.wheel.ticks.gradient.show ? a(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = vt(k ? A : d, le), ue = Math.max(1.25, l * T * (Math.min(W.value.width, W.value.height) / 360));
261
+ g.push({
262
+ i: n,
263
+ x1: oe,
264
+ y1: se,
265
+ x2: ce,
266
+ y2: O,
267
+ stroke: ue,
268
+ color: j,
269
+ z: Math.max(S, ie)
270
+ });
271
+ }
272
+ return g.sort((e, t) => e.z - t.z), g;
273
+ }
274
+ let bt = w(() => {
275
+ if (!H.value.layout === "3d") return null;
276
+ let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? a(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, r = H.value.style.chart.layout.wheel.ticks.strokeWidth;
277
+ return yt({
278
+ cx: K.value.centerX,
279
+ cy: K.value.centerY,
280
+ radius: K.value.radius,
281
+ innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
282
+ count: e,
283
+ startDeg: -90,
284
+ axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
285
+ f: Math.min(W.value.width, W.value.height) * 1.45,
286
+ baseStroke: r,
287
+ activeColor: t,
288
+ inactiveColor: n,
289
+ getActive: (e) => q.value > e * Q.value
290
+ });
291
+ });
292
+ function xt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
293
+ let s = a * Math.PI / 180, c = [], l = 0;
294
+ for (let a = 0; a < r; a += 1) {
295
+ let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = gt([
296
+ n * Math.cos(u),
297
+ n * Math.sin(u),
298
+ 0
299
+ ], s), [m, h, , g] = _t([
300
+ d,
301
+ f,
302
+ p
303
+ ], o);
304
+ l += g, c.push([e + m, t + h]);
305
+ }
306
+ let u = `M ${c[0][0]} ${c[0][1]}`;
307
+ for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
308
+ u += " Z";
309
+ let d = l / r;
310
+ return {
311
+ d: u,
312
+ avgScale: d,
313
+ pts: c
314
+ };
315
+ }
316
+ let X = w(() => {
317
+ if (H.value.layout !== "3d") return null;
318
+ let e = Math.min(W.value.width, W.value.height) * 1.45, t = H.value.style.chart.layout.wheel.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
319
+ let r = n, i = t, { d: a, avgScale: o, pts: s } = xt({
320
+ cx: K.value.centerX,
321
+ cy: K.value.centerY,
322
+ r,
323
+ startDeg: -90,
324
+ axDeg: i,
325
+ f: e
326
+ });
327
+ return {
328
+ pts: s,
329
+ avgScale: o
330
+ };
331
+ })(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
332
+ for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
333
+ let l = H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height), u = H.value.style.chart.layout.innerCircle.strokeWidth || 0, d = .5 * Math.max(l, u * (i || 1)), f = Math.max(0, Number(H.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = d;
334
+ return {
335
+ x: a - p,
336
+ y: o - f - p,
337
+ w: s - a + 2 * p,
338
+ h: c - (o - f) + 2 * p
339
+ };
340
+ });
341
+ function St(e) {
342
+ let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = xt({
343
+ cx: K.value.centerX,
344
+ cy: K.value.centerY,
345
+ r: e,
346
+ startDeg: -90,
347
+ axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
348
+ f: t
349
+ }), i = (H.value.style.chart.layout.innerCircle.strokeWidth || 1) * r;
350
+ return {
351
+ d: n,
352
+ stroke: H.value.style.chart.layout.innerCircle.stroke,
353
+ strokeWidth: i
354
+ };
355
+ }
356
+ let Ct = w(() => St(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
357
+ function wt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
358
+ let [o, s, c] = gt([
359
+ n * Math.cos(r),
360
+ n * Math.sin(r),
361
+ 0
362
+ ], i), [l, u, , d] = _t([
363
+ o,
364
+ s,
365
+ c
366
+ ], a);
367
+ return {
368
+ x: e + l,
369
+ y: t + u,
370
+ z: c,
371
+ s: d
372
+ };
373
+ }
374
+ function Tt({ cx: e, cy: t, radius: n, innerRatio: r = .8, count: i = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
375
+ let p = s * Math.PI / 180, m = n, h = n * r, g = 2 * Math.PI / i, _ = [];
376
+ for (let n = 0; n < i; n += 1) {
377
+ let r = o * Math.PI / 180 + g * n, s = r + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
378
+ cx: e,
379
+ cy: t + f,
380
+ r: m,
381
+ aRad: r,
382
+ ax: p,
383
+ f: c
384
+ }), y = wt({
385
+ cx: e,
386
+ cy: t + f,
387
+ r: m,
388
+ aRad: s,
389
+ ax: p,
390
+ f: c
391
+ }), b = wt({
392
+ cx: e,
393
+ cy: t + f,
394
+ r: h,
395
+ aRad: s,
396
+ ax: p,
397
+ f: c
398
+ }), x = wt({
399
+ cx: e,
400
+ cy: t + f,
401
+ r: h,
402
+ aRad: r,
403
+ ax: p,
404
+ f: c
405
+ }), ee = (v.z + y.z + x.z + b.z) / 4, te = vt(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? a(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / i * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
406
+ let e = m * Math.sin(p) || 1;
407
+ return (ee - -e) / (2 * e);
408
+ })()), S = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
409
+ _.push({
410
+ i: n,
411
+ d: S,
412
+ fill: te,
413
+ z: ee
414
+ });
415
+ }
416
+ return _.sort((e, t) => e.z - t.z), _;
417
+ }
418
+ let Et = w(() => {
419
+ if (H.value.layout !== "3d") return null;
420
+ let e = Z.value;
421
+ return (t) => Tt({
422
+ cx: K.value.centerX,
423
+ cy: K.value.centerY,
424
+ radius: K.value.radius,
425
+ innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
426
+ count: e,
427
+ startDeg: -90,
428
+ axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
429
+ f: Math.min(W.value.width, W.value.height) * 1.45,
430
+ activeColor: H.value.style.chart.layout.wheel.ticks.activeColor,
431
+ inactiveColor: H.value.style.chart.layout.wheel.ticks.inactiveColor,
432
+ getActive: (t) => q.value > 100 / e * t,
433
+ Y: t
434
+ });
435
+ });
436
+ function Dt(e) {
437
+ let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
438
+ function r() {
439
+ q.value < e ? q.value = Math.min(q.value + n, e) : q.value > e && (q.value = Math.max(q.value - n, e)), q.value !== e && requestAnimationFrame(r);
440
+ }
441
+ r();
442
+ }
443
+ let Z = w(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = w(() => 100 / Z.value), Ot = w(() => {
444
+ let e = [];
445
+ for (let t = 0; t < Z.value; t += 1) {
446
+ let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: r, y: i } = pt(W.value.size / Z.value * t), { x: o, y: s } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
447
+ e.push({
448
+ x1: r,
449
+ y1: i,
450
+ x2: o,
451
+ y2: s,
452
+ color: H.value.style.chart.layout.wheel.ticks.gradient.show ? a(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
453
+ });
454
+ }
455
+ return e;
456
+ }), kt = w(() => d({ series: Ot.value.map((e) => ({
457
+ name: "",
458
+ value: 1,
459
+ color: e.color
460
+ })) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), At = N(!1);
461
+ function jt(e) {
462
+ At.value = e, qe.value += 1;
463
+ }
464
+ let Mt = N(!1);
465
+ function Nt() {
466
+ Mt.value = !Mt.value;
467
+ }
468
+ async function Pt({ scale: e = 2 } = {}) {
469
+ if (!V.value) return;
470
+ let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await y({
471
+ domElement: V.value,
472
+ base64: !0,
473
+ img: !0,
474
+ scale: e
475
+ });
476
+ return {
477
+ imageUri: i,
478
+ base64: a,
479
+ title: H.value.style.chart.title.text,
480
+ width: t,
481
+ height: n,
482
+ aspectRatio: r
483
+ };
484
+ }
485
+ let Ft = w(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), It = w(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), Lt = w(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = w(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Rt = w(() => H.value.style.chart.backgroundColor), { exportSvg: zt, getSvg: Bt } = g({
486
+ svg: ot,
487
+ title: w(() => H.value.style.chart.title),
488
+ backgroundColor: Rt,
489
+ stretchTitle: !0
490
+ });
491
+ async function Vt({ isCb: e }) {
492
+ $e.value = !0, await le();
493
+ try {
494
+ if (e) {
495
+ let { blob: e, url: t, text: n, dataUrl: r } = await Bt();
496
+ await Promise.resolve(H.value.userOptions.callbacks.svg({
497
+ blob: e,
498
+ url: t,
499
+ text: n,
500
+ dataUrl: r
501
+ }));
502
+ } else await Promise.resolve(zt());
503
+ } finally {
504
+ $e.value = !1;
505
+ }
506
+ }
507
+ function Ht(e) {
508
+ if (e?.stage === "start") {
509
+ Qe.value = !0;
510
+ return;
511
+ }
512
+ if (e?.stage === "end") {
513
+ Qe.value = !1;
514
+ return;
515
+ }
516
+ dt();
517
+ }
518
+ async function Ut() {
519
+ if (We("copyAlt", {
520
+ config: H.value,
521
+ dataset: U.value
522
+ }), !H.value.userOptions.callbacks.altCopy) {
523
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
524
+ return;
525
+ }
526
+ await Promise.resolve(H.value.userOptions.callbacks.altCopy({
527
+ config: H.value,
528
+ dataset: U.value
529
+ }));
530
+ }
531
+ let Wt = w(() => `${B.value}-title`), Gt = w(() => `${B.value}-desc`), Kt = w(() => c(H.value.style.chart.layout.percentage.formatter, u(q.value), r({
532
+ v: u(q.value),
533
+ s: "%",
534
+ r: H.value.style.chart.layout.percentage.rounding
535
+ }))), qt = w(() => H.value.style.chart.title.text || ""), Jt = w(() => nt.value ? "..." : `${Kt.value}`);
536
+ return x({
537
+ getImage: Pt,
538
+ generatePdf: ut,
539
+ generateImage: dt,
540
+ generateSvg: Vt,
541
+ toggleAnnotator: Nt,
542
+ toggleFullscreen: jt,
543
+ copyAlt: Ut
544
+ }), (e, t) => (M(), D("div", {
545
+ class: k(["vue-ui-wheel", {
546
+ "vue-data-ui-component": !0,
547
+ "vue-ui-wheel-3d-wrap": H.value.layout === "3d"
548
+ }]),
549
+ ref_key: "wheelChart",
550
+ ref: V,
551
+ id: B.value,
552
+ style: j(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
553
+ onMouseenter: t[0] ||= () => I(it)(!0),
554
+ onMouseleave: t[1] ||= () => I(it)(!1)
555
+ }, [
556
+ H.value.userOptions.buttons.annotator ? (M(), T(I(Re), {
557
+ key: 0,
558
+ svgRef: I(ot),
559
+ backgroundColor: H.value.style.chart.backgroundColor,
560
+ color: H.value.style.chart.color,
561
+ active: Mt.value,
562
+ isCursorPointer: et.value,
563
+ onClose: Nt
564
+ }, {
565
+ "annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
566
+ "annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", A(O({ color: t })), void 0, !0)]),
567
+ "annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", A(O({ mode: t })), void 0, !0)]),
568
+ "annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", A(O({ disabled: t })), void 0, !0)]),
569
+ "annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", A(O({ disabled: t })), void 0, !0)]),
570
+ "annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", A(O({ disabled: t })), void 0, !0)]),
571
+ _: 3
572
+ }, 8, [
573
+ "svgRef",
574
+ "backgroundColor",
575
+ "color",
576
+ "active",
577
+ "isCursorPointer"
578
+ ])) : E("", !0),
579
+ ft.value ? (M(), D("div", {
580
+ key: 1,
581
+ ref_key: "noTitle",
582
+ ref: Xe,
583
+ class: "vue-data-ui-no-title-space",
584
+ style: "height:36px; width: 100%;background:transparent"
585
+ }, null, 512)) : E("", !0),
586
+ H.value.style.chart.title.text ? (M(), D("div", {
587
+ key: 2,
588
+ ref_key: "chartTitle",
589
+ ref: Je,
590
+ style: "width:100%;background:transparent;padding-bottom:12px"
591
+ }, [(M(), T(b, {
592
+ key: `title_${Ze.value}`,
593
+ config: {
594
+ title: {
595
+ cy: "wheel-title",
596
+ ...H.value.style.chart.title
597
+ },
598
+ subtitle: {
599
+ cy: "wheel-subtitle",
600
+ ...H.value.style.chart.title.subtitle
601
+ }
602
+ }
603
+ }, null, 8, ["config"]))], 512)) : E("", !0),
604
+ H.value.userOptions.show && Ge.value && (I(at) || I(rt)) ? (M(), T(I(ze), {
605
+ ref_key: "details",
606
+ ref: Ke,
607
+ key: `user_options_${qe.value}`,
608
+ backgroundColor: H.value.style.chart.backgroundColor,
609
+ color: H.value.style.chart.color,
610
+ isPrinting: I(ct),
611
+ isImaging: I(lt),
612
+ uid: B.value,
613
+ hasPdf: H.value.userOptions.buttons.pdf,
614
+ hasImg: H.value.userOptions.buttons.img,
615
+ hasSvg: H.value.userOptions.buttons.svg,
616
+ hasFullscreen: H.value.userOptions.buttons.fullscreen,
617
+ hasAltCopy: H.value.userOptions.buttons.altCopy,
618
+ hasXls: !1,
619
+ isFullscreen: At.value,
620
+ position: H.value.userOptions.position,
621
+ titles: { ...H.value.userOptions.buttonTitles },
622
+ hasAnnotator: H.value.userOptions.buttons.annotator,
623
+ isAnnotation: Mt.value,
624
+ chartElement: V.value,
625
+ callbacks: H.value.userOptions.callbacks,
626
+ printScale: H.value.userOptions.print.scale,
627
+ isCursorPointer: et.value,
628
+ onToggleFullscreen: jt,
629
+ onGeneratePdf: I(ut),
630
+ onGenerateImage: Ht,
631
+ onGenerateSvg: Vt,
632
+ onToggleAnnotator: Nt,
633
+ onCopyAlt: Ut,
634
+ style: j({ visibility: I(at) ? I(rt) ? "visible" : "hidden" : "visible" })
635
+ }, oe({ _: 2 }, [
636
+ e.$slots.menuIcon ? {
637
+ name: "menuIcon",
638
+ fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", A(O({
639
+ isOpen: t,
640
+ color: n
641
+ })), void 0, !0)]),
642
+ key: "0"
643
+ } : void 0,
644
+ e.$slots.optionPdf ? {
645
+ name: "optionPdf",
646
+ fn: L(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
647
+ key: "1"
648
+ } : void 0,
649
+ e.$slots.optionImg ? {
650
+ name: "optionImg",
651
+ fn: L(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
652
+ key: "2"
653
+ } : void 0,
654
+ e.$slots.optionSvg ? {
655
+ name: "optionSvg",
656
+ fn: L(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
657
+ key: "3"
658
+ } : void 0,
659
+ e.$slots.optionFullscreen ? {
660
+ name: "optionFullscreen",
661
+ fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", A(O({
662
+ toggleFullscreen: t,
663
+ isFullscreen: n
664
+ })), void 0, !0)]),
665
+ key: "4"
666
+ } : void 0,
667
+ e.$slots.optionAnnotator ? {
668
+ name: "optionAnnotator",
669
+ fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", A(O({
670
+ toggleAnnotator: t,
671
+ isAnnotator: n
672
+ })), void 0, !0)]),
673
+ key: "5"
674
+ } : void 0,
675
+ e.$slots.optionAltCopy ? {
676
+ name: "optionAltCopy",
677
+ fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", A(O({ altCopy: t })), void 0, !0)]),
678
+ key: "6"
679
+ } : void 0,
680
+ e.$slots["custom-menu-before"] ? {
681
+ name: "custom-menu-before",
682
+ fn: L(() => [F(e.$slots, "custom-menu-before", {}, void 0, !0)]),
683
+ key: "7"
684
+ } : void 0,
685
+ e.$slots["custom-menu-after"] ? {
686
+ name: "custom-menu-after",
687
+ fn: L(() => [F(e.$slots, "custom-menu-after", {}, void 0, !0)]),
688
+ key: "8"
689
+ } : void 0
690
+ ]), 1032, [
691
+ "backgroundColor",
692
+ "color",
693
+ "isPrinting",
694
+ "isImaging",
695
+ "uid",
696
+ "hasPdf",
697
+ "hasImg",
698
+ "hasSvg",
699
+ "hasFullscreen",
700
+ "hasAltCopy",
701
+ "isFullscreen",
702
+ "position",
703
+ "titles",
704
+ "hasAnnotator",
705
+ "isAnnotation",
706
+ "chartElement",
707
+ "callbacks",
708
+ "printScale",
709
+ "isCursorPointer",
710
+ "onGeneratePdf",
711
+ "style"
712
+ ])) : E("", !0),
713
+ (M(), D("svg", {
714
+ ref_key: "svgRef",
715
+ ref: ot,
716
+ xmlns: I(l),
717
+ class: k({
718
+ "vue-data-ui-fullscreen--on": At.value,
719
+ "vue-data-ui-fulscreen--off": !At.value,
720
+ "vue-ui-wheel-3d-svg": H.value.layout === "3d"
721
+ }),
722
+ viewBox: H.value.layout === "3d" && !H.value.responsive ? `${X.value?.x - 10} ${X.value?.y ?? 0} ${X.value?.w + 20 ?? Math.max(10, W.value.width)} ${X.value?.h ?? Math.max(10, W.value.height)}` : `0 0 ${Math.max(10, W.value.width)} ${Math.max(10, W.value.height)}`,
723
+ style: j(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
724
+ role: "img",
725
+ "aria-labelledby": Wt.value,
726
+ "aria-describedby": Gt.value
727
+ }, [
728
+ ae("title", { id: Wt.value }, pe(qt.value), 9, be),
729
+ ae("desc", { id: Gt.value }, pe(Jt.value), 9, xe),
730
+ se(I(Be)),
731
+ e.$slots["chart-background"] ? (M(), D("foreignObject", {
732
+ key: 0,
733
+ x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
734
+ y: H.value.layout === "3d" && !H.value.responsive ? X.value?.y ?? 0 : 0,
735
+ width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
736
+ height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
737
+ style: { pointerEvents: "none" }
738
+ }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : E("", !0),
739
+ H.value.layout === "3d" && Ct.value ? (M(), D("path", {
740
+ key: 1,
741
+ class: "vue-ui-wheel-inner-circle",
742
+ d: Ct.value.d,
743
+ stroke: H.value.style.chart.layout.innerCircle.stroke,
744
+ "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
745
+ fill: "none"
746
+ }, null, 8, Ce)) : H.value.style.chart.layout.innerCircle.show ? (M(), D("circle", {
747
+ key: 2,
748
+ class: "vue-ui-wheel-inner-circle",
749
+ cx: K.value.centerX,
750
+ cy: K.value.centerY,
751
+ r: Math.max(0, K.value.radius * H.value.style.chart.layout.innerCircle.radiusRatio * .8),
752
+ stroke: H.value.style.chart.layout.innerCircle.stroke,
753
+ "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
754
+ fill: "none"
755
+ }, null, 8, we)) : E("", !0),
756
+ H.value.layout === "3d" ? (M(), D(C, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), D("g", Te, [(M(!0), D(C, null, P($.value, (e) => (M(), D("g", null, [(M(!0), D(C, null, P(bt.value || [], (t) => (M(), D("line", {
757
+ key: t.i,
758
+ x1: t.x1,
759
+ y1: t.y1 - e,
760
+ x2: t.x2,
761
+ y2: t.y2 - e,
762
+ stroke: I(s)(t.color, .25 * e / 5),
763
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
764
+ "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
765
+ class: k({
766
+ "vue-ui-wheel-tick": !0,
767
+ "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
768
+ })
769
+ }, null, 10, Ee))), 128))]))), 256)), (M(!0), D(C, null, P(bt.value || [], (e) => (M(), D("line", {
770
+ key: e.i,
771
+ x1: e.x1,
772
+ y1: e.y1 - $.value,
773
+ x2: e.x2,
774
+ y2: e.y2 - $.value,
775
+ stroke: e.color,
776
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
777
+ "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
778
+ class: k({
779
+ "vue-ui-wheel-tick": !0,
780
+ "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
781
+ })
782
+ }, null, 10, De))), 128))])) : (M(), D("g", Oe, [(M(!0), D(C, null, P($.value, (e) => (M(), D("g", null, [(M(!0), D(C, null, P(Et.value(-e) || [], (e) => (M(), D("path", {
783
+ key: e.i,
784
+ d: e.d,
785
+ fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
786
+ stroke: H.value.style.chart.layout.wheel.ticks.stroke,
787
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
788
+ "stroke-linecap": "round",
789
+ "stroke-linejoin": "round",
790
+ class: "vue-ui-wheel-tick"
791
+ }, null, 8, ke))), 128)), (M(!0), D(C, null, P(Et.value(-e) || [], (t) => (M(), D("path", {
792
+ key: t.i,
793
+ d: t.d,
794
+ fill: I(s)(t.fill, .5 * e / $.value),
795
+ stroke: H.value.style.chart.layout.wheel.ticks.stroke,
796
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
797
+ "stroke-linecap": "round",
798
+ "stroke-linejoin": "round",
799
+ class: k({
800
+ "vue-ui-wheel-tick": !0,
801
+ "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
802
+ })
803
+ }, null, 10, Ae))), 128))]))), 256)), ae("g", null, [(M(!0), D(C, null, P(Et.value(-$.value) || [], (e) => (M(), D("path", {
804
+ key: e.i,
805
+ d: e.d,
806
+ fill: e.fill,
807
+ stroke: H.value.style.chart.layout.wheel.ticks.stroke,
808
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
809
+ "stroke-linecap": "round",
810
+ "stroke-linejoin": "round",
811
+ class: k({
812
+ "vue-ui-wheel-tick": !0,
813
+ "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
814
+ })
815
+ }, null, 10, je))), 128))])]))], 64)) : (M(), D(C, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), D(C, { key: 0 }, P(Ot.value, (e, t) => (M(), D("line", {
816
+ x1: e.x1,
817
+ x2: e.x2,
818
+ y1: e.y1,
819
+ y2: e.y2,
820
+ stroke: e.color,
821
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
822
+ "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
823
+ class: k({
824
+ "vue-ui-wheel-tick": !0,
825
+ "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
826
+ })
827
+ }, null, 10, Me))), 256)) : (M(!0), D(C, { key: 1 }, P(kt.value, (e, t) => (M(), D("path", {
828
+ d: e.arcSlice,
829
+ fill: e.color,
830
+ class: k({
831
+ "vue-ui-wheel-tick": !0,
832
+ "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
833
+ }),
834
+ stroke: H.value.style.chart.layout.wheel.ticks.stroke,
835
+ "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
836
+ }, null, 10, Ne))), 256))], 64)),
837
+ H.value.style.chart.layout.percentage.show ? (M(), D("g", {
838
+ key: 5,
839
+ role: "status",
840
+ "aria-live": "polite",
841
+ "aria-label": I(nt) ? "..." : Kt.value
842
+ }, [I(nt) ? (M(), D("rect", {
843
+ key: 0,
844
+ x: K.value.centerX - 40,
845
+ y: K.value.centerY - G.value / 2,
846
+ width: 80,
847
+ height: G.value,
848
+ fill: "#6A6A6A80",
849
+ rx: "3"
850
+ }, null, 8, Fe)) : (M(), D("text", {
851
+ key: 1,
852
+ "aria-hidden": "true",
853
+ x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
854
+ y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
855
+ "font-size": G.value,
856
+ fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(a)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
857
+ "text-anchor": "middle",
858
+ "font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
859
+ style: { "font-variant-numeric": "tabluar-nums" },
860
+ stroke: H.value.style.chart.layout.percentage.stroke,
861
+ "stroke-width": H.value.style.chart.layout.percentage.strokeWidth,
862
+ "stroke-linecap": "round",
863
+ "stroke-linejoin": "round",
864
+ "paint-order": "stroke fill",
865
+ class: k({ "vue-ui-wheel-label": H.value.layout === "3d" })
866
+ }, pe(Kt.value), 11, Ie))], 8, Pe)) : E("", !0),
867
+ F(e.$slots, "svg", { svg: {
868
+ ...W.value,
869
+ isPrintingImg: I(ct) || I(lt) || Qe.value,
870
+ isPrintingSvg: $e.value
871
+ } }, void 0, !0)
872
+ ], 14, ye)),
873
+ e.$slots.watermark ? (M(), D("div", Le, [F(e.$slots, "watermark", A(O({ isPrinting: I(ct) || I(lt) || Qe.value || $e.value })), void 0, !0)])) : E("", !0),
874
+ e.$slots.source ? (M(), D("div", {
875
+ key: 5,
876
+ ref_key: "source",
877
+ ref: Ye,
878
+ dir: "auto"
879
+ }, [F(e.$slots, "source", {}, void 0, !0)], 512)) : E("", !0),
880
+ F(e.$slots, "skeleton", {}, () => [I(nt) ? (M(), T(h, { key: 0 })) : E("", !0)], !0)
881
+ ], 46, ve));
882
+ }
883
+ }, [["__scopeId", "data-v-c58856ab"]]);
884
+ //#endregion
885
+ export { _e as n, Re as t };