vue-data-ui 3.23.10 → 3.23.12

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