vue-data-ui 3.20.0 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/package.json +120 -120
  2. package/dist/A11yDataTable-BCbtxMU6.js +0 -45
  3. package/dist/Arrow-D6j6ocXm.js +0 -116
  4. package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
  5. package/dist/BaseIcon-DfLoHNUj.js +0 -502
  6. package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
  7. package/dist/BaseScanner-Dr2a1Msy.js +0 -27
  8. package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
  9. package/dist/ColorPicker-Bjwxnvfh.js +0 -255
  10. package/dist/DataTable-B--IN22e.js +0 -150
  11. package/dist/Legend-Cz2uQ5gs.js +0 -114
  12. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
  13. package/dist/PackageVersion-xcyrdRmY.js +0 -11
  14. package/dist/PenAndPaper-DqrClVfb.js +0 -461
  15. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  16. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  17. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  18. package/dist/Shape-BPCJfphn.js +0 -141
  19. package/dist/Slicer-SHBj0VaV.js +0 -1144
  20. package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
  21. package/dist/SparkTooltip-CfE6yCad.js +0 -93
  22. package/dist/Title-NWp4qB4K.js +0 -87
  23. package/dist/Tooltip-BENq327o.js +0 -312
  24. package/dist/UserOptions-C1NgoGu6.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  26. package/dist/canvas-lib-BOP_HS11.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-BYtB4BF3.js +0 -237
  99. package/dist/exposedLib-CI8ji8G-.js +0 -19
  100. package/dist/geoProjections-Czak6Jn1.js +0 -145
  101. package/dist/img-1cKsci8e.js +0 -74
  102. package/dist/labelUtils-CUctkYoA.js +0 -19
  103. package/dist/lib-DUeYQsS0.js +0 -1882
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-CS7hn6at.js +0 -258
  106. package/dist/pdf-D0eZ99cP.js +0 -90
  107. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -17190
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -93
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
  115. package/dist/types/vue-ui-annotator.d.ts +0 -34
  116. package/dist/types/vue-ui-bullet.d.ts +0 -85
  117. package/dist/types/vue-ui-bump.d.ts +0 -92
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -106
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -59
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -98
  121. package/dist/types/vue-ui-chord.d.ts +0 -110
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -126
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -125
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -68
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
  128. package/dist/types/vue-ui-donut.d.ts +0 -123
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -94
  130. package/dist/types/vue-ui-flow.d.ts +0 -106
  131. package/dist/types/vue-ui-funnel.d.ts +0 -79
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -114
  133. package/dist/types/vue-ui-gauge.d.ts +0 -89
  134. package/dist/types/vue-ui-geo.d.ts +0 -94
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -101
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -114
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -112
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -92
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
  145. package/dist/types/vue-ui-onion.d.ts +0 -106
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -125
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -108
  151. package/dist/types/vue-ui-radar.d.ts +0 -116
  152. package/dist/types/vue-ui-rating.d.ts +0 -42
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -92
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -106
  155. package/dist/types/vue-ui-rings.d.ts +0 -98
  156. package/dist/types/vue-ui-scatter.d.ts +0 -97
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -28
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -49
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -59
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -118
  166. package/dist/types/vue-ui-stackline.d.ts +0 -114
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -96
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
  170. package/dist/types/vue-ui-table.d.ts +0 -38
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -70
  172. package/dist/types/vue-ui-timer.d.ts +0 -49
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -70
  174. package/dist/types/vue-ui-treemap.d.ts +0 -104
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -101
  177. package/dist/types/vue-ui-wheel.d.ts +0 -70
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -97
  179. package/dist/types/vue-ui-world.d.ts +0 -98
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
  181. package/dist/types/vue-ui-xy.d.ts +0 -146
  182. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
  183. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  184. package/dist/useConfig-DAyQk86L.js +0 -7479
  185. package/dist/useFitSvgText-CT3nmlaS.js +0 -63
  186. package/dist/useNestedProp-CNcoy38D.js +0 -10
  187. package/dist/useObjectBindings-BI7hP-BC.js +0 -189
  188. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  189. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  190. package/dist/usePrinter-C1Gqt_Sp.js +0 -49
  191. package/dist/useResponsive-BfnK0KxU.js +0 -19
  192. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  193. package/dist/useSvgExport-SVIsDot8.js +0 -755
  194. package/dist/useTableResponsive-B24Uwt2E.js +0 -24
  195. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  196. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  197. package/dist/useTimeLabels-BmBRv27Y.js +0 -272
  198. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-DUrZWttG.js +0 -13
  201. package/dist/vue-data-ui-qpQv-4uP.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
  204. package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
  205. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
  206. package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
  207. package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
  208. package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
  209. package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
  210. package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
  211. package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
  212. package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
  213. package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
  214. package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
  215. package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
  216. package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
  217. package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
  218. package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
  220. package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
  221. package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
  222. package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
  223. package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
  224. package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
  225. package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
  226. package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
  227. package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
  228. package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
  229. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
  230. package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
  231. package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
  232. package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
  233. package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
  235. package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
  237. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  238. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  239. package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
  240. package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
  241. package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
  242. package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
  243. package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
  244. package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
  245. package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
  246. package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
  247. package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
  248. package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
  249. package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
  250. package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
  251. package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
  253. package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
  255. package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
  256. package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
  257. package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
  258. package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
  260. package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
  261. package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
  262. package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
  263. package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
  264. package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
  265. package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
  266. package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
  267. package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
  268. package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
  270. package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
  271. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
  273. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  274. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  275. package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
  276. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  277. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  278. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  279. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  280. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  281. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
  282. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  283. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  284. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  285. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  286. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  287. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  288. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  289. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  291. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  292. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  293. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  294. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  296. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  297. package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
  298. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  299. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  300. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  301. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  302. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  303. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  304. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  305. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  307. package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  309. package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
  310. package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
  311. package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
  312. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  313. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  314. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  315. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  316. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  318. package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
  319. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  320. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  321. package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
  322. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
