vue-data-ui 3.22.7 → 3.22.9

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 (206) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
  3. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
  11. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
  12. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
  13. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  14. package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
  15. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
  16. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  17. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  18. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  19. package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
  90. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  91. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  92. package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
  93. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  94. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  95. package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
  96. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  97. package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/utils.d.ts +18 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  104. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  105. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  106. package/dist/utils.js +24 -24
  107. package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
  108. package/dist/vue-data-ui.js +77 -77
  109. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  110. package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
  111. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
  112. package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
  113. package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
  114. package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
  115. package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
  116. package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
  117. package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
  118. package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
  120. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
  121. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
  122. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
  123. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
  124. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
  125. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
  126. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
  127. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
  128. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
  129. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  130. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
  131. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  132. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
  133. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  134. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
  135. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
  136. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
  137. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  139. package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
  140. package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
  141. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
  142. package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
  143. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
  144. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
  145. package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
  146. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
  147. package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
  148. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
  149. package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
  150. package/dist/vue-ui-rings-J990vNbX.js +1252 -0
  151. package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
  152. package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
  153. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
  154. package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
  155. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  156. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
  157. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  158. package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
  159. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
  160. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
  161. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  162. package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
  165. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
  166. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  167. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
  168. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
  169. package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
  170. package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
  171. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
  172. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
  173. package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
  174. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
  175. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
  176. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
  177. package/package.json +1 -1
  178. package/dist/BaseIcon-_-BX7be3.js +0 -502
  179. package/dist/exposedLib-Be0ifkti.js +0 -19
  180. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  182. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  183. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  184. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  185. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  186. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  187. package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
  188. package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
  189. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  190. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  191. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  192. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  193. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  194. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
  198. package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
  199. package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
  200. package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
  201. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  202. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  203. package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
  204. package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
  205. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  206. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -1,150 +1,151 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { C as t, Gt as n, H as r, Ht as i, It as a, K as o, Ot as s, Q as c, S as ee, Tt as te, Ut as ne, W as re, Wt as l, X as ie, _t as ae, b as oe, h as se, i as u, jt as ce, q as d, r as le, t as ue, ut as de, vt as fe, w as pe } from "./lib-EAmk-PgA.js";
3
- import { t as me } from "./useConfig-DYM3f6EI.js";
4
- import { t as he } from "./usePrinter-DnGzpp6Q.js";
5
- import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ve } from "./useSvgExport-SVIsDot8.js";
7
- import { t as ye } from "./useNestedProp-D8XqxgOU.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-B_abIg0o.js";
11
- import { n as Ce } from "./Title-PiTKr6sp.js";
12
- import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as Te } from "./canvas-lib-BOP_HS11.js";
14
- import { t as Ee } from "./useResponsive-BfnK0KxU.js";
15
- import { t as De } from "./BaseLegendToggle-CHnlKalt.js";
16
- import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as je } from "./Legend-kAr7Vqqu.js";
20
- import { t as Me } from "./vue_ui_history_plot-CuN63VEc.js";
21
- import { Fragment as f, Teleport as Ne, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Le, nextTick as Re, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as ze, onMounted as Be, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as D, toRefs as Ue, unref as O, watch as We, watchEffect as Ge, withCtx as k } from "vue";
2
+ import { $ as t, C as n, Et as r, G as i, Gt as a, J as o, Kt as s, Lt as c, Mt as l, S as ee, T as te, U as ne, Ut as re, Wt as ie, Z as ae, b as oe, dt as se, h as ce, i as u, kt as le, q as ue, r as de, t as fe, vt as pe, yt as me } from "./lib-JqW18y5I.js";
3
+ import { t as he } from "./useConfig-DYM3f6EI.js";
4
+ import { t as ge } from "./usePrinter-CqqHmnBI.js";
5
+ import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ye } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as be } from "./useNestedProp-DIuuzG1r.js";
8
+ import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as Ce } from "./img-DnP3eXuv.js";
11
+ import { n as we } from "./Title-CcNiYzEo.js";
12
+ import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as Ee } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as De } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as Oe } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as ke } from "./BaseLegendToggle-DWtet-Hh.js";
17
+ import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as je } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Ne } from "./Legend-ROt6ugzW.js";
21
+ import { t as Pe } from "./vue_ui_history_plot-CuN63VEc.js";
22
+ import { Fragment as d, Teleport as Fe, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ze, nextTick as Be, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ve, onMounted as He, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as E, toRefs as Ge, unref as D, watch as Ke, watchEffect as qe, withCtx as O } from "vue";
22
23
  //#region src/components/vue-ui-history-plot.vue
