vue-data-ui 3.23.0 → 3.23.2

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