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,1559 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { B as t, G as n, H as r, It as i, J as a, Lt as ee, Rt as o, S as te, St as ne, Tt as re, W as ie, X as ae, h as oe, i as s, ot as se, pt as ce, r as le, t as ue, x as de, y as fe, yt as pe, zt as me } from "./lib-BkiwukKO.js";
3
- import { t as he } from "./useConfig-ByaaSKhz.js";
4
- import { t as ge } from "./usePrinter-X0yWOynH.js";
5
- import { n as _e, t as ve } from "./BaseScanner-C7dmAref.js";
6
- import { t as ye } from "./useSvgExport-Dtu973wa.js";
7
- import { t as be } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as xe } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as Se } from "./useTimeLabelCollider-Dm55Emzg.js";
10
- import { t as Ce } from "./img-BjOr008R.js";
11
- import { n as we } from "./Title-__gWq2g6.js";
12
- import { t as Te } from "./_plugin-vue_export-helper-Dq1MygBL.js";
13
- import { c as Ee } from "./canvas-lib-DTaADQOK.js";
14
- import { t as De } from "./useResponsive-CrAInupd.js";
15
- import { t as Oe } from "./BaseLegendToggle-CJTwLGXL.js";
16
- import { t as ke } from "./A11yDataTable-q2-8fSlJ.js";
17
- import { t as Ae } from "./useUserOptionState-CjPJPTg2.js";
18
- import { t as je } from "./useChartAccessibility-Do37qcw2.js";
19
- import { t as Me } from "./Legend-Gg5Q4Clb.js";
20
- import { t as Ne } from "./vue_ui_history_plot-C5nytDHh.js";
21
- import { Fragment as c, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Be, onMounted 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";
22
- //#region src/components/vue-ui-history-plot.vue
23
- var qe = /* @__PURE__ */ e({ default: () => Pt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
24
- "xmlns",
25
- "viewBox",
26
- "aria-describedby"
27
- ], $e = [
28
- "x",
29
- "y",
30
- "width",
31
- "height"
32
- ], et = { key: 1 }, tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = { key: 2 }, ot = [
33
- "x1",
34
- "x2",
35
- "y1",
36
- "y2",
37
- "stroke",
38
- "stroke-width"
39
- ], st = { key: 3 }, ct = [
40
- "stroke",
41
- "stroke-width",
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2"
46
- ], lt = [
47
- "x",
48
- "y",
49
- "fill",
50
- "font-size"
51
- ], ut = [
52
- "transform",
53
- "font-size",
54
- "fill",
55
- "font-weight"
56
- ], dt = { key: 6 }, ft = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], pt = { key: 7 }, mt = [
64
- "stroke",
65
- "stroke-width",
66
- "x1",
67
- "x2",
68
- "y1",
69
- "y2"
70
- ], ht = [
71
- "transform",
72
- "fill",
73
- "font-size",
74
- "text-anchor"
75
- ], gt = [
76
- "x",
77
- "y",
78
- "font-size",
79
- "fill",
80
- "font-weight"
81
- ], _t = [
82
- "x1",
83
- "x2",
84
- "y1",
85
- "y2",
86
- "stroke",
87
- "stroke-width"
88
- ], vt = [
89
- "x1",
90
- "x2",
91
- "y1",
92
- "y2",
93
- "stroke",
94
- "stroke-width"
95
- ], yt = [
96
- "d",
97
- "stroke",
98
- "stroke-width"
99
- ], bt = [
100
- "d",
101
- "stroke",
102
- "stroke-width"
103
- ], xt = [
104
- "cx",
105
- "cy",
106
- "fill",
107
- "r"
108
- ], St = [
109
- "cx",
110
- "cy",
111
- "fill",
112
- "r",
113
- "stroke",
114
- "stroke-width"
115
- ], Ct = { key: 1 }, wt = [
116
- "x",
117
- "y",
118
- "font-size",
119
- "fill",
120
- "font-weight"
121
- ], Tt = [
122
- "x",
123
- "y",
124
- "font-size",
125
- "fill",
126
- "font-weight",
127
- "innerHTML"
128
- ], Et = { key: 2 }, Dt = [
129
- "x",
130
- "y",
131
- "font-size",
132
- "font-weight",
133
- "fill"
134
- ], Ot = [
135
- "cx",
136
- "cy",
137
- "r",
138
- "onMouseenter",
139
- "onMouseleave",
140
- "onClick"
141
- ], kt = {
142
- key: 0,
143
- style: {
144
- position: "absolute",
145
- top: "100%",
146
- left: "0",
147
- width: "100%"
148
- },
149
- "data-dom-to-png-ignore": "",
150
- "aria-hidden": "true"
151
- }, At = {
152
- key: 5,
153
- class: "vue-data-ui-watermark"
154
- }, jt = ["id"], Mt = ["onClick"], Nt = ["innerHTML"], Pt = /* @__PURE__ */ Te({
155
- __name: "vue-ui-history-plot",
156
- props: {
157
- config: {
158
- type: Object,
159
- default() {
160
- return {};
161
- }
162
- },
163
- dataset: {
164
- type: Array,
165
- default() {
166
- return [];
167
- }
168
- }
169
- },
170
- emits: [
171
- "selectLegend",
172
- "selectDatapoint",
173
- "copyAlt"
174
- ],
175
- setup(e, { expose: Te, emit: qe }) {
176
- let Pt = m(() => import("./Tooltip-CuWEYGr3.js")), Ft = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), It = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), Lt = m(() => import("./DataTable-DmE8Oo4i.js")), Rt = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), zt = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Bt = m(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Vt = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_history_plot: Ht } = he(), { isThemeValid: Ut, warnInvalidTheme: Wt } = xe(), E = e, D = b(null), Gt = b(null), Kt = b(0), qt = b(null), Jt = b(0), Yt = b(0), Xt = b(0), O = Ue(null), k = Ue(null), Zt = b(null), A = b(r()), Qt = b(!1), $t = b(""), j = b([]), M = b(!1), N = b(null), P = b(!1), en = b(null), tn = b(!1), F = b(null), nn = b(null), rn = b(!1), an = b(!1), on = b(null), sn = b(null), cn = b(null), ln = b(null), I = b(null), L = b(null), un = b({
177
- x: 0,
178
- y: 0
179
- }), dn = b("pointer"), fn = b(!1), pn = l({
180
- get: () => !!E.dataset && E.dataset.length,
181
- set: (e) => e
182
- }), mn = qe;
183
- Ve(() => {
184
- tn.value = !0, gn();
185
- });
186
- let hn = l(() => !!R.value.debug);
187
- function gn() {
188
- if (ne(E.dataset) ? (ae({
189
- componentName: "VueUiHistoryPlot",
190
- type: "dataset",
191
- debug: hn.value
192
- }), bn.value = !0) : E.dataset.forEach((e, t) => {
193
- se({
194
- datasetObject: e,
195
- requiredAttributes: ["name", "values"]
196
- }).forEach((e) => {
197
- pn.value = !1, ae({
198
- componentName: "VueUiHistoryPlot",
199
- type: "datasetSerieAttribute",
200
- property: e,
201
- index: t,
202
- debug: hn.value
203
- });
204
- });
205
- }), ne(E.dataset) || (bn.value = R.value.loading), R.value.responsive) {
206
- let e = Ee(() => {
207
- let { width: e, height: t } = De({
208
- chart: D.value,
209
- title: R.value.style.chart.title.text ? Gt.value : null,
210
- noTitle: Zt.value,
211
- legend: R.value.style.chart.legend.show ? qt.value : null,
212
- source: en.value
213
- });
214
- requestAnimationFrame(() => {
215
- U.value.width = e, U.value.height = t, R.value.responsiveProportionalSizing ? (G.value.plots = o({
216
- relator: Math.min(e, t),
217
- adjuster: 600,
218
- source: R.value.style.chart.plots.radius,
219
- threshold: 3,
220
- fallback: 3
221
- }), G.value.indexLabels = o({
222
- relator: Math.min(e, t),
223
- adjuster: 600,
224
- source: R.value.style.chart.plots.indexLabels.fontSize,
225
- threshold: 6,
226
- fallback: 6
227
- }), G.value.labels = o({
228
- relator: Math.min(e, t),
229
- adjuster: 600,
230
- source: R.value.style.chart.plots.labels.fontSize,
231
- threshold: 6,
232
- fallback: 6
233
- }), G.value.xAxisLabels = o({
234
- relator: Math.min(e, t),
235
- adjuster: 600,
236
- source: R.value.style.chart.axes.x.labels.fontSize,
237
- threshold: 6,
238
- fallback: 6
239
- }), G.value.xAxisName = o({
240
- relator: Math.min(e, t),
241
- adjuster: 600,
242
- source: R.value.style.chart.axes.x.name.fontSize,
243
- threshold: 6,
244
- fallback: 6
245
- }), G.value.yAxisLabels = o({
246
- relator: Math.min(e, t),
247
- adjuster: 600,
248
- source: R.value.style.chart.axes.y.labels.fontSize,
249
- threshold: 6,
250
- fallback: 6
251
- }), G.value.yAxisName = o({
252
- relator: Math.min(e, t),
253
- adjuster: 600,
254
- source: R.value.style.chart.axes.y.name.fontSize,
255
- threshold: 6,
256
- fallback: 6
257
- })) : (G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize);
258
- });
259
- });
260
- O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value.parentNode, O.value.observe(k.value);
261
- }
262
- }
263
- Be(() => {
264
- O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect());
265
- });
266
- function _n() {
267
- let e = be({
268
- userConfig: E.config,
269
- defaultConfig: Ht
270
- }), t = {}, n = e.theme;
271
- if (n) if (!Ut.value(e)) Wt(e), t = e;
272
- else {
273
- let r = be({
274
- userConfig: Ne[n] || E.config,
275
- defaultConfig: e
276
- });
277
- t = {
278
- ...be({
279
- userConfig: E.config,
280
- defaultConfig: r
281
- }),
282
- customPalette: e.customPalette.length ? e.customPalette : ee[n] || re
283
- };
284
- }
285
- else t = e;
286
- return t;
287
- }
288
- let R = b(_n()), z = l(() => R.value.userOptions.useCursorPointer), vn = l(() => me({
289
- defaultConfig: {
290
- userOptions: { show: !1 },
291
- table: { show: !1 },
292
- style: { chart: {
293
- backgroundColor: "#99999930",
294
- axes: {
295
- x: {
296
- scaleMin: 0,
297
- scaleMax: 10,
298
- labels: { show: !1 },
299
- name: { text: "" }
300
- },
301
- y: {
302
- scaleMin: 0,
303
- scaleMax: 10,
304
- labels: { show: !1 },
305
- name: { text: "" }
306
- }
307
- },
308
- grid: {
309
- xAxis: { stroke: "#6A6A6A" },
310
- horizontalLines: { stroke: "#6A6A6A50" },
311
- yAxis: { stroke: "#6A6A6A" },
312
- verticalLines: { stroke: "#6A6A6A50" }
313
- },
314
- legend: { backgroundColor: "transparent" },
315
- paths: {
316
- useSerieColor: !1,
317
- stroke: "#6A6A6A"
318
- },
319
- plots: {
320
- stroke: "#6A6A6A",
321
- indexLabels: { show: !1 },
322
- labels: { show: !1 }
323
- }
324
- } }
325
- },
326
- userConfig: R.value.skeletonConfig ?? {}
327
- })), { loading: B, FINAL_DATASET: yn, manualLoading: bn } = _e({
328
- ...We(E),
329
- FINAL_CONFIG: R,
330
- prepareConfig: _n,
331
- skeletonDataset: E.config?.skeletonDataset ?? [{
332
- name: "",
333
- color: "#CACACA",
334
- values: [
335
- {
336
- label: "",
337
- x: 1,
338
- y: 9
339
- },
340
- {
341
- label: "",
342
- x: 4,
343
- y: 1
344
- },
345
- {
346
- label: "",
347
- x: 7,
348
- y: 9
349
- },
350
- {
351
- label: "",
352
- x: 9,
353
- y: 4
354
- }
355
- ]
356
- }],
357
- skeletonConfig: me({
358
- defaultConfig: R.value,
359
- userConfig: vn.value
360
- })
361
- }), { userOptionsVisible: xn, setUserOptionsVisibility: Sn, keepUserOptionState: Cn } = Ae({ config: R.value }), { svgRef: V } = je({ config: R.value.style.chart.title });
362
- Ge(() => E.config, (e) => {
363
- B.value || (R.value = _n()), xn.value = !R.value.userOptions.showOnChartHover, gn(), Kt.value += 1, Yt.value += 1, Jt.value += 1, U.value.height = R.value.style.chart.height, U.value.width = R.value.style.chart.width, G.value.plots = R.value.style.chart.plots.radius, G.value.indexLabels = R.value.style.chart.plots.indexLabels.fontSize, G.value.labels = R.value.style.chart.plots.labels.fontSize, G.value.xAxisLabels = R.value.style.chart.axes.x.labels.fontSize, G.value.xAxisName = R.value.style.chart.axes.x.name.fontSize, G.value.yAxisLabels = R.value.style.chart.axes.y.labels.fontSize, G.value.yAxisName = R.value.style.chart.axes.y.name.fontSize, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show;
364
- }, { deep: !0 }), Ge(() => E.dataset, (e) => {
365
- Array.isArray(e) && e.length > 0 && (bn.value = !1);
366
- }, { deep: !0 });
367
- let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ge({
368
- elementId: `history_plot_${A.value}`,
369
- fileName: R.value.style.chart.title.text || "vue-ui-history-plot",
370
- options: R.value.userOptions.print
371
- }), On = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), kn = l(() => de(R.value.customPalette)), H = b({
372
- showTable: R.value.table.show,
373
- showTooltip: R.value.style.chart.tooltip.show
374
- });
375
- Ge(R, () => {
376
- H.value = {
377
- showTable: R.value.table.show,
378
- showTooltip: R.value.style.chart.tooltip.show
379
- };
380
- }, { immediate: !0 });
381
- let U = b({
382
- height: R.value.style.chart.height,
383
- width: R.value.style.chart.width
384
- }), An = l(() => U.value.width), jn = l(() => U.value.height);
385
- function Mn() {
386
- let e = 0;
387
- ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
388
- let n = t.getComputedTextLength();
389
- return n > e ? n : e;
390
- }, 0));
391
- let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
392
- return e + t + (t ? 24 : 0);
393
- }
394
- let Nn = b(0), Pn = Ee((e) => {
395
- Nn.value = e;
396
- });
397
- Ke((e) => {
398
- let t = cn.value;
399
- if (!t) return;
400
- let n = new ResizeObserver((e) => {
401
- Pn(e[0].contentRect.height);
402
- });
403
- n.observe(t), e(() => n.disconnect());
404
- });
405
- let Fn = l(() => {
406
- let e = 0;
407
- on.value && (e = on.value.getBBox().height + G.value.xAxisName / 2);
408
- let t = 0;
409
- return cn.value && (t = Nn.value), e + t;
410
- }), W = l(() => {
411
- let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top, n = Mn(), r = R.value.style.chart.plots.radius;
412
- return {
413
- left: e + n + R.value.style.chart.axes.y.name.offsetX,
414
- top: t + r,
415
- right: U.value.width - R.value.style.chart.padding.right - r - R.value.style.chart.axes.y.name.offsetX,
416
- bottom: U.value.height - R.value.style.chart.padding.bottom - Fn.value - r - R.value.style.chart.axes.x.name.offsetY,
417
- width: U.value.width - e - R.value.style.chart.padding.right - n - r - R.value.style.chart.axes.y.name.offsetX,
418
- height: U.value.height - t - R.value.style.chart.padding.bottom - Fn.value - r * 2 - R.value.style.chart.axes.x.name.offsetY
419
- };
420
- }), G = b({
421
- plots: R.value.style.chart.plots.radius,
422
- indexLabels: R.value.style.chart.plots.indexLabels.fontSize,
423
- labels: R.value.style.chart.plots.labels.fontSize,
424
- xAxisLabels: R.value.style.chart.axes.x.labels.fontSize,
425
- xAxisName: R.value.style.chart.axes.x.name.fontSize,
426
- yAxisLabels: R.value.style.chart.axes.y.labels.fontSize,
427
- yAxisName: R.value.style.chart.axes.y.name.fontSize
428
- }), K = l(() => yn.value.map((e, t) => ({
429
- ...e,
430
- color: e.color ? fe(e.color) : kn.value[t] || re[t] || re[t % re.length],
431
- seriesIndex: t
432
- }))), In = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Ln = l(() => {
433
- let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
434
- return e < 0 ? e : 0;
435
- }), Rn = l(() => Math.max(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), zn = l(() => {
436
- let e = Math.min(...K.value.filter((e) => !j.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
437
- return e < 0 ? e : 0;
438
- }), q = l(() => {
439
- let e = oe(R.value.style.chart.axes.x.scaleMin ?? Ln.value, R.value.style.chart.axes.x.scaleMax ?? In.value, R.value.style.chart.axes.x.ticks), t = oe(R.value.style.chart.axes.y.scaleMin ?? zn.value, R.value.style.chart.axes.y.scaleMax ?? Rn.value, R.value.style.chart.axes.y.ticks);
440
- return {
441
- x: e,
442
- y: t,
443
- tickX: e.ticks.map((t) => ({
444
- x: W.value.left + (t - e.min) / (e.max - e.min) * W.value.width,
445
- y1: W.value.top,
446
- y2: W.value.bottom,
447
- value: t
448
- })),
449
- tickY: t.ticks.map((e) => ({
450
- y: W.value.bottom - (e - t.min) / (t.max - t.min) * W.value.height,
451
- x1: W.value.left,
452
- x2: W.value.right,
453
- value: e
454
- }))
455
- };
456
- });
457
- function Bn(e) {
458
- let t = q.value.x.min < 0 ? Math.abs(q.value.x.min) : q.value.x.min > 0 ? -q.value.x.min : 0;
459
- return W.value.left + ((e || 0) + t) / (q.value.x.max + t) * W.value.width;
460
- }
461
- function Vn(e) {
462
- let t = q.value.y.min < 0 ? Math.abs(q.value.y.min) : q.value.y.min > 0 ? -q.value.y.min : 0;
463
- return W.value.bottom - ((e || 0) + t) / (q.value.y.max + t) * W.value.height;
464
- }
465
- let J = l(() => K.value.filter((e) => !j.value.includes(e.seriesIndex)).map((e, t) => {
466
- let n = e.values.map((t, n) => ({
467
- valueX: t.x,
468
- valueY: t.y,
469
- label: t.label,
470
- x: Bn(t.x),
471
- y: Vn(t.y),
472
- color: e.color,
473
- seriesName: e.name,
474
- id: r()
475
- })), i = n.map((e) => `${e.x},${e.y} `).join("").trim();
476
- return {
477
- ...e,
478
- plots: n,
479
- path: `M${i}`
480
- };
481
- }));
482
- function Hn() {
483
- j.value.length ? j.value = [] : Y.value.forEach((e) => {
484
- j.value.push(e.seriesIndex);
485
- }), mn("selectLegend", J.value);
486
- }
487
- function Un(e) {
488
- j.value.includes(e) ? j.value = j.value.filter((t) => t !== e) : j.value.push(e);
489
- }
490
- function Wn(e) {
491
- return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
492
- }
493
- function Gn(e) {
494
- let t = Wn(e);
495
- t !== null && j.value.includes(t.seriesIndex) && Un(t.seriesIndex);
496
- }
497
- function Kn(e) {
498
- let t = Wn(e);
499
- t !== null && (j.value.includes(t.seriesIndex) || Un(t.seriesIndex));
500
- }
501
- let Y = l(() => K.value.map((e) => ({
502
- ...e,
503
- opacity: j.value.includes(e.seriesIndex) ? .5 : 1,
504
- segregate: () => Un(e.seriesIndex),
505
- isSegregated: j.value.includes(e.seriesIndex),
506
- shape: "circle"
507
- }))), qn = l(() => ({
508
- cy: "history-plot-div-legend",
509
- backgroundColor: R.value.style.chart.legend.backgroundColor,
510
- color: R.value.style.chart.legend.color,
511
- fontSize: R.value.style.chart.legend.fontSize,
512
- paddingBottom: 12,
513
- fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
514
- }));
515
- function Jn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
516
- R.value.events.datapointClick && R.value.events.datapointClick({
517
- datapoint: {
518
- ...e,
519
- plotIndex: t,
520
- seriesIndex: n
521
- },
522
- seriesIndex: n
523
- }), mn("selectDatapoint", e);
524
- }
525
- function Yn(e) {
526
- mn("selectLegend", J.value);
527
- }
528
- function Xn(e) {
529
- M.value = e, Xt.value += 1;
530
- }
531
- let Zn = b(null);
532
- function Qn({ datapoint: e, plotIndex: t, seriesIndex: n }) {
533
- R.value.events.datapointLeave && R.value.events.datapointLeave({
534
- datapoint: {
535
- ...e,
536
- plotIndex: t,
537
- seriesIndex: n
538
- },
539
- seriesIndex: n
540
- }), !(dn.value === "keyboard" && I.value === n && L.value === t) && (Qt.value = !1, N.value = null);
541
- }
542
- function $n(e, t) {
543
- if (!V.value) return;
544
- let n = J.value.find((t) => t.seriesIndex === e);
545
- if (!n) return;
546
- let r = n.plots[t];
547
- if (!r) return;
548
- let a = i(r.x, r.y, V.value);
549
- a && (un.value = a);
550
- }
551
- function er({ datapoint: e, plotIndex: t, seriesIndex: r, triggerMode: i = "pointer" }) {
552
- R.value.events.datapointEnter && R.value.events.datapointEnter({
553
- datapoint: {
554
- ...e,
555
- plotIndex: t,
556
- seriesIndex: r
557
- },
558
- seriesIndex: r
559
- }), I.value = r, L.value = t, dn.value = i, Zn.value = {
560
- datapoint: e,
561
- seriesIndex: r,
562
- plotIndex: t,
563
- config: R.value,
564
- series: K.value
565
- }, N.value = e;
566
- let a = R.value.style.chart.tooltip.customFormat;
567
- if (P.value = !1, ce(a)) try {
568
- let n = a({
569
- seriesIndex: r,
570
- datapoint: e,
571
- plotIndex: t,
572
- series: K.value,
573
- config: R.value
574
- });
575
- typeof n == "string" && ($t.value = n, P.value = !0);
576
- } catch {
577
- console.warn("Custom format cannot be applied."), P.value = !1;
578
- }
579
- if (!P.value) {
580
- let t = "";
581
- t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${R.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${R.value.style.chart.axes.x.name.text || "x"}: ${s(R.value.style.chart.axes.x.labels.formatter, e.valueX, n({
582
- p: R.value.style.chart.axes.x.labels.prefix,
583
- v: e.valueX,
584
- s: R.value.style.chart.axes.x.labels.suffix,
585
- r: R.value.style.chart.axes.x.labels.rounding
586
- }))}</div>`, t += `<div>${R.value.style.chart.axes.y.name.text || "y"}: ${s(R.value.style.chart.axes.y.labels.formatter, e.valueY, n({
587
- p: R.value.style.chart.axes.y.labels.prefix,
588
- v: e.valueY,
589
- s: R.value.style.chart.axes.y.labels.suffix,
590
- r: R.value.style.chart.axes.y.labels.rounding
591
- }))}</div>`, $t.value = `<div>${t}</div>`;
592
- }
593
- Qt.value = !0, i === "keyboard" && ze(() => {
594
- $n(r, t);
595
- });
596
- }
597
- l(() => ({ head: J.value.map((e) => ({
598
- name: e.name,
599
- color: e.color
600
- })) }));
601
- let X = l(() => {
602
- let e = [
603
- R.value.table.columnNames.series,
604
- R.value.table.columnNames.datapoint,
605
- R.value.table.columnNames.x,
606
- R.value.table.columnNames.y
607
- ];
608
- return {
609
- head: e,
610
- body: J.value.flatMap((e) => e.plots.map((e) => [
611
- {
612
- color: e.color,
613
- name: e.seriesName
614
- },
615
- e.label,
616
- s(R.value.style.chart.axes.x.labels.formatter, e.valueX, n({
617
- p: R.value.style.chart.axes.x.labels.prefix,
618
- v: e.valueX,
619
- s: R.value.style.chart.axes.x.labels.suffix,
620
- r: R.value.style.chart.axes.x.labels.rounding
621
- })),
622
- s(R.value.style.chart.axes.y.labels.formatter, e.valueY, n({
623
- p: R.value.style.chart.axes.y.labels.prefix,
624
- v: e.valueY,
625
- s: R.value.style.chart.axes.y.labels.suffix,
626
- r: R.value.style.chart.axes.y.labels.rounding
627
- }))
628
- ])),
629
- config: {
630
- th: {
631
- backgroundColor: R.value.table.th.backgroundColor,
632
- color: R.value.table.th.color,
633
- outline: R.value.table.th.outline
634
- },
635
- td: {
636
- backgroundColor: R.value.table.td.backgroundColor,
637
- color: R.value.table.td.color,
638
- outline: R.value.table.td.outline
639
- },
640
- breakpoint: R.value.table.responsiveBreakpoint
641
- },
642
- colNames: e
643
- };
644
- });
645
- function tr(e = null) {
646
- ze(() => {
647
- let t = [
648
- [R.value.table.columnNames.series],
649
- [R.value.table.columnNames.datapoint],
650
- [R.value.table.columnNames.x],
651
- [R.value.table.columnNames.y]
652
- ], n = J.value.flatMap((e) => e.plots.map((e) => [
653
- [e.seriesName],
654
- [e.label],
655
- [e.valueX],
656
- [e.valueY]
657
- ])), r = te([
658
- [R.value.style.chart.title.text],
659
- [R.value.style.chart.title.subtitle.text],
660
- t
661
- ].concat(n));
662
- e ? e(r) : a({
663
- csvContent: r,
664
- title: R.value.style.chart.title.text || "vue-ui-history-plot"
665
- });
666
- });
667
- }
668
- let Z = b(!1);
669
- function nr() {
670
- Z.value = !Z.value;
671
- }
672
- function rr() {
673
- H.value.showTable = !H.value.showTable;
674
- }
675
- function ir() {
676
- H.value.showTooltip = !H.value.showTooltip;
677
- }
678
- function ar() {
679
- return J.value;
680
- }
681
- async function or({ scale: e = 2 } = {}) {
682
- if (!D.value) return;
683
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
684
- domElement: D.value,
685
- base64: !0,
686
- img: !0,
687
- scale: e
688
- });
689
- return {
690
- imageUri: i,
691
- base64: a,
692
- title: R.value.style.chart.title.text,
693
- width: t,
694
- height: n,
695
- aspectRatio: r
696
- };
697
- }
698
- Se({
699
- timeLabelsEls: cn,
700
- timeLabels: l(() => q.value.tickX),
701
- slicer: l(() => ({
702
- start: 0,
703
- end: q.value.tickX.length
704
- })),
705
- configRef: R,
706
- rotationPath: [
707
- "style",
708
- "chart",
709
- "axes",
710
- "x",
711
- "labels",
712
- "rotation"
713
- ],
714
- autoRotatePath: [
715
- "style",
716
- "chart",
717
- "axes",
718
- "x",
719
- "labels",
720
- "autoRotate",
721
- "enable"
722
- ],
723
- isAutoSize: !1,
724
- width: An,
725
- height: jn,
726
- targetClass: ".vue-ui-history-plot-x-axis-scale",
727
- rotation: R.value.style.chart.axes.x.labels.autoRotate.angle
728
- });
729
- let Q = l(() => {
730
- let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
731
- return {
732
- component: e ? Vt : It,
733
- title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
734
- props: e ? {
735
- backgroundColor: R.value.table.th.backgroundColor,
736
- color: R.value.table.th.color,
737
- headerColor: R.value.table.th.color,
738
- headerBg: R.value.table.th.backgroundColor,
739
- isFullscreen: M.value,
740
- fullscreenParent: D.value,
741
- forcedWidth: Math.min(800, window.innerWidth * .8)
742
- } : {
743
- hideDetails: !0,
744
- config: {
745
- open: t,
746
- maxHeight: 1e4,
747
- body: {
748
- backgroundColor: R.value.style.chart.backgroundColor,
749
- color: R.value.style.chart.color
750
- },
751
- head: {
752
- backgroundColor: R.value.style.chart.backgroundColor,
753
- color: R.value.style.chart.color
754
- }
755
- }
756
- }
757
- };
758
- });
759
- Ge(() => H.value.showTable, (e) => {
760
- R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
761
- });
762
- function sr() {
763
- H.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
764
- }
765
- let cr = l(() => R.value.style.chart.backgroundColor), lr = l(() => R.value.style.chart.legend), { exportSvg: ur, getSvg: dr } = ye({
766
- svg: V,
767
- title: l(() => R.value.style.chart.title),
768
- legend: lr,
769
- legendItems: Y,
770
- backgroundColor: cr
771
- });
772
- async function fr({ isCb: e }) {
773
- an.value = !0, await ze();
774
- try {
775
- if (e) {
776
- let { blob: e, url: t, text: n, dataUrl: r } = await dr();
777
- await Promise.resolve(R.value.userOptions.callbacks.svg({
778
- blob: e,
779
- url: t,
780
- text: n,
781
- dataUrl: r
782
- }));
783
- } else await Promise.resolve(ur());
784
- } finally {
785
- an.value = !1;
786
- }
787
- }
788
- function pr(e) {
789
- if (e?.stage === "start") {
790
- rn.value = !0;
791
- return;
792
- }
793
- if (e?.stage === "end") {
794
- rn.value = !1;
795
- return;
796
- }
797
- Dn();
798
- }
799
- async function mr() {
800
- if (mn("copyAlt", {
801
- config: R.value,
802
- dataset: J.value
803
- }), !R.value.userOptions.callbacks.altCopy) {
804
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
805
- return;
806
- }
807
- await Promise.resolve(R.value.userOptions.callbacks.altCopy({
808
- config: R.value,
809
- dataset: J.value
810
- }));
811
- }
812
- let $ = l(() => ({
813
- head: X.value.head,
814
- body: X.value.body.map((e) => [
815
- e[0]?.name || "",
816
- e[1],
817
- e[2],
818
- e[3]
819
- ]),
820
- caption: R.value.a11y.translations.tableCaption,
821
- notice: R.value.a11y.translations.tableAvailable
822
- }));
823
- function hr(e) {
824
- return J.value.findIndex((t) => t.seriesIndex === e);
825
- }
826
- function gr() {
827
- if (I.value !== null && L.value !== null) {
828
- let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
829
- e && Qn({
830
- datapoint: e,
831
- plotIndex: L.value,
832
- seriesIndex: I.value
833
- });
834
- }
835
- I.value = null, L.value = null, dn.value = "pointer", Qt.value = !1, N.value = null;
836
- }
837
- function _r() {
838
- I.value = null, L.value = null, fn.value = !0;
839
- }
840
- function vr() {
841
- gr(), fn.value = !1;
842
- }
843
- function yr(e, t) {
844
- if (!e?.plots?.length) return null;
845
- let n = e.plots.length;
846
- return (t % n + n) % n;
847
- }
848
- function br({ seriesIndex: e, plotIndex: t, direction: n }) {
849
- if (!J.value.length) return null;
850
- let r = hr(e);
851
- if (r === -1) return null;
852
- if (n === "up" || n === "down") {
853
- let e = J.value[r];
854
- if (!e?.plots?.length) return null;
855
- let i = yr(e, t + (n === "up" ? -1 : 1));
856
- return {
857
- seriesIndex: e.seriesIndex,
858
- plotIndex: i
859
- };
860
- }
861
- if (n === "left" || n === "right") {
862
- let e = ((r + (n === "left" ? -1 : 1)) % J.value.length + J.value.length) % J.value.length, i = J.value[e];
863
- if (!i?.plots?.length) return null;
864
- let a = Math.min(t, i.plots.length - 1);
865
- return {
866
- seriesIndex: i.seriesIndex,
867
- plotIndex: a
868
- };
869
- }
870
- return null;
871
- }
872
- function xr(e) {
873
- if (!V.value || Z.value || document.activeElement !== V.value || !J.value.length) return;
874
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", ee = e.key === "Escape";
875
- if (!t && !n && !r && !i && !a && !ee) return;
876
- if (e.preventDefault(), e.stopPropagation(), ee) {
877
- gr();
878
- return;
879
- }
880
- if (a) {
881
- if (I.value === null || L.value === null) return;
882
- let e = J.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
883
- if (!e) return;
884
- Jn({
885
- datapoint: e,
886
- plotIndex: L.value,
887
- seriesIndex: I.value
888
- });
889
- return;
890
- }
891
- let o = null;
892
- if (I.value === null || L.value === null) {
893
- let e = J.value[0];
894
- if (!e?.plots?.length) return;
895
- o = {
896
- seriesIndex: e.seriesIndex,
897
- plotIndex: 0
898
- };
899
- } else r ? o = br({
900
- seriesIndex: I.value,
901
- plotIndex: L.value,
902
- direction: "up"
903
- }) : i ? o = br({
904
- seriesIndex: I.value,
905
- plotIndex: L.value,
906
- direction: "down"
907
- }) : t ? o = br({
908
- seriesIndex: I.value,
909
- plotIndex: L.value,
910
- direction: "left"
911
- }) : n && (o = br({
912
- seriesIndex: I.value,
913
- plotIndex: L.value,
914
- direction: "right"
915
- }));
916
- if (!o) return;
917
- let te = J.value.find((e) => e.seriesIndex === o.seriesIndex)?.plots?.[o.plotIndex];
918
- te && er({
919
- datapoint: te,
920
- plotIndex: o.plotIndex,
921
- seriesIndex: o.seriesIndex,
922
- triggerMode: "keyboard"
923
- });
924
- }
925
- return Te({
926
- getData: ar,
927
- getImage: or,
928
- generatePdf: En,
929
- generateCsv: tr,
930
- generateImage: Dn,
931
- generateSvg: fr,
932
- hideSeries: Kn,
933
- showSeries: Gn,
934
- toggleTable: rr,
935
- toggleTooltip: ir,
936
- toggleAnnotator: nr,
937
- toggleFullscreen: Xn,
938
- copyAlt: mr
939
- }), (e, r) => (y(), f("div", {
940
- id: `history_plot_${A.value}`,
941
- ref_key: "historyPlotChart",
942
- ref: D,
943
- class: g({
944
- "vue-data-ui-component": !0,
945
- "vue-ui-history-plot": !0,
946
- "vue-data-ui-wrapper-fullscreen": M.value
947
- }),
948
- style: v(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
949
- onMouseenter: r[2] ||= () => w(Sn)(!0),
950
- onMouseleave: r[3] ||= () => w(Sn)(!1)
951
- }, [
952
- p("div", {
953
- id: `chart-instructions-${A.value}`,
954
- class: "sr-only"
955
- }, [p("p", null, C(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
956
- $.value.body.length ? (y(), u(ke, {
957
- key: 0,
958
- uid: A.value,
959
- head: $.value.head,
960
- body: $.value.body,
961
- caption: $.value.caption,
962
- notice: $.value.notice
963
- }, null, 8, [
964
- "uid",
965
- "head",
966
- "body",
967
- "caption",
968
- "notice"
969
- ])) : d("", !0),
970
- S(e.$slots, "userConfig", {}, void 0, !0),
971
- R.value.userOptions.buttons.annotator ? (y(), u(w(Rt), {
972
- key: 1,
973
- svgRef: w(V),
974
- backgroundColor: R.value.style.chart.backgroundColor,
975
- color: R.value.style.chart.color,
976
- active: Z.value,
977
- isCursorPointer: z.value,
978
- onClose: nr
979
- }, {
980
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
981
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
982
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
983
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
984
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
985
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
986
- _: 3
987
- }, 8, [
988
- "svgRef",
989
- "backgroundColor",
990
- "color",
991
- "active",
992
- "isCursorPointer"
993
- ])) : d("", !0),
994
- On.value ? (y(), f("div", {
995
- key: 2,
996
- ref_key: "noTitle",
997
- ref: Zt,
998
- class: "vue-data-ui-no-title-space",
999
- style: "height:36px; width: 100%;background:transparent"
1000
- }, null, 512)) : d("", !0),
1001
- R.value.style.chart.title.text ? (y(), f("div", {
1002
- key: 3,
1003
- ref_key: "chartTitle",
1004
- ref: Gt,
1005
- class: "vue-ui-xy-title",
1006
- style: v(`font-family:${R.value.style.fontFamily}`)
1007
- }, [(y(), u(we, {
1008
- key: `title_${Kt.value}`,
1009
- config: {
1010
- title: {
1011
- cy: "history-plot-div-title",
1012
- ...R.value.style.chart.title
1013
- },
1014
- subtitle: {
1015
- cy: "history-plot-div-subtitle",
1016
- ...R.value.style.chart.title.subtitle
1017
- }
1018
- }
1019
- }, null, 8, ["config"]))], 4)) : d("", !0),
1020
- p("div", { id: `legend-top-${A.value}` }, null, 8, Xe),
1021
- R.value.userOptions.show && pn.value && (w(Cn) || w(xn)) ? (y(), u(w(zt), {
1022
- ref_key: "userOptionsRef",
1023
- ref: nn,
1024
- key: `user_option_${Xt.value}`,
1025
- backgroundColor: R.value.style.chart.backgroundColor,
1026
- color: R.value.style.chart.color,
1027
- isPrinting: w(wn),
1028
- isImaging: w(Tn),
1029
- uid: A.value,
1030
- hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
1031
- hasPdf: R.value.userOptions.buttons.pdf,
1032
- hasImg: R.value.userOptions.buttons.img,
1033
- hasSvg: R.value.userOptions.buttons.svg,
1034
- hasXls: R.value.userOptions.buttons.csv,
1035
- hasTable: R.value.userOptions.buttons.table,
1036
- hasLabel: !1,
1037
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
1038
- hasAltCopy: R.value.userOptions.buttons.altCopy,
1039
- isFullscreen: M.value,
1040
- chartElement: D.value,
1041
- position: R.value.userOptions.position,
1042
- isTooltip: H.value.showTooltip,
1043
- titles: { ...R.value.userOptions.buttonTitles },
1044
- hasAnnotator: R.value.userOptions.buttons.annotator,
1045
- isAnnotation: Z.value,
1046
- callbacks: R.value.userOptions.callbacks,
1047
- printScale: R.value.userOptions.print.scale,
1048
- tableDialog: R.value.table.useDialog,
1049
- isCursorPointer: z.value,
1050
- onToggleFullscreen: Xn,
1051
- onGeneratePdf: w(En),
1052
- onGenerateCsv: tr,
1053
- onGenerateImage: pr,
1054
- onGenerateSvg: fr,
1055
- onToggleTable: rr,
1056
- onToggleTooltip: ir,
1057
- onToggleAnnotator: nr,
1058
- onCopyAlt: mr,
1059
- style: v({ visibility: w(Cn) ? w(xn) ? "visible" : "hidden" : "visible" })
1060
- }, Fe({ _: 2 }, [
1061
- e.$slots.menuIcon ? {
1062
- name: "menuIcon",
1063
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
1064
- isOpen: t,
1065
- color: n
1066
- })), void 0, !0)]),
1067
- key: "0"
1068
- } : void 0,
1069
- e.$slots.optionTooltip ? {
1070
- name: "optionTooltip",
1071
- fn: T(() => [S(e.$slots, "optionTooltip", {}, void 0, !0)]),
1072
- key: "1"
1073
- } : void 0,
1074
- e.$slots.optionPdf ? {
1075
- name: "optionPdf",
1076
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
1077
- key: "2"
1078
- } : void 0,
1079
- e.$slots.optionCsv ? {
1080
- name: "optionCsv",
1081
- fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
1082
- key: "3"
1083
- } : void 0,
1084
- e.$slots.optionImg ? {
1085
- name: "optionImg",
1086
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
1087
- key: "4"
1088
- } : void 0,
1089
- e.$slots.optionSvg ? {
1090
- name: "optionSvg",
1091
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
1092
- key: "5"
1093
- } : void 0,
1094
- e.$slots.optionTable ? {
1095
- name: "optionTable",
1096
- fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
1097
- key: "6"
1098
- } : void 0,
1099
- e.$slots.optionFullscreen ? {
1100
- name: "optionFullscreen",
1101
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
1102
- toggleFullscreen: t,
1103
- isFullscreen: n
1104
- })), void 0, !0)]),
1105
- key: "7"
1106
- } : void 0,
1107
- e.$slots.optionAnnotator ? {
1108
- name: "optionAnnotator",
1109
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
1110
- toggleAnnotator: t,
1111
- isAnnotator: n
1112
- })), void 0, !0)]),
1113
- key: "8"
1114
- } : void 0,
1115
- e.$slots.optionAltCopy ? {
1116
- name: "optionAltCopy",
1117
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
1118
- key: "9"
1119
- } : void 0,
1120
- e.$slots["custom-menu-before"] ? {
1121
- name: "custom-menu-before",
1122
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1123
- key: "10"
1124
- } : void 0,
1125
- e.$slots["custom-menu-after"] ? {
1126
- name: "custom-menu-after",
1127
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1128
- key: "11"
1129
- } : void 0
1130
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
1131
- p("div", Ze, [(y(), f("svg", {
1132
- ref_key: "svgRef",
1133
- ref: V,
1134
- xmlns: w(ue),
1135
- viewBox: `0 0 ${U.value.width < 0 ? .1 : U.value.width} ${U.value.height < 0 ? .1 : U.value.height}`,
1136
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
1137
- "aria-describedby": `chart-instructions-${A.value}`,
1138
- tabindex: "0",
1139
- onFocus: _r,
1140
- onBlur: vr,
1141
- onKeydown: xr
1142
- }, [
1143
- Le(w(Bt)),
1144
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
1145
- key: 0,
1146
- x: W.value.left,
1147
- y: W.value.top,
1148
- width: W.value.width <= 0 ? 10 : W.value.width,
1149
- height: W.value.height <= 0 ? 10 : W.value.height,
1150
- style: { pointerEvents: "none" }
1151
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : d("", !0),
1152
- R.value.style.chart.plots.gradient.show ? (y(), f("defs", et, [(y(!0), f(c, null, x(J.value, (e, t) => (y(), f("radialGradient", {
1153
- id: `gradient_${t}_${A.value}`,
1154
- fy: "30%"
1155
- }, [
1156
- p("stop", {
1157
- offset: "10%",
1158
- "stop-color": w(pe)(e.color, R.value.style.chart.plots.gradient.intensity / 100)
1159
- }, null, 8, nt),
1160
- p("stop", {
1161
- offset: "90%",
1162
- "stop-color": w(ie)(e.color, .1)
1163
- }, null, 8, rt),
1164
- p("stop", {
1165
- offset: "100%",
1166
- "stop-color": e.color
1167
- }, null, 8, it)
1168
- ], 8, tt))), 256))])) : d("", !0),
1169
- R.value.style.chart.grid.verticalLines.show ? (y(), f("g", at, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
1170
- x1: e.x,
1171
- x2: e.x,
1172
- y1: e.y1,
1173
- y2: e.y2,
1174
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1175
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1176
- "stroke-linecap": "round"
1177
- }, null, 8, ot))), 256))])) : d("", !0),
1178
- R.value.style.chart.axes.y.labels.show ? (y(), f("g", st, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
1179
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1180
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1181
- "stroke-linecap": "round",
1182
- x1: W.value.left - 5,
1183
- x2: W.value.left,
1184
- y1: e.y,
1185
- y2: e.y
1186
- }, null, 8, ct))), 256))])) : d("", !0),
1187
- R.value.style.chart.axes.y.labels.show ? (y(), f("g", {
1188
- key: 4,
1189
- ref_key: "yAxisScales",
1190
- ref: ln
1191
- }, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("text", {
1192
- x: W.value.left + R.value.style.chart.axes.y.labels.offsetX - 4 - R.value.style.chart.plots.radius,
1193
- y: e.y + G.value.yAxisLabels / 3,
1194
- fill: R.value.style.chart.axes.y.labels.color,
1195
- "font-size": G.value.yAxisLabels,
1196
- "text-anchor": "end"
1197
- }, C(w(s)(R.value.style.chart.axes.y.labels.formatter, e.value, w(n)({
1198
- p: R.value.style.chart.axes.y.labels.prefix,
1199
- v: e.value,
1200
- s: R.value.style.chart.axes.y.labels.suffix,
1201
- r: R.value.style.chart.axes.y.labels.rounding
1202
- }))), 9, lt))), 256))], 512)) : d("", !0),
1203
- R.value.style.chart.axes.y.name.text ? (y(), f("text", {
1204
- key: 5,
1205
- ref_key: "yAxisLabel",
1206
- ref: sn,
1207
- transform: `translate(${G.value.yAxisName}, ${U.value.height / 2 + R.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1208
- "font-size": G.value.yAxisName,
1209
- fill: R.value.style.chart.axes.y.name.color,
1210
- "font-weight": R.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1211
- "text-anchor": "middle"
1212
- }, C(R.value.style.chart.axes.y.name.text), 9, ut)) : d("", !0),
1213
- R.value.style.chart.grid.horizontalLines.show ? (y(), f("g", dt, [(y(!0), f(c, null, x(q.value.tickY, (e) => (y(), f("line", {
1214
- x1: e.x1,
1215
- x2: e.x2,
1216
- y1: e.y,
1217
- y2: e.y,
1218
- stroke: R.value.style.chart.grid.horizontalLines.stroke,
1219
- "stroke-width": R.value.style.chart.grid.horizontalLines.strokeWidth,
1220
- "stroke-linecap": "round"
1221
- }, null, 8, ft))), 256))])) : d("", !0),
1222
- R.value.style.chart.axes.x.labels.show ? (y(), f("g", pt, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("line", {
1223
- stroke: R.value.style.chart.grid.verticalLines.stroke,
1224
- "stroke-width": R.value.style.chart.grid.verticalLines.strokeWidth,
1225
- "stroke-linecap": "round",
1226
- x1: e.x,
1227
- x2: e.x,
1228
- y1: W.value.bottom,
1229
- y2: W.value.bottom + 5
1230
- }, null, 8, mt))), 256))])) : d("", !0),
1231
- R.value.style.chart.axes.x.labels.show ? (y(), f("g", {
1232
- key: 8,
1233
- ref_key: "xAxisScales",
1234
- ref: cn
1235
- }, [(y(!0), f(c, null, x(q.value.tickX, (e) => (y(), f("text", {
1236
- class: "vue-ui-history-plot-x-axis-scale",
1237
- transform: `translate(${e.x}, ${W.value.bottom + R.value.style.chart.axes.x.labels.offsetY + G.value.xAxisLabels + R.value.style.chart.plots.radius}), rotate(${R.value.style.chart.axes.x.labels.rotation})`,
1238
- fill: R.value.style.chart.axes.x.labels.color,
1239
- "font-size": G.value.xAxisLabels,
1240
- "text-anchor": R.value.style.chart.axes.x.labels.rotation > 0 ? "start" : R.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1241
- }, C(w(s)(R.value.style.chart.axes.x.labels.formatter, e.value, w(n)({
1242
- p: R.value.style.chart.axes.x.labels.prefix,
1243
- v: e.value,
1244
- s: R.value.style.chart.axes.x.labels.suffix,
1245
- r: R.value.style.chart.axes.x.labels.rounding
1246
- }))), 9, ht))), 256))], 512)) : d("", !0),
1247
- R.value.style.chart.axes.x.name.text ? (y(), f("text", {
1248
- key: 9,
1249
- ref_key: "xAxisLabel",
1250
- ref: on,
1251
- x: U.value.width / 2 + R.value.style.chart.axes.x.name.offsetX,
1252
- y: U.value.height,
1253
- "font-size": G.value.xAxisName,
1254
- fill: R.value.style.chart.axes.x.name.color,
1255
- "font-weight": R.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1256
- "text-anchor": "middle"
1257
- }, C(R.value.style.chart.axes.x.name.text), 9, gt)) : d("", !0),
1258
- R.value.style.chart.grid.xAxis.show ? (y(), f("line", {
1259
- key: 10,
1260
- x1: W.value.left,
1261
- x2: W.value.left + W.value.width,
1262
- y1: W.value.bottom,
1263
- y2: W.value.bottom,
1264
- stroke: R.value.style.chart.grid.xAxis.stroke,
1265
- "stroke-width": R.value.style.chart.grid.xAxis.strokeWidth,
1266
- "stroke-linecap": "round"
1267
- }, null, 8, _t)) : d("", !0),
1268
- R.value.style.chart.grid.yAxis.show ? (y(), f("line", {
1269
- key: 11,
1270
- x1: W.value.left,
1271
- x2: W.value.left,
1272
- y1: W.value.top,
1273
- y2: W.value.bottom,
1274
- stroke: R.value.style.chart.grid.yAxis.stroke,
1275
- "stroke-width": R.value.style.chart.grid.yAxis.strokeWidth,
1276
- "stroke-linecap": "round"
1277
- }, null, 8, vt)) : d("", !0),
1278
- (y(!0), f(c, null, x(J.value, (e, n) => (y(), f("g", null, [
1279
- R.value.style.chart.paths.show ? (y(), f("g", {
1280
- key: 0,
1281
- style: v({ opacity: N.value === null ? 1 : .3 })
1282
- }, [p("path", {
1283
- d: e.path,
1284
- stroke: R.value.style.chart.backgroundColor,
1285
- "stroke-width": R.value.style.chart.paths.strokeWidth + 4,
1286
- fill: "none",
1287
- "stroke-linecap": "round",
1288
- "stroke-linejoin": "round",
1289
- class: g({ animated: R.value.useCssAnimation && !w(B) })
1290
- }, null, 10, yt), p("path", {
1291
- d: e.path,
1292
- stroke: R.value.style.chart.paths.useSerieColor ? e.color : R.value.style.chart.paths.stroke,
1293
- "stroke-width": R.value.style.chart.paths.strokeWidth,
1294
- fill: "none",
1295
- "stroke-linecap": "round",
1296
- "stroke-linejoin": "round",
1297
- class: g({ animated: R.value.useCssAnimation && !w(B) })
1298
- }, null, 10, bt)], 4)) : d("", !0),
1299
- (y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
1300
- cx: e.x,
1301
- cy: e.y,
1302
- fill: R.value.style.chart.backgroundColor,
1303
- r: G.value.plots,
1304
- stroke: "none"
1305
- }, null, 8, xt))), 256)),
1306
- (y(!0), f(c, null, x(e.plots, (e) => (y(), f("circle", {
1307
- cx: e.x,
1308
- cy: e.y,
1309
- fill: R.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${A.value})` : e.color,
1310
- r: G.value.plots,
1311
- stroke: R.value.style.chart.plots.stroke,
1312
- "stroke-width": R.value.style.chart.plots.strokeWidth,
1313
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1314
- style: v({
1315
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1316
- transition: "opacity 0.2s ease-in-out"
1317
- })
1318
- }, null, 14, St))), 256)),
1319
- R.value.style.chart.plots.labels.show ? (y(), f("g", Ct, [(y(!0), f(c, null, x(e.plots, (e) => (y(), f("g", null, [String(e.label).includes("\n") ? (y(), f("text", {
1320
- key: 1,
1321
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1322
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
1323
- "font-size": G.value.labels,
1324
- fill: R.value.style.chart.plots.labels.color,
1325
- "font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
1326
- "text-anchor": "middle",
1327
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1328
- style: v({
1329
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1330
- transition: "opacity 0.2s ease-in-out"
1331
- }),
1332
- innerHTML: w(t)({
1333
- content: String(e.label),
1334
- fontSize: G.value.labels,
1335
- fill: R.value.style.chart.plots.labels.color,
1336
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1337
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels
1338
- })
1339
- }, null, 14, Tt)) : (y(), f("text", {
1340
- key: 0,
1341
- x: e.x + R.value.style.chart.plots.labels.offsetX,
1342
- y: e.y + R.value.style.chart.plots.labels.offsetY + G.value.plots + G.value.labels,
1343
- "font-size": G.value.labels,
1344
- fill: R.value.style.chart.plots.labels.color,
1345
- "font-weight": R.value.style.chart.plots.labels.bold ? "bold" : "normal",
1346
- "text-anchor": "middle",
1347
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1348
- style: v({
1349
- opacity: N.value === null || N.value.id === e.id ? 1 : .3,
1350
- transition: "opacity 0.2s ease-in-out"
1351
- })
1352
- }, C(e.label), 15, wt))]))), 256))])) : d("", !0),
1353
- R.value.style.chart.plots.indexLabels.show ? (y(), f("g", Et, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("text", {
1354
- x: t.x + R.value.style.chart.plots.indexLabels.offsetX,
1355
- y: t.y + R.value.style.chart.plots.indexLabels.offsetY + G.value.indexLabels / 3,
1356
- "font-size": G.value.indexLabels,
1357
- "font-weight": R.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1358
- fill: R.value.style.chart.plots.indexLabels.adaptColorToBackground ? w(le)(e.color) : R.value.style.chart.plots.indexLabels.color,
1359
- "text-anchor": "middle",
1360
- class: g({ animated: R.value.useCssAnimation && !w(B) }),
1361
- style: v({
1362
- opacity: N.value === null || N.value.id === t.id ? 1 : .3,
1363
- transition: "opacity 0.2s ease-in-out"
1364
- })
1365
- }, C(R.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Dt))), 256))])) : d("", !0)
1366
- ]))), 256)),
1367
- (y(!0), f(c, null, x(J.value, (e) => (y(), f("g", null, [(y(!0), f(c, null, x(e.plots, (t, n) => (y(), f("circle", {
1368
- cx: t.x,
1369
- cy: t.y,
1370
- fill: "transparent",
1371
- r: G.value.plots,
1372
- stroke: "none",
1373
- onMouseenter: (r) => er({
1374
- datapoint: t,
1375
- plotIndex: n,
1376
- seriesIndex: e.seriesIndex,
1377
- triggerMode: "pointer"
1378
- }),
1379
- onMouseleave: (r) => Qn({
1380
- datapoint: t,
1381
- plotIndex: n,
1382
- seriesIndex: e.seriesIndex
1383
- }),
1384
- onClick: (r) => Jn({
1385
- datapoint: t,
1386
- plotIndex: n,
1387
- seriesIndex: e.seriesIndex
1388
- })
1389
- }, null, 40, Ot))), 256))]))), 256)),
1390
- S(e.$slots, "svg", { svg: {
1391
- ...U.value,
1392
- drawingArea: W.value,
1393
- isPrintingImg: w(wn) || w(Tn) || rn.value,
1394
- isPrintingSvg: an.value
1395
- } }, void 0, !0)
1396
- ], 44, Qe)), e.$slots.hint ? (y(), f("div", kt, [S(e.$slots, "hint", _(h({
1397
- hint: R.value.a11y.translations.keyboardNavigation,
1398
- isVisible: fn.value
1399
- })), void 0, !0)])) : d("", !0)]),
1400
- e.$slots.watermark ? (y(), f("div", At, [S(e.$slots, "watermark", _(h({ isPrinting: w(wn) || w(Tn) || rn.value || an.value })), void 0, !0)])) : d("", !0),
1401
- p("div", { id: `legend-bottom-${A.value}` }, null, 8, jt),
1402
- tn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(Pe, {
1403
- key: 6,
1404
- to: R.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1405
- }, [p("div", {
1406
- ref_key: "chartLegend",
1407
- ref: qt
1408
- }, [S(e.$slots, "legend", { legend: Y.value }, () => [R.value.style.chart.legend.show && pn.value ? (y(), u(Me, {
1409
- key: `legend_${Jt.value}`,
1410
- legendSet: Y.value,
1411
- config: qn.value,
1412
- isCursorPointer: z.value,
1413
- onClickMarker: r[0] ||= ({ legend: e }) => {
1414
- Un(e.seriesIndex), Yn(e);
1415
- }
1416
- }, {
1417
- item: T(({ legend: e, index: t }) => [p("div", {
1418
- onClick: (t) => {
1419
- e.segregate(), Yn(e);
1420
- },
1421
- style: v(`opacity:${j.value.includes(e.seriesIndex) ? .5 : 1}`)
1422
- }, C(e.name), 13, Mt)]),
1423
- legendToggle: T(() => [Y.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !w(B) ? (y(), u(Oe, {
1424
- key: 0,
1425
- backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
1426
- color: R.value.style.chart.legend.selectAllToggle.color,
1427
- fontSize: R.value.style.chart.legend.fontSize,
1428
- checked: j.value.length > 0,
1429
- isCursorPointer: z.value,
1430
- onToggle: Hn
1431
- }, null, 8, [
1432
- "backgroundColor",
1433
- "color",
1434
- "fontSize",
1435
- "checked",
1436
- "isCursorPointer"
1437
- ])) : d("", !0)]),
1438
- _: 1
1439
- }, 8, [
1440
- "legendSet",
1441
- "config",
1442
- "isCursorPointer"
1443
- ])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
1444
- e.$slots.source ? (y(), f("div", {
1445
- key: 7,
1446
- ref_key: "source",
1447
- ref: en,
1448
- dir: "auto"
1449
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
1450
- Le(w(Pt), {
1451
- teleportTo: R.value.style.chart.tooltip.teleportTo,
1452
- show: H.value.showTooltip && Qt.value,
1453
- backgroundColor: R.value.style.chart.tooltip.backgroundColor,
1454
- color: R.value.style.chart.tooltip.color,
1455
- fontSize: R.value.style.chart.tooltip.fontSize,
1456
- borderRadius: R.value.style.chart.tooltip.borderRadius,
1457
- borderColor: R.value.style.chart.tooltip.borderColor,
1458
- borderWidth: R.value.style.chart.tooltip.borderWidth,
1459
- backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
1460
- position: R.value.style.chart.tooltip.position,
1461
- offsetX: R.value.style.chart.tooltip.offsetX,
1462
- offsetY: R.value.style.chart.tooltip.offsetY,
1463
- parent: D.value,
1464
- content: $t.value,
1465
- isCustom: P.value,
1466
- isFullscreen: M.value,
1467
- smooth: R.value.style.chart.tooltip.smooth,
1468
- backdropFilter: R.value.style.chart.tooltip.backdropFilter,
1469
- smoothForce: R.value.style.chart.tooltip.smoothForce,
1470
- smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
1471
- isA11yMode: dn.value === "keyboard",
1472
- a11yPosition: un.value
1473
- }, {
1474
- "tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...Zn.value })), void 0, !0)]),
1475
- tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...Zn.value })), void 0, !0)]),
1476
- "tooltip-after": T(() => [S(e.$slots, "tooltip-after", _(h({ ...Zn.value })), void 0, !0)]),
1477
- _: 3
1478
- }, 8, [
1479
- "teleportTo",
1480
- "show",
1481
- "backgroundColor",
1482
- "color",
1483
- "fontSize",
1484
- "borderRadius",
1485
- "borderColor",
1486
- "borderWidth",
1487
- "backgroundOpacity",
1488
- "position",
1489
- "offsetX",
1490
- "offsetY",
1491
- "parent",
1492
- "content",
1493
- "isCustom",
1494
- "isFullscreen",
1495
- "smooth",
1496
- "backdropFilter",
1497
- "smoothForce",
1498
- "smoothSnapThreshold",
1499
- "isA11yMode",
1500
- "a11yPosition"
1501
- ]),
1502
- pn.value && R.value.userOptions.buttons.table ? (y(), u(He(Q.value.component), Re({ key: 8 }, Q.value.props, {
1503
- ref_key: "tableUnit",
1504
- ref: F,
1505
- onClose: sr
1506
- }), Fe({
1507
- content: T(() => [(y(), u(w(Lt), {
1508
- key: `table_${Yt.value}`,
1509
- colNames: X.value.colNames,
1510
- head: X.value.head,
1511
- body: X.value.body,
1512
- config: X.value.config,
1513
- title: R.value.table.useDialog ? "" : Q.value.title,
1514
- withCloseButton: !R.value.table.useDialog,
1515
- isCursorPointer: z.value,
1516
- onClose: sr
1517
- }, {
1518
- th: T(({ th: e }) => [p("div", {
1519
- innerHTML: e,
1520
- style: {
1521
- display: "flex",
1522
- "align-items": "center"
1523
- }
1524
- }, null, 8, Nt)]),
1525
- td: T(({ td: e }) => [Ie(C(e.name || e), 1)]),
1526
- _: 1
1527
- }, 8, [
1528
- "colNames",
1529
- "head",
1530
- "body",
1531
- "config",
1532
- "title",
1533
- "withCloseButton",
1534
- "isCursorPointer"
1535
- ]))]),
1536
- _: 2
1537
- }, [R.value.table.useDialog ? {
1538
- name: "title",
1539
- fn: T(() => [Ie(C(Q.value.title), 1)]),
1540
- key: "0"
1541
- } : void 0, R.value.table.useDialog ? {
1542
- name: "actions",
1543
- fn: T(() => [p("button", {
1544
- tabindex: "0",
1545
- class: "vue-ui-user-options-button",
1546
- onClick: r[1] ||= (e) => tr(R.value.userOptions.callbacks.csv),
1547
- style: v({ cursor: z.value ? "pointer" : "default" })
1548
- }, [Le(w(Ft), {
1549
- name: "fileCsv",
1550
- stroke: Q.value.props.color
1551
- }, null, 8, ["stroke"])], 4)]),
1552
- key: "1"
1553
- } : void 0]), 1040)) : d("", !0),
1554
- S(e.$slots, "skeleton", {}, () => [w(B) ? (y(), u(ve, { key: 0 })) : d("", !0)], !0)
1555
- ], 46, Je));
1556
- }
1557
- }, [["__scopeId", "data-v-454f95a6"]]);
1558
- //#endregion
1559
- export { qe as n, Pt as t };