23
- var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
24
+ var Je = /* @__PURE__ */ e({ default: () => Nt }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
24
25
  "xmlns",
25
26
  "viewBox",
26
27
  "aria-describedby"
27
- ], Qe = [
28
+ ], et = [
28
29
  "x",
29
30
  "y",
30
31
  "width",
31
32
  "height"
32
- ], $e = { key: 1 }, et = ["id"], tt = ["stop-color"], nt = ["stop-color"], rt = ["stop-color"], it = ["id"], at = ["stop-color"], ot = ["stop-color"], st = ["stop-color"], ct = [
33
+ ], tt = { key: 1 }, nt = [
33
34
  "id",
34
35
  "x1",
35
36
  "y1",
36
37
  "x2",
37
38
  "y2"
38
- ], lt = ["stop-color", "offset"], ut = { key: 2 }, dt = [
39
+ ], rt = ["stop-color", "offset"], it = { key: 2 }, at = [
39
40
  "x1",
40
41
  "x2",
41
42
  "y1",
42
43
  "y2",
43
44
  "stroke",
44
45
  "stroke-width"
45
- ], ft = { key: 3 }, pt = [
46
+ ], ot = { key: 3 }, st = [
46
47
  "stroke",
47
48
  "stroke-width",
48
49
  "x1",
49
50
  "x2",
50
51
  "y1",
51
52
  "y2"
52
- ], mt = [
53
+ ], ct = [
53
54
  "x",
54
55
  "y",
55
56
  "fill",
56
57
  "font-size"
57
- ], ht = [
58
+ ], lt = [
58
59
  "transform",
59
60
  "font-size",
60
61
  "fill",
61
62
  "font-weight"
62
- ], gt = { key: 6 }, _t = [
63
+ ], ut = { key: 6 }, dt = [
63
64
  "x1",
64
65
  "x2",
65
66
  "y1",
66
67
  "y2",
67
68
  "stroke",
68
69
  "stroke-width"
69
- ], vt = { key: 7 }, yt = [
70
+ ], ft = { key: 7 }, pt = [
70
71
  "stroke",
71
72
  "stroke-width",
72
73
  "x1",
73
74
  "x2",
74
75
  "y1",
75
76
  "y2"
76
- ], bt = [
77
+ ], mt = [
77
78
  "transform",
78
79
  "fill",
79
80
  "font-size",
80
81
  "text-anchor"
81
- ], xt = [
82
+ ], ht = [
82
83
  "x",
83
84
  "y",
84
85
  "font-size",
85
86
  "fill",
86
87
  "font-weight"
87
- ], St = [
88
+ ], gt = [
88
89
  "x1",
89
90
  "x2",
90
91
  "y1",
91
92
  "y2",
92
93
  "stroke",
93
94
  "stroke-width"
94
- ], Ct = [
95
+ ], _t = [
95
96
  "x1",
96
97
  "x2",
97
98
  "y1",
98
99
  "y2",
99
100
  "stroke",
100
101
  "stroke-width"
101
- ], wt = [
102
+ ], vt = [
102
103
  "d",
103
104
  "stroke",
104
105
  "stroke-width"
105
- ], Tt = [
106
+ ], yt = [
106
107
  "d",
107
108
  "stroke",
108
109
  "stroke-width"
109
- ], Et = [
110
+ ], bt = [
110
111
  "cx",
111
112
  "cy",
112
113
  "fill",
113
114
  "r"
114
- ], Dt = [
115
+ ], xt = [
115
116
  "cx",
116
117
  "cy",
117
118
  "fill",
118
119
  "r",
119
120
  "stroke",
120
121
  "stroke-width"
121
- ], Ot = { key: 1 }, kt = [
122
+ ], St = { key: 1 }, Ct = [
122
123
  "x",
123
124
  "y",
124
125
  "font-size",
125
126
  "fill",
126
127
  "font-weight"
127
- ], At = [
128
+ ], wt = [
128
129
  "x",
129
130
  "y",
130
131
  "font-size",
131
132
  "fill",
132
133
  "font-weight",
133
134
  "innerHTML"
134
- ], jt = { key: 2 }, Mt = [
135
+ ], Tt = { key: 2 }, Et = [
135
136
  "x",
136
137
  "y",
137
138
  "font-size",
138
139
  "font-weight",
139
140
  "fill"
140
- ], Nt = [
141
+ ], Dt = [
141
142
  "cx",
142
143
  "cy",
143
144
  "r",
144
145
  "onMouseenter",
145
146
  "onMouseleave",
146
147
  "onClick"
147
- ], Pt = {
148
+ ], Ot = {
148
149
  key: 0,
149
150
  style: {
150
151
  position: "absolute",
@@ -154,10 +155,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
154
155
  },
155
156
  "data-dom-to-png-ignore": "",
156
157
  "aria-hidden": "true"
157
- }, Ft = {
158
+ }, kt = {
158
159
  key: 5,
159
160
  class: "vue-data-ui-watermark"
160
- }, It = ["id"], Lt = ["onClick"], Rt = ["innerHTML"], zt = /*#__PURE__*/ we({
161
+ }, At = ["id"], jt = ["onClick"], Mt = ["innerHTML"], Nt = /*#__PURE__*/ Te({
161
162
  __name: "vue-ui-history-plot",
162
163
  props: {
163
164
  config: {
@@ -178,83 +179,83 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
178
179
  "selectDatapoint",
179
180
  "copyAlt"
180
181
  ],
181
- setup(e, { expose: we, emit: Ke }) {
182
- let zt = v(() => import("./Tooltip-B8yYfISA.js")), Bt = v(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), Vt = v(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Ht = v(() => import("./DataTable-CVF7DoZn.js")), Ut = v(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Wt = v(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Gt = v(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Kt = v(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_history_plot: qt } = me(), { isThemeValid: Jt, warnInvalidTheme: Yt } = be(), A = e, j = w(null), Xt = w(null), Zt = w(0), Qt = w(null), $t = w(0), en = w(0), tn = w(0), M = He(null), N = He(null), nn = w(null), P = w(re()), rn = w(!1), an = w(""), F = w([]), I = w(!1), L = w(null), on = w(!1), sn = w(null), cn = w(!1), ln = w(null), un = w(null), dn = w(!1), fn = w(!1), pn = w(null), mn = w(null), hn = w(null), gn = w(null), R = w(null), z = w(null), _n = w({
182
+ setup(e, { expose: Te, emit: Je }) {
183
+ let Nt = _(() => import("./Tooltip-CxOrWlFy.js")), Pt = _(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ft = _(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), It = _(() => import("./DataTable-BxpTMgfK.js")), Lt = _(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Rt = _(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), zt = _(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Bt = _(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_history_plot: Vt } = he(), { isThemeValid: Ht, warnInvalidTheme: Ut } = xe(), k = e, A = C(null), Wt = C(null), Gt = C(0), Kt = C(null), qt = C(0), Jt = C(0), Yt = C(0), j = We(null), M = We(null), Xt = C(null), N = C(i()), Zt = C(!1), Qt = C(""), P = C([]), $t = C(!1), F = C(null), I = C(!1), en = C(null), tn = C(!1), L = C(null), nn = C(null), rn = C(!1), an = C(!1), on = C(null), sn = C(null), cn = C(null), ln = C(null), R = C(null), z = C(null), un = C({
183
184
  x: 0,
184
185
  y: 0
185
- }), vn = w("pointer"), yn = w(!1), bn = p({
186
- get: () => !!A.dataset && A.dataset.length,
186
+ }), dn = C("pointer"), fn = C(!1), pn = f({
187
+ get: () => !!k.dataset && k.dataset.length,
187
188
  set: (e) => e
188
- }), xn = Ke;
189
- Be(() => {
190
- cn.value = !0, Cn();
189
+ }), mn = Je;
190
+ He(() => {
191
+ tn.value = !0, gn();
191
192
  });
192
- let Sn = p(() => !!B.value.debug);
193
- function Cn() {
194
- if (s(A.dataset) ? (c({
193
+ let hn = f(() => !!B.value.debug);
194
+ function gn() {
195
+ if (le(k.dataset) ? (t({
195
196
  componentName: "VueUiHistoryPlot",
196
197
  type: "dataset",
197
- debug: Sn.value
198
- }), On.value = !0) : A.dataset.forEach((e, t) => {
199
- de({
198
+ debug: hn.value
199
+ }), xn.value = !0) : k.dataset.forEach((e, n) => {
200
+ se({
200
201
  datasetObject: e,
201
202
  requiredAttributes: ["name", "values"]
202
203
  }).forEach((e) => {
203
- bn.value = !1, c({
204
+ pn.value = !1, t({
204
205
  componentName: "VueUiHistoryPlot",
205
206
  type: "datasetSerieAttribute",
206
207
  property: e,
207
- index: t,
208
- debug: Sn.value
208
+ index: n,
209
+ debug: hn.value
209
210
  });
210
211
  });
211
- }), s(A.dataset) || (On.value = B.value.loading), B.value.responsive) {
212
- let e = Te(() => {
213
- let { width: e, height: t } = Ee({
214
- chart: j.value,
215
- title: B.value.style.chart.title.text ? Xt.value : null,
216
- noTitle: nn.value,
217
- legend: B.value.style.chart.legend.show ? Qt.value : null,
218
- source: sn.value
212
+ }), le(k.dataset) || (xn.value = B.value.loading), B.value.responsive) {
213
+ let e = Ee(() => {
214
+ let { width: e, height: t } = De({
215
+ chart: A.value,
216
+ title: B.value.style.chart.title.text ? Wt.value : null,
217
+ noTitle: Xt.value,
218
+ legend: B.value.style.chart.legend.show ? Kt.value : null,
219
+ source: en.value
219
220
  });
220
221
  requestAnimationFrame(() => {
221
- W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = l({
222
+ W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = a({
222
223
  relator: Math.min(e, t),
223
224
  adjuster: 600,
224
225
  source: B.value.style.chart.plots.radius,
225
226
  threshold: 3,
226
227
  fallback: 3
227
- }), K.value.indexLabels = l({
228
+ }), K.value.indexLabels = a({
228
229
  relator: Math.min(e, t),
229
230
  adjuster: 600,
230
231
  source: B.value.style.chart.plots.indexLabels.fontSize,
231
232
  threshold: 6,
232
233
  fallback: 6
233
- }), K.value.labels = l({
234
+ }), K.value.labels = a({
234
235
  relator: Math.min(e, t),
235
236
  adjuster: 600,
236
237
  source: B.value.style.chart.plots.labels.fontSize,
237
238
  threshold: 6,
238
239
  fallback: 6
239
- }), K.value.xAxisLabels = l({
240
+ }), K.value.xAxisLabels = a({
240
241
  relator: Math.min(e, t),
241
242
  adjuster: 600,
242
243
  source: B.value.style.chart.axes.x.labels.fontSize,
243
244
  threshold: 6,
244
245
  fallback: 6
245
- }), K.value.xAxisName = l({
246
+ }), K.value.xAxisName = a({
246
247
  relator: Math.min(e, t),
247
248
  adjuster: 600,
248
249
  source: B.value.style.chart.axes.x.name.fontSize,
249
250
  threshold: 6,
250
251
  fallback: 6
251
- }), K.value.yAxisLabels = l({
252
+ }), K.value.yAxisLabels = a({
252
253
  relator: Math.min(e, t),
253
254
  adjuster: 600,
254
255
  source: B.value.style.chart.axes.y.labels.fontSize,
255
256
  threshold: 6,
256
257
  fallback: 6
257
- }), K.value.yAxisName = l({
258
+ }), K.value.yAxisName = a({
258
259
  relator: Math.min(e, t),
259
260
  adjuster: 600,
260
261
  source: B.value.style.chart.axes.y.name.fontSize,
@@ -263,35 +264,35 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
263
264
  })) : (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);
264
265
  });
265
266
  });
266
- 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
+ j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = A.value.parentNode, j.value.observe(M.value);
267
268
  }
268
269
  }
269
- ze(() => {
270
- M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
270
+ Ve(() => {
271
+ j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
271
272
  });
272
- function wn() {
273
- let e = ye({
274
- userConfig: A.config,
275
- defaultConfig: qt
273
+ function _n() {
274
+ let e = be({
275
+ userConfig: k.config,
276
+ defaultConfig: Vt
276
277
  }), t = {}, n = e.theme;
277
- if (n) if (!Jt.value(e)) Yt(e), t = e;
278
+ if (n) if (!Ht.value(e)) Ut(e), t = e;
278
279
  else {
279
- let r = ye({
280
- userConfig: Me[n] || A.config,
280
+ let r = be({
281
+ userConfig: Pe[n] || k.config,
281
282
  defaultConfig: e
282
283
  });
283
284
  t = {
284
- ...ye({
285
- userConfig: A.config,
285
+ ...be({
286
+ userConfig: k.config,
286
287
  defaultConfig: r
287
288
  }),
288
- customPalette: e.customPalette.length ? e.customPalette : ne[n] || ce
289
+ customPalette: e.customPalette.length ? e.customPalette : ie[n] || l
289
290
  };
290
291
  }
291
292
  else t = e;
292
293
  return t;
293
294
  }
294
- let B = w(wn()), V = p(() => B.value.userOptions.useCursorPointer), Tn = p(() => n({
295
+ let B = C(_n()), V = f(() => B.value.userOptions.useCursorPointer), vn = f(() => s({
295
296
  defaultConfig: {
296
297
  userOptions: { show: !1 },
297
298
  table: { show: !1 },
@@ -330,11 +331,11 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
330
331
  } }
331
332
  },
332
333
  userConfig: B.value.skeletonConfig ?? {}
333
- })), { loading: En, FINAL_DATASET: Dn, manualLoading: On } = ge({
334
- ...Ue(A),
334
+ })), { loading: yn, FINAL_DATASET: bn, manualLoading: xn } = _e({
335
+ ...Ge(k),
335
336
  FINAL_CONFIG: B,
336
- prepareConfig: wn,
337
- skeletonDataset: A.config?.skeletonDataset ?? [{
337
+ prepareConfig: _n,
338
+ skeletonDataset: k.config?.skeletonDataset ?? [{
338
339
  name: "",
339
340
  color: "#CACACA",
340
341
  values: [
@@ -360,70 +361,70 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
360
361
  }
361
362
  ]
362
363
  }],
363
- skeletonConfig: n({
364
+ skeletonConfig: s({
364
365
  defaultConfig: B.value,
365
- userConfig: Tn.value
366
+ userConfig: vn.value
366
367
  })
367
- }), { userOptionsVisible: kn, setUserOptionsVisibility: An, keepUserOptionState: jn } = ke({ config: B.value }), { svgRef: H } = Ae({ config: B.value.style.chart.title });
368
- We(() => A.config, (e) => {
369
- En.value || (B.value = wn()), kn.value = !B.value.userOptions.showOnChartHover, Cn(), Zt.value += 1, en.value += 1, $t.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 }), We(() => A.dataset, (e) => {
371
- Array.isArray(e) && e.length > 0 && (On.value = !1);
368
+ }), { userOptionsVisible: Sn, setUserOptionsVisibility: Cn, keepUserOptionState: wn } = je({ config: B.value }), { svgRef: H } = Me({ config: B.value.style.chart.title });
369
+ Ke(() => k.config, (e) => {
370
+ yn.value || (B.value = _n()), Sn.value = !B.value.userOptions.showOnChartHover, gn(), Gt.value += 1, Jt.value += 1, qt.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;
371
+ }, { deep: !0 }), Ke(() => k.dataset, (e) => {
372
+ Array.isArray(e) && e.length > 0 && (xn.value = !1);
372
373
  }, { deep: !0 });
373
- let { isPrinting: Mn, isImaging: Nn, generatePdf: Pn, generateImage: Fn } = he({
374
- elementId: `history_plot_${P.value}`,
374
+ let { isPrinting: Tn, isImaging: En, generatePdf: Dn, generateImage: On } = ge({
375
+ elementId: `history_plot_${N.value}`,
375
376
  fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
376
377
  options: B.value.userOptions.print
377
- }), In = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), Ln = p(() => ee(B.value.customPalette)), U = w({
378
+ }), kn = f(() => B.value.userOptions.show && !B.value.style.chart.title.text), An = f(() => ee(B.value.customPalette)), U = C({
378
379
  showTable: B.value.table.show,
379
380
  showTooltip: B.value.style.chart.tooltip.show
380
381
  });
381
- We(B, () => {
382
+ Ke(B, () => {
382
383
  U.value = {
383
384
  showTable: B.value.table.show,
384
385
  showTooltip: B.value.style.chart.tooltip.show
385
386
  };
386
387
  }, { immediate: !0 });
387
- let W = w({
388
+ let W = C({
388
389
  height: B.value.style.chart.height,
389
390
  width: B.value.style.chart.width
390
- }), Rn = p(() => W.value.width), zn = p(() => W.value.height);
391
- function Bn() {
391
+ }), jn = f(() => W.value.width), Mn = f(() => W.value.height);
392
+ function Nn() {
392
393
  let e = 0;
393
- gn.value && (e = Array.from(gn.value.querySelectorAll("text")).reduce((e, t) => {
394
+ ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
394
395
  let n = t.getComputedTextLength();
395
396
  return n > e ? n : e;
396
397
  }, 0));
397
- let t = mn.value ? mn.value.getBoundingClientRect().width : 0;
398
+ let t = sn.value ? sn.value.getBoundingClientRect().width : 0;
398
399
  return e + t + (t ? 24 : 0);
399
400
  }
400
- let Vn = w(0), Hn = Te((e) => {
401
- Vn.value = e;
401
+ let Pn = C(0), Fn = Ee((e) => {
402
+ Pn.value = e;
402
403
  });
403
- Ge((e) => {
404
- let t = hn.value;
404
+ qe((e) => {
405
+ let t = cn.value;
405
406
  if (!t) return;
406
407
  let n = new ResizeObserver((e) => {
407
- Hn(e[0].contentRect.height);
408
+ Fn(e[0].contentRect.height);
408
409
  });
409
410
  n.observe(t), e(() => n.disconnect());
410
411
  });
411
- let Un = p(() => {
412
+ let In = f(() => {
412
413
  let e = 0;
413
- pn.value && (e = pn.value.getBBox().height + K.value.xAxisName / 2);
414
+ on.value && (e = on.value.getBBox().height + K.value.xAxisName / 2);
414
415
  let t = 0;
415
- return hn.value && (t = Vn.value), e + t;
416
- }), G = p(() => {
417
- let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Bn(), r = B.value.style.chart.plots.radius;
416
+ return cn.value && (t = Pn.value), e + t;
417
+ }), G = f(() => {
418
+ let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Nn(), r = B.value.style.chart.plots.radius;
418
419
  return {
419
420
  left: e + n + B.value.style.chart.axes.y.name.offsetX,
420
421
  top: t + r,
421
422
  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 - Un.value - r - B.value.style.chart.axes.x.name.offsetY,
423
+ bottom: W.value.height - B.value.style.chart.padding.bottom - In.value - r - B.value.style.chart.axes.x.name.offsetY,
423
424
  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 - Un.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
425
+ height: W.value.height - t - B.value.style.chart.padding.bottom - In.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
425
426
  };
426
- }), K = w({
427
+ }), K = C({
427
428
  plots: B.value.style.chart.plots.radius,
428
429
  indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
429
430
  labels: B.value.style.chart.plots.labels.fontSize,
@@ -431,30 +432,30 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
431
432
  xAxisName: B.value.style.chart.axes.x.name.fontSize,
432
433
  yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
433
434
  yAxisName: B.value.style.chart.axes.y.name.fontSize
434
- }), q = p(() => Dn.value.map((e, t) => {
435
+ }), q = f(() => bn.value.map((e, t) => {
435
436
  let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => oe(e)) : void 0;
436
437
  return {
437
438
  ...e,
438
- color: e.color ? oe(e.color) : Ln.value[t] || ce[t] || ce[t % ce.length],
439
+ color: e.color ? oe(e.color) : An.value[t] || l[t] || l[t % l.length],
439
440
  temperatureColors: n,
440
- temperatureAngle: Wn(e.temperatureAngle),
441
+ temperatureAngle: Ln(e.temperatureAngle),
441
442
  temperatureIndependant: e.temperatureIndependant === !0,
442
443
  usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
443
444
  seriesIndex: t
444
445
  };
445
446
  }));
446
- function Wn(e = 0) {
447
+ function Ln(e = 0) {
447
448
  let t = Number(e);
448
449
  return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
449
450
  }
450
- let Gn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Kn = p(() => {
451
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
451
+ let Rn = f(() => Math.max(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), zn = f(() => {
452
+ let e = Math.min(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
452
453
  return e < 0 ? e : 0;
453
- }), qn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Jn = p(() => {
454
- let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
454
+ }), Bn = f(() => Math.max(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Vn = f(() => {
455
+ let e = Math.min(...q.value.filter((e) => !P.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
455
456
  return e < 0 ? e : 0;
456
- }), J = p(() => {
457
- let e = se(B.value.style.chart.axes.x.scaleMin ?? Kn.value, B.value.style.chart.axes.x.scaleMax ?? Gn.value, B.value.style.chart.axes.x.ticks), t = se(B.value.style.chart.axes.y.scaleMin ?? Jn.value, B.value.style.chart.axes.y.scaleMax ?? qn.value, B.value.style.chart.axes.y.ticks);
457
+ }), J = f(() => {
458
+ let e = ce(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 = ce(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);
458
459
  return {
459
460
  x: e,
460
461
  y: t,
@@ -472,33 +473,33 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
472
473
  }))
473
474
  };
474
475
  });
475
- function Yn(e) {
476
+ function Hn(e) {
476
477
  let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
477
478
  return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
478
479
  }
479
- function Xn(e) {
480
+ function Un(e) {
480
481
  let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
481
482
  return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
482
483
  }
483
- let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, n) => {
484
+ let Y = f(() => q.value.filter((e) => !P.value.includes(e.seriesIndex)).map((e, t) => {
484
485
  let r = e.values.map((t, n) => ({
485
486
  valueX: t.x,
486
487
  valueY: t.y,
487
488
  label: t.label,
488
- x: Yn(t.x),
489
- y: Xn(t.y),
489
+ x: Hn(t.x),
490
+ y: Un(t.y),
490
491
  color: e.color,
491
492
  seriesName: e.name,
492
- id: re()
493
- })), i = e.smooth ? t(r) : r.map((e) => `${e.x},${e.y} `).join("").trim();
493
+ id: i()
494
+ })), a = e.smooth ? n(r) : r.map((e) => `${e.x},${e.y} `).join("").trim();
494
495
  return {
495
496
  ...e,
496
- gradientIndex: n,
497
+ gradientIndex: t,
497
498
  plots: r,
498
- path: `M${i}`
499
+ path: `M${a}`
499
500
  };
500
- })), Zn = p(() => {
501
- if (L.value === null || R.value === null) return Y.value;
501
+ })), Wn = f(() => {
502
+ if (F.value === null || R.value === null) return Y.value;
502
503
  let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
503
504
  if (e === -1) return Y.value;
504
505
  let t = Y.value[e];
@@ -507,14 +508,14 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
507
508
  ...Y.value.slice(e + 1),
508
509
  t
509
510
  ];
510
- }), Qn = p(() => Y.value.some((e) => X(e)));
511
+ }), Gn = f(() => Y.value.some((e) => X(e)));
511
512
  function X(e) {
512
513
  return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
513
514
  }
514
- function $n(e) {
515
+ function Kn(e) {
515
516
  return X(e) && e.usePlotTemperatureColors;
516
517
  }
517
- function er(e) {
518
+ function qn(e) {
518
519
  let t = Array.isArray(e?.plots) ? e.plots : [];
519
520
  if (!t.length) return {
520
521
  minX: 0,
@@ -534,7 +535,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
534
535
  height: s - o
535
536
  };
536
537
  }
537
- function tr() {
538
+ function Jn() {
538
539
  let e = G.value;
539
540
  return {
540
541
  minX: e.left,
@@ -545,11 +546,11 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
545
546
  height: e.height
546
547
  };
547
548
  }
548
- function nr(e) {
549
- return e?.temperatureIndependant ? er(e) : tr();
549
+ function Yn(e) {
550
+ return e?.temperatureIndependant ? qn(e) : Jn();
550
551
  }
551
- function rr(e) {
552
- let t = Wn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = nr(e), a = i.minX + i.width / 2, o = i.minY + i.height / 2, s = (Math.abs(n) * i.width + Math.abs(r) * i.height) / 2 || 1;
552
+ function Xn(e) {
553
+ let t = Ln(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = Yn(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
554
  return {
554
555
  x1: a - n * s,
555
556
  y1: o - r * s,
@@ -557,78 +558,78 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
557
558
  y2: o + r * s
558
559
  };
559
560
  }
560
- function ir(e, t) {
561
- let { x1: n, y1: r, x2: i, y2: a } = rr(e), o = i - n, s = a - r, c = o * o + s * s;
561
+ function Zn(e, t) {
562
+ let { x1: n, y1: r, x2: i, y2: a } = Xn(e), o = i - n, s = a - r, c = o * o + s * s;
562
563
  if (!c) return 0;
563
- let ee = ((t.x - n) * o + (t.y - r) * s) / c;
564
- return Math.min(1, Math.max(0, ee));
564
+ let l = ((t.x - n) * o + (t.y - r) * s) / c;
565
+ return Math.min(1, Math.max(0, l));
565
566
  }
566
567
  function Z(e, t) {
567
- return ae({
568
+ return pe({
568
569
  colors: e.temperatureColors,
569
- ratio: ir(e, t)
570
+ ratio: Zn(e, t)
570
571
  });
571
572
  }
572
- function ar(e, t) {
573
- return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
573
+ function Qn(e, t) {
574
+ return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`;
574
575
  }
575
- function or(e, t, n) {
576
- return $n(e) ? B.value.style.chart.plots.gradient.show ? `url(#${ar(e, t)})` : Z(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
576
+ function $n(e, t, n) {
577
+ return Kn(e) ? B.value.style.chart.plots.gradient.show ? `url(#${Qn(e, t)})` : Z(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${N.value})` : t.color;
577
578
  }
578
- function sr(e, t) {
579
- return $n(e) ? Z(e, t) : e.color;
579
+ function er(e, t) {
580
+ return Kn(e) ? Z(e, t) : e.color;
580
581
  }
581
- function cr(e, t) {
582
- return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(sr(e, t)) : B.value.style.chart.plots.indexLabels.color;
582
+ function tr(e, t) {
583
+ return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? de(er(e, t)) : B.value.style.chart.plots.indexLabels.color;
583
584
  }
584
- function lr(e, t) {
585
+ function nr(e, t) {
585
586
  let n = Y.value.find((t) => t.seriesIndex === e);
586
- return n && $n(n) ? Z(n, t) : t.color;
587
+ return n && Kn(n) ? Z(n, t) : t.color;
587
588
  }
588
- function ur(e) {
589
- return X(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
589
+ function rr(e) {
590
+ return X(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${N.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
590
591
  }
591
- function dr(e) {
592
- return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
592
+ function ir(e) {
593
+ return F.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
593
594
  }
594
- p(() => L.value !== null && R.value !== null);
595
- let fr = w(!1);
595
+ f(() => F.value !== null && R.value !== null);
596
+ let ar = C(!1);
596
597
  function Q() {
597
- return B.value.useCssAnimation && !En.value && !fr.value;
598
+ return B.value.useCssAnimation && !yn.value && !ar.value;
598
599
  }
599
- function pr() {
600
+ function or() {
600
601
  return "opacity 0.2s ease-in-out";
601
602
  }
602
- function mr() {
603
- F.value.length ? F.value = [] : yr.value.forEach((e) => {
604
- F.value.push(e.seriesIndex);
605
- }), xn("selectLegend", Y.value);
603
+ function sr() {
604
+ P.value.length ? P.value = [] : fr.value.forEach((e) => {
605
+ P.value.push(e.seriesIndex);
606
+ }), mn("selectLegend", Y.value);
606
607
  }
607
- function hr(e) {
608
- F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), xn("selectLegend", Y.value);
608
+ function cr(e) {
609
+ P.value.includes(e) ? P.value = P.value.filter((t) => t !== e) : P.value.push(e), mn("selectLegend", Y.value);
609
610
  }
610
- function gr(e) {
611
+ function lr(e) {
611
612
  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);
612
613
  }
613
- function _r(e) {
614
- let t = gr(e);
615
- t !== null && F.value.includes(t.seriesIndex) && hr(t.seriesIndex);
614
+ function ur(e) {
615
+ let t = lr(e);
616
+ t !== null && P.value.includes(t.seriesIndex) && cr(t.seriesIndex);
616
617
  }
617
- function vr(e) {
618
- let t = gr(e);
619
- t !== null && (F.value.includes(t.seriesIndex) || hr(t.seriesIndex));
618
+ function dr(e) {
619
+ let t = lr(e);
620
+ t !== null && (P.value.includes(t.seriesIndex) || cr(t.seriesIndex));
620
621
  }
621
- let yr = p(() => q.value.map((e) => {
622
+ let fr = f(() => q.value.map((e) => {
622
623
  let t = X(e) ? e.temperatureColors : null;
623
624
  return {
624
625
  ...e,
625
626
  gradientColors: t,
626
- opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
627
- segregate: () => hr(e.seriesIndex),
628
- isSegregated: F.value.includes(e.seriesIndex),
627
+ opacity: P.value.includes(e.seriesIndex) ? .5 : 1,
628
+ segregate: () => cr(e.seriesIndex),
629
+ isSegregated: P.value.includes(e.seriesIndex),
629
630
  shape: t ? "gradient" : "circle"
630
631
  };
631
- })), br = p(() => ({
632
+ })), pr = f(() => ({
632
633
  cy: "history-plot-div-legend",
633
634
  backgroundColor: B.value.style.chart.legend.backgroundColor,
634
635
  color: B.value.style.chart.legend.color,
@@ -636,7 +637,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
636
637
  paddingBottom: 12,
637
638
  fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
638
639
  }));
639
- function xr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
640
+ function mr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
640
641
  B.value.events.datapointClick && B.value.events.datapointClick({
641
642
  datapoint: {
642
643
  ...e,
@@ -644,13 +645,13 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
644
645
  seriesIndex: n
645
646
  },
646
647
  seriesIndex: n
647
- }), xn("selectDatapoint", e);
648
+ }), mn("selectDatapoint", e);
648
649
  }
649
- function Sr(e) {
650
- I.value = e, tn.value += 1;
650
+ function hr(e) {
651
+ $t.value = e, Yt.value += 1;
651
652
  }
652
- let Cr = w(null);
653
- function wr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
653
+ let gr = C(null);
654
+ function _r({ datapoint: e, plotIndex: t, seriesIndex: n }) {
654
655
  B.value.events.datapointLeave && B.value.events.datapointLeave({
655
656
  datapoint: {
656
657
  ...e,
@@ -658,18 +659,18 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
658
659
  seriesIndex: n
659
660
  },
660
661
  seriesIndex: n
661
- }), !(vn.value === "keyboard" && R.value === n && z.value === t) && (rn.value = !1, L.value = null);
662
+ }), !(dn.value === "keyboard" && R.value === n && z.value === t) && (Zt.value = !1, F.value = null);
662
663
  }
663
- function Tr(e, t) {
664
+ function vr(e, t) {
664
665
  if (!H.value) return;
665
666
  let n = Y.value.find((t) => t.seriesIndex === e);
666
667
  if (!n) return;
667
668
  let r = n.plots[t];
668
669
  if (!r) return;
669
- let a = i(r.x, r.y, H.value);
670
- a && (_n.value = a);
670
+ let i = re(r.x, r.y, H.value);
671
+ i && (un.value = i);
671
672
  }
672
- function Er({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
673
+ function yr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
673
674
  B.value.events.datapointEnter && B.value.events.datapointEnter({
674
675
  datapoint: {
675
676
  ...e,
@@ -677,22 +678,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
677
678
  seriesIndex: n
678
679
  },
679
680
  seriesIndex: n
680
- }), R.value = n, z.value = t, vn.value = r, fr.value = !0;
681
- let i = lr(n, e), a = {
681
+ }), R.value = n, z.value = t, dn.value = r, ar.value = !0;
682
+ let i = nr(n, e), a = {
682
683
  ...e,
683
684
  color: i
684
685
  };
685
- Cr.value = {
686
+ gr.value = {
686
687
  datapoint: a,
687
688
  color: i,
688
689
  seriesIndex: n,
689
690
  plotIndex: t,
690
691
  config: B.value,
691
692
  series: q.value
692
- }, L.value = e;
693
- let o = B.value.style.chart.tooltip.customFormat;
694
- if (on.value = !1, fe(o)) try {
695
- let e = o({
693
+ }, F.value = e;
694
+ let s = B.value.style.chart.tooltip.customFormat;
695
+ if (I.value = !1, me(s)) try {
696
+ let e = s({
696
697
  seriesIndex: n,
697
698
  datapoint: a,
698
699
  color: i,
@@ -700,33 +701,33 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
700
701
  series: q.value,
701
702
  config: B.value
702
703
  });
703
- typeof e == "string" && (an.value = e, on.value = !0);
704
+ typeof e == "string" && (Qt.value = e, I.value = !0);
704
705
  } catch {
705
- console.warn("Custom format cannot be applied."), on.value = !1;
706
+ console.warn("Custom format cannot be applied."), I.value = !1;
706
707
  }
707
- if (!on.value) {
708
+ if (!I.value) {
708
709
  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"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, d({
710
+ 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, o({
710
711
  p: B.value.style.chart.axes.x.labels.prefix,
711
712
  v: e.valueX,
712
713
  s: B.value.style.chart.axes.x.labels.suffix,
713
714
  r: B.value.style.chart.axes.x.labels.rounding
714
- }))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, d({
715
+ }))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, o({
715
716
  p: B.value.style.chart.axes.y.labels.prefix,
716
717
  v: e.valueY,
717
718
  s: B.value.style.chart.axes.y.labels.suffix,
718
719
  r: B.value.style.chart.axes.y.labels.rounding
719
- }))}</div>`, an.value = `<div>${t}</div>`;
720
+ }))}</div>`, Qt.value = `<div>${t}</div>`;
720
721
  }
721
- rn.value = !0, r === "keyboard" && Re(() => {
722
- Tr(n, t);
722
+ Zt.value = !0, r === "keyboard" && Be(() => {
723
+ vr(n, t);
723
724
  });
724
725
  }
725
- p(() => ({ head: Y.value.map((e) => ({
726
+ f(() => ({ head: Y.value.map((e) => ({
726
727
  name: e.name,
727
728
  color: e.color
728
729
  })) }));
729
- let $ = p(() => {
730
+ let $ = f(() => {
730
731
  let e = [
731
732
  B.value.table.columnNames.series,
732
733
  B.value.table.columnNames.datapoint,
@@ -741,13 +742,13 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
741
742
  name: e.seriesName
742
743
  },
743
744
  e.label,
744
- u(B.value.style.chart.axes.x.labels.formatter, e.valueX, d({
745
+ u(B.value.style.chart.axes.x.labels.formatter, e.valueX, o({
745
746
  p: B.value.style.chart.axes.x.labels.prefix,
746
747
  v: e.valueX,
747
748
  s: B.value.style.chart.axes.x.labels.suffix,
748
749
  r: B.value.style.chart.axes.x.labels.rounding
749
750
  })),
750
- u(B.value.style.chart.axes.y.labels.formatter, e.valueY, d({
751
+ u(B.value.style.chart.axes.y.labels.formatter, e.valueY, o({
751
752
  p: B.value.style.chart.axes.y.labels.prefix,
752
753
  v: e.valueY,
753
754
  s: B.value.style.chart.axes.y.labels.suffix,
@@ -770,8 +771,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
770
771
  colNames: e
771
772
  };
772
773
  });
773
- function Dr(e = null) {
774
- Re(() => {
774
+ function br(e = null) {
775
+ Be(() => {
775
776
  let t = [
776
777
  [B.value.table.columnNames.series],
777
778
  [B.value.table.columnNames.datapoint],
@@ -782,34 +783,34 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
782
783
  [e.label],
783
784
  [e.valueX],
784
785
  [e.valueY]
785
- ])), r = pe([
786
+ ])), r = te([
786
787
  [B.value.style.chart.title.text],
787
788
  [B.value.style.chart.title.subtitle.text],
788
789
  t
789
790
  ].concat(n));
790
- e ? e(r) : ie({
791
+ e ? e(r) : ae({
791
792
  csvContent: r,
792
793
  title: B.value.style.chart.title.text || "vue-ui-history-plot"
793
794
  });
794
795
  });
795
796
  }
796
- let Or = w(!1);
797
- function kr() {
798
- Or.value = !Or.value;
797
+ let xr = C(!1);
798
+ function Sr() {
799
+ xr.value = !xr.value;
799
800
  }
800
- function Ar() {
801
+ function Cr() {
801
802
  U.value.showTable = !U.value.showTable;
802
803
  }
803
- function jr() {
804
+ function wr() {
804
805
  U.value.showTooltip = !U.value.showTooltip;
805
806
  }
806
- function Mr() {
807
+ function Tr() {
807
808
  return Y.value;
808
809
  }
809
- async function Nr({ scale: e = 2 } = {}) {
810
- if (!j.value) return;
811
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
812
- domElement: j.value,
810
+ async function Er({ scale: e = 2 } = {}) {
811
+ if (!A.value) return;
812
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
813
+ domElement: A.value,
813
814
  base64: !0,
814
815
  img: !0,
815
816
  scale: e
@@ -823,10 +824,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
823
824
  aspectRatio: r
824
825
  };
825
826
  }
826
- xe({
827
- timeLabelsEls: hn,
828
- timeLabels: p(() => J.value.tickX),
829
- slicer: p(() => ({
827
+ Se({
828
+ timeLabelsEls: cn,
829
+ timeLabels: f(() => J.value.tickX),
830
+ slicer: f(() => ({
830
831
  start: 0,
831
832
  end: J.value.tickX.length
832
833
  })),
@@ -849,23 +850,23 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
849
850
  "enable"
850
851
  ],
851
852
  isAutoSize: !1,
852
- width: Rn,
853
- height: zn,
853
+ width: jn,
854
+ height: Mn,
854
855
  targetClass: ".vue-ui-history-plot-x-axis-scale",
855
856
  rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
856
857
  });
857
- let Pr = p(() => {
858
+ let Dr = f(() => {
858
859
  let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
859
860
  return {
860
- component: e ? Kt : Vt,
861
+ component: e ? Bt : Ft,
861
862
  title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
862
863
  props: e ? {
863
864
  backgroundColor: B.value.table.th.backgroundColor,
864
865
  color: B.value.table.th.color,
865
866
  headerColor: B.value.table.th.color,
866
867
  headerBg: B.value.table.th.backgroundColor,
867
- isFullscreen: I.value,
868
- fullscreenParent: j.value,
868
+ isFullscreen: $t.value,
869
+ fullscreenParent: A.value,
869
870
  forcedWidth: Math.min(800, window.innerWidth * .8)
870
871
  } : {
871
872
  hideDetails: !0,
@@ -884,48 +885,48 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
884
885
  }
885
886
  };
886
887
  });
887
- We(() => U.value.showTable, (e) => {
888
- B.value.table.show || (e && B.value.table.useDialog && ln.value ? ln.value.open() : "close" in ln.value && ln.value.close());
888
+ Ke(() => U.value.showTable, (e) => {
889
+ B.value.table.show || (e && B.value.table.useDialog && L.value ? L.value.open() : "close" in L.value && L.value.close());
889
890
  });
890
- function Fr() {
891
- U.value.showTable = !1, un.value && un.value.setTableIconState(!1);
891
+ function Or() {
892
+ U.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
892
893
  }
893
- let Ir = p(() => B.value.style.chart.backgroundColor), Lr = p(() => B.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = ve({
894
+ let kr = f(() => B.value.style.chart.backgroundColor), Ar = f(() => B.value.style.chart.legend), { exportSvg: jr, getSvg: Mr } = ye({
894
895
  svg: H,
895
- title: p(() => B.value.style.chart.title),
896
- legend: Lr,
897
- legendItems: yr,
898
- backgroundColor: Ir
896
+ title: f(() => B.value.style.chart.title),
897
+ legend: Ar,
898
+ legendItems: fr,
899
+ backgroundColor: kr
899
900
  });
900
- async function Br({ isCb: e }) {
901
- fn.value = !0, await Re();
901
+ async function Nr({ isCb: e }) {
902
+ an.value = !0, await Be();
902
903
  try {
903
904
  if (e) {
904
- let { blob: e, url: t, text: n, dataUrl: r } = await zr();
905
+ let { blob: e, url: t, text: n, dataUrl: r } = await Mr();
905
906
  await Promise.resolve(B.value.userOptions.callbacks.svg({
906
907
  blob: e,
907
908
  url: t,
908
909
  text: n,
909
910
  dataUrl: r
910
911
  }));
911
- } else await Promise.resolve(Rr());
912
+ } else await Promise.resolve(jr());
912
913
  } finally {
913
- fn.value = !1;
914
+ an.value = !1;
914
915
  }
915
916
  }
916
- function Vr(e) {
917
+ function Pr(e) {
917
918
  if (e?.stage === "start") {
918
- dn.value = !0;
919
+ rn.value = !0;
919
920
  return;
920
921
  }
921
922
  if (e?.stage === "end") {
922
- dn.value = !1;
923
+ rn.value = !1;
923
924
  return;
924
925
  }
925
- Fn();
926
+ On();
926
927
  }
927
- async function Hr() {
928
- if (xn("copyAlt", {
928
+ async function Fr() {
929
+ if (mn("copyAlt", {
929
930
  config: B.value,
930
931
  dataset: Y.value
931
932
  }), !B.value.userOptions.callbacks.altCopy) {
@@ -937,7 +938,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
937
938
  dataset: Y.value
938
939
  }));
939
940
  }
940
- let Ur = p(() => ({
941
+ let Ir = f(() => ({
941
942
  head: $.value.head,
942
943
  body: $.value.body.map((e) => [
943
944
  e[0]?.name || "",
@@ -948,39 +949,39 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
948
949
  caption: B.value.a11y.translations.tableCaption,
949
950
  notice: B.value.a11y.translations.tableAvailable
950
951
  }));
951
- function Wr(e) {
952
+ function Lr(e) {
952
953
  return Y.value.findIndex((t) => t.seriesIndex === e);
953
954
  }
954
- function Gr() {
955
+ function Rr() {
955
956
  if (R.value !== null && z.value !== null) {
956
957
  let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
957
- e && wr({
958
+ e && _r({
958
959
  datapoint: e,
959
960
  plotIndex: z.value,
960
961
  seriesIndex: R.value
961
962
  });
962
963
  }
963
- R.value = null, z.value = null, vn.value = "pointer", rn.value = !1, L.value = null;
964
+ R.value = null, z.value = null, dn.value = "pointer", Zt.value = !1, F.value = null;
964
965
  }
965
- function Kr() {
966
- R.value = null, z.value = null, yn.value = !0;
966
+ function zr() {
967
+ R.value = null, z.value = null, fn.value = !0;
967
968
  }
968
- function qr() {
969
- Gr(), yn.value = !1;
969
+ function Br() {
970
+ Rr(), fn.value = !1;
970
971
  }
971
- function Jr(e, t) {
972
+ function Vr(e, t) {
972
973
  if (!e?.plots?.length) return null;
973
974
  let n = e.plots.length;
974
975
  return (t % n + n) % n;
975
976
  }
976
- function Yr({ seriesIndex: e, plotIndex: t, direction: n }) {
977
+ function Hr({ seriesIndex: e, plotIndex: t, direction: n }) {
977
978
  if (!Y.value.length) return null;
978
- let r = Wr(e);
979
+ let r = Lr(e);
979
980
  if (r === -1) return null;
980
981
  if (n === "up" || n === "down") {
981
982
  let e = Y.value[r];
982
983
  if (!e?.plots?.length) return null;
983
- let i = Jr(e, t + (n === "up" ? -1 : 1));
984
+ let i = Vr(e, t + (n === "up" ? -1 : 1));
984
985
  return {
985
986
  seriesIndex: e.seriesIndex,
986
987
  plotIndex: i
@@ -997,19 +998,19 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
997
998
  }
998
999
  return null;
999
1000
  }
1000
- function Xr(e) {
1001
- if (!H.value || Or.value || document.activeElement !== H.value || !Y.value.length) return;
1001
+ function Ur(e) {
1002
+ if (!H.value || xr.value || document.activeElement !== H.value || !Y.value.length) return;
1002
1003
  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
1004
  if (!t && !n && !r && !i && !a && !o) return;
1004
1005
  if (e.preventDefault(), e.stopPropagation(), o) {
1005
- Gr();
1006
+ Rr();
1006
1007
  return;
1007
1008
  }
1008
1009
  if (a) {
1009
1010
  if (R.value === null || z.value === null) return;
1010
1011
  let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
1011
1012
  if (!e) return;
1012
- xr({
1013
+ mr({
1013
1014
  datapoint: e,
1014
1015
  plotIndex: z.value,
1015
1016
  seriesIndex: R.value
@@ -1024,93 +1025,93 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1024
1025
  seriesIndex: e.seriesIndex,
1025
1026
  plotIndex: 0
1026
1027
  };
1027
- } else r ? s = Yr({
1028
+ } else r ? s = Hr({
1028
1029
  seriesIndex: R.value,
1029
1030
  plotIndex: z.value,
1030
1031
  direction: "up"
1031
- }) : i ? s = Yr({
1032
+ }) : i ? s = Hr({
1032
1033
  seriesIndex: R.value,
1033
1034
  plotIndex: z.value,
1034
1035
  direction: "down"
1035
- }) : t ? s = Yr({
1036
+ }) : t ? s = Hr({
1036
1037
  seriesIndex: R.value,
1037
1038
  plotIndex: z.value,
1038
1039
  direction: "left"
1039
- }) : n && (s = Yr({
1040
+ }) : n && (s = Hr({
1040
1041
  seriesIndex: R.value,
1041
1042
  plotIndex: z.value,
1042
1043
  direction: "right"
1043
1044
  }));
1044
1045
  if (!s) return;
1045
1046
  let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1046
- c && Er({
1047
+ c && yr({
1047
1048
  datapoint: c,
1048
1049
  plotIndex: s.plotIndex,
1049
1050
  seriesIndex: s.seriesIndex,
1050
1051
  triggerMode: "keyboard"
1051
1052
  });
1052
1053
  }
1053
- return we({
1054
- getData: Mr,
1055
- getImage: Nr,
1056
- generatePdf: Pn,
1057
- generateCsv: Dr,
1058
- generateImage: Fn,
1059
- generateSvg: Br,
1060
- hideSeries: vr,
1061
- showSeries: _r,
1062
- toggleTable: Ar,
1063
- toggleTooltip: jr,
1064
- toggleAnnotator: kr,
1065
- toggleFullscreen: Sr,
1066
- copyAlt: Hr
1067
- }), (e, t) => (C(), g("div", {
1068
- id: `history_plot_${P.value}`,
1054
+ return Te({
1055
+ getData: Tr,
1056
+ getImage: Er,
1057
+ generatePdf: Dn,
1058
+ generateCsv: br,
1059
+ generateImage: On,
1060
+ generateSvg: Nr,
1061
+ hideSeries: dr,
1062
+ showSeries: ur,
1063
+ toggleTable: Cr,
1064
+ toggleTooltip: wr,
1065
+ toggleAnnotator: Sr,
1066
+ toggleFullscreen: hr,
1067
+ copyAlt: Fr
1068
+ }), (e, t) => (S(), h("div", {
1069
+ id: `history_plot_${N.value}`,
1069
1070
  ref_key: "historyPlotChart",
1070
- ref: j,
1071
- class: b({
1071
+ ref: A,
1072
+ class: y({
1072
1073
  "vue-data-ui-component": !0,
1073
1074
  "vue-ui-history-plot": !0,
1074
- "vue-data-ui-wrapper-fullscreen": I.value
1075
+ "vue-data-ui-wrapper-fullscreen": $t.value
1075
1076
  }),
1076
- 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(An)(!0),
1078
- onMouseleave: t[3] ||= () => O(An)(!1)
1077
+ style: x(`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%" : ""}`),
1078
+ onMouseenter: t[2] ||= () => D(Cn)(!0),
1079
+ onMouseleave: t[3] ||= () => D(Cn)(!1)
1079
1080
  }, [
1080
- _("div", {
1081
- id: `chart-instructions-${P.value}`,
1081
+ g("div", {
1082
+ id: `chart-instructions-${N.value}`,
1082
1083
  class: "sr-only"
1083
- }, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1084
- Ur.value.body.length ? (C(), m(Oe, {
1084
+ }, [g("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
1085
+ Ir.value.body.length ? (S(), p(Ae, {
1085
1086
  key: 0,
1086
- uid: P.value,
1087
- head: Ur.value.head,
1088
- body: Ur.value.body,
1089
- caption: Ur.value.caption,
1090
- notice: Ur.value.notice
1087
+ uid: N.value,
1088
+ head: Ir.value.head,
1089
+ body: Ir.value.body,
1090
+ caption: Ir.value.caption,
1091
+ notice: Ir.value.notice
1091
1092
  }, null, 8, [
1092
1093
  "uid",
1093
1094
  "head",
1094
1095
  "body",
1095
1096
  "caption",
1096
1097
  "notice"
1097
- ])) : h("", !0),
1098
- E(e.$slots, "userConfig", {}, void 0, !0),
1099
- B.value.userOptions.buttons.annotator ? (C(), m(O(Ut), {
1098
+ ])) : m("", !0),
1099
+ T(e.$slots, "userConfig", {}, void 0, !0),
1100
+ B.value.userOptions.buttons.annotator ? (S(), p(D(Lt), {
1100
1101
  key: 1,
1101
- svgRef: O(H),
1102
+ svgRef: D(H),
1102
1103
  backgroundColor: B.value.style.chart.backgroundColor,
1103
1104
  color: B.value.style.chart.color,
1104
- active: Or.value,
1105
+ active: xr.value,
1105
1106
  isCursorPointer: V.value,
1106
- onClose: kr
1107
+ onClose: Sr
1107
1108
  }, {
1108
- "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1109
- "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1110
- "annotator-action-draw": k(({ mode: t }) => [E(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1111
- "annotator-action-undo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1112
- "annotator-action-redo": k(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1113
- "annotator-action-delete": k(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1109
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1110
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
1111
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", b(v({ mode: t })), void 0, !0)]),
1112
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", b(v({ disabled: t })), void 0, !0)]),
1113
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", b(v({ disabled: t })), void 0, !0)]),
1114
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", b(v({ disabled: t })), void 0, !0)]),
1114
1115
  _: 3
1115
1116
  }, 8, [
1116
1117
  "svgRef",
@@ -1118,22 +1119,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1118
1119
  "color",
1119
1120
  "active",
1120
1121
  "isCursorPointer"
1121
- ])) : h("", !0),
1122
- In.value ? (C(), g("div", {
1122
+ ])) : m("", !0),
1123
+ kn.value ? (S(), h("div", {
1123
1124
  key: 2,
1124
1125
  ref_key: "noTitle",
1125
- ref: nn,
1126
+ ref: Xt,
1126
1127
  class: "vue-data-ui-no-title-space",
1127
1128
  style: "height:36px; width: 100%;background:transparent"
1128
- }, null, 512)) : h("", !0),
1129
- B.value.style.chart.title.text ? (C(), g("div", {
1129
+ }, null, 512)) : m("", !0),
1130
+ B.value.style.chart.title.text ? (S(), h("div", {
1130
1131
  key: 3,
1131
1132
  ref_key: "chartTitle",
1132
- ref: Xt,
1133
+ ref: Wt,
1133
1134
  class: "vue-ui-xy-title",
1134
- style: S(`font-family:${B.value.style.fontFamily}`)
1135
- }, [(C(), m(Ce, {
1136
- key: `title_${Zt.value}`,
1135
+ style: x(`font-family:${B.value.style.fontFamily}`)
1136
+ }, [(S(), p(we, {
1137
+ key: `title_${Gt.value}`,
1137
1138
  config: {
1138
1139
  title: {
1139
1140
  cy: "history-plot-div-title",
@@ -1144,17 +1145,17 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1144
1145
  ...B.value.style.chart.title.subtitle
1145
1146
  }
1146
1147
  }
1147
- }, null, 8, ["config"]))], 4)) : h("", !0),
1148
- _("div", { id: `legend-top-${P.value}` }, null, 8, Ye),
1149
- B.value.userOptions.show && bn.value && (O(jn) || O(kn)) ? (C(), m(O(Wt), {
1148
+ }, null, 8, ["config"]))], 4)) : m("", !0),
1149
+ g("div", { id: `legend-top-${N.value}` }, null, 8, Ze),
1150
+ B.value.userOptions.show && pn.value && (D(wn) || D(Sn)) ? (S(), p(D(Rt), {
1150
1151
  ref_key: "userOptionsRef",
1151
- ref: un,
1152
- key: `user_option_${tn.value}`,
1152
+ ref: nn,
1153
+ key: `user_option_${Yt.value}`,
1153
1154
  backgroundColor: B.value.style.chart.backgroundColor,
1154
1155
  color: B.value.style.chart.color,
1155
- isPrinting: O(Mn),
1156
- isImaging: O(Nn),
1157
- uid: P.value,
1156
+ isPrinting: D(Tn),
1157
+ isImaging: D(En),
1158
+ uid: N.value,
1158
1159
  hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
1159
1160
  hasPdf: B.value.userOptions.buttons.pdf,
1160
1161
  hasImg: B.value.userOptions.buttons.img,
@@ -1164,31 +1165,31 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1164
1165
  hasLabel: !1,
1165
1166
  hasFullscreen: B.value.userOptions.buttons.fullscreen,
1166
1167
  hasAltCopy: B.value.userOptions.buttons.altCopy,
1167
- isFullscreen: I.value,
1168
- chartElement: j.value,
1168
+ isFullscreen: $t.value,
1169
+ chartElement: A.value,
1169
1170
  position: B.value.userOptions.position,
1170
1171
  isTooltip: U.value.showTooltip,
1171
1172
  titles: { ...B.value.userOptions.buttonTitles },
1172
1173
  hasAnnotator: B.value.userOptions.buttons.annotator,
1173
- isAnnotation: Or.value,
1174
+ isAnnotation: xr.value,
1174
1175
  callbacks: B.value.userOptions.callbacks,
1175
1176
  printScale: B.value.userOptions.print.scale,
1176
1177
  tableDialog: B.value.table.useDialog,
1177
1178
  isCursorPointer: V.value,
1178
- onToggleFullscreen: Sr,
1179
- onGeneratePdf: O(Pn),
1180
- onGenerateCsv: Dr,
1181
- onGenerateImage: Vr,
1182
- onGenerateSvg: Br,
1183
- onToggleTable: Ar,
1184
- onToggleTooltip: jr,
1185
- onToggleAnnotator: kr,
1186
- onCopyAlt: Hr,
1187
- style: S({ visibility: O(jn) ? O(kn) ? "visible" : "hidden" : "visible" })
1188
- }, Pe({ _: 2 }, [
1179
+ onToggleFullscreen: hr,
1180
+ onGeneratePdf: D(Dn),
1181
+ onGenerateCsv: br,
1182
+ onGenerateImage: Pr,
1183
+ onGenerateSvg: Nr,
1184
+ onToggleTable: Cr,
1185
+ onToggleTooltip: wr,
1186
+ onToggleAnnotator: Sr,
1187
+ onCopyAlt: Fr,
1188
+ style: x({ visibility: D(wn) ? D(Sn) ? "visible" : "hidden" : "visible" })
1189
+ }, Ie({ _: 2 }, [
1189
1190
  e.$slots.menuIcon ? {
1190
1191
  name: "menuIcon",
1191
- fn: k(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", x(y({
1192
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", b(v({
1192
1193
  isOpen: t,
1193
1194
  color: n
1194
1195
  })), void 0, !0)]),
@@ -1196,37 +1197,37 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1196
1197
  } : void 0,
1197
1198
  e.$slots.optionTooltip ? {
1198
1199
  name: "optionTooltip",
1199
- fn: k(() => [E(e.$slots, "optionTooltip", {}, void 0, !0)]),
1200
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1200
1201
  key: "1"
1201
1202
  } : void 0,
1202
1203
  e.$slots.optionPdf ? {
1203
1204
  name: "optionPdf",
1204
- fn: k(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
1205
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1205
1206
  key: "2"
1206
1207
  } : void 0,
1207
1208
  e.$slots.optionCsv ? {
1208
1209
  name: "optionCsv",
1209
- fn: k(() => [E(e.$slots, "optionCsv", {}, void 0, !0)]),
1210
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1210
1211
  key: "3"
1211
1212
  } : void 0,
1212
1213
  e.$slots.optionImg ? {
1213
1214
  name: "optionImg",
1214
- fn: k(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
1215
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1215
1216
  key: "4"
1216
1217
  } : void 0,
1217
1218
  e.$slots.optionSvg ? {
1218
1219
  name: "optionSvg",
1219
- fn: k(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
1220
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1220
1221
  key: "5"
1221
1222
  } : void 0,
1222
1223
  e.$slots.optionTable ? {
1223
1224
  name: "optionTable",
1224
- fn: k(() => [E(e.$slots, "optionTable", {}, void 0, !0)]),
1225
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1225
1226
  key: "6"
1226
1227
  } : void 0,
1227
1228
  e.$slots.optionFullscreen ? {
1228
1229
  name: "optionFullscreen",
1229
- fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", x(y({
1230
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", b(v({
1230
1231
  toggleFullscreen: t,
1231
1232
  isFullscreen: n
1232
1233
  })), void 0, !0)]),
@@ -1234,7 +1235,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1234
1235
  } : void 0,
1235
1236
  e.$slots.optionAnnotator ? {
1236
1237
  name: "optionAnnotator",
1237
- fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", x(y({
1238
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", b(v({
1238
1239
  toggleAnnotator: t,
1239
1240
  isAnnotator: n
1240
1241
  })), void 0, !0)]),
@@ -1242,89 +1243,99 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1242
1243
  } : void 0,
1243
1244
  e.$slots.optionAltCopy ? {
1244
1245
  name: "optionAltCopy",
1245
- fn: k(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1246
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", b(v({ altCopy: t })), void 0, !0)]),
1246
1247
  key: "9"
1247
1248
  } : void 0,
1248
1249
  e.$slots["custom-menu-before"] ? {
1249
1250
  name: "custom-menu-before",
1250
- fn: k(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1251
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1251
1252
  key: "10"
1252
1253
  } : void 0,
1253
1254
  e.$slots["custom-menu-after"] ? {
1254
1255
  name: "custom-menu-after",
1255
- fn: k(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1256
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1256
1257
  key: "11"
1257
1258
  } : void 0
1258
- ]), 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", Xe, [(C(), g("svg", {
1259
+ ]), 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("."))) : m("", !0),
1260
+ g("div", Qe, [(S(), h("svg", {
1260
1261
  ref_key: "svgRef",
1261
1262
  ref: H,
1262
- xmlns: O(ue),
1263
+ xmlns: D(fe),
1263
1264
  viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
1264
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
1265
- "aria-describedby": `chart-instructions-${P.value}`,
1265
+ style: x(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
1266
+ "aria-describedby": `chart-instructions-${N.value}`,
1266
1267
  tabindex: "0",
1267
- onFocus: Kr,
1268
- onBlur: qr,
1269
- onKeydown: Xr
1268
+ onFocus: zr,
1269
+ onBlur: Br,
1270
+ onKeydown: Ur
1270
1271
  }, [
1271
- Ie(O(Gt)),
1272
- e.$slots["chart-background"] ? (C(), g("foreignObject", {
1272
+ Re(D(zt)),
1273
+ e.$slots["chart-background"] ? (S(), h("foreignObject", {
1273
1274
  key: 0,
1274
1275
  x: G.value.left,
1275
1276
  y: G.value.top,
1276
1277
  width: G.value.width <= 0 ? 10 : G.value.width,
1277
1278
  height: G.value.height <= 0 ? 10 : G.value.height,
1278
1279
  style: { pointerEvents: "none" }
1279
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : h("", !0),
1280
- B.value.style.chart.plots.gradient.show || Qn.value ? (C(), g("defs", $e, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(Y.value, (e, t) => (C(), g("radialGradient", {
1281
- key: `gradient_${t}_${P.value}`,
1282
- id: `gradient_${t}_${P.value}`,
1283
- fy: "30%"
1284
- }, [
1285
- _("stop", {
1286
- offset: "10%",
1287
- "stop-color": O(te)(e.color, B.value.style.chart.plots.gradient.intensity / 100)
1288
- }, null, 8, tt),
1289
- _("stop", {
1290
- offset: "90%",
1291
- "stop-color": O(o)(e.color, .1)
1292
- }, null, 8, nt),
1293
- _("stop", {
1294
- offset: "100%",
1295
- "stop-color": e.color
1296
- }, null, 8, rt)
1297
- ], 8, et))), 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 && $n(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), g("radialGradient", {
1298
- key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
1299
- id: ar(e, t),
1300
- fy: "30%"
1301
- }, [
1302
- _("stop", {
1303
- offset: "10%",
1304
- "stop-color": O(te)(Z(e, t), B.value.style.chart.plots.gradient.intensity / 100)
1305
- }, null, 8, at),
1306
- _("stop", {
1307
- offset: "90%",
1308
- "stop-color": O(o)(Z(e, t), .1)
1309
- }, null, 8, ot),
1310
- _("stop", {
1311
- offset: "100%",
1312
- "stop-color": Z(e, t)
1313
- }, null, 8, st)
1314
- ], 8, it))), 128)) : h("", !0), X(e) ? (C(), g("linearGradient", {
1280
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : m("", !0),
1281
+ B.value.style.chart.plots.gradient.show || Gn.value ? (S(), h("defs", tt, [B.value.style.chart.plots.gradient.show ? (S(!0), h(d, { key: 0 }, w(Y.value, (e, t) => (S(), p(Oe, {
1282
+ t: "radial",
1283
+ key: `gradient_${t}_${N.value}`,
1284
+ id: `gradient_${t}_${N.value}`,
1285
+ fy: "30%",
1286
+ stops: [
1287
+ [
1288
+ "10%",
1289
+ D(r)(e.color, B.value.style.chart.plots.gradient.intensity / 100),
1290
+ 1
1291
+ ],
1292
+ [
1293
+ "90%",
1294
+ D(ue)(e.color, .1),
1295
+ 1
1296
+ ],
1297
+ [
1298
+ "100%",
1299
+ e.color,
1300
+ 1
1301
+ ]
1302
+ ]
1303
+ }, null, 8, ["id", "stops"]))), 128)) : m("", !0), (S(!0), h(d, null, w(Y.value, (e) => (S(), h(d, { key: `temperature_grad_history_template_${e.seriesIndex}_${N.value}` }, [B.value.style.chart.plots.gradient.show && Kn(e) ? (S(!0), h(d, { key: 0 }, w(e.plots, (t) => (S(), p(Oe, {
1304
+ t: "radial",
1305
+ key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${N.value}`,
1306
+ id: Qn(e, t),
1307
+ fy: "30%",
1308
+ stops: [
1309
+ [
1310
+ "10%",
1311
+ D(r)(Z(e, t), B.value.style.chart.plots.gradient.intensity / 100),
1312
+ 1
1313
+ ],
1314
+ [
1315
+ "90%",
1316
+ D(ue)(Z(e, t), .1),
1317
+ 1
1318
+ ],
1319
+ [
1320
+ "100%",
1321
+ Z(e, t),
1322
+ 1
1323
+ ]
1324
+ ]
1325
+ }, null, 8, ["id", "stops"]))), 128)) : m("", !0), X(e) ? (S(), h("linearGradient", {
1315
1326
  key: 1,
1316
- id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
1327
+ id: `temperature_grad_history_${e.seriesIndex}_${N.value}`,
1317
1328
  gradientUnits: "userSpaceOnUse",
1318
- x1: rr(e).x1,
1319
- y1: rr(e).y1,
1320
- x2: rr(e).x2,
1321
- y2: rr(e).y2
1322
- }, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
1323
- key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
1329
+ x1: Xn(e).x1,
1330
+ y1: Xn(e).y1,
1331
+ x2: Xn(e).x2,
1332
+ y2: Xn(e).y2
1333
+ }, [(S(!0), h(d, null, w(e.temperatureColors, (t, n) => (S(), h("stop", {
1334
+ key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${N.value}`,
1324
1335
  "stop-color": t,
1325
- offset: e.temperatureColors.length === 1 ? "0%" : O(a)(n, e.temperatureColors.length)
1326
- }, null, 8, lt))), 128))], 8, ct)) : h("", !0)], 64))), 128))])) : h("", !0),
1327
- B.value.style.chart.grid.verticalLines.show ? (C(), g("g", ut, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1336
+ offset: e.temperatureColors.length === 1 ? "0%" : D(c)(n, e.temperatureColors.length)
1337
+ }, null, 8, rt))), 128))], 8, nt)) : m("", !0)], 64))), 128))])) : m("", !0),
1338
+ B.value.style.chart.grid.verticalLines.show ? (S(), h("g", it, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("line", {
1328
1339
  x1: e.x,
1329
1340
  x2: e.x,
1330
1341
  y1: e.y1,
@@ -1332,8 +1343,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1332
1343
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1333
1344
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1334
1345
  "stroke-linecap": "round"
1335
- }, null, 8, dt))), 256))])) : h("", !0),
1336
- B.value.style.chart.axes.y.labels.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1346
+ }, null, 8, at))), 256))])) : m("", !0),
1347
+ B.value.style.chart.axes.y.labels.show ? (S(), h("g", ot, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("line", {
1337
1348
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1338
1349
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1339
1350
  "stroke-linecap": "round",
@@ -1341,34 +1352,34 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1341
1352
  x2: G.value.left,
1342
1353
  y1: e.y,
1343
1354
  y2: e.y
1344
- }, null, 8, pt))), 256))])) : h("", !0),
1345
- B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1355
+ }, null, 8, st))), 256))])) : m("", !0),
1356
+ B.value.style.chart.axes.y.labels.show ? (S(), h("g", {
1346
1357
  key: 4,
1347
1358
  ref_key: "yAxisScales",
1348
- ref: gn
1349
- }, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
1359
+ ref: ln
1360
+ }, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("text", {
1350
1361
  x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
1351
1362
  y: e.y + K.value.yAxisLabels / 3,
1352
1363
  fill: B.value.style.chart.axes.y.labels.color,
1353
1364
  "font-size": K.value.yAxisLabels,
1354
1365
  "text-anchor": "end"
1355
- }, D(O(u)(B.value.style.chart.axes.y.labels.formatter, e.value, O(d)({
1366
+ }, E(D(u)(B.value.style.chart.axes.y.labels.formatter, e.value, D(o)({
1356
1367
  p: B.value.style.chart.axes.y.labels.prefix,
1357
1368
  v: e.value,
1358
1369
  s: B.value.style.chart.axes.y.labels.suffix,
1359
1370
  r: B.value.style.chart.axes.y.labels.rounding
1360
- }))), 9, mt))), 256))], 512)) : h("", !0),
1361
- B.value.style.chart.axes.y.name.text ? (C(), g("text", {
1371
+ }))), 9, ct))), 256))], 512)) : m("", !0),
1372
+ B.value.style.chart.axes.y.name.text ? (S(), h("text", {
1362
1373
  key: 5,
1363
1374
  ref_key: "yAxisLabel",
1364
- ref: mn,
1375
+ ref: sn,
1365
1376
  transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1366
1377
  "font-size": K.value.yAxisName,
1367
1378
  fill: B.value.style.chart.axes.y.name.color,
1368
1379
  "font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
1369
1380
  "text-anchor": "middle"
1370
- }, D(B.value.style.chart.axes.y.name.text), 9, ht)) : h("", !0),
1371
- B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", gt, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
1381
+ }, E(B.value.style.chart.axes.y.name.text), 9, lt)) : m("", !0),
1382
+ B.value.style.chart.grid.horizontalLines.show ? (S(), h("g", ut, [(S(!0), h(d, null, w(J.value.tickY, (e) => (S(), h("line", {
1372
1383
  x1: e.x1,
1373
1384
  x2: e.x2,
1374
1385
  y1: e.y,
@@ -1376,8 +1387,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1376
1387
  stroke: B.value.style.chart.grid.horizontalLines.stroke,
1377
1388
  "stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
1378
1389
  "stroke-linecap": "round"
1379
- }, null, 8, _t))), 256))])) : h("", !0),
1380
- B.value.style.chart.axes.x.labels.show ? (C(), g("g", vt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
1390
+ }, null, 8, dt))), 256))])) : m("", !0),
1391
+ B.value.style.chart.axes.x.labels.show ? (S(), h("g", ft, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("line", {
1381
1392
  stroke: B.value.style.chart.grid.verticalLines.stroke,
1382
1393
  "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1383
1394
  "stroke-linecap": "round",
@@ -1385,35 +1396,35 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1385
1396
  x2: e.x,
1386
1397
  y1: G.value.bottom,
1387
1398
  y2: G.value.bottom + 5
1388
- }, null, 8, yt))), 256))])) : h("", !0),
1389
- B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1399
+ }, null, 8, pt))), 256))])) : m("", !0),
1400
+ B.value.style.chart.axes.x.labels.show ? (S(), h("g", {
1390
1401
  key: 8,
1391
1402
  ref_key: "xAxisScales",
1392
- ref: hn
1393
- }, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
1403
+ ref: cn
1404
+ }, [(S(!0), h(d, null, w(J.value.tickX, (e) => (S(), h("text", {
1394
1405
  class: "vue-ui-history-plot-x-axis-scale",
1395
1406
  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})`,
1396
1407
  fill: B.value.style.chart.axes.x.labels.color,
1397
1408
  "font-size": K.value.xAxisLabels,
1398
1409
  "text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1399
- }, D(O(u)(B.value.style.chart.axes.x.labels.formatter, e.value, O(d)({
1410
+ }, E(D(u)(B.value.style.chart.axes.x.labels.formatter, e.value, D(o)({
1400
1411
  p: B.value.style.chart.axes.x.labels.prefix,
1401
1412
  v: e.value,
1402
1413
  s: B.value.style.chart.axes.x.labels.suffix,
1403
1414
  r: B.value.style.chart.axes.x.labels.rounding
1404
- }))), 9, bt))), 256))], 512)) : h("", !0),
1405
- B.value.style.chart.axes.x.name.text ? (C(), g("text", {
1415
+ }))), 9, mt))), 256))], 512)) : m("", !0),
1416
+ B.value.style.chart.axes.x.name.text ? (S(), h("text", {
1406
1417
  key: 9,
1407
1418
  ref_key: "xAxisLabel",
1408
- ref: pn,
1419
+ ref: on,
1409
1420
  x: W.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
1410
1421
  y: W.value.height,
1411
1422
  "font-size": K.value.xAxisName,
1412
1423
  fill: B.value.style.chart.axes.x.name.color,
1413
1424
  "font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
1414
1425
  "text-anchor": "middle"
1415
- }, D(B.value.style.chart.axes.x.name.text), 9, xt)) : h("", !0),
1416
- B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
1426
+ }, E(B.value.style.chart.axes.x.name.text), 9, ht)) : m("", !0),
1427
+ B.value.style.chart.grid.xAxis.show ? (S(), h("line", {
1417
1428
  key: 10,
1418
1429
  x1: G.value.left,
1419
1430
  x2: G.value.left + G.value.width,
@@ -1422,8 +1433,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1422
1433
  stroke: B.value.style.chart.grid.xAxis.stroke,
1423
1434
  "stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
1424
1435
  "stroke-linecap": "round"
1425
- }, null, 8, St)) : h("", !0),
1426
- B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1436
+ }, null, 8, gt)) : m("", !0),
1437
+ B.value.style.chart.grid.yAxis.show ? (S(), h("line", {
1427
1438
  key: 11,
1428
1439
  x1: G.value.left,
1429
1440
  x2: G.value.left,
@@ -1432,49 +1443,49 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1432
1443
  stroke: B.value.style.chart.grid.yAxis.stroke,
1433
1444
  "stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
1434
1445
  "stroke-linecap": "round"
1435
- }, null, 8, Ct)) : h("", !0),
1436
- (C(!0), g(f, null, T(Zn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1437
- B.value.style.chart.paths.show ? (C(), g("g", {
1446
+ }, null, 8, _t)) : m("", !0),
1447
+ (S(!0), h(d, null, w(Wn.value, (e) => (S(), h("g", { key: `history_plot_serie_${e.seriesIndex}_${N.value}` }, [
1448
+ B.value.style.chart.paths.show ? (S(), h("g", {
1438
1449
  key: 0,
1439
- style: S({ opacity: dr(e.seriesIndex) })
1440
- }, [_("path", {
1450
+ style: x({ opacity: ir(e.seriesIndex) })
1451
+ }, [g("path", {
1441
1452
  d: e.path,
1442
1453
  stroke: B.value.style.chart.backgroundColor,
1443
1454
  "stroke-width": B.value.style.chart.paths.strokeWidth + 4,
1444
1455
  fill: "none",
1445
1456
  "stroke-linecap": "round",
1446
1457
  "stroke-linejoin": "round",
1447
- class: b({ animated: Q() })
1448
- }, null, 10, wt), _("path", {
1458
+ class: y({ animated: Q() })
1459
+ }, null, 10, vt), g("path", {
1449
1460
  d: e.path,
1450
- stroke: ur(e),
1461
+ stroke: rr(e),
1451
1462
  "stroke-width": B.value.style.chart.paths.strokeWidth,
1452
1463
  fill: "none",
1453
1464
  "stroke-linecap": "round",
1454
1465
  "stroke-linejoin": "round",
1455
- class: b({ animated: Q() })
1456
- }, null, 10, Tt)], 4)) : h("", !0),
1457
- (C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
1466
+ class: y({ animated: Q() })
1467
+ }, null, 10, yt)], 4)) : m("", !0),
1468
+ (S(!0), h(d, null, w(e.plots, (e) => (S(), h("circle", {
1458
1469
  cx: e.x,
1459
1470
  cy: e.y,
1460
1471
  fill: B.value.style.chart.backgroundColor,
1461
1472
  r: K.value.plots,
1462
1473
  stroke: "none"
1463
- }, null, 8, Et))), 256)),
1464
- (C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
1474
+ }, null, 8, bt))), 256)),
1475
+ (S(!0), h(d, null, w(e.plots, (t) => (S(), h("circle", {
1465
1476
  cx: t.x,
1466
1477
  cy: t.y,
1467
- fill: or(e, t, e.gradientIndex),
1478
+ fill: $n(e, t, e.gradientIndex),
1468
1479
  r: K.value.plots,
1469
1480
  stroke: B.value.style.chart.plots.stroke,
1470
1481
  "stroke-width": B.value.style.chart.plots.strokeWidth,
1471
- class: b({ animated: Q() }),
1472
- style: S({
1473
- opacity: dr(e.seriesIndex),
1474
- transition: pr()
1482
+ class: y({ animated: Q() }),
1483
+ style: x({
1484
+ opacity: ir(e.seriesIndex),
1485
+ transition: or()
1475
1486
  })
1476
- }, null, 14, Dt))), 256)),
1477
- B.value.style.chart.plots.labels.show ? (C(), g("g", Ot, [(C(!0), g(f, null, T(e.plots, (t) => (C(), g("g", null, [String(t.label).includes("\n") ? (C(), g("text", {
1487
+ }, null, 14, xt))), 256)),
1488
+ B.value.style.chart.plots.labels.show ? (S(), h("g", St, [(S(!0), h(d, null, w(e.plots, (t) => (S(), h("g", null, [String(t.label).includes("\n") ? (S(), h("text", {
1478
1489
  key: 1,
1479
1490
  x: t.x + B.value.style.chart.plots.labels.offsetX,
1480
1491
  y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
@@ -1482,19 +1493,19 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1482
1493
  fill: B.value.style.chart.plots.labels.color,
1483
1494
  "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1484
1495
  "text-anchor": "middle",
1485
- class: b({ animated: Q() }),
1486
- style: S({
1487
- opacity: dr(e.seriesIndex),
1488
- transition: pr()
1496
+ class: y({ animated: Q() }),
1497
+ style: x({
1498
+ opacity: ir(e.seriesIndex),
1499
+ transition: or()
1489
1500
  }),
1490
- innerHTML: O(r)({
1501
+ innerHTML: D(ne)({
1491
1502
  content: String(t.label),
1492
1503
  fontSize: K.value.labels,
1493
1504
  fill: B.value.style.chart.plots.labels.color,
1494
1505
  x: t.x + B.value.style.chart.plots.labels.offsetX,
1495
1506
  y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
1496
1507
  })
1497
- }, null, 14, At)) : (C(), g("text", {
1508
+ }, null, 14, wt)) : (S(), h("text", {
1498
1509
  key: 0,
1499
1510
  x: t.x + B.value.style.chart.plots.labels.offsetX,
1500
1511
  y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
@@ -1502,110 +1513,110 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1502
1513
  fill: B.value.style.chart.plots.labels.color,
1503
1514
  "font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
1504
1515
  "text-anchor": "middle",
1505
- class: b({ animated: Q() }),
1506
- style: S({
1507
- opacity: dr(e.seriesIndex),
1508
- transition: pr()
1516
+ class: y({ animated: Q() }),
1517
+ style: x({
1518
+ opacity: ir(e.seriesIndex),
1519
+ transition: or()
1509
1520
  })
1510
- }, D(t.label), 15, kt))]))), 256))])) : h("", !0),
1511
- B.value.style.chart.plots.indexLabels.show ? (C(), g("g", jt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1521
+ }, E(t.label), 15, Ct))]))), 256))])) : m("", !0),
1522
+ B.value.style.chart.plots.indexLabels.show ? (S(), h("g", Tt, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("text", {
1512
1523
  x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
1513
1524
  y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
1514
1525
  "font-size": K.value.indexLabels,
1515
1526
  "font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1516
- fill: cr(e, t),
1527
+ fill: tr(e, t),
1517
1528
  "text-anchor": "middle",
1518
- class: b({ animated: Q() }),
1519
- style: S({
1520
- opacity: dr(e.seriesIndex),
1521
- transition: pr()
1529
+ class: y({ animated: Q() }),
1530
+ style: x({
1531
+ opacity: ir(e.seriesIndex),
1532
+ transition: or()
1522
1533
  })
1523
- }, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Mt))), 256))])) : h("", !0)
1534
+ }, E(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Et))), 256))])) : m("", !0)
1524
1535
  ]))), 128)),
1525
- (C(!0), g(f, null, T(Zn.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
+ (S(!0), h(d, null, w(Wn.value, (e) => (S(), h("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${N.value}` }, [(S(!0), h(d, null, w(e.plots, (t, n) => (S(), h("circle", {
1526
1537
  cx: t.x,
1527
1538
  cy: t.y,
1528
1539
  fill: "transparent",
1529
1540
  r: K.value.plots,
1530
1541
  stroke: "none",
1531
- onMouseenter: (r) => Er({
1542
+ onMouseenter: (r) => yr({
1532
1543
  datapoint: t,
1533
1544
  plotIndex: n,
1534
1545
  seriesIndex: e.seriesIndex,
1535
1546
  triggerMode: "pointer"
1536
1547
  }),
1537
- onMouseleave: (r) => wr({
1548
+ onMouseleave: (r) => _r({
1538
1549
  datapoint: t,
1539
1550
  plotIndex: n,
1540
1551
  seriesIndex: e.seriesIndex
1541
1552
  }),
1542
- onClick: (r) => xr({
1553
+ onClick: (r) => mr({
1543
1554
  datapoint: t,
1544
1555
  plotIndex: n,
1545
1556
  seriesIndex: e.seriesIndex
1546
1557
  })
1547
- }, null, 40, Nt))), 256))]))), 128)),
1548
- E(e.$slots, "svg", { svg: {
1558
+ }, null, 40, Dt))), 256))]))), 128)),
1559
+ T(e.$slots, "svg", { svg: {
1549
1560
  ...W.value,
1550
1561
  drawingArea: G.value,
1551
- isPrintingImg: O(Mn) || O(Nn) || dn.value,
1552
- isPrintingSvg: fn.value
1562
+ isPrintingImg: D(Tn) || D(En) || rn.value,
1563
+ isPrintingSvg: an.value
1553
1564
  } }, void 0, !0)
