vue-data-ui 3.20.0 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/package.json +120 -120
  2. package/dist/A11yDataTable-BCbtxMU6.js +0 -45
  3. package/dist/Arrow-D6j6ocXm.js +0 -116
  4. package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
  5. package/dist/BaseIcon-DfLoHNUj.js +0 -502
  6. package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
  7. package/dist/BaseScanner-Dr2a1Msy.js +0 -27
  8. package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
  9. package/dist/ColorPicker-Bjwxnvfh.js +0 -255
  10. package/dist/DataTable-B--IN22e.js +0 -150
  11. package/dist/Legend-Cz2uQ5gs.js +0 -114
  12. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
  13. package/dist/PackageVersion-xcyrdRmY.js +0 -11
  14. package/dist/PenAndPaper-DqrClVfb.js +0 -461
  15. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  16. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  17. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  18. package/dist/Shape-BPCJfphn.js +0 -141
  19. package/dist/Slicer-SHBj0VaV.js +0 -1144
  20. package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
  21. package/dist/SparkTooltip-CfE6yCad.js +0 -93
  22. package/dist/Title-NWp4qB4K.js +0 -87
  23. package/dist/Tooltip-BENq327o.js +0 -312
  24. package/dist/UserOptions-C1NgoGu6.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  26. package/dist/canvas-lib-BOP_HS11.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-BYtB4BF3.js +0 -237
  99. package/dist/exposedLib-CI8ji8G-.js +0 -19
  100. package/dist/geoProjections-Czak6Jn1.js +0 -145
  101. package/dist/img-1cKsci8e.js +0 -74
  102. package/dist/labelUtils-CUctkYoA.js +0 -19
  103. package/dist/lib-DUeYQsS0.js +0 -1882
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-CS7hn6at.js +0 -258
  106. package/dist/pdf-D0eZ99cP.js +0 -90
  107. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -17190
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -93
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
  115. package/dist/types/vue-ui-annotator.d.ts +0 -34
  116. package/dist/types/vue-ui-bullet.d.ts +0 -85
  117. package/dist/types/vue-ui-bump.d.ts +0 -92
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -106
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -59
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -98
  121. package/dist/types/vue-ui-chord.d.ts +0 -110
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -126
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -125
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -68
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
  128. package/dist/types/vue-ui-donut.d.ts +0 -123
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -94
  130. package/dist/types/vue-ui-flow.d.ts +0 -106
  131. package/dist/types/vue-ui-funnel.d.ts +0 -79
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -114
  133. package/dist/types/vue-ui-gauge.d.ts +0 -89
  134. package/dist/types/vue-ui-geo.d.ts +0 -94
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -101
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -114
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -112
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -92
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
  145. package/dist/types/vue-ui-onion.d.ts +0 -106
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -125
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -108
  151. package/dist/types/vue-ui-radar.d.ts +0 -116
  152. package/dist/types/vue-ui-rating.d.ts +0 -42
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -92
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -106
  155. package/dist/types/vue-ui-rings.d.ts +0 -98
  156. package/dist/types/vue-ui-scatter.d.ts +0 -97
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -28
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -49
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -59
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -118
  166. package/dist/types/vue-ui-stackline.d.ts +0 -114
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -96
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
  170. package/dist/types/vue-ui-table.d.ts +0 -38
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -70
  172. package/dist/types/vue-ui-timer.d.ts +0 -49
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -70
  174. package/dist/types/vue-ui-treemap.d.ts +0 -104
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -101
  177. package/dist/types/vue-ui-wheel.d.ts +0 -70
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -97
  179. package/dist/types/vue-ui-world.d.ts +0 -98
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
  181. package/dist/types/vue-ui-xy.d.ts +0 -146
  182. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
  183. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  184. package/dist/useConfig-DAyQk86L.js +0 -7479
  185. package/dist/useFitSvgText-CT3nmlaS.js +0 -63
  186. package/dist/useNestedProp-CNcoy38D.js +0 -10
  187. package/dist/useObjectBindings-BI7hP-BC.js +0 -189
  188. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  189. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  190. package/dist/usePrinter-C1Gqt_Sp.js +0 -49
  191. package/dist/useResponsive-BfnK0KxU.js +0 -19
  192. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  193. package/dist/useSvgExport-SVIsDot8.js +0 -755
  194. package/dist/useTableResponsive-B24Uwt2E.js +0 -24
  195. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  196. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  197. package/dist/useTimeLabels-BmBRv27Y.js +0 -272
  198. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-DUrZWttG.js +0 -13
  201. package/dist/vue-data-ui-qpQv-4uP.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
  204. package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
  205. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
  206. package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
  207. package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
  208. package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
  209. package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
  210. package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
  211. package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
  212. package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
  213. package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
  214. package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
  215. package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
  216. package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
  217. package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
  218. package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
  220. package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
  221. package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
  222. package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
  223. package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
  224. package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
  225. package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
  226. package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
  227. package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
  228. package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
  229. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
  230. package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
  231. package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
  232. package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
  233. package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
  235. package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
  237. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  238. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  239. package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
  240. package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
  241. package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
  242. package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
  243. package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
  244. package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
  245. package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
  246. package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
  247. package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
  248. package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
  249. package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
  250. package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
  251. package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
  253. package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
  255. package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
  256. package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
  257. package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
  258. package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
  260. package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
  261. package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
  262. package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
  263. package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
  264. package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
  265. package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
  266. package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
  267. package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
  268. package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
  270. package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
  271. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
  273. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  274. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  275. package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
  276. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  277. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  278. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  279. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  280. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  281. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
  282. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  283. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  284. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  285. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  286. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  287. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  288. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  289. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  291. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  292. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  293. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  294. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  296. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  297. package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
  298. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  299. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  300. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  301. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  302. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  303. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  304. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  305. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  307. package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  309. package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
  310. package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
  311. package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
  312. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  313. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  314. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  315. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  316. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  318. package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
  319. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  320. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  321. package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
  322. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
