vue-data-ui 3.22.13 → 3.23.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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,150 +1,149 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, Dt as r, E as i, Gt as a, J as o, K as s, Kt as c, Nt as l, Q as ee, Rt as te, W as ne, Wt as re, Y as u, bt as ie, et as ae, ft as oe, g as se, i as d, qt as ce, r as le, t as ue, w as de, x as fe, yt as pe } from "./lib-CFm_J26b.js";
3
- import { t as me } from "./useConfig-C0V0eG7L.js";
4
- import { t as he } from "./usePrinter-BH-xle1O.js";
5
- import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ve } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as ye } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as be } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as xe } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
- import { t as Se } from "./img-Bikk1dGb.js";
11
- import { n as Ce } from "./Title-BuPs74IB.js";
12
- import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
14
- import { t as De } from "./DefGrad-DVBqDjhO.js";
15
- import { t as Oe } from "./BaseLegendToggle-DsWphmIb.js";
16
- import { t as ke } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as je } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Me } from "./Legend-C0xAnJdO.js";
20
- import { t as Ne } from "./vue_ui_history_plot-CuN63VEc.js";
21
- import { Fragment as f, Teleport as Pe, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Re, nextTick as ze, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Be, onMounted as Ve, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as D, toRefs as We, unref as O, watch as Ge, watchEffect as Ke, withCtx as k } from "vue";
2
+ import { $ as t, D as n, G as r, Gt as i, Jt as a, Kt as o, Ot as s, Pt as c, S as ee, T as te, X as l, Y as ne, _ as re, bt as ie, i as u, jt as ae, pt as oe, q as se, qt as d, r as ce, t as le, tt as ue, w as de, xt as fe, zt as pe } from "./lib-BuMGJ_a0.js";
3
+ import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ge } from "./useConfig-BilxnBNr.js";
5
+ import { t as _e } from "./usePrinter-BFvi4jVy.js";
6
+ import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as be } from "./useSvgExport-Ba9qBr9M.js";
8
+ import { t as xe } from "./useNestedProp--NSEmhOH.js";
9
+ import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Ce } from "./useTransitions-g_zBREk2.js";
11
+ import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as Te } from "./img-DIQG5q8T.js";
13
+ import { n as Ee } from "./Title-BODtwViI.js";
14
+ import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
+ import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
16
+ import { t as Ae } from "./DefGrad-DVBqDjhO.js";
17
+ import { t as je } from "./BaseLegendToggle-CtAPwzr2.js";
18
+ import { t as Me } from "./A11yDataTable-DdRsVULz.js";
19
+ import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
20
+ import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
21
+ import { t as Fe } from "./Legend-CQTRlzK-.js";
22
+ import { t as Ie } from "./vue_ui_history_plot-CuN63VEc.js";
23
+ import { Fragment as f, Teleport as Le, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Ve, nextTick as He, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ue, onMounted as We, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as D, toRefs as qe, unref as O, watch as Je, watchEffect as Ye, withCtx as k } from "vue";
22
24
  //#region src/components/vue-ui-history-plot.vue