1554
- ], 44, Ze)), e.$slots.hint ? (C(), g("div", Pt, [E(e.$slots, "hint", x(y({
1565
+ ], 44, $e)), e.$slots.hint ? (S(), h("div", Ot, [T(e.$slots, "hint", b(v({
1555
1566
  hint: B.value.a11y.translations.keyboardNavigation,
1556
- isVisible: yn.value
1557
- })), void 0, !0)])) : h("", !0)]),
1558
- e.$slots.watermark ? (C(), g("div", Ft, [E(e.$slots, "watermark", x(y({ isPrinting: O(Mn) || O(Nn) || dn.value || fn.value })), void 0, !0)])) : h("", !0),
1559
- _("div", { id: `legend-bottom-${P.value}` }, null, 8, It),
1560
- cn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Ne, {
1567
+ isVisible: fn.value
1568
+ })), void 0, !0)])) : m("", !0)]),
1569
+ e.$slots.watermark ? (S(), h("div", kt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Tn) || D(En) || rn.value || an.value })), void 0, !0)])) : m("", !0),
1570
+ g("div", { id: `legend-bottom-${N.value}` }, null, 8, At),
1571
+ tn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Fe, {
1561
1572
  key: 6,
1562
- to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1563
- }, [_("div", {
1573
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
1574
+ }, [g("div", {
1564
1575
  ref_key: "chartLegend",
1565
- ref: Qt
1566
- }, [E(e.$slots, "legend", { legend: yr.value }, () => [B.value.style.chart.legend.show && bn.value ? (C(), m(je, {
1567
- key: `legend_${$t.value}`,
1568
- legendSet: yr.value,
1569
- config: br.value,
1576
+ ref: Kt
1577
+ }, [T(e.$slots, "legend", { legend: fr.value }, () => [B.value.style.chart.legend.show && pn.value ? (S(), p(Ne, {
1578
+ key: `legend_${qt.value}`,
1579
+ legendSet: fr.value,
1580
+ config: pr.value,
1570
1581
  isCursorPointer: V.value,
1571
1582
  onClickMarker: t[0] ||= ({ legend: e }) => {
1572
- hr(e.seriesIndex);
1583
+ cr(e.seriesIndex);
1573
1584
  }
1574
1585
  }, {
1575
- item: k(({ legend: e, index: t }) => [_("div", {
1586
+ item: O(({ legend: e, index: t }) => [g("div", {
1576
1587
  onClick: (t) => e.segregate(),
1577
- style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
1578
- }, D(e.name), 13, Lt)]),
1579
- legendToggle: k(() => [yr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(En) ? (C(), m(De, {
1588
+ style: x(`opacity:${P.value.includes(e.seriesIndex) ? .5 : 1}`)
1589
+ }, E(e.name), 13, jt)]),
1590
+ legendToggle: O(() => [fr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !D(yn) ? (S(), p(ke, {
1580
1591
  key: 0,
1581
1592
  backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
1582
1593
  color: B.value.style.chart.legend.selectAllToggle.color,
1583
1594
  fontSize: B.value.style.chart.legend.fontSize,
1584
- checked: F.value.length > 0,
1595
+ checked: P.value.length > 0,
1585
1596
  isCursorPointer: V.value,
1586
- onToggle: mr
1597
+ onToggle: sr
1587
1598
  }, null, 8, [
1588
1599
  "backgroundColor",
1589
1600
  "color",
1590
1601
  "fontSize",
1591
1602
  "checked",
1592
1603
  "isCursorPointer"
1593
- ])) : h("", !0)]),
1604
+ ])) : m("", !0)]),
1594
1605
  _: 1
1595
1606
  }, 8, [
1596
1607
  "legendSet",
1597
1608
  "config",
1598
1609
  "isCursorPointer"
1599
- ])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
1600
- e.$slots.source ? (C(), g("div", {
1610
+ ])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
1611
+ e.$slots.source ? (S(), h("div", {
1601
1612
  key: 7,
1602
1613
  ref_key: "source",
1603
- ref: sn,
1614
+ ref: en,
1604
1615
  dir: "auto"
1605
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1606
- Ie(O(zt), {
1616
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1617
+ Re(D(Nt), {
1607
1618
  teleportTo: B.value.style.chart.tooltip.teleportTo,
1608
- show: U.value.showTooltip && rn.value,
1619
+ show: U.value.showTooltip && Zt.value,
1609
1620
  backgroundColor: B.value.style.chart.tooltip.backgroundColor,
1610
1621
  color: B.value.style.chart.tooltip.color,
1611
1622
  fontSize: B.value.style.chart.tooltip.fontSize,
@@ -1616,20 +1627,20 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1616
1627
  position: B.value.style.chart.tooltip.position,
1617
1628
  offsetX: B.value.style.chart.tooltip.offsetX,
1618
1629
  offsetY: B.value.style.chart.tooltip.offsetY,
1619
- parent: j.value,
1620
- content: an.value,
1621
- isCustom: on.value,
1622
- isFullscreen: I.value,
1630
+ parent: A.value,
1631
+ content: Qt.value,
1632
+ isCustom: I.value,
1633
+ isFullscreen: $t.value,
1623
1634
  smooth: B.value.style.chart.tooltip.smooth,
1624
1635
  backdropFilter: B.value.style.chart.tooltip.backdropFilter,
1625
1636
  smoothForce: B.value.style.chart.tooltip.smoothForce,
1626
1637
  smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
1627
- isA11yMode: vn.value === "keyboard",
1628
- a11yPosition: _n.value
1638
+ isA11yMode: dn.value === "keyboard",
1639
+ a11yPosition: un.value
1629
1640
  }, {
1630
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Cr.value })), void 0, !0)]),
1631
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Cr.value })), void 0, !0)]),
1632
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...Cr.value })), void 0, !0)]),
1641
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...gr.value })), void 0, !0)]),
1642
+ tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...gr.value })), void 0, !0)]),
1643
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...gr.value })), void 0, !0)]),
1633
1644
  _: 3