@@ -1,1507 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Bt as t, Ct as n, G as r, H as i, I as a, M as o, Mt as s, Nt as c, Q as l, R as u, X as d, et as f, f as p, i as m, jt as ee, k as te, l as ne, ot as re, t as ie, y as ae, yt as h } from "./lib-DUeYQsS0.js";
3
- import { t as oe } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as se } from "./useConfig-DAyQk86L.js";
5
- import { n as ce, t as le } from "./BaseScanner-Dr2a1Msy.js";
6
- import { t as ue } from "./useNestedProp-CNcoy38D.js";
7
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { c as pe } from "./canvas-lib-BOP_HS11.js";
10
- import { t as g } from "./useResponsive-BfnK0KxU.js";
11
- import { t as me } from "./A11yDataTable-BCbtxMU6.js";
12
- import { t as he } from "./useChartAccessibility-DYqac8yF.js";
13
- import { t as ge } from "./usePrefersMotion-BC-CsqR1.js";
14
- import { t as _e } from "./vue_ui_sparkline-auZhap6Y.js";
15
- import { Fragment as _, computed as v, createBlock as ve, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as ye, createVNode as be, defineAsyncComponent as xe, guardReactiveProps as Se, nextTick as S, normalizeProps as Ce, normalizeStyle as C, onBeforeUnmount as we, onMounted as Te, openBlock as w, ref as T, renderList as E, renderSlot as D, shallowRef as Ee, toDisplayString as De, toRefs as Oe, unref as O, watch as k, watchEffect as ke, withCtx as Ae } from "vue";
16
- //#region src/atoms/SparklinePulse.vue
17
- var je = {
18
- key: 0,
19
- style: { "pointer-events": "none" }
20
- }, Me = [
21
- "r",
22
- "fill",
23
- "filter"
24
- ], Ne = [
25
- "begin",
26
- "dur",
27
- "repeatCount",
28
- "fill",
29
- "calcMode",
30
- "keySplines",
31
- "keyTimes",
32
- "keyPoints"
33
- ], Pe = ["href"], Fe = [
34
- "dur",
35
- "repeatCount",
36
- "fill",
37
- "values"
38
- ], Ie = ["r", "fill"], A = [
39
- "begin",
40
- "dur",
41
- "repeatCount",
42
- "calcMode",
43
- "keySplines",
44
- "keyTimes",
45
- "keyPoints"
46
- ], Le = ["href"], j = ["dur", "repeatCount"], Re = {
47
- __name: "SparklinePulse",
48
- props: {
49
- uid: {
50
- type: String,
51
- required: !0
52
- },
53
- svgRef: {
54
- type: Object,
55
- default: null
56
- },
57
- pulsePathId: {
58
- type: String,
59
- required: !0
60
- },
61
- pulsePathLength: {
62
- type: Number,
63
- required: !0
64
- },
65
- pulseDur: {
66
- type: String,
67
- required: !0
68
- },
69
- pulseBegin: {
70
- type: String,
71
- required: !0
72
- },
73
- pulseRepeatCount: {
74
- type: String,
75
- required: !0
76
- },
77
- pulseFillMode: {
78
- type: String,
79
- default: void 0
80
- },
81
- pulseKeyPoints: {
82
- type: String,
83
- required: !0
84
- },
85
- pulseMotion: {
86
- type: Object,
87
- required: !0
88
- },
89
- pulse: {
90
- type: Object,
91
- required: !0
92
- },
93
- pulseTrail: {
94
- type: Object,
95
- required: !0
96
- },
97
- pulseTrailLength: {
98
- type: Number,
99
- required: !0
100
- },
101
- prefersReducedMotion: {
102
- type: Boolean,
103
- required: !0
104
- },
105
- loading: {
106
- type: Boolean,
107
- required: !0
108
- },
109
- isBar: {
110
- type: Boolean,
111
- required: !0
112
- }
113
- },
114
- setup(e) {
115
- let t = e, n = v(() => Math.min(t.pulseTrailLength, 45)), r = v(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
116
- function i() {
117
- let e = t.svgRef?.value;
118
- e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
119
- }
120
- function a(e, t) {
121
- if (typeof e != "string") return e;
122
- let n = e.trim().match(/^([\d.]+)\s*(ms|s)$/);
123
- if (!n) return e;
124
- let r = Number(n[1]), i = n[2];
125
- return Number.isNaN(r) ? e : `${r + t}${i}`;
126
- }
127
- function o(e) {
128
- return (n.value - e) / n.value * t.pulse.radius;
129
- }
130
- function s(e) {
131
- let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
132
- return `0;${a};${a};0`;
133
- }
134
- return k(() => t.loading, async (e) => {
135
- if (e) {
136
- i();
137
- return;
138
- }
139
- await S(), i();
140
- }), k(() => t.pulsePathId, async () => {
141
- await S(), i();
142
- }), we(() => {
143
- i();
144
- }), (t, i) => r.value ? (w(), b("g", je, [(w(!0), b(_, null, E(n.value, (t, n) => (w(), b(_, null, [n % 3 == 0 ? (w(), b("circle", {
145
- key: `sparkline_dot_${n}_${e.pulsePathId}`,
146
- r: o(n),
147
- fill: e.pulse.color,
148
- filter: `url(#sparkline_pulse_glow_${e.uid})`,
149
- opacity: "0"
150
- }, [x("animateMotion", {
151
- begin: a(e.pulseBegin, n * 10),
152
- dur: e.pulseDur,
153
- repeatCount: e.pulseRepeatCount,
154
- fill: e.pulseFillMode,
155
- calcMode: e.pulseMotion.calcMode,
156
- keySplines: e.pulseMotion.keySplines || void 0,
157
- keyTimes: e.pulseMotion.keyTimes || void 0,
158
- keyPoints: e.pulseKeyPoints,
159
- rotate: "auto"
160
- }, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Pe)], 8, Ne), x("animate", {
161
- attributeName: "opacity",
162
- dur: e.pulseDur,
163
- repeatCount: e.pulseRepeatCount,
164
- fill: e.pulseFillMode,
165
- values: s(n),
166
- keyTimes: "0;0.1;0.9;1"
167
- }, null, 8, Fe)], 8, Me)) : y("", !0)], 64))), 256)), (w(), b("circle", {
168
- key: `sparkline_halo_${e.pulsePathId}`,
169
- r: Math.max(e.pulse.radius * 1.3),
170
- fill: e.pulse.color,
171
- opacity: "0"
172
- }, [x("animateMotion", {
173
- begin: e.pulseBegin,
174
- dur: e.pulseDur,
175
- repeatCount: e.pulseRepeatCount,
176
- calcMode: e.pulseMotion.calcMode,
177
- keySplines: e.pulseMotion.keySplines || void 0,
178
- keyTimes: e.pulseMotion.keyTimes || void 0,
179
- keyPoints: e.pulseKeyPoints,
180
- rotate: "auto"
181
- }, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Le)], 8, A), x("animate", {
182
- attributeName: "opacity",
183
- values: "0;0.35;0.35;0",
184
- keyTimes: "0;0.15;0.85;1",
185
- dur: e.pulseDur,
186
- repeatCount: e.pulseRepeatCount
187
- }, null, 8, j)], 8, Ie))])) : y("", !0);
188
- }
189
- }, M = {
190
- canvas: null,
191
- ctx: null
192
- };
193
- function ze() {
194
- if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
195
- if (!M.canvas) {
196
- let e = document.createElement("canvas");
197
- e.width = 1, e.height = 1;
198
- let t = e.getContext("2d", { willReadFrequently: !0 });
199
- if (!t) throw Error("color-utils: unable to get 2D canvas context.");
200
- M.canvas = e, M.ctx = t;
201
- }
202
- return M.ctx;
203
- }
204
- function Be(e) {
205
- return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
206
- }
207
- function N(e) {
208
- return e < 0 ? 0 : e > 1 ? 1 : e;
209
- }
210
- function P(e, t = null) {
211
- if (typeof e != "string" || e.trim().length === 0) throw Error("colorToRgba: inputColor must be a non-empty string.");
212
- let n = e.trim();
213
- if (n.toLowerCase() === "transparent") return {
214
- red: 0,
215
- green: 0,
216
- blue: 0,
217
- alpha: 0
218
- };
219
- let r = Ve(n, t), i = ze();
220
- i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
221
- let a = i.fillStyle;
222
- if (i.fillStyle = r, i.fillStyle === a && !He(r)) throw Error(`colorToRgba: unsupported or invalid color "${e}".`);
223
- i.fillRect(0, 0, 1, 1);
224
- let o = i.getImageData(0, 0, 1, 1).data;
225
- return {
226
- red: o[0],
227
- green: o[1],
228
- blue: o[2],
229
- alpha: o[3] / 255
230
- };
231
- }
232
- function F(e, t = null) {
233
- if (!Array.isArray(e) || e.length === 0) throw Error("colorsToRgba: colors must be a non-empty array.");
234
- let n = Array(e.length);
235
- for (let r = 0; r < e.length; r += 1) n[r] = P(e[r], t);
236
- return n;
237
- }
238
- function Ve(e, t = null) {
239
- return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
240
- }
241
- function He(e) {
242
- let t = e.trim().toLowerCase();
243
- return t === "black" || t === "#000" || t === "#000000" || t === "rgb(0, 0, 0)" || t === "rgba(0, 0, 0, 1)" || t === "rgba(0, 0, 0, 0)";
244
- }
245
- function I(e) {
246
- let t = N(e / 255);
247
- return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
248
- }
249
- function L(e) {
250
- let t = N(e), n;
251
- return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Be(n * 255);
252
- }
253
- function Ue(e, t, n, r) {
254
- let i = N(n);
255
- if (r === "linearRGB") {
256
- let n = I(e.red), r = I(e.green), a = I(e.blue), o = I(t.red), s = I(t.green), c = I(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
257
- return {
258
- red: L(l),
259
- green: L(u),
260
- blue: L(d),
261
- alpha: e.alpha + (t.alpha - e.alpha) * i
262
- };
263
- }
264
- return {
265
- red: e.red + (t.red - e.red) * i,
266
- green: e.green + (t.green - e.green) * i,
267
- blue: e.blue + (t.blue - e.blue) * i,
268
- alpha: e.alpha + (t.alpha - e.alpha) * i
269
- };
270
- }
271
- //#endregion
272
- //#region src/SPG/number-utils.js
273
- function R(e, t, n) {
274
- let r = e;
275
- return r < t && (r = t), r > n && (r = n), r;
276
- }
277
- function z(e, t) {
278
- let n = 10 ** t;
279
- return Math.round(e * n) / n;
280
- }
281
- function B(e) {
282
- return Number.isFinite(e) ? e.toString() : "0";
283
- }
284
- function We(e) {
285
- let t = R(e, 0, 255).toString(16);
286
- return t.length === 1 ? "0" + t : t;
287
- }
288
- function Ge(e) {
289
- if (typeof e != "string") return;
290
- let t = Number.parseFloat(e);
291
- return Number.isFinite(t) ? t : void 0;
292
- }
293
- function Ke(e, t, n, r = !0) {
294
- let i = n - t;
295
- if (i === 0) return 0;
296
- let a = (e - t) / i;
297
- return r ? R(a, 0, 1) : a;
298
- }
299
- //#endregion
300
- //#region src/SPG/index.js
301
- var qe = "http://www.w3.org/2000/svg";
302
- function Je(e) {
303
- if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
304
- let t = document.createElementNS(qe, "svg");
305
- t.setAttribute("width", "0"), t.setAttribute("height", "0"), t.setAttribute("viewBox", "0 0 0 0"), t.style.position = "absolute", t.style.left = "-10000px", t.style.top = "-10000px", t.style.visibility = "hidden", t.style.pointerEvents = "none";
306
- let n = document.createElementNS(qe, "path");
307
- return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
308
- svgElement: t,
309
- pathElement: n
310
- };
311
- }
312
- function Ye(e) {
313
- if (e) try {
314
- e.svgElement?.remove?.();
315
- } catch {}
316
- }
317
- function Xe(e, t, n) {
318
- if (typeof n == "number" && n > 0) return n;
319
- let r = t * .75;
320
- r < .5 && (r = .5), r > 8 && (r = 8);
321
- let i = e / 2;
322
- return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
323
- }
324
- function Ze(e, t, n) {
325
- if (typeof t == "number" && t >= 1) return Math.floor(t);
326
- let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
327
- return r < 1 ? 1 : r;
328
- }
329
- function Qe(e, t, n, r, i, a) {
330
- let o = n - t, s = Math.ceil(o / r) + 1;
331
- s < 2 && (s = 2), s > a && (s = a);
332
- let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${B(z(l.x, i))} ${B(z(l.y, i))}`;
333
- for (let n = 1; n < s; n += 1) {
334
- let r = t + n * c, a = e.getPointAtLength(r);
335
- u += ` L ${B(z(a.x, i))} ${B(z(a.y, i))}`;
336
- }
337
- return u;
338
- }
339
- function $e(e, t, n, r, i, a) {
340
- let o = n - t, s = Math.ceil(o / r) + 1;
341
- s < 2 && (s = 2), s > a && (s = a);
342
- let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, m = `M ${B(z(l.x, i))} ${B(z(l.y, i))}`;
343
- for (let n = 1; n < s; n += 1) {
344
- let r = t + n * c, a = e.getPointAtLength(r);
345
- a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y), m += ` L ${B(z(a.x, i))} ${B(z(a.y, i))}`;
346
- }
347
- return {
348
- pathData: m,
349
- bounds: {
350
- minX: u,
351
- maxX: d,
352
- minY: f,
353
- maxY: p
354
- }
355
- };
356
- }
357
- function et(e) {
358
- if (e.length === 1) return [{
359
- position: 0,
360
- rgba: e[0]
361
- }];
362
- let t = Array(e.length), n = e.length - 1;
363
- for (let r = 0; r < e.length; r += 1) t[r] = {
364
- position: r / n,
365
- rgba: e[r]
366
- };
367
- return t;
368
- }
369
- function V(e, t, n, r) {
370
- let i = R(t, 0, 1), a = r;
371
- for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
372
- for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
373
- let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
374
- return U(tt(o.rgba, s.rgba, l, n));
375
- }
376
- function tt(e, t, n, r) {
377
- let i = R(n, 0, 1);
378
- if (r === "linearRGB") {
379
- let n = H(e.red), r = H(e.green), a = H(e.blue), o = H(t.red), s = H(t.green), c = H(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
380
- return {
381
- red: nt(l),
382
- green: nt(u),
383
- blue: nt(d),
384
- alpha: e.alpha + (t.alpha - e.alpha) * i
385
- };
386
- }
387
- return {
388
- red: e.red + (t.red - e.red) * i,
389
- green: e.green + (t.green - e.green) * i,
390
- blue: e.blue + (t.blue - e.blue) * i,
391
- alpha: e.alpha + (t.alpha - e.alpha) * i
392
- };
393
- }
394
- function H(e) {
395
- let t = R(e / 255, 0, 1);
396
- return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
397
- }
398
- function nt(e) {
399
- let t = R(e, 0, 1), n;
400
- return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, R(Math.round(n * 255), 0, 255);
401
- }
402
- function U(e) {
403
- let t = R(e.alpha, 0, 1), n = R(Math.round(e.red), 0, 255), r = R(Math.round(e.green), 0, 255), i = R(Math.round(e.blue), 0, 255);
404
- return t >= 1 ? `#${We(n)}${We(r)}${We(i)}` : `rgba(${n}, ${r}, ${i}, ${z(t, 4).toString()})`;
405
- }
406
- function W(e) {
407
- let t = `fill="${K(e.fill ?? "none")}"`, n = Object.keys(e);
408
- for (let r = 0; r < n.length; r += 1) {
409
- let i = n[r];
410
- if (i === "stroke" || i === "d") continue;
411
- let a = e[i];
412
- t += ` ${i}="${K(a)}"`;
413
- }
414
- return t;
415
- }
416
- function G(e, t, n) {
417
- return `<path d="${K(e)}" stroke="${K(t)}" ${n} />`;
418
- }
419
- function rt(e) {
420
- let t = [], n = e.segmentAttributeMap.fill ?? "none";
421
- t.push(`fill="${K(n)}"`), t.push(`stroke="${K(e.stroke)}"`);
422
- for (let n of Object.keys(e.segmentAttributeMap)) {
423
- if (n === "stroke" || n === "d") continue;
424
- let r = e.segmentAttributeMap[n];
425
- t.push(`${n}="${K(r)}"`);
426
- }
427
- return `<path d="${K(e.pathData)}" ${t.join(" ")} />`;
428
- }
429
- function it(e, t) {
430
- let n = [];
431
- for (let e of Object.keys(t)) n.push(`${e}="${K(t[e])}"`);
432
- return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
433
- }
434
- function K(e) {
435
- return String(e).replaceAll("&", "&amp;").replaceAll("\"", "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
436
- }
437
- function at(e, t = null, n = {}) {
438
- return new Promise((r, i) => {
439
- let a = null;
440
- try {
441
- if (!e || typeof e != "string") throw Error("SvgPathGradientAsync: pathData must be a non-empty string.");
442
- let i = n.temperatureMode ?? null;
443
- if (i === null && (!Array.isArray(t) || t.length === 0)) throw Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");
444
- if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
445
- let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = Ge(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
446
- a = Je(e);
447
- let f = a.pathElement, p = f.getTotalLength(), m = i === null ? F(t, n.colorReferenceElement) : [];
448
- if (i === null && (!(p > 0) || m.length === 1)) {
449
- let t = it([rt({
450
- pathData: e,
451
- stroke: U(m[0]),
452
- segmentAttributeMap: c
453
- })], l);
454
- Ye(a), r(t);
455
- return;
456
- }
457
- let ee = n.colorSpace ?? "linearRGB";
458
- if (i !== null) {
459
- let e = n.temperatureColors;
460
- if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
461
- }
462
- let te = i === null ? null : F(n.temperatureColors, n.colorReferenceElement), ne = i === null ? (() => {
463
- let e = et(m), t = Array(e.length);
464
- for (let n = 0; n < e.length; n += 1) t[n] = {
465
- position: e[n].position,
466
- rgba: e[n].rgba
467
- };
468
- return t;
469
- })() : [], re = Xe(p, d, n.maxSegmentLength), ie = Ze(p, n.segments, re), ae = p / ie, h = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, oe = ae * .45;
470
- h > oe && (h = oe);
471
- let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = W(c), le = [], ue = i === null ? null : [], de = i === null ? null : [], fe = 0, pe = i === null ? ne.length - 2 : 0, g = 0, me = () => {
472
- let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
473
- for (; g < ie && performance.now() - e < t;) {
474
- let e = g * ae, t = (g + 1) * ae, n = e, r = t;
475
- if (g !== 0 && (n = e - h), g !== ie - 1 && (r = t + h), n = R(n, 0, p), r = R(r, 0, p), r > n) if (i !== null) {
476
- let e = $e(f, n, r, s, o, se);
477
- ue.push(e.pathData), de.push(e.bounds);
478
- } else {
479
- let e = (n + r) * .5 / p;
480
- for (; fe < pe && e > ne[fe + 1].position;) fe += 1;
481
- let t = V(ne, e, ee, fe), i = Qe(f, n, r, s, o, se);
482
- le.push(G(i, t, ce));
483
- }
484
- g += 1;
485
- }
486
- if (g < ie) {
487
- requestAnimationFrame(me);
488
- return;
489
- }
490
- if (i !== null) {
491
- let e = Infinity, t = -Infinity;
492
- for (let n = 0; n < de.length; n += 1) {
493
- let r = de[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
494
- a < e && (e = a), o > t && (t = o);
495
- }
496
- let n = te[0], r = te[1];
497
- le.length = 0;
498
- for (let a = 0; a < de.length; a += 1) {
499
- let o = de[a], s = Ke(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = U(i === "vertical" ? Ue(n, r, s, ee) : Ue(r, n, s, ee)), l = ue[a];
500
- le.push(G(l, c, ce));
501
- }
502
- }
503
- let c = it(le, l);
504
- Ye(a), r(c);
505
- };
506
- requestAnimationFrame(me);
507
- } catch (e) {
508
- Ye(a), i(e);
509
- }
510
- });
511
- }
512
- //#endregion
513
- //#region src/atoms/SparklineGradientPath.vue
514
- var ot = ["innerHTML"], st = {
515
- __name: "SparklineGradientPath",
516
- props: {
517
- svgPathData: {
518
- type: String,
519
- required: !0
520
- },
521
- enabled: {
522
- type: Boolean,
523
- required: !0
524
- },
525
- strokeWidth: {
526
- type: Number,
527
- required: !0
528
- },
529
- highColor: {
530
- type: String,
531
- required: !0
532
- },
533
- lowColor: {
534
- type: String,
535
- required: !0
536
- },
537
- segments: {
538
- type: Number,
539
- required: !0
540
- }
541
- },
542
- setup(e) {
543
- let t = e, n = T(""), r = 0;
544
- return k(() => [
545
- t.enabled,
546
- t.svgPathData,
547
- t.strokeWidth,
548
- t.highColor,
549
- t.lowColor,
550
- t.segments
551
- ], async ([e]) => {
552
- let i = ++r;
553
- if (!e) {
554
- n.value = "";
555
- return;
556
- }
557
- let a = await at(t.svgPathData, null, {
558
- segments: t.segments,
559
- temperatureMode: "vertical",
560
- temperatureColors: [t.highColor, t.lowColor],
561
- attrs: {
562
- "stroke-width": t.strokeWidth,
563
- "stroke-linecap": "round",
564
- "stroke-linejoin": "round"
565
- },
566
- groupAttrs: { class: "vue-ui-sparkline-gradient" }
567
- });
568
- i === r && (n.value = a);
569
- }, { immediate: !0 }), (e, t) => (w(), b("g", { innerHTML: n.value }, null, 8, ot));
570
- }
571
- }, ct = /* @__PURE__ */ e({ default: () => Ht }), lt = ["id"], ut = ["id"], dt = { style: { position: "relative" } }, ft = [
572
- "xmlns",
573
- "viewBox",
574
- "aria-describedby"
575
- ], pt = ["width", "height"], mt = ["id"], ht = ["stop-color"], gt = ["stop-color"], _t = ["id"], vt = ["stop-color"], yt = ["stop-color"], bt = ["id"], xt = ["stop-color"], St = ["stop-color"], Ct = ["id"], wt = ["id"], Tt = ["stop-color", "offset"], Et = { key: 1 }, Dt = ["d", "fill"], Ot = ["d", "fill"], kt = [
576
- "id",
577
- "d",
578
- "stroke-width"
579
- ], At = [
580
- "d",
581
- "stroke",
582
- "stroke-width",
583
- "stroke-dasharray"
584
- ], jt = [
585
- "d",
586
- "stroke",
587
- "stroke-width"
588
- ], Mt = [
589
- "id",
590
- "d",
591
- "stroke-width"
592
- ], Nt = [
593
- "d",
594
- "stroke",
595
- "stroke-width",
596
- "stroke-dasharray"
597
- ], Pt = [
598
- "d",
599
- "stroke",
600
- "stroke-width"
601
- ], Ft = [
602
- "x",
603
- "y",
604
- "width",
605
- "height",
606
- "fill",
607
- "rx"
608
- ], It = [
609
- "x1",
610
- "x2",
611
- "y1",
612
- "y2",
613
- "stroke",
614
- "stroke-width",
615
- "stroke-dasharray"
616
- ], Lt = [
617
- "x1",
618
- "x2",
619
- "y1",
620
- "y2",
621
- "stroke",
622
- "stroke-dasharray",
623
- "stroke-width"
624
- ], Rt = [
625
- "cx",
626
- "cy",
627
- "r",
628
- "fill",
629
- "stroke",
630
- "stroke-width"
631
- ], zt = [
632
- "x",
633
- "y",
634
- "font-size",
635
- "font-weight",
636
- "fill"
637
- ], Bt = [
638
- "x",
639
- "y",
640
- "height",
641
- "width",
642
- "onMouseenter",
643
- "onMouseleave",
644
- "onClick"
645
- ], Vt = {
646
- key: 0,
647
- style: {
648
- position: "absolute",
649
- top: "100%",
650
- left: "0",
651
- width: "100%"
652
- },
653
- "data-dom-to-png-ignore": "",
654
- "aria-hidden": "true"
655
- }, Ht = /* @__PURE__ */ fe({
656
- __name: "vue-ui-sparkline",
657
- props: {
658
- config: {
659
- type: Object,
660
- default() {
661
- return {};
662
- }
663
- },
664
- dataset: {
665
- type: Array,
666
- default() {
667
- return [];
668
- }
669
- },
670
- showInfo: {
671
- type: Boolean,
672
- default: !0
673
- },
674
- selectedIndex: {
675
- type: Number,
676
- default: void 0
677
- },
678
- heightRatio: {
679
- type: Number,
680
- default: 1
681
- },
682
- forcedPadding: {
683
- type: Number,
684
- default: 30
685
- }
686
- },
687
- emits: ["hoverIndex", "selectDatapoint"],
688
- setup(e, { emit: fe }) {
689
- let je = xe(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), Me = xe(() => import("./SparkTooltip-CfE6yCad.js")), { vue_ui_sparkline: Ne } = se(), { isThemeValid: Pe, warnInvalidTheme: Fe } = de(), Ie = ge(), A = e, Le = v(() => Array.isArray(A.dataset) && A.dataset.length > 0), j = T(i()), M = T(null), ze = T(null), Be = T(null), N = T(null), P = T(null), F = T(z());
690
- function Ve(e) {
691
- return A.config?.skeletonDataset && Array.isArray(A.config.skeletonDataset) ? A.config.skeletonDataset.map((e) => ({
692
- period: "-",
693
- value: e
694
- })) : l(e).map((e) => ({
695
- period: "-",
696
- value: e
697
- }));
698
- }
699
- let He = v(() => t({
700
- defaultConfig: {
701
- gradientPath: { show: !1 },
702
- temperatureColors: { show: !1 },
703
- style: {
704
- backgroundColor: "#99999930",
705
- scaleMin: 0,
706
- scaleMax: null,
707
- animation: { show: !1 },
708
- line: {
709
- color: "#AAAAAA",
710
- pulse: { show: !1 },
711
- dashIndices: []
712
- },
713
- bar: { color: "#AAAAAA" },
714
- area: { color: "#CACACA" },
715
- zeroLine: { color: "#6A6A6A" },
716
- dataLabel: { show: !1 },
717
- tooltip: { show: !1 }
718
- }
719
- },
720
- userConfig: F.value.skeletonConfig ?? {}
721
- })), { loading: I, FINAL_DATASET: L, manualLoading: Ue } = ce({
722
- ...Oe(A),
723
- FINAL_CONFIG: F,
724
- prepareConfig: z,
725
- callback: () => {
726
- Promise.resolve().then(async () => {
727
- await S(), ct();
728
- });
729
- },
730
- skeletonDataset: Ve(12),
731
- skeletonConfig: t({
732
- defaultConfig: F.value,
733
- userConfig: He.value
734
- })
735
- }), { svgRef: R } = he({ config: F.value.style.title });
736
- function z() {
737
- let e = ue({
738
- userConfig: A.config,
739
- defaultConfig: Ne
740
- }), t = {}, n = e.theme;
741
- if (n) if (!Pe.value(e)) Fe(e), t = e;
742
- else {
743
- let r = ue({
744
- userConfig: _e[n] || A.config,
745
- defaultConfig: e
746
- });
747
- t = { ...ue({
748
- userConfig: A.config,
749
- defaultConfig: r
750
- }) };
751
- }
752
- else t = e;
753
- return t;
754
- }
755
- let B = v(() => F.value?.style?.line.pulse || {}), We = v(() => `${Math.max(200, Number(B.value.durationMs) || 4e3) / 1e3}s`), Ge = T(0), Ke = v(() => B.value?.begin || "0ms"), qe = T("0;1"), Je = v(() => B.value?.loop === !1 ? "1" : "indefinite"), Ye = v(() => B.value?.loop === !1 ? "freeze" : void 0), Xe = v(() => B.value.trail.show && et.value.lengthPx || 1), Ze = v(() => !!B.value?.show && !Q.value && !Ie.value && !I.value && (Y.value?.length || 0) > 1);
756
- function Qe() {
757
- if (!Ze.value) {
758
- Ge.value = 0;
759
- return;
760
- }
761
- let e = R.value;
762
- if (!e) return;
763
- let t = `#${Ut.value}`, n = e.querySelector?.(t);
764
- if (n && typeof n.getTotalLength == "function") {
765
- let e = n.getTotalLength();
766
- Number.isFinite(e) && e > 0 && (Ge.value = e);
767
- return;
768
- }
769
- requestAnimationFrame(() => {
770
- let n = e.querySelector?.(t);
771
- if (n && typeof n.getTotalLength == "function") {
772
- let e = n.getTotalLength();
773
- Number.isFinite(e) && e > 0 && (Ge.value = e);
774
- }
775
- });
776
- }
777
- let $e = v(() => {
778
- let e = B.value?.easing || "ease-in-out", t = {
779
- ease: [
780
- .25,
781
- .1,
782
- .25,
783
- 1
784
- ],
785
- "ease-in": [
786
- .42,
787
- 0,
788
- 1,
789
- 1
790
- ],
791
- "ease-out": [
792
- 0,
793
- 0,
794
- .58,
795
- 1
796
- ],
797
- "ease-in-out": [
798
- .42,
799
- 0,
800
- .58,
801
- 1
802
- ]
803
- };
804
- return e === "linear" ? {
805
- calcMode: "linear",
806
- keySplines: null,
807
- keyTimes: "0;1"
808
- } : e === "steps" ? {
809
- calcMode: "discrete",
810
- keySplines: null,
811
- keyTimes: "0;1"
812
- } : {
813
- calcMode: "spline",
814
- keySplines: (e === "cubic-bezier" ? Array.isArray(B.value?.cubicBezier) && B.value.cubicBezier.length === 4 ? B.value.cubicBezier : [
815
- .4,
816
- 0,
817
- .2,
818
- 1
819
- ] : t[e] || t["ease-in-out"]).join(" "),
820
- keyTimes: "0;1"
821
- };
822
- }), et = v(() => {
823
- let e = B.value?.trail || {}, t = F.value.style.line.strokeWidth || 1;
824
- return {
825
- show: e.show !== !1,
826
- lengthPx: e.length,
827
- width: Math.max(1, Number(e.strokeWidth) || t * 2.2),
828
- opacity: Math.min(1, Math.max(0, Number(e.opacity) ?? .6)),
829
- fadeIn: .5,
830
- fadeOut: .2
831
- };
832
- }), V = v(() => h({
833
- data: L.value,
834
- threshold: F.value.downsample.threshold
835
- })), tt = v(() => {
836
- if (!F.value.temperatureColors.show) return !1;
837
- let e = L.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
838
- return new Set(e).size <= 1;
839
- });
840
- k(() => A.config, (e) => {
841
- I.value || (F.value = z()), qt(), q.value.chartWidth = F.value.style.chartWidth;
842
- }, { deep: !0 }), k(() => A.dataset, (e) => {
843
- Array.isArray(e) && e.length > 0 && (Ue.value = !1), H.value = h({
844
- data: L.value.map((e) => ({
845
- ...e,
846
- value: [void 0].includes(e.value) ? null : e.value
847
- })),
848
- threshold: F.value.downsample.threshold
849
- });
850
- }, { deep: !0 });
851
- let H = T(nt());
852
- function nt() {
853
- return h({
854
- data: L.value.map((e) => F.value.style.animation.show && L.value.length > 1 ? {
855
- ...e,
856
- value: null
857
- } : {
858
- ...e,
859
- value: [void 0].includes(e.value) ? null : e.value
860
- }),
861
- threshold: F.value.downsample.threshold
862
- });
863
- }
864
- let U = Ee(null), W = Ee(null), G = T(!1), rt = T(0), it = T([]), K = T(""), at = v(() => {
865
- let e = (V.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = F.value?.style?.animation || {}, n = !!F.value?.gradientPath?.show && !F.value.temperatureColors.show;
866
- return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
867
- });
868
- function ot() {
869
- rt.value &&= (cancelAnimationFrame(rt.value), 0), it.value.forEach((e) => clearTimeout(e)), it.value = [], G.value = !1;
870
- }
871
- function ct() {
872
- let e = F.value?.style?.animation || {}, t = V.value || [], n = at.value, r = !!F.value.gradientPath.show && !F.value.temperatureColors.show;
873
- if (n && n === K.value && (G.value || H.value.length === t.length)) return;
874
- if (ot(), r || !e.show || I.value || t.length <= 1) {
875
- H.value = t, K.value = n;
876
- return;
877
- }
878
- G.value = !0, K.value = n, H.value = [];
879
- let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
880
- if (n !== at.value) {
881
- ot();
882
- return;
883
- }
884
- if (o < t.length) {
885
- H.value.push(t[o]);
886
- let e = setTimeout(() => {
887
- rt.value = requestAnimationFrame(s);
888
- }, a);
889
- it.value.push(e), o += 1;
890
- } else H.value = t, ot();
891
- };
892
- rt.value = requestAnimationFrame(s);
893
- }
894
- k(at, () => {
895
- ct();
896
- }), Te(() => {
897
- qt(), ct();
898
- }), we(() => {
899
- ot();
900
- });
901
- let Ht = T(0);
902
- k(() => I.value, async (e) => {
903
- e || (await S(), Ht.value += 1);
904
- }), k(() => G.value, async (e) => {
905
- e || I.value || (await S(), Ht.value += 1);
906
- });
907
- let Ut = v(() => `sparkline_line_path_${j.value}`), Wt = T(!0);
908
- async function Gt() {
909
- Wt.value = !1, await S(), Wt.value = !0, await S(), Qe();
910
- }
911
- let Kt = v(() => !!F.value.debug);
912
- function qt() {
913
- if (n(A.dataset) ? (d({
914
- componentName: "VueUiSparkline",
915
- type: "dataset",
916
- debug: Kt.value
917
- }), Ue.value = !0) : A.dataset.forEach((e, t) => {
918
- re({
919
- datasetObject: e,
920
- requiredAttributes: ["period", "value"]
921
- }).forEach((e) => {
922
- d({
923
- componentName: "VueUiSparkline",
924
- type: "datasetSerieAttribute",
925
- property: e,
926
- index: t,
927
- debug: Kt.value
928
- });
929
- });
930
- }), n(A.dataset) || (Ue.value = F.value.loading), F.value.responsive) {
931
- let e = pe(() => {
932
- let { width: e, height: t } = g({
933
- chart: M.value,
934
- title: F.value.style.title.show && A.showInfo ? ze.value : null,
935
- source: Be.value
936
- });
937
- requestAnimationFrame(() => {
938
- q.value.width = e, q.value.height = t, q.value.chartWidth = F.value.style.chartWidth / 500 * e, q.value.padding = A.forcedPadding / 500 * e;
939
- });
940
- });
941
- U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect()), U.value = new ResizeObserver(e), W.value = M.value.parentNode, U.value.observe(W.value);
942
- }
943
- }
944
- we(() => {
945
- U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect());
946
- });
947
- let q = T({
948
- height: 80 * A.heightRatio,
949
- width: 500,
950
- chartWidth: F.value.style.chartWidth,
951
- padding: A.forcedPadding
952
- }), Jt = fe, J = v(() => {
953
- let { top: e, right: t, bottom: n, left: r } = F.value.style.padding;
954
- return {
955
- top: e,
956
- left: r,
957
- right: q.value.width - t,
958
- bottom: q.value.height - n,
959
- start: A.showInfo && F.value.style.dataLabel.show && F.value.style.dataLabel.position === "left" ? q.value.width - q.value.chartWidth + r : q.value.padding + r,
960
- width: A.showInfo && F.value.style.dataLabel.show ? q.value.chartWidth - r - t : q.value.width - q.value.padding - r - t,
961
- height: q.value.height - e - n
962
- };
963
- }), Yt = v(() => [null, void 0].includes(F.value.style.scaleMin) ? Math.min(...H.value.map((e) => isNaN(e.value) || [
964
- void 0,
965
- null,
966
- "NaN",
967
- NaN,
968
- Infinity,
969
- -Infinity
970
- ].includes(e.value) ? 0 : e.value || 0)) : F.value.style.scaleMin), Xt = v(() => [null, void 0].includes(F.value.style.scaleMax) ? Math.max(...H.value.map((e) => isNaN(e.value) || [
971
- void 0,
972
- null,
973
- "NaN",
974
- NaN,
975
- Infinity,
976
- -Infinity
977
- ].includes(e.value) ? 0 : e.value || 0)) : F.value.style.scaleMax), Zt = v(() => {
978
- let e = Yt.value >= 0 ? 0 : Yt.value;
979
- return Math.abs(e);
980
- }), Qt = v(() => Xt.value + Zt.value), $t = v(() => J.value.bottom - J.value.height * en(Zt.value));
981
- function en(e) {
982
- return isNaN(e / Qt.value) ? 0 : e / Qt.value;
983
- }
984
- let tn = v(() => V.value.length - 1 || 1), nn = T([]), rn = 0;
985
- ke(() => {
986
- let e = ++rn;
987
- (async () => {
988
- let t = await oe({
989
- values: V.value.map((e) => e.period),
990
- maxDatapoints: V.value.length,
991
- formatter: F.value.style.dataLabel.datetimeFormatter,
992
- start: 0,
993
- end: V.value.length
994
- });
995
- e === rn && (nn.value = t);
996
- })();
997
- });
998
- let Y = v(() => H.value.map((e, t) => {
999
- let n = isNaN(e.value) || [
1000
- void 0,
1001
- null,
1002
- "NaN",
1003
- NaN,
1004
- Infinity,
1005
- -Infinity
1006
- ].includes(e.value) ? 0 : e.value || 0, r = J.value.width / tn.value;
1007
- return {
1008
- value: e.value,
1009
- absoluteValue: n,
1010
- period: nn.value && nn.value[t] && nn.value[t].text ? nn.value[t].text : e.period,
1011
- plotValue: n + Zt.value,
1012
- toMax: en(n + Zt.value),
1013
- x: J.value.start + t * r,
1014
- y: J.value.bottom - J.value.height * en(n + Zt.value),
1015
- id: `plot_${j.value}_${t}`,
1016
- color: Q.value ? F.value.style.bar.color : F.value.style.area.useGradient ? c(F.value.style.line.color, .05 * (1 - t / tn.value)) : F.value.style.line.color,
1017
- width: r
1018
- };
1019
- })), an = v(() => A.selectedIndex !== void 0 && A.selectedIndex !== null && A.selectedIndex >= 0 && A.selectedIndex < Y.value.length ? A.selectedIndex : P.value !== void 0 && P.value !== null && P.value >= 0 && P.value < Y.value.length ? P.value : null), on = v(() => {
1020
- let e = {
1021
- x: Y.value[0].x || 0,
1022
- y: (q.value.height || 0) - 6
1023
- }, t = {
1024
- x: Y.value[Y.value.length - 1].x || 0,
1025
- y: (q.value.height || 0) - 6
1026
- }, n = [];
1027
- return Y.value.forEach((e) => {
1028
- n.push(`${e.x || 0},${e.y || 0} `);
1029
- }), [
1030
- e.x,
1031
- e.y,
1032
- ...n,
1033
- t.x,
1034
- t.y
1035
- ].toString();
1036
- }), X = T(void 0), sn = T(void 0);
1037
- function cn(e, t) {
1038
- F.value.events.datapointEnter && F.value.events.datapointEnter({
1039
- datapoint: e,
1040
- seriesIndex: t
1041
- }), P.value = t, N.value = t, X.value = e, sn.value ||= e, Jt("hoverIndex", { index: t });
1042
- }
1043
- function ln(e, t) {
1044
- F.value.events.datapointLeave && F.value.events.datapointLeave({
1045
- datapoint: e,
1046
- seriesIndex: t
1047
- }), sn.value = X.value, X.value = void 0, P.value = null, N.value = null, Jt("hoverIndex", { index: void 0 });
1048
- }
1049
- let Z = v(() => {
1050
- if (Le.value) {
1051
- let e = Y.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
1052
- return {
1053
- latest: Y.value[Y.value.length - 1] ? Y.value[Y.value.length - 1].absoluteValue : 0,
1054
- sum: t,
1055
- average: t / Y.value.length,
1056
- median: p(e),
1057
- trend: ne(Y.value.map(({ x: e, y: t, absoluteValue: n }) => ({
1058
- x: e,
1059
- y: t,
1060
- value: n
1061
- }))).trend
1062
- };
1063
- } else return {
1064
- latest: null,
1065
- sum: null,
1066
- average: null,
1067
- median: null,
1068
- trend: null
1069
- };
1070
- }), un = v(() => Le.value ? F.value.style.dataLabel.valueType === "latest" ? Z.value.latest : F.value.style.dataLabel.valueType === "sum" ? Z.value.sum : F.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = v(() => F.value.type && F.value.type === "bar");
1071
- function dn(e, t) {
1072
- F.value.events.datapointClick && F.value.events.datapointClick({
1073
- datapoint: e,
1074
- seriesIndex: t
1075
- }), Jt("selectDatapoint", {
1076
- datapoint: e,
1077
- index: t
1078
- });
1079
- }
1080
- let fn = v(() => Array.isArray(F.value.style.line.dashIndices) && F.value.style.line.dashIndices.length > 0), pn = v(() => Q.value ? "" : te(Y.value)), mn = v(() => Q.value ? "" : a(Y.value)), hn = v(() => Q.value || !fn.value ? [] : o(Y.value, F.value.style.line.dashIndices)), gn = v(() => Q.value || !fn.value ? [] : u(Y.value, F.value.style.line.dashIndices)), _n = v(() => Q.value || !F.value.gradientPath.show || F.value.temperatureColors.show ? "" : `M ${(F.value.style.line.smooth ? pn.value : mn.value) || "0,0"}`), $ = v(() => !F.value.temperatureColors.show || tt.value || !F.value.temperatureColors.colors.length ? null : F.value.temperatureColors.colors.map((e) => ae(e)));
1081
- k(() => [
1082
- Ze.value,
1083
- Ut.value,
1084
- Y.value.length,
1085
- q.value.width,
1086
- q.value.height,
1087
- F.value?.style?.line?.smooth
1088
- ], async () => {
1089
- await S(), Qe();
1090
- }, { immediate: !0 }), Te(async () => {
1091
- await S(), Qe();
1092
- }), k(() => I.value, async (e) => {
1093
- e || await Gt();
1094
- }), k(() => G.value, async (e) => {
1095
- e || I.value || await Gt();
1096
- }), k(() => A.selectedIndex, (e) => {
1097
- if (e == null) {
1098
- P.value = null, N.value = null, X.value = void 0;
1099
- return;
1100
- }
1101
- if (e < 0 || e >= Y.value.length) return;
1102
- let t = Y.value[e];
1103
- t && (P.value = e, N.value = e, X.value = t);
1104
- });
1105
- let vn = T(!1);
1106
- function yn() {
1107
- let e = an.value;
1108
- if (e !== null && e >= 0 && e < Y.value.length) {
1109
- let t = Y.value[e];
1110
- if (t) {
1111
- N.value = e, X.value = t, P.value = e, vn.value = !0;
1112
- return;
1113
- }
1114
- }
1115
- N.value = null, !X.value && Y.value.length && cn(Y.value.at(-1), Y.value.length - 1), vn.value = !0;
1116
- }
1117
- function bn() {
1118
- sn.value = X.value, (A.selectedIndex === void 0 || A.selectedIndex === null) && (N.value = null, X.value = void 0, P.value = null, Jt("hoverIndex", { index: void 0 })), vn.value = !1;
1119
- }
1120
- function xn(e) {
1121
- if (!R.value || document.activeElement !== R.value) return;
1122
- sn.value = X.value;
1123
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
1124
- if (!t && !n) return;
1125
- let r = Y.value.length;
1126
- if (!r) return;
1127
- e.preventDefault(), e.stopPropagation();
1128
- let i = N.value, a = i !== null && i >= 0 && i < r, o = X.value ? Y.value.findIndex((e) => e.id === X.value.id) : -1;
1129
- a ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : o !== null && o >= 0 && o < r ? (i = n ? o + 1 : o - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1;
1130
- let s = Y.value[i];
1131
- s && (N.value = i, cn(s, i));
1132
- }
1133
- let Sn = v(() => ({
1134
- headers: [F.value.translations.period, F.value.translations.value],
1135
- rows: Y.value.map((e) => [e.period, e.absoluteValue])
1136
- }));
1137
- return (t, n) => (w(), b("div", {
1138
- ref_key: "sparklineChart",
1139
- ref: M,
1140
- class: "vue-data-ui-component vue-ui-sparkline",
1141
- id: j.value,
1142
- style: C(`width:100%;font-family:${F.value.style.fontFamily};`)
1143
- }, [
1144
- x("p", {
1145
- id: `chart-instructions-${j.value}`,
1146
- class: "sr-only"
1147
- }, De(F.value.a11y.translations.keyboardNavigation), 9, ut),
1148
- Sn.value?.rows?.length ? (w(), ve(me, {
1149
- key: 0,
1150
- uid: j.value,
1151
- head: Sn.value.headers,
1152
- body: Sn.value.rows,
1153
- notice: F.value.a11y.translations.tableAvailable,
1154
- caption: F.value.a11y.translations.tableCaption
1155
- }, null, 8, [
1156
- "uid",
1157
- "head",
1158
- "body",
1159
- "notice",
1160
- "caption"
1161
- ])) : y("", !0),
1162
- D(t.$slots, "before", Ce(Se({
1163
- selected: X.value,
1164
- latest: Z.value.latest,
1165
- sum: Z.value.sum,
1166
- average: Z.value.average,
1167
- median: Z.value.median,
1168
- trend: Z.value.trend
1169
- })), void 0, !0),
1170
- F.value.style.title.show && e.showInfo ? (w(), b("div", {
1171
- key: 1,
1172
- ref_key: "chartTitle",
1173
- ref: ze,
1174
- class: "vue-ui-sparkline-title",
1175
- style: C(`display:flex;align-items:center;width:100%;color:${F.value.style.title.color};background:${F.value.style.backgroundColor};justify-content:${F.value.style.title.textAlign === "left" ? "flex-start" : F.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${F.value.style.title.fontSize * 2}px;font-size:${F.value.style.title.fontSize}px;font-weight:${F.value.style.title.bold ? "bold" : "normal"};`)
1176
- }, [x("span", { style: C(`padding:${F.value.style.title.textAlign === "left" ? "0 0 0 12px" : F.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, De(X.value ? X.value.period : F.value.style.title.text), 5)], 4)) : y("", !0),
1177
- x("div", dt, [(w(), b("svg", {
1178
- ref_key: "svgRef",
1179
- ref: R,
1180
- xmlns: O(ie),
1181
- viewBox: `0 0 ${q.value.width} ${q.value.height}`,
1182
- style: C(`background:${F.value.style.backgroundColor};overflow:visible;direction:ltr`),
1183
- tabindex: "0",
1184
- "aria-describedby": `chart-instructions-${j.value}`,
1185
- onMouseleave: n[0] ||= (e) => sn.value = void 0,
1186
- onFocus: yn,
1187
- onBlur: bn,
1188
- onKeydown: xn
1189
- }, [
1190
- be(O(je)),
1191
- t.$slots["chart-background"] ? (w(), b("foreignObject", {
1192
- key: 0,
1193
- x: 0,
1194
- y: 0,
1195
- width: q.value.width <= 0 ? 10 : q.value.width,
1196
- height: q.value.height <= 0 ? 10 : q.value.height,
1197
- style: { pointerEvents: "none" }
1198
- }, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, pt)) : y("", !0),
1199
- x("defs", null, [
1200
- x("linearGradient", {
1201
- x1: "0%",
1202
- y1: "0%",
1203
- x2: "100%",
1204
- y2: "0%",
1205
- id: `sparkline_gradient_${j.value}`
1206
- }, [x("stop", {
1207
- offset: "0%",
1208
- "stop-color": O(s)(O(c)(F.value.style.area.color, .05), F.value.style.area.opacity)
1209
- }, null, 8, ht), x("stop", {
1210
- offset: "100%",
1211
- "stop-color": O(s)(F.value.style.area.color, F.value.style.area.opacity)
1212
- }, null, 8, gt)], 8, mt),
1213
- x("linearGradient", {
1214
- x2: "0%",
1215
- y2: "100%",
1216
- id: `sparkline_bar_gradient_pos_${j.value}`
1217
- }, [x("stop", {
1218
- offset: "0%",
1219
- "stop-color": F.value.style.bar.color
1220
- }, null, 8, vt), x("stop", {
1221
- offset: "100%",
1222
- "stop-color": O(c)(F.value.style.bar.color, .05)
1223
- }, null, 8, yt)], 8, _t),
1224
- x("linearGradient", {
1225
- x2: "0%",
1226
- y2: "100%",
1227
- id: `sparkline_bar_gradient_neg_${j.value}`
1228
- }, [x("stop", {
1229
- offset: "0%",
1230
- "stop-color": O(c)(F.value.style.bar.color, .05)
1231
- }, null, 8, xt), x("stop", {
1232
- offset: "100%",
1233
- "stop-color": F.value.style.bar.color
1234
- }, null, 8, St)], 8, bt),
1235
- x("filter", {
1236
- id: `sparkline_pulse_glow_${j.value}`,
1237
- filterUnits: "userSpaceOnUse",
1238
- x: "-50",
1239
- y: "-50",
1240
- width: "100",
1241
- height: "100"
1242
- }, [...n[1] ||= [x("feGaussianBlur", {
1243
- in: "SourceGraphic",
1244
- stdDeviation: "3",
1245
- result: "blur"
1246
- }, null, -1), x("feMerge", null, [x("feMergeNode", { in: "blur" }), x("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, Ct),
1247
- F.value.temperatureColors.show && $.value && !tt.value ? (w(), b("linearGradient", {
1248
- key: 0,
1249
- id: `temperature_grad_sparkline_${j.value}`,
1250
- gradientTransform: "rotate(90)"
1251
- }, [(w(!0), b(_, null, E($.value, (e, t) => (w(), b("stop", {
1252
- key: `temperature_grad_stop_${t}_${j.value}`,
1253
- "stop-color": e,
1254
- offset: O(ee)(t, $.value.length)
1255
- }, null, 8, Tt))), 128))], 8, wt)) : y("", !0)
1256
- ]),
1257
- F.value.style.area.show && !Q.value && Y.value[0] && Y.value.length > 1 ? (w(), b("g", Et, [F.value.style.line.smooth ? (w(), b("path", {
1258
- key: 0,
1259
- class: "vue-ui-sparkline-area",
1260
- d: `M ${Y.value[0].x},${J.value.bottom} ${O(te)(Y.value)} L ${Y.value.at(-1).x},${J.value.bottom} Z`,
1261
- fill: F.value.style.area.useGradient ? `url(#sparkline_gradient_${j.value})` : O(s)(F.value.style.area.color, F.value.style.area.opacity),
1262
- "stroke-linecap": "round",
1263
- "stroke-linejoin": "round",
1264
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1265
- }, null, 12, Dt)) : (w(), b("path", {
1266
- key: 1,
1267
- class: "vue-ui-sparkline-area",
1268
- d: `M${on.value}Z`,
1269
- fill: F.value.style.area.useGradient ? `url(#sparkline_gradient_${j.value})` : O(s)(F.value.style.area.color, F.value.style.area.opacity),
1270
- "stroke-linecap": "round",
1271
- "stroke-linejoin": "round",
1272
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1273
- }, null, 12, Ot))])) : y("", !0),
1274
- F.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 2 }, [x("path", {
1275
- id: Ut.value,
1276
- d: `M ${pn.value || "0,0"}`,
1277
- fill: "none",
1278
- stroke: "transparent",
1279
- "stroke-width": F.value.style.line.strokeWidth,
1280
- "stroke-linecap": "round",
1281
- "stroke-linejoin": "round"
1282
- }, null, 8, kt), fn.value ? (w(!0), b(_, { key: 0 }, E(hn.value, (e) => (w(), b("path", {
1283
- key: e.path,
1284
- class: "vue-ui-sparkline-path",
1285
- d: `M ${e.path}`,
1286
- stroke: $.value ? `url(#temperature_grad_sparkline_${j.value})` : F.value.style.line.color,
1287
- fill: "none",
1288
- "stroke-width": F.value.style.line.strokeWidth,
1289
- "stroke-linecap": "round",
1290
- "stroke-linejoin": "round",
1291
- "stroke-dasharray": e.dashed ? F.value.style.line.dashArray : 0,
1292
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1293
- }, null, 12, At))), 128)) : (w(), b("path", {
1294
- key: 1,
1295
- class: "vue-ui-sparkline-path",
1296
- d: `M ${pn.value || "0,0"}`,
1297
- stroke: $.value ? `url(#temperature_grad_sparkline_${j.value})` : F.value.style.line.color,
1298
- fill: "none",
1299
- "stroke-width": F.value.style.line.strokeWidth,
1300
- "stroke-linecap": "round",
1301
- "stroke-linejoin": "round",
1302
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1303
- }, null, 12, jt))], 64)) : y("", !0),
1304
- !F.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 3 }, [x("path", {
1305
- id: Ut.value,
1306
- d: `M ${mn.value || "0,0"}`,
1307
- fill: "none",
1308
- stroke: "transparent",
1309
- "stroke-width": F.value.style.line.strokeWidth,
1310
- "stroke-linecap": "round",
1311
- "stroke-linejoin": "round"
1312
- }, null, 8, Mt), fn.value ? (w(!0), b(_, { key: 0 }, E(gn.value, (e) => (w(), b("path", {
1313
- key: e.path,
1314
- class: "vue-ui-sparkline-path",
1315
- d: `M ${e.path}`,
1316
- stroke: $.value ? `url(#temperature_grad_sparkline_${j.value})` : F.value.style.line.color,
1317
- fill: "none",
1318
- "stroke-width": F.value.style.line.strokeWidth,
1319
- "stroke-linecap": "round",
1320
- "stroke-linejoin": "round",
1321
- "stroke-dasharray": e.dashed ? F.value.style.line.dashArray * 2 : 0,
1322
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1323
- }, null, 12, Nt))), 128)) : (w(), b("path", {
1324
- key: 1,
1325
- class: "vue-ui-sparkline-path",
1326
- d: `M ${mn.value || "0,0"}`,
1327
- stroke: $.value ? `url(#temperature_grad_sparkline_${j.value})` : F.value.style.line.color,
1328
- fill: "none",
1329
- "stroke-width": F.value.style.line.strokeWidth,
1330
- "stroke-linecap": "round",
1331
- "stroke-linejoin": "round",
1332
- style: C({ transition: O(I) ? void 0 : "all 0.2s" })
1333
- }, null, 12, Pt))], 64)) : y("", !0),
1334
- _n.value && !$.value ? (w(), ve(st, {
1335
- key: 4,
1336
- svgPathData: _n.value,
1337
- enabled: F.value.gradientPath.show && !Q.value && !$.value,
1338
- strokeWidth: F.value.style.line.strokeWidth,
1339
- highColor: F.value.gradientPath.colors.high,
1340
- lowColor: F.value.gradientPath.colors.low,
1341
- segments: F.value.gradientPath.segments
1342
- }, null, 8, [
1343
- "svgPathData",
1344
- "enabled",
1345
- "strokeWidth",
1346
- "highColor",
1347
- "lowColor",
1348
- "segments"
1349
- ])) : y("", !0),
1350
- Wt.value && Ze.value ? (w(), ve(Re, {
1351
- key: 5,
1352
- uid: j.value,
1353
- svgRef: O(R),
1354
- pulsePathId: Ut.value,
1355
- pulsePathLength: Ge.value,
1356
- pulseDur: We.value,
1357
- pulseBegin: Ke.value,
1358
- pulseRepeatCount: Je.value,
1359
- pulseFillMode: Ye.value,
1360
- pulseKeyPoints: qe.value,
1361
- pulseMotion: $e.value,
1362
- pulse: B.value,
1363
- pulseTrail: et.value,
1364
- pulseTrailLength: Xe.value,
1365
- prefersReducedMotion: O(Ie),
1366
- loading: O(I),
1367
- isBar: Q.value
1368
- }, null, 8, [
1369
- "uid",
1370
- "svgRef",
1371
- "pulsePathId",
1372
- "pulsePathLength",
1373
- "pulseDur",
1374
- "pulseBegin",
1375
- "pulseRepeatCount",
1376
- "pulseFillMode",
1377
- "pulseKeyPoints",
1378
- "pulseMotion",
1379
- "pulse",
1380
- "pulseTrail",
1381
- "pulseTrailLength",
1382
- "prefersReducedMotion",
1383
- "loading",
1384
- "isBar"
1385
- ])) : y("", !0),
1386
- (w(!0), b(_, null, E(Y.value, (e, t) => (w(), b("g", null, [Q.value ? (w(), b("rect", {
1387
- key: 0,
1388
- x: e.x - e.width / 2,
1389
- y: isNaN(e.absoluteValue > 0 ? e.y : $t.value) ? 0 : e.absoluteValue > 0 ? e.y : $t.value,
1390
- width: e.width,
1391
- height: isNaN(Math.abs(e.y - $t.value)) ? 0 : Math.abs(e.y - $t.value),
1392
- fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${j.value})` : `url(#sparkline_bar_gradient_neg_${j.value})`,
1393
- rx: F.value.style.bar.borderRadius
1394
- }, null, 8, Ft)) : y("", !0), F.value.style.verticalIndicator.show && (X.value && e.id === X.value.id || an.value === t) ? (w(), b("line", {
1395
- key: 1,
1396
- x1: e.x,
1397
- x2: e.x,
1398
- y1: J.value.top - 6,
1399
- y2: J.value.bottom,
1400
- stroke: F.value.style.verticalIndicator.color || e.color,
1401
- "stroke-width": F.value.style.verticalIndicator.strokeWidth,
1402
- "stroke-linecap": "round",
1403
- "stroke-dasharray": F.value.style.verticalIndicator.strokeDasharray || 0
1404
- }, null, 8, It)) : y("", !0)]))), 256)),
1405
- Yt.value < 0 ? (w(), b("line", {
1406
- key: 6,
1407
- x1: J.value.start,
1408
- x2: J.value.start + J.value.width,
1409
- y1: O(f)($t.value, J.value.bottom),
1410
- y2: O(f)($t.value, J.value.bottom),
1411
- stroke: F.value.style.zeroLine.color,
1412
- "stroke-dasharray": F.value.style.zeroLine.strokeWidth * 2,
1413
- "stroke-width": F.value.style.zeroLine.strokeWidth,
1414
- "stroke-linecap": "round"
1415
- }, null, 8, Lt)) : y("", !0),
1416
- F.value.style.plot.show ? (w(!0), b(_, { key: 7 }, E(Y.value, (t, n) => (w(), b("g", null, [X.value && t.id === X.value.id || e.selectedIndex === n || O(L).length === 1 ? (w(), b("circle", {
1417
- key: 0,
1418
- cx: t.x,
1419
- cy: t.y,
1420
- r: F.value.style.plot.radius,
1421
- fill: t.color,
1422
- stroke: F.value.style.plot.stroke,
1423
- "stroke-width": F.value.style.plot.strokeWidth
1424
- }, null, 8, Rt)) : y("", !0)]))), 256)) : y("", !0),
1425
- e.showInfo && F.value.style.dataLabel.show ? (w(), b("text", {
1426
- key: 8,
1427
- x: F.value.style.dataLabel.position === "left" ? 12 + F.value.style.dataLabel.offsetX : J.value.width + 12 + F.value.style.dataLabel.offsetX,
1428
- y: q.value.height / 2 + F.value.style.dataLabel.fontSize / 2.5 + F.value.style.dataLabel.offsetY,
1429
- "font-size": F.value.style.dataLabel.fontSize,
1430
- "font-weight": F.value.style.dataLabel.bold ? "bold" : "normal",
1431
- fill: F.value.style.dataLabel.color
1432
- }, De(X.value ? O(m)(F.value.style.dataLabel.formatter, X.value.absoluteValue, O(r)({
1433
- p: F.value.style.dataLabel.prefix,
1434
- v: X.value.absoluteValue,
1435
- s: F.value.style.dataLabel.suffix,
1436
- r: F.value.style.dataLabel.roundingValue
1437
- }), { datapoint: X.value }) : O(m)(F.value.style.dataLabel.formatter, un.value, O(r)({
1438
- p: F.value.style.dataLabel.prefix,
1439
- v: un.value,
1440
- s: F.value.style.dataLabel.suffix,
1441
- r: F.value.style.dataLabel.roundingValue
1442
- }))), 9, zt)) : y("", !0),
1443
- (w(!0), b(_, null, E(Y.value, (e, t) => (w(), b("rect", {
1444
- x: e.x - (J.value.width / (tn.value + 1) > q.value.padding ? q.value.padding : J.value.width / (tn.value + 1)) / 2,
1445
- y: J.value.top - 6,
1446
- height: J.value.height + 6,
1447
- width: J.value.width / (tn.value + 1) > q.value.padding ? q.value.padding : J.value.width / (tn.value + 1),
1448
- fill: "transparent",
1449
- onMouseenter: () => cn(e, t),
1450
- onMouseleave: () => ln(e, t),
1451
- onClick: () => dn(e, t)
1452
- }, null, 40, Bt))), 256)),
1453
- D(t.$slots, "svg", { svg: q.value }, void 0, !0)
1454
- ], 44, ft)), t.$slots.hint ? (w(), b("div", Vt, [D(t.$slots, "hint", Ce(Se({
1455
- hint: F.value.a11y.translations.keyboardNavigation,
1456
- isVisible: vn.value
1457
- })), void 0, !0)])) : y("", !0)]),
1458
- X.value && F.value.style.tooltip.show ? (w(), ve(O(Me), {
1459
- key: 2,
1460
- x: X.value.x,
1461
- y: X.value.y,
1462
- prevX: sn.value.x,
1463
- prevY: sn.value.y,
1464
- offsetY: F.value.style.plot.radius * 3 + F.value.style.tooltip.offsetY,
1465
- svgRef: O(R),
1466
- background: F.value.style.tooltip.backgroundColor,
1467
- color: F.value.style.tooltip.color,
1468
- fontSize: F.value.style.tooltip.fontSize,
1469
- borderWidth: F.value.style.tooltip.borderWidth,
1470
- borderColor: F.value.style.tooltip.borderColor,
1471
- borderRadius: F.value.style.tooltip.borderRadius,
1472
- backgroundOpacity: F.value.style.tooltip.backgroundOpacity
1473
- }, {
1474
- default: Ae(() => [D(t.$slots, "tooltip", Ce(Se({ ...X.value })), () => [ye(De(X.value.period) + ": " + De(O(m)(F.value.style.dataLabel.formatter, X.value.absoluteValue, O(r)({
1475
- p: F.value.style.dataLabel.prefix,
1476
- v: X.value.absoluteValue,
1477
- s: F.value.style.dataLabel.suffix,
1478
- r: F.value.style.dataLabel.roundingValue
1479
- }), { datapoint: X.value })), 1)], !0)]),
1480
- _: 3
1481
- }, 8, [
1482
- "x",
1483
- "y",
1484
- "prevX",
1485
- "prevY",
1486
- "offsetY",
1487
- "svgRef",
1488
- "background",
1489
- "color",
1490
- "fontSize",
1491
- "borderWidth",
1492
- "borderColor",
1493
- "borderRadius",
1494
- "backgroundOpacity"
1495
- ])) : y("", !0),
1496
- t.$slots.source ? (w(), b("div", {
1497
- key: 3,
1498
- ref_key: "source",
1499
- ref: Be,
1500
- dir: "auto"
1501
- }, [D(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
1502
- D(t.$slots, "skeleton", {}, () => [O(I) ? (w(), ve(le, { key: 0 })) : y("", !0)], !0)
1503
- ], 12, lt));
1504
- }
1505
- }, [["__scopeId", "data-v-274de18b"]]);
1506
- //#endregion
1507
- export { ct as n, Ht as t };