23
- var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe = ["id"], Ze = { style: { position: "relative" } }, Qe = [
25
+ var Xe = /* @__PURE__ */ e({ default: () => Ft }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
24
26
  "xmlns",
25
27
  "viewBox",
26
28
  "aria-describedby"
27
- ], $e = [
29
+ ], nt = [
28
30
  "x",
29
31
  "y",
30
32
  "width",
31
33
  "height"
32
- ], et = { key: 1 }, tt = [
34
+ ], rt = { key: 1 }, it = [
33
35
  "id",
34
36
  "x1",
35
37
  "y1",
36
38
  "x2",
37
39
  "y2"
38
- ], nt = ["stop-color", "offset"], rt = { key: 2 }, it = [
40
+ ], at = ["stop-color", "offset"], ot = { key: 2 }, st = [
39
41
  "x1",
40
42
  "x2",
41
43
  "y1",
42
44
  "y2",
43
45
  "stroke",
44
46
  "stroke-width"
45
- ], at = { key: 3 }, ot = [
47
+ ], ct = { key: 3 }, lt = [
46
48
  "stroke",
47
49
  "stroke-width",
48
50
  "x1",
49
51
  "x2",
50
52
  "y1",
51
53
  "y2"
52
- ], st = [
54
+ ], ut = [
53
55
  "x",
54
56
  "y",
55
57
  "fill",
56
58
  "font-size"
57
- ], ct = [
59
+ ], dt = [
58
60
  "transform",
59
61
  "font-size",
60
62
  "fill",
61
63
  "font-weight"
62
- ], lt = { key: 6 }, ut = [
64
+ ], ft = { key: 6 }, pt = [
63
65
  "x1",
64
66
  "x2",
65
67
  "y1",
66
68
  "y2",
67
69
  "stroke",
68
70
  "stroke-width"
69
- ], dt = { key: 7 }, ft = [
71
+ ], mt = { key: 7 }, ht = [
70
72
  "stroke",
71
73
  "stroke-width",
72
74
  "x1",
73
75
  "x2",
74
76
  "y1",
75
77
  "y2"
76
- ], pt = [
78
+ ], gt = [
77
79
  "transform",
78
80
  "fill",
79
81
  "font-size",
80
82
  "text-anchor"
81
- ], mt = [
83
+ ], _t = [
82
84
  "x",
83
85
  "y",
84
86
  "font-size",
85
87
  "fill",
86
88
  "font-weight"
87
- ], ht = [
89
+ ], vt = [
88
90
  "x1",
89
91
  "x2",
90
92
  "y1",
91
93
  "y2",
92
94
  "stroke",
93
95
  "stroke-width"
94
- ], gt = [
96
+ ], yt = [
95
97
  "x1",
96
98
  "x2",
97
99
  "y1",
98
100
  "y2",
99
101
  "stroke",
100
102
  "stroke-width"
101
- ], _t = [
103
+ ], bt = [
102
104
  "d",
103
105
  "stroke",
104
106
  "stroke-width"
105
- ], vt = [
107
+ ], xt = [
106
108
  "d",
107
109
  "stroke",
108
110
  "stroke-width"
109
- ], yt = [
111
+ ], St = [
110
112
  "cx",
111
113
  "cy",
112
114
  "fill",
113
115
  "r"
114
- ], bt = [
116
+ ], Ct = [
115
117
  "cx",
116
118
  "cy",
117
119
  "fill",
118
120
  "r",
119
121
  "stroke",
120
122
  "stroke-width"
121
- ], xt = { key: 1 }, St = [
122
- "x",
123
- "y",
123
+ ], wt = { key: 1 }, Tt = [
124
+ "transform",
124
125
  "font-size",
125
126
  "fill",
126
127
  "font-weight"
127
- ], Ct = [
128
- "x",
129
- "y",
128
+ ], Et = [
129
+ "transform",
130
130
  "font-size",
131
131
  "fill",
132
132
  "font-weight",
133
133
  "innerHTML"
134
- ], wt = { key: 2 }, Tt = [
135
- "x",
136
- "y",
134
+ ], Dt = { key: 2 }, Ot = [
135
+ "transform",
137
136
  "font-size",
138
137
  "font-weight",
139
138
  "fill"
140
- ], Et = [
139
+ ], kt = [
141
140
  "cx",
142
141
  "cy",
143
142
  "r",
144
143
  "onMouseenter",
145
144
  "onMouseleave",
146
145
  "onClick"
147
- ], Dt = {
146
+ ], At = {
148
147
  key: 0,
149
148
  style: {
150
149
  position: "absolute",
@@ -154,10 +153,10 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
154
153
  },
155
154
  "data-dom-to-png-ignore": "",
156
155
  "aria-hidden": "true"
157
- }, Ot = {
156
+ }, jt = {
158
157
  key: 5,
159
158
  class: "vue-data-ui-watermark"
160
- }, kt = ["id"], At = ["onClick"], jt = ["innerHTML"], Mt = /*#__PURE__*/ we({
159
+ }, Mt = ["id"], Nt = ["onClick"], Pt = ["innerHTML"], Ft = /*#__PURE__*/ De({
161
160
  __name: "vue-ui-history-plot",
162
161
  props: {
163
162
  config: {
@@ -178,120 +177,137 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
178
177
  "selectDatapoint",
179
178
  "copyAlt"
180
179
  ],
181
- setup(e, { expose: we, emit: qe }) {
182
- let Mt = v(() => import("./Tooltip-CA1rtSyl.js")), Nt = v(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Pt = v(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ft = v(() => import("./DataTable-DzPEVvSo.js")), It = v(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Lt = v(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), Rt = v(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), zt = v(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_history_plot: Bt } = me(), { isThemeValid: Vt, warnInvalidTheme: Ht } = be(), A = e, j = w(null), Ut = w(null), Wt = w(0), Gt = w(null), Kt = w(0), qt = w(0), Jt = w(0), M = Ue(null), N = Ue(null), Yt = w(null), P = w(s()), Xt = w(!1), Zt = w(""), F = w([]), I = w(!1), L = w(null), Qt = w(!1), $t = w(null), en = w(!1), tn = w(null), nn = w(null), rn = w(!1), an = w(!1), on = w(null), sn = w(null), cn = w(null), ln = w(null), R = w(null), z = w(null), un = w({
180
+ setup(e, { expose: De, emit: Xe }) {
181
+ let Ft = v(() => import("./Tooltip-CMTGxeYO.js")), It = v(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Lt = v(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Rt = v(() => import("./DataTable-D4tM9s5Y.js")), zt = v(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Bt = v(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Vt = v(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ht = v(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_history_plot: Ut } = ge(), { isThemeValid: Wt, warnInvalidTheme: Gt } = Se(), A = e, j = w(null), Kt = w(null), qt = w(0), Jt = w(null), Yt = w(0), Xt = w(0), Zt = w(0), M = Ke(null), N = Ke(null), Qt = w(null), P = w(se()), $t = w(!1), en = w(""), F = w([]), I = w(!1), L = w(null), tn = w(!1), nn = w(null), rn = w(!1), an = w(null), on = w(null), sn = w(!1), cn = w(!1), ln = w(null), un = w(null), dn = w(null), fn = w(null), R = w(null), z = w(null), pn = w({
183
182
  x: 0,
184
183
  y: 0
185
- }), dn = w("pointer"), fn = w(!1), pn = p({
184
+ }), mn = w("pointer"), hn = w(!1), gn = p({
186
185
  get: () => !!A.dataset && A.dataset.length,
187
186
  set: (e) => e
188
- }), mn = qe;
189
- Ve(() => {
190
- en.value = !0, gn();
187
+ }), _n = Xe;
188
+ We(() => {
189
+ rn.value = !0, yn();
191
190
  });
192
- let hn = p(() => !!B.value.debug);
193
- function gn() {
194
- if (t(A.dataset) ? (ae({
191
+ let vn = p(() => !!B.value.debug);
192
+ function yn() {
193
+ if (ae(A.dataset) ? (ue({
195
194
  componentName: "VueUiHistoryPlot",
196
195
  type: "dataset",
197
- debug: hn.value
198
- }), xn.value = !0) : A.dataset.forEach((e, t) => {
196
+ debug: vn.value
197
+ }), wn.value = !0) : A.dataset.forEach((e, t) => {
199
198
  oe({
200
199
  datasetObject: e,
201
200
  requiredAttributes: ["name", "values"]
202
201
  }).forEach((e) => {
203
- pn.value = !1, ae({
202
+ gn.value = !1, ue({
204
203
  componentName: "VueUiHistoryPlot",
205
204
  type: "datasetSerieAttribute",
206
205
  property: e,
207
206
  index: t,
208
- debug: hn.value
207
+ debug: vn.value
209
208
  });
210
209
  });
211
- }), t(A.dataset) || (xn.value = B.value.loading), B.value.responsive) {
212
- let e = Te(() => {
213
- let { width: e, height: t } = Ee({
210
+ }), ae(A.dataset) || (wn.value = B.value.loading), B.value.responsive) {
211
+ let e = Oe(() => {
212
+ let { width: e, height: t } = ke({
214
213
  chart: j.value,
215
- title: B.value.style.chart.title.text ? Ut.value : null,
216
- noTitle: Yt.value,
217
- legend: B.value.style.chart.legend.show ? Gt.value : null,
218
- source: $t.value
214
+ title: B.value.style.chart.title.text ? Kt.value : null,
215
+ noTitle: Qt.value,
216
+ legend: B.value.style.chart.legend.show ? Jt.value : null,
217
+ source: nn.value
219
218
  });
220
219
  requestAnimationFrame(() => {
221
- W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = c({
220
+ G.value.width = e, G.value.height = t, B.value.responsiveProportionalSizing ? (q.value.plots = d({
222
221
  relator: Math.min(e, t),
223
222
  adjuster: 600,
224
223
  source: B.value.style.chart.plots.radius,
225
224
  threshold: 3,
226
225
  fallback: 3
227
- }), K.value.indexLabels = c({
226
+ }), q.value.indexLabels = d({
228
227
  relator: Math.min(e, t),
229
228
  adjuster: 600,
230
229
  source: B.value.style.chart.plots.indexLabels.fontSize,
231
230
  threshold: 6,
232
231
  fallback: 6
233
- }), K.value.labels = c({
232
+ }), q.value.labels = d({
234
233
  relator: Math.min(e, t),
235
234
  adjuster: 600,
236
235
  source: B.value.style.chart.plots.labels.fontSize,
237
236
  threshold: 6,
238
237
  fallback: 6
239
- }), K.value.xAxisLabels = c({
238
+ }), q.value.xAxisLabels = d({
240
239
  relator: Math.min(e, t),
241
240
  adjuster: 600,
242
241
  source: B.value.style.chart.axes.x.labels.fontSize,
243
242
  threshold: 6,
244
243
  fallback: 6
245
- }), K.value.xAxisName = c({
244
+ }), q.value.xAxisName = d({
246
245
  relator: Math.min(e, t),
247
246
  adjuster: 600,
248
247
  source: B.value.style.chart.axes.x.name.fontSize,
249
248
  threshold: 6,
250
249
  fallback: 6
251
- }), K.value.yAxisLabels = c({
250
+ }), q.value.yAxisLabels = d({
252
251
  relator: Math.min(e, t),
253
252
  adjuster: 600,
254
253
  source: B.value.style.chart.axes.y.labels.fontSize,
255
254
  threshold: 6,
256
255
  fallback: 6
257
- }), K.value.yAxisName = c({
256
+ }), q.value.yAxisName = d({
258
257
  relator: Math.min(e, t),
259
258
  adjuster: 600,
260
259
  source: B.value.style.chart.axes.y.name.fontSize,
261
260
  threshold: 6,
262
261
  fallback: 6
263
- })) : (K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
262
+ })) : (q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
264
263
  });
265
264
  });
266
265
  M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = j.value.parentNode, M.value.observe(N.value);
267
266
  }
268
267
  }
269
- Be(() => {
268
+ Ue(() => {
270
269
  M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
271
270
  });
272
- function _n() {
273
- let e = ye({
271
+ function bn() {
272
+ let e = xe({
274
273
  userConfig: A.config,
275
- defaultConfig: Bt
274
+ defaultConfig: Ut
276
275
  }), t = {}, n = e.theme;
277
- if (n) if (!Vt.value(e)) Ht(e), t = e;
276
+ if (n) if (!Wt.value(e)) Gt(e), t = e;
278
277
  else {
279
- let r = ye({
280
- userConfig: Ne[n] || A.config,
278
+ let r = xe({
279
+ userConfig: Ie[n] || A.config,
281
280
  defaultConfig: e
282
281
  });
283
282
  t = {
284
- ...ye({
283
+ ...xe({
285
284
  userConfig: A.config,
286
285
  defaultConfig: r
287
286
  }),
288
- customPalette: e.customPalette.length ? e.customPalette : a[n] || l
287
+ customPalette: e.customPalette.length ? e.customPalette : o[n] || c
289
288
  };
290
289
  }
291
290
  else t = e;
292
291
  return t;
293
292
  }
294
- let B = w(_n()), V = p(() => B.value.userOptions.useCursorPointer), vn = p(() => ce({
293
+ let B = w(bn());
294
+ me({
295
+ config: () => B.value,
296
+ dataset: () => A.dataset,
297
+ component: "VueUiHistoryPlot",
298
+ rules: [he.emptyArray, {
299
+ test: (e) => e.length > 6,
300
+ message: [
301
+ "👀 The number of series is > 6. Consider:",
302
+ "",
303
+ "▶️ Using filters to let users choose a maximum number of series to display."
304
+ ]
305
+ }]
306
+ });
307
+ let { transitionEnabled: V } = Ce({
308
+ config: () => B.value.transitions,
309
+ dataset: () => A.dataset
310
+ }), H = p(() => B.value.userOptions.useCursorPointer), xn = p(() => a({
295
311
  defaultConfig: {
296
312
  userOptions: { show: !1 },
297
313
  table: { show: !1 },
@@ -330,10 +346,10 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
330
346
  } }
331
347
  },
332
348
  userConfig: B.value.skeletonConfig ?? {}
333
- })), { loading: yn, FINAL_DATASET: bn, manualLoading: xn } = ge({
334
- ...We(A),
349
+ })), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = ve({
350
+ ...qe(A),
335
351
  FINAL_CONFIG: B,
336
- prepareConfig: _n,
352
+ prepareConfig: bn,
337
353
  skeletonDataset: A.config?.skeletonDataset ?? [{
338
354
  name: "",
339
355
  color: "#CACACA",
@@ -360,70 +376,70 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
360
376
  }
361
377
  ]
362
378
  }],
363
- skeletonConfig: ce({
379
+ skeletonConfig: a({
364
380
  defaultConfig: B.value,
365
- userConfig: vn.value
381
+ userConfig: xn.value
366
382
  })
367
- }), { userOptionsVisible: Sn, setUserOptionsVisibility: Cn, keepUserOptionState: wn } = Ae({ config: B.value }), { svgRef: H } = je({ config: B.value.style.chart.title });
368
- Ge(() => A.config, (e) => {
369
- yn.value || (B.value = _n()), Sn.value = !B.value.userOptions.showOnChartHover, gn(), Wt.value += 1, qt.value += 1, Kt.value += 1, W.value.height = B.value.style.chart.height, W.value.width = B.value.style.chart.width, K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, U.value.showTable = B.value.table.show, U.value.showTooltip = B.value.style.chart.tooltip.show;
370
- }, { deep: !0 }), Ge(() => A.dataset, (e) => {
371
- Array.isArray(e) && e.length > 0 && (xn.value = !1);
383
+ }), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = Ne({ config: B.value }), { svgRef: U } = Pe({ config: B.value.style.chart.title });
384
+ Je(() => A.config, (e) => {
385
+ Sn.value || (B.value = bn()), Tn.value = !B.value.userOptions.showOnChartHover, yn(), qt.value += 1, Xt.value += 1, Yt.value += 1, G.value.height = B.value.style.chart.height, G.value.width = B.value.style.chart.width, q.value.plots = B.value.style.chart.plots.radius, q.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, q.value.labels = B.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, W.value.showTable = B.value.table.show, W.value.showTooltip = B.value.style.chart.tooltip.show;
386
+ }, { deep: !0 }), Je(() => A.dataset, (e) => {
387
+ Array.isArray(e) && e.length > 0 && (wn.value = !1);
372
388
  }, { deep: !0 });
373
- let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } = he({
389
+ let { isPrinting: On, isImaging: kn, generatePdf: An, generateImage: jn } = _e({
374
390
  elementId: `history_plot_${P.value}`,
375
391
  fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
376
392
  options: B.value.userOptions.print
377
- }), kn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), An = p(() => n(B.value.customPalette)), U = w({
393
+ }), Mn = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), Nn = p(() => de(B.value.customPalette)), W = w({
378
394
  showTable: B.value.table.show,
379
395
  showTooltip: B.value.style.chart.tooltip.show
380
396
  });
381
- Ge(B, () => {
382
- U.value = {
397
+ Je(B, () => {
398
+ W.value = {
383
399
  showTable: B.value.table.show,
384
400
  showTooltip: B.value.style.chart.tooltip.show
385
401
  };
386
402
  }, { immediate: !0 });
387
- let W = w({
403
+ let G = w({
388
404
  height: B.value.style.chart.height,
389
405
  width: B.value.style.chart.width
390
- }), jn = p(() => W.value.width), Mn = p(() => W.value.height);
391
- function Nn() {
406
+ }), Pn = p(() => G.value.width), Fn = p(() => G.value.height);
407
+ function In() {
392
408
  let e = 0;
393
- ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
409
+ fn.value && (e = Array.from(fn.value.querySelectorAll("text")).reduce((e, t) => {
394
410
  let n = t.getComputedTextLength();
395
411
  return n > e ? n : e;
396
412
  }, 0));
397
- let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
413
+ let t = un.value ? un.value.getBoundingClientRect().width : 0;
398
414
  return e + t + (t ? 24 : 0);
399
415
  }
400
- let Pn = w(0), Fn = Te((e) => {
401
- Pn.value = e;
416
+ let Ln = w(0), Rn = Oe((e) => {
417
+ Ln.value = e;
402
418
  });
403
- Ke((e) => {
404
- let t = cn.value;
419
+ Ye((e) => {
420
+ let t = dn.value;
405
421
  if (!t) return;
406
422
  let n = new ResizeObserver((e) => {
407
- Fn(e[0].contentRect.height);
423
+ Rn(e[0].contentRect.height);
408
424
  });
409
425
  n.observe(t), e(() => n.disconnect());
410
426
  });
411
- let In = p(() => {
427
+ let zn = p(() => {
412
428
  let e = 0;
413
- on.value && (e = on.value.getBBox().height + K.value.xAxisName / 2);
429
+ ln.value && (e = ln.value.getBBox().height + q.value.xAxisName / 2);
414
430
  let t = 0;
415
- return cn.value && (t = Pn.value), e + t;
416
- }), G = p(() => {
417
- let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Nn(), r = B.value.style.chart.plots.radius;
431
+ return dn.value && (t = Ln.value), e + t;
432
+ }), K = p(() => {
433
+ let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = In(), r = B.value.style.chart.plots.radius;
418
434
  return {
419
435
  left: e + n + B.value.style.chart.axes.y.name.offsetX,
420
436
  top: t + r,
421
- right: W.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
422
- bottom: W.value.height - B.value.style.chart.padding.bottom - In.value - r - B.value.style.chart.axes.x.name.offsetY,
423
- width: W.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
424
- height: W.value.height - t - B.value.style.chart.padding.bottom - In.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
437
+ right: G.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
438
+ bottom: G.value.height - B.value.style.chart.padding.bottom - zn.value - r - B.value.style.chart.axes.x.name.offsetY,
439
+ width: G.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
440
+ height: G.value.height - t - B.value.style.chart.padding.bottom - zn.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
425
441
  };
426
- }), K = w({
442
+ }), q = w({
427
443
  plots: B.value.style.chart.plots.radius,
428
444
  indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
429
445
  labels: B.value.style.chart.plots.labels.fontSize,
@@ -431,90 +447,90 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
431
447
  xAxisName: B.value.style.chart.axes.x.name.fontSize,
432
448
  yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
433
449
  yAxisName: B.value.style.chart.axes.y.name.fontSize
434
- }), q = p(() => bn.value.map((e, t) => {
435
- let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => fe(e)) : void 0;
450
+ }), J = p(() => Cn.value.map((e, t) => {
451
+ let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => ee(e)) : void 0;
436
452
  return {
437
453
  ...e,
438
- color: e.color ? fe(e.color) : An.value[t] || l[t] || l[t % l.length],
454
+ color: e.color ? ee(e.color) : Nn.value[t] || c[t] || c[t % c.length],
439
455
  temperatureColors: n,
440
- temperatureAngle: Ln(e.temperatureAngle),
456
+ temperatureAngle: Bn(e.temperatureAngle),
441
457
  temperatureIndependant: e.temperatureIndependant === !0,
442
458
  usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
443
459
  seriesIndex: t
444
460
  };
445
461
  }));
446
- function Ln(e = 0) {
462
+ function Bn(e = 0) {
447
463
  let t = Number(e);
448
464
  return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
449
465
  }
450
- let Rn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), zn = p(() => {
451
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
466
+ let Vn = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Hn = p(() => {
467
+ let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
452
468
  return e < 0 ? e : 0;
453
- }), Bn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Vn = p(() => {
454
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
469
+ }), Un = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Wn = p(() => {
470
+ let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
455
471
  return e < 0 ? e : 0;
456
- }), J = p(() => {
457
- let e = se(B.value.style.chart.axes.x.scaleMin ?? zn.value, B.value.style.chart.axes.x.scaleMax ?? Rn.value, B.value.style.chart.axes.x.ticks), t = se(B.value.style.chart.axes.y.scaleMin ?? Vn.value, B.value.style.chart.axes.y.scaleMax ?? Bn.value, B.value.style.chart.axes.y.ticks);
472
+ }), Y = p(() => {
473
+ let e = re(B.value.style.chart.axes.x.scaleMin ?? Hn.value, B.value.style.chart.axes.x.scaleMax ?? Vn.value, B.value.style.chart.axes.x.ticks), t = re(B.value.style.chart.axes.y.scaleMin ?? Wn.value, B.value.style.chart.axes.y.scaleMax ?? Un.value, B.value.style.chart.axes.y.ticks);
458
474
  return {
459
475
  x: e,
460
476
  y: t,
461
477
  tickX: e.ticks.map((t) => ({
462
- x: G.value.left + (t - e.min) / (e.max - e.min) * G.value.width,
463
- y1: G.value.top,
464
- y2: G.value.bottom,
478
+ x: K.value.left + (t - e.min) / (e.max - e.min) * K.value.width,
479
+ y1: K.value.top,
480
+ y2: K.value.bottom,
465
481
  value: t
466
482
  })),
467
483
  tickY: t.ticks.map((e) => ({
468
- y: G.value.bottom - (e - t.min) / (t.max - t.min) * G.value.height,
469
- x1: G.value.left,
470
- x2: G.value.right,
484
+ y: K.value.bottom - (e - t.min) / (t.max - t.min) * K.value.height,
485
+ x1: K.value.left,
486
+ x2: K.value.right,
471
487
  value: e
472
488
  }))
473
489
  };
474
490
  });
475
- function Hn(e) {
476
- let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
477
- return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
491
+ function Gn(e) {
492
+ let t = Y.value.x.min < 0 ? Math.abs(Y.value.x.min) : Y.value.x.min > 0 ? -Y.value.x.min : 0;
493
+ return K.value.left + ((e || 0) + t) / (Y.value.x.max + t) * K.value.width;
478
494
  }
479
- function Un(e) {
480
- let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
481
- return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
495
+ function Kn(e) {
496
+ let t = Y.value.y.min < 0 ? Math.abs(Y.value.y.min) : Y.value.y.min > 0 ? -Y.value.y.min : 0;
497
+ return K.value.bottom - ((e || 0) + t) / (Y.value.y.max + t) * K.value.height;
482
498
  }
483
- let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, t) => {
499
+ let X = p(() => J.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, t) => {
484
500
  let n = e.values.map((t, n) => ({
485
501
  valueX: t.x,
486
502
  valueY: t.y,
487
503
  label: t.label,
488
- x: Hn(t.x),
489
- y: Un(t.y),
504
+ x: Gn(t.x),
505
+ y: Kn(t.y),
490
506
  color: e.color,
491
507
  seriesName: e.name,
492
- id: s()
493
- })), r = e.smooth ? de(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
508
+ id: se()
509
+ })), r = e.smooth ? te(n) : n.map((e) => `${e.x},${e.y} `).join("").trim();
494
510
  return {
495
511
  ...e,
496
512
  gradientIndex: t,
497
513
  plots: n,
498
514
  path: `M${r}`
499
515
  };
500
- })), Wn = p(() => {
501
- if (L.value === null || R.value === null) return Y.value;
502
- let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
503
- if (e === -1) return Y.value;
504
- let t = Y.value[e];
516
+ })), qn = p(() => {
517
+ if (L.value === null || R.value === null) return X.value;
518
+ let e = X.value.findIndex((e) => e.seriesIndex === R.value);
519
+ if (e === -1) return X.value;
520
+ let t = X.value[e];
505
521
  return [
506
- ...Y.value.slice(0, e),
507
- ...Y.value.slice(e + 1),
522
+ ...X.value.slice(0, e),
523
+ ...X.value.slice(e + 1),
508
524
  t
509
525
  ];
510
- }), Gn = p(() => Y.value.some((e) => Kn(e)));
511
- function Kn(e) {
526
+ }), Jn = p(() => X.value.some((e) => Z(e)));
527
+ function Z(e) {
512
528
  return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
513
529
  }
514
- function qn(e) {
515
- return Kn(e) && e.usePlotTemperatureColors;
530
+ function Yn(e) {
531
+ return Z(e) && e.usePlotTemperatureColors;
516
532
  }
517
- function Jn(e) {
533
+ function Xn(e) {
518
534
  let t = Array.isArray(e?.plots) ? e.plots : [];
519
535
  if (!t.length) return {
520
536
  minX: 0,
@@ -534,8 +550,8 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
534
550
  height: s - o
535
551
  };
536
552
  }
537
- function Yn() {
538
- let e = G.value;
553
+ function Zn() {
554
+ let e = K.value;
539
555
  return {
540
556
  minX: e.left,
541
557
  maxX: e.right,
@@ -545,11 +561,11 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
545
561
  height: e.height
546
562
  };
547
563
  }
548
- function Xn(e) {
549
- return e?.temperatureIndependant ? Jn(e) : Yn();
564
+ function Qn(e) {
565
+ return e?.temperatureIndependant ? Xn(e) : Zn();
550
566
  }
551
- function Zn(e) {
552
- let t = Ln(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Xn(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;
567
+ function $n(e) {
568
+ let t = Bn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Qn(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;
553
569
  return {
554
570
  x1: a - n * s,
555
571
  y1: o - r * s,
@@ -557,78 +573,72 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
557
573
  y2: o + r * s
558
574
  };
559
575
  }
560
- function Qn(e, t) {
561
- let { x1: n, y1: r, x2: i, y2: a } = Zn(e), o = i - n, s = a - r, c = o * o + s * s;
576
+ function er(e, t) {
577
+ let { x1: n, y1: r, x2: i, y2: a } = $n(e), o = i - n, s = a - r, c = o * o + s * s;
562
578
  if (!c) return 0;
563
- let l = ((t.x - n) * o + (t.y - r) * s) / c;
564
- return Math.min(1, Math.max(0, l));
579
+ let ee = ((t.x - n) * o + (t.y - r) * s) / c;
580
+ return Math.min(1, Math.max(0, ee));
565
581
  }
566
- function X(e, t) {
567
- return pe({
582
+ function Q(e, t) {
583
+ return ie({
568
584
  colors: e.temperatureColors,
569
- ratio: Qn(e, t)
585
+ ratio: er(e, t)
570
586
  });
571
587
  }
572
- function $n(e, t) {
588
+ function tr(e, t) {
573
589
  return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
574
590
  }
575
- function er(e, t, n) {
576
- return qn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${$n(e, t)})` : X(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
591
+ function nr(e, t, n) {
592
+ return Yn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${tr(e, t)})` : Q(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
577
593
  }
578
- function tr(e, t) {
579
- return qn(e) ? X(e, t) : e.color;
594
+ function rr(e, t) {
595
+ return Yn(e) ? Q(e, t) : e.color;
580
596
  }
581
- function nr(e, t) {
582
- return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(tr(e, t)) : B.value.style.chart.plots.indexLabels.color;
597
+ function ir(e, t) {
598
+ return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? ce(rr(e, t)) : B.value.style.chart.plots.indexLabels.color;
583
599
  }
584
- function rr(e, t) {
585
- let n = Y.value.find((t) => t.seriesIndex === e);
586
- return n && qn(n) ? X(n, t) : t.color;
600
+ function ar(e, t) {
601
+ let n = X.value.find((t) => t.seriesIndex === e);
602
+ return n && Yn(n) ? Q(n, t) : t.color;
587
603
  }
588
- function ir(e) {
589
- return Kn(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
604
+ function or(e) {
605
+ return Z(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
590
606
  }
591
- function ar(e) {
607
+ function sr(e) {
592
608
  return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
593
609
  }
594
610
  p(() => L.value !== null && R.value !== null);
595
- let or = w(!1);
596
- function Z() {
597
- return B.value.useCssAnimation && !yn.value && !or.value;
598
- }
599
- function sr() {
600
- return "opacity 0.2s ease-in-out";
601
- }
602
- function cr() {
603
- F.value.length ? F.value = [] : Q.value.forEach((e) => {
611
+ let cr = w(!1);
612
+ function lr() {
613
+ F.value.length ? F.value = [] : mr.value.forEach((e) => {
604
614
  F.value.push(e.seriesIndex);
605
- }), mn("selectLegend", Y.value);
606
- }
607
- function lr(e) {
608
- F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), mn("selectLegend", Y.value);
615
+ }), _n("selectLegend", X.value);
609
616
  }
610
617
  function ur(e) {
611
- return q.value.length ? q.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
618
+ F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), _n("selectLegend", X.value);
612
619
  }
613
620
  function dr(e) {
614
- let t = ur(e);
615
- t !== null && F.value.includes(t.seriesIndex) && lr(t.seriesIndex);
621
+ return J.value.length ? J.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
616
622
  }
617
623
  function fr(e) {
618
- let t = ur(e);
619
- t !== null && (F.value.includes(t.seriesIndex) || lr(t.seriesIndex));
624
+ let t = dr(e);
625
+ t !== null && F.value.includes(t.seriesIndex) && ur(t.seriesIndex);
620
626
  }
621
- let Q = p(() => q.value.map((e) => {
622
- let t = Kn(e) ? e.temperatureColors : null;
627
+ function pr(e) {
628
+ let t = dr(e);
629
+ t !== null && (F.value.includes(t.seriesIndex) || ur(t.seriesIndex));
630
+ }
631
+ let mr = p(() => J.value.map((e) => {
632
+ let t = Z(e) ? e.temperatureColors : null;
623
633
  return {
624
634
  ...e,
625
635
  gradientColors: t,
626
636
  opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
627
- segregate: () => lr(e.seriesIndex),
637
+ segregate: () => ur(e.seriesIndex),
628
638
  isSegregated: F.value.includes(e.seriesIndex),
629
639
  shape: t ? "gradient" : "circle"
630
640
  };
631
- })), pr = p(() => ({
641
+ })), hr = p(() => ({
632
642
  cy: "history-plot-div-legend",
633
643
  backgroundColor: B.value.style.chart.legend.backgroundColor,
634
644
  color: B.value.style.chart.legend.color,
@@ -636,7 +646,7 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
636
646
  paddingBottom: 12,
637
647
  fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
638
648
  }));
639
- function mr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
649
+ function gr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
640
650
  B.value.events.datapointClick && B.value.events.datapointClick({
641
651
  datapoint: {
642
652
  ...e,
@@ -644,13 +654,13 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
644
654
  seriesIndex: n
645
655
  },
646
656
  seriesIndex: n
647
- }), mn("selectDatapoint", e);
657
+ }), _n("selectDatapoint", e);
648
658
  }
649
- function hr(e) {
650
- I.value = e, Jt.value += 1;
659
+ function _r(e) {
660
+ I.value = e, Zt.value += 1;
651
661
  }
652
- let gr = w(null);
653
- function _r({ datapoint: e, plotIndex: t, seriesIndex: n }) {
662
+ let vr = w(null);
663
+ function yr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
654
664
  B.value.events.datapointLeave && B.value.events.datapointLeave({
655
665
  datapoint: {
656
666
  ...e,
@@ -658,18 +668,18 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
658
668
  seriesIndex: n
659
669
  },
660
670
  seriesIndex: n
661
- }), !(dn.value === "keyboard" && R.value === n && z.value === t) && (Xt.value = !1, L.value = null);
671
+ }), !(mn.value === "keyboard" && R.value === n && z.value === t) && ($t.value = !1, L.value = null);
662
672
  }
663
- function vr(e, t) {
664
- if (!H.value) return;
665
- let n = Y.value.find((t) => t.seriesIndex === e);
673
+ function br(e, t) {
674
+ if (!U.value) return;
675
+ let n = X.value.find((t) => t.seriesIndex === e);
666
676
  if (!n) return;
667
677
  let r = n.plots[t];
668
678
  if (!r) return;
669
- let i = re(r.x, r.y, H.value);
670
- i && (un.value = i);
679
+ let a = i(r.x, r.y, U.value);
680
+ a && (pn.value = a);
671
681
  }
672
- function yr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
682
+ function xr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
673
683
  B.value.events.datapointEnter && B.value.events.datapointEnter({
674
684
  datapoint: {
675
685
  ...e,
@@ -677,52 +687,52 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
677
687
  seriesIndex: n
678
688
  },
679
689
  seriesIndex: n
680
- }), R.value = n, z.value = t, dn.value = r, or.value = !0;
681
- let i = rr(n, e), a = {
690
+ }), R.value = n, z.value = t, mn.value = r, cr.value = !0;
691
+ let i = ar(n, e), a = {
682
692
  ...e,
683
693
  color: i
684
694
  };
685
- gr.value = {
695
+ vr.value = {
686
696
  datapoint: a,
687
697
  color: i,
688
698
  seriesIndex: n,
689
699
  plotIndex: t,
690
700
  config: B.value,
691
- series: q.value
701
+ series: J.value
692
702
  }, L.value = e;
693
703
  let o = B.value.style.chart.tooltip.customFormat;
694
- if (Qt.value = !1, ie(o)) try {
704
+ if (tn.value = !1, fe(o)) try {
695
705
  let e = o({
696
706
  seriesIndex: n,
697
707
  datapoint: a,
698
708
  color: i,
699
709
  plotIndex: t,
700
- series: q.value,
710
+ series: J.value,
701
711
  config: B.value
702
712
  });
703
- typeof e == "string" && (Zt.value = e, Qt.value = !0);
713
+ typeof e == "string" && (en.value = e, tn.value = !0);
704
714
  } catch {
705
- console.warn("Custom format cannot be applied."), Qt.value = !1;
715
+ console.warn("Custom format cannot be applied."), tn.value = !1;
706
716
  }
707
- if (!Qt.value) {
717
+ if (!tn.value) {
708
718
  let t = "";
709
- t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${B.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="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${B.value.style.chart.axes.x.name.text || "x"}: ${d(B.value.style.chart.axes.x.labels.formatter, e.valueX, u({
719
+ t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${B.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="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${B.value.style.chart.axes.x.name.text || "x"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
710
720
  p: B.value.style.chart.axes.x.labels.prefix,
711
721
  v: e.valueX,
712
722
  s: B.value.style.chart.axes.x.labels.suffix,
713
723
  r: B.value.style.chart.axes.x.labels.rounding
714
- }))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${d(B.value.style.chart.axes.y.labels.formatter, e.valueY, u({
724
+ }))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
715
725
  p: B.value.style.chart.axes.y.labels.prefix,
716
726
  v: e.valueY,
717
727
  s: B.value.style.chart.axes.y.labels.suffix,
718
728
  r: B.value.style.chart.axes.y.labels.rounding
719
- }))}</div>`, Zt.value = `<div>${t}</div>`;
729
+ }))}</div>`, en.value = `<div>${t}</div>`;
720
730
  }
721
- Xt.value = !0, r === "keyboard" && ze(() => {
722
- vr(n, t);
731
+ $t.value = !0, r === "keyboard" && He(() => {
732
+ br(n, t);
723
733
  });
724
734
  }
725
- p(() => ({ head: Y.value.map((e) => ({
735
+ p(() => ({ head: X.value.map((e) => ({
726
736
  name: e.name,
727
737
  color: e.color
728
738
  })) }));
@@ -735,19 +745,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
735
745
  ];
736
746
  return {
737
747
  head: e,
738
- body: Y.value.flatMap((e) => e.plots.map((e) => [
748
+ body: X.value.flatMap((e) => e.plots.map((e) => [
739
749
  {
740
750
  color: e.color,
741
751
  name: e.seriesName
742
752
  },
743
753
  e.label,
744
- d(B.value.style.chart.axes.x.labels.formatter, e.valueX, u({
754
+ u(B.value.style.chart.axes.x.labels.formatter, e.valueX, l({
745
755
  p: B.value.style.chart.axes.x.labels.prefix,
746
756
  v: e.valueX,
747
757
  s: B.value.style.chart.axes.x.labels.suffix,
748
758
  r: B.value.style.chart.axes.x.labels.rounding
749
759
  })),
750
- d(B.value.style.chart.axes.y.labels.formatter, e.valueY, u({
760
+ u(B.value.style.chart.axes.y.labels.formatter, e.valueY, l({
751
761
  p: B.value.style.chart.axes.y.labels.prefix,
752
762
  v: e.valueY,
753
763
  s: B.value.style.chart.axes.y.labels.suffix,
@@ -770,45 +780,45 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
770
780
  colNames: e
771
781
  };
772
782
  });
773
- function br(e = null) {
774
- ze(() => {
775
- let t = [
783
+ function Sr(e = null) {
784
+ He(() => {
785
+ let r = [
776
786
  [B.value.table.columnNames.series],
777
787
  [B.value.table.columnNames.datapoint],
778
788
  [B.value.table.columnNames.x],
779
789
  [B.value.table.columnNames.y]
780
- ], n = Y.value.flatMap((e) => e.plots.map((e) => [
790
+ ], i = X.value.flatMap((e) => e.plots.map((e) => [
781
791
  [e.seriesName],
782
792
  [e.label],
783
793
  [e.valueX],
784
794
  [e.valueY]
785
- ])), r = i([
795
+ ])), a = n([
786
796
  [B.value.style.chart.title.text],
787
797
  [B.value.style.chart.title.subtitle.text],
788
- t
789
- ].concat(n));
790
- e ? e(r) : ee({
791
- csvContent: r,
798
+ r
799
+ ].concat(i));
800
+ e ? e(a) : t({
801
+ csvContent: a,
792
802
  title: B.value.style.chart.title.text || "vue-ui-history-plot"
793
803
  });
794
804
  });
795
805
  }
796
- let xr = w(!1);
797
- function Sr() {
798
- xr.value = !xr.value;
799
- }
800
- function Cr() {
801
- U.value.showTable = !U.value.showTable;
802
- }
806
+ let Cr = w(!1);
803
807
  function wr() {
804
- U.value.showTooltip = !U.value.showTooltip;
808
+ Cr.value = !Cr.value;
805
809
  }
806
810
  function Tr() {
807
- return Y.value;
811
+ W.value.showTable = !W.value.showTable;
808
812
  }
809
- async function Er({ scale: e = 2 } = {}) {
813
+ function Er() {
814
+ W.value.showTooltip = !W.value.showTooltip;
815
+ }
816
+ function Dr() {
817
+ return X.value;
818
+ }
819
+ async function Or({ scale: e = 2 } = {}) {
810
820
  if (!j.value) return;
811
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
821
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Te({
812
822
  domElement: j.value,
813
823
  base64: !0,
814
824
  img: !0,
@@ -823,12 +833,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
823
833
  aspectRatio: r
824
834
  };
825
835
  }
826
- xe({
827
- timeLabelsEls: cn,
828
- timeLabels: p(() => J.value.tickX),
836
+ we({
837
+ timeLabelsEls: dn,
838
+ timeLabels: p(() => Y.value.tickX),
829
839
  slicer: p(() => ({
830
840
  start: 0,
831
- end: J.value.tickX.length
841
+ end: Y.value.tickX.length
832
842
  })),
833
843
  configRef: B,
834
844
  rotationPath: [
@@ -849,15 +859,15 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
849
859
  "enable"
850
860
  ],
851
861
  isAutoSize: !1,
852
- width: jn,
853
- height: Mn,
862
+ width: Pn,
863
+ height: Fn,
854
864
  targetClass: ".vue-ui-history-plot-x-axis-scale",
855
865
  rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
856
866
  });
857
- let Dr = p(() => {
858
- let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
867
+ let kr = p(() => {
868
+ let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
859
869
  return {
860
- component: e ? zt : Pt,
870
+ component: e ? Ht : Lt,
861
871
  title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
862
872
  props: e ? {
863
873
  backgroundColor: B.value.table.th.backgroundColor,
@@ -884,60 +894,60 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
884
894
  }
885
895
  };
886
896
  });
887
- Ge(() => U.value.showTable, (e) => {
888
- B.value.table.show || (e && B.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
897
+ Je(() => W.value.showTable, (e) => {
898
+ B.value.table.show || (e && B.value.table.useDialog && an.value ? an.value.open() : "close" in an.value && an.value.close());
889
899
  });
890
- function Or() {
891
- U.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
900
+ function Ar() {
901
+ W.value.showTable = !1, on.value && on.value.setTableIconState(!1);
892
902
  }
893
- let kr = p(() => B.value.style.chart.backgroundColor), Ar = p(() => B.value.style.chart.legend), { exportSvg: jr, getSvg: Mr } = ve({
894
- svg: H,
903
+ let jr = p(() => B.value.style.chart.backgroundColor), Mr = p(() => B.value.style.chart.legend), { exportSvg: Nr, getSvg: Pr } = be({
904
+ svg: U,
895
905
  title: p(() => B.value.style.chart.title),
896
- legend: Ar,
897
- legendItems: Q,
898
- backgroundColor: kr
906
+ legend: Mr,
907
+ legendItems: mr,
908
+ backgroundColor: jr
899
909
  });
900
- async function Nr({ isCb: e }) {
901
- an.value = !0, await ze();
910
+ async function Fr({ isCb: e }) {
911
+ cn.value = !0, await He();
902
912
  try {
903
913
  if (e) {
904
- let { blob: e, url: t, text: n, dataUrl: r } = await Mr();
914
+ let { blob: e, url: t, text: n, dataUrl: r } = await Pr();
905
915
  await Promise.resolve(B.value.userOptions.callbacks.svg({
906
916
  blob: e,
907
917
  url: t,
908
918
  text: n,
909
919
  dataUrl: r
910
920
  }));
911
- } else await Promise.resolve(jr());
921
+ } else await Promise.resolve(Nr());
912
922
  } finally {
913
- an.value = !1;
923
+ cn.value = !1;
914
924
  }
915
925
  }
916
- function Pr(e) {
926
+ function Ir(e) {
917
927
  if (e?.stage === "start") {
918
- rn.value = !0;
928
+ sn.value = !0;
919
929
  return;
920
930
  }
921
931
  if (e?.stage === "end") {
922
- rn.value = !1;
932
+ sn.value = !1;
923
933
  return;
924
934
  }
925
- On();
935
+ jn();
926
936
  }
927
- async function Fr() {
928
- if (mn("copyAlt", {
937
+ async function Lr() {
938
+ if (_n("copyAlt", {
929
939
  config: B.value,
930
- dataset: Y.value
940
+ dataset: X.value
931
941
  }), !B.value.userOptions.callbacks.altCopy) {
932
942
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
933
943
  return;
934
944
  }
935
945
  await Promise.resolve(B.value.userOptions.callbacks.altCopy({
936
946
  config: B.value,
937
- dataset: Y.value
947
+ dataset: X.value
938
948
  }));
939
949
  }
940
- let Ir = p(() => ({
950
+ let Rr = p(() => ({
941
951
  head: $.value.head,
942
952
  body: $.value.body.map((e) => [
943
953
  e[0]?.name || "",
@@ -948,46 +958,46 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
948
958
  caption: B.value.a11y.translations.tableCaption,
949
959
  notice: B.value.a11y.translations.tableAvailable
950
960
  }));
951
- function Lr(e) {
952
- return Y.value.findIndex((t) => t.seriesIndex === e);
961
+ function zr(e) {
962
+ return X.value.findIndex((t) => t.seriesIndex === e);
953
963
  }
954
- function Rr() {
964
+ function Br() {
955
965
  if (R.value !== null && z.value !== null) {
956
- let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
957
- e && _r({
966
+ let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
967
+ e && yr({
958
968
  datapoint: e,
959
969
  plotIndex: z.value,
960
970
  seriesIndex: R.value
961
971
  });
962
972
  }
963
- R.value = null, z.value = null, dn.value = "pointer", Xt.value = !1, L.value = null;
973
+ R.value = null, z.value = null, mn.value = "pointer", $t.value = !1, L.value = null;
964
974
  }
965
- function zr() {
966
- R.value = null, z.value = null, fn.value = !0;
975
+ function Vr() {
976
+ R.value = null, z.value = null, hn.value = !0;
967
977
  }
968
- function Br() {
969
- Rr(), fn.value = !1;
978
+ function Hr() {
979
+ Br(), hn.value = !1;
970
980
  }
971
- function Vr(e, t) {
981
+ function Ur(e, t) {
972
982
  if (!e?.plots?.length) return null;
973
983
  let n = e.plots.length;
974
984
  return (t % n + n) % n;
975
985
  }
976
- function Hr({ seriesIndex: e, plotIndex: t, direction: n }) {
977
- if (!Y.value.length) return null;
978
- let r = Lr(e);
986
+ function Wr({ seriesIndex: e, plotIndex: t, direction: n }) {
987
+ if (!X.value.length) return null;
988
+ let r = zr(e);
979
989
  if (r === -1) return null;
980
990
  if (n === "up" || n === "down") {
981
- let e = Y.value[r];
991
+ let e = X.value[r];
982
992
  if (!e?.plots?.length) return null;
983
- let i = Vr(e, t + (n === "up" ? -1 : 1));
993
+ let i = Ur(e, t + (n === "up" ? -1 : 1));
984
994
  return {
985
995
  seriesIndex: e.seriesIndex,
986
996
  plotIndex: i
987
997
  };
988
998
  }
989
999
  if (n === "left" || n === "right") {
990
- let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
1000
+ let e = ((r + (n === "left" ? -1 : 1)) % X.value.length + X.value.length) % X.value.length, i = X.value[e];
991
1001
  if (!i?.plots?.length) return null;
992
1002
  let a = Math.min(t, i.plots.length - 1);
993
1003
  return {
@@ -997,19 +1007,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
997
1007
  }
998
1008
  return null;
999
1009
  }
1000
- function Ur(e) {
1001
- if (!H.value || xr.value || document.activeElement !== H.value || !Y.value.length) return;
1010
+ function Gr(e) {
1011
+ if (!U.value || Cr.value || document.activeElement !== U.value || !X.value.length) return;
1002
1012
  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";
1003
1013
  if (!t && !n && !r && !i && !a && !o) return;
1004
1014
  if (e.preventDefault(), e.stopPropagation(), o) {
1005
- Rr();
1015
+ Br();
1006
1016
  return;
1007
1017
  }
1008
1018
  if (a) {
1009
1019
  if (R.value === null || z.value === null) return;
1010
- let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
1020
+ let e = X.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
1011
1021
  if (!e) return;
1012
- mr({
1022
+ gr({
1013
1023
  datapoint: e,
1014
1024
  plotIndex: z.value,
1015
1025
  seriesIndex: R.value
@@ -1018,52 +1028,52 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1018
1028
  }
1019
1029
  let s = null;
1020
1030
  if (R.value === null || z.value === null) {
1021
- let e = Y.value[0];
1031
+ let e = X.value[0];
1022
1032
  if (!e?.plots?.length) return;
1023
1033
  s = {
1024
1034
  seriesIndex: e.seriesIndex,
1025
1035
  plotIndex: 0
1026
1036
  };
1027
- } else r ? s = Hr({
1037
+ } else r ? s = Wr({
1028
1038
  seriesIndex: R.value,
1029
1039
  plotIndex: z.value,
1030
1040
  direction: "up"
1031
- }) : i ? s = Hr({
1041
+ }) : i ? s = Wr({
1032
1042
  seriesIndex: R.value,
1033
1043
  plotIndex: z.value,
1034
1044
  direction: "down"
1035
- }) : t ? s = Hr({
1045
+ }) : t ? s = Wr({
1036
1046
  seriesIndex: R.value,
1037
1047
  plotIndex: z.value,
1038
1048
  direction: "left"
1039
- }) : n && (s = Hr({
1049
+ }) : n && (s = Wr({
1040
1050
  seriesIndex: R.value,
1041
1051
  plotIndex: z.value,
1042
1052
  direction: "right"
1043
1053
  }));
1044
1054
  if (!s) return;
1045
- let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1046
- c && yr({
1055
+ let c = X.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1056
+ c && xr({
1047
1057
  datapoint: c,
1048
1058
  plotIndex: s.plotIndex,
1049
1059
  seriesIndex: s.seriesIndex,
1050
1060
  triggerMode: "keyboard"
1051
1061
  });
1052
1062
  }
1053
- return we({
1054
- getData: Tr,
1055
- getImage: Er,
1056
- generatePdf: Dn,
1057
- generateCsv: br,
1058
- generateImage: On,
1059
- generateSvg: Nr,
1060
- hideSeries: fr,
1061
- showSeries: dr,
1062
- toggleTable: Cr,
1063
- toggleTooltip: wr,
1064
- toggleAnnotator: Sr,
1065
- toggleFullscreen: hr,
1066
- copyAlt: Fr
1063
+ return De({
1064
+ getData: Dr,
1065
+ getImage: Or,
1066
+ generatePdf: An,
1067
+ generateCsv: Sr,
1068
+ generateImage: jn,
1069
+ generateSvg: Fr,
1070
+ hideSeries: pr,
1071
+ showSeries: fr,
1072
+ toggleTable: Tr,
1073
+ toggleTooltip: Er,
1074
+ toggleAnnotator: wr,
1075
+ toggleFullscreen: _r,
1076
+ copyAlt: Lr
1067
1077
  }), (e, t) => (C(), g("div", {
1068
1078
  id: `history_plot_${P.value}`,
1069
1079
  ref_key: "historyPlotChart",
@@ -1074,20 +1084,20 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1074
1084
  "vue-data-ui-wrapper-fullscreen": I.value
1075
1085
  }),
1076
1086
  style: S(`background:${B.value.style.chart.backgroundColor};color:${B.value.style.chart.color};font-family:${B.value.style.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
1077
- onMouseenter: t[2] ||= () => O(Cn)(!0),
1078
- onMouseleave: t[3] ||= () => O(Cn)(!1)
1087
+ onMouseenter: t[2] ||= () => O(En)(!0),
1088
+ onMouseleave: t[3] ||= () => O(En)(!1)
1079
1089
  }, [
1080
1090
  _("div", {
1081
1091
  id: `chart-instructions-${P.value}`,
1082
1092
  class: "sr-only"
1083
- }, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
1084
- Ir.value.body.length ? (C(), m(ke, {
1093
+ }, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1094
+ Rr.value.body.length ? (C(), m(Me, {
1085
1095
  key: 0,
1086
1096
  uid: P.value,
1087
- head: Ir.value.head,
1088
- body: Ir.value.body,
1089
- caption: Ir.value.caption,
1090
- notice: Ir.value.notice
1097
+ head: Rr.value.head,
1098
+ body: Rr.value.body,
1099
+ caption: Rr.value.caption,
1100
+ notice: Rr.value.notice
1091
1101
  }, null, 8, [
1092
1102
  "uid",
1093
1103
  "head",
@@ -1096,14 +1106,14 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1096
1106
  "notice"
1097
1107
  ])) : h("", !0),
1098
1108
  E(e.$slots, "userConfig", {}, void 0, !0),
1099
- B.value.userOptions.buttons.annotator ? (C(), m(O(It), {
1109
+ B.value.userOptions.buttons.annotator ? (C(), m(O(zt), {
1100
1110
  key: 1,
1101
- svgRef: O(H),
1111
+ svgRef: O(U),
1102
1112
  backgroundColor: B.value.style.chart.backgroundColor,
1103
1113
  color: B.value.style.chart.color,
1104
- active: xr.value,
1105
- isCursorPointer: V.value,
1106
- onClose: Sr
1114
+ active: Cr.value,
1115
+ isCursorPointer: H.value,
1116
+ onClose: wr
1107
1117
  }, {
1108
1118
  "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1109
1119
  "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
@@ -1119,21 +1129,21 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1119
1129
  "active",
1120
1130
  "isCursorPointer"
1121
1131
  ])) : h("", !0),
1122
- kn.value ? (C(), g("div", {
1132
+ Mn.value ? (C(), g("div", {
1123
1133
  key: 2,
1124
1134
  ref_key: "noTitle",
1125
- ref: Yt,
1135
+ ref: Qt,
1126
1136
  class: "vue-data-ui-no-title-space",
1127
1137
  style: "height:36px; width: 100%;background:transparent"
1128
1138
  }, null, 512)) : h("", !0),
1129
1139
  B.value.style.chart.title.text ? (C(), g("div", {
1130
1140
  key: 3,
1131
1141
  ref_key: "chartTitle",
1132
- ref: Ut,
1142
+ ref: Kt,
1133
1143
  class: "vue-ui-xy-title",
1134
1144
  style: S(`font-family:${B.value.style.fontFamily}`)
1135
- }, [(C(), m(Ce, {
1136
- key: `title_${Wt.value}`,
1145
+ }, [(C(), m(Ee, {
1146
+ key: `title_${qt.value}`,
1137
1147
  config: {
1138
1148
  title: {
1139
1149
  cy: "history-plot-div-title",
@@ -1145,15 +1155,15 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1145
1155
  }
1146
1156
  }
1147
1157
  }, null, 8, ["config"]))], 4)) : h("", !0),
1148
- _("div", { id: `legend-top-${P.value}` }, null, 8, Xe),
1149
- B.value.userOptions.show && pn.value && (O(wn) || O(Sn)) ? (C(), m(O(Lt), {
1158
+ _("div", { id: `legend-top-${P.value}` }, null, 8, $e),
1159
+ B.value.userOptions.show && gn.value && (O(Dn) || O(Tn)) ? (C(), m(O(Bt), {
1150
1160
  ref_key: "userOptionsRef",
1151
- ref: nn,
1152
- key: `user_option_${Jt.value}`,
1161
+ ref: on,
1162
+ key: `user_option_${Zt.value}`,
1153
1163
  backgroundColor: B.value.style.chart.backgroundColor,
1154
1164
  color: B.value.style.chart.color,
1155
- isPrinting: O(Tn),
1156
- isImaging: O(En),
1165
+ isPrinting: O(On),
1166
+ isImaging: O(kn),
1157
1167
  uid: P.value,
1158
1168
  hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
1159
1169
  hasPdf: B.value.userOptions.buttons.pdf,
@@ -1167,25 +1177,25 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1167
1177
  isFullscreen: I.value,
1168
1178
  chartElement: j.value,
1169
1179
  position: B.value.userOptions.position,
1170
- isTooltip: U.value.showTooltip,
1180
+ isTooltip: W.value.showTooltip,
1171
1181
  titles: { ...B.value.userOptions.buttonTitles },
1172
1182
  hasAnnotator: B.value.userOptions.buttons.annotator,
1173
- isAnnotation: xr.value,
1183
+ isAnnotation: Cr.value,
1174
1184
  callbacks: B.value.userOptions.callbacks,
1175
1185
  printScale: B.value.userOptions.print.scale,
1176
1186
  tableDialog: B.value.table.useDialog,
1177
- isCursorPointer: V.value,
1178
- onToggleFullscreen: hr,
1179
- onGeneratePdf: O(Dn),
1180
- onGenerateCsv: br,
1181
- onGenerateImage: Pr,
1182
- onGenerateSvg: Nr,
1183
- onToggleTable: Cr,
1184
- onToggleTooltip: wr,
1185
- onToggleAnnotator: Sr,
1186
- onCopyAlt: Fr,
1187
- style: S({ visibility: O(wn) ? O(Sn) ? "visible" : "hidden" : "visible" })
1188
- }, Fe({ _: 2 }, [
1187
+ isCursorPointer: H.value,
1188
+ onToggleFullscreen: _r,
1189
+ onGeneratePdf: O(An),
1190
+ onGenerateCsv: Sr,
1191
+ onGenerateImage: Ir,
1192
+ onGenerateSvg: Fr,
1193
+ onToggleTable: Tr,
1194
+ onToggleTooltip: Er,
1195
+ onToggleAnnotator: wr,
1196
+ onCopyAlt: Lr,
1197
+ style: S({ visibility: O(Dn) ? O(Tn) ? "visible" : "hidden" : "visible" })
1198
+ }, Re({ _: 2 }, [
1189
1199
  e.$slots.menuIcon ? {
1190
1200
  name: "menuIcon",
1191
1201
  fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
@@ -1256,28 +1266,28 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1256
1266
  key: "11"
1257
1267
  } : void 0
1258
1268
  ]), 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("."))) : h("", !0),
1259
- _("div", Ze, [(C(), g("svg", {
1269
+ _("div", et, [(C(), g("svg", {
1260
1270
  ref_key: "svgRef",
1261
- ref: H,
1262
- xmlns: O(ue),
1263
- viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
1271
+ ref: U,
1272
+ xmlns: O(le),
1273
+ viewBox: `0 0 ${G.value.width < 0 ? .1 : G.value.width} ${G.value.height < 0 ? .1 : G.value.height}`,
1264
1274
  style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
1265
1275
  "aria-describedby": `chart-instructions-${P.value}`,
1266
1276
  tabindex: "0",
1267
- onFocus: zr,
1268
- onBlur: Br,
1269
- onKeydown: Ur
1277
+ onFocus: Vr,
1278
+ onBlur: Hr,
1279
+ onKeydown: Gr
1270
1280
  }, [
1271
- Le(O(Rt)),
1281
+ Be(O(Vt)),
1272
1282
  e.$slots["chart-background"] ? (C(), g("foreignObject", {
1273
1283
  key: 0,
1274
- x: G.value.left,
1275
- y: G.value.top,
1276
- width: G.value.width <= 0 ? 10 : G.value.width,
1277
- height: G.value.height <= 0 ? 10 : G.value.height,
1284
+ x: K.value.left,
1285
+ y: K.value.top,
1286
+ width: K.value.width <= 0 ? 10 : K.value.width,
1287
+ height: K.value.height <= 0 ? 10 : K.value.height,
1278
1288
  style: { pointerEvents: "none" }
1279
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : h("", !0),
1280
- B.value.style.chart.plots.gradient.show || Gn.value ? (C(), g("defs", et, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(Y.value, (e, t) => (C(), m(De, {
1289
+ }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
1290
+ B.value.style.chart.plots.gradient.show || Jn.value ? (C(), g("defs", rt, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(X.value, (e, t) => (C(), m(Ae, {
1281
1291
  t: "radial",
1282
1292
  key: `gradient_${t}_${P.value}`,
1283
1293
  id: `gradient_${t}_${P.value}`,
@@ -1285,12 +1295,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1285
1295
  stops: [
1286
1296
  [
1287
1297
  "10%",
1288
- O(r)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
1298
+ O(s)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
1289
1299
  1
1290
1300
  ],
1291
1301
  [
1292
1302
  "90%",
1293
- O(o)(e.color, .1),
1303
+ O(ne)(e.color, .1),
1294
1304
  1
1295
1305
  ],
1296
1306
  [
@@ -1299,42 +1309,42 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1299
1309
  1
1300
1310
  ]
1301
1311
  ]
1302
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(Y.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && qn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(De, {
1312
+ }, null, 8, ["id", "stops"]))), 128)) : h("", !0), (C(!0), g(f, null, T(X.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && Yn(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), m(Ae, {
1303
1313
  t: "radial",
1304
1314
  key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
1305
- id: $n(e, t),
1315
+ id: tr(e, t),
1306
1316
  fy: "30%",
1307
1317
  stops: [
1308
1318
  [
1309
1319
  "10%",
1310
- O(r)(X(e, t), B.value.style.chart.plots.gradient.intensity / 100),
1320
+ O(s)(Q(e, t), B.value.style.chart.plots.gradient.intensity / 100),
1311
1321
  1
1312
1322
  ],
1313
1323
  [
1314
1324
  "90%",
1315
- O(o)(X(e, t), .1),
1325
+ O(ne)(Q(e, t), .1),
1316
1326
  1
1317
1327
  ],
1318
1328
  [
1319
1329
  "100%",
1320
- X(e, t),
1330
+ Q(e, t),
1321
1331
  1
1322
1332
  ]
1323
1333
  ]
1324
- }, null, 8, ["id", "stops"]))), 128)) : h("", !0), Kn(e) ? (C(), g("linearGradient", {
1334
+ }, null, 8, ["id", "stops"]))), 128)) : h("", !0), Z(e) ? (C(), g("linearGradient", {
1325
1335
  key: 1,
1326
1336
  id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
1327
1337
  gradientUnits: "userSpaceOnUse",
1328
- x1: Zn(e).x1,
1329
- y1: Zn(e).y1,
1330
- x2: Zn(e).x2,
1331
- y2: Zn(e).y2
1338
+ x1: $n(e).x1,
1339
+ y1: $n(e).y1,
1340
+ x2: $n(e).x2,
1341
+ y2: $n(e).y2
1332
1342
  }, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
1333
1343
  key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
1334
1344
  "stop-color": t,
1335
- offset: e.temperatureColors.length === 1 ? "0%" : O(te)(n, e.temperatureColors.length)
1336
- }, null, 8, nt))), 128))], 8, tt)) : h("", !0)], 64))), 128))])) : h("", !0),
1337
- B.value.style.chart.grid.verticalLines.show ? (C(), g("g", rt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1345
+ offset: e.temperatureColors.length === 1 ? "0%" : O(pe)(n, e.temperatureColors.length)
1346
+ }, null, 8, at))), 128))], 8, it)) : h("", !0)], 64))), 128))])) : h("", !0),
1347
+ B.value.style.chart.grid.verticalLines.show ? (C(), g("g", ot, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
1338
1348
  x1: e.x,
1339
1349
  x2: e.x,
1340
1350
  y1: e.y1,
@@ -1342,43 +1352,43 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1342
1352
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1343
1353
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1344
1354
  "stroke-linecap": "round"
1345
- }, null, 8, it))), 256))])) : h("", !0),
1346
- B.value.style.chart.axes.y.labels.show ? (C(), g("g", at, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1355
+ }, null, 8, st))), 256))])) : h("", !0),
1356
+ B.value.style.chart.axes.y.labels.show ? (C(), g("g", ct, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
1347
1357
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1348
1358
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1349
1359
  "stroke-linecap": "round",
1350
- x1: G.value.left - 5,
1351
- x2: G.value.left,
1360
+ x1: K.value.left - 5,
1361
+ x2: K.value.left,
1352
1362
  y1: e.y,
1353
1363
  y2: e.y
1354
- }, null, 8, ot))), 256))])) : h("", !0),
1364
+ }, null, 8, lt))), 256))])) : h("", !0),
1355
1365
  B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1356
1366
  key: 4,
1357
1367
  ref_key: "yAxisScales",
1358
- ref: ln
1359
- }, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
1360
- x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
1361
- y: e.y + K.value.yAxisLabels / 3,
1368
+ ref: fn
1369
+ }, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("text", {
1370
+ x: K.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
1371
+ y: e.y + q.value.yAxisLabels / 3,
1362
1372
  fill: B.value.style.chart.axes.y.labels.color,
1363
- "font-size": K.value.yAxisLabels,
1373
+ "font-size": q.value.yAxisLabels,
1364
1374
  "text-anchor": "end"
1365
- }, D(O(d)(B.value.style.chart.axes.y.labels.formatter, e.value, O(u)({
1375
+ }, D(O(u)(B.value.style.chart.axes.y.labels.formatter, e.value, O(l)({
1366
1376
  p: B.value.style.chart.axes.y.labels.prefix,
1367
1377
  v: e.value,
1368
1378
  s: B.value.style.chart.axes.y.labels.suffix,
1369
1379
  r: B.value.style.chart.axes.y.labels.rounding
1370
- }))), 9, st))), 256))], 512)) : h("", !0),
1380
+ }))), 9, ut))), 256))], 512)) : h("", !0),
1371
1381
  B.value.style.chart.axes.y.name.text ? (C(), g("text", {
1372
1382
  key: 5,
1373
1383
  ref_key: "yAxisLabel",
1374
- ref: sn,
1375
- transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1376
- "font-size": K.value.yAxisName,
1384
+ ref: un,
1385
+ transform: `translate(${q.value.yAxisName}, ${G.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1386
+ "font-size": q.value.yAxisName,
1377
1387
  fill: B.value.style.chart.axes.y.name.color,
1378
1388
  "font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1379
1389
  "text-anchor": "middle"
1380
- }, D(B.value.style.chart.axes.y.name.text), 9, ct)) : h("", !0),
1381
- B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", lt, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1390
+ }, D(B.value.style.chart.axes.y.name.text), 9, dt)) : h("", !0),
1391
+ B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
1382
1392
  x1: e.x1,
1383
1393
  x2: e.x2,
1384
1394
  y1: e.y,
@@ -1386,214 +1396,201 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1386
1396
  stroke: B.value.style.chart.grid.horizontalLines.stroke,
1387
1397
  "stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
1388
1398
  "stroke-linecap": "round"
1389
- }, null, 8, ut))), 256))])) : h("", !0),
1390
- B.value.style.chart.axes.x.labels.show ? (C(), g("g", dt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1399
+ }, null, 8, pt))), 256))])) : h("", !0),
1400
+ B.value.style.chart.axes.x.labels.show ? (C(), g("g", mt, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
1391
1401
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1392
1402
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1393
1403
  "stroke-linecap": "round",
1394
1404
  x1: e.x,
1395
1405
  x2: e.x,
1396
- y1: G.value.bottom,
1397
- y2: G.value.bottom + 5
1398
- }, null, 8, ft))), 256))])) : h("", !0),
1406
+ y1: K.value.bottom,
1407
+ y2: K.value.bottom + 5
1408
+ }, null, 8, ht))), 256))])) : h("", !0),
1399
1409
  B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1400
1410
  key: 8,
1401
1411
  ref_key: "xAxisScales",
1402
- ref: cn
1403
- }, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
1412
+ ref: dn
1413
+ }, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("text", {
1404
1414
  class: "vue-ui-history-plot-x-axis-scale",
1405
- transform: `translate(${e.x}, ${G.value.bottom + B.value.style.chart.axes.x.labels.offsetY + K.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
1415
+ transform: `translate(${e.x}, ${K.value.bottom + B.value.style.chart.axes.x.labels.offsetY + q.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
1406
1416
  fill: B.value.style.chart.axes.x.labels.color,
1407
- "font-size": K.value.xAxisLabels,
1417
+ "font-size": q.value.xAxisLabels,
1408
1418
  "text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1409
- }, D(O(d)(B.value.style.chart.axes.x.labels.formatter, e.value, O(u)({
1419
+ }, D(O(u)(B.value.style.chart.axes.x.labels.formatter, e.value, O(l)({
1410
1420
  p: B.value.style.chart.axes.x.labels.prefix,
1411
1421
  v: e.value,
1412
1422
  s: B.value.style.chart.axes.x.labels.suffix,
1413
1423
  r: B.value.style.chart.axes.x.labels.rounding
1414
- }))), 9, pt))), 256))], 512)) : h("", !0),
1424
+ }))), 9, gt))), 256))], 512)) : h("", !0),
1415
1425
  B.value.style.chart.axes.x.name.text ? (C(), g("text", {
1416
1426
  key: 9,
1417
1427
  ref_key: "xAxisLabel",
1418
- ref: on,
1419
- x: W.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
1420
- y: W.value.height,
1421
- "font-size": K.value.xAxisName,
1428
+ ref: ln,
1429
+ x: G.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
1430
+ y: G.value.height,
1431
+ "font-size": q.value.xAxisName,
1422
1432
  fill: B.value.style.chart.axes.x.name.color,
1423
1433
  "font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1424
1434
  "text-anchor": "middle"
1425
- }, D(B.value.style.chart.axes.x.name.text), 9, mt)) : h("", !0),
1435
+ }, D(B.value.style.chart.axes.x.name.text), 9, _t)) : h("", !0),
1426
1436
  B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
1427
1437
  key: 10,
1428
- x1: G.value.left,
1429
- x2: G.value.left + G.value.width,
1430
- y1: G.value.bottom,
1431
- y2: G.value.bottom,
1438
+ x1: K.value.left,
1439
+ x2: K.value.left + K.value.width,
1440
+ y1: K.value.bottom,
1441
+ y2: K.value.bottom,
1432
1442
  stroke: B.value.style.chart.grid.xAxis.stroke,
1433
1443
  "stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
1434
1444
  "stroke-linecap": "round"
1435
- }, null, 8, ht)) : h("", !0),
1445
+ }, null, 8, vt)) : h("", !0),
1436
1446
  B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1437
1447
  key: 11,
1438
- x1: G.value.left,
1439
- x2: G.value.left,
1440
- y1: G.value.top,
1441
- y2: G.value.bottom,
1448
+ x1: K.value.left,
1449
+ x2: K.value.left,
1450
+ y1: K.value.top,
1451
+ y2: K.value.bottom,
1442
1452
  stroke: B.value.style.chart.grid.yAxis.stroke,
1443
1453
  "stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
1444
1454
  "stroke-linecap": "round"
1445
- }, null, 8, gt)) : h("", !0),
1446
- (C(!0), g(f, null, T(Wn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1455
+ }, null, 8, yt)) : h("", !0),
1456
+ (C(!0), g(f, null, T(qn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1447
1457
  B.value.style.chart.paths.show ? (C(), g("g", {
1448
1458
  key: 0,
1449
- style: S({ opacity: ar(e.seriesIndex) })
1459
+ style: S({ opacity: sr(e.seriesIndex) })
1450
1460
  }, [_("path", {
1461
+ class: b({ "vue-data-ui-transition": O(V) }),
1451
1462
  d: e.path,
1452
1463
  stroke: B.value.style.chart.backgroundColor,
1453
1464
  "stroke-width": B.value.style.chart.paths.strokeWidth + 4,
1454
1465
  fill: "none",
1455
1466
  "stroke-linecap": "round",
1456
- "stroke-linejoin": "round",
1457
- class: b({ animated: Z() })
1458
- }, null, 10, _t), _("path", {
1467
+ "stroke-linejoin": "round"
1468
+ }, null, 10, bt), _("path", {
1469
+ class: b({ "vue-data-ui-transition": O(V) }),
1459
1470
  d: e.path,
1460
- stroke: ir(e),
1471
+ stroke: or(e),
1461
1472
  "stroke-width": B.value.style.chart.paths.strokeWidth,
1462
1473
  fill: "none",
1463
1474
  "stroke-linecap": "round",
1464
- "stroke-linejoin": "round",
1465
- class: b({ animated: Z() })
1466
- }, null, 10, vt)], 4)) : h("", !0),
1475
+ "stroke-linejoin": "round"
1476
+ }, null, 10, xt)], 4)) : h("", !0),
1467
1477
  (C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
1468
1478
  cx: e.x,
1469
1479
  cy: e.y,
1470
1480
  fill: B.value.style.chart.backgroundColor,
1471
- r: K.value.plots,
1472
- stroke: "none"
1473
- }, null, 8, yt))), 256)),
1481
+ r: q.value.plots,
1482
+ stroke: "none",
1483
+ class: b({ "vue-data-ui-transition": O(V) })
1484
+ }, null, 10, St))), 256)),
1474
1485
  (C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
1475
1486
  cx: t.x,
1476
1487
  cy: t.y,
1477
- fill: er(e, t, e.gradientIndex),
1478
- r: K.value.plots,
1488
+ fill: nr(e, t, e.gradientIndex),
1489
+ r: q.value.plots,
1479
1490
  stroke: B.value.style.chart.plots.stroke,
1480
1491
  "stroke-width": B.value.style.chart.plots.strokeWidth,
1481
- class: b({ animated: Z() }),
1482
- style: S({
1483
- opacity: ar(e.seriesIndex),
1484
- transition: sr()
1485
- })
1486
- }, null, 14, bt))), 256)),
1487
- B.value.style.chart.plots.labels.show ? (C(), g("g", xt, [(C(!0), g(f, null, T(e.plots, (t) => (C(), g("g", null, [String(t.label).includes("\n") ? (C(), g("text", {
1492
+ class: b({ "vue-data-ui-transition": O(V) }),
1493
+ style: S({ opacity: sr(e.seriesIndex) })
1494
+ }, null, 14, Ct))), 256)),
1495
+ B.value.style.chart.plots.labels.show ? (C(), g("g", wt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("g", { key: `plab_${n}` }, [String(t.label).includes("\n") ? (C(), g("text", {
1488
1496
  key: 1,
1489
- x: t.x + B.value.style.chart.plots.labels.offsetX,
1490
- y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
1491
- "font-size": K.value.labels,
1497
+ class: b({ "vue-data-ui-transition": O(V) }),
1498
+ transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
1499
+ "font-size": q.value.labels,
1492
1500
  fill: B.value.style.chart.plots.labels.color,
1493
1501
  "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1494
1502
  "text-anchor": "middle",
1495
- class: b({ animated: Z() }),
1496
- style: S({
1497
- opacity: ar(e.seriesIndex),
1498
- transition: sr()
1499
- }),
1500
- innerHTML: O(ne)({
1503
+ style: S({ opacity: sr(e.seriesIndex) }),
1504
+ innerHTML: O(r)({
1501
1505
  content: String(t.label),
1502
- fontSize: K.value.labels,
1506
+ fontSize: q.value.labels,
1503
1507
  fill: B.value.style.chart.plots.labels.color,
1504
- x: t.x + B.value.style.chart.plots.labels.offsetX,
1505
- y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
1508
+ x: 0,
1509
+ y: 0
1506
1510
  })
1507
- }, null, 14, Ct)) : (C(), g("text", {
1511
+ }, null, 14, Et)) : (C(), g("text", {
1508
1512
  key: 0,
1509
- x: t.x + B.value.style.chart.plots.labels.offsetX,
1510
- y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
1511
- "font-size": K.value.labels,
1513
+ class: b({ "vue-data-ui-transition": O(V) }),
1514
+ transform: `translate(${t.x + B.value.style.chart.plots.labels.offsetX}, ${t.y + B.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels})`,
1515
+ "font-size": q.value.labels,
1512
1516
  fill: B.value.style.chart.plots.labels.color,
1513
1517
  "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1514
1518
  "text-anchor": "middle",
1515
- class: b({ animated: Z() }),
1516
- style: S({
1517
- opacity: ar(e.seriesIndex),
1518
- transition: sr()
1519
- })
1520
- }, D(t.label), 15, St))]))), 256))])) : h("", !0),
1521
- B.value.style.chart.plots.indexLabels.show ? (C(), g("g", wt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1522
- x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
1523
- y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
1524
- "font-size": K.value.indexLabels,
1519
+ style: S({ opacity: sr(e.seriesIndex) })
1520
+ }, D(t.label), 15, Tt))]))), 128))])) : h("", !0),
1521
+ B.value.style.chart.plots.indexLabels.show ? (C(), g("g", Dt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1522
+ key: `lab_${n}`,
1523
+ class: b({ "vue-data-ui-transition": O(V) }),
1524
+ transform: `translate(${t.x + B.value.style.chart.plots.indexLabels.offsetX}, ${t.y + B.value.style.chart.plots.indexLabels.offsetY + q.value.indexLabels / 3})`,
1525
+ "font-size": q.value.indexLabels,
1525
1526
  "font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1526
- fill: nr(e, t),
1527
+ fill: ir(e, t),
1527
1528
  "text-anchor": "middle",
1528
- class: b({ animated: Z() }),
1529
- style: S({
1530
- opacity: ar(e.seriesIndex),
1531
- transition: sr()
1532
- })
1533
- }, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Tt))), 256))])) : h("", !0)
1529
+ style: S({ opacity: sr(e.seriesIndex) })
1530
+ }, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Ot))), 128))])) : h("", !0)
1534
1531
  ]))), 128)),
1535
- (C(!0), g(f, null, T(Wn.value, (e) => (C(), g("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${P.value}` }, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("circle", {
1532
+ (C(!0), g(f, null, T(qn.value, (e) => (C(), g("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${P.value}` }, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("circle", {
1536
1533
  cx: t.x,
1537
1534
  cy: t.y,
1538
1535
  fill: "transparent",
1539
- r: K.value.plots,
1536
+ r: q.value.plots,
1540
1537
  stroke: "none",
1541
- onMouseenter: (r) => yr({
1538
+ onMouseenter: (r) => xr({
1542
1539
  datapoint: t,
1543
1540
  plotIndex: n,
1544
1541
  seriesIndex: e.seriesIndex,
1545
1542
  triggerMode: "pointer"
1546
1543
  }),
1547
- onMouseleave: (r) => _r({
1544
+ onMouseleave: (r) => yr({
1548
1545
  datapoint: t,
1549
1546
  plotIndex: n,
1550
1547
  seriesIndex: e.seriesIndex
1551
1548
  }),
1552
- onClick: (r) => mr({
1549
+ onClick: (r) => gr({
1553
1550
  datapoint: t,
1554
1551
  plotIndex: n,
1555
1552
  seriesIndex: e.seriesIndex
1556
1553
  })
1557
- }, null, 40, Et))), 256))]))), 128)),
1554
+ }, null, 40, kt))), 256))]))), 128)),
1558
1555
  E(e.$slots, "svg", { svg: {
1559
- ...W.value,
1560
- drawingArea: G.value,
1561
- isPrintingImg: O(Tn) || O(En) || rn.value,
1562
- isPrintingSvg: an.value
1556
+ ...G.value,
1557
+ drawingArea: K.value,
1558
+ isPrintingImg: O(On) || O(kn) || sn.value,
1559
+ isPrintingSvg: cn.value
1563
1560
  } }, void 0, !0)
1564
- ], 44, Qe)), e.$slots.hint ? (C(), g("div", Dt, [E(e.$slots, "hint", x(y({
1561
+ ], 44, tt)), e.$slots.hint ? (C(), g("div", At, [E(e.$slots, "hint", x(y({
1565
1562
  hint: B.value.a11y.translations.keyboardNavigation,
1566
- isVisible: fn.value
1563
+ isVisible: hn.value
1567
1564
  })), void 0, !0)])) : h("", !0)]),
1568
- e.$slots.watermark ? (C(), g("div", Ot, [E(e.$slots, "watermark", x(y({ isPrinting: O(Tn) || O(En) || rn.value || an.value })), void 0, !0)])) : h("", !0),
1569
- _("div", { id: `legend-bottom-${P.value}` }, null, 8, kt),
1570
- en.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Pe, {
1565
+ e.$slots.watermark ? (C(), g("div", jt, [E(e.$slots, "watermark", x(y({ isPrinting: O(On) || O(kn) || sn.value || cn.value })), void 0, !0)])) : h("", !0),
1566
+ _("div", { id: `legend-bottom-${P.value}` }, null, 8, Mt),
1567
+ rn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Le, {
1571
1568
  key: 6,
1572
1569
  to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1573
1570
  }, [_("div", {
1574
1571
  ref_key: "chartLegend",
1575
- ref: Gt
1576
- }, [E(e.$slots, "legend", { legend: Q.value }, () => [B.value.style.chart.legend.show && pn.value ? (C(), m(Me, {
1577
- key: `legend_${Kt.value}`,
1578
- legendSet: Q.value,
1579
- config: pr.value,
1580
- isCursorPointer: V.value,
1572
+ ref: Jt
1573
+ }, [E(e.$slots, "legend", { legend: mr.value }, () => [B.value.style.chart.legend.show && gn.value ? (C(), m(Fe, {
1574
+ key: `legend_${Yt.value}`,
1575
+ legendSet: mr.value,
1576
+ config: hr.value,
1577
+ isCursorPointer: H.value,
1581
1578
  onClickMarker: t[0] ||= ({ legend: e }) => {
1582
- lr(e.seriesIndex);
1579
+ ur(e.seriesIndex);
1583
1580
  }
1584
1581
  }, {
1585
1582
  item: k(({ legend: e, index: t }) => [_("div", {
1586
1583
  onClick: (t) => e.segregate(),
1587
1584
  style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
1588
- }, D(e.name), 13, At)]),
1589
- legendToggle: k(() => [Q.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(yn) ? (C(), m(Oe, {
1585
+ }, D(e.name), 13, Nt)]),
1586
+ legendToggle: k(() => [mr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(Sn) ? (C(), m(je, {
1590
1587
  key: 0,
1591
1588
  backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
1592
1589
  color: B.value.style.chart.legend.selectAllToggle.color,
1593
1590
  fontSize: B.value.style.chart.legend.fontSize,
1594
1591
  checked: F.value.length > 0,
1595
- isCursorPointer: V.value,
1596
- onToggle: cr
1592
+ isCursorPointer: H.value,
1593
+ onToggle: lr
1597
1594
  }, null, 8, [
1598
1595
  "backgroundColor",
1599
1596
  "color",
@@ -1610,12 +1607,12 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1610
1607
  e.$slots.source ? (C(), g("div", {
1611
1608
  key: 7,
1612
1609
  ref_key: "source",
1613
- ref: $t,
1610
+ ref: nn,
1614
1611
  dir: "auto"
1615
1612
  }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1616
- Le(O(Mt), {
1613
+ Be(O(Ft), {
1617
1614
  teleportTo: B.value.style.chart.tooltip.teleportTo,
1618
- show: U.value.showTooltip && Xt.value,
1615
+ show: W.value.showTooltip && $t.value,
1619
1616
  backgroundColor: B.value.style.chart.tooltip.backgroundColor,
1620
1617
  color: B.value.style.chart.tooltip.color,
1621
1618
  fontSize: B.value.style.chart.tooltip.fontSize,
@@ -1627,19 +1624,19 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1627
1624
  offsetX: B.value.style.chart.tooltip.offsetX,
1628
1625
  offsetY: B.value.style.chart.tooltip.offsetY,
1629
1626
  parent: j.value,
1630
- content: Zt.value,
1631
- isCustom: Qt.value,
1627
+ content: en.value,
1628
+ isCustom: tn.value,
1632
1629
  isFullscreen: I.value,
1633
1630
  smooth: B.value.style.chart.tooltip.smooth,
1634
1631
  backdropFilter: B.value.style.chart.tooltip.backdropFilter,
1635
1632
  smoothForce: B.value.style.chart.tooltip.smoothForce,
1636
1633
  smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
1637
- isA11yMode: dn.value === "keyboard",
1638
- a11yPosition: un.value
1634
+ isA11yMode: mn.value === "keyboard",
1635
+ a11yPosition: pn.value
1639
1636
  }, {
1640
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...gr.value })), void 0, !0)]),
1641
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...gr.value })), void 0, !0)]),
1642
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...gr.value })), void 0, !0)]),
1637
+ "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...vr.value })), void 0, !0)]),
1638
+ tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...vr.value })), void 0, !0)]),
1639
+ "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...vr.value })), void 0, !0)]),
1643
1640
  _: 3
1644
1641
  }, 8, [
1645
1642
  "teleportTo",
@@ -1665,21 +1662,21 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1665
1662
  "isA11yMode",
1666
1663
  "a11yPosition"
1667
1664
  ]),
1668
- pn.value && B.value.userOptions.buttons.table ? (C(), m(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
1665
+ gn.value && B.value.userOptions.buttons.table ? (C(), m(Ge(kr.value.component), Ve({ key: 8 }, kr.value.props, {
1669
1666
  ref_key: "tableUnit",
1670
- ref: tn,
1671
- onClose: Or
1672
- }), Fe({
1673
- content: k(() => [(C(), m(O(Ft), {
1674
- key: `table_${qt.value}`,
1667
+ ref: an,
1668
+ onClose: Ar
1669
+ }), Re({
1670
+ content: k(() => [(C(), m(O(Rt), {
1671
+ key: `table_${Xt.value}`,
1675
1672
  colNames: $.value.colNames,
1676
1673
  head: $.value.head,
1677
1674
  body: $.value.body,
1678
1675
  config: $.value.config,
1679
- title: B.value.table.useDialog ? "" : Dr.value.title,
1676
+ title: B.value.table.useDialog ? "" : kr.value.title,
1680
1677
  withCloseButton: !B.value.table.useDialog,
1681
- isCursorPointer: V.value,
1682
- onClose: Or
1678
+ isCursorPointer: H.value,
1679
+ onClose: Ar
1683
1680
  }, {
1684
1681
  th: k(({ th: e }) => [_("div", {
1685
1682
  innerHTML: e,
@@ -1687,8 +1684,8 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1687
1684
  display: "flex",
1688
1685
  "align-items": "center"
1689
1686
  }
1690
- }, null, 8, jt)]),
1691
- td: k(({ td: e }) => [Ie(D(e.name || e), 1)]),
1687
+ }, null, 8, Pt)]),
1688
+ td: k(({ td: e }) => [ze(D(e.name || e), 1)]),
1692
1689
  _: 1
1693
1690
  }, 8, [
1694
1691
  "colNames",
@@ -1702,24 +1699,24 @@ var qe = /* @__PURE__ */ e({ default: () => Mt }), Je = ["id"], Ye = ["id"], Xe
1702
1699
  _: 2
1703
1700
  }, [B.value.table.useDialog ? {
1704
1701
  name: "title",
1705
- fn: k(() => [Ie(D(Dr.value.title), 1)]),
1702
+ fn: k(() => [ze(D(kr.value.title), 1)]),
1706
1703
  key: "0"
1707
1704
  } : void 0, B.value.table.useDialog ? {
1708
1705
  name: "actions",
1709
1706
  fn: k(() => [_("button", {
1710
1707
  tabindex: "0",
1711
1708
  class: "vue-ui-user-options-button",
1712
- onClick: t[1] ||= (e) => br(B.value.userOptions.callbacks.csv),
1713
- style: S({ cursor: V.value ? "pointer" : "default" })
1714
- }, [Le(O(Nt), {
1709
+ onClick: t[1] ||= (e) => Sr(B.value.userOptions.callbacks.csv),
1710
+ style: S({ cursor: H.value ? "pointer" : "default" })
1711
+ }, [Be(O(It), {
1715
1712
  name: "fileCsv",
1716
- stroke: Dr.value.props.color
1713
+ stroke: kr.value.props.color
1717
1714
  }, null, 8, ["stroke"])], 4)]),
1718
1715
  key: "1"
1719
1716
  } : void 0]), 1040)) : h("", !0),
1720
- E(e.$slots, "skeleton", {}, () => [O(yn) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
1721
- ], 46, Je));
1717
+ E(e.$slots, "skeleton", {}, () => [O(Sn) ? (C(), m(ye, { key: 0 })) : h("", !0)], !0)
1718
+ ], 46, Ze));
1722
1719
  }
1723
- }, [["__scopeId", "data-v-9751197b"]]);
1720
+ }, [["__scopeId", "data-v-ec22280b"]]);
1724
1721
  //#endregion
1725
- export { qe as n, Mt as t };
1722
+ export { Xe as n, Ft as t };