vue-data-ui 3.20.1 → 3.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-f0MuYk3R.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-C3m9eNp0.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
  207. package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
  208. package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
  209. package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
  210. package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
  211. package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
  213. package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
  214. package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
  215. package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
  216. package/dist/vue-ui-digits-BlHqILF0.js +209 -0
  217. package/dist/vue-ui-donut-CclzduCs.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
  219. package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
  220. package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
  221. package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
  222. package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
  223. package/dist/vue-ui-gauge-s8pl305B.js +920 -0
  224. package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
  225. package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
  226. package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
  227. package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
  229. package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
  232. package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
  234. package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
  239. package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
  240. package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
  243. package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
  244. package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
  245. package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
  246. package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
  249. package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
  250. package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
  252. package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
  254. package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
  255. package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
  256. package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
  257. package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
  260. package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
  261. package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
  262. package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
  263. package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
  264. package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
  265. package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
  266. package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
  267. package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
  268. package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,438 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Ct as n, G as r, H as i, Mt as a, X as ee, i as o, k as s, m as te, t as ne, v as c, vt as l } from "./lib-DUeYQsS0.js";
3
+ import { t as re } from "./useConfig-DAyQk86L.js";
4
+ import { n as ie, t as ae } from "./BaseScanner-Dr2a1Msy.js";
5
+ import { t as u } from "./useNestedProp-CNcoy38D.js";
6
+ import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
+ import { c as se } from "./canvas-lib-BOP_HS11.js";
9
+ import { t as ce } from "./useResponsive-BfnK0KxU.js";
10
+ import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
11
+ import { t as ue } from "./useFitSvgText-CT3nmlaS.js";
12
+ import { t as de } from "./vue_ui_spark_trend-DxVmpkmC.js";
13
+ import { computed as f, createBlock as fe, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as pe, defineAsyncComponent as me, nextTick as he, normalizeStyle as ge, onMounted as _e, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRefs as ve, unref as b, watch as x } from "vue";
14
+ //#region src/components/vue-ui-spark-trend.vue
15
+ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"], be = ["id"], xe = ["xmlns", "viewBox"], Se = ["width", "height"], Ce = ["id"], we = ["stop-color"], Te = ["stop-color"], Ee = { key: 1 }, De = ["d", "fill"], Oe = ["d", "fill"], ke = [
16
+ "d",
17
+ "stroke",
18
+ "stroke-width",
19
+ "stroke-linecap",
20
+ "stroke-linejoin"
21
+ ], Ae = [
22
+ "d",
23
+ "stroke",
24
+ "stroke-width",
25
+ "stroke-linecap",
26
+ "stroke-linejoin"
27
+ ], je = ["d"], Me = ["fill", "d"], Ne = [
28
+ "x",
29
+ "y",
30
+ "width",
31
+ "height"
32
+ ], Pe = [
33
+ "x",
34
+ "y",
35
+ "fill",
36
+ "font-size",
37
+ "font-weight"
38
+ ], Fe = [
39
+ "stroke",
40
+ "cx",
41
+ "cy",
42
+ "fill"
43
+ ], Ie = [
44
+ "x",
45
+ "y",
46
+ "font-size",
47
+ "fill",
48
+ "font-weight"
49
+ ], C = /* @__PURE__ */ d({
50
+ __name: "vue-ui-spark-trend",
51
+ props: {
52
+ config: {
53
+ type: Object,
54
+ default() {
55
+ return {};
56
+ }
57
+ },
58
+ dataset: {
59
+ type: Array,
60
+ default() {
61
+ return [];
62
+ }
63
+ }
64
+ },
65
+ setup(e) {
66
+ let d = me(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), { vue_ui_spark_trend: S } = re(), { isThemeValid: C, warnInvalidTheme: Le } = oe(), w = le(), T = e, E = _(null), Re = _(null), ze = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(i()), M = _(I()), Be = f(() => t({
67
+ defaultConfig: { style: {
68
+ animation: { show: !1 },
69
+ backgroundColor: "#99999930",
70
+ line: {
71
+ stroke: "#6A6A6A",
72
+ useColorTrend: !1
73
+ },
74
+ dataLabel: {
75
+ show: !1,
76
+ useColorTrend: !1,
77
+ color: "#6A6A6A"
78
+ }
79
+ } },
80
+ userConfig: M.value.skeletonConfig ?? {}
81
+ })), { loading: N, FINAL_DATASET: P, manualLoading: F } = ie({
82
+ ...ve(T),
83
+ FINAL_CONFIG: M,
84
+ prepareConfig: I,
85
+ skeletonDataset: T.config?.skeletonDataset ?? [
86
+ 1,
87
+ 2,
88
+ 3,
89
+ 5,
90
+ 8,
91
+ 13,
92
+ 21,
93
+ 34,
94
+ 55,
95
+ 89,
96
+ 144,
97
+ 233
98
+ ],
99
+ skeletonConfig: t({
100
+ defaultConfig: M.value,
101
+ userConfig: Be.value
102
+ })
103
+ });
104
+ function I() {
105
+ let e = u({
106
+ userConfig: T.config,
107
+ defaultConfig: S
108
+ }), t = e.theme;
109
+ if (!t) return e;
110
+ if (!C.value(e)) return Le(e), e;
111
+ let n = u({
112
+ userConfig: de[t] || T.config,
113
+ defaultConfig: e
114
+ });
115
+ return u({
116
+ userConfig: T.config,
117
+ defaultConfig: n
118
+ });
119
+ }
120
+ let L = f(() => l({
121
+ data: P.value,
122
+ threshold: M.value.downsample.threshold
123
+ }));
124
+ x(() => T.config, (e) => {
125
+ M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
126
+ }, { deep: !0 });
127
+ function R(e) {
128
+ return e.map((e) => c(e));
129
+ }
130
+ let z = _(l({
131
+ data: P.value,
132
+ threshold: M.value.downsample.threshold
133
+ }).map((e) => M.value.style.animation.show && !w.value || [
134
+ void 0,
135
+ Infinity,
136
+ -Infinity,
137
+ null,
138
+ NaN
139
+ ].includes(e) ? null : e));
140
+ x(L, (e) => {
141
+ A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !w.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
142
+ void 0,
143
+ Infinity,
144
+ -Infinity,
145
+ null
146
+ ].includes(e) && !Number.isNaN(e) ? e : null), B(), he(() => $(".vue-ui-sparktrend-progress-label", 6));
147
+ }, {
148
+ deep: !0,
149
+ immediate: !0
150
+ }), x(() => JSON.stringify(T.dataset), () => {
151
+ A.value &&= (cancelAnimationFrame(A.value), null), F.value = n(T.dataset);
152
+ let e = L.value;
153
+ z.value = M.value.style.animation.show && !w.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), he(() => $(".vue-ui-sparktrend-progress-label", 6));
154
+ }, {
155
+ deep: !1,
156
+ immediate: !0
157
+ });
158
+ function B() {
159
+ let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
160
+ if (!N.value && M.value.style.animation.show && !w.value && M.value.style.animation.animationFrames && P.value.length > 1) {
161
+ z.value = [];
162
+ let n = 0;
163
+ function r() {
164
+ k.value = !0;
165
+ let i = performance.now(), a = i - t;
166
+ a > e ? (t = i - a % e, n < L.value.length ? (z.value.push(L.value[n]), n += 1, A.value = requestAnimationFrame(r)) : (cancelAnimationFrame(A.value), z.value = R(L.value), k.value = !1, $(".vue-ui-sparktrend-progress-label", 6))) : A.value = requestAnimationFrame(r);
167
+ }
168
+ r();
169
+ }
170
+ }
171
+ _e(() => {
172
+ V();
173
+ });
174
+ let Ve = f(() => M.value.debug);
175
+ function V() {
176
+ if (n(T.dataset) && (ee({
177
+ componentName: "VueUiSparkTrend",
178
+ type: "dataset",
179
+ debug: Ve.value
180
+ }), F.value = !0), n(T.dataset) || (F.value = !1), M.value.responsive) {
181
+ let e = se(() => {
182
+ let { width: e, height: t } = ce({
183
+ chart: E.value,
184
+ source: ze.value
185
+ });
186
+ requestAnimationFrame(() => {
187
+ H.value = e, U.value = t;
188
+ });
189
+ });
190
+ D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = E.value.parentNode, D.value.observe(O.value);
191
+ }
192
+ B(), $(".vue-ui-sparktrend-progress-label", 6);
193
+ }
194
+ let H = _(M.value.style.width), U = _(M.value.style.height), W = f(() => ({
195
+ height: U.value,
196
+ width: H.value
197
+ })), G = f(() => ({
198
+ top: M.value.style.padding.top,
199
+ left: M.value.style.padding.left,
200
+ right: W.value.width - M.value.style.padding.right,
201
+ bottom: W.value.height - M.value.style.padding.bottom,
202
+ height: W.value.height - (M.value.style.padding.top + M.value.style.padding.bottom) - (M.value.style.dataLabel.show ? M.value.style.dataLabel.fontSize : 0),
203
+ width: W.value.width - (M.value.style.padding.left + M.value.style.padding.right)
204
+ })), K = f(() => {
205
+ let e = R(L.value).filter(Number.isFinite);
206
+ if (!e.length) return {
207
+ max: 0,
208
+ min: 0
209
+ };
210
+ let t = e[0], n = e[0];
211
+ for (let r = 1; r < e.length; r++) {
212
+ let i = e[r];
213
+ i > t && (t = i), i < n && (n = i);
214
+ }
215
+ return {
216
+ max: t,
217
+ min: n
218
+ };
219
+ }), He = f(() => {
220
+ let e = L.value, t = e.length ? e[e.length - 1] : "x";
221
+ return [
222
+ j.value,
223
+ e.length,
224
+ Number.isFinite(t) ? t : "x",
225
+ M.value.downsample.threshold,
226
+ M.value.style.line.smooth ? "s" : "l"
227
+ ].join("-");
228
+ }), q = f(() => {
229
+ let e = K.value.min >= 0 ? 0 : K.value.min;
230
+ return Math.abs(e);
231
+ }), Ue = f(() => K.value.max + q.value);
232
+ function We(e) {
233
+ return e / Ue.value;
234
+ }
235
+ let Ge = f(() => L.value.length), J = f(() => z.value.map((e, t) => {
236
+ let n = isNaN(e) || [
237
+ void 0,
238
+ null,
239
+ "NaN",
240
+ NaN,
241
+ Infinity,
242
+ -Infinity
243
+ ].includes(e) ? 0 : e || 0;
244
+ return {
245
+ value: c(e),
246
+ absoluteValue: c(n),
247
+ plotValue: c(n + q.value),
248
+ toMax: We(n + q.value),
249
+ x: G.value.left + c(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
250
+ y: G.value.bottom - c(G.value.height * We(n + q.value))
251
+ };
252
+ })), Y = f(() => {
253
+ let e = R(L.value);
254
+ return M.value.style.trendLabel.trendType === "global" ? te(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
255
+ }), X = f(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = f(() => M.value.style.arrow.colors[X.value]), Ke = f(() => {
256
+ let e = {
257
+ x: J.value[0].x,
258
+ y: W.value.height - 6
259
+ }, t = {
260
+ x: J.value[J.value.length - 1].x,
261
+ y: W.value.height - 6
262
+ }, n = [];
263
+ return J.value.forEach((e) => {
264
+ n.push(`${e.x},${e.y} `);
265
+ }), [
266
+ e.x,
267
+ e.y,
268
+ ...n,
269
+ t.x,
270
+ t.y
271
+ ].toString();
272
+ }), qe = f(() => {
273
+ let e = [];
274
+ return J.value.forEach((t) => {
275
+ e.push(`${t.x},${t.y} `);
276
+ }), `M ${e.toString()}`;
277
+ }), Q = f(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = ue({
278
+ svgRef: Re,
279
+ unitWidth: f(() => G.value.left * .8),
280
+ fontSize: M.value.style.trendLabel.fontSize
281
+ }), Je = f(() => {
282
+ if (N.value || k.value) return "Trend chart loading";
283
+ let e = J.value?.at(-1), t = e?.value, n = r({
284
+ p: Y.value > 0 ? "+" : "",
285
+ v: Y.value,
286
+ s: "%",
287
+ r: M.value.style.trendLabel.rounding
288
+ }), i = t == null ? "not available" : o(M.value.style.dataLabel.formatter, t, r({
289
+ p: M.value.style.dataLabel.prefix,
290
+ v: t,
291
+ s: M.value.style.dataLabel.suffix,
292
+ r: M.value.style.dataLabel.rounding
293
+ }), { datapoint: e });
294
+ return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${i}.`;
295
+ }), Ye = f(() => `sparktrend-a11y-${j.value}`);
296
+ return (e, t) => (g(), m("div", {
297
+ ref_key: "sparkTrendChart",
298
+ ref: E,
299
+ class: "vue-data-ui-component vue-ui-spark-trend",
300
+ id: j.value,
301
+ style: ge(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
302
+ role: "img",
303
+ "aria-describedby": Ye.value
304
+ }, [
305
+ h("p", {
306
+ id: Ye.value,
307
+ class: "sr-only",
308
+ "aria-live": "polite"
309
+ }, y(Je.value), 9, be),
310
+ (g(), m("svg", {
311
+ key: He.value,
312
+ ref_key: "svgRef",
313
+ ref: Re,
314
+ xmlns: b(ne),
315
+ viewBox: `0 0 ${W.value.width} ${W.value.height}`,
316
+ style: "width:100%;background:transparent;overflow:visible",
317
+ "aria-hidden": "true"
318
+ }, [
319
+ pe(b(d)),
320
+ e.$slots["chart-background"] ? (g(), m("foreignObject", {
321
+ key: 0,
322
+ x: 0,
323
+ y: 0,
324
+ width: W.value.width <= 0 ? 10 : W.value.width,
325
+ height: W.value.height <= 0 ? 10 : W.value.height,
326
+ style: { pointerEvents: "none" }
327
+ }, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : p("", !0),
328
+ h("defs", null, [h("linearGradient", {
329
+ x1: "0%",
330
+ y1: "0%",
331
+ x2: "0%",
332
+ y2: "100%",
333
+ id: `pill_gradient_${j.value}`
334
+ }, [h("stop", {
335
+ offset: "0%",
336
+ "stop-color": b(a)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
337
+ }, null, 8, we), h("stop", {
338
+ offset: "100%",
339
+ "stop-color": M.value.style.backgroundColor
340
+ }, null, 8, Te)], 8, Ce)]),
341
+ M.value.style.area.show && J.value[0] ? (g(), m("g", Ee, [M.value.style.line.smooth ? (g(), m("path", {
342
+ key: 0,
343
+ d: `M ${J.value[0].x},${G.value.bottom} ${b(s)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
344
+ fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(a)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
345
+ stroke: "none"
346
+ }, null, 8, De)) : (g(), m("path", {
347
+ key: 1,
348
+ d: `M${Ke.value}Z`,
349
+ fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(a)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
350
+ stroke: "none"
351
+ }, null, 8, Oe))])) : p("", !0),
352
+ M.value.style.line.smooth && J.value.length ? (g(), m("path", {
353
+ key: 2,
354
+ d: `M ${b(s)(J.value)}`,
355
+ stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
356
+ fill: "none",
357
+ "stroke-width": M.value.style.line.strokeWidth,
358
+ "stroke-linecap": M.value.style.line.strokeLinecap,
359
+ "stroke-linejoin": M.value.style.line.strokeLinejoin
360
+ }, null, 8, ke)) : p("", !0),
361
+ !M.value.style.line.smooth && J.value.length ? (g(), m("path", {
362
+ key: 3,
363
+ d: qe.value,
364
+ stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
365
+ fill: "none",
366
+ "stroke-width": M.value.style.line.strokeWidth,
367
+ "stroke-linecap": M.value.style.line.strokeLinecap,
368
+ "stroke-linejoin": M.value.style.line.strokeLinejoin
369
+ }, null, 8, Ae)) : p("", !0),
370
+ b(N) ? (g(), m("path", {
371
+ key: 4,
372
+ fill: "#6A6A6A",
373
+ d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
374
+ }, null, 8, je)) : (g(), m("path", {
375
+ key: 5,
376
+ fill: Z.value,
377
+ d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
378
+ }, null, 8, Me)),
379
+ b(N) ? (g(), m("rect", {
380
+ key: 6,
381
+ x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
382
+ y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
383
+ width: M.value.style.trendLabel.fontSize * 2,
384
+ height: M.value.style.trendLabel.fontSize,
385
+ fill: "#6A6A6A80",
386
+ rx: "3"
387
+ }, null, 8, Ne)) : p("", !0),
388
+ !k.value && !b(N) ? (g(), m("text", {
389
+ key: 7,
390
+ class: "vue-ui-sparktrend-progress-label",
391
+ x: G.value.left / 2,
392
+ y: U.value / 2 + M.value.style.trendLabel.fontSize * 2,
393
+ "text-anchor": "middle",
394
+ fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
395
+ "font-size": M.value.style.trendLabel.fontSize,
396
+ "font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
397
+ }, y(b(r)({
398
+ p: Y.value > 0 ? "+" : "",
399
+ v: Y.value,
400
+ s: "%",
401
+ r: M.value.style.trendLabel.rounding
402
+ })), 9, Pe)) : p("", !0),
403
+ J.value.length && J.value.at(-1).x !== void 0 ? (g(), m("circle", {
404
+ key: 8,
405
+ stroke: M.value.style.backgroundColor,
406
+ "stroke-width": 2,
407
+ cx: J.value.at(-1).x,
408
+ cy: J.value.at(-1).y,
409
+ r: 4,
410
+ fill: b(N) ? "#6A6A6A" : Z.value
411
+ }, null, 8, Fe)) : p("", !0),
412
+ J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(), m("text", {
413
+ key: 9,
414
+ "text-anchor": "middle",
415
+ x: J.value.at(-1).x,
416
+ y: J.value.at(-1).y - M.value.style.dataLabel.fontSize / 1.5,
417
+ "font-size": M.value.style.dataLabel.fontSize,
418
+ fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
419
+ "font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
420
+ }, y(b(o)(M.value.style.dataLabel.formatter, J.value.at(-1).value, b(r)({
421
+ p: M.value.style.dataLabel.prefix,
422
+ v: J.value.at(-1).value,
423
+ s: M.value.style.dataLabel.suffix,
424
+ r: M.value.style.dataLabel.rounding
425
+ }), { datapoint: J.value.at(-1) })), 9, Ie)) : p("", !0)
426
+ ], 8, xe)),
427
+ e.$slots.source ? (g(), m("div", {
428
+ key: 0,
429
+ ref_key: "source",
430
+ ref: ze,
431
+ dir: "auto"
432
+ }, [v(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
433
+ v(e.$slots, "skeleton", {}, () => [b(N) ? (g(), fe(ae, { key: 0 })) : p("", !0)], !0)
434
+ ], 12, ye));
435
+ }
436
+ }, [["__scopeId", "data-v-90a4c498"]]);
437
+ //#endregion
438
+ export { S as n, C as t };