vue-data-ui 3.19.8 → 3.20.0

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 (329) hide show
  1. package/README.md +1 -1
  2. package/dist/{A11yDataTable-q2-8fSlJ.js → A11yDataTable-BCbtxMU6.js} +1 -1
  3. package/dist/{Arrow-Cj6W6Xbi.js → Arrow-D6j6ocXm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DUUu2E2Q.js → BaseDraggableDialog-4hDW-Rj2.js} +4 -4
  5. package/dist/{BaseIcon-DM1x8hQF.js → BaseIcon-DfLoHNUj.js} +3 -3
  6. package/dist/{BaseLegendToggle-CJTwLGXL.js → BaseLegendToggle-C_Db-y7s.js} +2 -2
  7. package/dist/{BaseScanner-C7dmAref.js → BaseScanner-Dr2a1Msy.js} +1 -1
  8. package/dist/{BaseZoomControls-BkajQ8q9.js → BaseZoomControls-CG7hI_1P.js} +3 -3
  9. package/dist/{ColorPicker-DTQeqKUV.js → ColorPicker-Bjwxnvfh.js} +4 -4
  10. package/dist/{DataTable-DmE8Oo4i.js → DataTable-B--IN22e.js} +3 -3
  11. package/dist/{Legend-Gg5Q4Clb.js → Legend-Cz2uQ5gs.js} +4 -4
  12. package/dist/{NonSvgPenAndPaper-tvWXeCsd.js → NonSvgPenAndPaper-gLNJ1Lmr.js} +28 -28
  13. package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-xcyrdRmY.js} +2 -2
  14. package/dist/{PenAndPaper-DNgm6y3l.js → PenAndPaper-DqrClVfb.js} +11 -11
  15. package/dist/{Shape-DEGOZ6GG.js → Shape-BPCJfphn.js} +1 -1
  16. package/dist/{Slicer-CPWGgGSp.js → Slicer-SHBj0VaV.js} +19 -19
  17. package/dist/{SlicerPreview-BU3ZeHjR.js → SlicerPreview-DdihbUSJ.js} +474 -361
  18. package/dist/{SparkTooltip-c2DL7gqD.js → SparkTooltip-CfE6yCad.js} +7 -7
  19. package/dist/{Title-__gWq2g6.js → Title-NWp4qB4K.js} +2 -2
  20. package/dist/{Tooltip-CuWEYGr3.js → Tooltip-BENq327o.js} +1 -1
  21. package/dist/{UserOptions-D7zR0tnR.js → UserOptions-C1NgoGu6.js} +5 -5
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-history-plot.js +1 -1
  49. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  50. package/dist/components/vue-ui-icon.js +1 -1
  51. package/dist/components/vue-ui-kpi.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-pattern-seed.js +1 -1
  59. package/dist/components/vue-ui-pattern.js +1 -1
  60. package/dist/components/vue-ui-quadrant.js +1 -1
  61. package/dist/components/vue-ui-quick-chart.js +1 -1
  62. package/dist/components/vue-ui-radar.js +1 -1
  63. package/dist/components/vue-ui-rating.js +1 -1
  64. package/dist/components/vue-ui-relation-circle.js +1 -1
  65. package/dist/components/vue-ui-ridgeline.js +1 -1
  66. package/dist/components/vue-ui-rings.js +1 -1
  67. package/dist/components/vue-ui-scatter.js +1 -1
  68. package/dist/components/vue-ui-skeleton.js +1 -1
  69. package/dist/components/vue-ui-smiley.js +1 -1
  70. package/dist/components/vue-ui-spark-trend.js +1 -1
  71. package/dist/components/vue-ui-sparkbar.js +1 -1
  72. package/dist/components/vue-ui-sparkgauge.js +1 -1
  73. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  74. package/dist/components/vue-ui-sparkline.js +1 -1
  75. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  76. package/dist/components/vue-ui-stackbar.js +1 -1
  77. package/dist/components/vue-ui-stackline.js +1 -1
  78. package/dist/components/vue-ui-strip-plot.js +1 -1
  79. package/dist/components/vue-ui-table-heatmap.js +1 -1
  80. package/dist/components/vue-ui-table-sparkline.js +1 -1
  81. package/dist/components/vue-ui-table.js +1 -1
  82. package/dist/components/vue-ui-thermometer.js +1 -1
  83. package/dist/components/vue-ui-timer.js +1 -1
  84. package/dist/components/vue-ui-tiremarks.js +1 -1
  85. package/dist/components/vue-ui-treemap.js +1 -1
  86. package/dist/components/vue-ui-vertical-bar.js +1 -1
  87. package/dist/components/vue-ui-waffle.js +1 -1
  88. package/dist/components/vue-ui-wheel.js +1 -1
  89. package/dist/components/vue-ui-word-cloud.js +1 -1
  90. package/dist/components/vue-ui-world.js +1 -1
  91. package/dist/components/vue-ui-xy-canvas.js +1 -1
  92. package/dist/components/vue-ui-xy.js +1 -1
  93. package/dist/{dom-to-png-9WSt6hXe.js → dom-to-png-BYtB4BF3.js} +1 -1
  94. package/dist/exposedLib-CI8ji8G-.js +19 -0
  95. package/dist/{geoProjections-CQIkC70z.js → geoProjections-Czak6Jn1.js} +3 -4
  96. package/dist/{img-BjOr008R.js → img-1cKsci8e.js} +2 -2
  97. package/dist/{labelUtils-Cr97N8E1.js → labelUtils-CUctkYoA.js} +1 -1
  98. package/dist/{lib-BkiwukKO.js → lib-DUeYQsS0.js} +4 -1
  99. package/dist/{pdf-DSXSFUnK.js → pdf-D0eZ99cP.js} +1 -1
  100. package/dist/style.css +1 -1
  101. package/dist/types/vue-data-ui.d.ts +1557 -193
  102. package/dist/types/vue-ui-3d-bar.d.ts +16 -1
  103. package/dist/types/vue-ui-age-pyramid.d.ts +14 -1
  104. package/dist/types/vue-ui-annotator.d.ts +28 -6
  105. package/dist/types/vue-ui-bullet.d.ts +14 -1
  106. package/dist/types/vue-ui-bump.d.ts +16 -1
  107. package/dist/types/vue-ui-candlestick.d.ts +16 -3
  108. package/dist/types/vue-ui-carousel-table.d.ts +14 -1
  109. package/dist/types/vue-ui-chestnut.d.ts +20 -1
  110. package/dist/types/vue-ui-chord.d.ts +20 -1
  111. package/dist/types/vue-ui-circle-pack.d.ts +16 -1
  112. package/dist/types/vue-ui-dag.d.ts +22 -1
  113. package/dist/types/vue-ui-dashboard.d.ts +16 -1
  114. package/dist/types/vue-ui-donut-evolution.d.ts +16 -1
  115. package/dist/types/vue-ui-donut.d.ts +18 -1
  116. package/dist/types/vue-ui-dumbbell.d.ts +16 -1
  117. package/dist/types/vue-ui-flow.d.ts +14 -1
  118. package/dist/types/vue-ui-funnel.d.ts +14 -1
  119. package/dist/types/vue-ui-galaxy.d.ts +18 -1
  120. package/dist/types/vue-ui-gauge.d.ts +14 -1
  121. package/dist/types/vue-ui-geo.d.ts +14 -1
  122. package/dist/types/vue-ui-heatmap.d.ts +16 -1
  123. package/dist/types/vue-ui-history-plot.d.ts +18 -1
  124. package/dist/types/vue-ui-horizontal-bar.d.ts +18 -1
  125. package/dist/types/vue-ui-molecule.d.ts +16 -1
  126. package/dist/types/vue-ui-mood-radar.d.ts +14 -1
  127. package/dist/types/vue-ui-nested-donuts.d.ts +18 -1
  128. package/dist/types/vue-ui-onion.d.ts +16 -1
  129. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +18 -1
  130. package/dist/types/vue-ui-quadrant.d.ts +24 -1
  131. package/dist/types/vue-ui-quick-chart.d.ts +20 -1
  132. package/dist/types/vue-ui-radar.d.ts +16 -1
  133. package/dist/types/vue-ui-rating.d.ts +12 -1
  134. package/dist/types/vue-ui-relation-circle.d.ts +14 -1
  135. package/dist/types/vue-ui-ridgeline.d.ts +22 -1
  136. package/dist/types/vue-ui-rings.d.ts +16 -1
  137. package/dist/types/vue-ui-scatter.d.ts +16 -1
  138. package/dist/types/vue-ui-smiley.d.ts +22 -6
  139. package/dist/types/vue-ui-sparkbar.d.ts +14 -1
  140. package/dist/types/vue-ui-sparkhistogram.d.ts +14 -1
  141. package/dist/types/vue-ui-sparkline.d.ts +16 -1
  142. package/dist/types/vue-ui-sparkstackbar.d.ts +16 -1
  143. package/dist/types/vue-ui-stackbar.d.ts +22 -1
  144. package/dist/types/vue-ui-stackline.d.ts +22 -1
  145. package/dist/types/vue-ui-strip-plot.d.ts +16 -1
  146. package/dist/types/vue-ui-table-sparkline.d.ts +14 -1
  147. package/dist/types/vue-ui-table.d.ts +17 -4
  148. package/dist/types/vue-ui-thermometer.d.ts +14 -1
  149. package/dist/types/vue-ui-timer.d.ts +14 -1
  150. package/dist/types/vue-ui-tiremarks.d.ts +14 -1
  151. package/dist/types/vue-ui-treemap.d.ts +18 -1
  152. package/dist/types/vue-ui-waffle.d.ts +16 -1
  153. package/dist/types/vue-ui-wheel.d.ts +14 -1
  154. package/dist/types/vue-ui-word-cloud.d.ts +14 -1
  155. package/dist/types/vue-ui-world.d.ts +18 -1
  156. package/dist/types/vue-ui-xy-canvas.d.ts +18 -1
  157. package/dist/types/vue-ui-xy.d.ts +22 -1
  158. package/dist/{useAutoSizeLabelsInsideViewbox-dp-3Gg97.js → useAutoSizeLabelsInsideViewbox-BIVntRZp.js} +1 -1
  159. package/dist/{useConfig-ByaaSKhz.js → useConfig-DAyQk86L.js} +9 -1
  160. package/dist/{useNestedProp-Ck4hsrpu.js → useNestedProp-CNcoy38D.js} +2 -2
  161. package/dist/{useObjectBindings-BR1sGimd.js → useObjectBindings-BI7hP-BC.js} +53 -53
  162. package/dist/{usePrinter-X0yWOynH.js → usePrinter-C1Gqt_Sp.js} +2 -2
  163. package/dist/utils.js +4 -4
  164. package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-qpQv-4uP.js} +69 -69
  165. package/dist/vue-data-ui.js +75 -75
  166. package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-C8cputoI.js} +312 -312
  167. package/dist/{vue-ui-accordion-BX9WL-QF.js → vue-ui-accordion-Dw4MHKVB.js} +6 -6
  168. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +1238 -0
  169. package/dist/{vue-ui-annotator-Be3VpH8Z.js → vue-ui-annotator-DLPUAKlm.js} +66 -66
  170. package/dist/vue-ui-bullet-DLxmtMJ9.js +710 -0
  171. package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-DVaqtZbd.js} +260 -260
  172. package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-CkApimw1.js} +81 -81
  173. package/dist/vue-ui-carousel-table-CbfIBWl3.js +455 -0
  174. package/dist/vue-ui-chestnut-CQT4nCFL.js +2010 -0
  175. package/dist/vue-ui-chord-8IjSrg6f.js +1391 -0
  176. package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
  177. package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
  178. package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-DH4ocx0S.js} +46 -46
  179. package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
  180. package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-DwLlJqbW.js} +6 -6
  181. package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
  182. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +1510 -0
  183. package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
  184. package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-CJh6f72m.js} +107 -107
  185. package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
  186. package/dist/vue-ui-galaxy-pBR_FESJ.js +1077 -0
  187. package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
  188. package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BDQqaukJ.js} +35 -35
  189. package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
  190. package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-BiC9xp8L.js} +259 -259
  191. package/dist/vue-ui-history-plot-iAPjlOja.js +1554 -0
  192. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +1681 -0
  193. package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CJ5oyYLS.js} +6 -6
  194. package/dist/{vue-ui-mini-loader-DDJUya9e.js → vue-ui-mini-loader-CyqBt2g4.js} +5 -5
  195. package/dist/vue-ui-molecule-Cg9ZHa6b.js +925 -0
  196. package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
  197. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
  198. package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-C56gFjO6.js} +296 -296
  199. package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +203 -212
  200. package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
  201. package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-DYc9xZY3.js} +444 -444
  202. package/dist/vue-ui-quick-chart-BG7kK_-q.js +2469 -0
  203. package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-CgKog9Xw.js} +186 -183
  204. package/dist/{vue-ui-rating-D_QR_A3V.js → vue-ui-rating-BG4lf1z8.js} +41 -41
  205. package/dist/vue-ui-relation-circle-D-rUk-0P.js +924 -0
  206. package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DPrlVJTW.js} +377 -377
  207. package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-CIvvHHsF.js} +199 -196
  208. package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
  209. package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-BKoa_G6d.js} +44 -44
  210. package/dist/{vue-ui-smiley-rFdGxZK6.js → vue-ui-smiley-G89TxRU-.js} +14 -14
  211. package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
  212. package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
  213. package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
  214. package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
  215. package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
  216. package/dist/{vue-ui-sparkstackbar-BI8zG-DG.js → vue-ui-sparkstackbar-DG7hz_KM.js} +137 -137
  217. package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-Dnq4l5xs.js} +344 -341
  218. package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
  219. package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
  220. package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-NBQrkVnO.js} +84 -84
  221. package/dist/{vue-ui-table-heatmap-BFKyJTr1.js → vue-ui-table-heatmap-CCGjbSzQ.js} +22 -22
  222. package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
  223. package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
  224. package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-CcLK1wbi.js} +29 -29
  225. package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
  226. package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-O3SBpD3K.js} +241 -241
  227. package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
  228. package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
  229. package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
  230. package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-DCPgXKxh.js} +447 -447
  231. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-BUPnRZ3C.js} +91 -90
  232. package/dist/vue-ui-xy-lfMIx0wK.js +4578 -0
  233. package/dist/{vue_ui_3d_bar-CXKqO5Ej.js → vue_ui_3d_bar-C4R7o-yX.js} +1 -1
  234. package/dist/{vue_ui_age_pyramid-BON8QI6X.js → vue_ui_age_pyramid-BY6c-oX_.js} +1 -1
  235. package/dist/{vue_ui_bullet-CE5sFT7u.js → vue_ui_bullet-ClzdLoOv.js} +1 -1
  236. package/dist/{vue_ui_bump-frnXaXul.js → vue_ui_bump-Vl-zYAtG.js} +1 -1
  237. package/dist/{vue_ui_candlestick-sY6UtOop.js → vue_ui_candlestick-J8jmJvxP.js} +1 -1
  238. package/dist/{vue_ui_chestnut-BiUZFv40.js → vue_ui_chestnut-D2oUhad6.js} +1 -1
  239. package/dist/{vue_ui_chord-DpyR_b9A.js → vue_ui_chord-DPfS1Umc.js} +1 -1
  240. package/dist/{vue_ui_circle_pack-FjH0ZQeb.js → vue_ui_circle_pack-DZC_rdfn.js} +1 -1
  241. package/dist/{vue_ui_dag-Ci_MOnvd.js → vue_ui_dag-TsJ_azQq.js} +1 -1
  242. package/dist/{vue_ui_donut-Cx2_BGcQ.js → vue_ui_donut-BDGqG07h.js} +1 -1
  243. package/dist/{vue_ui_donut_evolution-CAJefrHs.js → vue_ui_donut_evolution-D1yAAIHr.js} +1 -1
  244. package/dist/{vue_ui_dumbbell-CClzAZTN.js → vue_ui_dumbbell-Bfe_jFyi.js} +1 -1
  245. package/dist/{vue_ui_flow-CCHO1Lo9.js → vue_ui_flow-BewZjjKG.js} +1 -1
  246. package/dist/{vue_ui_funnel-h8q2mRpC.js → vue_ui_funnel-_Og4EEkO.js} +1 -1
  247. package/dist/{vue_ui_galaxy-70vtkEBw.js → vue_ui_galaxy-Ig0cc1_h.js} +1 -1
  248. package/dist/{vue_ui_gauge-C17CgfzN.js → vue_ui_gauge-Cf1RZc9q.js} +1 -1
  249. package/dist/{vue_ui_geo-C0UbQ0Lc.js → vue_ui_geo-B8TODs-G.js} +1 -1
  250. package/dist/{vue_ui_heatmap-BqPP3J4M.js → vue_ui_heatmap-B2BBBSWG.js} +1 -1
  251. package/dist/{vue_ui_history_plot-C5nytDHh.js → vue_ui_history_plot-CuN63VEc.js} +1 -1
  252. package/dist/{vue_ui_horizontal_bar-Bqxorkc_.js → vue_ui_horizontal_bar-C4J4QzXf.js} +1 -1
  253. package/dist/{vue_ui_molecule-Dka4JBOp.js → vue_ui_molecule-CO9L59SF.js} +1 -1
  254. package/dist/{vue_ui_mood_radar-Dg4ijm53.js → vue_ui_mood_radar-BA6LAKhk.js} +1 -1
  255. package/dist/{vue_ui_nested_donuts-BY9cOoHF.js → vue_ui_nested_donuts-B8csIoVO.js} +1 -1
  256. package/dist/{vue_ui_onion-DTV9cup-.js → vue_ui_onion-1FTFFS46.js} +1 -1
  257. package/dist/{vue_ui_parallel_coordinate_plot-CNWrDh96.js → vue_ui_parallel_coordinate_plot-CBiOBira.js} +1 -1
  258. package/dist/{vue_ui_quadrant-3kjYvxpj.js → vue_ui_quadrant-CDSTKTJz.js} +1 -1
  259. package/dist/{vue_ui_quick_chart--VaYQuM4.js → vue_ui_quick_chart-mZBdml3Z.js} +1 -1
  260. package/dist/{vue_ui_radar-Dxx9GJmj.js → vue_ui_radar-jafTED5j.js} +1 -1
  261. package/dist/{vue_ui_relation_circle-Cr0I2SoU.js → vue_ui_relation_circle-D0p4mXmv.js} +1 -1
  262. package/dist/{vue_ui_ridgeline-CAtYca4b.js → vue_ui_ridgeline-VM8_mx4J.js} +1 -1
  263. package/dist/{vue_ui_rings-DXC1VeX5.js → vue_ui_rings-BVgD2aMn.js} +1 -1
  264. package/dist/{vue_ui_scatter-D2S2j0ap.js → vue_ui_scatter-I0POnicu.js} +1 -1
  265. package/dist/{vue_ui_spark_trend-BHMQ6_1p.js → vue_ui_spark_trend-DxVmpkmC.js} +1 -1
  266. package/dist/{vue_ui_sparkbar-BR6hbuDE.js → vue_ui_sparkbar-z6qO--Kf.js} +1 -1
  267. package/dist/{vue_ui_sparkgauge-xfPRHnMv.js → vue_ui_sparkgauge-BX1MS3bA.js} +1 -1
  268. package/dist/{vue_ui_sparkhistogram-CJRENZ1C.js → vue_ui_sparkhistogram-BRgvKUH6.js} +1 -1
  269. package/dist/{vue_ui_sparkline-wgk7yO7E.js → vue_ui_sparkline-auZhap6Y.js} +1 -1
  270. package/dist/{vue_ui_sparkstackbar-C5qZMmAl.js → vue_ui_sparkstackbar-BOjuQnZd.js} +1 -1
  271. package/dist/{vue_ui_stackbar-BW_C3MXw.js → vue_ui_stackbar-COOrQQdK.js} +1 -1
  272. package/dist/{vue_ui_stackline-DXxzibUd.js → vue_ui_stackline-DQqKPA9z.js} +1 -1
  273. package/dist/{vue_ui_strip_plot-8ZelqC5b.js → vue_ui_strip_plot-CtJe8_gq.js} +1 -1
  274. package/dist/{vue_ui_table_heatmap-BGUjA0WA.js → vue_ui_table_heatmap-w8vx5k6f.js} +1 -1
  275. package/dist/{vue_ui_table_sparkline-i0Q-N_we.js → vue_ui_table_sparkline-DAbkUrNz.js} +1 -1
  276. package/dist/{vue_ui_thermometer-CuN7Gpez.js → vue_ui_thermometer-DxgqWKlE.js} +1 -1
  277. package/dist/{vue_ui_tiremarks-A6UHC0c3.js → vue_ui_tiremarks-CdEPieWV.js} +1 -1
  278. package/dist/{vue_ui_treemap-BQp06q-g.js → vue_ui_treemap-DoEtkRN6.js} +1 -1
  279. package/dist/{vue_ui_waffle-C_Ev4l7B.js → vue_ui_waffle-DIARFc7g.js} +1 -1
  280. package/dist/{vue_ui_wheel-DdkTPXJU.js → vue_ui_wheel-DZ_nR--t.js} +1 -1
  281. package/dist/{vue_ui_word_cloud-B1PbsYPc.js → vue_ui_word_cloud-C-qIMNLu.js} +1 -1
  282. package/dist/{vue_ui_xy-BYPqfYyx.js → vue_ui_xy-BLUkWEAm.js} +1 -1
  283. package/dist/{vue_ui_xy_canvas-CMHGNrLf.js → vue_ui_xy_canvas-Cb6dg3eK.js} +1 -1
  284. package/package.json +6 -6
  285. package/dist/exposedLib-CwWU4zv-.js +0 -19
  286. package/dist/vue-ui-age-pyramid-Bu3bocZx.js +0 -1238
  287. package/dist/vue-ui-bullet-COSSZ7RU.js +0 -710
  288. package/dist/vue-ui-carousel-table-Q2uTIELA.js +0 -455
  289. package/dist/vue-ui-chestnut-DdNKhXkN.js +0 -2010
  290. package/dist/vue-ui-chord-CYzGIRtA.js +0 -1391
  291. package/dist/vue-ui-donut-BSanYbqb.js +0 -2408
  292. package/dist/vue-ui-donut-evolution-BVttNIzH.js +0 -1510
  293. package/dist/vue-ui-dumbbell-D-KcBLOF.js +0 -1527
  294. package/dist/vue-ui-funnel-COwXzAbB.js +0 -777
  295. package/dist/vue-ui-galaxy-Cg9VStNF.js +0 -1074
  296. package/dist/vue-ui-gauge-DHWCS6jR.js +0 -920
  297. package/dist/vue-ui-history-plot-CgPjudHv.js +0 -1563
  298. package/dist/vue-ui-horizontal-bar-CpQCmBQD.js +0 -1681
  299. package/dist/vue-ui-molecule-CvfwMxYY.js +0 -925
  300. package/dist/vue-ui-nested-donuts-C-LWBXmg.js +0 -1484
  301. package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
  302. package/dist/vue-ui-relation-circle-MxYh6hSt.js +0 -924
  303. package/dist/vue-ui-scatter-DrS1nrwL.js +0 -2413
  304. package/dist/vue-ui-sparkline-BAWc3ROJ.js +0 -1507
  305. package/dist/vue-ui-stackline-DwtlEdOE.js +0 -2395
  306. package/dist/vue-ui-thermometer-Io8LdW1o.js +0 -763
  307. package/dist/vue-ui-xy-BCeOqJYR.js +0 -4216
  308. /package/dist/{RecursiveCircles-DPpLel6f.js → RecursiveCircles-D6aDPmoe.js} +0 -0
  309. /package/dist/{RecursiveLabels-DBMJf_to.js → RecursiveLabels-D9rfID6q.js} +0 -0
  310. /package/dist/{RecursiveLinks-D06dBL4a.js → RecursiveLinks-BygcpDiT.js} +0 -0
  311. /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
  312. /package/dist/{canvas-lib-DTaADQOK.js → canvas-lib-BOP_HS11.js} +0 -0
  313. /package/dist/{patternUtils-B7BWu5bV.js → patternUtils-CS7hn6at.js} +0 -0
  314. /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  315. /package/dist/{useChartAccessibility-Do37qcw2.js → useChartAccessibility-DYqac8yF.js} +0 -0
  316. /package/dist/{useFitSvgText-C-MEdAfe.js → useFitSvgText-CT3nmlaS.js} +0 -0
  317. /package/dist/{usePanZoom-B-4M_gmY.js → usePanZoom-CYU3B4T3.js} +0 -0
  318. /package/dist/{usePrefersMotion-BywLbIko.js → usePrefersMotion-BC-CsqR1.js} +0 -0
  319. /package/dist/{useResponsive-CrAInupd.js → useResponsive-BfnK0KxU.js} +0 -0
  320. /package/dist/{useStableElementSize-0I1IpHPl.js → useStableElementSize-C7KADDKj.js} +0 -0
  321. /package/dist/{useSvgExport-Dtu973wa.js → useSvgExport-SVIsDot8.js} +0 -0
  322. /package/dist/{useTableResponsive-DrM1xqII.js → useTableResponsive-B24Uwt2E.js} +0 -0
  323. /package/dist/{useThemeCheck-rFK9Zlb_.js → useThemeCheck-C43Tcqmk.js} +0 -0
  324. /package/dist/{useTimeLabelCollider-Dm55Emzg.js → useTimeLabelCollider-AEcY4Ioe.js} +0 -0
  325. /package/dist/{useTimeLabels-C0x7zUXP.js → useTimeLabels-BmBRv27Y.js} +0 -0
  326. /package/dist/{useUserOptionState-CjPJPTg2.js → useUserOptionState-DK-_1ddE.js} +0 -0
  327. /package/dist/{vClickOutside-CbX_bC9A.js → vClickOutside-DUrZWttG.js} +0 -0
  328. /package/dist/{vue-ui-pattern-Bj-IPFr2.js → vue-ui-pattern-DKozfnVn.js} +0 -0
  329. /package/dist/{vue_ui_vertical_bar-CJSD1FZS.js → vue_ui_vertical_bar-CP-MKz1j.js} +0 -0
