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,551 @@
1
+ //--------------------------------------------------------------------------------------------//
2
+
3
+ /**
4
+ * UTILITY FUNCTION TYPES
5
+ *
6
+ * IMPORTANT: these types are duplicated in vue-data-ui.d.ts for the legacy import to work.
7
+ * If we ever ship a v4 these types can be forcefully removed from vue-data-ui.ts, with
8
+ * a breaking change.
9
+ */
10
+
11
+ //--------------------------------------------------------------------------------------------//
12
+
13
+ /**
14
+ * Configuration options for cumulative functions
15
+ */
16
+ export type CumulativeConfig = {
17
+ /**
18
+ * If `true`, invalid inputs are kept (and echoed) in the output.
19
+ * Defaults to `true`.
20
+ */
21
+ keepInvalid?: boolean;
22
+ /**
23
+ * If `true`, invalid inputs are treated as zero when computing the statistic.
24
+ * Defaults to `false`.
25
+ */
26
+ convertInvalidToZero?: boolean;
27
+ };
28
+
29
+ /**
30
+ * Vue Data UI utility
31
+ * ---
32
+ * Compute the cumulative median of a sequence, optionally echoing or zero-filling invalid inputs.
33
+ * ---
34
+ * @example
35
+ * ```js
36
+ * // Simple usage
37
+ * const arr = [1, 2, 3, 4, 5];
38
+ * const medians = getCumulativeMedian({ values: arr });
39
+ *
40
+ * // Ignore invalid values entirely
41
+ * const arrWithInvalid = [1, null, 2, Infinity, undefined];
42
+ * const mediansNoInvalid = getCumulativeMedian({
43
+ * values: arrWithInvalid,
44
+ * config: { keepInvalid: false }
45
+ * });
46
+ *
47
+ * // Convert invalid values to zero
48
+ * const mediansZeroed = getCumulativeMedian({
49
+ * values: arrWithInvalid,
50
+ * config: { convertInvalidToZero: true }
51
+ * });
52
+ * ```
53
+ *
54
+ * @param {Object} params
55
+ * @param {Array<number|*>} params.values
56
+ * The input sequence. Can include numbers or any “invalid” placeholders.
57
+ * @param {CumulativeConfig} [params.config]
58
+ * Configuration flags to control handling of invalid inputs.
59
+ * @returns {Array<number|*>}
60
+ * An array where each slot is either the cumulative median up to that point,
61
+ * or the original invalid value if `keepInvalid` is `true`.
62
+ */
63
+ export function getCumulativeMedian<T = unknown>(params: {
64
+ values: Array<number | T>;
65
+ config?: CumulativeConfig;
66
+ }): Array<number | T>;
67
+
68
+ /**
69
+ * Vue Data UI utility
70
+ * ---
71
+ * Compute the cumulative median of a sequence, optionally echoing or zero-filling invalid inputs.
72
+ * ---
73
+ * @example
74
+ * ```js
75
+ * // Simple usage
76
+ * const arr = [1, 2, 3, 4, 5];
77
+ * const medians = getCumulativeMedian({ values: arr });
78
+ *
79
+ * // Ignore invalid values entirely
80
+ * const arrWithInvalid = [1, null, 2, Infinity, undefined];
81
+ * const mediansNoInvalid = getCumulativeMedian({
82
+ * values: arrWithInvalid,
83
+ * config: { keepInvalid: false }
84
+ * });
85
+ *
86
+ * // Convert invalid values to zero
87
+ * const mediansZeroed = getCumulativeMedian({
88
+ * values: arrWithInvalid,
89
+ * config: { convertInvalidToZero: true }
90
+ * });
91
+ * ```
92
+ *
93
+ * @param {Object} params
94
+ * @param {Array<number|*>} params.values
95
+ * The input sequence. Can include numbers or any “invalid” placeholders.
96
+ * @param {CumulativeConfig} [params.config]
97
+ * Configuration flags to control handling of invalid inputs.
98
+ * @returns {Array<number|*>}
99
+ * An array where each slot is either the cumulative median up to that point,
100
+ * or the original invalid value if `keepInvalid` is `true`.
101
+ */
102
+ export function getCumulativeAverage<T = unknown>(params: {
103
+ values: Array<number | T>;
104
+ config?: CumulativeConfig;
105
+ }): Array<number | T>;
106
+
107
+ /**
108
+ * Recursively makes all properties in T optional.
109
+ * - Leaves functions as-is
110
+ * - Handles arrays by making their item type DeepPartial
111
+ */
112
+ export type DeepPartial<T> = T extends Function
113
+ ? T
114
+ : T extends Array<infer U>
115
+ ? Array<DeepPartial<U>>
116
+ : T extends object
117
+ ? { [K in keyof T]?: DeepPartial<T[K]> }
118
+ : T;
119
+
120
+ /**
121
+ * Vue Data UI utility
122
+ * ---
123
+ * Merge a partial config with a full default config
124
+ * ---
125
+ * @example
126
+ * const defaultConfig = getVueDataUiConfig('vue_ui_xy');
127
+ * const merged = mergeConfigs({
128
+ * defaultConfig,
129
+ * userConfig: {
130
+ * chart: {
131
+ * backgroundColor: '#FF0000'
132
+ * }
133
+ * }
134
+ * })
135
+ */
136
+ export function mergeConfigs<T extends Record<string, any>>({
137
+ defaultConfig,
138
+ userConfig,
139
+ }: {
140
+ defaultConfig: T;
141
+ userConfig: DeepPartial<T>;
142
+ }): T;
143
+
144
+ /**
145
+ * Vue Data UI utility
146
+ * ---
147
+ * Generate a straight line path to include in the d attribute of a svg path element
148
+ * ___
149
+ * @example
150
+ * const path = createStraightPath([{x: 1, y: 1}, { x: 2, y: 1.2}])
151
+ *
152
+ * @param points - An array of point objects
153
+ */
154
+ export const createStraightPath: (points: Point[]) => string;
155
+
156
+ /**
157
+ * Vue Data UI utility
158
+ * ---
159
+ * Generate a spline path to include in the d attribute of a svg path element
160
+ * ___
161
+ * @example
162
+ * const path = createSmoothPath([{x: 1, y: 1}, { x: 2, y: 1.2}, { x: 3, y: 0.2 }])
163
+ *
164
+ * @param points - An array of point objects
165
+ */
166
+ export const createSmoothPath: (points: Point[]) => string;
167
+
168
+ /**
169
+ * Vue Data UI utility
170
+ * ---
171
+ * Create a dataset for VueUiWordCloud from a string
172
+ * ___
173
+ * @example
174
+ * const dataset = createWordCloudDatasetFromPlainText('Lorem Ipsum Dolor', (w) => w.toUpperCase())
175
+ *
176
+ * @param text - The text from which the dataset will be generated
177
+ * @param callback - Optional transform callback to format each word of the dataset
178
+ */
179
+ export const createWordCloudDatasetFromPlainText: (
180
+ text: string,
181
+ callback?: VueDataUiWordCloudTransformCallback,
182
+ ) => VueUiWordCloudDatasetItem[];
183
+
184
+ export type VueDataUiAbbreviatePayload = {
185
+ source: string;
186
+ length?: number;
187
+ };
188
+
189
+ /**
190
+ * Vue Data UI utility
191
+ * ---
192
+ * Abbreviate a string to a given length
193
+ * ___
194
+ * @example
195
+ * const label = abbreviate({
196
+ * source: 'Lorem Ipsum Dolor',
197
+ * length: 3
198
+ * })
199
+ *
200
+ * @param source - The string to abbreviate
201
+ * @param length - The number of letters to return (defaults to 3)
202
+ */
203
+ export const abbreviate: (payload: VueDataUiAbbreviatePayload) => string;
204
+
205
+ /**
206
+ * Vue Data UI utility
207
+ * ---
208
+ * Get the color palette for a given theme
209
+ * ___
210
+ * @example
211
+ * const palette = getPalette("hack");
212
+ *
213
+ * @param theme - The theme for which the palette is requested (e.g., "hack" | "zen", | "concrete")
214
+ */
215
+ export const getPalette: (theme: Theme) => string[];
216
+
217
+ export type VueDataUiGetConfigOptions = {
218
+ colorBackground?: string;
219
+ colorTextPrimary?: string;
220
+ colorTextSecondary?: string;
221
+ colorGrid?: string;
222
+ colorBorder?: string;
223
+ };
224
+
225
+ /**
226
+ * Vue Data UI utility
227
+ * ---
228
+ * Get the default config for a given component
229
+ * ___
230
+ * @typeParam T - The config type for the component
231
+ * @param key - Component key in snake_case (e.g. `"vue_ui_xy"`).
232
+ * @param options - Optional general color settings
233
+ * @returns The default configuration of type `T`.
234
+ * @example
235
+ * ```ts
236
+ * const defaultConfig = getVueDataUiConfig<VueUiXyConfig>("vue_ui_xy");
237
+ * ```
238
+ */
239
+ export const getVueDataUiConfig: <T>(
240
+ key: VueDataUiConfigKey,
241
+ options?: VueDataUiGetConfigOptions,
242
+ ) => T;
243
+
244
+ /**
245
+ * Vue Data UI utility
246
+ * ---
247
+ * Lightens a color by a specified strength.
248
+ * ___
249
+ * @example
250
+ * const color = lightenColor("#FF0000", 0.25);
251
+ * const color = lightenColor("#FF000080", 0.25);
252
+ * const color = lightenColor("rgb(255,0,0)", 0.25);
253
+ * const color = lightenColor("rgb(255,0,0,0.5)", 0.25);
254
+ * const color = lightenColor("red", 0.25);
255
+ *
256
+ * @param color - The input color. Can be hexadecimal (e.g., "#FF0000", or "#FF000080" with alpha channel), RGB or RGBA, or a named color.
257
+ * @param strength - The strength to lighten the color, typically a value between 0 and 1.
258
+ * @returns The lightened color in hexadecimal format.
259
+ */
260
+ export const lightenColor: (color: string, strength: number) => string;
261
+
262
+ /**
263
+ * Vue Data UI utility
264
+ * ---
265
+ * Returns a readable text color (dark or light) based on the provided background color.
266
+ * ___
267
+ * @example
268
+ * const color = adaptColorToBackground("#FFFFFF");
269
+ * const color = adaptColorToBackground("#000000");
270
+ * const color = adaptColorToBackground("rgba(255,0,0,0.5)");
271
+ * const color = adaptColorToBackground("oklch(62% 0.15 29)");
272
+ * const color = adaptColorToBackground("#FF0000", { dark: "#111111", light: "#EEEEEE" });
273
+ *
274
+ * @param backgroundColor - The input background color. Can be any supported format.
275
+ * @param options - Optional color overrides.
276
+ * @param options.dark - Color returned when the background is considered light.
277
+ * @param options.light - Color returned when the background is considered dark.
278
+ * @returns The chosen text color.
279
+ */
280
+ export const adaptColorToBackground: (
281
+ backgroundColor: string | null | undefined,
282
+ options?: { dark?: string; light?: string },
283
+ ) => string;
284
+
285
+ /**
286
+ * Vue Data UI utility
287
+ * ---
288
+ * Darkens a color by a specified strength.
289
+ * ___
290
+ * @example
291
+ * const color = darkenColor("#FF0000", 0.25);
292
+ * const color = darkenColor("#FF000080", 0.25);
293
+ * const color = darkenColor("rgb(255,0,0)", 0.25);
294
+ * const color = darkenColor("rgb(255,0,0,0.5)", 0.25);
295
+ * const color = darkenColor("red", 0.25);
296
+ *
297
+ * @param color - The input color. Can be hexadecimal (e.g., "#FF0000", or "#FF000080" with alpha channel), or RGB or RGBA.
298
+ * @param strength - The strength to darken the color, typically a value between 0 and 1.
299
+ * @returns The darkened color in hexadecimal format.
300
+ */
301
+ export const darkenColor: (color: string, strength: number) => string;
302
+
303
+ /**
304
+ * Vue Data UI utility
305
+ * ---
306
+ * Shifts hue for a given color, by a given strength.
307
+ * ___
308
+ * @example
309
+ * const color = shiftColorHue("#FF0000", 0.25);
310
+ * const color = shiftColorHue("#FF000080", 0.25);
311
+ * const color = shiftColorHue("rgb(255,0,0)", 0.25);
312
+ * const color = shiftColorHue("rgb(255,0,0,0.5)", 0.25);
313
+ * const color = shiftColorHue("red", 0.25);
314
+ *
315
+ * @param color - The input color. Can be hexadecimal (e.g., "#FF0000", or "#FF000080" with alpha channel), or RGB or RGBA.
316
+ * @param strength - The strength to darken the color, typically a value between 0 and 1.
317
+ * @returns The shifted color in hexadecimal format.
318
+ */
319
+ export const shiftColorHue: (color: string, strength: number) => string;
320
+
321
+ export type FormatSmallValueArgs = {
322
+ value: number;
323
+ maxDecimals?: number;
324
+ fallbackFormatter?: (value: number) => string;
325
+ removeTrailingZero?: boolean;
326
+ };
327
+
328
+ /**
329
+ * Vue Data UI utility
330
+ * ---
331
+ * Formats numeric values with a controlled number of decimal places,
332
+ * applying maxDecimals for all values when no fallbackFormatter is given,
333
+ * or calling the fallbackFormatter for values ≥ 1 if provided.
334
+ * ___
335
+ * @example
336
+ * // Zero value
337
+ * formatSmallValue({ value: 0 }); // "0"
338
+ *
339
+ * // Values < 1 use minimal decimals
340
+ * formatSmallValue({ value: 0.9 }); // "0.9"
341
+ * formatSmallValue({ value: 0.0042 }); // "0.0042"
342
+ * formatSmallValue({ value: 0.00420001 }); // "0.0042"
343
+ *
344
+ * // Retain trailing zeros
345
+ * formatSmallValue({ value: 0.9, removeTrailingZero: false }); // "0.90"
346
+ *
347
+ * // Values ≥ 1 without fallback apply maxDecimals
348
+ * formatSmallValue({ value: 1.61803, maxDecimals: 3 }); // "1.618"
349
+ *
350
+ * // Values ≥ 1 with fallbackFormatter
351
+ * formatSmallValue({ value: 2.5, fallbackFormatter: v => v.toFixed(1) }); // "2.5"
352
+ *
353
+ * // Negative values
354
+ * formatSmallValue({ value: -0.056 }); // "-0.056"
355
+ *
356
+ * @param {FormatSmallValueArgs} options - Configuration object for formatting.
357
+ * @param {number} options.value - The numeric value to format.
358
+ * @param {number} [options.maxDecimals=4] - Maximum decimal places to use.
359
+ * @param {(value: number) => string} [options.fallbackFormatter] - Formatter for values ≥ 1.
360
+ * @param {boolean} [options.removeTrailingZero=true] - Whether to strip unnecessary trailing zeros.
361
+ * @returns {string} The formatted number as a string.
362
+ */
363
+ export const formatSmallValue: ({
364
+ value,
365
+ maxDecimals,
366
+ fallbackFormatter,
367
+ removeTrailingZero,
368
+ }: FormatSmallValueArgs) => string;
369
+
370
+ export type CreateTSpansArgs = {
371
+ content: string;
372
+ fontSize: number;
373
+ fill: string;
374
+ maxWords: number;
375
+ x: number;
376
+ y: number;
377
+ };
378
+
379
+ /**
380
+ * Vue Data UI utility
381
+ * ---
382
+ * Creates TSpan elements from a string to break text into multiple lines.
383
+ * The output should be placed with `v-html` inside an SVG `<text>` element.
384
+ * ___
385
+ * @example
386
+ * const textContent = createTSpans({
387
+ * content: "This is an example of multiline text",
388
+ * fontSize: 16,
389
+ * fill: "#1A1A1A",
390
+ * maxWords: 3, // Will create lines of 3 words max
391
+ * x: 10,
392
+ * y: 20
393
+ * });
394
+ *
395
+ * // Usage: <text :x="10" :y="20" fill="#1A1A1A" :font-size="16" v-html="textContent"/>
396
+ *
397
+ * @param {Object} args - The arguments object.
398
+ * @param {string} args.content - The text content to be split into lines.
399
+ * @param {number} args.fontSize - The font size used to determine line spacing.
400
+ * @param {string} args.fill - The fill color for the text.
401
+ * @param {number} args.maxWords - Maximum number of words per line.
402
+ * @param {number} args.x - The x-coordinate for each `tspan` element.
403
+ * @param {number} args.y - The starting y-coordinate for the first `tspan`.
404
+ *
405
+ * @returns {string} A string containing the HTML content to be placed with `v-html` inside an SVG `<text>` element.
406
+ */
407
+ export const createTSpans: ({
408
+ content,
409
+ fontSize,
410
+ fill,
411
+ maxWords,
412
+ x,
413
+ y,
414
+ }: CreateTSpansArgs) => string;
415
+
416
+ /**
417
+ * Vue Data UI composable
418
+ * ---
419
+ * Flattens a reactive config object into computed refs for every leaf property.
420
+ *
421
+ * @template T extends object
422
+ * @param configRef A Vue `Ref` holding your object.
423
+ * @param options Optional settings: `delimiter` (default `"."`) and `skipArrays` (default `true`).
424
+ * @returns An object with flatten config as refs
425
+ *
426
+ * ___
427
+ * @example
428
+ *
429
+ * ```js
430
+ * import { useObjectBindings } from "vue-data-ui";
431
+ *
432
+ * const config = ref({
433
+ * customPalette: ["#CCCCCC", "#1A1A1A"],
434
+ * style: {
435
+ * chart: {
436
+ * backgroundColor: "#FFFFFF",
437
+ * color: "#1A1A1A",
438
+ * },
439
+ * },
440
+ * });
441
+ *
442
+ * const bindings = useObjectBindings(config);
443
+ * ```
444
+ *
445
+ * Then in your template:
446
+ * ```html
447
+ * <template>
448
+ * <div>
449
+ * <input type="color" v-model="bindings['style.chart.backgroundColor']" />
450
+ * </div>
451
+ * </template>
452
+ * ```
453
+ */
454
+ export function useObjectBindings(
455
+ configRef: Ref<Record<string, any>>,
456
+ options?: {
457
+ delimiter?: string;
458
+ skipArrays?: boolean;
459
+ },
460
+ ): Record<string, Ref<any>>;
461
+
462
+ /**
463
+ * Vue Data UI utility
464
+ * ---
465
+ * Applies a two-stage data correction pipeline to a numeric time series.
466
+ * ---
467
+ *
468
+ * The correction is performed in sequence:
469
+ *
470
+ * 1. Bidirectional Moving Average:
471
+ * Reduces local noise by blending trailing (left-anchored) and leading
472
+ * (right-anchored) averages. This ensures smooth transitions from both
473
+ * fixed endpoints while preserving the first and last values.
474
+ *
475
+ * 2. Forward-Backward Exponential Smoothing (Zero-Phase):
476
+ * Further smooths the signal without introducing phase lag. A forward
477
+ * and backward exponential pass are blended to preserve trend timing
478
+ * and avoid temporal shift artifacts.
479
+ *
480
+ * This utility is designed for visual data refinement,
481
+ * where smoothness is required without distorting boundary values
482
+ * or shifting peaks and transitions.
483
+ *
484
+ * @param {Array<{ value: number | null }>} data
485
+ * The ordered dataset to correct. Each item must contain a numeric `value`.
486
+ *
487
+ * @param {{ averageWindow: number, smoothingTau: number }} settings
488
+ * Configuration object:
489
+ * - `averageWindow`: Half-window size for the moving average.
490
+ * `0` disables the moving average stage.
491
+ * - `smoothingTau`: Time constant controlling smoothing strength.
492
+ * `0` disables the smoothing stage. Higher values produce smoother output.
493
+ *
494
+ * @returns {Array<{ value: number | null }>}
495
+ * A new array with corrected values. The original input array is not mutated.
496
+ */
497
+ export function applyDataCorrection(
498
+ data: Array<{ value: number | null }>,
499
+ settings: {
500
+ averageWindow: number;
501
+ smoothingTau: number;
502
+ },
503
+ ): Array<{ value: number | null }>;
504
+
505
+ export type CreatePatternArgs = {
506
+ id: string;
507
+ seed: string | number;
508
+ foregroundColor?: string;
509
+ backgroundColor?: string;
510
+ maxSize?: number;
511
+ minSize?: number;
512
+ disambiguator?: string | number;
513
+ };
514
+
515
+ /**
516
+ * Vue Data UI utility
517
+ * ---
518
+ * Creates an SVG <defs> element with a <pattern> markup string for seeded chart patterns.
519
+ * The output can be injected inside an SVG <defs> element, or in tooltips customFormat to apply patterns on tooltip markers.
520
+ * ___
521
+ * @example
522
+ * const patternMarkup = createPatternDef({
523
+ * id: "pattern-1",
524
+ * seed: "Series A",
525
+ * foregroundColor: "#1A1A1A",
526
+ * backgroundColor: "#FFFFFF",
527
+ * minSize: 8,
528
+ * maxSize: 20
529
+ * disambiguator: "pattern-1"
530
+ * });
531
+ *
532
+ * @param {CreatePatternArgs} args - Pattern creation options.
533
+ * @param {string} args.id - Unique SVG pattern identifier.
534
+ * @param {string | number} args.seed - Seed used to deterministically generate the pattern.
535
+ * @param {string} [args.foregroundColor] - Foreground color used for the pattern marks.
536
+ * @param {string} [args.backgroundColor] - Background color for the pattern tile.
537
+ * @param {number} [args.maxSize] - Maximum tile size used during seeded pattern generation.
538
+ * @param {number} [args.minSize] - Minimum tile size used during seeded pattern generation.
539
+ * @param {string | number} args.disambiguator - Additional unique identifier to disambiguate patterns for large datasets
540
+ *
541
+ * @returns {string} SVG <defs> with <pattern> markup as a string.
542
+ */
543
+ export const createPatternDef: ({
544
+ id,
545
+ seed,
546
+ foregroundColor,
547
+ backgroundColor,
548
+ maxSize,
549
+ minSize,
550
+ disambiguator,
551
+ }: CreatePatternArgs) => string;