vue-data-ui 3.19.9 → 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-q2-8fSlJ.js +0 -45
  3. package/dist/Arrow-Cj6W6Xbi.js +0 -116
  4. package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
  5. package/dist/BaseIcon-DM1x8hQF.js +0 -502
  6. package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
  7. package/dist/BaseScanner-C7dmAref.js +0 -27
  8. package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
  9. package/dist/ColorPicker-DTQeqKUV.js +0 -255
  10. package/dist/DataTable-DmE8Oo4i.js +0 -150
  11. package/dist/Legend-Gg5Q4Clb.js +0 -114
  12. package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
  13. package/dist/PackageVersion-Dl9W5zJD.js +0 -11
  14. package/dist/PenAndPaper-DNgm6y3l.js +0 -461
  15. package/dist/RecursiveCircles-DPpLel6f.js +0 -117
  16. package/dist/RecursiveLabels-DBMJf_to.js +0 -56
  17. package/dist/RecursiveLinks-D06dBL4a.js +0 -78
  18. package/dist/Shape-DEGOZ6GG.js +0 -141
  19. package/dist/Slicer-CPWGgGSp.js +0 -1144
  20. package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
  21. package/dist/SparkTooltip-c2DL7gqD.js +0 -93
  22. package/dist/Title-__gWq2g6.js +0 -87
  23. package/dist/Tooltip-CuWEYGr3.js +0 -312
  24. package/dist/UserOptions-D7zR0tnR.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
  26. package/dist/canvas-lib-DTaADQOK.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-9WSt6hXe.js +0 -237
  99. package/dist/exposedLib-CwWU4zv-.js +0 -19
  100. package/dist/geoProjections-CQIkC70z.js +0 -146
  101. package/dist/img-BjOr008R.js +0 -74
  102. package/dist/labelUtils-Cr97N8E1.js +0 -19
  103. package/dist/lib-BkiwukKO.js +0 -1879
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-B7BWu5bV.js +0 -258
  106. package/dist/pdf-DSXSFUnK.js +0 -90
  107. package/dist/rolldown-runtime-CAFD8bLK.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 -15826
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -78
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
  115. package/dist/types/vue-ui-annotator.d.ts +0 -12
  116. package/dist/types/vue-ui-bullet.d.ts +0 -72
  117. package/dist/types/vue-ui-bump.d.ts +0 -77
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -93
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -46
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -79
  121. package/dist/types/vue-ui-chord.d.ts +0 -91
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -111
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -106
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -53
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
  128. package/dist/types/vue-ui-donut.d.ts +0 -106
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -79
  130. package/dist/types/vue-ui-flow.d.ts +0 -93
  131. package/dist/types/vue-ui-funnel.d.ts +0 -66
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -97
  133. package/dist/types/vue-ui-gauge.d.ts +0 -76
  134. package/dist/types/vue-ui-geo.d.ts +0 -81
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -86
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -97
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
  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 -97
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -79
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
  145. package/dist/types/vue-ui-onion.d.ts +0 -91
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
  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 -102
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -89
  151. package/dist/types/vue-ui-radar.d.ts +0 -101
  152. package/dist/types/vue-ui-rating.d.ts +0 -31
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -79
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -85
  155. package/dist/types/vue-ui-rings.d.ts +0 -83
  156. package/dist/types/vue-ui-scatter.d.ts +0 -82
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -12
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -36
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -44
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -97
  166. package/dist/types/vue-ui-stackline.d.ts +0 -93
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -81
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
  170. package/dist/types/vue-ui-table.d.ts +0 -25
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -57
  172. package/dist/types/vue-ui-timer.d.ts +0 -36
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -57
  174. package/dist/types/vue-ui-treemap.d.ts +0 -87
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -86
  177. package/dist/types/vue-ui-wheel.d.ts +0 -57
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -84
  179. package/dist/types/vue-ui-world.d.ts +0 -81
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
  181. package/dist/types/vue-ui-xy.d.ts +0 -125
  182. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
  183. package/dist/useChartAccessibility-Do37qcw2.js +0 -12
  184. package/dist/useConfig-ByaaSKhz.js +0 -7471
  185. package/dist/useFitSvgText-C-MEdAfe.js +0 -63
  186. package/dist/useNestedProp-Ck4hsrpu.js +0 -10
  187. package/dist/useObjectBindings-BR1sGimd.js +0 -189
  188. package/dist/usePanZoom-B-4M_gmY.js +0 -157
  189. package/dist/usePrefersMotion-BywLbIko.js +0 -15
  190. package/dist/usePrinter-X0yWOynH.js +0 -49
  191. package/dist/useResponsive-CrAInupd.js +0 -19
  192. package/dist/useStableElementSize-0I1IpHPl.js +0 -77
  193. package/dist/useSvgExport-Dtu973wa.js +0 -755
  194. package/dist/useTableResponsive-DrM1xqII.js +0 -24
  195. package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
  196. package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
  197. package/dist/useTimeLabels-C0x7zUXP.js +0 -272
  198. package/dist/useUserOptionState-CjPJPTg2.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-CbX_bC9A.js +0 -13
  201. package/dist/vue-data-ui-nsosW-n5.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
  204. package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
  205. package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
  206. package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
  207. package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
  208. package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
  209. package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
  210. package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
  211. package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
  212. package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
  213. package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
  214. package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
  215. package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
  216. package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
  217. package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
  218. package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
  220. package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
  221. package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
  222. package/dist/vue-ui-funnel-BfY509t-.js +0 -777
  223. package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
  224. package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
  225. package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
  226. package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
  227. package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
  228. package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
  229. package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
  230. package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
  231. package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
  232. package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
  233. package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
  235. package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
  237. package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
  238. package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
  239. package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
  240. package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
  241. package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
  242. package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
  243. package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
  244. package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
  245. package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
  246. package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
  247. package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
  248. package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
  249. package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
  250. package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
  251. package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
  253. package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
  255. package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
  256. package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
  257. package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
  258. package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
  260. package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
  261. package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
  262. package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
  263. package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
  264. package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
  265. package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
  266. package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
  267. package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
  268. package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
  269. package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
  270. package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
  271. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
  273. package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
  274. package/dist/vue_ui_bump-frnXaXul.js +0 -201
  275. package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
  276. package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
  277. package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
  278. package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
  279. package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
  280. package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
  281. package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
  282. package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
  283. package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
  284. package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
  285. package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
  286. package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
  287. package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
  288. package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
  289. package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
  291. package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
  292. package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
  293. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
  294. package/dist/vue_ui_onion-DTV9cup-.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
  296. package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
  297. package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
  298. package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
  299. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
  300. package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
  301. package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
  302. package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
  303. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
  304. package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
  305. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
  307. package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
  309. package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
  310. package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
  311. package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
  312. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
  313. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
  314. package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
  315. package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
  316. package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
  318. package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
  319. package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
  320. package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
  321. package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
  322. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