1634
1645
  }, 8, [
1635
1646
  "teleportTo",
@@ -1655,30 +1666,30 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1655
1666
  "isA11yMode",
1656
1667
  "a11yPosition"
1657
1668
  ]),
1658
- bn.value && B.value.userOptions.buttons.table ? (C(), m(Ve(Pr.value.component), Le({ key: 8 }, Pr.value.props, {
1669
+ pn.value && B.value.userOptions.buttons.table ? (S(), p(Ue(Dr.value.component), ze({ key: 8 }, Dr.value.props, {
1659
1670
  ref_key: "tableUnit",
1660
- ref: ln,
1661
- onClose: Fr
1662
- }), Pe({
1663
- content: k(() => [(C(), m(O(Ht), {
1664
- key: `table_${en.value}`,
1671
+ ref: L,
1672
+ onClose: Or
1673
+ }), Ie({
1674
+ content: O(() => [(S(), p(D(It), {
1675
+ key: `table_${Jt.value}`,
1665
1676
  colNames: $.value.colNames,
1666
1677
  head: $.value.head,
1667
1678
  body: $.value.body,
1668
1679
  config: $.value.config,
1669
- title: B.value.table.useDialog ? "" : Pr.value.title,
1680
+ title: B.value.table.useDialog ? "" : Dr.value.title,
1670
1681
  withCloseButton: !B.value.table.useDialog,
1671
1682
  isCursorPointer: V.value,
1672
- onClose: Fr
1683
+ onClose: Or
1673
1684
  }, {
1674
- th: k(({ th: e }) => [_("div", {
1685
+ th: O(({ th: e }) => [g("div", {
1675
1686
  innerHTML: e,
1676
1687
  style: {
1677
1688
  display: "flex",
1678
1689
  "align-items": "center"
1679
1690
  }
1680
- }, null, 8, Rt)]),
1681
- td: k(({ td: e }) => [Fe(D(e.name || e), 1)]),
1691
+ }, null, 8, Mt)]),
1692
+ td: O(({ td: e }) => [Le(E(e.name || e), 1)]),
1682
1693
  _: 1
1683
1694
  }, 8, [
1684
1695
  "colNames",
@@ -1692,24 +1703,24 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1692
1703
  _: 2
1693
1704
  }, [B.value.table.useDialog ? {
1694
1705
  name: "title",
1695
- fn: k(() => [Fe(D(Pr.value.title), 1)]),
1706
+ fn: O(() => [Le(E(Dr.value.title), 1)]),
1696
1707
  key: "0"
1697
1708
  } : void 0, B.value.table.useDialog ? {
1698
1709
  name: "actions",
1699
- fn: k(() => [_("button", {
1710
+ fn: O(() => [g("button", {
1700
1711
  tabindex: "0",
1701
1712
  class: "vue-ui-user-options-button",
1702
- onClick: t[1] ||= (e) => Dr(B.value.userOptions.callbacks.csv),
1703
- style: S({ cursor: V.value ? "pointer" : "default" })
1704
- }, [Ie(O(Bt), {
1713
+ onClick: t[1] ||= (e) => br(B.value.userOptions.callbacks.csv),
1714
+ style: x({ cursor: V.value ? "pointer" : "default" })
1715
+ }, [Re(D(Pt), {
1705
1716
  name: "fileCsv",
1706
- stroke: Pr.value.props.color
1717
+ stroke: Dr.value.props.color
1707
1718
  }, null, 8, ["stroke"])], 4)]),
1708
1719
  key: "1"
1709
- } : void 0]), 1040)) : h("", !0),
1710
- E(e.$slots, "skeleton", {}, () => [O(En) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
1711
- ], 46, qe));
1720
+ } : void 0]), 1040)) : m("", !0),
1721
+ T(e.$slots, "skeleton", {}, () => [D(yn) ? (S(), p(ve, { key: 0 })) : m("", !0)], !0)
1722
+ ], 46, Ye));
1712
1723
  }
1713
- }, [["__scopeId", "data-v-76063362"]]);
1724
+ }, [["__scopeId", "data-v-9751197b"]]);
1714
1725
  //#endregion
1715
- export { Ke as n, zt as t };
1726
+ export { Je as n, Nt as t };