@@ -1,1507 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { At as t, G as n, H as r, I as i, M as a, Mt as o, Q as s, R as c, St as l, X as u, et as d, f, i as p, jt as m, k as ee, l as te, ot as ne, t as re, vt as h, y as ie, zt as ae } from "./lib-BkiwukKO.js";
3
- import { t as oe } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as se } from "./useConfig-ByaaSKhz.js";
5
- import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
6
- import { t as ue } from "./useNestedProp-Ck4hsrpu.js";
7
- import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
8
- import { t as fe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
9
- import { c as pe } from "./canvas-lib-DTaADQOK.js";
10
- import { t as g } from "./useResponsive-CrAInupd.js";
11
- import { t as me } from "./A11yDataTable-q2-8fSlJ.js";
12
- import { t as he } from "./useChartAccessibility-Do37qcw2.js";
13
- import { t as ge } from "./usePrefersMotion-BywLbIko.js";
14
- import { t as _e } from "./vue_ui_sparkline-wgk7yO7E.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 Ee, renderSlot as E, shallowRef as De, toDisplayString as Oe, toRefs as ke, unref as D, watch as O, watchEffect as Ae, withCtx as je } from "vue";
16
- //#region src/atoms/SparklinePulse.vue
17
- var Me = {
18
- key: 0,
19
- style: { "pointer-events": "none" }
20
- }, Ne = [
21
- "r",
22
- "fill",
23
- "filter"
24
- ], Pe = [
25
- "begin",
26
- "dur",
27
- "repeatCount",
28
- "fill",
29
- "calcMode",
30
- "keySplines",
31
- "keyTimes",
32
- "keyPoints"
33
- ], Fe = ["href"], Ie = [
34
- "dur",
35
- "repeatCount",
36
- "fill",
37
- "values"
38
- ], Le = ["r", "fill"], k = [
39
- "begin",
40
- "dur",
41
- "repeatCount",
42
- "calcMode",
43
- "keySplines",
44
- "keyTimes",
45
- "keyPoints"
46
- ], Re = ["href"], A = ["dur", "repeatCount"], ze = {
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 O(() => t.loading, async (e) => {
135
- if (e) {
136
- i();
137
- return;
138
- }
139
- await S(), i();
140
- }), O(() => t.pulsePathId, async () => {
141
- await S(), i();
142
- }), we(() => {
143
- i();
144
- }), (t, i) => r.value ? (w(), b("g", Me, [(w(!0), b(_, null, Ee(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, Fe)], 8, Pe), 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, Ie)], 8, Ne)) : 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, Re)], 8, k), 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, A)], 8, Le))])) : y("", !0);
188
- }
189
- }, j = {
190
- canvas: null,
191
- ctx: null
192
- };
193
- function Be() {
194
- if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
195
- if (!j.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
- j.canvas = e, j.ctx = t;
201
- }
202
- return j.ctx;
203
- }
204
- function Ve(e) {
205
- return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
206
- }
207
- function M(e) {
208
- return e < 0 ? 0 : e > 1 ? 1 : e;
209
- }
210
- function N(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 = He(n, t), i = Be();
220
- i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
221
- let a = i.fillStyle;
222
- if (i.fillStyle = r, i.fillStyle === a && !Ue(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 P(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] = N(e[r], t);
236
- return n;
237
- }
238
- function He(e, t = null) {
239
- return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
240
- }
241
- function Ue(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 F(e) {
246
- let t = M(e / 255);
247
- return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
248
- }
249
- function I(e) {
250
- let t = M(e), n;
251
- return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Ve(n * 255);
252
- }
253
- function We(e, t, n, r) {
254
- let i = M(n);
255
- if (r === "linearRGB") {
256
- let n = F(e.red), r = F(e.green), a = F(e.blue), o = F(t.red), s = F(t.green), c = F(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
257
- return {
258
- red: I(l),
259
- green: I(u),
260
- blue: I(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 L(e, t, n) {
274
- let r = e;
275
- return r < t && (r = t), r > n && (r = n), r;
276
- }
277
- function R(e, t) {
278
- let n = 10 ** t;
279
- return Math.round(e * n) / n;
280
- }
281
- function z(e) {
282
- return Number.isFinite(e) ? e.toString() : "0";
283
- }
284
- function Ge(e) {
285
- let t = L(e, 0, 255).toString(16);
286
- return t.length === 1 ? "0" + t : t;
287
- }
288
- function Ke(e) {
289
- if (typeof e != "string") return;
290
- let t = Number.parseFloat(e);
291
- return Number.isFinite(t) ? t : void 0;
292
- }
293
- function qe(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 ? L(a, 0, 1) : a;
298
- }
299
- //#endregion
300
- //#region src/SPG/index.js
301
- var Je = "http://www.w3.org/2000/svg";
302
- function Ye(e) {
303
- if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
304
- let t = document.createElementNS(Je, "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(Je, "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 Xe(e) {
313
- if (e) try {
314
- e.svgElement?.remove?.();
315
- } catch {}
316
- }
317
- function Ze(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 Qe(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 $e(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 ${z(R(l.x, i))} ${z(R(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 ${z(R(a.x, i))} ${z(R(a.y, i))}`;
336
- }
337
- return u;
338
- }
339
- function et(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 ${z(R(l.x, i))} ${z(R(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 ${z(R(a.x, i))} ${z(R(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 tt(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 B(e, t, n, r) {
370
- let i = L(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 H(nt(o.rgba, s.rgba, l, n));
375
- }
376
- function nt(e, t, n, r) {
377
- let i = L(n, 0, 1);
378
- if (r === "linearRGB") {
379
- let n = V(e.red), r = V(e.green), a = V(e.blue), o = V(t.red), s = V(t.green), c = V(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
380
- return {
381
- red: rt(l),
382
- green: rt(u),
383
- blue: rt(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 V(e) {
395
- let t = L(e / 255, 0, 1);
396
- return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
397
- }
398
- function rt(e) {
399
- let t = L(e, 0, 1), n;
400
- return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, L(Math.round(n * 255), 0, 255);
401
- }
402
- function H(e) {
403
- let t = L(e.alpha, 0, 1), n = L(Math.round(e.red), 0, 255), r = L(Math.round(e.green), 0, 255), i = L(Math.round(e.blue), 0, 255);
404
- return t >= 1 ? `#${Ge(n)}${Ge(r)}${Ge(i)}` : `rgba(${n}, ${r}, ${i}, ${R(t, 4).toString()})`;
405
- }
406
- function U(e) {
407
- let t = `fill="${G(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}="${G(a)}"`;
413
- }
414
- return t;
415
- }
416
- function W(e, t, n) {
417
- return `<path d="${G(e)}" stroke="${G(t)}" ${n} />`;
418
- }
419
- function it(e) {
420
- let t = [], n = e.segmentAttributeMap.fill ?? "none";
421
- t.push(`fill="${G(n)}"`), t.push(`stroke="${G(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}="${G(r)}"`);
426
- }
427
- return `<path d="${G(e.pathData)}" ${t.join(" ")} />`;
428
- }
429
- function at(e, t) {
430
- let n = [];
431
- for (let e of Object.keys(t)) n.push(`${e}="${G(t[e])}"`);
432
- return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
433
- }
434
- function G(e) {
435
- return String(e).replaceAll("&", "&amp;").replaceAll("\"", "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
436
- }
437
- function ot(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 = Ke(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
446
- a = Ye(e);
447
- let f = a.pathElement, p = f.getTotalLength(), m = i === null ? P(t, n.colorReferenceElement) : [];
448
- if (i === null && (!(p > 0) || m.length === 1)) {
449
- let t = at([it({
450
- pathData: e,
451
- stroke: H(m[0]),
452
- segmentAttributeMap: c
453
- })], l);
454
- Xe(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 : P(n.temperatureColors, n.colorReferenceElement), ne = i === null ? (() => {
463
- let e = tt(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 = Ze(p, d, n.maxSegmentLength), h = Qe(p, n.segments, re), ie = p / h, ae = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, oe = ie * .45;
470
- ae > oe && (ae = oe);
471
- let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = U(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 < h && performance.now() - e < t;) {
474
- let e = g * ie, t = (g + 1) * ie, n = e, r = t;
475
- if (g !== 0 && (n = e - ae), g !== h - 1 && (r = t + ae), n = L(n, 0, p), r = L(r, 0, p), r > n) if (i !== null) {
476
- let e = et(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 = B(ne, e, ee, fe), i = $e(f, n, r, s, o, se);
482
- le.push(W(i, t, ce));
483
- }
484
- g += 1;
485
- }
486
- if (g < h) {
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 = qe(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = H(i === "vertical" ? We(n, r, s, ee) : We(r, n, s, ee)), l = ue[a];
500
- le.push(W(l, c, ce));
501
- }
502
- }
503
- let c = at(le, l);
504
- Xe(a), r(c);
505
- };
506
- requestAnimationFrame(me);
507
- } catch (e) {
508
- Xe(a), i(e);
509
- }
510
- });
511
- }
512
- //#endregion
513
- //#region src/atoms/SparklineGradientPath.vue
514
- var st = ["innerHTML"], ct = {
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 O(() => [
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 ot(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, st));
570
- }
571
- }, lt = /* @__PURE__ */ e({ default: () => Ut }), ut = ["id"], dt = ["id"], ft = { style: { position: "relative" } }, pt = [
572
- "xmlns",
573
- "viewBox",
574
- "aria-describedby"
575
- ], mt = ["width", "height"], ht = ["id"], gt = ["stop-color"], _t = ["stop-color"], vt = ["id"], yt = ["stop-color"], bt = ["stop-color"], xt = ["id"], St = ["stop-color"], Ct = ["stop-color"], wt = ["id"], Tt = ["id"], Et = ["stop-color", "offset"], Dt = { key: 1 }, Ot = ["d", "fill"], kt = ["d", "fill"], At = [
576
- "id",
577
- "d",
578
- "stroke-width"
579
- ], jt = [
580
- "d",
581
- "stroke",
582
- "stroke-width",
583
- "stroke-dasharray"
584
- ], Mt = [
585
- "d",
586
- "stroke",
587
- "stroke-width"
588
- ], Nt = [
589
- "id",
590
- "d",
591
- "stroke-width"
592
- ], Pt = [
593
- "d",
594
- "stroke",
595
- "stroke-width",
596
- "stroke-dasharray"
597
- ], Ft = [
598
- "d",
599
- "stroke",
600
- "stroke-width"
601
- ], It = [
602
- "x",
603
- "y",
604
- "width",
605
- "height",
606
- "fill",
607
- "rx"
608
- ], Lt = [
609
- "x1",
610
- "x2",
611
- "y1",
612
- "y2",
613
- "stroke",
614
- "stroke-width",
615
- "stroke-dasharray"
616
- ], Rt = [
617
- "x1",
618
- "x2",
619
- "y1",
620
- "y2",
621
- "stroke",
622
- "stroke-dasharray",
623
- "stroke-width"
624
- ], zt = [
625
- "cx",
626
- "cy",
627
- "r",
628
- "fill",
629
- "stroke",
630
- "stroke-width"
631
- ], Bt = [
632
- "x",
633
- "y",
634
- "font-size",
635
- "font-weight",
636
- "fill"
637
- ], Vt = [
638
- "x",
639
- "y",
640
- "height",
641
- "width",
642
- "onMouseenter",
643
- "onMouseleave",
644
- "onClick"
645
- ], Ht = {
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
- }, Ut = /* @__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 Me = xe(() => import("./PackageVersion-zJAUEmyB.js").then((e) => e.t)), Ne = xe(() => import("./SparkTooltip-c2DL7gqD.js")), { vue_ui_sparkline: Pe } = se(), { isThemeValid: Fe, warnInvalidTheme: Ie } = de(), Le = ge(), k = e, Re = v(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = T(r()), j = T(null), Be = T(null), Ve = T(null), M = T(null), N = T(null), P = T(R());
690
- function He(e) {
691
- return k.config?.skeletonDataset && Array.isArray(k.config.skeletonDataset) ? k.config.skeletonDataset.map((e) => ({
692
- period: "-",
693
- value: e
694
- })) : s(e).map((e) => ({
695
- period: "-",
696
- value: e
697
- }));
698
- }
699
- let Ue = v(() => ae({
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: P.value.skeletonConfig ?? {}
721
- })), { loading: F, FINAL_DATASET: I, manualLoading: We } = ce({
722
- ...ke(k),
723
- FINAL_CONFIG: P,
724
- prepareConfig: R,
725
- callback: () => {
726
- Promise.resolve().then(async () => {
727
- await S(), lt();
728
- });
729
- },
730
- skeletonDataset: He(12),
731
- skeletonConfig: ae({
732
- defaultConfig: P.value,
733
- userConfig: Ue.value
734
- })
735
- }), { svgRef: L } = he({ config: P.value.style.title });
736
- function R() {
737
- let e = ue({
738
- userConfig: k.config,
739
- defaultConfig: Pe
740
- }), t = {}, n = e.theme;
741
- if (n) if (!Fe.value(e)) Ie(e), t = e;
742
- else {
743
- let r = ue({
744
- userConfig: _e[n] || k.config,
745
- defaultConfig: e
746
- });
747
- t = { ...ue({
748
- userConfig: k.config,
749
- defaultConfig: r
750
- }) };
751
- }
752
- else t = e;
753
- return t;
754
- }
755
- let z = v(() => P.value?.style?.line.pulse || {}), Ge = v(() => `${Math.max(200, Number(z.value.durationMs) || 4e3) / 1e3}s`), Ke = T(0), qe = v(() => z.value?.begin || "0ms"), Je = T("0;1"), Ye = v(() => z.value?.loop === !1 ? "1" : "indefinite"), Xe = v(() => z.value?.loop === !1 ? "freeze" : void 0), Ze = v(() => z.value.trail.show && tt.value.lengthPx || 1), Qe = v(() => !!z.value?.show && !Q.value && !Le.value && !F.value && (J.value?.length || 0) > 1);
756
- function $e() {
757
- if (!Qe.value) {
758
- Ke.value = 0;
759
- return;
760
- }
761
- let e = L.value;
762
- if (!e) return;
763
- let t = `#${Wt.value}`, n = e.querySelector?.(t);
764
- if (n && typeof n.getTotalLength == "function") {
765
- let e = n.getTotalLength();
766
- Number.isFinite(e) && e > 0 && (Ke.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 && (Ke.value = e);
774
- }
775
- });
776
- }
777
- let et = v(() => {
778
- let e = z.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(z.value?.cubicBezier) && z.value.cubicBezier.length === 4 ? z.value.cubicBezier : [
815
- .4,
816
- 0,
817
- .2,
818
- 1
819
- ] : t[e] || t["ease-in-out"]).join(" "),
820
- keyTimes: "0;1"
821
- };
822
- }), tt = v(() => {
823
- let e = z.value?.trail || {}, t = P.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
- }), B = v(() => h({
833
- data: I.value,
834
- threshold: P.value.downsample.threshold
835
- })), nt = v(() => {
836
- if (!P.value.temperatureColors.show) return !1;
837
- let e = I.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
838
- return new Set(e).size <= 1;
839
- });
840
- O(() => k.config, (e) => {
841
- F.value || (P.value = R()), Jt(), K.value.chartWidth = P.value.style.chartWidth;
842
- }, { deep: !0 }), O(() => k.dataset, (e) => {
843
- Array.isArray(e) && e.length > 0 && (We.value = !1), V.value = h({
844
- data: I.value.map((e) => ({
845
- ...e,
846
- value: [void 0].includes(e.value) ? null : e.value
847
- })),
848
- threshold: P.value.downsample.threshold
849
- });
850
- }, { deep: !0 });
851
- let V = T(rt());
852
- function rt() {
853
- return h({
854
- data: I.value.map((e) => P.value.style.animation.show && I.value.length > 1 ? {
855
- ...e,
856
- value: null
857
- } : {
858
- ...e,
859
- value: [void 0].includes(e.value) ? null : e.value
860
- }),
861
- threshold: P.value.downsample.threshold
862
- });
863
- }
864
- let H = De(null), U = De(null), W = T(!1), it = T(0), at = T([]), G = T(""), ot = v(() => {
865
- let e = (B.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = P.value?.style?.animation || {}, n = !!P.value?.gradientPath?.show && !P.value.temperatureColors.show;
866
- return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
867
- });
868
- function st() {
869
- it.value &&= (cancelAnimationFrame(it.value), 0), at.value.forEach((e) => clearTimeout(e)), at.value = [], W.value = !1;
870
- }
871
- function lt() {
872
- let e = P.value?.style?.animation || {}, t = B.value || [], n = ot.value, r = !!P.value.gradientPath.show && !P.value.temperatureColors.show;
873
- if (n && n === G.value && (W.value || V.value.length === t.length)) return;
874
- if (st(), r || !e.show || F.value || t.length <= 1) {
875
- V.value = t, G.value = n;
876
- return;
877
- }
878
- W.value = !0, G.value = n, V.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 !== ot.value) {
881
- st();
882
- return;
883
- }
884
- if (o < t.length) {
885
- V.value.push(t[o]);
886
- let e = setTimeout(() => {
887
- it.value = requestAnimationFrame(s);
888
- }, a);
889
- at.value.push(e), o += 1;
890
- } else V.value = t, st();
891
- };
892
- it.value = requestAnimationFrame(s);
893
- }
894
- O(ot, () => {
895
- lt();
896
- }), Te(() => {
897
- Jt(), lt();
898
- }), we(() => {
899
- st();
900
- });
901
- let Ut = T(0);
902
- O(() => F.value, async (e) => {
903
- e || (await S(), Ut.value += 1);
904
- }), O(() => W.value, async (e) => {
905
- e || F.value || (await S(), Ut.value += 1);
906
- });
907
- let Wt = v(() => `sparkline_line_path_${A.value}`), Gt = T(!0);
908
- async function Kt() {
909
- Gt.value = !1, await S(), Gt.value = !0, await S(), $e();
910
- }
911
- let qt = v(() => !!P.value.debug);
912
- function Jt() {
913
- if (l(k.dataset) ? (u({
914
- componentName: "VueUiSparkline",
915
- type: "dataset",
916
- debug: qt.value
917
- }), We.value = !0) : k.dataset.forEach((e, t) => {
918
- ne({
919
- datasetObject: e,
920
- requiredAttributes: ["period", "value"]
921
- }).forEach((e) => {
922
- u({
923
- componentName: "VueUiSparkline",
924
- type: "datasetSerieAttribute",
925
- property: e,
926
- index: t,
927
- debug: qt.value
928
- });
929
- });
930
- }), l(k.dataset) || (We.value = P.value.loading), P.value.responsive) {
931
- let e = pe(() => {
932
- let { width: e, height: t } = g({
933
- chart: j.value,
934
- title: P.value.style.title.show && k.showInfo ? Be.value : null,
935
- source: Ve.value
936
- });
937
- requestAnimationFrame(() => {
938
- K.value.width = e, K.value.height = t, K.value.chartWidth = P.value.style.chartWidth / 500 * e, K.value.padding = k.forcedPadding / 500 * e;
939
- });
940
- });
941
- H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = j.value.parentNode, H.value.observe(U.value);
942
- }
943
- }
944
- we(() => {
945
- H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
946
- });
947
- let K = T({
948
- height: 80 * k.heightRatio,
949
- width: 500,
950
- chartWidth: P.value.style.chartWidth,
951
- padding: k.forcedPadding
952
- }), Yt = fe, q = v(() => {
953
- let { top: e, right: t, bottom: n, left: r } = P.value.style.padding;
954
- return {
955
- top: e,
956
- left: r,
957
- right: K.value.width - t,
958
- bottom: K.value.height - n,
959
- start: k.showInfo && P.value.style.dataLabel.show && P.value.style.dataLabel.position === "left" ? K.value.width - K.value.chartWidth + r : K.value.padding + r,
960
- width: k.showInfo && P.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
961
- height: K.value.height - e - n
962
- };
963
- }), Xt = v(() => [null, void 0].includes(P.value.style.scaleMin) ? Math.min(...V.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)) : P.value.style.scaleMin), Zt = v(() => [null, void 0].includes(P.value.style.scaleMax) ? Math.max(...V.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)) : P.value.style.scaleMax), Qt = v(() => {
978
- let e = Xt.value >= 0 ? 0 : Xt.value;
979
- return Math.abs(e);
980
- }), $t = v(() => Zt.value + Qt.value), en = v(() => q.value.bottom - q.value.height * tn(Qt.value));
981
- function tn(e) {
982
- return isNaN(e / $t.value) ? 0 : e / $t.value;
983
- }
984
- let nn = v(() => B.value.length - 1 || 1), rn = T([]), an = 0;
985
- Ae(() => {
986
- let e = ++an;
987
- (async () => {
988
- let t = await oe({
989
- values: B.value.map((e) => e.period),
990
- maxDatapoints: B.value.length,
991
- formatter: P.value.style.dataLabel.datetimeFormatter,
992
- start: 0,
993
- end: B.value.length
994
- });
995
- e === an && (rn.value = t);
996
- })();
997
- });
998
- let J = v(() => V.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 = q.value.width / nn.value;
1007
- return {
1008
- value: e.value,
1009
- absoluteValue: n,
1010
- period: rn.value && rn.value[t] && rn.value[t].text ? rn.value[t].text : e.period,
1011
- plotValue: n + Qt.value,
1012
- toMax: tn(n + Qt.value),
1013
- x: q.value.start + t * r,
1014
- y: q.value.bottom - q.value.height * tn(n + Qt.value),
1015
- id: `plot_${A.value}_${t}`,
1016
- color: Q.value ? P.value.style.bar.color : P.value.style.area.useGradient ? o(P.value.style.line.color, .05 * (1 - t / nn.value)) : P.value.style.line.color,
1017
- width: r
1018
- };
1019
- })), on = v(() => k.selectedIndex !== void 0 && k.selectedIndex !== null && k.selectedIndex >= 0 && k.selectedIndex < J.value.length ? k.selectedIndex : N.value !== void 0 && N.value !== null && N.value >= 0 && N.value < J.value.length ? N.value : null), sn = v(() => {
1020
- let e = {
1021
- x: J.value[0].x || 0,
1022
- y: (K.value.height || 0) - 6
1023
- }, t = {
1024
- x: J.value[J.value.length - 1].x || 0,
1025
- y: (K.value.height || 0) - 6
1026
- }, n = [];
1027
- return J.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
- }), Y = T(void 0), X = T(void 0);
1037
- function cn(e, t) {
1038
- P.value.events.datapointEnter && P.value.events.datapointEnter({
1039
- datapoint: e,
1040
- seriesIndex: t
1041
- }), N.value = t, M.value = t, Y.value = e, X.value ||= e, Yt("hoverIndex", { index: t });
1042
- }
1043
- function ln(e, t) {
1044
- P.value.events.datapointLeave && P.value.events.datapointLeave({
1045
- datapoint: e,
1046
- seriesIndex: t
1047
- }), X.value = Y.value, Y.value = void 0, N.value = null, M.value = null, Yt("hoverIndex", { index: void 0 });
1048
- }
1049
- let Z = v(() => {
1050
- if (Re.value) {
1051
- let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
1052
- return {
1053
- latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
1054
- sum: t,
1055
- average: t / J.value.length,
1056
- median: f(e),
1057
- trend: te(J.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(() => Re.value ? P.value.style.dataLabel.valueType === "latest" ? Z.value.latest : P.value.style.dataLabel.valueType === "sum" ? Z.value.sum : P.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = v(() => P.value.type && P.value.type === "bar");
1071
- function dn(e, t) {
1072
- P.value.events.datapointClick && P.value.events.datapointClick({
1073
- datapoint: e,
1074
- seriesIndex: t
1075
- }), Yt("selectDatapoint", {
1076
- datapoint: e,
1077
- index: t
1078
- });
1079
- }
1080
- let fn = v(() => Array.isArray(P.value.style.line.dashIndices) && P.value.style.line.dashIndices.length > 0), pn = v(() => Q.value ? "" : ee(J.value)), mn = v(() => Q.value ? "" : i(J.value)), hn = v(() => Q.value || !fn.value ? [] : a(J.value, P.value.style.line.dashIndices)), gn = v(() => Q.value || !fn.value ? [] : c(J.value, P.value.style.line.dashIndices)), _n = v(() => Q.value || !P.value.gradientPath.show || P.value.temperatureColors.show ? "" : `M ${(P.value.style.line.smooth ? pn.value : mn.value) || "0,0"}`), $ = v(() => !P.value.temperatureColors.show || nt.value || !P.value.temperatureColors.colors.length ? null : P.value.temperatureColors.colors.map((e) => ie(e)));
1081
- O(() => [
1082
- Qe.value,
1083
- Wt.value,
1084
- J.value.length,
1085
- K.value.width,
1086
- K.value.height,
1087
- P.value?.style?.line?.smooth
1088
- ], async () => {
1089
- await S(), $e();
1090
- }, { immediate: !0 }), Te(async () => {
1091
- await S(), $e();
1092
- }), O(() => F.value, async (e) => {
1093
- e || await Kt();
1094
- }), O(() => W.value, async (e) => {
1095
- e || F.value || await Kt();
1096
- }), O(() => k.selectedIndex, (e) => {
1097
- if (e == null) {
1098
- N.value = null, M.value = null, Y.value = void 0;
1099
- return;
1100
- }
1101
- if (e < 0 || e >= J.value.length) return;
1102
- let t = J.value[e];
1103
- t && (N.value = e, M.value = e, Y.value = t);
1104
- });
1105
- let vn = T(!1);
1106
- function yn() {
1107
- let e = on.value;
1108
- if (e !== null && e >= 0 && e < J.value.length) {
1109
- let t = J.value[e];
1110
- if (t) {
1111
- M.value = e, Y.value = t, N.value = e, vn.value = !0;
1112
- return;
1113
- }
1114
- }
1115
- M.value = null, !Y.value && J.value.length && cn(J.value.at(-1), J.value.length - 1), vn.value = !0;
1116
- }
1117
- function bn() {
1118
- X.value = Y.value, (k.selectedIndex === void 0 || k.selectedIndex === null) && (M.value = null, Y.value = void 0, N.value = null, Yt("hoverIndex", { index: void 0 })), vn.value = !1;
1119
- }
1120
- function xn(e) {
1121
- if (!L.value || document.activeElement !== L.value) return;
1122
- X.value = Y.value;
1123
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
1124
- if (!t && !n) return;
1125
- let r = J.value.length;
1126
- if (!r) return;
1127
- e.preventDefault(), e.stopPropagation();
1128
- let i = M.value, a = i !== null && i >= 0 && i < r, o = Y.value ? J.value.findIndex((e) => e.id === Y.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 = J.value[i];
1131
- s && (M.value = i, cn(s, i));
1132
- }
1133
- let Sn = v(() => ({
1134
- headers: [P.value.translations.period, P.value.translations.value],
1135
- rows: J.value.map((e) => [e.period, e.absoluteValue])
1136
- }));
1137
- return (r, i) => (w(), b("div", {
1138
- ref_key: "sparklineChart",
1139
- ref: j,
1140
- class: "vue-data-ui-component vue-ui-sparkline",
1141
- id: A.value,
1142
- style: C(`width:100%;font-family:${P.value.style.fontFamily};`)
1143
- }, [
1144
- x("p", {
1145
- id: `chart-instructions-${A.value}`,
1146
- class: "sr-only"
1147
- }, Oe(P.value.a11y.translations.keyboardNavigation), 9, dt),
1148
- Sn.value?.rows?.length ? (w(), ve(me, {
1149
- key: 0,
1150
- uid: A.value,
1151
- head: Sn.value.headers,
1152
- body: Sn.value.rows,
1153
- notice: P.value.a11y.translations.tableAvailable,
1154
- caption: P.value.a11y.translations.tableCaption
1155
- }, null, 8, [
1156
- "uid",
1157
- "head",
1158
- "body",
1159
- "notice",
1160
- "caption"
1161
- ])) : y("", !0),
1162
- E(r.$slots, "before", Ce(Se({
1163
- selected: Y.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
- P.value.style.title.show && e.showInfo ? (w(), b("div", {
1171
- key: 1,
1172
- ref_key: "chartTitle",
1173
- ref: Be,
1174
- class: "vue-ui-sparkline-title",
1175
- style: C(`display:flex;align-items:center;width:100%;color:${P.value.style.title.color};background:${P.value.style.backgroundColor};justify-content:${P.value.style.title.textAlign === "left" ? "flex-start" : P.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${P.value.style.title.fontSize * 2}px;font-size:${P.value.style.title.fontSize}px;font-weight:${P.value.style.title.bold ? "bold" : "normal"};`)
1176
- }, [x("span", { style: C(`padding:${P.value.style.title.textAlign === "left" ? "0 0 0 12px" : P.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Oe(Y.value ? Y.value.period : P.value.style.title.text), 5)], 4)) : y("", !0),
1177
- x("div", ft, [(w(), b("svg", {
1178
- ref_key: "svgRef",
1179
- ref: L,
1180
- xmlns: D(re),
1181
- viewBox: `0 0 ${K.value.width} ${K.value.height}`,
1182
- style: C(`background:${P.value.style.backgroundColor};overflow:visible;direction:ltr`),
1183
- tabindex: "0",
1184
- "aria-describedby": `chart-instructions-${A.value}`,
1185
- onMouseleave: i[0] ||= (e) => X.value = void 0,
1186
- onFocus: yn,
1187
- onBlur: bn,
1188
- onKeydown: xn
1189
- }, [
1190
- be(D(Me)),
1191
- r.$slots["chart-background"] ? (w(), b("foreignObject", {
1192
- key: 0,
1193
- x: 0,
1194
- y: 0,
1195
- width: K.value.width <= 0 ? 10 : K.value.width,
1196
- height: K.value.height <= 0 ? 10 : K.value.height,
1197
- style: { pointerEvents: "none" }
1198
- }, [E(r.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : 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_${A.value}`
1206
- }, [x("stop", {
1207
- offset: "0%",
1208
- "stop-color": D(m)(D(o)(P.value.style.area.color, .05), P.value.style.area.opacity)
1209
- }, null, 8, gt), x("stop", {
1210
- offset: "100%",
1211
- "stop-color": D(m)(P.value.style.area.color, P.value.style.area.opacity)
1212
- }, null, 8, _t)], 8, ht),
1213
- x("linearGradient", {
1214
- x2: "0%",
1215
- y2: "100%",
1216
- id: `sparkline_bar_gradient_pos_${A.value}`
1217
- }, [x("stop", {
1218
- offset: "0%",
1219
- "stop-color": P.value.style.bar.color
1220
- }, null, 8, yt), x("stop", {
1221
- offset: "100%",
1222
- "stop-color": D(o)(P.value.style.bar.color, .05)
1223
- }, null, 8, bt)], 8, vt),
1224
- x("linearGradient", {
1225
- x2: "0%",
1226
- y2: "100%",
1227
- id: `sparkline_bar_gradient_neg_${A.value}`
1228
- }, [x("stop", {
1229
- offset: "0%",
1230
- "stop-color": D(o)(P.value.style.bar.color, .05)
1231
- }, null, 8, St), x("stop", {
1232
- offset: "100%",
1233
- "stop-color": P.value.style.bar.color
1234
- }, null, 8, Ct)], 8, xt),
1235
- x("filter", {
1236
- id: `sparkline_pulse_glow_${A.value}`,
1237
- filterUnits: "userSpaceOnUse",
1238
- x: "-50",
1239
- y: "-50",
1240
- width: "100",
1241
- height: "100"
1242
- }, [...i[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, wt),
1247
- P.value.temperatureColors.show && $.value && !nt.value ? (w(), b("linearGradient", {
1248
- key: 0,
1249
- id: `temperature_grad_sparkline_${A.value}`,
1250
- gradientTransform: "rotate(90)"
1251
- }, [(w(!0), b(_, null, Ee($.value, (e, n) => (w(), b("stop", {
1252
- key: `temperature_grad_stop_${n}_${A.value}`,
1253
- "stop-color": e,
1254
- offset: D(t)(n, $.value.length)
1255
- }, null, 8, Et))), 128))], 8, Tt)) : y("", !0)
1256
- ]),
1257
- P.value.style.area.show && !Q.value && J.value[0] && J.value.length > 1 ? (w(), b("g", Dt, [P.value.style.line.smooth ? (w(), b("path", {
1258
- key: 0,
1259
- class: "vue-ui-sparkline-area",
1260
- d: `M ${J.value[0].x},${q.value.bottom} ${D(ee)(J.value)} L ${J.value.at(-1).x},${q.value.bottom} Z`,
1261
- fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
1262
- "stroke-linecap": "round",
1263
- "stroke-linejoin": "round",
1264
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1265
- }, null, 12, Ot)) : (w(), b("path", {
1266
- key: 1,
1267
- class: "vue-ui-sparkline-area",
1268
- d: `M${sn.value}Z`,
1269
- fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
1270
- "stroke-linecap": "round",
1271
- "stroke-linejoin": "round",
1272
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1273
- }, null, 12, kt))])) : y("", !0),
1274
- P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 2 }, [x("path", {
1275
- id: Wt.value,
1276
- d: `M ${pn.value || "0,0"}`,
1277
- fill: "none",
1278
- stroke: "transparent",
1279
- "stroke-width": P.value.style.line.strokeWidth,
1280
- "stroke-linecap": "round",
1281
- "stroke-linejoin": "round"
1282
- }, null, 8, At), fn.value ? (w(!0), b(_, { key: 0 }, Ee(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_${A.value})` : P.value.style.line.color,
1287
- fill: "none",
1288
- "stroke-width": P.value.style.line.strokeWidth,
1289
- "stroke-linecap": "round",
1290
- "stroke-linejoin": "round",
1291
- "stroke-dasharray": e.dashed ? P.value.style.line.dashArray : 0,
1292
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1293
- }, null, 12, jt))), 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_${A.value})` : P.value.style.line.color,
1298
- fill: "none",
1299
- "stroke-width": P.value.style.line.strokeWidth,
1300
- "stroke-linecap": "round",
1301
- "stroke-linejoin": "round",
1302
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1303
- }, null, 12, Mt))], 64)) : y("", !0),
1304
- !P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 3 }, [x("path", {
1305
- id: Wt.value,
1306
- d: `M ${mn.value || "0,0"}`,
1307
- fill: "none",
1308
- stroke: "transparent",
1309
- "stroke-width": P.value.style.line.strokeWidth,
1310
- "stroke-linecap": "round",
1311
- "stroke-linejoin": "round"
1312
- }, null, 8, Nt), fn.value ? (w(!0), b(_, { key: 0 }, Ee(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_${A.value})` : P.value.style.line.color,
1317
- fill: "none",
1318
- "stroke-width": P.value.style.line.strokeWidth,
1319
- "stroke-linecap": "round",
1320
- "stroke-linejoin": "round",
1321
- "stroke-dasharray": e.dashed ? P.value.style.line.dashArray * 2 : 0,
1322
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1323
- }, null, 12, Pt))), 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_${A.value})` : P.value.style.line.color,
1328
- fill: "none",
1329
- "stroke-width": P.value.style.line.strokeWidth,
1330
- "stroke-linecap": "round",
1331
- "stroke-linejoin": "round",
1332
- style: C({ transition: D(F) ? void 0 : "all 0.2s" })
1333
- }, null, 12, Ft))], 64)) : y("", !0),
1334
- _n.value && !$.value ? (w(), ve(ct, {
1335
- key: 4,
1336
- svgPathData: _n.value,
1337
- enabled: P.value.gradientPath.show && !Q.value && !$.value,
1338
- strokeWidth: P.value.style.line.strokeWidth,
1339
- highColor: P.value.gradientPath.colors.high,
1340
- lowColor: P.value.gradientPath.colors.low,
1341
- segments: P.value.gradientPath.segments
1342
- }, null, 8, [
1343
- "svgPathData",
1344
- "enabled",
1345
- "strokeWidth",
1346
- "highColor",
1347
- "lowColor",
1348
- "segments"
1349
- ])) : y("", !0),
1350
- Gt.value && Qe.value ? (w(), ve(ze, {
1351
- key: 5,
1352
- uid: A.value,
1353
- svgRef: D(L),
1354
- pulsePathId: Wt.value,
1355
- pulsePathLength: Ke.value,
1356
- pulseDur: Ge.value,
1357
- pulseBegin: qe.value,
1358
- pulseRepeatCount: Ye.value,
1359
- pulseFillMode: Xe.value,
1360
- pulseKeyPoints: Je.value,
1361
- pulseMotion: et.value,
1362
- pulse: z.value,
1363
- pulseTrail: tt.value,
1364
- pulseTrailLength: Ze.value,
1365
- prefersReducedMotion: D(Le),
1366
- loading: D(F),
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, Ee(J.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 : en.value) ? 0 : e.absoluteValue > 0 ? e.y : en.value,
1390
- width: e.width,
1391
- height: isNaN(Math.abs(e.y - en.value)) ? 0 : Math.abs(e.y - en.value),
1392
- fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${A.value})` : `url(#sparkline_bar_gradient_neg_${A.value})`,
1393
- rx: P.value.style.bar.borderRadius
1394
- }, null, 8, It)) : y("", !0), P.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || on.value === t) ? (w(), b("line", {
1395
- key: 1,
1396
- x1: e.x,
1397
- x2: e.x,
1398
- y1: q.value.top - 6,
1399
- y2: q.value.bottom,
1400
- stroke: P.value.style.verticalIndicator.color || e.color,
1401
- "stroke-width": P.value.style.verticalIndicator.strokeWidth,
1402
- "stroke-linecap": "round",
1403
- "stroke-dasharray": P.value.style.verticalIndicator.strokeDasharray || 0
1404
- }, null, 8, Lt)) : y("", !0)]))), 256)),
1405
- Xt.value < 0 ? (w(), b("line", {
1406
- key: 6,
1407
- x1: q.value.start,
1408
- x2: q.value.start + q.value.width,
1409
- y1: D(d)(en.value, q.value.bottom),
1410
- y2: D(d)(en.value, q.value.bottom),
1411
- stroke: P.value.style.zeroLine.color,
1412
- "stroke-dasharray": P.value.style.zeroLine.strokeWidth * 2,
1413
- "stroke-width": P.value.style.zeroLine.strokeWidth,
1414
- "stroke-linecap": "round"
1415
- }, null, 8, Rt)) : y("", !0),
1416
- P.value.style.plot.show ? (w(!0), b(_, { key: 7 }, Ee(J.value, (t, n) => (w(), b("g", null, [Y.value && t.id === Y.value.id || e.selectedIndex === n || D(I).length === 1 ? (w(), b("circle", {
1417
- key: 0,
1418
- cx: t.x,
1419
- cy: t.y,
1420
- r: P.value.style.plot.radius,
1421
- fill: t.color,
1422
- stroke: P.value.style.plot.stroke,
1423
- "stroke-width": P.value.style.plot.strokeWidth
1424
- }, null, 8, zt)) : y("", !0)]))), 256)) : y("", !0),
1425
- e.showInfo && P.value.style.dataLabel.show ? (w(), b("text", {
1426
- key: 8,
1427
- x: P.value.style.dataLabel.position === "left" ? 12 + P.value.style.dataLabel.offsetX : q.value.width + 12 + P.value.style.dataLabel.offsetX,
1428
- y: K.value.height / 2 + P.value.style.dataLabel.fontSize / 2.5 + P.value.style.dataLabel.offsetY,
1429
- "font-size": P.value.style.dataLabel.fontSize,
1430
- "font-weight": P.value.style.dataLabel.bold ? "bold" : "normal",
1431
- fill: P.value.style.dataLabel.color
1432
- }, Oe(Y.value ? D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
1433
- p: P.value.style.dataLabel.prefix,
1434
- v: Y.value.absoluteValue,
1435
- s: P.value.style.dataLabel.suffix,
1436
- r: P.value.style.dataLabel.roundingValue
1437
- }), { datapoint: Y.value }) : D(p)(P.value.style.dataLabel.formatter, un.value, D(n)({
1438
- p: P.value.style.dataLabel.prefix,
1439
- v: un.value,
1440
- s: P.value.style.dataLabel.suffix,
1441
- r: P.value.style.dataLabel.roundingValue
1442
- }))), 9, Bt)) : y("", !0),
1443
- (w(!0), b(_, null, Ee(J.value, (e, t) => (w(), b("rect", {
1444
- x: e.x - (q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1)) / 2,
1445
- y: q.value.top - 6,
1446
- height: q.value.height + 6,
1447
- width: q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1),
1448
- fill: "transparent",
1449
- onMouseenter: () => cn(e, t),
1450
- onMouseleave: () => ln(e, t),
1451
- onClick: () => dn(e, t)
1452
- }, null, 40, Vt))), 256)),
1453
- E(r.$slots, "svg", { svg: K.value }, void 0, !0)
1454
- ], 44, pt)), r.$slots.hint ? (w(), b("div", Ht, [E(r.$slots, "hint", Ce(Se({
1455
- hint: P.value.a11y.translations.keyboardNavigation,
1456
- isVisible: vn.value
1457
- })), void 0, !0)])) : y("", !0)]),
1458
- Y.value && P.value.style.tooltip.show ? (w(), ve(D(Ne), {
1459
- key: 2,
1460
- x: Y.value.x,
1461
- y: Y.value.y,
1462
- prevX: X.value.x,
1463
- prevY: X.value.y,
1464
- offsetY: P.value.style.plot.radius * 3 + P.value.style.tooltip.offsetY,
1465
- svgRef: D(L),
1466
- background: P.value.style.tooltip.backgroundColor,
1467
- color: P.value.style.tooltip.color,
1468
- fontSize: P.value.style.tooltip.fontSize,
1469
- borderWidth: P.value.style.tooltip.borderWidth,
1470
- borderColor: P.value.style.tooltip.borderColor,
1471
- borderRadius: P.value.style.tooltip.borderRadius,
1472
- backgroundOpacity: P.value.style.tooltip.backgroundOpacity
1473
- }, {
1474
- default: je(() => [E(r.$slots, "tooltip", Ce(Se({ ...Y.value })), () => [ye(Oe(Y.value.period) + ": " + Oe(D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
1475
- p: P.value.style.dataLabel.prefix,
1476
- v: Y.value.absoluteValue,
1477
- s: P.value.style.dataLabel.suffix,
1478
- r: P.value.style.dataLabel.roundingValue
1479
- }), { datapoint: Y.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
- r.$slots.source ? (w(), b("div", {
1497
- key: 3,
1498
- ref_key: "source",
1499
- ref: Ve,
1500
- dir: "auto"
1501
- }, [E(r.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
1502
- E(r.$slots, "skeleton", {}, () => [D(F) ? (w(), ve(le, { key: 0 })) : y("", !0)], !0)
1503
- ], 12, ut));
1504
- }
1505
- }, [["__scopeId", "data-v-274de18b"]]);
1506
- //#endregion
1507
- export { lt as n, Ut as t };