vue-data-ui 3.27.0 → 3.27.1-beta.0

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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1710 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, D as r, Dt as i, Et as a, Ft as o, Ht as s, J as c, Q as ee, S as te, T as ne, X as re, _ as ie, at as ae, en as oe, et as se, i as l, nn as ce, nt as le, qt as ue, r as de, t as fe, tn as u, w as pe, yt as me, zt as he } from "./lib-D4wK6ljP.js";
3
- import { n as ge, t as _e } from "./useHints-Dq_w2E8B.js";
4
- import { t as ve } from "./useConfig-D_6ZrPMD.js";
5
- import { t as ye } from "./usePrinter-DdW2GSm0.js";
6
- import { n as be, t as xe } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as Se } from "./useNestedProp-DR_8JPol.js";
8
- import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as we } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Te } from "./useTransitions-g_zBREk2.js";
11
- import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as De } from "./img-Bb5rHcpO.js";
13
- import { n as Oe } from "./Title-BMCuINbv.js";
14
- import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
16
- import { t as Me } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Ne } from "./BaseLegendToggle-CP3sddwv.js";
18
- import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Le } from "./Legend-CulFgjUY.js";
22
- import { t as Re } from "./vue_ui_history_plot-CuN63VEc.js";
23
- import { Fragment as d, Teleport as ze, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ue, nextTick as We, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ge, onMounted as Ke, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as E, toRefs as Ye, unref as D, watch as Xe, watchEffect as Ze, withCtx as O } from "vue";
24
- //#region src/components/vue-ui-history-plot.vue
25
- var Qe = /* @__PURE__ */ e({ default: () => Lt }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
26
- "xmlns",
27
- "viewBox",
28
- "aria-describedby"
29
- ], it = [
30
- "x",
31
- "y",
32
- "width",
33
- "height"
34
- ], at = { key: 1 }, ot = [
35
- "id",
36
- "x1",
37
- "y1",
38
- "x2",
39
- "y2"
40
- ], st = ["stop-color", "offset"], ct = { key: 2 }, lt = [
41
- "x1",
42
- "x2",
43
- "y1",
44
- "y2",
45
- "stroke",
46
- "stroke-width"
47
- ], ut = { key: 3 }, dt = [
48
- "stroke",
49
- "stroke-width",
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2"
54
- ], ft = [
55
- "x",
56
- "y",
57
- "fill",
58
- "font-size"
59
- ], pt = [
60
- "transform",
61
- "font-size",
62
- "fill",
63
- "font-weight"
64
- ], mt = { key: 6 }, ht = [
65
- "x1",
66
- "x2",
67
- "y1",
68
- "y2",
69
- "stroke",
70
- "stroke-width"
71
- ], gt = { key: 7 }, _t = [
72
- "stroke",
73
- "stroke-width",
74
- "x1",
75
- "x2",
76
- "y1",
77
- "y2"
78
- ], vt = [
79
- "transform",
80
- "fill",
81
- "font-size",
82
- "text-anchor"
83
- ], yt = [
84
- "x",
85
- "y",
86
- "font-size",
87
- "fill",
88
- "font-weight"
89
- ], bt = [
90
- "x1",
91
- "x2",
92
- "y1",
93
- "y2",
94
- "stroke",
95
- "stroke-width"
96
- ], xt = [
97
- "x1",
98
- "x2",
99
- "y1",
100
- "y2",
101
- "stroke",
102
- "stroke-width"
103
- ], St = [
104
- "d",
105
- "stroke",
106
- "stroke-width"
107
- ], Ct = [
108
- "d",
109
- "stroke",
110
- "stroke-width"
111
- ], wt = [
112
- "cx",
113
- "cy",
114
- "fill",
115
- "r"
116
- ], Tt = [
117
- "cx",
118
- "cy",
119
- "fill",
120
- "r",
121
- "stroke",
122
- "stroke-width"
123
- ], Et = { key: 1 }, Dt = [
124
- "transform",
125
- "font-size",
126
- "fill",
127
- "font-weight"
128
- ], Ot = [
129
- "transform",
130
- "font-size",
131
- "fill",
132
- "font-weight",
133
- "innerHTML"
134
- ], kt = { key: 2 }, At = [
135
- "transform",
136
- "font-size",
137
- "font-weight",
138
- "fill"
139
- ], jt = [
140
- "cx",
141
- "cy",
142
- "r",
143
- "onMouseenter",
144
- "onMouseleave",
145
- "onClick"
146
- ], Mt = {
147
- key: 0,
148
- style: {
149
- position: "absolute",
150
- top: "100%",
151
- left: "0",
152
- width: "100%"
153
- },
154
- "data-dom-to-png-ignore": "",
155
- "aria-hidden": "true"
156
- }, Nt = {
157
- key: 5,
158
- class: "vue-data-ui-watermark"
159
- }, Pt = ["id"], Ft = ["onClick"], It = { style: {
160
- display: "flex",
161
- "align-items": "center"
162
- } }, Lt = /*#__PURE__*/ ke({
163
- __name: "vue-ui-history-plot",
164
- props: {
165
- config: {
166
- type: Object,
167
- default() {
168
- return {};
169
- }
170
- },
171
- dataset: {
172
- type: Array,
173
- default() {
174
- return [];
175
- }
176
- }
177
- },
178
- emits: [
179
- "selectLegend",
180
- "selectDatapoint",
181
- "copyAlt"
182
- ],
183
- setup(e, { expose: ke, emit: Qe }) {
184
- let Lt = _(() => import("./Tooltip-C4ZTwkLF.js")), Rt = _(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), zt = _(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Bt = _(() => import("./DataTable-CjF_An2h.js")), Vt = _(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ht = _(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Ut = _(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Wt = _(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_history_plot: Gt } = ve(), { isThemeValid: Kt, warnInvalidTheme: qt } = Ce(), k = e, A = C(null), Jt = C(null), Yt = C(0), Xt = C(null), Zt = C(0), Qt = C(0), $t = C(0), j = Je(null), M = Je(null), en = C(null), N = C(re()), tn = C(!1), nn = C(""), P = C([]), rn = C(!1), F = C(null), an = C(!1), on = C(null), sn = C(!1), cn = C(null), ln = C(null), un = C(null), dn = C(null), fn = C(null), pn = C(null), I = C(null), L = C(null), mn = C({
185
- x: 0,
186
- y: 0
187
- }), hn = C("pointer"), gn = C(!1), _n = f({
188
- get: () => !!k.dataset && k.dataset.length,
189
- set: (e) => e
190
- }), vn = Qe;
191
- Ke(() => {
192
- sn.value = !0, bn();
193
- });
194
- let yn = f(() => R.value.debug);
195
- function bn() {
196
- if (he(k.dataset) ? (ae({
197
- componentName: "VueUiHistoryPlot",
198
- type: "dataset",
199
- debug: yn.value
200
- }), Tn.value = !0) : k.dataset.forEach((e, t) => {
201
- me({
202
- datasetObject: e,
203
- requiredAttributes: ["name", "values"]
204
- }).forEach((e) => {
205
- _n.value = !1, ae({
206
- componentName: "VueUiHistoryPlot",
207
- type: "datasetSerieAttribute",
208
- property: e,
209
- index: t,
210
- debug: yn.value
211
- });
212
- });
213
- }), he(k.dataset) || (Tn.value = R.value.loading), R.value.responsive) {
214
- let e = Ae(() => {
215
- let { width: e, height: t } = je({
216
- chart: A.value,
217
- title: H.value.title.text ? Jt.value : null,
218
- noTitle: en.value,
219
- legend: H.value.legend.show ? Xt.value : null,
220
- source: on.value
221
- });
222
- requestAnimationFrame(() => {
223
- q.value.width = e, q.value.height = t, R.value.responsiveProportionalSizing ? (Y.value.plots = u({
224
- relator: Math.min(e, t),
225
- adjuster: 600,
226
- source: z.value.radius,
227
- threshold: 3,
228
- fallback: 3
229
- }), Y.value.indexLabels = u({
230
- relator: Math.min(e, t),
231
- adjuster: 600,
232
- source: z.value.indexLabels.fontSize,
233
- threshold: 6,
234
- fallback: 6
235
- }), Y.value.labels = u({
236
- relator: Math.min(e, t),
237
- adjuster: 600,
238
- source: z.value.labels.fontSize,
239
- threshold: 6,
240
- fallback: 6
241
- }), Y.value.xAxisLabels = u({
242
- relator: Math.min(e, t),
243
- adjuster: 600,
244
- source: V.value.x.labels.fontSize,
245
- threshold: 6,
246
- fallback: 6
247
- }), Y.value.xAxisName = u({
248
- relator: Math.min(e, t),
249
- adjuster: 600,
250
- source: V.value.x.name.fontSize,
251
- threshold: 6,
252
- fallback: 6
253
- }), Y.value.yAxisLabels = u({
254
- relator: Math.min(e, t),
255
- adjuster: 600,
256
- source: V.value.y.labels.fontSize,
257
- threshold: 6,
258
- fallback: 6
259
- }), Y.value.yAxisName = u({
260
- relator: Math.min(e, t),
261
- adjuster: 600,
262
- source: V.value.y.name.fontSize,
263
- threshold: 6,
264
- fallback: 6
265
- })) : (Y.value.plots = z.value.radius, Y.value.indexLabels = z.value.indexLabels.fontSize, Y.value.labels = z.value.labels.fontSize, Y.value.xAxisLabels = V.value.x.labels.fontSize, Y.value.xAxisName = V.value.x.name.fontSize, Y.value.yAxisLabels = V.value.y.labels.fontSize, Y.value.yAxisName = V.value.y.name.fontSize);
266
- });
267
- });
268
- j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = A.value.parentNode, j.value.observe(M.value);
269
- }
270
- }
271
- Ge(() => {
272
- j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
273
- });
274
- function xn() {
275
- let e = Se({
276
- userConfig: k.config,
277
- defaultConfig: Gt
278
- }), t = {}, n = e.theme;
279
- if (n) {
280
- if (!Kt.value(e)) qt(e), t = e;
281
- else {
282
- let r = Se({
283
- userConfig: Re[n] || k.config,
284
- defaultConfig: e
285
- });
286
- t = {
287
- ...Se({
288
- userConfig: k.config,
289
- defaultConfig: r
290
- }),
291
- customPalette: e.customPalette.length ? e.customPalette : oe[n] || s
292
- };
293
- }
294
- } else t = e;
295
- return t;
296
- }
297
- let R = C(xn()), z = f(() => R.value.style.chart.plots), B = f(() => R.value.style.chart.grid), V = f(() => R.value.style.chart.axes), H = f(() => R.value.style.chart);
298
- ge({
299
- config: () => R.value,
300
- dataset: () => k.dataset,
301
- component: "VueUiHistoryPlot",
302
- rules: [_e.emptyArray, {
303
- test: (e) => e.length > 6,
304
- message: [
305
- "👀 The number of series is > 6. Consider:",
306
- "",
307
- "▶️ Using filters to let users choose a maximum number of series to display."
308
- ]
309
- }]
310
- });
311
- let { transitionEnabled: U } = Te({
312
- config: () => R.value.transitions,
313
- dataset: () => k.dataset
314
- }), W = f(() => R.value.userOptions.useCursorPointer), Sn = f(() => ce({
315
- defaultConfig: {
316
- userOptions: { show: !1 },
317
- table: { show: !1 },
318
- style: { chart: {
319
- backgroundColor: "#99999930",
320
- axes: {
321
- x: {
322
- scaleMin: 0,
323
- scaleMax: 10,
324
- labels: { show: !1 },
325
- name: { text: "" }
326
- },
327
- y: {
328
- scaleMin: 0,
329
- scaleMax: 10,
330
- labels: { show: !1 },
331
- name: { text: "" }
332
- }
333
- },
334
- grid: {
335
- xAxis: { stroke: "#6A6A6A" },
336
- horizontalLines: { stroke: "#6A6A6A50" },
337
- yAxis: { stroke: "#6A6A6A" },
338
- verticalLines: { stroke: "#6A6A6A50" }
339
- },
340
- legend: { backgroundColor: "transparent" },
341
- paths: {
342
- useSerieColor: !1,
343
- stroke: "#6A6A6A"
344
- },
345
- plots: {
346
- stroke: "#6A6A6A",
347
- indexLabels: { show: !1 },
348
- labels: { show: !1 }
349
- }
350
- } }
351
- },
352
- userConfig: R.value.skeletonConfig ?? {}
353
- })), { loading: Cn, FINAL_DATASET: wn, manualLoading: Tn } = be({
354
- ...Ye(k),
355
- FINAL_CONFIG: R,
356
- prepareConfig: xn,
357
- skeletonDataset: k.config?.skeletonDataset ?? [{
358
- name: "",
359
- color: "#CACACA",
360
- values: [
361
- {
362
- label: "",
363
- x: 1,
364
- y: 9
365
- },
366
- {
367
- label: "",
368
- x: 4,
369
- y: 1
370
- },
371
- {
372
- label: "",
373
- x: 7,
374
- y: 9
375
- },
376
- {
377
- label: "",
378
- x: 9,
379
- y: 4
380
- }
381
- ]
382
- }],
383
- skeletonConfig: ce({
384
- defaultConfig: R.value,
385
- userConfig: Sn.value
386
- })
387
- }), { userOptionsVisible: En, setUserOptionsVisibility: Dn, keepUserOptionState: On } = Fe({ config: R.value }), { svgRef: G } = Ie({ config: H.value.title });
388
- function kn(e) {
389
- let t = se(e);
390
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
391
- }
392
- let An = kn(k.config);
393
- Xe(() => k.config, (e, t) => {
394
- let n = kn(e), r = n !== An;
395
- An = n;
396
- let i = xn();
397
- if (!r) {
398
- R.value.style.chart.tooltip = i.style.chart.tooltip, K.value.showTooltip = R.value.style.chart.tooltip.show;
399
- return;
400
- }
401
- Cn.value || (R.value = i), En.value = !R.value.userOptions.showOnChartHover, bn(), Yt.value += 1, Qt.value += 1, Zt.value += 1, q.value.height = H.value.height, q.value.width = H.value.width, Y.value.plots = z.value.radius, Y.value.indexLabels = z.value.indexLabels.fontSize, Y.value.labels = z.value.labels.fontSize, Y.value.xAxisLabels = V.value.x.labels.fontSize, Y.value.xAxisName = V.value.x.name.fontSize, Y.value.yAxisLabels = V.value.y.labels.fontSize, Y.value.yAxisName = V.value.y.name.fontSize, K.value.showTable = R.value.table.show, K.value.showTooltip = H.value.tooltip.show;
402
- }, { deep: !0 }), Xe(() => k.dataset, (e) => {
403
- Array.isArray(e) && e.length > 0 && (Tn.value = !1);
404
- }, { deep: !0 });
405
- let { isPrinting: jn, isImaging: Mn, generatePdf: Nn, generateImage: Pn } = ye({
406
- elementId: `history_plot_${N.value}`,
407
- fileName: H.value.title.text || "vue-ui-history-plot",
408
- options: R.value.userOptions.print
409
- }), Fn = f(() => R.value.userOptions.show && !H.value.title.text), In = f(() => pe(R.value.customPalette)), K = C({
410
- showTable: R.value.table.show,
411
- showTooltip: H.value.tooltip.show
412
- });
413
- Xe(R, () => {
414
- K.value = {
415
- showTable: R.value.table.show,
416
- showTooltip: H.value.tooltip.show
417
- };
418
- }, { immediate: !0 });
419
- let q = C({
420
- height: H.value.height,
421
- width: H.value.width
422
- }), Ln = f(() => q.value.width), Rn = f(() => q.value.height);
423
- function zn() {
424
- let e = 0;
425
- pn.value && (e = Array.from(pn.value.querySelectorAll("text")).reduce((e, t) => {
426
- let n = t.getComputedTextLength();
427
- return n > e ? n : e;
428
- }, 0));
429
- let t = dn.value ? dn.value.getBoundingClientRect().width : 0;
430
- return e + t + (t ? 24 : 0);
431
- }
432
- let Bn = C(0), Vn = Ae((e) => {
433
- Bn.value = e;
434
- });
435
- Ze((e) => {
436
- let t = fn.value;
437
- if (!t) return;
438
- let n = new ResizeObserver((e) => {
439
- Vn(e[0].contentRect.height);
440
- });
441
- n.observe(t), e(() => n.disconnect());
442
- });
443
- let Hn = f(() => {
444
- let e = 0;
445
- un.value && (e = un.value.getBBox().height + Y.value.xAxisName / 2);
446
- let t = 0;
447
- return fn.value && (t = Bn.value), e + t;
448
- }), J = f(() => {
449
- let e = H.value.padding.left, t = H.value.padding.top, n = zn(), r = z.value.radius;
450
- return {
451
- left: e + n + V.value.y.name.offsetX,
452
- top: t + r,
453
- right: q.value.width - H.value.padding.right - r - V.value.y.name.offsetX,
454
- bottom: q.value.height - H.value.padding.bottom - Hn.value - r - V.value.x.name.offsetY,
455
- width: q.value.width - e - H.value.padding.right - n - r - V.value.y.name.offsetX,
456
- height: q.value.height - t - H.value.padding.bottom - Hn.value - r * 2 - V.value.x.name.offsetY
457
- };
458
- }), Y = C({
459
- plots: z.value.radius,
460
- indexLabels: z.value.indexLabels.fontSize,
461
- labels: z.value.labels.fontSize,
462
- xAxisLabels: V.value.x.labels.fontSize,
463
- xAxisName: V.value.x.name.fontSize,
464
- yAxisLabels: V.value.y.labels.fontSize,
465
- yAxisName: V.value.y.name.fontSize
466
- }), X = f(() => wn.value.map((e, t) => {
467
- let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => te(e)) : void 0;
468
- return {
469
- ...e,
470
- color: e.color ? te(e.color) : In.value[t] || s[t] || s[t % s.length],
471
- temperatureColors: n,
472
- temperatureAngle: Un(e.temperatureAngle),
473
- temperatureIndependant: e.temperatureIndependant === !0,
474
- usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
475
- seriesIndex: t
476
- };
477
- }));
478
- function Un(e = 0) {
479
- let t = Number(e);
480
- return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
481
- }
482
- let Wn = f(() => Math.max(...X.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Gn = f(() => {
483
- let e = Math.min(...X.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
484
- return e < 0 ? e : 0;
485
- }), Kn = f(() => Math.max(...X.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), qn = f(() => {
486
- let e = Math.min(...X.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
487
- return e < 0 ? e : 0;
488
- }), Z = f(() => {
489
- let e = ie(V.value.x.scaleMin ?? Gn.value, V.value.x.scaleMax ?? Wn.value, V.value.x.ticks), t = ie(V.value.y.scaleMin ?? qn.value, V.value.y.scaleMax ?? Kn.value, V.value.y.ticks);
490
- return {
491
- x: e,
492
- y: t,
493
- tickX: e.ticks.map((t) => ({
494
- x: J.value.left + (t - e.min) / (e.max - e.min) * J.value.width,
495
- y1: J.value.top,
496
- y2: J.value.bottom,
497
- value: t
498
- })),
499
- tickY: t.ticks.map((e) => ({
500
- y: J.value.bottom - (e - t.min) / (t.max - t.min) * J.value.height,
501
- x1: J.value.left,
502
- x2: J.value.right,
503
- value: e
504
- }))
505
- };
506
- });
507
- function Jn(e) {
508
- let t = Z.value.x.min < 0 ? Math.abs(Z.value.x.min) : Z.value.x.min > 0 ? -Z.value.x.min : 0;
509
- return J.value.left + ((e || 0) + t) / (Z.value.x.max + t) * J.value.width;
510
- }
511
- function Yn(e) {
512
- let t = Z.value.y.min < 0 ? Math.abs(Z.value.y.min) : Z.value.y.min > 0 ? -Z.value.y.min : 0;
513
- return J.value.bottom - ((e || 0) + t) / (Z.value.y.max + t) * J.value.height;
514
- }
515
- let Q = f(() => X.value.filter((e) => !P.value.includes(e.seriesIndex)).map((e, t) => {
516
- let n = e.values.map((t, n) => ({
517
- valueX: t.x,
518
- valueY: t.y,
519
- label: t.label,
520
- x: Jn(t.x),
521
- y: Yn(t.y),
522
- color: e.color,
523
- seriesName: e.name,
524
- id: re()
525
- })), r = e.smooth ? ne(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
526
- return {
527
- ...e,
528
- gradientIndex: t,
529
- plots: n,
530
- path: `M${r}`
531
- };
532
- })), Xn = f(() => {
533
- if (F.value === null || I.value === null) return Q.value;
534
- let e = Q.value.findIndex((e) => e.seriesIndex === I.value);
535
- if (e === -1) return Q.value;
536
- let t = Q.value[e];
537
- return [
538
- ...Q.value.slice(0, e),
539
- ...Q.value.slice(e + 1),
540
- t
541
- ];
542
- }), Zn = f(() => Q.value.some((e) => Qn(e)));
543
- function Qn(e) {
544
- return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
545
- }
546
- function $n(e) {
547
- return Qn(e) && e.usePlotTemperatureColors;
548
- }
549
- function er(e) {
550
- let t = Array.isArray(e?.plots) ? e.plots : [];
551
- if (!t.length) return {
552
- minX: 0,
553
- maxX: 0,
554
- minY: 0,
555
- maxY: 0,
556
- width: 0,
557
- height: 0
558
- };
559
- let n = t.map((e) => e.x), r = t.map((e) => e.y), i = Math.min(...n), a = Math.max(...n), o = Math.min(...r), s = Math.max(...r);
560
- return {
561
- minX: i,
562
- maxX: a,
563
- minY: o,
564
- maxY: s,
565
- width: a - i,
566
- height: s - o
567
- };
568
- }
569
- function tr() {
570
- let e = J.value;
571
- return {
572
- minX: e.left,
573
- maxX: e.right,
574
- minY: e.top,
575
- maxY: e.bottom,
576
- width: e.width,
577
- height: e.height
578
- };
579
- }
580
- function nr(e) {
581
- return e?.temperatureIndependant ? er(e) : tr();
582
- }
583
- function rr(e) {
584
- let t = Un(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = nr(e), a = i.minX + i.width / 2, o = i.minY + i.height / 2, s = (Math.abs(n) * i.width + Math.abs(r) * i.height) / 2 || 1;
585
- return {
586
- x1: a - n * s,
587
- y1: o - r * s,
588
- x2: a + n * s,
589
- y2: o + r * s
590
- };
591
- }
592
- function ir(e, t) {
593
- let { x1: n, y1: r, x2: i, y2: a } = rr(e), o = i - n, s = a - r, c = o * o + s * s;
594
- if (!c) return 0;
595
- let ee = ((t.x - n) * o + (t.y - r) * s) / c;
596
- return Math.min(1, Math.max(0, ee));
597
- }
598
- function $(e, t) {
599
- return a({
600
- colors: e.temperatureColors,
601
- ratio: ir(e, t)
602
- });
603
- }
604
- function ar(e, t) {
605
- return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`;
606
- }
607
- function or(e, t, n) {
608
- return $n(e) ? z.value.gradient.show ? `url(#${ar(e, t)})` : $(e, t) : z.value.gradient.show ? `url(#gradient_${n}_${N.value})` : t.color;
609
- }
610
- function sr(e, t) {
611
- return $n(e) ? $(e, t) : e.color;
612
- }
613
- function cr(e, t) {
614
- return z.value.indexLabels.adaptColorToBackground ? de(sr(e, t)) : z.value.indexLabels.color;
615
- }
616
- function lr(e, t) {
617
- let n = Q.value.find((t) => t.seriesIndex === e);
618
- return n && $n(n) ? $(n, t) : t.color;
619
- }
620
- function ur(e) {
621
- return Qn(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${N.value})` : H.value.paths.useSerieColor ? e.color : H.value.paths.stroke;
622
- }
623
- function dr(e) {
624
- return F.value === null || I.value === e ? 1 : Math.min(1, z.value.unselectedOpacity);
625
- }
626
- f(() => F.value !== null && I.value !== null);
627
- let fr = C(!1);
628
- function pr() {
629
- P.value.length ? P.value = [] : vr.value.forEach((e) => {
630
- P.value.push(e.seriesIndex);
631
- }), vn("selectLegend", Q.value);
632
- }
633
- function mr(e) {
634
- P.value.includes(e) ? P.value = P.value.filter((t) => t !== e) : P.value.push(e), vn("selectLegend", Q.value);
635
- }
636
- function hr(e) {
637
- return X.value.length ? X.value.find((t) => t.name === e) || (yn.value && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (yn.value && console.warn("VueUiHistoryPlot - There are no series to show."), null);
638
- }
639
- function gr(e) {
640
- let t = hr(e);
641
- t !== null && P.value.includes(t.seriesIndex) && mr(t.seriesIndex);
642
- }
643
- function _r(e) {
644
- let t = hr(e);
645
- t !== null && (P.value.includes(t.seriesIndex) || mr(t.seriesIndex));
646
- }
647
- let vr = f(() => X.value.map((e) => {
648
- let t = Qn(e) ? e.temperatureColors : null;
649
- return {
650
- ...e,
651
- gradientColors: t,
652
- opacity: P.value.includes(e.seriesIndex) ? .5 : 1,
653
- segregate: () => mr(e.seriesIndex),
654
- isSegregated: P.value.includes(e.seriesIndex),
655
- shape: t ? "gradient" : "circle"
656
- };
657
- })), yr = f(() => ({
658
- cy: "history-plot-div-legend",
659
- backgroundColor: H.value.legend.backgroundColor,
660
- color: H.value.legend.color,
661
- fontSize: H.value.legend.fontSize,
662
- paddingBottom: 12,
663
- fontWeight: H.value.legend.bold ? "bold" : ""
664
- }));
665
- function br({ datapoint: e, plotIndex: t, seriesIndex: n }) {
666
- R.value.events.datapointClick && R.value.events.datapointClick({
667
- datapoint: {
668
- ...e,
669
- plotIndex: t,
670
- seriesIndex: n
671
- },
672
- seriesIndex: n
673
- }), vn("selectDatapoint", e);
674
- }
675
- function xr(e) {
676
- rn.value = e, $t.value += 1;
677
- }
678
- let Sr = C(null);
679
- function Cr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
680
- R.value.events.datapointLeave && R.value.events.datapointLeave({
681
- datapoint: {
682
- ...e,
683
- plotIndex: t,
684
- seriesIndex: n
685
- },
686
- seriesIndex: n
687
- }), (hn.value !== "keyboard" || I.value !== n || L.value !== t) && (tn.value = !1, F.value = null);
688
- }
689
- function wr(e, t) {
690
- if (!G.value) return;
691
- let r = Q.value.find((t) => t.seriesIndex === e);
692
- if (!r) return;
693
- let i = r.plots[t];
694
- if (!i) return;
695
- let a = n(i.x, i.y, G.value);
696
- a && (mn.value = a);
697
- }
698
- function Tr({ datapoint: e, plotIndex: n, seriesIndex: r, triggerMode: a = "pointer" }) {
699
- R.value.events.datapointEnter && R.value.events.datapointEnter({
700
- datapoint: {
701
- ...e,
702
- plotIndex: n,
703
- seriesIndex: r
704
- },
705
- seriesIndex: r
706
- }), I.value = r, L.value = n, hn.value = a, fr.value = !0;
707
- let o = lr(r, e), s = {
708
- ...e,
709
- color: o
710
- };
711
- Sr.value = {
712
- datapoint: s,
713
- color: o,
714
- seriesIndex: r,
715
- plotIndex: n,
716
- config: R.value,
717
- series: X.value
718
- }, F.value = e;
719
- let c = H.value.tooltip.customFormat;
720
- if (an.value = !1, i(c)) try {
721
- let e = c({
722
- seriesIndex: r,
723
- datapoint: s,
724
- color: o,
725
- plotIndex: n,
726
- series: X.value,
727
- config: R.value
728
- });
729
- typeof e == "string" && (nn.value = e, an.value = !0);
730
- } catch {
731
- console.warn("Custom format cannot be applied."), an.value = !1;
732
- }
733
- if (!an.value) {
734
- let n = "";
735
- n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${H.value.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="${o}"/></svg><span>${e.seriesName}</span></div>`, n += `<div>${e.label}</div>`, n += `<div>${V.value.x.name.text || "x"}: ${l(V.value.x.labels.formatter, e.valueX, t({
736
- p: V.value.x.labels.prefix,
737
- v: e.valueX,
738
- s: V.value.x.labels.suffix,
739
- r: V.value.x.labels.rounding
740
- }))}</div>`, n += `<div>${V.value.y.name.text || "y"}: ${l(V.value.y.labels.formatter, e.valueY, t({
741
- p: V.value.y.labels.prefix,
742
- v: e.valueY,
743
- s: V.value.y.labels.suffix,
744
- r: V.value.y.labels.rounding
745
- }))}</div>`, nn.value = `<div>${n}</div>`;
746
- }
747
- tn.value = !0, a === "keyboard" && We(() => {
748
- wr(r, n);
749
- });
750
- }
751
- f(() => ({ head: Q.value.map((e) => ({
752
- name: e.name,
753
- color: e.color
754
- })) }));
755
- let Er = f(() => {
756
- let e = [
757
- R.value.table.columnNames.series,
758
- R.value.table.columnNames.datapoint,
759
- R.value.table.columnNames.x,
760
- R.value.table.columnNames.y
761
- ];
762
- return {
763
- head: e,
764
- body: Q.value.flatMap((e) => e.plots.map((e) => [
765
- {
766
- color: e.color,
767
- name: e.seriesName
768
- },
769
- e.label,
770
- l(V.value.x.labels.formatter, e.valueX, t({
771
- p: V.value.x.labels.prefix,
772
- v: e.valueX,
773
- s: V.value.x.labels.suffix,
774
- r: V.value.x.labels.rounding
775
- })),
776
- l(V.value.y.labels.formatter, e.valueY, t({
777
- p: V.value.y.labels.prefix,
778
- v: e.valueY,
779
- s: V.value.y.labels.suffix,
780
- r: V.value.y.labels.rounding
781
- }))
782
- ])),
783
- config: {
784
- th: {
785
- backgroundColor: R.value.table.th.backgroundColor,
786
- color: R.value.table.th.color,
787
- outline: R.value.table.th.outline
788
- },
789
- td: {
790
- backgroundColor: R.value.table.td.backgroundColor,
791
- color: R.value.table.td.color,
792
- outline: R.value.table.td.outline
793
- },
794
- breakpoint: R.value.table.responsiveBreakpoint
795
- },
796
- colNames: e
797
- };
798
- });
799
- function Dr(e = null) {
800
- We(() => {
801
- let t = [
802
- [R.value.table.columnNames.series],
803
- [R.value.table.columnNames.datapoint],
804
- [R.value.table.columnNames.x],
805
- [R.value.table.columnNames.y]
806
- ], n = Q.value.flatMap((e) => e.plots.map((e) => [
807
- [e.seriesName],
808
- [e.label],
809
- [e.valueX],
810
- [e.valueY]
811
- ])), i = [
812
- [H.value.title.text],
813
- [H.value.title.subtitle.text],
814
- t
815
- ].concat(n), a = r(i);
816
- e ? e(a) : le({
817
- csvContent: a,
818
- title: H.value.title.text || "vue-ui-history-plot"
819
- });
820
- });
821
- }
822
- let Or = C(!1);
823
- function kr() {
824
- Or.value = !Or.value;
825
- }
826
- function Ar() {
827
- K.value.showTable = !K.value.showTable;
828
- }
829
- function jr() {
830
- K.value.showTooltip = !K.value.showTooltip;
831
- }
832
- function Mr() {
833
- return Q.value;
834
- }
835
- async function Nr({ scale: e = 2 } = {}) {
836
- if (!A.value) return;
837
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
838
- domElement: A.value,
839
- base64: !0,
840
- img: !0,
841
- scale: e
842
- });
843
- return {
844
- imageUri: i,
845
- base64: a,
846
- title: H.value.title.text,
847
- width: t,
848
- height: n,
849
- aspectRatio: r
850
- };
851
- }
852
- let Pr = f(() => Z.value.tickX), Fr = f(() => ({
853
- start: 0,
854
- end: Z.value.tickX.length
855
- }));
856
- Ee({
857
- timeLabelsEls: fn,
858
- timeLabels: Pr,
859
- slicer: Fr,
860
- configRef: R,
861
- rotationPath: [
862
- "style",
863
- "chart",
864
- "axes",
865
- "x",
866
- "labels",
867
- "rotation"
868
- ],
869
- autoRotatePath: [
870
- "style",
871
- "chart",
872
- "axes",
873
- "x",
874
- "labels",
875
- "autoRotate",
876
- "enable"
877
- ],
878
- isAutoSize: !1,
879
- width: Ln,
880
- height: Rn,
881
- targetClass: ".vue-ui-history-plot-x-axis-scale",
882
- rotation: V.value.x.labels.autoRotate.angle
883
- });
884
- let Ir = f(() => {
885
- let e = R.value.table.useDialog && !R.value.table.show, t = K.value.showTable;
886
- return {
887
- component: e ? Wt : zt,
888
- title: `${H.value.title.text}${H.value.title.subtitle.text ? `: ${H.value.title.subtitle.text}` : ""}`,
889
- props: e ? {
890
- backgroundColor: R.value.table.th.backgroundColor,
891
- color: R.value.table.th.color,
892
- headerColor: R.value.table.th.color,
893
- headerBg: R.value.table.th.backgroundColor,
894
- isFullscreen: rn.value,
895
- fullscreenParent: A.value,
896
- forcedWidth: Math.min(800, window.innerWidth * .8)
897
- } : {
898
- hideDetails: !0,
899
- config: {
900
- open: t,
901
- maxHeight: 1e4,
902
- body: {
903
- backgroundColor: H.value.backgroundColor,
904
- color: H.value.color
905
- },
906
- head: {
907
- backgroundColor: H.value.backgroundColor,
908
- color: H.value.color
909
- }
910
- }
911
- }
912
- };
913
- });
914
- Xe(() => K.value.showTable, (e) => {
915
- R.value.table.show || (e && R.value.table.useDialog && cn.value ? cn.value.open() : "close" in cn.value && cn.value.close());
916
- });
917
- function Lr() {
918
- K.value.showTable = !1, ln.value && ln.value.setTableIconState(!1);
919
- }
920
- let Rr = f(() => H.value.backgroundColor), zr = f(() => H.value.legend), Br = f(() => H.value.title), { isCallbackImaging: Vr, isCallbackSvg: Hr, generateSvg: Ur, onGenerateImage: Wr } = we({
921
- svg: G,
922
- title: Br,
923
- legend: zr,
924
- legendItems: vr,
925
- backgroundColor: Rr,
926
- getSvgCallback: () => R.value.userOptions.callbacks.svg,
927
- generateImage: Pn
928
- });
929
- async function Gr() {
930
- if (vn("copyAlt", {
931
- config: R.value,
932
- dataset: Q.value
933
- }), !R.value.userOptions.callbacks.altCopy) {
934
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
935
- return;
936
- }
937
- await Promise.resolve(R.value.userOptions.callbacks.altCopy({
938
- config: R.value,
939
- dataset: Q.value
940
- }));
941
- }
942
- let Kr = f(() => ({
943
- head: Er.value.head,
944
- body: Er.value.body.map((e) => [
945
- e[0]?.name || "",
946
- e[1],
947
- e[2],
948
- e[3]
949
- ]),
950
- caption: R.value.a11y.translations.tableCaption,
951
- notice: R.value.a11y.translations.tableAvailable
952
- }));
953
- function qr(e) {
954
- return Q.value.findIndex((t) => t.seriesIndex === e);
955
- }
956
- function Jr() {
957
- if (I.value !== null && L.value !== null) {
958
- let e = Q.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
959
- e && Cr({
960
- datapoint: e,
961
- plotIndex: L.value,
962
- seriesIndex: I.value
963
- });
964
- }
965
- I.value = null, L.value = null, hn.value = "pointer", tn.value = !1, F.value = null;
966
- }
967
- function Yr() {
968
- I.value = null, L.value = null, gn.value = !0;
969
- }
970
- function Xr() {
971
- Jr(), gn.value = !1;
972
- }
973
- function Zr(e, t) {
974
- if (!e?.plots?.length) return null;
975
- let n = e.plots.length;
976
- return (t % n + n) % n;
977
- }
978
- function Qr({ seriesIndex: e, plotIndex: t, direction: n }) {
979
- if (!Q.value.length) return null;
980
- let r = qr(e);
981
- if (r === -1) return null;
982
- if (n === "up" || n === "down") {
983
- let e = Q.value[r];
984
- if (!e?.plots?.length) return null;
985
- let i = Zr(e, t + (n === "up" ? -1 : 1));
986
- return {
987
- seriesIndex: e.seriesIndex,
988
- plotIndex: i
989
- };
990
- }
991
- if (n === "left" || n === "right") {
992
- let e = ((r + (n === "left" ? -1 : 1)) % Q.value.length + Q.value.length) % Q.value.length, i = Q.value[e];
993
- if (!i?.plots?.length) return null;
994
- let a = Math.min(t, i.plots.length - 1);
995
- return {
996
- seriesIndex: i.seriesIndex,
997
- plotIndex: a
998
- };
999
- }
1000
- return null;
1001
- }
1002
- function $r(e) {
1003
- if (!G.value || Or.value || document.activeElement !== G.value || !Q.value.length) return;
1004
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1005
- if (!t && !n && !r && !i && !a && !o) return;
1006
- if (e.preventDefault(), e.stopPropagation(), o) {
1007
- Jr();
1008
- return;
1009
- }
1010
- if (a) {
1011
- if (I.value === null || L.value === null) return;
1012
- let e = Q.value.find((e) => e.seriesIndex === I.value)?.plots?.[L.value];
1013
- if (!e) return;
1014
- br({
1015
- datapoint: e,
1016
- plotIndex: L.value,
1017
- seriesIndex: I.value
1018
- });
1019
- return;
1020
- }
1021
- let s = null;
1022
- if (I.value === null || L.value === null) {
1023
- let e = Q.value[0];
1024
- if (!e?.plots?.length) return;
1025
- s = {
1026
- seriesIndex: e.seriesIndex,
1027
- plotIndex: 0
1028
- };
1029
- } else r ? s = Qr({
1030
- seriesIndex: I.value,
1031
- plotIndex: L.value,
1032
- direction: "up"
1033
- }) : i ? s = Qr({
1034
- seriesIndex: I.value,
1035
- plotIndex: L.value,
1036
- direction: "down"
1037
- }) : t ? s = Qr({
1038
- seriesIndex: I.value,
1039
- plotIndex: L.value,
1040
- direction: "left"
1041
- }) : n && (s = Qr({
1042
- seriesIndex: I.value,
1043
- plotIndex: L.value,
1044
- direction: "right"
1045
- }));
1046
- if (!s) return;
1047
- let c = Q.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1048
- c && Tr({
1049
- datapoint: c,
1050
- plotIndex: s.plotIndex,
1051
- seriesIndex: s.seriesIndex,
1052
- triggerMode: "keyboard"
1053
- });
1054
- }
1055
- return ke({
1056
- getData: Mr,
1057
- getImage: Nr,
1058
- generatePdf: Nn,
1059
- generateCsv: Dr,
1060
- generateImage: Pn,
1061
- generateSvg: Ur,
1062
- hideSeries: _r,
1063
- showSeries: gr,
1064
- toggleTable: Ar,
1065
- toggleTooltip: jr,
1066
- toggleAnnotator: kr,
1067
- toggleFullscreen: xr,
1068
- copyAlt: Gr
1069
- }), (e, n) => (S(), h("div", {
1070
- id: `history_plot_${N.value}`,
1071
- ref_key: "historyPlotChart",
1072
- ref: A,
1073
- class: y({
1074
- "vue-data-ui-component": !0,
1075
- "vue-ui-history-plot": !0,
1076
- "vue-data-ui-wrapper-fullscreen": rn.value
1077
- }),
1078
- style: x(`background:${H.value.backgroundColor};color:${H.value.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
1079
- onMouseenter: n[2] ||= () => D(Dn)(!0),
1080
- onMouseleave: n[3] ||= () => D(Dn)(!1)
1081
- }, [
1082
- g("div", {
1083
- id: `chart-instructions-${N.value}`,
1084
- class: "sr-only"
1085
- }, [g("p", null, E(R.value.a11y.translations.keyboardNavigation), 1)], 8, et),
1086
- Kr.value.body.length ? (S(), p(Pe, {
1087
- key: 0,
1088
- uid: N.value,
1089
- head: Kr.value.head,
1090
- body: Kr.value.body,
1091
- caption: Kr.value.caption,
1092
- notice: Kr.value.notice
1093
- }, null, 8, [
1094
- "uid",
1095
- "head",
1096
- "body",
1097
- "caption",
1098
- "notice"
1099
- ])) : m("", !0),
1100
- T(e.$slots, "userConfig", {}, void 0, !0),
1101
- R.value.userOptions.buttons.annotator ? (S(), p(D(Vt), {
1102
- key: 1,
1103
- svgRef: D(G),
1104
- backgroundColor: H.value.backgroundColor,
1105
- color: H.value.color,
1106
- active: Or.value,
1107
- isCursorPointer: W.value,
1108
- palette: R.value.userOptions.annotatorPalette,
1109
- onClose: kr
1110
- }, {
1111
- "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1112
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
1113
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
1114
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
1115
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
1116
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
1117
- _: 3
1118
- }, 8, [
1119
- "svgRef",
1120
- "backgroundColor",
1121
- "color",
1122
- "active",
1123
- "isCursorPointer",
1124
- "palette"
1125
- ])) : m("", !0),
1126
- Fn.value ? (S(), h("div", {
1127
- key: 2,
1128
- ref_key: "noTitle",
1129
- ref: en,
1130
- class: "vue-data-ui-no-title-space",
1131
- style: "height:36px; width: 100%;background:transparent"
1132
- }, null, 512)) : m("", !0),
1133
- H.value.title.text ? (S(), h("div", {
1134
- key: 3,
1135
- ref_key: "chartTitle",
1136
- ref: Jt,
1137
- class: "vue-ui-xy-title",
1138
- style: x(`font-family:${R.value.style.fontFamily}`)
1139
- }, [(S(), p(Oe, {
1140
- key: `title_${Yt.value}`,
1141
- config: {
1142
- title: {
1143
- cy: "history-plot-div-title",
1144
- ...H.value.title
1145
- },
1146
- subtitle: {
1147
- cy: "history-plot-div-subtitle",
1148
- ...H.value.title.subtitle
1149
- }
1150
- }
1151
- }, null, 8, ["config"]))], 4)) : m("", !0),
1152
- g("div", { id: `legend-top-${N.value}` }, null, 8, tt),
1153
- R.value.userOptions.show && _n.value && (D(On) || D(En)) ? (S(), p(D(Ht), {
1154
- ref_key: "userOptionsRef",
1155
- ref: ln,
1156
- key: `user_option_${$t.value}`,
1157
- backgroundColor: H.value.backgroundColor,
1158
- color: H.value.color,
1159
- isPrinting: D(jn),
1160
- isImaging: D(Mn),
1161
- uid: N.value,
1162
- hasTooltip: H.value.tooltip.show && R.value.userOptions.buttons.tooltip,
1163
- hasPdf: R.value.userOptions.buttons.pdf,
1164
- hasImg: R.value.userOptions.buttons.img,
1165
- hasSvg: R.value.userOptions.buttons.svg,
1166
- hasXls: R.value.userOptions.buttons.csv,
1167
- hasTable: R.value.userOptions.buttons.table,
1168
- hasLabel: !1,
1169
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
1170
- hasAltCopy: R.value.userOptions.buttons.altCopy,
1171
- isFullscreen: rn.value,
1172
- chartElement: A.value,
1173
- position: R.value.userOptions.position,
1174
- isTooltip: K.value.showTooltip,
1175
- titles: { ...R.value.userOptions.buttonTitles },
1176
- hasAnnotator: R.value.userOptions.buttons.annotator,
1177
- isAnnotation: Or.value,
1178
- callbacks: R.value.userOptions.callbacks,
1179
- printScale: R.value.userOptions.print.scale,
1180
- tableDialog: R.value.table.useDialog,
1181
- isCursorPointer: W.value,
1182
- onToggleFullscreen: xr,
1183
- onGeneratePdf: D(Nn),
1184
- onGenerateCsv: Dr,
1185
- onGenerateImage: D(Wr),
1186
- onGenerateSvg: D(Ur),
1187
- onToggleTable: Ar,
1188
- onToggleTooltip: jr,
1189
- onToggleAnnotator: kr,
1190
- onCopyAlt: Gr,
1191
- style: x({ visibility: D(On) ? D(En) ? "visible" : "hidden" : "visible" })
1192
- }, Be({ _: 2 }, [
1193
- e.$slots.menuIcon ? {
1194
- name: "menuIcon",
1195
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
1196
- isOpen: t,
1197
- color: n
1198
- })), void 0, !0)]),
1199
- key: "0"
1200
- } : void 0,
1201
- e.$slots.optionTooltip ? {
1202
- name: "optionTooltip",
1203
- fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1204
- key: "1"
1205
- } : void 0,
1206
- e.$slots.optionPdf ? {
1207
- name: "optionPdf",
1208
- fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1209
- key: "2"
1210
- } : void 0,
1211
- e.$slots.optionCsv ? {
1212
- name: "optionCsv",
1213
- fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1214
- key: "3"
1215
- } : void 0,
1216
- e.$slots.optionImg ? {
1217
- name: "optionImg",
1218
- fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1219
- key: "4"
1220
- } : void 0,
1221
- e.$slots.optionSvg ? {
1222
- name: "optionSvg",
1223
- fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1224
- key: "5"
1225
- } : void 0,
1226
- e.$slots.optionTable ? {
1227
- name: "optionTable",
1228
- fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1229
- key: "6"
1230
- } : void 0,
1231
- e.$slots.optionFullscreen ? {
1232
- name: "optionFullscreen",
1233
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
1234
- toggleFullscreen: t,
1235
- isFullscreen: n
1236
- })), void 0, !0)]),
1237
- key: "7"
1238
- } : void 0,
1239
- e.$slots.optionAnnotator ? {
1240
- name: "optionAnnotator",
1241
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
1242
- toggleAnnotator: t,
1243
- isAnnotator: n
1244
- })), void 0, !0)]),
1245
- key: "8"
1246
- } : void 0,
1247
- e.$slots.optionAltCopy ? {
1248
- name: "optionAltCopy",
1249
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1250
- key: "9"
1251
- } : void 0,
1252
- e.$slots["custom-menu-before"] ? {
1253
- name: "custom-menu-before",
1254
- fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1255
- key: "10"
1256
- } : void 0,
1257
- e.$slots["custom-menu-after"] ? {
1258
- name: "custom-menu-after",
1259
- fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1260
- key: "11"
1261
- } : void 0
1262
- ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
1263
- g("div", nt, [(S(), h("svg", {
1264
- ref_key: "svgRef",
1265
- ref: G,
1266
- xmlns: D(fe),
1267
- viewBox: `0 0 ${q.value.width < 0 ? .1 : q.value.width} ${q.value.height < 0 ? .1 : q.value.height}`,
1268
- style: x(`max-width:100%;overflow:visible;background:transparent;color:${H.value.color}`),
1269
- "aria-describedby": `chart-instructions-${N.value}`,
1270
- tabindex: "0",
1271
- onFocus: Yr,
1272
- onBlur: Xr,
1273
- onKeydown: $r
1274
- }, [
1275
- He(D(Ut)),
1276
- e.$slots["chart-background"] ? (S(), h("foreignObject", {
1277
- key: 0,
1278
- x: J.value.left,
1279
- y: J.value.top,
1280
- width: J.value.width <= 0 ? 10 : J.value.width,
1281
- height: J.value.height <= 0 ? 10 : J.value.height,
1282
- style: { pointerEvents: "none" }
1283
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : m("", !0),
1284
- z.value.gradient.show || Zn.value ? (S(), h("defs", at, [z.value.gradient.show ? (S(!0), h(d, { key: 0 }, w(Q.value, (e, t) => (S(), p(Me, {
1285
- t: "radial",
1286
- key: `gradient_${t}_${N.value}`,
1287
- id: `gradient_${t}_${N.value}`,
1288
- fy: "30%",
1289
- stops: [
1290
- [
1291
- "10%",
1292
- D(o)(e.color, z.value.gradient.intensity / 100),
1293
- 1
1294
- ],
1295
- [
1296
- "90%",
1297
- D(ee)(e.color, .1),
1298
- 1
1299
- ],
1300
- [
1301
- "100%",
1302
- e.color,
1303
- 1
1304
- ]
1305
- ]
1306
- }, null, 8, ["id", "stops"]))), 128)) : m("", !0), (S(!0), h(d, null, w(Q.value, (e) => (S(), h(d, { key: `temperature_grad_history_template_${e.seriesIndex}_${N.value}` }, [z.value.gradient.show && $n(e) ? (S(!0), h(d, { key: 0 }, w(e.plots, (t) => (S(), p(Me, {
1307
- t: "radial",
1308
- key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`,
1309
- id: ar(e, t),
1310
- fy: "30%",
1311
- stops: [
1312
- [
1313
- "10%",
1314
- D(o)($(e, t), z.value.gradient.intensity / 100),
1315
- 1
1316
- ],
1317
- [
1318
- "90%",
1319
- D(ee)($(e, t), .1),
1320
- 1
1321
- ],
1322
- [
1323
- "100%",
1324
- $(e, t),
1325
- 1
1326
- ]
1327
- ]
1328
- }, null, 8, ["id", "stops"]))), 128)) : m("", !0), Qn(e) ? (S(), h("linearGradient", {
1329
- key: 1,
1330
- id: `temperature_grad_history_${e.seriesIndex}_${N.value}`,
1331
- gradientUnits: "userSpaceOnUse",
1332
- x1: rr(e).x1,
1333
- y1: rr(e).y1,
1334
- x2: rr(e).x2,
1335
- y2: rr(e).y2
1336
- }, [(S(!0), h(d, null, w(e.temperatureColors, (t, n) => (S(), h("stop", {
1337
- key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${N.value}`,
1338
- "stop-color": t,
1339
- offset: e.temperatureColors.length === 1 ? "0%" : D(ue)(n, e.temperatureColors.length)
1340
- }, null, 8, st))), 128))], 8, ot)) : m("", !0)], 64))), 128))])) : m("", !0),
1341
- B.value.verticalLines.show ? (S(), h("g", ct, [(S(!0), h(d, null, w(Z.value.tickX, (e) => (S(), h("line", {
1342
- x1: e.x,
1343
- x2: e.x,
1344
- y1: e.y1,
1345
- y2: e.y2,
1346
- stroke: B.value.verticalLines.stroke,
1347
- "stroke-width": B.value.verticalLines.strokeWidth,
1348
- "stroke-linecap": "round"
1349
- }, null, 8, lt))), 256))])) : m("", !0),
1350
- V.value.y.labels.show ? (S(), h("g", ut, [(S(!0), h(d, null, w(Z.value.tickY, (e) => (S(), h("line", {
1351
- stroke: B.value.verticalLines.stroke,
1352
- "stroke-width": B.value.verticalLines.strokeWidth,
1353
- "stroke-linecap": "round",
1354
- x1: J.value.left - 5,
1355
- x2: J.value.left,
1356
- y1: e.y,
1357
- y2: e.y
1358
- }, null, 8, dt))), 256))])) : m("", !0),
1359
- V.value.y.labels.show ? (S(), h("g", {
1360
- key: 4,
1361
- ref_key: "yAxisScales",
1362
- ref: pn
1363
- }, [(S(!0), h(d, null, w(Z.value.tickY, (e) => (S(), h("text", {
1364
- x: J.value.left + V.value.y.labels.offsetX - 4 - z.value.radius,
1365
- y: e.y + Y.value.yAxisLabels / 3,
1366
- fill: V.value.y.labels.color,
1367
- "font-size": Y.value.yAxisLabels,
1368
- "text-anchor": "end"
1369
- }, E(D(l)(V.value.y.labels.formatter, e.value, D(t)({
1370
- p: V.value.y.labels.prefix,
1371
- v: e.value,
1372
- s: V.value.y.labels.suffix,
1373
- r: V.value.y.labels.rounding
1374
- }))), 9, ft))), 256))], 512)) : m("", !0),
1375
- V.value.y.name.text ? (S(), h("text", {
1376
- key: 5,
1377
- ref_key: "yAxisLabel",
1378
- ref: dn,
1379
- transform: `translate(${Y.value.yAxisName}, ${q.value.height / 2 + V.value.y.name.offsetY}), rotate(-90)`,
1380
- "font-size": Y.value.yAxisName,
1381
- fill: V.value.y.name.color,
1382
- "font-weight": V.value.y.name.bold ? "bold" : "normal",
1383
- "text-anchor": "middle"
1384
- }, E(V.value.y.name.text), 9, pt)) : m("", !0),
1385
- B.value.horizontalLines.show ? (S(), h("g", mt, [(S(!0), h(d, null, w(Z.value.tickY, (e) => (S(), h("line", {
1386
- x1: e.x1,
1387
- x2: e.x2,
1388
- y1: e.y,
1389
- y2: e.y,
1390
- stroke: B.value.horizontalLines.stroke,
1391
- "stroke-width": B.value.horizontalLines.strokeWidth,
1392
- "stroke-linecap": "round"
1393
- }, null, 8, ht))), 256))])) : m("", !0),
1394
- V.value.x.labels.show ? (S(), h("g", gt, [(S(!0), h(d, null, w(Z.value.tickX, (e) => (S(), h("line", {
1395
- stroke: B.value.verticalLines.stroke,
1396
- "stroke-width": B.value.verticalLines.strokeWidth,
1397
- "stroke-linecap": "round",
1398
- x1: e.x,
1399
- x2: e.x,
1400
- y1: J.value.bottom,
1401
- y2: J.value.bottom + 5
1402
- }, null, 8, _t))), 256))])) : m("", !0),
1403
- V.value.x.labels.show ? (S(), h("g", {
1404
- key: 8,
1405
- ref_key: "xAxisScales",
1406
- ref: fn
1407
- }, [(S(!0), h(d, null, w(Z.value.tickX, (e) => (S(), h("text", {
1408
- class: "vue-ui-history-plot-x-axis-scale",
1409
- transform: `translate(${e.x}, ${J.value.bottom + V.value.x.labels.offsetY + Y.value.xAxisLabels + z.value.radius}), rotate(${V.value.x.labels.rotation})`,
1410
- fill: V.value.x.labels.color,
1411
- "font-size": Y.value.xAxisLabels,
1412
- "text-anchor": V.value.x.labels.rotation > 0 ? "start" : V.value.x.labels.rotation < 0 ? "end" : "middle"
1413
- }, E(D(l)(V.value.x.labels.formatter, e.value, D(t)({
1414
- p: V.value.x.labels.prefix,
1415
- v: e.value,
1416
- s: V.value.x.labels.suffix,
1417
- r: V.value.x.labels.rounding
1418
- }))), 9, vt))), 256))], 512)) : m("", !0),
1419
- V.value.x.name.text ? (S(), h("text", {
1420
- key: 9,
1421
- ref_key: "xAxisLabel",
1422
- ref: un,
1423
- x: q.value.width / 2 + V.value.x.name.offsetX,
1424
- y: q.value.height,
1425
- "font-size": Y.value.xAxisName,
1426
- fill: V.value.x.name.color,
1427
- "font-weight": V.value.x.name.bold ? "bold" : "normal",
1428
- "text-anchor": "middle"
1429
- }, E(V.value.x.name.text), 9, yt)) : m("", !0),
1430
- B.value.xAxis.show ? (S(), h("line", {
1431
- key: 10,
1432
- x1: J.value.left,
1433
- x2: J.value.left + J.value.width,
1434
- y1: J.value.bottom,
1435
- y2: J.value.bottom,
1436
- stroke: B.value.xAxis.stroke,
1437
- "stroke-width": B.value.xAxis.strokeWidth,
1438
- "stroke-linecap": "round"
1439
- }, null, 8, bt)) : m("", !0),
1440
- B.value.yAxis.show ? (S(), h("line", {
1441
- key: 11,
1442
- x1: J.value.left,
1443
- x2: J.value.left,
1444
- y1: J.value.top,
1445
- y2: J.value.bottom,
1446
- stroke: B.value.yAxis.stroke,
1447
- "stroke-width": B.value.yAxis.strokeWidth,
1448
- "stroke-linecap": "round"
1449
- }, null, 8, xt)) : m("", !0),
1450
- (S(!0), h(d, null, w(Xn.value, (e) => (S(), h("g", { key: `history_plot_serie_${e.seriesIndex}_${N.value}` }, [
1451
- H.value.paths.show ? (S(), h("g", {
1452
- key: 0,
1453
- style: x({ opacity: dr(e.seriesIndex) })
1454
- }, [g("path", {
1455
- class: y({ "vue-data-ui-transition": D(U) }),
1456
- d: e.path,
1457
- stroke: H.value.backgroundColor,
1458
- "stroke-width": H.value.paths.strokeWidth + 4,
1459
- fill: "none",
1460
- "stroke-linecap": "round",
1461
- "stroke-linejoin": "round"
1462
- }, null, 10, St), g("path", {
1463
- class: y({ "vue-data-ui-transition": D(U) }),
1464
- d: e.path,
1465
- stroke: ur(e),
1466
- "stroke-width": H.value.paths.strokeWidth,
1467
- fill: "none",
1468
- "stroke-linecap": "round",
1469
- "stroke-linejoin": "round"
1470
- }, null, 10, Ct)], 4)) : m("", !0),
1471
- (S(!0), h(d, null, w(e.plots, (e) => (S(), h("circle", {
1472
- cx: e.x,
1473
- cy: e.y,
1474
- fill: H.value.backgroundColor,
1475
- r: Y.value.plots,
1476
- stroke: "none",
1477
- class: y({ "vue-data-ui-transition": D(U) })
1478
- }, null, 10, wt))), 256)),
1479
- (S(!0), h(d, null, w(e.plots, (t) => (S(), h("circle", {
1480
- cx: t.x,
1481
- cy: t.y,
1482
- fill: or(e, t, e.gradientIndex),
1483
- r: Y.value.plots,
1484
- stroke: z.value.stroke,
1485
- "stroke-width": z.value.strokeWidth,
1486
- class: y({ "vue-data-ui-transition": D(U) }),
1487
- style: x({ opacity: dr(e.seriesIndex) })
1488
- }, null, 14, Tt))), 256)),
1489
- z.value.labels.show ? (S(), h("g", Et, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("g", { key: `plab_${n}` }, [String(t.label).includes("\n") ? (S(), h("text", {
1490
- key: 1,
1491
- class: y({ "vue-data-ui-transition": D(U) }),
1492
- transform: `translate(${t.x + z.value.labels.offsetX}, ${t.y + z.value.labels.offsetY + Y.value.plots + Y.value.labels})`,
1493
- "font-size": Y.value.labels,
1494
- fill: z.value.labels.color,
1495
- "font-weight": z.value.labels.bold ? "bold" : "normal",
1496
- "text-anchor": "middle",
1497
- style: x({ opacity: dr(e.seriesIndex) }),
1498
- innerHTML: D(c)({
1499
- content: String(t.label),
1500
- fontSize: Y.value.labels,
1501
- fill: z.value.labels.color,
1502
- x: 0,
1503
- y: 0
1504
- })
1505
- }, null, 14, Ot)) : (S(), h("text", {
1506
- key: 0,
1507
- class: y({ "vue-data-ui-transition": D(U) }),
1508
- transform: `translate(${t.x + z.value.labels.offsetX}, ${t.y + z.value.labels.offsetY + Y.value.plots + Y.value.labels})`,
1509
- "font-size": Y.value.labels,
1510
- fill: z.value.labels.color,
1511
- "font-weight": z.value.labels.bold ? "bold" : "normal",
1512
- "text-anchor": "middle",
1513
- style: x({ opacity: dr(e.seriesIndex) })
1514
- }, E(t.label), 15, Dt))]))), 128))])) : m("", !0),
1515
- z.value.indexLabels.show ? (S(), h("g", kt, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("text", {
1516
- key: `lab_${n}`,
1517
- class: y({ "vue-data-ui-transition": D(U) }),
1518
- transform: `translate(${t.x + z.value.indexLabels.offsetX}, ${t.y + z.value.indexLabels.offsetY + Y.value.indexLabels / 3})`,
1519
- "font-size": Y.value.indexLabels,
1520
- "font-weight": z.value.indexLabels.bold ? "bold" : "normal",
1521
- fill: cr(e, t),
1522
- "text-anchor": "middle",
1523
- style: x({ opacity: dr(e.seriesIndex) })
1524
- }, E(z.value.indexLabels.startAtZero ? n : n + 1), 15, At))), 128))])) : m("", !0)
1525
- ]))), 128)),
1526
- (S(!0), h(d, null, w(Xn.value, (e) => (S(), h("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${N.value}` }, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("circle", {
1527
- cx: t.x,
1528
- cy: t.y,
1529
- fill: "transparent",
1530
- r: Y.value.plots,
1531
- stroke: "none",
1532
- onMouseenter: (r) => Tr({
1533
- datapoint: t,
1534
- plotIndex: n,
1535
- seriesIndex: e.seriesIndex,
1536
- triggerMode: "pointer"
1537
- }),
1538
- onMouseleave: (r) => Cr({
1539
- datapoint: t,
1540
- plotIndex: n,
1541
- seriesIndex: e.seriesIndex
1542
- }),
1543
- onClick: (r) => br({
1544
- datapoint: t,
1545
- plotIndex: n,
1546
- seriesIndex: e.seriesIndex
1547
- })
1548
- }, null, 40, jt))), 256))]))), 128)),
1549
- T(e.$slots, "svg", { svg: {
1550
- ...q.value,
1551
- drawingArea: J.value,
1552
- isPrintingImg: D(jn) || D(Mn) || D(Vr),
1553
- isPrintingSvg: D(Hr)
1554
- } }, void 0, !0)
1555
- ], 44, rt)), e.$slots.hint ? (S(), h("div", Mt, [T(e.$slots, "hint", b(v({
1556
- hint: R.value.a11y.translations.keyboardNavigation,
1557
- isVisible: gn.value
1558
- })), void 0, !0)])) : m("", !0)]),
1559
- e.$slots.watermark ? (S(), h("div", Nt, [T(e.$slots, "watermark", b(v({ isPrinting: D(jn) || D(Mn) || D(Vr) || D(Hr) })), void 0, !0)])) : m("", !0),
1560
- g("div", { id: `legend-bottom-${N.value}` }, null, 8, Pt),
1561
- sn.value && (H.value.legend.show || e.$slots.legend) ? (S(), p(ze, {
1562
- key: 6,
1563
- to: H.value.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
1564
- }, [g("div", {
1565
- ref_key: "chartLegend",
1566
- ref: Xt
1567
- }, [T(e.$slots, "legend", { legend: vr.value }, () => [H.value.legend.show && _n.value ? (S(), p(Le, {
1568
- key: `legend_${Zt.value}`,
1569
- legendSet: vr.value,
1570
- config: yr.value,
1571
- isCursorPointer: W.value,
1572
- onClickMarker: n[0] ||= ({ legend: e }) => {
1573
- mr(e.seriesIndex);
1574
- }
1575
- }, {
1576
- item: O(({ legend: e, index: t }) => [g("div", {
1577
- onClick: (t) => e.segregate(),
1578
- style: x(`opacity:${P.value.includes(e.seriesIndex) ? .5 : 1}`)
1579
- }, E(e.name), 13, Ft)]),
1580
- legendToggle: O(() => [vr.value.length > 2 && H.value.legend.selectAllToggle.show && !D(Cn) ? (S(), p(Ne, {
1581
- key: 0,
1582
- backgroundColor: H.value.legend.selectAllToggle.backgroundColor,
1583
- color: H.value.legend.selectAllToggle.color,
1584
- fontSize: H.value.legend.fontSize,
1585
- checked: P.value.length > 0,
1586
- isCursorPointer: W.value,
1587
- onToggle: pr
1588
- }, null, 8, [
1589
- "backgroundColor",
1590
- "color",
1591
- "fontSize",
1592
- "checked",
1593
- "isCursorPointer"
1594
- ])) : m("", !0)]),
1595
- _: 1
1596
- }, 8, [
1597
- "legendSet",
1598
- "config",
1599
- "isCursorPointer"
1600
- ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1601
- e.$slots.source ? (S(), h("div", {
1602
- key: 7,
1603
- ref_key: "source",
1604
- ref: on,
1605
- dir: "auto"
1606
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1607
- He(D(Lt), {
1608
- teleportTo: H.value.tooltip.teleportTo,
1609
- show: K.value.showTooltip && tn.value,
1610
- backgroundColor: H.value.tooltip.backgroundColor,
1611
- color: H.value.tooltip.color,
1612
- fontSize: H.value.tooltip.fontSize,
1613
- borderRadius: H.value.tooltip.borderRadius,
1614
- borderColor: H.value.tooltip.borderColor,
1615
- borderWidth: H.value.tooltip.borderWidth,
1616
- backgroundOpacity: H.value.tooltip.backgroundOpacity,
1617
- position: H.value.tooltip.position,
1618
- offsetX: H.value.tooltip.offsetX,
1619
- offsetY: H.value.tooltip.offsetY,
1620
- parent: A.value,
1621
- content: nn.value,
1622
- isCustom: an.value,
1623
- isFullscreen: rn.value,
1624
- smooth: H.value.tooltip.smooth,
1625
- backdropFilter: H.value.tooltip.backdropFilter,
1626
- smoothForce: H.value.tooltip.smoothForce,
1627
- smoothSnapThreshold: H.value.tooltip.smoothSnapThreshold,
1628
- isA11yMode: hn.value === "keyboard",
1629
- a11yPosition: mn.value
1630
- }, {
1631
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...Sr.value })), void 0, !0)]),
1632
- tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...Sr.value })), void 0, !0)]),
1633
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...Sr.value })), void 0, !0)]),
1634
- _: 3
1635
- }, 8, [
1636
- "teleportTo",
1637
- "show",
1638
- "backgroundColor",
1639
- "color",
1640
- "fontSize",
1641
- "borderRadius",
1642
- "borderColor",
1643
- "borderWidth",
1644
- "backgroundOpacity",
1645
- "position",
1646
- "offsetX",
1647
- "offsetY",
1648
- "parent",
1649
- "content",
1650
- "isCustom",
1651
- "isFullscreen",
1652
- "smooth",
1653
- "backdropFilter",
1654
- "smoothForce",
1655
- "smoothSnapThreshold",
1656
- "isA11yMode",
1657
- "a11yPosition"
1658
- ]),
1659
- _n.value && R.value.userOptions.buttons.table ? (S(), p(qe(Ir.value.component), Ue({ key: 8 }, Ir.value.props, {
1660
- ref_key: "tableUnit",
1661
- ref: cn,
1662
- onClose: Lr
1663
- }), Be({
1664
- content: O(() => [(S(), p(D(Bt), {
1665
- key: `table_${Qt.value}`,
1666
- colNames: Er.value.colNames,
1667
- head: Er.value.head,
1668
- body: Er.value.body,
1669
- config: Er.value.config,
1670
- title: R.value.table.useDialog ? "" : Ir.value.title,
1671
- withCloseButton: !R.value.table.useDialog,
1672
- isCursorPointer: W.value,
1673
- onClose: Lr
1674
- }, {
1675
- th: O(({ th: e }) => [g("div", It, E(e), 1)]),
1676
- td: O(({ td: e }) => [Ve(E(e.name || e), 1)]),
1677
- _: 1
1678
- }, 8, [
1679
- "colNames",
1680
- "head",
1681
- "body",
1682
- "config",
1683
- "title",
1684
- "withCloseButton",
1685
- "isCursorPointer"
1686
- ]))]),
1687
- _: 2
1688
- }, [R.value.table.useDialog ? {
1689
- name: "title",
1690
- fn: O(() => [Ve(E(Ir.value.title), 1)]),
1691
- key: "0"
1692
- } : void 0, R.value.table.useDialog ? {
1693
- name: "actions",
1694
- fn: O(() => [g("button", {
1695
- tabindex: "0",
1696
- class: "vue-ui-user-options-button",
1697
- onClick: n[1] ||= (e) => Dr(R.value.userOptions.callbacks.csv),
1698
- style: x({ cursor: W.value ? "pointer" : "default" })
1699
- }, [He(D(Rt), {
1700
- name: "fileCsv",
1701
- stroke: Ir.value.props.color
1702
- }, null, 8, ["stroke"])], 4)]),
1703
- key: "1"
1704
- } : void 0]), 1040)) : m("", !0),
1705
- T(e.$slots, "skeleton", {}, () => [D(Cn) ? (S(), p(xe, { key: 0 })) : m("", !0)], !0)
1706
- ], 46, $e));
1707
- }
1708
- }, [["__scopeId", "data-v-621091bf"]]);
1709
- //#endregion
1710
- export { Qe as n, Lt as t };