@@ -1,1622 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { B as t, G as n, H as r, I as i, J as a, Lt as ee, Nt as o, O as te, S as s, St as ne, Tt as re, X as ie, ct as ae, i as c, k as oe, ot as se, q as ce, r as le, t as ue, x as de, y as fe, zt as pe } from "./lib-BkiwukKO.js";
3
- import { t as me } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as he } from "./useConfig-ByaaSKhz.js";
5
- import { t as ge } from "./usePrinter-X0yWOynH.js";
6
- import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
7
- import { t as ye } from "./useSvgExport-Dtu973wa.js";
8
- import { t as be } from "./useNestedProp-Ck4hsrpu.js";
9
- import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
10
- import { t as Se } from "./useTimeLabelCollider-Dm55Emzg.js";
11
- import { t as Ce } from "./img-BjOr008R.js";
12
- import { n as we } from "./Title-__gWq2g6.js";
13
- import { t as Te } from "./Shape-DEGOZ6GG.js";
14
- import { t as Ee } from "./_plugin-vue_export-helper-Dq1MygBL.js";
15
- import { c as De } from "./canvas-lib-DTaADQOK.js";
16
- import { t as Oe } from "./useResponsive-CrAInupd.js";
17
- import { t as ke } from "./BaseLegendToggle-CJTwLGXL.js";
18
- import { t as Ae } from "./A11yDataTable-q2-8fSlJ.js";
19
- import { t as je } from "./useUserOptionState-CjPJPTg2.js";
20
- import { t as Me } from "./useChartAccessibility-Do37qcw2.js";
21
- import { t as Ne } from "./Legend-Gg5Q4Clb.js";
22
- import { t as Pe } from "./vue_ui_ridgeline-CAtYca4b.js";
23
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Ve, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as C, toRefs as We, unref as w, watch as Ge, watchEffect as Ke, withCtx as T } from "vue";
24
- //#region src/components/vue-ui-ridgeline.vue
25
- var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], nt = ["stop-color"], rt = ["id"], it = ["stop-color"], at = ["stop-color"], ot = ["stop-color"], st = ["stop-color"], ct = { key: 0 }, lt = ["fill", "d"], ut = [
30
- "stroke",
31
- "stroke-width",
32
- "d"
33
- ], dt = ["fill", "d"], ft = [
34
- "stroke",
35
- "stroke-dasharray",
36
- "stroke-width",
37
- "d"
38
- ], pt = [
39
- "x1",
40
- "y1",
41
- "x2",
42
- "y2",
43
- "stroke",
44
- "stroke-width",
45
- "stroke-dasharray"
46
- ], mt = [
47
- "cx",
48
- "cy",
49
- "stroke",
50
- "stroke-width",
51
- "r",
52
- "fill"
53
- ], ht = [
54
- "x",
55
- "y",
56
- "font-size",
57
- "font-weight",
58
- "fill",
59
- "text-decoration",
60
- "onMouseenter",
61
- "onClick"
62
- ], gt = { key: 0 }, _t = [
63
- "font-size",
64
- "fill",
65
- "font-weight",
66
- "transform",
67
- "text-anchor"
68
- ], vt = [
69
- "font-size",
70
- "fill",
71
- "font-weight",
72
- "transform",
73
- "text-anchor",
74
- "innerHTML"
75
- ], yt = [
76
- "x",
77
- "y",
78
- "width",
79
- "height",
80
- "onMouseenter",
81
- "onMouseleave",
82
- "onClick"
83
- ], bt = [
84
- "x1",
85
- "x2",
86
- "y1",
87
- "y2",
88
- "stroke",
89
- "stroke-width",
90
- "stroke-dasharray"
91
- ], xt = [
92
- "cx",
93
- "cy",
94
- "stroke",
95
- "stroke-width",
96
- "r",
97
- "fill"
98
- ], St = [
99
- "x",
100
- "y",
101
- "text-anchor",
102
- "font-size",
103
- "fill"
104
- ], Ct = {
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
- }, wt = {
115
- key: 5,
116
- class: "vue-data-ui-watermark"
117
- }, Tt = ["onClick"], Et = ["innerHTML"], Dt = /* @__PURE__ */ Ee({
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: Ee, emit: qe }) {
140
- let Dt = h(() => import("./vue-ui-xy-BQ1YONCq.js").then((e) => e.n)), Ot = h(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), kt = h(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), At = h(() => import("./DataTable-DmE8Oo4i.js")), jt = h(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Mt = h(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Nt = h(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Pt = h(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_ridgeline: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), E = e, D = u({
141
- get() {
142
- return Array.isArray(z.value) && z.value.length > 0;
143
- },
144
- set(e) {
145
- return e;
146
- }
147
- }), Rt = qe, O = b(null), zt = b(null), Bt = b(null), k = Ue(null), A = Ue(null), Vt = b(null), Ht = b(null), Ut = b(0), Wt = b(0), Gt = b(0), j = b(r()), Kt = b(0), qt = b(0), Jt = b(512), M = b(null), N = b(null), Yt = b(null), Xt = b(0), Zt = b(null), P = b(null), Qt = b(null), $t = b(!1), en = b(!1), F = b(null), tn = b(!1);
148
- function nn() {
149
- let e = be({
150
- userConfig: E.config,
151
- defaultConfig: Ft
152
- }), t = e.theme;
153
- if (!t) return e;
154
- if (!It.value(e)) return Lt(e), e;
155
- let n = be({
156
- userConfig: Pe[t] || E.config,
157
- defaultConfig: e
158
- }), r = be({
159
- userConfig: E.config,
160
- defaultConfig: n
161
- });
162
- return {
163
- ...r,
164
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || re
165
- };
166
- }
167
- let I = b(nn()), L = u(() => I.value.userOptions.useCursorPointer), rn = u(() => pe({
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 } = _e({
190
- ...We(E),
191
- FINAL_CONFIG: I,
192
- prepareConfig: nn,
193
- skeletonDataset: E.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: pe({
424
- defaultConfig: I.value,
425
- userConfig: rn.value
426
- })
427
- }), B = b(Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight)), { userOptionsVisible: on, setUserOptionsVisibility: sn, keepUserOptionState: cn } = je({ config: I.value }), { svgRef: V } = Me({ config: I.value.style.chart.title }), ln = u(() => !!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
- D.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
- D.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
- }), qt.value = e.length, B.value = Math.min(I.value.style.chart.areas.height, I.value.style.chart.areas.rowHeight), ne(E.dataset) || (an.value = I.value.loading), I.value.responsive) {
465
- let t = De(() => {
466
- let { width: t, height: n } = Oe({
467
- chart: O.value,
468
- title: I.value.style.chart.title.text ? zt.value : null,
469
- legend: I.value.style.chart.legend.show ? Bt.value : null,
470
- source: Vt.value,
471
- noTitle: Ht.value,
472
- padding: I.value.style.chart.padding
473
- });
474
- requestAnimationFrame(() => {
475
- Jt.value = t, B.value = e.length ? n / e.length : 0, Xt.value = n - 12;
476
- });
477
- });
478
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(t), A.value = O.value?.parentNode || null, A.value && k.value.observe(A.value);
479
- }
480
- }
481
- Ve(() => {
482
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
483
- });
484
- let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = ge({
485
- elementId: `vue-ui-ridgeline_${j.value}`,
486
- fileName: I.value.style.chart.title.text || "vue-ui-ridgeline",
487
- options: I.value.userOptions.print
488
- }), hn = u(() => I.value.userOptions.show && !I.value.style.chart.title.text), gn = u(() => de(I.value.customPalette)), H = b({ showTable: I.value.table.show });
489
- Ge(() => z.value, async (e) => {
490
- Array.isArray(e) && e.length && (on.value = !I.value.userOptions.showOnChartHover, await ze(), un(), Ut.value += 1, Gt.value += 1, H.value.showTable = I.value.table.show);
491
- }, {
492
- deep: !0,
493
- immediate: !0
494
- }), Ge(() => E.dataset, (e) => {
495
- Array.isArray(e) && e.length > 0 && (an.value = !1);
496
- }, { deep: !0 }), Ge(() => R.value, async (e) => {
497
- e || (await ze(), un());
498
- }, { immediate: !0 }), Ge(() => E.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, Ut.value += 1, Gt.value += 1;
500
- }, { deep: !0 });
501
- let _n = u(() => 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
- }), Rt("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), Rt("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 = u(() => D.value ? (z.value || []).map((e) => ({
522
- ...e,
523
- labelLen: In(e.name, I.value.style.chart.yAxis.labels.fontSize),
524
- uid: r(),
525
- datapoints: e.datapoints.map((e, t) => {
526
- let n = e.color ? fe(e.color) : gn.value[t] || re[t] || re[t % re.length], r = o(e.name);
527
- return {
528
- ...e,
529
- color: n,
530
- id: r
531
- };
532
- })
533
- })) : []), Cn = u(() => I.value.style.chart.padding.top + B.value * (z.value || []).length + B.value * _n.value + I.value.style.chart.padding.bottom), W = u(() => {
534
- let e = I.value.style.chart.padding;
535
- return {
536
- width: Jt.value,
537
- height: Cn.value,
538
- padding: e
539
- };
540
- }), wn = u(() => W.value.width), Tn = u(() => W.value.height), En = b(0), Dn = De((e) => {
541
- En.value = e;
542
- }, 100);
543
- Ke((e) => {
544
- let t = Zt.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
- }), Ve(() => {
551
- En.value = 0;
552
- });
553
- let G = u(() => ({
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 = u(() => Math.max(...U.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), K = b([]), kn = 0;
561
- Ke(() => {
562
- let e = ++kn;
563
- (async () => {
564
- let t = await me({
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 = u(() => {
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
- M.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
- M.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
- }), Rt("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 = u(() => {
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))), a = W.value.padding.left + e + 16 + I.value.style.chart.yAxis.labels.offsetX, ee = (G.value.width - a) / On.value, o = Math.abs(Math.min(n, 0)), s = t + o;
629
- function ne(e) {
630
- return isNaN(e / s) ? 0 : e / s;
631
- }
632
- return U.value.map((e, t) => {
633
- let n = G.value.top + B.value * t, s = G.value.top + n + B.value * _n.value * (1 - ne(o));
634
- return {
635
- ...e,
636
- label: {
637
- x: a - I.value.style.chart.yAxis.labels.fontSize,
638
- y: s
639
- },
640
- datapoints: e.datapoints.map((e) => {
641
- let t = e.values.map((t, r) => {
642
- let i = 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: a + ee * r,
652
- y: G.value.top + n + B.value * _n.value * (1 - ne(i + o)),
653
- value: t,
654
- isMaxPoint: t === Math.max(...e.values),
655
- zero: s
656
- };
657
- }), re = `${te(t, s, !1, !1)}`, ie = `M ${a},${s} ${i(t)} ${t.at(-1).x},${s}`, c = `M ${a},${s} ${t.at(-1).x},${s}`, se = `M ${oe(t)}`, ce = `M ${i(t)}`, le = ae(I.value.style.chart.areas.smooth ? se : ce);
658
- return {
659
- ...e,
660
- uid: r(),
661
- plots: t,
662
- smoothPath: re,
663
- straightPath: ie,
664
- zeroPath: c,
665
- pathLength: le,
666
- smoothPathRidge: se,
667
- straightPathRidge: ce
668
- };
669
- }).filter((e) => !Y.value.includes(e.id))
670
- };
671
- });
672
- }), Y = b([]);
673
- function Ln(e) {
674
- let t = /* @__PURE__ */ new Map();
675
- return e.forEach((e) => {
676
- e.datapoints.forEach((e, n) => {
677
- let r = o(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 = u(() => Ln(U.value)), Rn = u(() => ({
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 = b(!1);
698
- function zn(e) {
699
- Z.value = e, Kt.value += 1;
700
- }
701
- let Bn = b({}), Vn = b([]);
702
- function Hn(e) {
703
- Rt("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
- })), N.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
- }), Yt.value && Yt.value.open());
748
- }
749
- let Un = b(null);
750
- function Wn(e) {
751
- Un.value = e;
752
- }
753
- function Gn() {
754
- Un.value = null;
755
- }
756
- let Kn = b(!1);
757
- function qn() {
758
- Kn.value = !Kn.value;
759
- }
760
- function Jn() {
761
- H.value.showTable = !H.value.showTable;
762
- }
763
- let Yn = u(() => ({ 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]) })), Q = u(() => {
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: Yn.value.body,
787
- config: t
788
- };
789
- });
790
- function Xn(e = null) {
791
- ze(() => {
792
- let t = [[I.value.table.columnNames.series, ...K.map((e) => [e.text])], ...Yn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], n = s([[I.value.style.chart.title.text], [I.value.style.chart.title.subtitle.text]].concat(t));
793
- e ? e(n) : a({
794
- csvContent: n,
795
- title: I.value.style.chart.title.text || "vue-ui-ridgeline"
796
- });
797
- });
798
- }
799
- function Zn() {
800
- return J.value;
801
- }
802
- async function Qn({ scale: e = 2 } = {}) {
803
- if (!O.value) return;
804
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
805
- domElement: O.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
- Se({
820
- timeLabelsEls: Zt,
821
- timeLabels: K,
822
- slicer: u(() => ({
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 $ = u(() => {
849
- let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
850
- return {
851
- component: e ? Pt : kt,
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: O.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
- Ge(() => H.value.showTable, (e) => {
880
- I.value.table.show || (e && I.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
881
- });
882
- function $n() {
883
- H.value.showTable = !1, Qt.value && Qt.value.setTableIconState(!1);
884
- }
885
- let er = u(() => I.value.style.chart.backgroundColor), tr = u(() => ({
886
- ...I.value.style.chart.legend,
887
- position: "bottom"
888
- })), { exportSvg: nr, getSvg: rr } = ye({
889
- svg: V,
890
- title: u(() => 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 ze();
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 (Rt("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 || Kn.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 === " ", ee = e.key === "Escape";
949
- if (!t && !n && !r && !i && !a && !ee) return;
950
- if (e.preventDefault(), e.stopPropagation(), ee) {
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
- M.value && Nn(M.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, Un.value = e;
966
- return;
967
- }
968
- if (!q.value.length) return;
969
- let o = M.value?.index ?? null;
970
- o = o === null ? i ? 0 : q.value.length - 1 : fr(o + (i ? 1 : -1));
971
- let te = q.value[o];
972
- te && jn(te);
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, Un.value = null, M.value ? Mn(M.value) : M.value = null;
984
- }
985
- let mr = u(() => ({
986
- head: Q.value.head,
987
- body: Q.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 Ee({
992
- getData: Zn,
993
- getImage: Qn,
994
- generateImage: mn,
995
- generateSvg: ir,
996
- generatePdf: pn,
997
- generateCsv: Xn,
998
- hideSeries: Sn,
999
- showSeries: xn,
1000
- toggleAnnotator: qn,
1001
- toggleTable: Jn,
1002
- toggleFullscreen: zn,
1003
- copyAlt: sr
1004
- }), (e, r) => (y(), p("div", {
1005
- ref_key: "ridgelineChart",
1006
- ref: O,
1007
- class: Be(`vue-data-ui-component vue-ui-ridgeline ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1008
- id: `vue-ui-ridgeline_${j.value}`,
1009
- style: v({
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: r[3] ||= () => w(sn)(!0),
1017
- onMouseleave: r[4] ||= () => w(sn)(!1)
1018
- }, [
1019
- m("div", {
1020
- id: `chart-instructions-${j.value}`,
1021
- class: "sr-only"
1022
- }, [m("p", null, C(I.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
1023
- mr.value.body.length ? (y(), d(Ae, {
1024
- key: 0,
1025
- uid: j.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
- ])) : f("", !0),
1037
- I.value.userOptions.buttons.annotator && w(V) ? (y(), d(w(jt), {
1038
- key: 1,
1039
- color: I.value.style.chart.color,
1040
- backgroundColor: I.value.style.chart.backgroundColor,
1041
- active: Kn.value,
1042
- svgRef: w(V),
1043
- isCursorPointer: L.value,
1044
- onClose: qn
1045
- }, {
1046
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1047
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(g({ color: t })), void 0, !0)]),
1048
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(g({ mode: t })), void 0, !0)]),
1049
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(g({ disabled: t })), void 0, !0)]),
1050
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(g({ disabled: t })), void 0, !0)]),
1051
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(g({ disabled: t })), void 0, !0)]),
1052
- _: 3
1053
- }, 8, [
1054
- "color",
1055
- "backgroundColor",
1056
- "active",
1057
- "svgRef",
1058
- "isCursorPointer"
1059
- ])) : f("", !0),
1060
- S(e.$slots, "userConfig", {}, void 0, !0),
1061
- hn.value ? (y(), p("div", {
1062
- key: 2,
1063
- ref_key: "noTitle",
1064
- ref: Ht,
1065
- class: "vue-data-ui-no-title-space",
1066
- style: "height:36px; width: 100%;background:transparent"
1067
- }, null, 512)) : f("", !0),
1068
- I.value.style.chart.title.text ? (y(), p("div", {
1069
- key: 3,
1070
- ref_key: "chartTitle",
1071
- ref: zt,
1072
- style: "width:100%;background:transparent;padding-bottom:24px"
1073
- }, [(y(), d(we, {
1074
- key: `title_${Ut.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)) : f("", !0),
1086
- I.value.userOptions.show && D.value && (w(cn) || w(on)) ? (y(), d(w(Mt), {
1087
- ref_key: "userOptionsRef",
1088
- ref: Qt,
1089
- key: `user_option_${Kt.value}`,
1090
- backgroundColor: I.value.style.chart.backgroundColor,
1091
- color: I.value.style.chart.color,
1092
- isPrinting: w(dn),
1093
- isImaging: w(fn),
1094
- uid: j.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: O.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: Kn.value,
1113
- tableDialog: I.value.table.useDialog,
1114
- style: v({ visibility: w(cn) ? w(on) ? "visible" : "hidden" : "visible" }),
1115
- isCursorPointer: L.value,
1116
- onToggleFullscreen: zn,
1117
- onGeneratePdf: w(pn),
1118
- onGenerateCsv: Xn,
1119
- onGenerateImage: ar,
1120
- onGenerateSvg: ir,
1121
- onToggleTable: Jn,
1122
- onToggleAnnotator: qn,
1123
- onCopyAlt: sr
1124
- }, Fe({ _: 2 }, [
1125
- e.$slots.menuIcon ? {
1126
- name: "menuIcon",
1127
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(g({
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: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
1136
- key: "1"
1137
- } : void 0,
1138
- e.$slots.optionPdf ? {
1139
- name: "optionPdf",
1140
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
1141
- key: "2"
1142
- } : void 0,
1143
- e.$slots.optionCsv ? {
1144
- name: "optionCsv",
1145
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
1146
- key: "3"
1147
- } : void 0,
1148
- e.$slots.optionImg ? {
1149
- name: "optionImg",
1150
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
1151
- key: "4"
1152
- } : void 0,
1153
- e.$slots.optionSvg ? {
1154
- name: "optionSvg",
1155
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
1156
- key: "5"
1157
- } : void 0,
1158
- e.$slots.optionTable ? {
1159
- name: "optionTable",
1160
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
1161
- key: "6"
1162
- } : void 0,
1163
- e.$slots.optionFullscreen ? {
1164
- name: "optionFullscreen",
1165
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(g({
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: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(g({
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: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(g({ altCopy: t })), void 0, !0)]),
1182
- key: "9"
1183
- } : void 0,
1184
- e.$slots["custom-menu-before"] ? {
1185
- name: "custom-menu-before",
1186
- fn: T(() => [S(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: T(() => [S(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
- ])) : f("", !0),
1220
- m("div", Xe, [(y(), p("svg", {
1221
- ref_key: "svgRef",
1222
- ref: V,
1223
- xmlns: w(ue),
1224
- "aria-describedby": `chart-instructions-${j.value}`,
1225
- class: Be({
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: v(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.chart.color};${I.value.responsive ? `height: ${Xt.value}px; width: 100%;` : ""}`),
1231
- tabindex: "0",
1232
- onFocus: cr,
1233
- onBlur: lr,
1234
- onKeydown: ur
1235
- }, [
1236
- Le(w(Nt)),
1237
- m("defs", null, [(y(!0), p(l, null, x(X.value, (e, t) => (y(), p("linearGradient", {
1238
- id: `gradient-${e.id}-${j.value}`,
1239
- x1: "50%",
1240
- y1: "0%",
1241
- x2: "50%",
1242
- y2: "100%"
1243
- }, [
1244
- m("stop", {
1245
- offset: "0%",
1246
- "stop-color": e.color,
1247
- "stop-opacity": "1"
1248
- }, null, 8, $e),
1249
- m("stop", {
1250
- offset: "30%",
1251
- "stop-color": e.color,
1252
- "stop-opacity": "0.7"
1253
- }, null, 8, et),
1254
- m("stop", {
1255
- offset: "70%",
1256
- "stop-color": e.color,
1257
- "stop-opacity": "0.3"
1258
- }, null, 8, tt),
1259
- m("stop", {
1260
- offset: "100%",
1261
- "stop-color": e.color,
1262
- "stop-opacity": "0.1"
1263
- }, null, 8, nt)
1264
- ], 8, Qe))), 256)), (y(!0), p(l, null, x(J.value, (e, t) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e, t) => (y(), p("linearGradient", {
1265
- key: `grad${e.id}`,
1266
- id: `gradient-single-${j.value}-${e.uid}`,
1267
- x1: "50%",
1268
- y1: "0%",
1269
- x2: "50%",
1270
- y2: "100%"
1271
- }, [
1272
- m("stop", {
1273
- offset: "0%",
1274
- "stop-color": e.color,
1275
- "stop-opacity": "1"
1276
- }, null, 8, it),
1277
- m("stop", {
1278
- offset: "30%",
1279
- "stop-color": e.color,
1280
- "stop-opacity": "0.7"
1281
- }, null, 8, at),
1282
- m("stop", {
1283
- offset: "70%",
1284
- "stop-color": e.color,
1285
- "stop-opacity": "0.3"
1286
- }, null, 8, ot),
1287
- m("stop", {
1288
- offset: "100%",
1289
- "stop-color": e.color,
1290
- "stop-opacity": "0.1"
1291
- }, null, 8, st)
1292
- ], 8, rt))), 128))], 64))), 256))]),
1293
- (y(!0), p(l, null, x(J.value, (t, n) => (y(), p("g", { key: `ds-${n}` }, [(y(!0), p(l, null, x(t.datapoints, (t, r) => (y(), p("g", { key: t.id }, [
1294
- e.$slots.pattern ? (y(), p("g", ct, [m("defs", null, [S(e.$slots, "pattern", Re({ ref_for: !0 }, {
1295
- datapointIndex: n,
1296
- seriesIndex: r,
1297
- patternId: `pattern_${j.value}_${t.uid}`
1298
- }), void 0, !0)])])) : f("", !0),
1299
- m("path", {
1300
- fill: e.$slots.pattern ? `url(#pattern_${j.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: v({ opacity: I.value.style.chart.areas.opacity })
1305
- }, null, 12, lt),
1306
- m("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: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
1314
- style: v({
1315
- strokeDasharray: t.pathLength,
1316
- strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1317
- })
1318
- }, null, 14, ut),
1319
- m("path", {
1320
- fill: I.value.style.chart.areas.useGradient ? I.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${j.value})` : `url(#gradient-single-${j.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: Be({ "vue-ui-ridgeline-animate": I.value.useCssAnimation && !w(R) }),
1326
- style: v({
1327
- strokeDasharray: t.pathLength,
1328
- strokeDashoffset: I.value.useCssAnimation ? t.pathLength : 0
1329
- })
1330
- }, null, 14, dt),
1331
- I.value.style.chart.zeroLine.show ? (y(), p("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, ft)) : f("", !0),
1339
- I.value.style.chart.areas.maxPoint.show && t.plots.length > 1 ? (y(!0), p(l, { key: 2 }, x(t.plots, (e) => (y(), p(l, null, [e.isMaxPoint ? (y(), p("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 ? w(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, pt)) : f("", !0)], 64))), 256)) : f("", !0),
1350
- t.plots.length === 1 ? (y(), p("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, mt)) : f("", !0)
1360
- ]))), 128)), m("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: v({ cursor: I.value.style.chart.dialog.show && L.value ? "pointer" : "default" }),
1368
- "text-decoration": I.value.style.chart.dialog.show && (Un.value === n || N.value && t.uid === N.value.uid || F.value === n) ? "underline" : "",
1369
- onMouseenter: (e) => Wn(n),
1370
- onMouseleave: Gn,
1371
- onClick: (e) => Hn(t)
1372
- }, C(t.name), 45, ht)]))), 128)),
1373
- I.value.style.chart.xAxis.labels.values.length ? (y(), p("g", {
1374
- key: 0,
1375
- ref_key: "timeLabelsEls",
1376
- ref: Zt
1377
- }, [(y(!0), p(l, null, x(q.value, (n, r) => S(e.$slots, "time-label", Re({ 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 && M.value && M.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 && M.value && M.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 ? (y(), p("g", gt, [String(n.label).includes("\n") ? (y(), p("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: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 }),
1395
- innerHTML: w(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, vt)) : (y(), p("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: v({ opacity: M.value ? M.value.index === r ? 1 : .2 : 1 })
1411
- }, C(n.label), 13, _t))])) : f("", !0)], !0)), 256))], 512)) : f("", !0),
1412
- m("g", null, [
1413
- (y(!0), p(l, null, x(q.value, (e, t) => (y(), p("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, yt))), 256)),
1423
- I.value.style.chart.selector.show && M.value ? (y(), p("line", {
1424
- key: 0,
1425
- x1: M.value.selectorX,
1426
- x2: M.value.selectorX,
1427
- y1: M.value.y,
1428
- y2: M.value.y + M.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, bt)) : f("", !0),
1435
- M.value ? (y(!0), p(l, { key: 1 }, x(J.value, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.datapoints, (e) => (y(), p(l, null, [(y(!0), p(l, null, x(e.plots, (t, r) => (y(), p(l, null, [M.value && M.value.index === r ? (y(), p("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, xt)) : f("", !0), M.value && M.value.index === r ? (y(), p("text", {
1445
- key: 1,
1446
- x: Fn(t.x, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
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, w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
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
- }, C(w(c)(I.value.style.chart.selector.labels.formatter, t.value, w(n)({
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, St)) : f("", !0)], 64))), 256))], 64))), 256))], 64))), 256)) : f("", !0)
1468
- ]),
1469
- S(e.$slots, "svg", { svg: {
1470
- ...W.value,
1471
- drawingArea: G.value,
1472
- isPrintingImg: w(dn) || w(fn) || $t.value,
1473
- isPrintingSvg: en.value
1474
- } }, void 0, !0)
1475
- ], 46, Ze)), e.$slots.hint ? (y(), p("div", Ct, [S(e.$slots, "hint", _(g({
1476
- hint: I.value.a11y.translations.keyboardNavigation,
1477
- isVisible: tn.value
1478
- })), void 0, !0)])) : f("", !0)]),
1479
- e.$slots.watermark ? (y(), p("div", wt, [S(e.$slots, "watermark", _(g({ isPrinting: w(dn) || w(fn) || $t.value || en.value })), void 0, !0)])) : f("", !0),
1480
- m("div", {
1481
- ref_key: "chartLegend",
1482
- ref: Bt
1483
- }, [S(e.$slots, "legend", { legend: X.value }, () => [I.value.style.chart.legend.show ? (y(), d(Ne, {
1484
- key: `legend_${Gt.value}`,
1485
- legendSet: X.value,
1486
- config: Rn.value,
1487
- isCursorPointer: L.value,
1488
- onClickMarker: r[0] ||= ({ legend: e }) => yn(e.id)
1489
- }, Fe({
1490
- item: T(({ legend: e }) => [w(R) ? f("", !0) : (y(), p("div", {
1491
- key: 0,
1492
- style: v(`opacity:${Y.value.includes(e.id) ? .5 : 1}`),
1493
- onClick: (t) => e.segregate()
1494
- }, C(e.name), 13, Tt))]),
1495
- legendToggle: T(() => [X.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !w(R) ? (y(), d(ke, {
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
- ])) : f("", !0)]),
1510
- _: 2
1511
- }, [e.$slots.pattern ? {
1512
- name: "legend-pattern",
1513
- fn: T(({ legend: e, index: t }) => [Le(Te, {
1514
- shape: e.shape,
1515
- radius: 30,
1516
- stroke: "none",
1517
- plot: {
1518
- x: 30,
1519
- y: 30
1520
- },
1521
- fill: `url(#pattern_${j.value}_${t})`
1522
- }, null, 8, ["shape", "fill"])]),
1523
- key: "0"
1524
- } : void 0]), 1032, [
1525
- "legendSet",
1526
- "config",
1527
- "isCursorPointer"
1528
- ])) : f("", !0)], !0)], 512),
1529
- e.$slots.source ? (y(), p("div", {
1530
- key: 6,
1531
- ref_key: "source",
1532
- ref: Vt,
1533
- dir: "auto"
1534
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1535
- D.value && I.value.userOptions.buttons.table ? (y(), d(He($.value.component), Re({ key: 7 }, $.value.props, {
1536
- ref_key: "tableUnit",
1537
- ref: P,
1538
- onClose: $n
1539
- }), Fe({
1540
- content: T(() => [(y(), d(w(At), {
1541
- key: `table_${Wt.value}`,
1542
- colNames: Q.value.colNames,
1543
- head: Q.value.head,
1544
- body: Q.value.body,
1545
- config: Q.value.config,
1546
- title: I.value.table.useDialog ? "" : $.value.title,
1547
- withCloseButton: !I.value.table.useDialog,
1548
- isCursorPointer: L.value,
1549
- onClose: $n
1550
- }, {
1551
- th: T(({ th: e }) => [m("div", { innerHTML: e }, null, 8, Et)]),
1552
- td: T(({ td: e }) => [Ie(C(e.name ? e.name : w(c)(I.value.style.chart.selector.labels.formatter, e, w(n)({
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: T(() => [Ie(C($.value.title), 1)]),
1572
- key: "0"
1573
- } : void 0, I.value.table.useDialog ? {
1574
- name: "actions",
1575
- fn: T(() => [m("button", {
1576
- tabindex: "0",
1577
- class: "vue-ui-user-options-button",
1578
- onClick: r[1] ||= (e) => Xn(I.value.userOptions.callbacks.csv),
1579
- style: v({ cursor: L.value ? "pointer" : "default" })
1580
- }, [Le(w(Ot), {
1581
- name: "fileCsv",
1582
- stroke: $.value.props.color
1583
- }, null, 8, ["stroke"])], 4)]),
1584
- key: "1"
1585
- } : void 0]), 1040)) : f("", !0),
1586
- I.value.style.chart.dialog.show ? (y(), d(w(Pt), {
1587
- key: 8,
1588
- ref_key: "dialog",
1589
- ref: Yt,
1590
- onClose: r[2] ||= (e) => N.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: O.value,
1597
- isCursorPointer: L.value,
1598
- withPadding: ""
1599
- }, {
1600
- title: T(() => [Ie(C(N.value.name), 1)]),
1601
- content: T(() => [N.value ? (y(), d(w(Dt), {
1602
- key: 0,
1603
- config: Bn.value,
1604
- dataset: Vn.value,
1605
- onCopyAlt: or
1606
- }, null, 8, ["config", "dataset"])) : f("", !0)]),
1607
- _: 1
1608
- }, 8, [
1609
- "backgroundColor",
1610
- "color",
1611
- "headerBg",
1612
- "headerColor",
1613
- "isFullscreen",
1614
- "fullscreenParent",
1615
- "isCursorPointer"
1616
- ])) : f("", !0),
1617
- S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), d(ve, { key: 0 })) : f("", !0)], !0)
1618
- ], 46, Je));
1619
- }
1620
- }, [["__scopeId", "data-v-ca7f8c0d"]]);
1621
- //#endregion
1622
- export { qe as n, Dt as t };