vue-data-ui 3.25.8 → 3.25.9

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