@@ -1,1622 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, Bt as n, Ct as r, Et as i, G as a, H as o, I as s, J as c, O as ee, Pt as te, Rt as ne, S as re, X as ie, ct as ae, i as l, k as oe, ot as se, q as ce, r as le, t as ue, x as de, y as fe } from "./lib-DUeYQsS0.js";
3
- import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as me } from "./useConfig-DAyQk86L.js";
5
- import { t as he } from "./usePrinter-C1Gqt_Sp.js";
6
- import { n as ge, t as _e } from "./BaseScanner-Dr2a1Msy.js";
7
- import { t as ve } from "./useSvgExport-SVIsDot8.js";
8
- import { t as ye } from "./useNestedProp-CNcoy38D.js";
9
- import { t as be } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
- import { t as Se } from "./img-1cKsci8e.js";
12
- import { n as Ce } from "./Title-NWp4qB4K.js";
13
- import { t as we } from "./Shape-BPCJfphn.js";
14
- import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { c as Ee } from "./canvas-lib-BOP_HS11.js";
16
- import { t as De } from "./useResponsive-BfnK0KxU.js";
17
- import { t as Oe } from "./BaseLegendToggle-C_Db-y7s.js";
18
- import { t as ke } from "./A11yDataTable-BCbtxMU6.js";
19
- import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as je } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Me } from "./Legend-Cz2uQ5gs.js";
22
- import { t as Ne } from "./vue_ui_ridgeline-VM8_mx4J.js";
23
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as w, toRefs as Ue, unref as T, watch as E, watchEffect as We, withCtx as D } from "vue";
24
- //#region src/components/vue-ui-ridgeline.vue
25
- var Ge = /* @__PURE__ */ e({ default: () => Tt }), Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], Xe = ["id"], Ze = ["stop-color"], Qe = ["stop-color"], $e = ["stop-color"], et = ["stop-color"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = ["stop-color"], ot = { key: 0 }, st = ["fill", "d"], ct = [
30
- "stroke",
31
- "stroke-width",
32
- "d"
33
- ], lt = ["fill", "d"], ut = [
34
- "stroke",
35
- "stroke-dasharray",
36
- "stroke-width",
37
- "d"
38
- ], dt = [
39
- "x1",
40
- "y1",
41
- "x2",
42
- "y2",
43
- "stroke",
44
- "stroke-width",
45
- "stroke-dasharray"
46
- ], ft = [
47
- "cx",
48
- "cy",
49
- "stroke",
50
- "stroke-width",
51
- "r",
52
- "fill"
53
- ], pt = [
54
- "x",
55
- "y",
56
- "font-size",
57
- "font-weight",
58
- "fill",
59
- "text-decoration",
60
- "onMouseenter",
61
- "onClick"
62
- ], mt = { key: 0 }, ht = [
63
- "font-size",
64
- "fill",
65
- "font-weight",
66
- "transform",
67
- "text-anchor"
68
- ], gt = [
69
- "font-size",
70
- "fill",
71
- "font-weight",
72
- "transform",
73
- "text-anchor",
74
- "innerHTML"
75
- ], _t = [
76
- "x",
77
- "y",
78
- "width",
79
- "height",
80
- "onMouseenter",
81
- "onMouseleave",
82
- "onClick"
83
- ], vt = [
84
- "x1",
85
- "x2",
86
- "y1",
87
- "y2",
88
- "stroke",
89
- "stroke-width",
90
- "stroke-dasharray"
91
- ], yt = [
92
- "cx",
93
- "cy",
94
- "stroke",
95
- "stroke-width",
96
- "r",
97
- "fill"
98
- ], bt = [
99
- "x",
100
- "y",
101
- "text-anchor",
102
- "font-size",
103
- "fill"
104
- ], xt = {
105
- key: 0,
106
- style: {
107
- position: "absolute",
108
- top: "100%",
109
- left: "0",
110
- width: "100%"
111
- },
112
- "data-dom-to-png-ignore": "",
113
- "aria-hidden": "true"
114
- }, St = {
115
- key: 5,
116
- class: "vue-data-ui-watermark"
117
- }, Ct = ["onClick"], wt = ["innerHTML"], Tt = /* @__PURE__ */ Te({
118
- __name: "vue-ui-ridgeline",
119
- props: {
120
- config: {
121
- type: Object,
122
- default() {
123
- return {};
124
- }
125
- },
126
- dataset: {
127
- type: Array,
128
- default() {
129
- return [];
130
- }
131
- }
132
- },
133
- emits: [
134
- "selectLegend",
135
- "selectDatapoint",
136
- "selectX",
137
- "copyAlt"
138
- ],
139
- setup(e, { expose: Te, emit: Ge }) {
140
- let Tt = g(() => import("./vue-ui-xy-lfMIx0wK.js").then((e) => e.n)), Et = g(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), Dt = g(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), Ot = g(() => import("./DataTable-B--IN22e.js")), kt = g(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), At = g(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), jt = g(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), Mt = g(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_ridgeline: Nt } = me(), { isThemeValid: Pt, warnInvalidTheme: Ft } = be(), O = e, It = d({
141
- get() {
142
- return Array.isArray(z.value) && z.value.length > 0;
143
- },
144
- set(e) {
145
- return e;
146
- }
147
- }), Lt = Ge, k = x(null), Rt = x(null), zt = x(null), A = He(null), j = He(null), Bt = x(null), Vt = x(null), Ht = x(0), Ut = x(0), Wt = x(0), M = x(o()), Gt = x(0), Kt = x(0), qt = x(512), N = x(null), P = x(null), Jt = x(null), Yt = x(0), Xt = x(null), Zt = x(null), Qt = x(null), $t = x(!1), en = x(!1), F = x(null), tn = x(!1);
148
- function nn() {
149
- let e = ye({
150
- userConfig: O.config,
151
- defaultConfig: Nt
152
- }), t = e.theme;
153
- if (!t) return e;
154
- if (!Pt.value(e)) return Ft(e), e;
155
- let n = ye({
156
- userConfig: Ne[t] || O.config,
157
- defaultConfig: e
158
- }), r = ye({
159
- userConfig: O.config,
160
- defaultConfig: n
161
- });
162
- return {
163
- ...r,
164
- customPalette: r.customPalette.length ? r.customPalette : ne[t] || i
165
- };
166
- }
167
- let I = x(nn()), L = d(() => I.value.userOptions.useCursorPointer), rn = d(() => n({
168
- defaultConfig: {
169
- userOptions: { show: !1 },
170
- table: { show: !1 },
171
- style: { chart: {
172
- backgroundColor: "#99999930",
173
- areas: {
174
- maxPoint: { show: !1 },
175
- opacity: .9,
176
- stroke: { useSerieColor: !0 }
177
- },
178
- legend: { backgroundColor: "transparent" },
179
- padding: {
180
- right: -24,
181
- left: 0
182
- },
183
- xAxis: { labels: { values: [] } },
184
- yAxis: { labels: { fontSize: 0 } },
185
- zeroLine: { show: !1 }
186
- } }
187
- },
188
- userConfig: I.value.skeletonConfig ?? {}
189
- })), { loading: R, FINAL_DATASET: z, manualLoading: an } = ge({
190
- ...Ue(O),
191
- FINAL_CONFIG: I,
192
- prepareConfig: nn,
193
- skeletonDataset: O.config?.skeletonDataset ?? [
194
- {
195
- name: "_",
196
- datapoints: [{
197
- name: "__",
198
- color: "#999999",
199
- values: [
200
- 28.639,
201
- 32.04,
202
- 41.134,
203
- 44.525,
204
- 21.151,
205
- 2.436,
206
- .218,
207
- .024,
208
- .002,
209
- 0,
210
- 0,
211
- 0
212
- ]
213
- }, {
214
- name: "_",
215
- color: "#CACACA",
216
- values: [
217
- 13.253,
218
- 15.621,
219
- 23.36,
220
- 33.698,
221
- 29.935,
222
- 10.874,
223
- 2.364,
224
- .561,
225
- .107,
226
- .02,
227
- .006,
228
- .004
229
- ]
230
- }]
231
- },
232
- {
233
- name: "_",
234
- datapoints: [{
235
- name: "_",
236
- color: "#999999",
237
- values: [
238
- 10.851,
239
- 13.195,
240
- 21.617,
241
- 36.556,
242
- 42.292,
243
- 21.006,
244
- 3.398,
245
- .223,
246
- .013,
247
- .001,
248
- 0,
249
- 0
250
- ]
251
- }, {
252
- name: "_",
253
- color: "#CACACA",
254
- values: [
255
- 3.171,
256
- 4.115,
257
- 8.108,
258
- 18.248,
259
- 31.641,
260
- 29.063,
261
- 12.031,
262
- 2.742,
263
- .504,
264
- .102,
265
- .032,
266
- .021
267
- ]
268
- }]
269
- },
270
- {
271
- name: "_",
272
- datapoints: [{
273
- name: "_",
274
- color: "#999999",
275
- values: [
276
- 1.731,
277
- 2.334,
278
- 5.125,
279
- 13.626,
280
- 29.911,
281
- 38.524,
282
- 24.168,
283
- 7.646,
284
- 1.575,
285
- .317,
286
- .097,
287
- .063
288
- ]
289
- }, {
290
- name: "_",
291
- color: "#CACACA",
292
- values: [
293
- .25,
294
- .367,
295
- 1.026,
296
- 3.944,
297
- 13.635,
298
- 28.891,
299
- 30.149,
300
- 15.419,
301
- 4.714,
302
- 1.246,
303
- .442,
304
- .299
305
- ]
306
- }]
307
- },
308
- {
309
- name: "_",
310
- datapoints: [{
311
- name: "_",
312
- color: "#999999",
313
- values: [
314
- .034,
315
- .054,
316
- .194,
317
- 1.065,
318
- 5.747,
319
- 20.735,
320
- 38.306,
321
- 32.899,
322
- 15.318,
323
- 5.566,
324
- 2.422,
325
- 1.76
326
- ]
327
- }, {
328
- name: "_",
329
- color: "#CACACA",
330
- values: [
331
- .001,
332
- .002,
333
- .009,
334
- .095,
335
- 1.124,
336
- 8.342,
337
- 27.115,
338
- 35.08,
339
- 21.449,
340
- 9.093,
341
- 4.243,
342
- 3.143
343
- ]
344
- }]
345
- },
346
- {
347
- name: "_",
348
- datapoints: [{
349
- name: "_",
350
- color: "#999999",
351
- values: [
352
- 0,
353
- .001,
354
- .004,
355
- .051,
356
- .567,
357
- 3.322,
358
- 14.215,
359
- 44.783,
360
- 40.351,
361
- 20.377,
362
- 9.866,
363
- 7.378
364
- ]
365
- }, {
366
- name: "_",
367
- color: "#CACACA",
368
- values: [
369
- 0,
370
- 0,
371
- 0,
372
- 0,
373
- .001,
374
- .11,
375
- 4.136,
376
- 27.498,
377
- 43.24,
378
- 29.807,
379
- 17.345,
380
- 13.678
381
- ]
382
- }]
383
- },
384
- {
385
- name: "_",
386
- datapoints: [{
387
- name: "_",
388
- color: "#999999",
389
- values: [
390
- 0,
391
- 0,
392
- 0,
393
- 0,
394
- .025,
395
- .598,
396
- 3.886,
397
- 10.645,
398
- 54.479,
399
- 45.953,
400
- 30.814,
401
- 24.55
402
- ]
403
- }, {
404
- name: "_",
405
- color: "#CACACA",
406
- values: [
407
- 0,
408
- 0,
409
- 0,
410
- 0,
411
- 0,
412
- 0,
413
- .007,
414
- 1.655,
415
- 26.63,
416
- 52.017,
417
- 45.192,
418
- 39.651
419
- ]
420
- }]
421
- }
422
- ],
423
- skeletonConfig: n({
424
- defaultConfig: I.value,
425
- userConfig: rn.value
426
- })
427
- }), B = x(Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight)), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = Ae({ config: I.value }), { svgRef: V } = je({ config: I.value.style.chart.title }), ln = d(() => !!I.value.debug);
428
- function un() {
429
- let e = z.value || [];
430
- if (!Array.isArray(e) || e.length === 0) {
431
- ie({
432
- componentName: "VueUiRidgeline",
433
- type: "dataset",
434
- debug: ln.value
435
- }), an.value = !0;
436
- return;
437
- }
438
- if (e.forEach((e, t) => {
439
- se({
440
- datasetObject: e,
441
- requiredAttributes: ["name", "datapoints"]
442
- }).forEach((e) => {
443
- It.value = !1, ie({
444
- componentName: "VueUiRidgeline",
445
- type: "datasetSerieAttribute",
446
- property: e,
447
- index: t,
448
- debug: ln.value
449
- });
450
- }), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
451
- se({
452
- datasetObject: e,
453
- requiredAttributes: ["name", "values"]
454
- }).forEach((e) => {
455
- It.value = !1, ie({
456
- componentName: "VueUiRidgeline",
457
- type: "datasetSerieAttribute",
458
- property: `datapoint.${e}`,
459
- index: `${t}-${n}`,
460
- debug: ln.value
461
- });
462
- });
463
- });
464
- }), Kt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), r(O.dataset) || (an.value = I.value.loading), I.value.responsive) {
465
- let t = Ee(() => {
466
- let { width: t, height: n } = De({
467
- chart: k.value,
468
- title: I.value.style.chart.title.text ? Rt.value : null,
469
- legend: I.value.style.chart.legend.show ? zt.value : null,
470
- source: Bt.value,
471
- noTitle: Vt.value,
472
- padding: I.value.style.chart.padding
473
- });
474
- requestAnimationFrame(() => {
475
- qt.value = t, B.value = e.length ? n / e.length : 0, Yt.value = n - 12;
476
- });
477
- });
478
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(t), j.value = k.value?.parentNode || null, j.value && A.value.observe(j.value);
479
- }
480
- }
481
- Be(() => {
482
- A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
483
- });
484
- let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = he({
485
- elementId: `vue-ui-ridgeline_${M.value}`,
486
- fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
487
- options: I.value.userOptions.print
488
- }), hn = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), gn = d(() => de(I.value.customPalette)), H = x({ showTable: I.value.table.show });
489
- E(() => z.value, async (e) => {
490
- Array.isArray(e) && e.length && (on.value = !I.value.userOptions.showOnChartHover, await Re(), un(), Ht.value += 1, Wt.value += 1, H.value.showTable = I.value.table.show);
491
- }, {
492
- deep: !0,
493
- immediate: !0
494
- }), E(() => O.dataset, (e) => {
495
- Array.isArray(e) && e.length > 0 && (an.value = !1);
496
- }, { deep: !0 }), E(() => R.value, async (e) => {
497
- e || (await Re(), un());
498
- }, { immediate: !0 }), E(() => O.config, () => {
499
- I.value = nn(z.value || null), on.value = !I.value.userOptions.showOnChartHover, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), H.value.showTable = I.value.table.show, Ht.value += 1, Wt.value += 1;
500
- }, { deep: !0 });
501
- let _n = d(() => I.value.style.chart.areas.height / I.value.style.chart.areas.rowHeight);
502
- function vn() {
503
- Y.value.length ? Y.value = [] : X.value.forEach((e) => {
504
- Y.value.push(e.id);
505
- }), Lt("selectLegend", J.value);
506
- }
507
- function yn(e) {
508
- Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), Lt("selectLegend", J.value);
509
- }
510
- function bn(e) {
511
- return X.value.length ? X.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null);
512
- }
513
- function xn(e) {
514
- let t = bn(e);
515
- t !== null && Y.value.includes(t.id) && yn(t.id);
516
- }
517
- function Sn(e) {
518
- let t = bn(e);
519
- t !== null && (Y.value.includes(t.id) || yn(t.id));
520
- }
521
- let U = d(() => It.value ? (z.value || []).map((e) => ({
522
- ...e,
523
- labelLen: In(e.name, I.value.style.chart.yAxis.labels.fontSize),
524
- uid: o(),
525
- datapoints: e.datapoints.map((e, t) => {
526
- let n = e.color ? fe(e.color) : gn.value[t] || i[t] || i[t % i.length], r = te(e.name);
527
- return {
528
- ...e,
529
- color: n,
530
- id: r
531
- };
532
- })
533
- })) : []), Cn = d(() => I.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * _n.value + I.value.style.chart.padding.bottom), W = d(() => {
534
- let e = I.value.style.chart.padding;
535
- return {
536
- width: qt.value,
537
- height: Cn.value,
538
- padding: e
539
- };
540
- }), wn = d(() => W.value.width), Tn = d(() => W.value.height), En = x(0), Dn = Ee((e) => {
541
- En.value = e;
542
- }, 100);
543
- We((e) => {
544
- let t = Xt.value;
545
- if (!t) return;
546
- let n = new ResizeObserver((e) => {
547
- Dn(e[0].contentRect.height);
548
- });
549
- n.observe(t), e(() => n.disconnect());
550
- }), Be(() => {
551
- En.value = 0;
552
- });
553
- let G = d(() => ({
554
- fullHeight: W.value.height + En.value,
555
- top: W.value.padding.top,
556
- left: W.value.padding.left,
557
- right: W.value.width - W.value.padding.right,
558
- bottom: W.value.height - I.value.style.chart.padding.bottom,
559
- width: W.value.width - (W.value.padding.left + W.value.padding.right)
560
- })), On = d(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = x([]), kn = 0;
561
- We(() => {
562
- let e = ++kn;
563
- (async () => {
564
- let t = await pe({
565
- values: I.value.style.chart.xAxis.labels.values,
566
- maxDatapoints: On.value,
567
- formatter: I.value.style.chart.xAxis.labels.datetimeFormatter,
568
- start: 0,
569
- end: I.value.style.chart.xAxis.labels.values.length
570
- });
571
- e === kn && (K.value = t);
572
- })();
573
- });
574
- let q = d(() => {
575
- let e = Math.max(...U.value.map((e) => e.labelLen)), t = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, n = (G.value.width - t) / On.value, r = [];
576
- for (let e = 0; e < On.value; e += 1) r.push({
577
- selectorX: t + n * e,
578
- x: t + n * e - n / 2,
579
- y: G.value.top,
580
- label: I.value.style.chart.xAxis.labels.values[e] ? K.value[e]?.text ?? "" : "",
581
- index: e,
582
- width: n,
583
- height: Cn.value
584
- });
585
- return r;
586
- });
587
- function An(e) {
588
- return U.value.map((t) => t.datapoints.map((t) => ({
589
- dp: t,
590
- selected: t.values[e.index]
591
- })));
592
- }
593
- function jn(e) {
594
- N.value = e;
595
- let t = An(e);
596
- I.value.events.datapointEnter && I.value.events.datapointEnter({
597
- datapoint: t,
598
- seriesIndex: e.index
599
- });
600
- }
601
- function Mn(e) {
602
- N.value = null;
603
- let t = An(e);
604
- I.value.events.datapointLeave && I.value.events.datapointLeave({
605
- datapoint: t,
606
- seriesIndex: e.index
607
- });
608
- }
609
- function Nn(e) {
610
- let t = An(e);
611
- I.value.events.datapointClick && I.value.events.datapointClick({
612
- datapoint: t,
613
- seriesIndex: e.index
614
- }), Lt("selectX", t);
615
- }
616
- function Pn(e, t) {
617
- return e.length * t / 2 + t;
618
- }
619
- function Fn(e, t, n) {
620
- return e + Pn(t, n) > G.value.right;
621
- }
622
- function In(e, t, n = "sans-serif") {
623
- let r = document.createElement("canvas").getContext("2d");
624
- return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
625
- }
626
- let J = d(() => {
627
- B.value;
628
- let e = Math.max(...U.value.map((e) => e.labelLen)), t = Math.max(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...U.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, i = (G.value.width - r) / On.value, a = Math.abs(Math.min(n, 0)), c = t + a;
629
- function te(e) {
630
- return isNaN(e / c) ? 0 : e / c;
631
- }
632
- return U.value.map((e, t) => {
633
- let n = G.value.top + B.value * t, c = G.value.top + n + B.value * _n.value * (1 - te(a));
634
- return {
635
- ...e,
636
- label: {
637
- x: r - I.value.style.chart.yAxis.labels.fontSize,
638
- y: c
639
- },
640
- datapoints: e.datapoints.map((e) => {
641
- let t = e.values.map((t, o) => {
642
- let s = isNaN(t) || [
643
- void 0,
644
- null,
645
- "NaN",
646
- NaN,
647
- Infinity,
648
- -Infinity
649
- ].includes(t) ? 0 : t || 0;
650
- return {
651
- x: r + i * o,
652
- y: G.value.top + n + B.value * _n.value * (1 - te(s + a)),
653
- value: t,
654
- isMaxPoint: t === Math.max(...e.values),
655
- zero: c
656
- };
657
- }), ne = `${ee(t, c, !1, !1)}`, re = `M ${r},${c} ${s(t)} ${t.at(-1).x},${c}`, ie = `M ${r},${c} ${t.at(-1).x},${c}`, l = `M ${oe(t)}`, se = `M ${s(t)}`, ce = ae(I.value.style.chart.areas.smooth ? l : se);
658
- return {
659
- ...e,
660
- uid: o(),
661
- plots: t,
662
- smoothPath: ne,
663
- straightPath: re,
664
- zeroPath: ie,
665
- pathLength: ce,
666
- smoothPathRidge: l,
667
- straightPathRidge: se
668
- };
669
- }).filter((e) => !Y.value.includes(e.id))
670
- };
671
- });
672
- }), Y = x([]);
673
- function Ln(e) {
674
- let t = /* @__PURE__ */ new Map();
675
- return e.forEach((e) => {
676
- e.datapoints.forEach((e, n) => {
677
- let r = te(e.name);
678
- t.has(r) || t.set(r, {
679
- id: r,
680
- name: e.name,
681
- color: e.color,
682
- shape: "circle",
683
- segregate: () => yn(r),
684
- isSegregated: Y.value.includes(r),
685
- opacity: Y.value.includes(r) ? .5 : 1
686
- });
687
- });
688
- }), Array.from(t.values());
689
- }
690
- let X = d(() => Ln(U.value)), Rn = d(() => ({
691
- cy: "donut-div-legend",
692
- backgroundColor: I.value.style.chart.legend.backgroundColor,
693
- color: I.value.style.chart.legend.color,
694
- fontSize: I.value.style.chart.legend.fontSize,
695
- paddingBottom: 12,
696
- fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
697
- })), Z = x(!1);
698
- function zn(e) {
699
- Z.value = e, Gt.value += 1;
700
- }
701
- let Bn = x({}), Vn = x([]);
702
- function Hn(e) {
703
- Lt("selectDatapoint", e), I.value.style.chart.dialog.show && (Vn.value = e.datapoints.map((e) => ({
704
- name: e.name,
705
- color: e.color,
706
- type: "line",
707
- useArea: !0,
708
- smooth: I.value.style.chart.areas.smooth,
709
- series: e.values
710
- })), P.value = e, Bn.value = ce({
711
- ...I.value.style.chart.dialog.xyChart,
712
- responsive: !0,
713
- chart: {
714
- ...I.value.style.chart.dialog.xyChart.chart,
715
- grid: {
716
- ...I.value.style.chart.dialog.xyChart.chart.grid,
717
- labels: {
718
- ...I.value.style.chart.dialog.xyChart.chart.grid.labels,
719
- xAxisLabels: {
720
- ...I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
721
- values: I.value.style.chart.xAxis.labels.values,
722
- autoRotate: {
723
- enable: !0,
724
- angle: I.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
725
- },
726
- datetimeFormatter: I.value.style.chart.xAxis.labels.datetimeFormatter
727
- }
728
- }
729
- },
730
- tooltip: {
731
- ...I.value.style.chart.dialog.xyChart.chart.tooltip,
732
- showTimeLabel: I.value.style.chart.xAxis.labels.values.length > 0
733
- },
734
- userOptions: {
735
- ...I.value.style.chart.dialog.xyChart.chart.userOptions,
736
- buttons: {
737
- ...I.value.style.chart.dialog.xyChart.chart.userOptions.buttons,
738
- altCopy: I.value.userOptions.buttons.altCopy
739
- },
740
- callbacks: {
741
- ...I.value.style.chart.dialog.xyChart.chart.userOptions.callbacks,
742
- altCopy: () => {}
743
- },
744
- useCursorPointer: I.value.userOptions.useCursorPointer
745
- }
746
- }
747
- }), Jt.value && Jt.value.open());
748
- }
749
- let Q = x(null);
750
- function Un(e) {
751
- Q.value = e;
752
- }
753
- function Wn() {
754
- Q.value = null;
755
- }
756
- let Gn = x(!1);
757
- function Kn() {
758
- Gn.value = !Gn.value;
759
- }
760
- function qn() {
761
- H.value.showTable = !H.value.showTable;
762
- }
763
- let Jn = d(() => ({ body: J.value.flatMap((e) => e.datapoints.flatMap((t) => ({
764
- ...t,
765
- rowName: `${e.name}: ${t.name}`
766
- }))).map((e) => [{
767
- name: e.rowName,
768
- color: e.color
769
- }, ...e.values]) })), $ = d(() => {
770
- let e = [I.value.table.columnNames.series, ...K.value.map((e) => e.text)], t = {
771
- th: {
772
- backgroundColor: I.value.table.th.backgroundColor,
773
- color: I.value.table.th.color,
774
- outline: I.value.table.th.outline
775
- },
776
- td: {
777
- backgroundColor: I.value.table.td.backgroundColor,
778
- color: I.value.table.td.color,
779
- outline: I.value.table.td.outline
780
- },
781
- breakpoint: I.value.table.responsiveBreakpoint
782
- };
783
- return {
784
- colNames: [I.value.table.columnNames.series, ...K.value.map((e) => e.text)],
785
- head: e,
786
- body: Jn.value.body,
787
- config: t
788
- };
789
- });
790
- function Yn(e = null) {
791
- Re(() => {
792
- let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Jn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = re([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
793
- e ? e(n) : c({
794
- csvContent: n,
795
- title: I.value.style.chart.title.text || "vue-ui-ridgeline"
796
- });
797
- });
798
- }
799
- function Xn() {
800
- return J.value;
801
- }
802
- async function Zn({ scale: e = 2 } = {}) {
803
- if (!k.value) return;
804
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
805
- domElement: k.value,
806
- base64: !0,
807
- img: !0,
808
- scale: e
809
- });
810
- return {
811
- imageUri: i,
812
- base64: a,
813
- title: I.value.style.chart.title.text,
814
- width: t,
815
- height: n,
816
- aspectRatio: r
817
- };
818
- }
819
- xe({
820
- timeLabelsEls: Xt,
821
- timeLabels: K,
822
- slicer: d(() => ({
823
- min: 0,
824
- max: On.value
825
- })),
826
- configRef: I,
827
- rotationPath: [
828
- "style",
829
- "chart",
830
- "xAxis",
831
- "labels",
832
- "rotation"
833
- ],
834
- autoRotatePath: [
835
- "style",
836
- "chart",
837
- "xAxis",
838
- "labels",
839
- "autoRotate",
840
- "enable"
841
- ],
842
- isAutoSize: !1,
843
- width: wn,
844
- height: Tn,
845
- targetClass: ".vue-ui-ridgeline-x-axis-label",
846
- angle: I.value.style.chart.xAxis.labels.autoRotate.angle
847
- });
848
- let Qn = d(() => {
849
- let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
850
- return {
851
- component: e ? Mt : Dt,
852
- title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
853
- props: e ? {
854
- backgroundColor: I.value.table.th.backgroundColor,
855
- color: I.value.table.th.color,
856
- headerColor: I.value.table.th.color,
857
- headerBg: I.value.table.th.backgroundColor,
858
- isFullscreen: Z.value,
859
- fullscreenParent: k.value,
860
- forcedWidth: Math.min(800, window.innerWidth * .8),
861
- isCursorPointer: L.value
862
- } : {
863
- hideDetails: !0,
864
- config: {
865
- open: t,
866
- maxHeight: 1e4,
867
- body: {
868
- backgroundColor: I.value.style.chart.backgroundColor,
869
- color: I.value.style.chart.color
870
- },
871
- head: {
872
- backgroundColor: I.value.style.chart.backgroundColor,
873
- color: I.value.style.chart.color
874
- }
875
- }
876
- }
877
- };
878
- });
879
- E(() => H.value.showTable, (e) => {
880
- I.value.table.show || (e && I.value.table.useDialog && Zt.value ? Zt.value.open() : "close" in Zt.value && Zt.value.close());
881
- });
882
- function $n() {
883
- H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
884
- }
885
- let er = d(() => I.value.style.chart.backgroundColor), tr = d(() => ({
886
- ...I.value.style.chart.legend,
887
- position: "bottom"
888
- })), { exportSvg: nr, getSvg: rr } = ve({
889
- svg: V,
890
- title: d(() => I.value.style.chart.title),
891
- legend: tr,
892
- legendItems: X,
893
- backgroundColor: er
894
- });
895
- async function ir({ isCb: e }) {
896
- en.value = !0, await Re();
897
- try {
898
- if (e) {
899
- let { blob: e, url: t, text: n, dataUrl: r } = await rr();
900
- await Promise.resolve(I.value.userOptions.callbacks.svg({
901
- blob: e,
902
- url: t,
903
- text: n,
904
- dataUrl: r
905
- }));
906
- } else await Promise.resolve(nr());
907
- } finally {
908
- en.value = !1;
909
- }
910
- }
911
- function ar(e) {
912
- if (e?.stage === "start") {
913
- $t.value = !0;
914
- return;
915
- }
916
- if (e?.stage === "end") {
917
- $t.value = !1;
918
- return;
919
- }
920
- mn();
921
- }
922
- function or(e) {
923
- sr("xy-zoom", e.dataset, e.config);
924
- }
925
- async function sr(e = "main-chart", t = null, n = null) {
926
- if (Lt("copyAlt", {
927
- source: e,
928
- config: e === "main-chart" ? I.value : Bn.value,
929
- dataset: e === "main-chart" ? J.value : Vn.value
930
- }), !I.value.userOptions.callbacks.altCopy) {
931
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
932
- return;
933
- }
934
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
935
- source: e,
936
- config: e === "main-chart" ? I.value : Bn.value,
937
- dataset: e === "main-chart" ? J.value : Vn.value
938
- }));
939
- }
940
- function cr() {
941
- F.value = null, tn.value = !0;
942
- }
943
- function lr() {
944
- pr(), tn.value = !1;
945
- }
946
- function ur(e) {
947
- if (!V.value || Gn.value || document.activeElement !== V.value || !J.value.length) return;
948
- let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
949
- if (!t && !n && !r && !i && !a && !o) return;
950
- if (e.preventDefault(), e.stopPropagation(), o) {
951
- pr();
952
- return;
953
- }
954
- if (a) {
955
- if (F.value !== null) {
956
- let e = J.value[F.value];
957
- e && Hn(e);
958
- return;
959
- }
960
- N.value && Nn(N.value);
961
- return;
962
- }
963
- if (t || n) {
964
- let e = F.value;
965
- e = e === null ? n ? 0 : J.value.length - 1 : dr(e + (n ? 1 : -1)), F.value = e, Q.value = e;
966
- return;
967
- }
968
- if (!q.value.length) return;
969
- let s = N.value?.index ?? null;
970
- s = s === null ? i ? 0 : q.value.length - 1 : fr(s + (i ? 1 : -1));
971
- let c = q.value[s];
972
- c && jn(c);
973
- }
974
- function dr(e) {
975
- let t = J.value.length;
976
- return t ? (e % t + t) % t : null;
977
- }
978
- function fr(e) {
979
- let t = q.value.length;
980
- return t ? (e % t + t) % t : null;
981
- }
982
- function pr() {
983
- F.value = null, Q.value = null, N.value ? Mn(N.value) : N.value = null;
984
- }
985
- let mr = d(() => ({
986
- head: $.value.head,
987
- body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
988
- caption: I.value.a11y.translations.tableCaption,
989
- notice: I.value.a11y.translations.tableAvailable
990
- }));
991
- return Te({
992
- getData: Xn,
993
- getImage: Zn,
994
- generateImage: mn,
995
- generateSvg: ir,
996
- generatePdf: pn,
997
- generateCsv: Yn,
998
- hideSeries: Sn,
999
- showSeries: xn,
1000
- toggleAnnotator: Kn,
1001
- toggleTable: qn,
1002
- toggleFullscreen: zn,
1003
- copyAlt: sr
1004
- }), (e, n) => (b(), m("div", {
1005
- ref_key: "ridgelineChart",
1006
- ref: k,
1007
- class: ze(`vue-data-ui-component vue-ui-ridgeline ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1008
- id: `vue-ui-ridgeline_${M.value}`,
1009
- style: y({
1010
- fontFamily: I.value.style.fontFamily,
1011
- width: "100%",
1012
- textAlign: "center",
1013
- background: I.value.style.chart.backgroundColor,
1014
- height: I.value.responsive ? "100%" : void 0
1015
- }),
1016
- onMouseenter: n[3] ||= () => T(sn)(!0),
1017
- onMouseleave: n[4] ||= () => T(sn)(!1)
1018
- }, [
1019
- h("div", {
1020
- id: `chart-instructions-${M.value}`,
1021
- class: "sr-only"
1022
- }, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
1023
- mr.value.body.length ? (b(), f(ke, {
1024
- key: 0,
1025
- uid: M.value,
1026
- head: mr.value.head,
1027
- body: mr.value.body,
1028
- caption: mr.value.caption,
1029
- notice: mr.value.notice
1030
- }, null, 8, [
1031
- "uid",
1032
- "head",
1033
- "body",
1034
- "caption",
1035
- "notice"
1036
- ])) : p("", !0),
1037
- I.value.userOptions.buttons.annotator && T(V) ? (b(), f(T(kt), {
1038
- key: 1,
1039
- color: I.value.style.chart.color,
1040
- backgroundColor: I.value.style.chart.backgroundColor,
1041
- active: Gn.value,
1042
- svgRef: T(V),
1043
- isCursorPointer: L.value,
1044
- onClose: Kn
1045
- }, {
1046
- "annotator-action-close": D(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1047
- "annotator-action-color": D(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
1048
- "annotator-action-draw": D(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
1049
- "annotator-action-undo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
1050
- "annotator-action-redo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
1051
- "annotator-action-delete": D(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
1052
- _: 3
1053
- }, 8, [
1054
- "color",
1055
- "backgroundColor",
1056
- "active",
1057
- "svgRef",
1058
- "isCursorPointer"
1059
- ])) : p("", !0),
1060
- C(e.$slots, "userConfig", {}, void 0, !0),
1061
- hn.value ? (b(), m("div", {
1062
- key: 2,
1063
- ref_key: "noTitle",
1064
- ref: Vt,
1065
- class: "vue-data-ui-no-title-space",
1066
- style: "height:36px; width: 100%;background:transparent"
1067
- }, null, 512)) : p("", !0),
1068
- I.value.style.chart.title.text ? (b(), m("div", {
1069
- key: 3,
1070
- ref_key: "chartTitle",
1071
- ref: Rt,
1072
- style: "width:100%;background:transparent;padding-bottom:24px"
1073
- }, [(b(), f(Ce, {
1074
- key: `title_${Ht.value}`,
1075
- config: {
1076
- title: {
1077
- cy: "ridgeline-div-title",
1078
- ...I.value.style.chart.title
1079
- },
1080
- subtitle: {
1081
- cy: "ridgeline-div-subtitle",
1082
- ...I.value.style.chart.title.subtitle
1083
- }
1084
- }
1085
- }, null, 8, ["config"]))], 512)) : p("", !0),
1086
- I.value.userOptions.show && It.value && (T(cn) || T(on)) ? (b(), f(T(At), {
1087
- ref_key: "userOptionsRef",
1088
- ref: Qt,
1089
- key: `user_option_${Gt.value}`,
1090
- backgroundColor: I.value.style.chart.backgroundColor,
1091
- color: I.value.style.chart.color,
1092
- isPrinting: T(dn),
1093
- isImaging: T(fn),
1094
- uid: M.value,
1095
- hasTooltip: !1,
1096
- callbacks: I.value.userOptions.callbacks,
1097
- hasPdf: I.value.userOptions.buttons.pdf,
1098
- hasImg: I.value.userOptions.buttons.img,
1099
- hasSvg: I.value.userOptions.buttons.svg,
1100
- hasXls: I.value.userOptions.buttons.csv,
1101
- hasTable: I.value.userOptions.buttons.table,
1102
- hasLabel: !1,
1103
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
1104
- hasAltCopy: I.value.userOptions.buttons.altCopy,
1105
- isFullscreen: Z.value,
1106
- printScale: I.value.userOptions.print.scale,
1107
- chartElement: k.value,
1108
- position: I.value.userOptions.position,
1109
- isTooltip: !1,
1110
- titles: { ...I.value.userOptions.buttonTitles },
1111
- hasAnnotator: I.value.userOptions.buttons.annotator,
1112
- isAnnotation: Gn.value,
1113
- tableDialog: I.value.table.useDialog,
1114
- style: y({ visibility: T(cn) ? T(on) ? "visible" : "hidden" : "visible" }),
1115
- isCursorPointer: L.value,
1116
- onToggleFullscreen: zn,
1117
- onGeneratePdf: T(pn),
1118
- onGenerateCsv: Yn,
1119
- onGenerateImage: ar,
1120
- onGenerateSvg: ir,
1121
- onToggleTable: qn,
1122
- onToggleAnnotator: Kn,
1123
- onCopyAlt: sr
1124
- }, Pe({ _: 2 }, [
1125
- e.$slots.menuIcon ? {
1126
- name: "menuIcon",
1127
- fn: D(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
1128
- isOpen: t,
1129
- color: n
1130
- })), void 0, !0)]),
1131
- key: "0"
1132
- } : void 0,
1133
- e.$slots.optionTooltip ? {
1134
- name: "optionTooltip",
1135
- fn: D(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1136
- key: "1"
1137
- } : void 0,
1138
- e.$slots.optionPdf ? {
1139
- name: "optionPdf",
1140
- fn: D(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1141
- key: "2"
1142
- } : void 0,
1143
- e.$slots.optionCsv ? {
1144
- name: "optionCsv",
1145
- fn: D(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1146
- key: "3"
1147
- } : void 0,
1148
- e.$slots.optionImg ? {
1149
- name: "optionImg",
1150
- fn: D(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1151
- key: "4"
1152
- } : void 0,
1153
- e.$slots.optionSvg ? {
1154
- name: "optionSvg",
1155
- fn: D(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1156
- key: "5"
1157
- } : void 0,
1158
- e.$slots.optionTable ? {
1159
- name: "optionTable",
1160
- fn: D(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1161
- key: "6"
1162
- } : void 0,
1163
- e.$slots.optionFullscreen ? {
1164
- name: "optionFullscreen",
1165
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
1166
- toggleFullscreen: t,
1167
- isFullscreen: n
1168
- })), void 0, !0)]),
1169
- key: "7"
1170
- } : void 0,
1171
- e.$slots.optionAnnotator ? {
1172
- name: "optionAnnotator",
1173
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
1174
- toggleAnnotator: t,
1175
- isAnnotator: n
1176
- })), void 0, !0)]),
1177
- key: "8"
1178
- } : void 0,
1179
- e.$slots.optionAltCopy ? {
1180
- name: "optionAltCopy",
1181
- fn: D(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
1182
- key: "9"
1183
- } : void 0,
1184
- e.$slots["custom-menu-before"] ? {
1185
- name: "custom-menu-before",
1186
- fn: D(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1187
- key: "10"
1188
- } : void 0,
1189
- e.$slots["custom-menu-after"] ? {
1190
- name: "custom-menu-after",
1191
- fn: D(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1192
- key: "11"
1193
- } : void 0
1194
- ]), 1032, [
1195
- "backgroundColor",
1196
- "color",
1197
- "isPrinting",
1198
- "isImaging",
1199
- "uid",
1200
- "callbacks",
1201
- "hasPdf",
1202
- "hasImg",
1203
- "hasSvg",
1204
- "hasXls",
1205
- "hasTable",
1206
- "hasFullscreen",
1207
- "hasAltCopy",
1208
- "isFullscreen",
1209
- "printScale",
1210
- "chartElement",
1211
- "position",
1212
- "titles",
1213
- "hasAnnotator",
1214
- "isAnnotation",
1215
- "tableDialog",
1216
- "style",
1217
- "isCursorPointer",
1218
- "onGeneratePdf"
1219
- ])) : p("", !0),
1220
- h("div", Je, [(b(), m("svg", {
1221
- ref_key: "svgRef",
1222
- ref: V,
1223
- xmlns: T(ue),
1224
- "aria-describedby": `chart-instructions-${M.value}`,
1225
- class: ze({
1226
- "vue-data-ui-fullscreen--on": Z.value,
1227
- "vue-data-ui-fulscreen--off": !Z.value
1228
- }),
1229
- viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${G.value.fullHeight <= 0 ? 10 : G.value.fullHeight}`,
1230
- style: y(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Yt.value}px; width: 100%;` : ""}`),
1231
- tabindex: "0",
1232
- onFocus: cr,
1233
- onBlur: lr,
1234
- onKeydown: ur
1235
- }, [
1236
- Ie(T(jt)),
1237
- h("defs", null, [(b(!0), m(u, null, S(X.value, (e, t) => (b(), m("linearGradient", {
1238
- id: `gradient-${e.id}-${M.value}`,
1239
- x1: "50%",
1240
- y1: "0%",
1241
- x2: "50%",
1242
- y2: "100%"
1243
- }, [
1244
- h("stop", {
1245
- offset: "0%",
1246
- "stop-color": e.color,
1247
- "stop-opacity": "1"
1248
- }, null, 8, Ze),
1249
- h("stop", {
1250
- offset: "30%",
1251
- "stop-color": e.color,
1252
- "stop-opacity": "0.7"
1253
- }, null, 8, Qe),
1254
- h("stop", {
1255
- offset: "70%",
1256
- "stop-color": e.color,
1257
- "stop-opacity": "0.3"
1258
- }, null, 8, $e),
1259
- h("stop", {
1260
- offset: "100%",
1261
- "stop-color": e.color,
1262
- "stop-opacity": "0.1"
1263
- }, null, 8, et)
1264
- ], 8, Xe))), 256)), (b(!0), m(u, null, S(J.value, (e, t) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e, t) => (b(), m("linearGradient", {
1265
- key: `grad${e.id}`,
1266
- id: `gradient-single-${M.value}-${e.uid}`,
1267
- x1: "50%",
1268
- y1: "0%",
1269
- x2: "50%",
1270
- y2: "100%"
1271
- }, [
1272
- h("stop", {
1273
- offset: "0%",
1274
- "stop-color": e.color,
1275
- "stop-opacity": "1"
1276
- }, null, 8, nt),
1277
- h("stop", {
1278
- offset: "30%",
1279
- "stop-color": e.color,
1280
- "stop-opacity": "0.7"
1281
- }, null, 8, rt),
1282
- h("stop", {
1283
- offset: "70%",
1284
- "stop-color": e.color,
1285
- "stop-opacity": "0.3"
1286
- }, null, 8, it),
1287
- h("stop", {
1288
- offset: "100%",
1289
- "stop-color": e.color,
1290
- "stop-opacity": "0.1"
1291
- }, null, 8, at)
1292
- ], 8, tt))), 128))], 64))), 256))]),
1293
- (b(!0), m(u, null, S(J.value, (t, n) => (b(), m("g", { key: `ds-${n}` }, [(b(!0), m(u, null, S(t.datapoints, (t, r) => (b(), m("g", { key: t.id }, [
1294
- e.$slots.pattern ? (b(), m("g", ot, [h("defs", null, [C(e.$slots, "pattern", Le({ ref_for: !0 }, {
1295
- datapointIndex: n,
1296
- seriesIndex: r,
1297
- patternId: `pattern_${M.value}_${t.uid}`
1298
- }), void 0, !0)])])) : p("", !0),
1299
- h("path", {
1300
- fill: e.$slots.pattern ? `url(#pattern_${M.value}_${t.uid})` : I.value.style.chart.backgroundColor,
1301
- stroke: "none",
1302
- "stroke-linecap": "round",
1303
- d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1304
- style: y({ opacity: I.value.style.chart.areas.opacity })
1305
- }, null, 12, st),
1306
- h("path", {
1307
- fill: "none",
1308
- stroke: I.value.style.chart.areas.stroke.useSerieColor ? t.color : I.value.style.chart.areas.stroke.color,
1309
- "stroke-width": I.value.style.chart.areas.strokeWidth,
1310
- d: I.value.style.chart.areas.smooth ? t.smoothPathRidge : t.straightPathRidge,
1311
- "stroke-linecap": "round",
1312
- "stroke-linejoin": "round",
1313
- class: ze({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !T(R) }),
1314
- style: y({
1315
- strokeDasharray: t.pathLength,
1316
- strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1317
- })
1318
- }, null, 14, ct),
1319
- h("path", {
1320
- fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${M.value})` : `url(#gradient-single-${M.value}-${t.uid})` : t.color,
1321
- stroke: "none",
1322
- d: I.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
1323
- "stroke-linecap": "round",
1324
- "stroke-linejoin": "round",
1325
- class: ze({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !T(R) }),
1326
- style: y({
1327
- strokeDasharray: t.pathLength,
1328
- strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1329
- })
1330
- }, null, 14, lt),
1331
- I.value.style.chart.zeroLine.show ? (b(), m("path", {
1332
- key: 1,
1333
- stroke: I.value.style.chart.zeroLine.useSerieColor ? t.color : I.value.style.chart.zeroLine.stroke,
1334
- "stroke-dasharray": I.value.style.chart.zeroLine.strokeDasharray,
1335
- "stroke-width": I.value.style.chart.zeroLine.strokeWidth,
1336
- d: t.zeroPath,
1337
- "stroke-linecap": "round"
1338
- }, null, 8, ut)) : p("", !0),
1339
- I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (b(!0), m(u, { key: 2 }, S(t.plots, (e) => (b(), m(u, null, [e.isMaxPoint ? (b(), m("line", {
1340
- key: 0,
1341
- x1: e.x,
1342
- y1: e.y,
1343
- x2: e.x,
1344
- y2: e.zero,
1345
- stroke: I.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? T(le)(t.color) : I.value.style.chart.areas.maxPoint.stroke,
1346
- "stroke-width": I.value.style.chart.areas.maxPoint.strokeWidth,
1347
- "stroke-linecap": "round",
1348
- "stroke-dasharray": I.value.style.chart.areas.maxPoint.strokeDasharray
1349
- }, null, 8, dt)) : p("", !0)], 64))), 256)) : p("", !0),
1350
- t.plots.length === 1 ? (b(), m("circle", {
1351
- key: 3,
1352
- cx: t.plots[0].x,
1353
- cy: t.plots[0].y,
1354
- stroke: I.value.style.chart.selector.dot.stroke,
1355
- "stroke-width": I.value.style.chart.selector.dot.strokeWidth,
1356
- r: I.value.style.chart.selector.dot.radius,
1357
- fill: I.value.style.chart.selector.dot.useDatapointColor ? t.color : I.value.style.chart.selector.dot.fill,
1358
- style: { pointerEvents: "none" }
1359
- }, null, 8, ft)) : p("", !0)
1360
- ]))), 128)), h("text", {
1361
- x: t.label.x,
1362
- y: t.label.y,
1363
- "text-anchor": "end",
1364
- "font-size": I.value.style.chart.yAxis.labels.fontSize,
1365
- "font-weight": I.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1366
- fill: I.value.style.chart.yAxis.labels.color,
1367
- style: y({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
1368
- "text-decoration": I.value.style.chart.dialog.show && (Q.value === n || P.value && t.uid === P.value.uid || F.value === n) ? "underline" : "",
1369
- onMouseenter: (e) => Un(n),
1370
- onMouseleave: Wn,
1371
- onClick: (e) => Hn(t)
1372
- }, w(t.name), 45, pt)]))), 128)),
1373
- I.value.style.chart.xAxis.labels.values.length ? (b(), m("g", {
1374
- key: 0,
1375
- ref_key: "timeLabelsEls",
1376
- ref: Xt
1377
- }, [(b(!0), m(u, null, S(q.value, (n, r) => C(e.$slots, "time-label", Le({ ref_for: !0 }, {
1378
- show: n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && N.value && N.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0,
1379
- fontSize: I.value.style.chart.xAxis.labels.fontSize,
1380
- content: n.label,
1381
- textAnchor: I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1382
- fill: I.value.style.chart.xAxis.labels.color,
1383
- transform: `translate(${n.selectorX}, ${G.value.top + n.height + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1384
- x: n.selectorX,
1385
- y: G.value.bottom + I.value.style.chart.xAxis.labels.offsetY
1386
- }), () => [n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !I.value.style.chart.xAxis.labels.showOnlyAtModulo || n && I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === q.value.length - 1) || n && N.value && N.value.index === r || n && !I.value.style.chart.xAxis.labels.showOnlyFirstAndLast && I.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(q.value.length / I.value.style.chart.xAxis.labels.modulo) === 0 ? (b(), m("g", mt, [String(n.label).includes("\n") ? (b(), m("text", {
1387
- key: 1,
1388
- class: "vue-ui-ridgeline-x-axis-label",
1389
- "font-size": I.value.style.chart.xAxis.labels.fontSize,
1390
- fill: I.value.style.chart.xAxis.labels.color,
1391
- "font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1392
- transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1393
- "text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1394
- style: y({ opacity: N.value ? N.value.index === r ? 1 : .2 : 1 }),
1395
- innerHTML: T(t)({
1396
- content: String(n.label),
1397
- fontSize: I.value.style.chart.xAxis.labels.fontSize,
1398
- fill: I.value.style.chart.xAxis.labels.color,
1399
- x: 0,
1400
- y: 0
1401
- })
1402
- }, null, 12, gt)) : (b(), m("text", {
1403
- key: 0,
1404
- class: "vue-ui-ridgeline-x-axis-label",
1405
- "font-size": I.value.style.chart.xAxis.labels.fontSize,
1406
- fill: I.value.style.chart.xAxis.labels.color,
1407
- "font-weight": I.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1408
- transform: `translate(${n.selectorX}, ${G.value.bottom + I.value.style.chart.xAxis.labels.offsetY}), rotate(${I.value.style.chart.xAxis.labels.rotation})`,
1409
- "text-anchor": I.value.style.chart.xAxis.labels.rotation > 0 ? "start" : I.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1410
- style: y({ opacity: N.value ? N.value.index === r ? 1 : .2 : 1 })
1411
- }, w(n.label), 13, ht))])) : p("", !0)], !0)), 256))], 512)) : p("", !0),
1412
- h("g", null, [
1413
- (b(!0), m(u, null, S(q.value, (e, t) => (b(), m("rect", {
1414
- x: e.x,
1415
- y: e.y,
1416
- width: e.width < 0 ? .1 : e.width,
1417
- height: e.height < 0 ? .1 : e.height,
1418
- fill: "transparent",
1419
- onMouseenter: (t) => jn(e),
1420
- onMouseleave: (t) => Mn(e),
1421
- onClick: () => Nn(e)
1422
- }, null, 40, _t))), 256)),
1423
- I.value.style.chart.selector.show && N.value ? (b(), m("line", {
1424
- key: 0,
1425
- x1: N.value.selectorX,
1426
- x2: N.value.selectorX,
1427
- y1: N.value.y,
1428
- y2: N.value.y + N.value.height - B.value / 2,
1429
- stroke: I.value.style.chart.selector.stroke,
1430
- "stroke-width": I.value.style.chart.selector.strokeWidth,
1431
- "stroke-dasharray": I.value.style.chart.selector.strokeDasharray,
1432
- "stroke-linecap": "round",
1433
- style: { pointerEvents: "none" }
1434
- }, null, 8, vt)) : p("", !0),
1435
- N.value ? (b(!0), m(u, { key: 1 }, S(J.value, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.datapoints, (e) => (b(), m(u, null, [(b(!0), m(u, null, S(e.plots, (t, n) => (b(), m(u, null, [N.value && N.value.index === n ? (b(), m("circle", {
1436
- key: 0,
1437
- cx: t.x,
1438
- cy: t.y,
1439
- stroke: I.value.style.chart.selector.dot.stroke,
1440
- "stroke-width": I.value.style.chart.selector.dot.strokeWidth,
1441
- r: I.value.style.chart.selector.dot.radius,
1442
- fill: I.value.style.chart.selector.dot.useDatapointColor ? e.color : I.value.style.chart.selector.dot.fill,
1443
- style: { pointerEvents: "none" }
1444
- }, null, 8, yt)) : p("", !0), N.value && N.value.index === n ? (b(), m("text", {
1445
- key: 1,
1446
- x: Fn(t.x, T(l)(I.value.style.chart.selector.labels.formatter, t.value, T(a)({
1447
- p: I.value.style.chart.xAxis.labels.prefix,
1448
- v: t.value,
1449
- s: I.value.style.chart.xAxis.labels.suffix,
1450
- r: I.value.style.chart.selector.labels.rounding
1451
- })), I.value.style.chart.selector.labels.fontSize) ? t.x - I.value.style.chart.selector.labels.fontSize / 2 : t.x + I.value.style.chart.selector.labels.fontSize / 2,
1452
- y: t.y + I.value.style.chart.selector.labels.fontSize / 3,
1453
- "text-anchor": Fn(t.x, T(l)(I.value.style.chart.selector.labels.formatter, t.value, T(a)({
1454
- p: I.value.style.chart.xAxis.labels.prefix,
1455
- v: t.value,
1456
- s: I.value.style.chart.xAxis.labels.suffix,
1457
- r: I.value.style.chart.selector.labels.rounding
1458
- })), I.value.style.chart.selector.labels.fontSize) ? "end" : "start",
1459
- "font-size": I.value.style.chart.selector.labels.fontSize,
1460
- fill: I.value.style.chart.selector.labels.color,
1461
- style: { pointerEvents: "none" }
1462
- }, w(T(l)(I.value.style.chart.selector.labels.formatter, t.value, T(a)({
1463
- p: I.value.style.chart.xAxis.labels.prefix,
1464
- v: t.value,
1465
- s: I.value.style.chart.xAxis.labels.suffix,
1466
- r: I.value.style.chart.selector.labels.rounding
1467
- }))), 9, bt)) : p("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : p("", !0)
1468
- ]),
1469
- C(e.$slots, "svg", { svg: {
1470
- ...W.value,
1471
- drawingArea: G.value,
1472
- isPrintingImg: T(dn) || T(fn) || $t.value,
1473
- isPrintingSvg: en.value
1474
- } }, void 0, !0)
1475
- ], 46, Ye)), e.$slots.hint ? (b(), m("div", xt, [C(e.$slots, "hint", v(_({
1476
- hint: I.value.a11y.translations.keyboardNavigation,
1477
- isVisible: tn.value
1478
- })), void 0, !0)])) : p("", !0)]),
1479
- e.$slots.watermark ? (b(), m("div", St, [C(e.$slots, "watermark", v(_({ isPrinting: T(dn) || T(fn) || $t.value || en.value })), void 0, !0)])) : p("", !0),
1480
- h("div", {
1481
- ref_key: "chartLegend",
1482
- ref: zt
1483
- }, [C(e.$slots, "legend", { legend: X.value }, () => [I.value.style.chart.legend.show ? (b(), f(Me, {
1484
- key: `legend_${Wt.value}`,
1485
- legendSet: X.value,
1486
- config: Rn.value,
1487
- isCursorPointer: L.value,
1488
- onClickMarker: n[0] ||= ({ legend: e }) => yn(e.id)
1489
- }, Pe({
1490
- item: D(({ legend: e }) => [T(R) ? p("", !0) : (b(), m("div", {
1491
- key: 0,
1492
- style: y(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
1493
- onClick: (t) => e.segregate()
1494
- }, w(e.name), 13, Ct))]),
1495
- legendToggle: D(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !T(R) ? (b(), f(Oe, {
1496
- key: 0,
1497
- backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1498
- color: I.value.style.chart.legend.selectAllToggle.color,
1499
- fontSize: I.value.style.chart.legend.fontSize,
1500
- checked: Y.value.length > 0,
1501
- isCursorPointer: L.value,
1502
- onToggle: vn
1503
- }, null, 8, [
1504
- "backgroundColor",
1505
- "color",
1506
- "fontSize",
1507
- "checked",
1508
- "isCursorPointer"
1509
- ])) : p("", !0)]),
1510
- _: 2
1511
- }, [e.$slots.pattern ? {
1512
- name: "legend-pattern",
1513
- fn: D(({ legend: e, index: t }) => [Ie(we, {
1514
- shape: e.shape,
1515
- radius: 30,
1516
- stroke: "none",
1517
- plot: {
1518
- x: 30,
1519
- y: 30
1520
- },
1521
- fill: `url(#pattern_${M.value}_${t})`
1522
- }, null, 8, ["shape", "fill"])]),
1523
- key: "0"
1524
- } : void 0]), 1032, [
1525
- "legendSet",
1526
- "config",
1527
- "isCursorPointer"
1528
- ])) : p("", !0)], !0)], 512),
1529
- e.$slots.source ? (b(), m("div", {
1530
- key: 6,
1531
- ref_key: "source",
1532
- ref: Bt,
1533
- dir: "auto"
1534
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1535
- It.value && I.value.userOptions.buttons.table ? (b(), f(Ve(Qn.value.component), Le({ key: 7 }, Qn.value.props, {
1536
- ref_key: "tableUnit",
1537
- ref: Zt,
1538
- onClose: $n
1539
- }), Pe({
1540
- content: D(() => [(b(), f(T(Ot), {
1541
- key: `table_${Ut.value}`,
1542
- colNames: $.value.colNames,
1543
- head: $.value.head,
1544
- body: $.value.body,
1545
- config: $.value.config,
1546
- title: I.value.table.useDialog ? "" : Qn.value.title,
1547
- withCloseButton: !I.value.table.useDialog,
1548
- isCursorPointer: L.value,
1549
- onClose: $n
1550
- }, {
1551
- th: D(({ th: e }) => [h("div", { innerHTML: e }, null, 8, wt)]),
1552
- td: D(({ td: e }) => [Fe(w(e.name ? e.name : T(l)(I.value.style.chart.selector.labels.formatter, e, T(a)({
1553
- p: I.value.style.chart.xAxis.labels.prefix,
1554
- v: e,
1555
- s: I.value.style.chart.xAxis.labels.suffix,
1556
- r: I.value.table.td.roundingValue
1557
- }))), 1)]),
1558
- _: 1
1559
- }, 8, [
1560
- "colNames",
1561
- "head",
1562
- "body",
1563
- "config",
1564
- "title",
1565
- "withCloseButton",
1566
- "isCursorPointer"
1567
- ]))]),
1568
- _: 2
1569
- }, [I.value.table.useDialog ? {
1570
- name: "title",
1571
- fn: D(() => [Fe(w(Qn.value.title), 1)]),
1572
- key: "0"
1573
- } : void 0, I.value.table.useDialog ? {
1574
- name: "actions",
1575
- fn: D(() => [h("button", {
1576
- tabindex: "0",
1577
- class: "vue-ui-user-options-button",
1578
- onClick: n[1] ||= (e) => Yn(I.value.userOptions.callbacks.csv),
1579
- style: y({ cursor: L.value ? "pointer" : "default" })
1580
- }, [Ie(T(Et), {
1581
- name: "fileCsv",
1582
- stroke: Qn.value.props.color
1583
- }, null, 8, ["stroke"])], 4)]),
1584
- key: "1"
1585
- } : void 0]), 1040)) : p("", !0),
1586
- I.value.style.chart.dialog.show ? (b(), f(T(Mt), {
1587
- key: 8,
1588
- ref_key: "dialog",
1589
- ref: Jt,
1590
- onClose: n[2] ||= (e) => P.value = null,
1591
- backgroundColor: I.value.style.chart.dialog.backgroundColor,
1592
- color: I.value.style.chart.dialog.color,
1593
- headerBg: I.value.style.chart.dialog.header.backgroundColor,
1594
- headerColor: I.value.style.chart.dialog.header.color,
1595
- isFullscreen: Z.value,
1596
- fullscreenParent: k.value,
1597
- isCursorPointer: L.value,
1598
- withPadding: ""
1599
- }, {
1600
- title: D(() => [Fe(w(P.value.name), 1)]),
1601
- content: D(() => [P.value ? (b(), f(T(Tt), {
1602
- key: 0,
1603
- config: Bn.value,
1604
- dataset: Vn.value,
1605
- onCopyAlt: or
1606
- }, null, 8, ["config", "dataset"])) : p("", !0)]),
1607
- _: 1
1608
- }, 8, [
1609
- "backgroundColor",
1610
- "color",
1611
- "headerBg",
1612
- "headerColor",
1613
- "isFullscreen",
1614
- "fullscreenParent",
1615
- "isCursorPointer"
1616
- ])) : p("", !0),
1617
- C(e.$slots, "skeleton", {}, () => [T(R) ? (b(), f(_e, { key: 0 })) : p("", !0)], !0)
1618
- ], 46, Ke));
1619
- }
1620
- }, [["__scopeId", "data-v-ca7f8c0d"]]);
1621
- //#endregion
1622
- export { Ge as n, Tt as t };