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,920 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { B as t, Bt as n, C as r, Ct as i, Et as a, G as o, H as ee, Mt as s, Rt as te, X as c, i as ne, ot as re, t as ie, u as ae, v as oe, wt as l, x as se, xt as ce, y as le, zt as ue } from "./lib-DUeYQsS0.js";
3
+ import { t as de } from "./useConfig-DAyQk86L.js";
4
+ import { t as fe } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as pe, t as me } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as he } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as ge } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ve } from "./img-1cKsci8e.js";
10
+ import { n as ye } from "./Title-NWp4qB4K.js";
11
+ import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
+ import { c as xe } from "./canvas-lib-BOP_HS11.js";
13
+ import { t as Se } from "./useResponsive-BfnK0KxU.js";
14
+ import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as we } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as Te } from "./useAutoSizeLabelsInsideViewbox-BIVntRZp.js";
17
+ import { t as Ee } from "./vue_ui_gauge-Cf1RZc9q.js";
18
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createVNode as Oe, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as ke, normalizeClass as Ae, normalizeProps as y, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as b, ref as x, renderList as S, renderSlot as C, shallowRef as Pe, toDisplayString as w, toRefs as Fe, unref as T, watch as Ie, withCtx as E } from "vue";
19
+ //#region src/components/vue-ui-gauge.vue
20
+ var Le = /* @__PURE__ */ e({ default: () => yt }), Re = ["id"], ze = { key: 0 }, Be = ["xmlns", "viewBox"], Ve = ["width", "height"], He = ["id"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["stop-color"], Ke = ["id"], qe = ["stdDeviation"], Je = { key: 1 }, Ye = [
21
+ "d",
22
+ "fill",
23
+ "stroke"
24
+ ], Xe = [
25
+ "d",
26
+ "fill",
27
+ "stroke"
28
+ ], Ze = ["d", "fill"], Qe = ["id", "d"], $e = [
29
+ "fill",
30
+ "font-size",
31
+ "font-weight"
32
+ ], et = ["href", "startOffset"], tt = [
33
+ "text-anchor",
34
+ "fill",
35
+ "font-size",
36
+ "font-weight",
37
+ "innerHTML"
38
+ ], nt = ["d", "filter"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = { key: 8 }, ct = [
39
+ "x",
40
+ "y",
41
+ "text-anchor",
42
+ "font-size",
43
+ "font-weight",
44
+ "fill"
45
+ ], lt = [
46
+ "x",
47
+ "y",
48
+ "font-size",
49
+ "font-weight",
50
+ "fill"
51
+ ], ut = { key: 0 }, dt = [
52
+ "x1",
53
+ "y1",
54
+ "x2",
55
+ "y2",
56
+ "stroke",
57
+ "stroke-width"
58
+ ], ft = [
59
+ "x1",
60
+ "y1",
61
+ "x2",
62
+ "y2",
63
+ "stroke",
64
+ "stroke-width"
65
+ ], pt = [
66
+ "x1",
67
+ "y1",
68
+ "x2",
69
+ "y2",
70
+ "stroke-width",
71
+ "filter"
72
+ ], mt = { key: 1 }, ht = [
73
+ "d",
74
+ "fill",
75
+ "stroke",
76
+ "stroke-width"
77
+ ], gt = [
78
+ "cx",
79
+ "cy",
80
+ "fill",
81
+ "r",
82
+ "stroke-width",
83
+ "stroke"
84
+ ], _t = [
85
+ "x",
86
+ "y",
87
+ "font-size",
88
+ "fill"
89
+ ], vt = {
90
+ key: 4,
91
+ class: "vue-data-ui-watermark"
92
+ }, yt = /* @__PURE__ */ be({
93
+ __name: "vue-ui-gauge",
94
+ props: {
95
+ config: {
96
+ type: Object,
97
+ default() {
98
+ return {};
99
+ }
100
+ },
101
+ dataset: {
102
+ type: Object,
103
+ default() {
104
+ return {};
105
+ }
106
+ }
107
+ },
108
+ emits: ["copyAlt"],
109
+ setup(e, { expose: be, emit: Le }) {
110
+ let yt = g(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), bt = g(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), xt = g(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), { vue_ui_gauge: St } = de(), { isThemeValid: Ct, warnInvalidTheme: wt } = _e(), D = e, Tt = Le, Et = d(() => !!D.dataset && Object.keys(D.dataset).length > 0 && D.dataset.series && D.dataset.series.length), O = x(ee()), Dt = x(null), Ot = x(0), k = x(null), kt = x(null), At = x(null), jt = x(null), Mt = x(null), Nt = x(0), A = x(!1), j = x(!1), M = x(zt()), Pt = d(() => M.value.userOptions.useCursorPointer), Ft = d(() => n({
111
+ defaultConfig: {
112
+ userOptions: { show: !1 },
113
+ style: { chart: {
114
+ backgroundColor: "#99999930",
115
+ animation: { use: !1 },
116
+ layout: {
117
+ markers: { show: !1 },
118
+ segmentSeparators: { stroke: "#6A6A6A" },
119
+ segmentNames: { show: !1 },
120
+ indicatorArc: { fill: "#6A6A6A50" },
121
+ pointer: {
122
+ stroke: "#6A6A6A",
123
+ useRatingColor: !0,
124
+ circle: {
125
+ stroke: "#6A6A6A",
126
+ color: "#6A6A6A"
127
+ }
128
+ }
129
+ },
130
+ legend: { show: !1 }
131
+ } }
132
+ },
133
+ userConfig: M.value.skeletonConfig ?? {}
134
+ })), { loading: It, FINAL_DATASET: N, manualLoading: P } = pe({
135
+ ...Fe(D),
136
+ FINAL_CONFIG: M,
137
+ prepareConfig: zt,
138
+ callback: () => {
139
+ Promise.resolve().then(async () => {
140
+ await ke();
141
+ });
142
+ },
143
+ skeletonDataset: D.config?.skeletonDataset ?? {
144
+ value: 0,
145
+ series: [{
146
+ from: -1,
147
+ to: 0,
148
+ name: "_",
149
+ color: "#A1A1A1"
150
+ }, {
151
+ from: 0,
152
+ to: 1,
153
+ name: "__",
154
+ color: "#CACACA"
155
+ }]
156
+ },
157
+ skeletonConfig: n({
158
+ defaultConfig: M.value,
159
+ userConfig: Ft.value
160
+ })
161
+ }), { userOptionsVisible: F, setUserOptionsVisibility: Lt, keepUserOptionState: Rt } = Ce({ config: M.value }), { svgRef: I } = we({ config: M.value.style.chart.title });
162
+ Ie(() => D.config, (e) => {
163
+ It.value || (M.value = zt()), F.value = !M.value.userOptions.showOnChartHover, Yt(), Nt.value += 1;
164
+ }, { deep: !0 }), Ie(() => D.dataset, (e) => {
165
+ Yt(), e && Object.keys(e).length > 0 && (P.value = M.value?.loading ?? !1);
166
+ }, {
167
+ deep: !0,
168
+ immediate: !1
169
+ });
170
+ function zt() {
171
+ let e = ge({
172
+ userConfig: D.config,
173
+ defaultConfig: St
174
+ }), t = e.theme;
175
+ if (!t) return e;
176
+ if (!Ct.value(e)) return wt(e), e;
177
+ let n = ge({
178
+ userConfig: Ee[t] || D.config,
179
+ defaultConfig: e
180
+ }), r = ge({
181
+ userConfig: D.config,
182
+ defaultConfig: n
183
+ });
184
+ return {
185
+ ...r,
186
+ customPalette: r.customPalette.length ? r.customPalette : te[t] || a
187
+ };
188
+ }
189
+ let { isPrinting: Bt, isImaging: Vt, generatePdf: Ht, generateImage: Ut } = fe({
190
+ elementId: `vue-ui-gauge_${O.value}`,
191
+ fileName: M.value.style.chart.title.text || "vue-ui-gauge",
192
+ options: M.value.userOptions.print
193
+ }), Wt = d(() => M.value.userOptions.show && !M.value.style.chart.title.text), Gt = d(() => se(M.value.customPalette)), L = d(() => {
194
+ if (i(N.value.series || {})) return {
195
+ value: 0,
196
+ series: [{
197
+ from: 0,
198
+ to: 0
199
+ }]
200
+ };
201
+ let e = [];
202
+ (N.value.series || []).forEach((t) => {
203
+ e.push(t.from || 1e-7), e.push(t.to || 1e-7);
204
+ });
205
+ let t = Math.max(...e);
206
+ return {
207
+ ...N.value,
208
+ series: (N.value.series || []).map((e, n) => ({
209
+ ...e,
210
+ color: le(e.color) || Gt.value[n] || a[n],
211
+ value: ((e.to || 0) - (e.from || 0)) / t * 100
212
+ }))
213
+ };
214
+ }), R = x(512), z = x({
215
+ height: 358.4,
216
+ width: R.value,
217
+ top: 0,
218
+ bottom: 358.4,
219
+ centerX: 179.2,
220
+ centerY: R.value / 2,
221
+ labelFontSize: 18,
222
+ legendFontSize: M.value.style.chart.legend.fontSize,
223
+ pointerRadius: M.value.style.chart.layout.pointer.circle.radius,
224
+ trackSize: M.value.style.chart.layout.track.size,
225
+ pointerSize: M.value.style.chart.layout.pointer.size,
226
+ pointerStrokeWidth: M.value.style.chart.layout.pointer.strokeWidth,
227
+ markerOffset: M.value.style.chart.layout.markers.offsetY + 3,
228
+ segmentFontSize: M.value.style.chart.layout.segmentNames.fontSize
229
+ }), B = x(0), V = x(0), H = x(M.value.style.chart.animation.use ? Math.min(...N.value.series.map((e) => e.from)) : N.value.value);
230
+ Ie(() => N.value.value, () => {
231
+ Xt(N.value.value);
232
+ });
233
+ let U = d(() => {
234
+ let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI;
235
+ return {
236
+ x1: e,
237
+ y1: t,
238
+ x2: e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n),
239
+ y2: t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n)
240
+ };
241
+ }), Kt = d(() => {
242
+ let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI, r = e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n), a = z.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
243
+ return isNaN(r) ? null : `M ${r},${i} ${o},${ee} ${s},${te} Z`;
244
+ }), qt = d(() => {
245
+ for (let e = 0; e < L.value.series.length; e += 1) {
246
+ let { color: t, from: n, to: r } = L.value.series[e];
247
+ if (H.value >= n && H.value <= r) return t;
248
+ }
249
+ return "#2D353C";
250
+ }), W = Pe(null), G = Pe(null), K = d({
251
+ get: () => z.value.segmentFontSize,
252
+ set: (e) => e
253
+ }), { autoSizeLabels: Jt } = Te({
254
+ svgRef: I,
255
+ fontSize: z.value.segmentFontSize,
256
+ minFontSize: M.value.style.chart.layout.segmentNames.minFontSize,
257
+ sizeRef: K,
258
+ labelClass: ".vue-ui-gauge-label-flat"
259
+ }), q = d(() => !!M.value.debug);
260
+ function Yt() {
261
+ let e = !1;
262
+ if (i(D.dataset) ? (c({
263
+ componentName: "VueUiGauge",
264
+ type: "dataset",
265
+ debug: q.value
266
+ }), P.value = !0, e = !0) : (re({
267
+ datasetObject: D.dataset,
268
+ requiredAttributes: ["value", "series"]
269
+ }).forEach((t) => {
270
+ c({
271
+ componentName: "VueUiGauge",
272
+ type: "datasetAttribute",
273
+ property: t,
274
+ debug: q.value
275
+ }), P.value = !0, e = !0;
276
+ }), Object.hasOwn(D.dataset, "series") && (D.dataset.series.length ? D.dataset.series.forEach((t, n) => {
277
+ re({
278
+ datasetObject: t,
279
+ requiredAttributes: ["from", "to"]
280
+ }).forEach((t) => {
281
+ c({
282
+ componentName: "VueUiGauge",
283
+ type: "datasetSerieAttribute",
284
+ property: t,
285
+ index: n,
286
+ debug: q.value
287
+ }), P.value = !0, e = !0;
288
+ });
289
+ }) : (c({
290
+ componentName: "VueUiGauge",
291
+ type: "datasetAttributeEmpty",
292
+ property: "series",
293
+ debug: q.value
294
+ }), P.value = !0, e = !0))), P.value = e, Xt(N.value.value || 0), M.value.responsive) {
295
+ let e = xe(() => {
296
+ let { width: e, height: t } = Se({
297
+ chart: k.value,
298
+ title: M.value.style.chart.title.text ? kt.value : null,
299
+ legend: At.value,
300
+ source: jt.value,
301
+ noTitle: Mt.value
302
+ });
303
+ t -= 12, requestAnimationFrame(() => {
304
+ z.value.width = e, z.value.height = t, z.value.centerX = e / 2, z.value.centerY = R.value / 2 / 358.4 * t, z.value.bottom = t, z.value.labelFontSize = 18 / R.value * Math.min(t, e) < 10 ? 10 : 18 / R.value * Math.min(t, e), z.value.legendFontSize = M.value.style.chart.legend.fontSize / R.value * Math.min(t, e) < 14 ? 14 : M.value.style.chart.legend.fontSize / R.value * Math.min(t, e), z.value.pointerRadius = M.value.style.chart.layout.pointer.circle.radius / R.value * Math.min(t, e), z.value.trackSize = M.value.style.chart.layout.track.size / R.value * Math.min(t, e), z.value.pointerStrokeWidth = ue({
305
+ relator: Math.min(e, t),
306
+ adjuster: R.value,
307
+ source: M.value.style.chart.layout.pointer.strokeWidth,
308
+ threshold: 2,
309
+ fallback: 2
310
+ }), z.value.markerOffset = ue({
311
+ relator: Math.max(e, t),
312
+ adjuster: R.value,
313
+ source: M.value.style.chart.layout.markers.offsetY + 3,
314
+ threshold: 2,
315
+ fallback: 2
316
+ }), z.value.segmentFontSize = ue({
317
+ relator: Math.min(e, t),
318
+ adjuster: R.value,
319
+ source: M.value.style.chart.layout.segmentNames.fontSize,
320
+ threshold: 8,
321
+ fallback: 8
322
+ });
323
+ }), Jt();
324
+ });
325
+ W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = k.value.parentNode, W.value.observe(G.value);
326
+ }
327
+ Jt();
328
+ }
329
+ Ne(() => {
330
+ Yt();
331
+ }), Me(() => {
332
+ W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
333
+ });
334
+ function Xt(e) {
335
+ let t = [];
336
+ (L.value.series || []).forEach((e) => {
337
+ t.push(e.from || 0), t.push(e.to || 0);
338
+ }), B.value = Math.max(...t), V.value = Math.min(...t);
339
+ let n = M.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
340
+ function i() {
341
+ H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), H.value !== e && requestAnimationFrame(i);
342
+ }
343
+ i();
344
+ }
345
+ let J = d(() => {
346
+ let e = M.value.responsive ? Math.min(z.value.width, z.value.height) : z.value.width, t = 2.5 / M.value.style.chart.layout.radiusRatio;
347
+ return {
348
+ arcs: e / t,
349
+ gradients: e / (t * 1.1),
350
+ base: M.value.responsive ? z.value.height / 1.618 : z.value.height * .7,
351
+ ratingBase: M.value.responsive ? z.value.height / 2 + z.value.height / 4 : z.value.height * .9,
352
+ pointerSize: M.value.responsive ? Math.min(z.value.width, z.value.height) / 3 : z.value.width / 3.2
353
+ };
354
+ }), Y = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), Zt = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), X = d(() => Y.value.map((e) => J.value.arcs * M.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = d(() => {
355
+ let { x: e, y: t } = l({
356
+ initX: Y.value[0].firstSeparator.x,
357
+ initY: Y.value[0].firstSeparator.y,
358
+ centerX: U.value.x1,
359
+ centerY: U.value.y1,
360
+ offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
361
+ }), { x: n, y: r } = l({
362
+ initX: Y.value[0].startX,
363
+ initY: Y.value[0].startY,
364
+ centerX: U.value.x1,
365
+ centerY: U.value.y1,
366
+ offset: M.value.style.chart.layout.segmentSeparators.offsetOut
367
+ });
368
+ return {
369
+ x1: e,
370
+ y1: t,
371
+ x2: n,
372
+ y2: r
373
+ };
374
+ }), $t = d(() => Y.value.map((e) => {
375
+ let { x: t, y: n } = l({
376
+ initX: e.separator.x,
377
+ initY: e.separator.y,
378
+ centerX: U.value.x1,
379
+ centerY: U.value.y1,
380
+ offset: -M.value.style.chart.layout.segmentSeparators.offsetIn
381
+ }), { x: r, y: i } = l({
382
+ initX: e.endX,
383
+ initY: e.endY,
384
+ centerX: U.value.x1,
385
+ centerY: U.value.y1,
386
+ offset: M.value.style.chart.layout.segmentSeparators.offsetOut
387
+ });
388
+ return {
389
+ x1: t,
390
+ y1: n,
391
+ x2: r,
392
+ y2: i
393
+ };
394
+ }));
395
+ function en(e) {
396
+ if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
397
+ let t = 0;
398
+ return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
399
+ }
400
+ let tn = d(() => en(Y.value.map((e) => e.proportion * 100))), nn = d(() => ce({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * z.value.trackSize)), rn = d(() => {
401
+ let e = V.value >= 0 ? -V.value : Math.abs(V.value);
402
+ return r({
403
+ radius: M.value.style.chart.layout.indicatorArc.radius * z.value.trackSize,
404
+ centerX: z.value.width / 2,
405
+ centerY: J.value.base,
406
+ percentage: oe((H.value + e) / (B.value + e))
407
+ });
408
+ }), Z = x(!1);
409
+ function an(e) {
410
+ Z.value = e, Ot.value += 1;
411
+ }
412
+ let Q = x(!1);
413
+ function $() {
414
+ Q.value = !Q.value;
415
+ }
416
+ async function on({ scale: e = 2 } = {}) {
417
+ if (!k.value) return;
418
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
419
+ domElement: k.value,
420
+ base64: !0,
421
+ img: !0,
422
+ scale: e
423
+ });
424
+ return {
425
+ imageUri: i,
426
+ base64: a,
427
+ title: M.value.style.chart.title.text,
428
+ width: t,
429
+ height: n,
430
+ aspectRatio: r
431
+ };
432
+ }
433
+ let sn = d(() => M.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = he({
434
+ svg: I,
435
+ title: d(() => M.value.style.chart.title),
436
+ backgroundColor: sn
437
+ });
438
+ async function un({ isCb: e }) {
439
+ j.value = !0, await ke();
440
+ try {
441
+ if (e) {
442
+ let { blob: e, url: t, text: n, dataUrl: r } = await ln();
443
+ await Promise.resolve(M.value.userOptions.callbacks.svg({
444
+ blob: e,
445
+ url: t,
446
+ text: n,
447
+ dataUrl: r
448
+ }));
449
+ } else await Promise.resolve(cn());
450
+ } finally {
451
+ j.value = !1;
452
+ }
453
+ }
454
+ function dn(e) {
455
+ if (e?.stage === "start") {
456
+ A.value = !0;
457
+ return;
458
+ }
459
+ if (e?.stage === "end") {
460
+ A.value = !1;
461
+ return;
462
+ }
463
+ Ut();
464
+ }
465
+ async function fn() {
466
+ if (Tt("copyAlt", {
467
+ config: M.value,
468
+ dataset: L.value
469
+ }), !M.value.userOptions.callbacks.altCopy) {
470
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
471
+ return;
472
+ }
473
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
474
+ config: M.value,
475
+ dataset: L.value
476
+ }));
477
+ }
478
+ return be({
479
+ getImage: on,
480
+ generatePdf: Ht,
481
+ generateImage: Ut,
482
+ generateSvg: un,
483
+ toggleAnnotator: $,
484
+ toggleFullscreen: an,
485
+ copyAlt: fn
486
+ }), (e, n) => (b(), m("div", {
487
+ class: Ae(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
+ ref_key: "gaugeChart",
489
+ ref: k,
490
+ id: `vue-ui-gauge_${O.value}`,
491
+ style: je(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
492
+ onMouseenter: n[0] ||= () => T(Lt)(!0),
493
+ onMouseleave: n[1] ||= () => T(Lt)(!1)
494
+ }, [
495
+ M.value.userOptions.buttons.annotator ? (b(), f(T(yt), {
496
+ key: 0,
497
+ svgRef: T(I),
498
+ backgroundColor: M.value.style.chart.backgroundColor,
499
+ color: M.value.style.chart.color,
500
+ active: Q.value,
501
+ isCursorPointer: Pt.value,
502
+ onClose: $
503
+ }, {
504
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
506
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
507
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
508
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
509
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
510
+ _: 3
511
+ }, 8, [
512
+ "svgRef",
513
+ "backgroundColor",
514
+ "color",
515
+ "active",
516
+ "isCursorPointer"
517
+ ])) : p("", !0),
518
+ Wt.value ? (b(), m("div", {
519
+ key: 1,
520
+ ref_key: "noTitle",
521
+ ref: Mt,
522
+ class: "vue-data-ui-no-title-space",
523
+ style: "height:36px; width: 100%;background:transparent"
524
+ }, null, 512)) : p("", !0),
525
+ M.value.style.chart.title.text ? (b(), m("div", {
526
+ key: 2,
527
+ ref_key: "chartTitle",
528
+ ref: kt,
529
+ style: "width:100%;background:transparent;padding-bottom:12px"
530
+ }, [(b(), f(ye, {
531
+ key: `title_${Nt.value}`,
532
+ config: {
533
+ title: {
534
+ cy: "gauge-div-title",
535
+ ...M.value.style.chart.title
536
+ },
537
+ subtitle: {
538
+ cy: "gauge-div-subtitle",
539
+ ...M.value.style.chart.title.subtitle
540
+ }
541
+ }
542
+ }, {
543
+ default: E(() => [M.value.translations.base && T(N).base ? (b(), m("span", ze, w(M.value.translations.base) + ": " + w(T(N).base), 1)) : p("", !0)]),
544
+ _: 1
545
+ }, 8, ["config"]))], 512)) : p("", !0),
546
+ M.value.userOptions.show && Et.value && (T(Rt) || T(F)) ? (b(), f(T(bt), {
547
+ ref_key: "details",
548
+ ref: Dt,
549
+ key: `user_options_${Ot.value}`,
550
+ backgroundColor: M.value.style.chart.backgroundColor,
551
+ color: M.value.style.chart.color,
552
+ isImaging: T(Vt),
553
+ isPrinting: T(Bt),
554
+ uid: O.value,
555
+ hasXls: !1,
556
+ hasPdf: M.value.userOptions.buttons.pdf,
557
+ hasImg: M.value.userOptions.buttons.img,
558
+ hasSvg: M.value.userOptions.buttons.svg,
559
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
560
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
561
+ isFullscreen: Z.value,
562
+ titles: { ...M.value.userOptions.buttonTitles },
563
+ chartElement: k.value,
564
+ callbacks: M.value.userOptions.callbacks,
565
+ printScale: M.value.userOptions.print.scale,
566
+ position: M.value.userOptions.position,
567
+ hasAnnotator: M.value.userOptions.buttons.annotator,
568
+ isAnnotation: Q.value,
569
+ isCursorPointer: Pt.value,
570
+ onToggleFullscreen: an,
571
+ onGeneratePdf: T(Ht),
572
+ onGenerateImage: dn,
573
+ onGenerateSvg: un,
574
+ onToggleAnnotator: $,
575
+ onCopyAlt: fn,
576
+ style: je({ visibility: T(Rt) ? T(F) ? "visible" : "hidden" : "visible" })
577
+ }, De({ _: 2 }, [
578
+ e.$slots.menuIcon ? {
579
+ name: "menuIcon",
580
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(_({
581
+ isOpen: t,
582
+ color: n
583
+ })), void 0, !0)]),
584
+ key: "0"
585
+ } : void 0,
586
+ e.$slots.optionPdf ? {
587
+ name: "optionPdf",
588
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
589
+ key: "1"
590
+ } : void 0,
591
+ e.$slots.optionImg ? {
592
+ name: "optionImg",
593
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
594
+ key: "2"
595
+ } : void 0,
596
+ e.$slots.optionSvg ? {
597
+ name: "optionSvg",
598
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
599
+ key: "3"
600
+ } : void 0,
601
+ e.$slots.optionFullscreen ? {
602
+ name: "optionFullscreen",
603
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(_({
604
+ toggleFullscreen: t,
605
+ isFullscreen: n
606
+ })), void 0, !0)]),
607
+ key: "4"
608
+ } : void 0,
609
+ e.$slots.optionAnnotator ? {
610
+ name: "optionAnnotator",
611
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(_({
612
+ toggleAnnotator: t,
613
+ isAnnotator: n
614
+ })), void 0, !0)]),
615
+ key: "5"
616
+ } : void 0,
617
+ e.$slots.optionAltCopy ? {
618
+ name: "optionAltCopy",
619
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
620
+ key: "6"
621
+ } : void 0,
622
+ e.$slots["custom-menu-before"] ? {
623
+ name: "custom-menu-before",
624
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
625
+ key: "7"
626
+ } : void 0,
627
+ e.$slots["custom-menu-after"] ? {
628
+ name: "custom-menu-after",
629
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
630
+ key: "8"
631
+ } : void 0
632
+ ]), 1032, [
633
+ "backgroundColor",
634
+ "color",
635
+ "isImaging",
636
+ "isPrinting",
637
+ "uid",
638
+ "hasPdf",
639
+ "hasImg",
640
+ "hasSvg",
641
+ "hasFullscreen",
642
+ "hasAltCopy",
643
+ "isFullscreen",
644
+ "titles",
645
+ "chartElement",
646
+ "callbacks",
647
+ "printScale",
648
+ "position",
649
+ "hasAnnotator",
650
+ "isAnnotation",
651
+ "isCursorPointer",
652
+ "onGeneratePdf",
653
+ "style"
654
+ ])) : p("", !0),
655
+ (b(), m("svg", {
656
+ ref_key: "svgRef",
657
+ ref: I,
658
+ xmlns: T(ie),
659
+ class: Ae({
660
+ "vue-data-ui-fullscreen--on": Z.value,
661
+ "vue-data-ui-fulscreen--off": !Z.value
662
+ }),
663
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
664
+ style: je(`max-width:100%;overflow:hidden !important;background:transparent;color:${M.value.style.chart.color}`)
665
+ }, [
666
+ Oe(T(xt)),
667
+ e.$slots["chart-background"] ? (b(), m("foreignObject", {
668
+ key: 0,
669
+ x: 0,
670
+ y: 0,
671
+ width: z.value.width <= 0 ? 10 : z.value.width,
672
+ height: z.value.height <= 0 ? 10 : z.value.height,
673
+ style: { pointerEvents: "none" }
674
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : p("", !0),
675
+ h("defs", null, [h("radialGradient", {
676
+ id: `gradient_${O.value}`,
677
+ cx: "50%",
678
+ cy: "50%",
679
+ r: "50%",
680
+ fx: "50%",
681
+ fy: "50%"
682
+ }, [
683
+ h("stop", {
684
+ offset: "0%",
685
+ "stop-color": T(s)("#FFFFFF", 1)
686
+ }, null, 8, Ue),
687
+ h("stop", {
688
+ offset: "80%",
689
+ "stop-color": T(s)("#FFFFFF", M.value.style.chart.layout.track.gradientIntensity)
690
+ }, null, 8, We),
691
+ h("stop", {
692
+ offset: "100%",
693
+ "stop-color": T(s)("#FFFFFF", 1)
694
+ }, null, 8, Ge)
695
+ ], 8, He)]),
696
+ h("defs", null, [h("filter", {
697
+ id: `blur_${O.value}`,
698
+ x: "-50%",
699
+ y: "-50%",
700
+ width: "200%",
701
+ height: "200%"
702
+ }, [h("feGaussianBlur", {
703
+ in: "SourceGraphic",
704
+ stdDeviation: 100 / M.value.style.chart.layout.track.gradientIntensity
705
+ }, null, 8, qe)], 8, Ke)]),
706
+ e.$slots.pattern ? (b(), m("g", Je, [(b(!0), m(u, null, S(Y.value, (t, n) => (b(), m("defs", null, [C(e.$slots, "pattern", v({ ref_for: !0 }, {
707
+ seriesIndex: n,
708
+ patternId: `pattern_${O.value}_${n}`
709
+ }), void 0, !0)]))), 256))])) : p("", !0),
710
+ (b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("path", {
711
+ key: `arc_${t}`,
712
+ d: e.arcSlice,
713
+ fill: e.color,
714
+ stroke: M.value.style.chart.backgroundColor,
715
+ "stroke-linecap": "round"
716
+ }, null, 8, Ye))), 128)),
717
+ e.$slots.pattern ? (b(!0), m(u, { key: 2 }, S(Y.value, (e, t) => (b(), m("path", {
718
+ key: `arc_${t}`,
719
+ d: e.arcSlice,
720
+ fill: `url(#pattern_${O.value}_${t})`,
721
+ stroke: M.value.style.chart.backgroundColor,
722
+ "stroke-linecap": "round"
723
+ }, null, 8, Xe))), 128)) : p("", !0),
724
+ M.value.style.chart.layout.indicatorArc.show ? (b(), m("path", {
725
+ key: 3,
726
+ d: rn.value,
727
+ fill: M.value.style.chart.layout.indicatorArc.fill
728
+ }, null, 8, Ze)) : p("", !0),
729
+ M.value.style.chart.layout.segmentNames.show && M.value.style.chart.layout.segmentNames.curved ? (b(), m(u, { key: 4 }, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("path", {
730
+ id: `curve_${O.value}_${t}`,
731
+ d: `M ${U.value.x1},${U.value.y1} m -${X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 ${2 * X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 -${2 * X.value[t]},0`,
732
+ fill: "transparent"
733
+ }, null, 8, Qe))), 256)), (b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("text", {
734
+ fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
735
+ "font-size": K.value,
736
+ "font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
737
+ "text-anchor": "middle"
738
+ }, [h("textPath", {
739
+ href: `#curve_${O.value}_${t}`,
740
+ startOffset: tn.value[t]
741
+ }, w(e.name || ""), 9, et)], 8, $e))), 256))], 64)) : p("", !0),
742
+ M.value.style.chart.layout.segmentNames.show && !M.value.style.chart.layout.segmentNames.curved ? (b(!0), m(u, { key: 5 }, S(Zt.value, (e, n) => (b(), m("text", {
743
+ class: "vue-ui-gauge-label-flat",
744
+ "text-anchor": T(ae)(e, !1, 12).anchor,
745
+ fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
746
+ "font-size": K.value,
747
+ "font-weight": M.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
748
+ innerHTML: T(t)({
749
+ content: String(e.name ?? ""),
750
+ fontSize: K.value,
751
+ fill: M.value.style.chart.layout.segmentNames.useSerieColor ? e.color : M.value.style.chart.layout.segmentNames.color,
752
+ x: e.center.endX,
753
+ y: e.center.endY
754
+ })
755
+ }, null, 8, tt))), 256)) : p("", !0),
756
+ M.value.style.chart.layout.track.useGradient ? (b(!0), m(u, { key: 6 }, S(nn.value, (e, t) => (b(), m("path", {
757
+ key: `arc_${t}`,
758
+ d: e.arcSlice,
759
+ fill: "#FFFFFF",
760
+ stroke: "none",
761
+ "stroke-linecap": "round",
762
+ filter: `url(#blur_${O.value})`
763
+ }, null, 8, nt))), 128)) : p("", !0),
764
+ M.value.style.chart.layout.segmentSeparators.show ? (b(), m(u, { key: 7 }, [
765
+ h("line", v(Qt.value, {
766
+ stroke: M.value.style.chart.backgroundColor,
767
+ "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
768
+ "stroke-linecap": "round"
769
+ }), null, 16, rt),
770
+ h("line", v(Qt.value, {
771
+ stroke: M.value.style.chart.layout.segmentSeparators.stroke,
772
+ "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
773
+ "stroke-linecap": "round"
774
+ }), null, 16, it),
775
+ (b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
776
+ stroke: M.value.style.chart.backgroundColor,
777
+ "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
778
+ "stroke-linecap": "round"
779
+ }), null, 16, at))), 256)),
780
+ (b(!0), m(u, null, S($t.value, (e) => (b(), m("line", v({ ref_for: !0 }, e, {
781
+ stroke: M.value.style.chart.layout.segmentSeparators.stroke,
782
+ "stroke-width": M.value.style.chart.layout.segmentSeparators.strokeWidth,
783
+ "stroke-linecap": "round"
784
+ }), null, 16, ot))), 256))
785
+ ], 64)) : p("", !0),
786
+ M.value.style.chart.layout.markers.show ? (b(), m("g", st, [(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("text", {
787
+ x: T(l)({
788
+ centerX: U.value.x1,
789
+ centerY: J.value.base,
790
+ initX: e.center.startX,
791
+ initY: e.center.startY,
792
+ offset: z.value.markerOffset
793
+ }).x,
794
+ y: T(l)({
795
+ centerX: U.value.x1,
796
+ centerY: J.value.base,
797
+ initX: e.center.startX,
798
+ initY: e.center.startY,
799
+ offset: z.value.markerOffset
800
+ }).y,
801
+ "text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
802
+ "font-size": z.value.labelFontSize * M.value.style.chart.layout.markers.fontSizeRatio,
803
+ "font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
804
+ fill: M.value.style.chart.layout.markers.color
805
+ }, w(T(ne)(M.value.style.chart.layout.markers.formatter, e.from, T(o)({
806
+ p: M.value.style.chart.layout.markers.prefix,
807
+ v: e.from,
808
+ s: M.value.style.chart.layout.markers.suffix,
809
+ r: M.value.style.chart.layout.markers.roundingValue
810
+ }))), 9, ct))), 256))])) : p("", !0),
811
+ M.value.style.chart.layout.markers.show ? (b(), m("text", {
812
+ key: 9,
813
+ x: T(l)({
814
+ centerX: z.value.width / 2,
815
+ centerY: J.value.base,
816
+ initX: Y.value.at(-1).endX,
817
+ initY: Y.value.at(-1).endY,
818
+ offset: z.value.markerOffset
819
+ }).x,
820
+ y: T(l)({
821
+ centerX: z.value.width / 2,
822
+ centerY: J.value.base,
823
+ initX: Y.value.at(-1).endX,
824
+ initY: Y.value.at(-1).endY,
825
+ offset: z.value.markerOffset
826
+ }).y,
827
+ "text-anchor": "start",
828
+ "font-size": z.value.labelFontSize * M.value.style.chart.layout.markers.fontSizeRatio,
829
+ "font-weight": `${M.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
830
+ fill: M.value.style.chart.layout.markers.color
831
+ }, w(T(ne)(M.value.style.chart.layout.markers.formatter, B.value, T(o)({
832
+ p: M.value.style.chart.layout.markers.prefix,
833
+ v: B.value,
834
+ s: M.value.style.chart.layout.markers.suffix,
835
+ r: M.value.style.chart.layout.markers.roundingValue
836
+ }))), 9, lt)) : p("", !0),
837
+ M.value.style.chart.layout.pointer.show ? (b(), m(u, { key: 10 }, [M.value.style.chart.layout.pointer.type === "rounded" ? (b(), m("g", ut, [
838
+ isNaN(U.value.x2) ? p("", !0) : (b(), m("line", {
839
+ key: 0,
840
+ x1: U.value.x1,
841
+ y1: U.value.y1,
842
+ x2: U.value.x2,
843
+ y2: U.value.y2,
844
+ stroke: M.value.style.chart.layout.pointer.stroke,
845
+ "stroke-width": z.value.pointerStrokeWidth,
846
+ "stroke-linecap": "round"
847
+ }, null, 8, dt)),
848
+ isNaN(U.value.x2) ? p("", !0) : (b(), m("line", {
849
+ key: 1,
850
+ x1: U.value.x1,
851
+ y1: U.value.y1,
852
+ x2: U.value.x2,
853
+ y2: U.value.y2,
854
+ stroke: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
855
+ "stroke-linecap": "round",
856
+ "stroke-width": z.value.pointerStrokeWidth * .7
857
+ }, null, 8, ft)),
858
+ !isNaN(U.value.x2) && M.value.style.chart.layout.track.useGradient ? (b(), m("line", {
859
+ key: 2,
860
+ x1: U.value.x1,
861
+ y1: U.value.y1,
862
+ x2: U.value.x2,
863
+ y2: U.value.y2,
864
+ stroke: "white",
865
+ "stroke-linecap": "round",
866
+ "stroke-width": z.value.pointerStrokeWidth * .3,
867
+ filter: `url(#blur_${O.value})`
868
+ }, null, 8, pt)) : p("", !0)
869
+ ])) : (b(), m("g", mt, [Kt.value ? (b(), m("path", {
870
+ key: 0,
871
+ d: Kt.value,
872
+ fill: M.value.style.chart.layout.pointer.useRatingColor ? qt.value : M.value.style.chart.layout.pointer.color,
873
+ stroke: M.value.style.chart.layout.pointer.stroke,
874
+ "stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
875
+ "stroke-linejoin": "round"
876
+ }, null, 8, ht)) : p("", !0)])), h("circle", {
877
+ cx: z.value.width / 2,
878
+ cy: J.value.base,
879
+ fill: M.value.style.chart.layout.pointer.circle.color,
880
+ r: z.value.pointerRadius <= 0 ? 1e-4 : z.value.pointerRadius,
881
+ "stroke-width": M.value.style.chart.layout.pointer.circle.strokeWidth,
882
+ stroke: M.value.style.chart.layout.pointer.circle.stroke
883
+ }, null, 8, gt)], 64)) : p("", !0),
884
+ M.value.style.chart.legend.show ? (b(), m("text", {
885
+ key: 11,
886
+ x: z.value.width / 2,
887
+ y: J.value.ratingBase,
888
+ "text-anchor": "middle",
889
+ "font-size": z.value.legendFontSize,
890
+ "font-weight": "bold",
891
+ fill: M.value.style.chart.legend.useRatingColor ? qt.value : M.value.style.chart.legend.color
892
+ }, w(T(ne)(M.value.style.chart.legend.formatter, H.value, T(o)({
893
+ p: M.value.style.chart.legend.prefix + (M.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
894
+ v: H.value,
895
+ s: M.value.style.chart.legend.suffix,
896
+ r: M.value.style.chart.legend.roundingValue
897
+ }))), 9, _t)) : p("", !0),
898
+ C(e.$slots, "svg", { svg: {
899
+ ...z.value,
900
+ isPrintingImg: T(Bt) || T(Vt) || A.value,
901
+ isPrintingSvg: j.value
902
+ } }, void 0, !0)
903
+ ], 14, Be)),
904
+ e.$slots.watermark ? (b(), m("div", vt, [C(e.$slots, "watermark", y(_({ isPrinting: T(Bt) || T(Vt) || A.value || j.value })), void 0, !0)])) : p("", !0),
905
+ h("div", {
906
+ ref_key: "chartLegend",
907
+ ref: At
908
+ }, [C(e.$slots, "legend", { legend: L.value }, void 0, !0)], 512),
909
+ e.$slots.source ? (b(), m("div", {
910
+ key: 5,
911
+ ref_key: "source",
912
+ ref: jt,
913
+ dir: "auto"
914
+ }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
915
+ C(e.$slots, "skeleton", {}, () => [T(It) ? (b(), f(me, { key: 0 })) : p("", !0)], !0)
916
+ ], 46, Re));
917
+ }
918
+ }, [["__scopeId", "data-v-a2cc058b"]]);
919
+ //#endregion
920
+ export { Le as n, yt as t };