vue-data-ui 3.22.6 → 3.22.7

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