vue-data-ui 3.17.13 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1550 +0,0 @@
1
- import { computed as g, watch as z, nextTick as te, onBeforeUnmount as ot, openBlock as f, createElementBlock as y, Fragment as Z, renderList as ge, createElementVNode as M, createCommentVNode as _, ref as L, defineAsyncComponent as mt, toRefs as qt, shallowRef as bt, onMounted as kt, watchEffect as Gt, normalizeStyle as H, toDisplayString as Le, createBlock as _e, renderSlot as pe, normalizeProps as Ze, guardReactiveProps as Je, unref as b, createVNode as Ot, withCtx as jt, createTextVNode as zt } from "vue";
2
- import { j as Yt, t as wt, aC as Qe, o as xt, q as $t, r as Xt, v as Ve, Y as Kt, ap as Ut, c as St, b as Ht, O as Zt, N as Jt, s as Qt, X as ea, u as We, V as ta, G as Mt, k as et, l as tt, aD as aa } from "./lib-DMzrGQHK.js";
3
- import { t as la, u as na } from "./useResponsive-DfdjqQps.js";
4
- import { u as ra } from "./useConfig-CG4HT3wS.js";
5
- import { u as ua, B as oa } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as at } from "./useNestedProp-DH0BEVVS.js";
7
- import { u as sa } from "./useThemeCheck-C9Ccl7U9.js";
8
- import { u as ia } from "./useTimeLabels-Cv0tD9In.js";
9
- import { u as da } from "./useChartAccessibility-cp6XQtqi.js";
10
- import { u as ca } from "./usePrefersMotion-Co0nj1eS.js";
11
- import va from "./vue_ui_sparkline-CQ8DJVJx.js";
12
- import { A as ha } from "./A11yDataTable-BpmuNomI.js";
13
- import { _ as fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const pa = {
15
- key: 0,
16
- style: { "pointer-events": "none" }
17
- }, ga = ["r", "fill", "filter"], ya = ["begin", "dur", "repeatCount", "fill", "calcMode", "keySplines", "keyTimes", "keyPoints"], ma = ["href"], ba = ["dur", "repeatCount", "fill", "values"], ka = ["r", "fill"], wa = ["begin", "dur", "repeatCount", "calcMode", "keySplines", "keyTimes", "keyPoints"], xa = ["href"], $a = ["dur", "repeatCount"], Sa = {
18
- __name: "SparklinePulse",
19
- props: {
20
- uid: { type: String, required: !0 },
21
- svgRef: { type: Object, default: null },
22
- pulsePathId: { type: String, required: !0 },
23
- pulsePathLength: { type: Number, required: !0 },
24
- pulseDur: { type: String, required: !0 },
25
- pulseBegin: { type: String, required: !0 },
26
- pulseRepeatCount: { type: String, required: !0 },
27
- pulseFillMode: { type: String, default: void 0 },
28
- pulseKeyPoints: { type: String, required: !0 },
29
- pulseMotion: { type: Object, required: !0 },
30
- pulse: { type: Object, required: !0 },
31
- pulseTrail: { type: Object, required: !0 },
32
- pulseTrailLength: { type: Number, required: !0 },
33
- prefersReducedMotion: { type: Boolean, required: !0 },
34
- loading: { type: Boolean, required: !0 },
35
- isBar: { type: Boolean, required: !0 }
36
- },
37
- setup(e) {
38
- const a = e, n = g(() => Math.min(a.pulseTrailLength, 45)), s = g(() => !!a.pulse?.show && !a.isBar && !a.prefersReducedMotion && !a.loading && Number(a.pulsePathLength) > 0);
39
- function o() {
40
- const i = a.svgRef?.value;
41
- i && (typeof i.pauseAnimations == "function" && i.pauseAnimations(), typeof i.setCurrentTime == "function" && i.setCurrentTime(0), typeof i.unpauseAnimations == "function" && i.unpauseAnimations());
42
- }
43
- function d(i, S) {
44
- if (typeof i != "string") return i;
45
- const v = i.trim().match(/^([\d.]+)\s*(ms|s)$/);
46
- if (!v) return i;
47
- const x = Number(v[1]), I = v[2];
48
- return Number.isNaN(x) ? i : `${x + S}${I}`;
49
- }
50
- function h(i) {
51
- return (n.value - i) / n.value * a.pulse.radius;
52
- }
53
- function m(i) {
54
- const S = a.pulse.trail.opacity, v = (n.value - i) / n.value, x = i === 0 ? 1 : v * S;
55
- return `0;${x};${x};0`;
56
- }
57
- return z(
58
- () => a.loading,
59
- async (i) => {
60
- if (i) {
61
- o();
62
- return;
63
- }
64
- await te(), o();
65
- }
66
- ), z(
67
- () => a.pulsePathId,
68
- async () => {
69
- await te(), o();
70
- }
71
- ), ot(() => {
72
- o();
73
- }), (i, S) => s.value ? (f(), y("g", pa, [
74
- (f(!0), y(Z, null, ge(n.value, (v, x) => (f(), y(Z, null, [
75
- x % 3 === 0 ? (f(), y("circle", {
76
- key: `sparkline_dot_${x}_${e.pulsePathId}`,
77
- r: h(x),
78
- fill: e.pulse.color,
79
- filter: `url(#sparkline_pulse_glow_${e.uid})`,
80
- opacity: "0"
81
- }, [
82
- M("animateMotion", {
83
- begin: d(e.pulseBegin, x * 10),
84
- dur: e.pulseDur,
85
- repeatCount: e.pulseRepeatCount,
86
- fill: e.pulseFillMode,
87
- calcMode: e.pulseMotion.calcMode,
88
- keySplines: e.pulseMotion.keySplines || void 0,
89
- keyTimes: e.pulseMotion.keyTimes || void 0,
90
- keyPoints: e.pulseKeyPoints,
91
- rotate: "auto"
92
- }, [
93
- M("mpath", {
94
- href: `#${e.pulsePathId}`
95
- }, null, 8, ma)
96
- ], 8, ya),
97
- M("animate", {
98
- attributeName: "opacity",
99
- dur: e.pulseDur,
100
- repeatCount: e.pulseRepeatCount,
101
- fill: e.pulseFillMode,
102
- values: m(x),
103
- keyTimes: "0;0.1;0.9;1"
104
- }, null, 8, ba)
105
- ], 8, ga)) : _("", !0)
106
- ], 64))), 256)),
107
- (f(), y("circle", {
108
- key: `sparkline_halo_${e.pulsePathId}`,
109
- r: Math.max(e.pulse.radius * 1.3),
110
- fill: e.pulse.color,
111
- opacity: "0"
112
- }, [
113
- M("animateMotion", {
114
- begin: e.pulseBegin,
115
- dur: e.pulseDur,
116
- repeatCount: e.pulseRepeatCount,
117
- calcMode: e.pulseMotion.calcMode,
118
- keySplines: e.pulseMotion.keySplines || void 0,
119
- keyTimes: e.pulseMotion.keyTimes || void 0,
120
- keyPoints: e.pulseKeyPoints,
121
- rotate: "auto"
122
- }, [
123
- M("mpath", {
124
- href: `#${e.pulsePathId}`
125
- }, null, 8, xa)
126
- ], 8, wa),
127
- M("animate", {
128
- attributeName: "opacity",
129
- values: "0;0.35;0.35;0",
130
- keyTimes: "0;0.15;0.85;1",
131
- dur: e.pulseDur,
132
- repeatCount: e.pulseRepeatCount
133
- }, null, 8, $a)
134
- ], 8, ka))
135
- ])) : _("", !0);
136
- }
137
- }, qe = {
138
- canvas: null,
139
- ctx: null
140
- };
141
- function Ma() {
142
- if (typeof document > "u")
143
- throw new Error(
144
- "color-utils: document is not available (browser-only)."
145
- );
146
- if (!qe.canvas) {
147
- const e = document.createElement("canvas");
148
- e.width = 1, e.height = 1;
149
- const a = e.getContext("2d", { willReadFrequently: !0 });
150
- if (!a)
151
- throw new Error("color-utils: unable to get 2D canvas context.");
152
- qe.canvas = e, qe.ctx = a;
153
- }
154
- return qe.ctx;
155
- }
156
- function Aa(e) {
157
- return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
158
- }
159
- function it(e) {
160
- return e < 0 ? 0 : e > 1 ? 1 : e;
161
- }
162
- function Ca(e, a = null) {
163
- if (typeof e != "string" || e.trim().length === 0)
164
- throw new Error("colorToRgba: inputColor must be a non-empty string.");
165
- const n = e.trim();
166
- if (n.toLowerCase() === "transparent")
167
- return { red: 0, green: 0, blue: 0, alpha: 0 };
168
- const s = La(
169
- n,
170
- a
171
- ), o = Ma();
172
- o.clearRect(0, 0, 1, 1), o.fillStyle = "#000";
173
- const d = o.fillStyle;
174
- if (o.fillStyle = s, o.fillStyle === d && !_a(s))
175
- throw new Error(
176
- `colorToRgba: unsupported or invalid color "${e}".`
177
- );
178
- o.fillRect(0, 0, 1, 1);
179
- const m = o.getImageData(0, 0, 1, 1).data;
180
- return {
181
- red: m[0],
182
- green: m[1],
183
- blue: m[2],
184
- alpha: m[3] / 255
185
- };
186
- }
187
- function At(e, a = null) {
188
- if (!Array.isArray(e) || e.length === 0)
189
- throw new Error("colorsToRgba: colors must be a non-empty array.");
190
- const n = new Array(e.length);
191
- for (let s = 0; s < e.length; s += 1)
192
- n[s] = Ca(e[s], a);
193
- return n;
194
- }
195
- function La(e, a = null) {
196
- return e !== "currentColor" || typeof window > "u" || !a ? e : window.getComputedStyle(a).color || e;
197
- }
198
- function _a(e) {
199
- const a = e.trim().toLowerCase();
200
- return a === "black" || a === "#000" || a === "#000000" || a === "rgb(0, 0, 0)" || a === "rgba(0, 0, 0, 1)" || a === "rgba(0, 0, 0, 0)";
201
- }
202
- function xe(e) {
203
- const a = it(e / 255);
204
- return a <= 0.04045 ? a / 12.92 : Math.pow((a + 0.055) / 1.055, 2.4);
205
- }
206
- function lt(e) {
207
- const a = it(e);
208
- let n;
209
- return a <= 31308e-7 ? n = a * 12.92 : n = 1.055 * Math.pow(a, 1 / 2.4) - 0.055, Aa(n * 255);
210
- }
211
- function Ct(e, a, n, s) {
212
- const o = it(n);
213
- if (s === "linearRGB") {
214
- const d = xe(e.red), h = xe(e.green), m = xe(e.blue), i = xe(a.red), S = xe(a.green), v = xe(a.blue), x = d + (i - d) * o, I = h + (S - h) * o, B = m + (v - m) * o;
215
- return {
216
- red: lt(x),
217
- green: lt(I),
218
- blue: lt(B),
219
- alpha: e.alpha + (a.alpha - e.alpha) * o
220
- };
221
- }
222
- return {
223
- red: e.red + (a.red - e.red) * o,
224
- green: e.green + (a.green - e.green) * o,
225
- blue: e.blue + (a.blue - e.blue) * o,
226
- alpha: e.alpha + (a.alpha - e.alpha) * o
227
- };
228
- }
229
- function j(e, a, n) {
230
- let s = e;
231
- return s < a && (s = a), s > n && (s = n), s;
232
- }
233
- function ae(e, a) {
234
- const n = Math.pow(10, a);
235
- return Math.round(e * n) / n;
236
- }
237
- function ie(e) {
238
- return Number.isFinite(e) ? e.toString() : "0";
239
- }
240
- function nt(e) {
241
- const n = j(e, 0, 255).toString(16);
242
- return n.length === 1 ? "0" + n : n;
243
- }
244
- function Pa(e) {
245
- if (typeof e != "string") return;
246
- const a = Number.parseFloat(e);
247
- return Number.isFinite(a) ? a : void 0;
248
- }
249
- function Na(e, a, n, s = !0) {
250
- const o = n - a;
251
- if (o === 0) return 0;
252
- const d = (e - a) / o;
253
- return s ? j(d, 0, 1) : d;
254
- }
255
- const Lt = "http://www.w3.org/2000/svg";
256
- function Ia(e) {
257
- if (typeof document > "u")
258
- throw new Error(
259
- "SvgPathGradientAsync: document is not available (browser-only implementation)."
260
- );
261
- const a = document.createElementNS(Lt, "svg");
262
- a.setAttribute("width", "0"), a.setAttribute("height", "0"), a.setAttribute("viewBox", "0 0 0 0"), a.style.position = "absolute", a.style.left = "-10000px", a.style.top = "-10000px", a.style.visibility = "hidden", a.style.pointerEvents = "none";
263
- const n = document.createElementNS(Lt, "path");
264
- return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), a.appendChild(n), document.body.appendChild(a), { svgElement: a, pathElement: n };
265
- }
266
- function rt(e) {
267
- if (e)
268
- try {
269
- e.svgElement?.remove?.();
270
- } catch {
271
- }
272
- }
273
- function Ta(e, a, n) {
274
- if (typeof n == "number" && n > 0)
275
- return n;
276
- let s = a * 0.75;
277
- s < 0.5 && (s = 0.5), s > 8 && (s = 8);
278
- const o = e / 2;
279
- return s > o && o > 0 && (s = o), s <= 0 && (s = 1), s;
280
- }
281
- function Ra(e, a, n) {
282
- if (typeof a == "number" && a >= 1)
283
- return Math.floor(a);
284
- const s = typeof n == "number" && n > 0 ? n : 2, o = Math.ceil(e / s);
285
- return o < 1 ? 1 : o;
286
- }
287
- function Ba(e, a, n, s, o, d) {
288
- const h = n - a;
289
- let m = Math.ceil(h / s) + 1;
290
- m < 2 && (m = 2), m > d && (m = d);
291
- const i = m > 1 ? h / (m - 1) : 0, S = e.getPointAtLength(a);
292
- let v = `M ${ie(ae(S.x, o))} ${ie(
293
- ae(S.y, o)
294
- )}`;
295
- for (let x = 1; x < m; x += 1) {
296
- const I = a + x * i, B = e.getPointAtLength(I);
297
- v += ` L ${ie(ae(B.x, o))} ${ie(
298
- ae(B.y, o)
299
- )}`;
300
- }
301
- return v;
302
- }
303
- function Da(e, a, n, s, o, d) {
304
- const h = n - a;
305
- let m = Math.ceil(h / s) + 1;
306
- m < 2 && (m = 2), m > d && (m = d);
307
- const i = m > 1 ? h / (m - 1) : 0, S = e.getPointAtLength(a);
308
- let v = S.x, x = S.x, I = S.y, B = S.y, E = `M ${ie(ae(S.x, o))} ${ie(
309
- ae(S.y, o)
310
- )}`;
311
- for (let A = 1; A < m; A += 1) {
312
- const t = a + A * i, F = e.getPointAtLength(t);
313
- F.x < v && (v = F.x), F.x > x && (x = F.x), F.y < I && (I = F.y), F.y > B && (B = F.y), E += ` L ${ie(ae(F.x, o))} ${ie(
314
- ae(F.y, o)
315
- )}`;
316
- }
317
- return {
318
- pathData: E,
319
- bounds: { minX: v, maxX: x, minY: I, maxY: B }
320
- };
321
- }
322
- function Ea(e) {
323
- if (e.length === 1) return [{ position: 0, rgba: e[0] }];
324
- const a = new Array(e.length), n = e.length - 1;
325
- for (let s = 0; s < e.length; s += 1)
326
- a[s] = { position: s / n, rgba: e[s] };
327
- return a;
328
- }
329
- function Fa(e, a, n, s) {
330
- const o = j(a, 0, 1);
331
- let d = s;
332
- for (d < 0 && (d = 0), d > e.length - 2 && (d = e.length - 2); d > 0 && o < e[d].position; ) d -= 1;
333
- for (; d < e.length - 2 && o > e[d + 1].position; )
334
- d += 1;
335
- const h = e[d], m = e[d + 1], i = m.position - h.position, S = i > 0 ? (o - h.position) / i : 0, v = Va(
336
- h.rgba,
337
- m.rgba,
338
- S,
339
- n
340
- );
341
- return st(v);
342
- }
343
- function Va(e, a, n, s) {
344
- const o = j(n, 0, 1);
345
- if (s === "linearRGB") {
346
- const d = $e(e.red), h = $e(e.green), m = $e(e.blue), i = $e(a.red), S = $e(a.green), v = $e(a.blue), x = d + (i - d) * o, I = h + (S - h) * o, B = m + (v - m) * o;
347
- return {
348
- red: ut(x),
349
- green: ut(I),
350
- blue: ut(B),
351
- alpha: e.alpha + (a.alpha - e.alpha) * o
352
- };
353
- }
354
- return {
355
- red: e.red + (a.red - e.red) * o,
356
- green: e.green + (a.green - e.green) * o,
357
- blue: e.blue + (a.blue - e.blue) * o,
358
- alpha: e.alpha + (a.alpha - e.alpha) * o
359
- };
360
- }
361
- function $e(e) {
362
- const a = j(e / 255, 0, 1);
363
- return a <= 0.04045 ? a / 12.92 : Math.pow((a + 0.055) / 1.055, 2.4);
364
- }
365
- function ut(e) {
366
- const a = j(e, 0, 1);
367
- let n;
368
- a <= 31308e-7 ? n = a * 12.92 : n = 1.055 * Math.pow(a, 1 / 2.4) - 0.055;
369
- const s = Math.round(n * 255);
370
- return j(s, 0, 255);
371
- }
372
- function st(e) {
373
- const a = j(e.alpha, 0, 1), n = j(Math.round(e.red), 0, 255), s = j(Math.round(e.green), 0, 255), o = j(Math.round(e.blue), 0, 255);
374
- if (a >= 1)
375
- return `#${nt(n)}${nt(s)}${nt(o)}`;
376
- const d = ae(a, 4).toString();
377
- return `rgba(${n}, ${s}, ${o}, ${d})`;
378
- }
379
- function Wa(e) {
380
- const a = e.fill ?? "none";
381
- let n = `fill="${le(a)}"`;
382
- const s = Object.keys(e);
383
- for (let o = 0; o < s.length; o += 1) {
384
- const d = s[o];
385
- if (d === "stroke" || d === "d") continue;
386
- const h = e[d];
387
- n += ` ${d}="${le(h)}"`;
388
- }
389
- return n;
390
- }
391
- function _t(e, a, n) {
392
- return `<path d="${le(e)}" stroke="${le(a)}" ${n} />`;
393
- }
394
- function qa(e) {
395
- const a = [], n = e.segmentAttributeMap.fill ?? "none";
396
- a.push(`fill="${le(n)}"`), a.push(`stroke="${le(e.stroke)}"`);
397
- for (const s of Object.keys(e.segmentAttributeMap)) {
398
- if (s === "stroke" || s === "d") continue;
399
- const o = e.segmentAttributeMap[s];
400
- a.push(
401
- `${s}="${le(o)}"`
402
- );
403
- }
404
- return `<path d="${le(e.pathData)}" ${a.join(" ")} />`;
405
- }
406
- function Pt(e, a) {
407
- const n = [];
408
- for (const o of Object.keys(a))
409
- n.push(
410
- `${o}="${le(a[o])}"`
411
- );
412
- return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
413
- }
414
- function le(e) {
415
- return String(e).replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
416
- }
417
- function Ga(e, a = null, n = {}) {
418
- return new Promise((s, o) => {
419
- let d = null;
420
- try {
421
- if (!e || typeof e != "string")
422
- throw new Error(
423
- "SvgPathGradientAsync: pathData must be a non-empty string."
424
- );
425
- const h = n.temperatureMode ?? null;
426
- if (h === null && (!Array.isArray(a) || a.length === 0))
427
- throw new Error(
428
- "SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled."
429
- );
430
- if ((n.returnMode ?? "string") !== "string")
431
- throw new Error(
432
- 'SvgPathGradientAsync: only returnMode="string" is supported for the async version.'
433
- );
434
- const i = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, S = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : 0.25, v = n.attrs ? { ...n.attrs } : {}, x = n.groupAttrs ? { ...n.groupAttrs } : {}, I = Pa(
435
- v["stroke-width"]
436
- ), B = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof I == "number" && I > 0 ? I : 1;
437
- d = Ia(e);
438
- const E = d.pathElement, A = E.getTotalLength(), t = h === null ? At(a, n.colorReferenceElement) : [];
439
- if (h === null && (!(A > 0) || t.length === 1)) {
440
- const G = st(t[0]), J = Pt(
441
- [
442
- qa({
443
- pathData: e,
444
- stroke: G,
445
- segmentAttributeMap: v
446
- })
447
- ],
448
- x
449
- );
450
- rt(d), s(J);
451
- return;
452
- }
453
- const F = n.colorSpace ?? "linearRGB";
454
- if (h !== null) {
455
- const G = n.temperatureColors;
456
- if (!Array.isArray(G) || G.length !== 2)
457
- throw new Error(
458
- "SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled."
459
- );
460
- }
461
- const Pe = h !== null ? At(
462
- n.temperatureColors,
463
- n.colorReferenceElement
464
- ) : null, P = h === null ? (() => {
465
- const G = Ea(t), J = new Array(G.length);
466
- for (let q = 0; q < G.length; q += 1)
467
- J[q] = {
468
- position: G[q].position,
469
- rgba: G[q].rgba
470
- };
471
- return J;
472
- })() : [], de = Ta(
473
- A,
474
- B,
475
- n.maxSegmentLength
476
- ), ne = Ra(
477
- A,
478
- n.segments,
479
- de
480
- ), X = A / ne;
481
- let re = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : B * 0.5;
482
- const W = X * 0.45;
483
- re > W && (re = W);
484
- const Ne = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = Wa(v), ye = [], Ie = h !== null ? [] : null, ve = h !== null ? [] : null;
485
- let me = 0;
486
- const Ge = h === null ? P.length - 2 : 0;
487
- let Y = 0;
488
- const be = () => {
489
- const G = performance.now(), J = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
490
- for (; Y < ne && performance.now() - G < J; ) {
491
- const V = Y * X, ue = (Y + 1) * X;
492
- let N = V, D = ue;
493
- if (Y !== 0 && (N = V - re), Y !== ne - 1 && (D = ue + re), N = j(N, 0, A), D = j(D, 0, A), D > N)
494
- if (h !== null) {
495
- const T = Da(
496
- E,
497
- N,
498
- D,
499
- S,
500
- i,
501
- Ne
502
- );
503
- Ie.push(T.pathData), ve.push(T.bounds);
504
- } else {
505
- const R = (N + D) * 0.5 / A;
506
- for (; me < Ge && R > P[me + 1].position; )
507
- me += 1;
508
- const K = Fa(
509
- P,
510
- R,
511
- F,
512
- me
513
- ), U = Ba(
514
- E,
515
- N,
516
- D,
517
- S,
518
- i,
519
- Ne
520
- );
521
- ye.push(
522
- _t(
523
- U,
524
- K,
525
- ce
526
- )
527
- );
528
- }
529
- Y += 1;
530
- }
531
- if (Y < ne) {
532
- requestAnimationFrame(be);
533
- return;
534
- }
535
- if (h !== null) {
536
- let V = Number.POSITIVE_INFINITY, ue = Number.NEGATIVE_INFINITY;
537
- for (let T = 0; T < ve.length; T += 1) {
538
- const R = ve[T], K = h === "vertical" ? R.minY : R.minX, U = h === "vertical" ? R.maxY : R.maxX;
539
- K < V && (V = K), U > ue && (ue = U);
540
- }
541
- const N = Pe[0], D = Pe[1];
542
- ye.length = 0;
543
- for (let T = 0; T < ve.length; T += 1) {
544
- const R = ve[T], K = h === "vertical" ? R.minY : R.minX, U = h === "vertical" ? R.maxY : R.maxX, Se = (K + U) * 0.5, he = Na(
545
- Se,
546
- V,
547
- ue,
548
- !0
549
- ), Me = h === "vertical" ? Ct(N, D, he, F) : Ct(
550
- D,
551
- N,
552
- he,
553
- F
554
- ), Te = st(Me), fe = Ie[T];
555
- ye.push(
556
- _t(
557
- fe,
558
- Te,
559
- ce
560
- )
561
- );
562
- }
563
- }
564
- const q = Pt(ye, x);
565
- rt(d), s(q);
566
- };
567
- requestAnimationFrame(be);
568
- } catch (h) {
569
- rt(d), o(h);
570
- }
571
- });
572
- }
573
- const Oa = ["innerHTML"], ja = {
574
- __name: "SparklineGradientPath",
575
- props: {
576
- svgPathData: { type: String, required: !0 },
577
- enabled: { type: Boolean, required: !0 },
578
- strokeWidth: { type: Number, required: !0 },
579
- highColor: { type: String, required: !0 },
580
- lowColor: { type: String, required: !0 },
581
- segments: { type: Number, required: !0 }
582
- },
583
- setup(e) {
584
- const a = e, n = L("");
585
- let s = 0;
586
- return z(
587
- () => [
588
- a.enabled,
589
- a.svgPathData,
590
- a.strokeWidth,
591
- a.highColor,
592
- a.lowColor,
593
- a.segments
594
- ],
595
- async ([o]) => {
596
- const d = ++s;
597
- if (!o) {
598
- n.value = "";
599
- return;
600
- }
601
- const h = await Ga(a.svgPathData, null, {
602
- segments: a.segments,
603
- temperatureMode: "vertical",
604
- temperatureColors: [a.highColor, a.lowColor],
605
- attrs: {
606
- "stroke-width": a.strokeWidth,
607
- "stroke-linecap": "round",
608
- "stroke-linejoin": "round"
609
- },
610
- groupAttrs: { class: "vue-ui-sparkline-gradient" }
611
- });
612
- d === s && (n.value = h);
613
- },
614
- { immediate: !0 }
615
- ), (o, d) => (f(), y("g", { innerHTML: n.value }, null, 8, Oa));
616
- }
617
- }, za = ["id"], Ya = ["id"], Xa = { style: { position: "relative" } }, Ka = ["xmlns", "viewBox", "aria-describedby"], Ua = ["width", "height"], Ha = ["id"], Za = ["stop-color"], Ja = ["stop-color"], Qa = ["id"], el = ["stop-color"], tl = ["stop-color"], al = ["id"], ll = ["stop-color"], nl = ["stop-color"], rl = ["id"], ul = ["id"], ol = ["stop-color", "offset"], sl = { key: 1 }, il = ["d", "fill"], dl = ["d", "fill"], cl = ["id", "d", "stroke-width"], vl = ["d", "stroke", "stroke-width", "stroke-dasharray"], hl = ["d", "stroke", "stroke-width"], fl = ["id", "d", "stroke-width"], pl = ["d", "stroke", "stroke-width", "stroke-dasharray"], gl = ["d", "stroke", "stroke-width"], yl = ["x", "y", "width", "height", "fill", "rx"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], wl = ["x", "y", "font-size", "font-weight", "fill"], xl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], $l = {
618
- key: 0,
619
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
620
- "data-dom-to-png-ignore": "",
621
- "aria-hidden": "true"
622
- }, Sl = {
623
- __name: "vue-ui-sparkline",
624
- props: {
625
- config: {
626
- type: Object,
627
- default() {
628
- return {};
629
- }
630
- },
631
- dataset: {
632
- type: Array,
633
- default() {
634
- return [];
635
- }
636
- },
637
- showInfo: {
638
- type: Boolean,
639
- default: !0
640
- },
641
- selectedIndex: {
642
- type: Number,
643
- default: void 0
644
- },
645
- heightRatio: {
646
- type: Number,
647
- default: 1
648
- },
649
- forcedPadding: {
650
- type: Number,
651
- default: 30
652
- }
653
- },
654
- emits: ["hoverIndex", "selectDatapoint"],
655
- setup(e, { emit: a }) {
656
- const n = mt(
657
- () => import("./PackageVersion-BfrCAH6_.js")
658
- ), s = mt(
659
- () => import("./SparkTooltip-D4bM-kfz.js")
660
- ), { vue_ui_sparkline: o } = ra(), { isThemeValid: d, warnInvalidTheme: h } = sa(), m = ca(), i = e, S = g(() => Array.isArray(i.dataset) && i.dataset.length > 0), v = L(Yt()), x = L(null), I = L(null), B = L(null), E = L(null), A = L(null), t = L(re());
661
- function F(l) {
662
- return i.config?.skeletonDataset && Array.isArray(i.config.skeletonDataset) ? i.config.skeletonDataset.map((u) => ({
663
- period: "-",
664
- value: u
665
- })) : aa(l).map((u) => ({ period: "-", value: u }));
666
- }
667
- const Pe = g(() => wt({
668
- defaultConfig: {
669
- gradientPath: { show: !1 },
670
- temperatureColors: { show: !1 },
671
- style: {
672
- backgroundColor: "#99999930",
673
- scaleMin: 0,
674
- scaleMax: null,
675
- animation: { show: !1 },
676
- line: {
677
- color: "#AAAAAA",
678
- pulse: { show: !1 },
679
- dashIndices: []
680
- },
681
- bar: { color: "#AAAAAA" },
682
- area: { color: "#CACACA" },
683
- zeroLine: { color: "#6A6A6A" },
684
- dataLabel: { show: !1 },
685
- tooltip: { show: !1 }
686
- }
687
- },
688
- userConfig: t.value.skeletonConfig ?? {}
689
- })), { loading: P, FINAL_DATASET: de, manualLoading: ne } = ua({
690
- ...qt(i),
691
- FINAL_CONFIG: t,
692
- prepareConfig: re,
693
- callback: () => {
694
- Promise.resolve().then(async () => {
695
- await te(), Me();
696
- });
697
- },
698
- skeletonDataset: F(12),
699
- skeletonConfig: wt({
700
- defaultConfig: t.value,
701
- userConfig: Pe.value
702
- })
703
- }), { svgRef: X } = da({
704
- config: t.value.style.title
705
- });
706
- function re() {
707
- const l = at({
708
- userConfig: i.config,
709
- defaultConfig: o
710
- });
711
- let u = {};
712
- const r = l.theme;
713
- if (r)
714
- if (!d.value(l))
715
- h(l), u = l;
716
- else {
717
- const c = at({
718
- userConfig: va[r] || i.config,
719
- defaultConfig: l
720
- });
721
- u = {
722
- ...at({
723
- userConfig: i.config,
724
- defaultConfig: c
725
- })
726
- };
727
- }
728
- else
729
- u = l;
730
- return u;
731
- }
732
- const W = g(() => t.value?.style?.line.pulse || {}), Ne = g(
733
- () => `${Math.max(200, Number(W.value.durationMs) || 4e3) / 1e3}s`
734
- ), ce = L(0), ye = g(() => W.value?.begin || "0ms"), Ie = L("0;1"), ve = g(() => W.value?.loop === !1 ? "1" : "indefinite"), me = g(() => W.value?.loop === !1 ? "freeze" : void 0), Ge = g(() => W.value.trail.show && J.value.lengthPx || 1), Y = g(() => !!W.value?.show && !O.value && !m.value && !P.value && (p.value?.length || 0) > 1);
735
- function be() {
736
- if (!Y.value) {
737
- ce.value = 0;
738
- return;
739
- }
740
- const l = X.value;
741
- if (!l) return;
742
- const u = `#${fe.value}`, r = l.querySelector?.(u);
743
- if (r && typeof r.getTotalLength == "function") {
744
- const c = r.getTotalLength();
745
- Number.isFinite(c) && c > 0 && (ce.value = c);
746
- return;
747
- }
748
- requestAnimationFrame(() => {
749
- const c = l.querySelector?.(u);
750
- if (c && typeof c.getTotalLength == "function") {
751
- const w = c.getTotalLength();
752
- Number.isFinite(w) && w > 0 && (ce.value = w);
753
- }
754
- });
755
- }
756
- const G = g(() => {
757
- const l = W.value?.easing || "ease-in-out", u = {
758
- ease: [0.25, 0.1, 0.25, 1],
759
- "ease-in": [0.42, 0, 1, 1],
760
- "ease-out": [0, 0, 0.58, 1],
761
- "ease-in-out": [0.42, 0, 0.58, 1]
762
- };
763
- return l === "linear" ? {
764
- calcMode: "linear",
765
- keySplines: null,
766
- keyTimes: "0;1"
767
- } : l === "steps" ? {
768
- calcMode: "discrete",
769
- keySplines: null,
770
- keyTimes: "0;1"
771
- } : {
772
- calcMode: "spline",
773
- keySplines: (l === "cubic-bezier" ? Array.isArray(W.value?.cubicBezier) && W.value.cubicBezier.length === 4 ? W.value.cubicBezier : [0.4, 0, 0.2, 1] : u[l] || u["ease-in-out"]).join(" "),
774
- keyTimes: "0;1"
775
- };
776
- }), J = g(() => {
777
- const l = W.value?.trail || {}, u = t.value.style.line.strokeWidth || 1;
778
- return {
779
- show: l.show !== !1,
780
- lengthPx: l.length,
781
- width: Math.max(1, Number(l.strokeWidth) || u * 2.2),
782
- opacity: Math.min(1, Math.max(0, Number(l.opacity) ?? 0.6)),
783
- fadeIn: 0.5,
784
- fadeOut: 0.2
785
- };
786
- }), q = g(() => Qe({
787
- data: de.value,
788
- threshold: t.value.downsample.threshold
789
- }));
790
- z(
791
- () => i.config,
792
- (l) => {
793
- P.value || (t.value = re()), vt(), $.value.chartWidth = t.value.style.chartWidth;
794
- },
795
- { deep: !0 }
796
- ), z(
797
- () => i.dataset,
798
- (l) => {
799
- Array.isArray(l) && l.length > 0 && (ne.value = !1), V.value = Qe({
800
- data: de.value.map((u) => ({
801
- ...u,
802
- value: [void 0].includes(u.value) ? null : u.value
803
- })),
804
- threshold: t.value.downsample.threshold
805
- });
806
- },
807
- { deep: !0 }
808
- );
809
- const V = L(ue());
810
- function ue() {
811
- return Qe({
812
- data: de.value.map((l) => t.value.style.animation.show && de.value.length > 1 ? {
813
- ...l,
814
- value: null
815
- } : {
816
- ...l,
817
- value: [void 0].includes(l.value) ? null : l.value
818
- }),
819
- threshold: t.value.downsample.threshold
820
- });
821
- }
822
- const N = bt(null), D = bt(null), T = L(!1), R = L(0), K = L([]), U = L(""), Se = g(() => {
823
- const u = (q.value || []).map((w) => `${w.period}::${Number.isFinite(w.value) ? w.value : 0}`).join("|"), r = t.value?.style?.animation || {}, c = !!t.value?.gradientPath?.show && !t.value.temperatureColors.show;
824
- return `${u}#${!!r.show}#${r.animationFrames || 0}#${c}`;
825
- });
826
- function he() {
827
- R.value && (cancelAnimationFrame(R.value), R.value = 0), K.value.forEach((l) => clearTimeout(l)), K.value = [], T.value = !1;
828
- }
829
- function Me() {
830
- const l = t.value?.style?.animation || {}, u = q.value || [], r = Se.value, c = !!t.value.gradientPath.show && !t.value.temperatureColors.show;
831
- if (r && r === U.value && (T.value || V.value.length === u.length))
832
- return;
833
- if (he(), c || !l.show || P.value || u.length <= 1) {
834
- V.value = u, U.value = r;
835
- return;
836
- }
837
- T.value = !0, U.value = r, V.value = [];
838
- const w = Math.max(1, Number(l.animationFrames) || 1), He = Math.max(1, Math.floor(w / u.length));
839
- let ee = 0;
840
- const Ee = () => {
841
- if (r !== Se.value) {
842
- he();
843
- return;
844
- }
845
- if (ee < u.length) {
846
- V.value.push(u[ee]);
847
- const Fe = setTimeout(() => {
848
- R.value = requestAnimationFrame(Ee);
849
- }, He);
850
- K.value.push(Fe), ee += 1;
851
- } else
852
- V.value = u, he();
853
- };
854
- R.value = requestAnimationFrame(Ee);
855
- }
856
- z(Se, () => {
857
- Me();
858
- }), kt(() => {
859
- vt(), Me();
860
- }), ot(() => {
861
- he();
862
- });
863
- const Te = L(0);
864
- z(
865
- () => P.value,
866
- async (l) => {
867
- l || (await te(), Te.value += 1);
868
- }
869
- ), z(
870
- () => T.value,
871
- async (l) => {
872
- l || P.value || (await te(), Te.value += 1);
873
- }
874
- );
875
- const fe = g(() => `sparkline_line_path_${v.value}`), Oe = L(!0);
876
- async function dt() {
877
- Oe.value = !1, await te(), Oe.value = !0, await te(), be();
878
- }
879
- const ct = g(() => !!t.value.debug);
880
- function vt() {
881
- if (xt(i.dataset) ? ($t({
882
- componentName: "VueUiSparkline",
883
- type: "dataset",
884
- debug: ct.value
885
- }), ne.value = !0) : i.dataset.forEach((l, u) => {
886
- Xt({
887
- datasetObject: l,
888
- requiredAttributes: ["period", "value"]
889
- }).forEach((r) => {
890
- $t({
891
- componentName: "VueUiSparkline",
892
- type: "datasetSerieAttribute",
893
- property: r,
894
- index: u,
895
- debug: ct.value
896
- });
897
- });
898
- }), xt(i.dataset) || (ne.value = t.value.loading), t.value.responsive) {
899
- const l = la(() => {
900
- const { width: u, height: r } = na({
901
- chart: x.value,
902
- title: t.value.style.title.show && i.showInfo ? I.value : null,
903
- source: B.value
904
- });
905
- requestAnimationFrame(() => {
906
- $.value.width = u, $.value.height = r, $.value.chartWidth = t.value.style.chartWidth / 500 * u, $.value.padding = i.forcedPadding / 500 * u;
907
- });
908
- });
909
- N.value && (D.value && N.value.unobserve(D.value), N.value.disconnect()), N.value = new ResizeObserver(l), D.value = x.value.parentNode, N.value.observe(D.value);
910
- }
911
- }
912
- ot(() => {
913
- N.value && (D.value && N.value.unobserve(D.value), N.value.disconnect());
914
- });
915
- const $ = L({
916
- height: 80 * i.heightRatio,
917
- width: 500,
918
- chartWidth: t.value.style.chartWidth,
919
- padding: i.forcedPadding
920
- }), Re = a, C = g(() => {
921
- const {
922
- top: l,
923
- right: u,
924
- bottom: r,
925
- left: c
926
- } = t.value.style.padding;
927
- return {
928
- top: l,
929
- left: c,
930
- right: $.value.width - u,
931
- bottom: $.value.height - r,
932
- start: i.showInfo && t.value.style.dataLabel.show && t.value.style.dataLabel.position === "left" ? $.value.width - $.value.chartWidth + c : $.value.padding + c,
933
- width: i.showInfo && t.value.style.dataLabel.show ? $.value.chartWidth - c - u : $.value.width - $.value.padding - c - u,
934
- height: $.value.height - l - r
935
- };
936
- }), je = g(() => [null, void 0].includes(t.value.style.scaleMin) ? Math.min(
937
- ...V.value.map(
938
- (l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(
939
- l.value
940
- ) ? 0 : l.value || 0
941
- )
942
- ) : t.value.style.scaleMin), Nt = g(() => [null, void 0].includes(t.value.style.scaleMax) ? Math.max(
943
- ...V.value.map(
944
- (l) => isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(
945
- l.value
946
- ) ? 0 : l.value || 0
947
- )
948
- ) : t.value.style.scaleMax), Ae = g(() => {
949
- const l = je.value >= 0 ? 0 : je.value;
950
- return Math.abs(l);
951
- }), ht = g(() => Nt.value + Ae.value), ke = g(() => C.value.bottom - C.value.height * ze(Ae.value));
952
- function ze(l) {
953
- return isNaN(l / ht.value) ? 0 : l / ht.value;
954
- }
955
- const we = g(() => q.value.length - 1 || 1), Ce = L([]);
956
- let ft = 0;
957
- Gt(() => {
958
- const l = ++ft;
959
- (async () => {
960
- const u = await ia({
961
- values: q.value.map((r) => r.period),
962
- maxDatapoints: q.value.length,
963
- formatter: t.value.style.dataLabel.datetimeFormatter,
964
- start: 0,
965
- end: q.value.length
966
- });
967
- l === ft && (Ce.value = u);
968
- })();
969
- });
970
- const p = g(() => V.value.map((l, u) => {
971
- const r = isNaN(l.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(l.value) ? 0 : l.value || 0, c = C.value.width / we.value;
972
- return {
973
- value: l.value,
974
- absoluteValue: r,
975
- period: Ce.value && Ce.value[u] && Ce.value[u].text ? Ce.value[u].text : l.period,
976
- plotValue: r + Ae.value,
977
- toMax: ze(r + Ae.value),
978
- x: C.value.start + u * c,
979
- y: C.value.bottom - C.value.height * ze(r + Ae.value),
980
- id: `plot_${v.value}_${u}`,
981
- color: O.value ? t.value.style.bar.color : t.value.style.area.useGradient ? Ve(
982
- t.value.style.line.color,
983
- 0.05 * (1 - u / we.value)
984
- ) : t.value.style.line.color,
985
- width: c
986
- };
987
- })), pt = g(() => i.selectedIndex !== void 0 && i.selectedIndex !== null && i.selectedIndex >= 0 && i.selectedIndex < p.value.length ? i.selectedIndex : A.value !== void 0 && A.value !== null && A.value >= 0 && A.value < p.value.length ? A.value : null), It = g(() => {
988
- const l = {
989
- x: p.value[0].x || 0,
990
- y: ($.value.height || 0) - 6
991
- }, u = {
992
- x: p.value[p.value.length - 1].x || 0,
993
- y: ($.value.height || 0) - 6
994
- }, r = [];
995
- return p.value.forEach((c) => {
996
- r.push(`${c.x || 0},${c.y || 0} `);
997
- }), [l.x, l.y, ...r, u.x, u.y].toString();
998
- }), k = L(void 0), oe = L(void 0);
999
- function Ye(l, u) {
1000
- t.value.events.datapointEnter && t.value.events.datapointEnter({
1001
- datapoint: l,
1002
- seriesIndex: u
1003
- }), A.value = u, E.value = u, k.value = l, oe.value || (oe.value = l), Re("hoverIndex", { index: u });
1004
- }
1005
- function Tt(l, u) {
1006
- t.value.events.datapointLeave && t.value.events.datapointLeave({
1007
- datapoint: l,
1008
- seriesIndex: u
1009
- }), oe.value = k.value, k.value = void 0, A.value = null, E.value = null, Re("hoverIndex", { index: void 0 });
1010
- }
1011
- const se = g(() => {
1012
- if (S.value) {
1013
- const l = p.value.map((r) => r.absoluteValue), u = l.reduce((r, c) => r + c, 0);
1014
- return {
1015
- latest: p.value[p.value.length - 1] ? p.value[p.value.length - 1].absoluteValue : 0,
1016
- sum: u,
1017
- average: u / p.value.length,
1018
- median: Ut(l),
1019
- trend: Kt(
1020
- p.value.map(({ x: r, y: c, absoluteValue: w }) => ({
1021
- x: r,
1022
- y: c,
1023
- value: w
1024
- }))
1025
- ).trend
1026
- };
1027
- } else
1028
- return {
1029
- latest: null,
1030
- sum: null,
1031
- average: null,
1032
- median: null,
1033
- trend: null
1034
- };
1035
- }), gt = g(() => S.value ? t.value.style.dataLabel.valueType === "latest" ? se.value.latest : t.value.style.dataLabel.valueType === "sum" ? se.value.sum : t.value.style.dataLabel.valueType === "average" ? se.value.average : 0 : 0), O = g(() => t.value.type && t.value.type === "bar");
1036
- function Rt(l, u) {
1037
- t.value.events.datapointClick && t.value.events.datapointClick({
1038
- datapoint: l,
1039
- seriesIndex: u
1040
- }), Re("selectDatapoint", { datapoint: l, index: u });
1041
- }
1042
- const Be = g(() => Array.isArray(t.value.style.line.dashIndices) && t.value.style.line.dashIndices.length > 0), Xe = g(() => O.value ? "" : St(p.value)), Ke = g(() => O.value ? "" : Ht(p.value)), Bt = g(() => O.value || !Be.value ? [] : Zt(
1043
- p.value,
1044
- t.value.style.line.dashIndices
1045
- )), Dt = g(() => O.value || !Be.value ? [] : Jt(
1046
- p.value,
1047
- t.value.style.line.dashIndices
1048
- )), yt = g(() => O.value || !t.value.gradientPath.show || t.value.temperatureColors.show ? "" : `M ${(t.value.style.line.smooth ? Xe.value : Ke.value) || "0,0"}`), Q = g(() => !t.value.temperatureColors.show || t.value.temperatureColors.colors.length === 0 ? null : t.value.temperatureColors.colors.map(
1049
- (l) => Qt(l)
1050
- ));
1051
- z(
1052
- () => [
1053
- Y.value,
1054
- fe.value,
1055
- p.value.length,
1056
- $.value.width,
1057
- $.value.height,
1058
- t.value?.style?.line?.smooth
1059
- ],
1060
- async () => {
1061
- await te(), be();
1062
- },
1063
- { immediate: !0 }
1064
- ), kt(async () => {
1065
- await te(), be();
1066
- }), z(
1067
- () => P.value,
1068
- async (l) => {
1069
- l || await dt();
1070
- }
1071
- ), z(
1072
- () => T.value,
1073
- async (l) => {
1074
- l || P.value || await dt();
1075
- }
1076
- ), z(
1077
- () => i.selectedIndex,
1078
- (l) => {
1079
- if (l == null) {
1080
- A.value = null, E.value = null, k.value = void 0;
1081
- return;
1082
- }
1083
- if (l < 0 || l >= p.value.length) return;
1084
- const u = p.value[l];
1085
- u && (A.value = l, E.value = l, k.value = u);
1086
- }
1087
- );
1088
- const De = L(!1);
1089
- function Et() {
1090
- const l = pt.value;
1091
- if (l !== null && l >= 0 && l < p.value.length) {
1092
- const u = p.value[l];
1093
- if (u) {
1094
- E.value = l, k.value = u, A.value = l, De.value = !0;
1095
- return;
1096
- }
1097
- }
1098
- E.value = null, !k.value && p.value.length && Ye(
1099
- p.value.at(-1),
1100
- p.value.length - 1
1101
- ), De.value = !0;
1102
- }
1103
- function Ft() {
1104
- oe.value = k.value, (i.selectedIndex === void 0 || i.selectedIndex === null) && (E.value = null, k.value = void 0, A.value = null, Re("hoverIndex", { index: void 0 })), De.value = !1;
1105
- }
1106
- function Vt(l) {
1107
- if (!X.value || document.activeElement !== X.value) return;
1108
- oe.value = k.value;
1109
- const u = l.key === "ArrowLeft", r = l.key === "ArrowRight";
1110
- if (!u && !r) return;
1111
- const c = p.value.length;
1112
- if (!c) return;
1113
- l.preventDefault(), l.stopPropagation();
1114
- let w = E.value;
1115
- const He = w !== null && w >= 0 && w < c, ee = k.value ? p.value.findIndex(
1116
- (Wt) => Wt.id === k.value.id
1117
- ) : -1, Ee = ee !== null && ee >= 0 && ee < c;
1118
- He ? r ? (w += 1, w >= c && (w = 0)) : u && (w -= 1, w < 0 && (w = c - 1)) : Ee ? (w = r ? ee + 1 : ee - 1, w >= c && (w = 0), w < 0 && (w = c - 1)) : r ? w = 0 : w = c - 1;
1119
- const Fe = p.value[w];
1120
- Fe && (E.value = w, Ye(Fe, w));
1121
- }
1122
- const Ue = g(() => {
1123
- const l = [
1124
- t.value.translations.period,
1125
- t.value.translations.value
1126
- ], u = p.value.map((r) => [r.period, r.absoluteValue]);
1127
- return { headers: l, rows: u };
1128
- });
1129
- return (l, u) => (f(), y("div", {
1130
- ref_key: "sparklineChart",
1131
- ref: x,
1132
- class: "vue-data-ui-component vue-ui-sparkline",
1133
- id: v.value,
1134
- style: H(`width:100%;font-family:${t.value.style.fontFamily};`)
1135
- }, [
1136
- M("p", {
1137
- id: `chart-instructions-${v.value}`,
1138
- class: "sr-only"
1139
- }, Le(t.value.a11y.translations.keyboardNavigation), 9, Ya),
1140
- Ue.value?.rows?.length ? (f(), _e(ha, {
1141
- key: 0,
1142
- uid: v.value,
1143
- head: Ue.value.headers,
1144
- body: Ue.value.rows,
1145
- notice: t.value.a11y.translations.tableAvailable,
1146
- caption: t.value.a11y.translations.tableCaption
1147
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : _("", !0),
1148
- pe(l.$slots, "before", Ze(Je({
1149
- selected: k.value,
1150
- latest: se.value.latest,
1151
- sum: se.value.sum,
1152
- average: se.value.average,
1153
- median: se.value.median,
1154
- trend: se.value.trend
1155
- })), void 0, !0),
1156
- t.value.style.title.show && e.showInfo ? (f(), y("div", {
1157
- key: 1,
1158
- ref_key: "chartTitle",
1159
- ref: I,
1160
- class: "vue-ui-sparkline-title",
1161
- style: H(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign === "left" ? "flex-start" : t.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${t.value.style.title.fontSize * 2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold ? "bold" : "normal"};`)
1162
- }, [
1163
- M("span", {
1164
- style: H(`padding:${t.value.style.title.textAlign === "left" ? "0 0 0 12px" : t.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
1165
- }, Le(k.value ? k.value.period : t.value.style.title.text), 5)
1166
- ], 4)) : _("", !0),
1167
- M("div", Xa, [
1168
- (f(), y("svg", {
1169
- ref_key: "svgRef",
1170
- ref: X,
1171
- xmlns: b(ea),
1172
- viewBox: `0 0 ${$.value.width} ${$.value.height}`,
1173
- style: H(`background:${t.value.style.backgroundColor};overflow:visible;direction:ltr`),
1174
- tabindex: "0",
1175
- "aria-describedby": `chart-instructions-${v.value}`,
1176
- onMouseleave: u[0] || (u[0] = (r) => oe.value = void 0),
1177
- onFocus: Et,
1178
- onBlur: Ft,
1179
- onKeydown: Vt
1180
- }, [
1181
- Ot(b(n)),
1182
- l.$slots["chart-background"] ? (f(), y("foreignObject", {
1183
- key: 0,
1184
- x: 0,
1185
- y: 0,
1186
- width: $.value.width <= 0 ? 10 : $.value.width,
1187
- height: $.value.height <= 0 ? 10 : $.value.height,
1188
- style: {
1189
- pointerEvents: "none"
1190
- }
1191
- }, [
1192
- pe(l.$slots, "chart-background", {}, void 0, !0)
1193
- ], 8, Ua)) : _("", !0),
1194
- M("defs", null, [
1195
- M("linearGradient", {
1196
- x1: "0%",
1197
- y1: "0%",
1198
- x2: "100%",
1199
- y2: "0%",
1200
- id: `sparkline_gradient_${v.value}`
1201
- }, [
1202
- M("stop", {
1203
- offset: "0%",
1204
- "stop-color": b(We)(
1205
- b(Ve)(
1206
- t.value.style.area.color,
1207
- 0.05
1208
- ),
1209
- t.value.style.area.opacity
1210
- )
1211
- }, null, 8, Za),
1212
- M("stop", {
1213
- offset: "100%",
1214
- "stop-color": b(We)(
1215
- t.value.style.area.color,
1216
- t.value.style.area.opacity
1217
- )
1218
- }, null, 8, Ja)
1219
- ], 8, Ha),
1220
- M("linearGradient", {
1221
- x2: "0%",
1222
- y2: "100%",
1223
- id: `sparkline_bar_gradient_pos_${v.value}`
1224
- }, [
1225
- M("stop", {
1226
- offset: "0%",
1227
- "stop-color": t.value.style.bar.color
1228
- }, null, 8, el),
1229
- M("stop", {
1230
- offset: "100%",
1231
- "stop-color": b(Ve)(t.value.style.bar.color, 0.05)
1232
- }, null, 8, tl)
1233
- ], 8, Qa),
1234
- M("linearGradient", {
1235
- x2: "0%",
1236
- y2: "100%",
1237
- id: `sparkline_bar_gradient_neg_${v.value}`
1238
- }, [
1239
- M("stop", {
1240
- offset: "0%",
1241
- "stop-color": b(Ve)(t.value.style.bar.color, 0.05)
1242
- }, null, 8, ll),
1243
- M("stop", {
1244
- offset: "100%",
1245
- "stop-color": t.value.style.bar.color
1246
- }, null, 8, nl)
1247
- ], 8, al),
1248
- M("filter", {
1249
- id: `sparkline_pulse_glow_${v.value}`,
1250
- filterUnits: "userSpaceOnUse",
1251
- x: "-50",
1252
- y: "-50",
1253
- width: "100",
1254
- height: "100"
1255
- }, [...u[1] || (u[1] = [
1256
- M("feGaussianBlur", {
1257
- in: "SourceGraphic",
1258
- stdDeviation: "3",
1259
- result: "blur"
1260
- }, null, -1),
1261
- M("feMerge", null, [
1262
- M("feMergeNode", { in: "blur" }),
1263
- M("feMergeNode", { in: "SourceGraphic" })
1264
- ], -1)
1265
- ])], 8, rl),
1266
- t.value.temperatureColors.show && Q.value ? (f(), y("linearGradient", {
1267
- key: 0,
1268
- id: `temperature_grad_sparkline_${v.value}`,
1269
- gradientTransform: "rotate(90)"
1270
- }, [
1271
- (f(!0), y(Z, null, ge(Q.value, (r, c) => (f(), y("stop", {
1272
- key: `temperature_grad_stop_${c}_${v.value}`,
1273
- "stop-color": r,
1274
- offset: b(ta)(c, Q.value.length)
1275
- }, null, 8, ol))), 128))
1276
- ], 8, ul)) : _("", !0)
1277
- ]),
1278
- t.value.style.area.show && !O.value && p.value[0] && p.value.length > 1 ? (f(), y("g", sl, [
1279
- t.value.style.line.smooth ? (f(), y("path", {
1280
- key: 0,
1281
- class: "vue-ui-sparkline-area",
1282
- d: `M ${p.value[0].x},${C.value.bottom} ${b(St)(p.value)} L ${p.value.at(-1).x},${C.value.bottom} Z`,
1283
- fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(We)(
1284
- t.value.style.area.color,
1285
- t.value.style.area.opacity
1286
- ),
1287
- "stroke-linecap": "round",
1288
- "stroke-linejoin": "round",
1289
- style: H({
1290
- transition: b(P) ? void 0 : "all 0.2s"
1291
- })
1292
- }, null, 12, il)) : (f(), y("path", {
1293
- key: 1,
1294
- class: "vue-ui-sparkline-area",
1295
- d: `M${It.value}Z`,
1296
- fill: t.value.style.area.useGradient ? `url(#sparkline_gradient_${v.value})` : b(We)(
1297
- t.value.style.area.color,
1298
- t.value.style.area.opacity
1299
- ),
1300
- "stroke-linecap": "round",
1301
- "stroke-linejoin": "round",
1302
- style: H({
1303
- transition: b(P) ? void 0 : "all 0.2s"
1304
- })
1305
- }, null, 12, dl))
1306
- ])) : _("", !0),
1307
- t.value.style.line.smooth && !O.value ? (f(), y(Z, { key: 2 }, [
1308
- M("path", {
1309
- id: fe.value,
1310
- d: `M ${Xe.value || "0,0"}`,
1311
- fill: "none",
1312
- stroke: "transparent",
1313
- "stroke-width": t.value.style.line.strokeWidth,
1314
- "stroke-linecap": "round",
1315
- "stroke-linejoin": "round"
1316
- }, null, 8, cl),
1317
- Be.value ? (f(!0), y(Z, { key: 0 }, ge(Bt.value, (r) => (f(), y("path", {
1318
- key: r.path,
1319
- class: "vue-ui-sparkline-path",
1320
- d: `M ${r.path}`,
1321
- stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1322
- fill: "none",
1323
- "stroke-width": t.value.style.line.strokeWidth,
1324
- "stroke-linecap": "round",
1325
- "stroke-linejoin": "round",
1326
- "stroke-dasharray": r.dashed ? t.value.style.line.dashArray : 0,
1327
- style: H({
1328
- transition: b(P) ? void 0 : "all 0.2s"
1329
- })
1330
- }, null, 12, vl))), 128)) : (f(), y("path", {
1331
- key: 1,
1332
- class: "vue-ui-sparkline-path",
1333
- d: `M ${Xe.value || "0,0"}`,
1334
- stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1335
- fill: "none",
1336
- "stroke-width": t.value.style.line.strokeWidth,
1337
- "stroke-linecap": "round",
1338
- "stroke-linejoin": "round",
1339
- style: H({
1340
- transition: b(P) ? void 0 : "all 0.2s"
1341
- })
1342
- }, null, 12, hl))
1343
- ], 64)) : _("", !0),
1344
- !t.value.style.line.smooth && !O.value ? (f(), y(Z, { key: 3 }, [
1345
- M("path", {
1346
- id: fe.value,
1347
- d: `M ${Ke.value || "0,0"}`,
1348
- fill: "none",
1349
- stroke: "transparent",
1350
- "stroke-width": t.value.style.line.strokeWidth,
1351
- "stroke-linecap": "round",
1352
- "stroke-linejoin": "round"
1353
- }, null, 8, fl),
1354
- Be.value ? (f(!0), y(Z, { key: 0 }, ge(Dt.value, (r) => (f(), y("path", {
1355
- key: r.path,
1356
- class: "vue-ui-sparkline-path",
1357
- d: `M ${r.path}`,
1358
- stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1359
- fill: "none",
1360
- "stroke-width": t.value.style.line.strokeWidth,
1361
- "stroke-linecap": "round",
1362
- "stroke-linejoin": "round",
1363
- "stroke-dasharray": r.dashed ? t.value.style.line.dashArray * 2 : 0,
1364
- style: H({
1365
- transition: b(P) ? void 0 : "all 0.2s"
1366
- })
1367
- }, null, 12, pl))), 128)) : (f(), y("path", {
1368
- key: 1,
1369
- class: "vue-ui-sparkline-path",
1370
- d: `M ${Ke.value || "0,0"}`,
1371
- stroke: Q.value ? `url(#temperature_grad_sparkline_${v.value})` : t.value.style.line.color,
1372
- fill: "none",
1373
- "stroke-width": t.value.style.line.strokeWidth,
1374
- "stroke-linecap": "round",
1375
- "stroke-linejoin": "round",
1376
- style: H({
1377
- transition: b(P) ? void 0 : "all 0.2s"
1378
- })
1379
- }, null, 12, gl))
1380
- ], 64)) : _("", !0),
1381
- yt.value && !Q.value ? (f(), _e(ja, {
1382
- key: 4,
1383
- svgPathData: yt.value,
1384
- enabled: t.value.gradientPath.show && !O.value && !Q.value,
1385
- strokeWidth: t.value.style.line.strokeWidth,
1386
- highColor: t.value.gradientPath.colors.high,
1387
- lowColor: t.value.gradientPath.colors.low,
1388
- segments: t.value.gradientPath.segments
1389
- }, null, 8, ["svgPathData", "enabled", "strokeWidth", "highColor", "lowColor", "segments"])) : _("", !0),
1390
- Oe.value && Y.value ? (f(), _e(Sa, {
1391
- key: 5,
1392
- uid: v.value,
1393
- svgRef: b(X),
1394
- pulsePathId: fe.value,
1395
- pulsePathLength: ce.value,
1396
- pulseDur: Ne.value,
1397
- pulseBegin: ye.value,
1398
- pulseRepeatCount: ve.value,
1399
- pulseFillMode: me.value,
1400
- pulseKeyPoints: Ie.value,
1401
- pulseMotion: G.value,
1402
- pulse: W.value,
1403
- pulseTrail: J.value,
1404
- pulseTrailLength: Ge.value,
1405
- prefersReducedMotion: b(m),
1406
- loading: b(P),
1407
- isBar: O.value
1408
- }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : _("", !0),
1409
- (f(!0), y(Z, null, ge(p.value, (r, c) => (f(), y("g", null, [
1410
- O.value ? (f(), y("rect", {
1411
- key: 0,
1412
- x: r.x - r.width / 2,
1413
- y: isNaN(
1414
- r.absoluteValue > 0 ? r.y : ke.value
1415
- ) ? 0 : r.absoluteValue > 0 ? r.y : ke.value,
1416
- width: r.width,
1417
- height: isNaN(Math.abs(r.y - ke.value)) ? 0 : Math.abs(r.y - ke.value),
1418
- fill: r.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${v.value})` : `url(#sparkline_bar_gradient_neg_${v.value})`,
1419
- rx: t.value.style.bar.borderRadius
1420
- }, null, 8, yl)) : _("", !0),
1421
- t.value.style.verticalIndicator.show && (k.value && r.id === k.value.id || pt.value === c) ? (f(), y("line", {
1422
- key: 1,
1423
- x1: r.x,
1424
- x2: r.x,
1425
- y1: C.value.top - 6,
1426
- y2: C.value.bottom,
1427
- stroke: t.value.style.verticalIndicator.color || r.color,
1428
- "stroke-width": t.value.style.verticalIndicator.strokeWidth,
1429
- "stroke-linecap": "round",
1430
- "stroke-dasharray": t.value.style.verticalIndicator.strokeDasharray || 0
1431
- }, null, 8, ml)) : _("", !0)
1432
- ]))), 256)),
1433
- je.value < 0 ? (f(), y("line", {
1434
- key: 6,
1435
- x1: C.value.start,
1436
- x2: C.value.start + C.value.width,
1437
- y1: b(Mt)(ke.value, C.value.bottom),
1438
- y2: b(Mt)(ke.value, C.value.bottom),
1439
- stroke: t.value.style.zeroLine.color,
1440
- "stroke-dasharray": t.value.style.zeroLine.strokeWidth * 2,
1441
- "stroke-width": t.value.style.zeroLine.strokeWidth,
1442
- "stroke-linecap": "round"
1443
- }, null, 8, bl)) : _("", !0),
1444
- t.value.style.plot.show ? (f(!0), y(Z, { key: 7 }, ge(p.value, (r, c) => (f(), y("g", null, [
1445
- k.value && r.id === k.value.id || e.selectedIndex === c || b(de).length === 1 ? (f(), y("circle", {
1446
- key: 0,
1447
- cx: r.x,
1448
- cy: r.y,
1449
- r: t.value.style.plot.radius,
1450
- fill: r.color,
1451
- stroke: t.value.style.plot.stroke,
1452
- "stroke-width": t.value.style.plot.strokeWidth
1453
- }, null, 8, kl)) : _("", !0)
1454
- ]))), 256)) : _("", !0),
1455
- e.showInfo && t.value.style.dataLabel.show ? (f(), y("text", {
1456
- key: 8,
1457
- x: t.value.style.dataLabel.position === "left" ? 12 + t.value.style.dataLabel.offsetX : C.value.width + 12 + t.value.style.dataLabel.offsetX,
1458
- y: $.value.height / 2 + t.value.style.dataLabel.fontSize / 2.5 + t.value.style.dataLabel.offsetY,
1459
- "font-size": t.value.style.dataLabel.fontSize,
1460
- "font-weight": t.value.style.dataLabel.bold ? "bold" : "normal",
1461
- fill: t.value.style.dataLabel.color
1462
- }, Le(k.value ? b(et)(
1463
- t.value.style.dataLabel.formatter,
1464
- k.value.absoluteValue,
1465
- b(tt)({
1466
- p: t.value.style.dataLabel.prefix,
1467
- v: k.value.absoluteValue,
1468
- s: t.value.style.dataLabel.suffix,
1469
- r: t.value.style.dataLabel.roundingValue
1470
- }),
1471
- { datapoint: k.value }
1472
- ) : b(et)(
1473
- t.value.style.dataLabel.formatter,
1474
- gt.value,
1475
- b(tt)({
1476
- p: t.value.style.dataLabel.prefix,
1477
- v: gt.value,
1478
- s: t.value.style.dataLabel.suffix,
1479
- r: t.value.style.dataLabel.roundingValue
1480
- })
1481
- )), 9, wl)) : _("", !0),
1482
- (f(!0), y(Z, null, ge(p.value, (r, c) => (f(), y("rect", {
1483
- x: r.x - (C.value.width / (we.value + 1) > $.value.padding ? $.value.padding : C.value.width / (we.value + 1)) / 2,
1484
- y: C.value.top - 6,
1485
- height: C.value.height + 6,
1486
- width: C.value.width / (we.value + 1) > $.value.padding ? $.value.padding : C.value.width / (we.value + 1),
1487
- fill: "transparent",
1488
- onMouseenter: () => Ye(r, c),
1489
- onMouseleave: () => Tt(r, c),
1490
- onClick: () => Rt(r, c)
1491
- }, null, 40, xl))), 256)),
1492
- pe(l.$slots, "svg", { svg: $.value }, void 0, !0)
1493
- ], 44, Ka)),
1494
- l.$slots.hint ? (f(), y("div", $l, [
1495
- pe(l.$slots, "hint", Ze(Je({
1496
- hint: t.value.a11y.translations.keyboardNavigation,
1497
- isVisible: De.value
1498
- })), void 0, !0)
1499
- ])) : _("", !0)
1500
- ]),
1501
- k.value && t.value.style.tooltip.show ? (f(), _e(b(s), {
1502
- key: 2,
1503
- x: k.value.x,
1504
- y: k.value.y,
1505
- prevX: oe.value.x,
1506
- prevY: oe.value.y,
1507
- offsetY: t.value.style.plot.radius * 3 + t.value.style.tooltip.offsetY,
1508
- svgRef: b(X),
1509
- background: t.value.style.tooltip.backgroundColor,
1510
- color: t.value.style.tooltip.color,
1511
- fontSize: t.value.style.tooltip.fontSize,
1512
- borderWidth: t.value.style.tooltip.borderWidth,
1513
- borderColor: t.value.style.tooltip.borderColor,
1514
- borderRadius: t.value.style.tooltip.borderRadius,
1515
- backgroundOpacity: t.value.style.tooltip.backgroundOpacity
1516
- }, {
1517
- default: jt(() => [
1518
- pe(l.$slots, "tooltip", Ze(Je({ ...k.value })), () => [
1519
- zt(Le(k.value.period) + ": " + Le(b(et)(
1520
- t.value.style.dataLabel.formatter,
1521
- k.value.absoluteValue,
1522
- b(tt)({
1523
- p: t.value.style.dataLabel.prefix,
1524
- v: k.value.absoluteValue,
1525
- s: t.value.style.dataLabel.suffix,
1526
- r: t.value.style.dataLabel.roundingValue
1527
- }),
1528
- { datapoint: k.value }
1529
- )), 1)
1530
- ], !0)
1531
- ]),
1532
- _: 3
1533
- }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : _("", !0),
1534
- l.$slots.source ? (f(), y("div", {
1535
- key: 3,
1536
- ref_key: "source",
1537
- ref: B,
1538
- dir: "auto"
1539
- }, [
1540
- pe(l.$slots, "source", {}, void 0, !0)
1541
- ], 512)) : _("", !0),
1542
- pe(l.$slots, "skeleton", {}, () => [
1543
- b(P) ? (f(), _e(oa, { key: 0 })) : _("", !0)
1544
- ], !0)
1545
- ], 12, za));
1546
- }
1547
- }, Fl = /* @__PURE__ */ fa(Sl, [["__scopeId", "data-v-66022e99"]]);
1548
- export {
1549
- Fl as default
1550
- };