vue-data-ui 3.22.4 → 3.22.5

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 (132) hide show
  1. package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-CqE8ssFu.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-digits.js +1 -1
  15. package/dist/components/vue-ui-donut-evolution.js +1 -1
  16. package/dist/components/vue-ui-donut.js +1 -1
  17. package/dist/components/vue-ui-dumbbell.js +1 -1
  18. package/dist/components/vue-ui-flow.js +1 -1
  19. package/dist/components/vue-ui-funnel.js +1 -1
  20. package/dist/components/vue-ui-galaxy.js +1 -1
  21. package/dist/components/vue-ui-gauge.js +1 -1
  22. package/dist/components/vue-ui-geo.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-molecule.js +1 -1
  29. package/dist/components/vue-ui-mood-radar.js +1 -1
  30. package/dist/components/vue-ui-nested-donuts.js +1 -1
  31. package/dist/components/vue-ui-onion.js +1 -1
  32. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  33. package/dist/components/vue-ui-quadrant.js +1 -1
  34. package/dist/components/vue-ui-quick-chart.js +1 -1
  35. package/dist/components/vue-ui-radar.js +1 -1
  36. package/dist/components/vue-ui-relation-circle.js +1 -1
  37. package/dist/components/vue-ui-ridgeline.js +1 -1
  38. package/dist/components/vue-ui-rings.js +1 -1
  39. package/dist/components/vue-ui-scatter.js +1 -1
  40. package/dist/components/vue-ui-skeleton.js +1 -1
  41. package/dist/components/vue-ui-spark-trend.js +1 -1
  42. package/dist/components/vue-ui-sparkbar.js +1 -1
  43. package/dist/components/vue-ui-sparkgauge.js +1 -1
  44. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  45. package/dist/components/vue-ui-sparkline.js +1 -1
  46. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  47. package/dist/components/vue-ui-stackbar.js +1 -1
  48. package/dist/components/vue-ui-stackline.js +1 -1
  49. package/dist/components/vue-ui-strip-plot.js +1 -1
  50. package/dist/components/vue-ui-table-sparkline.js +1 -1
  51. package/dist/components/vue-ui-table.js +1 -1
  52. package/dist/components/vue-ui-thermometer.js +1 -1
  53. package/dist/components/vue-ui-timer.js +1 -1
  54. package/dist/components/vue-ui-tiremarks.js +1 -1
  55. package/dist/components/vue-ui-treemap.js +1 -1
  56. package/dist/components/vue-ui-vertical-bar.js +1 -1
  57. package/dist/components/vue-ui-waffle.js +1 -1
  58. package/dist/components/vue-ui-wheel.js +1 -1
  59. package/dist/components/vue-ui-word-cloud.js +1 -1
  60. package/dist/components/vue-ui-world.js +1 -1
  61. package/dist/components/vue-ui-xy.js +1 -1
  62. package/dist/{package-CRlwXCDr.js → package-YOcaZtwF.js} +1 -1
  63. package/dist/{render-common-D6ny-Fwu.js → render-common-B80rr2N_.js} +1 -1
  64. package/dist/ssr/vue-ui-donut.js +1 -1
  65. package/dist/ssr/vue-ui-xy.js +1 -1
  66. package/dist/ssr.js +2 -2
  67. package/dist/style.css +1 -1
  68. package/dist/types/vue-data-ui.d.ts +1 -0
  69. package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-mqURXOql.js} +60 -60
  70. package/dist/vue-data-ui.js +60 -60
  71. package/dist/{vue-ui-3d-bar-DBpSRV-C.js → vue-ui-3d-bar-BZ1Slxfu.js} +1 -1
  72. package/dist/{vue-ui-age-pyramid-e09oK-Fp.js → vue-ui-age-pyramid-uUVFZo8M.js} +1 -1
  73. package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-RGCGF_cO.js} +1 -1
  74. package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-CiUmHi6k.js} +1 -1
  75. package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-BJUk5fMm.js} +1 -1
  76. package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BksIDurC.js} +1 -1
  77. package/dist/{vue-ui-chestnut-CnEsjvh4.js → vue-ui-chestnut-B3OHA5rg.js} +1 -1
  78. package/dist/{vue-ui-chord-BZhXsZXp.js → vue-ui-chord-DETV2viY.js} +1 -1
  79. package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-DddaioRm.js} +1 -1
  80. package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-D2-hWt_G.js} +1 -1
  81. package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Dp7pV6Ps.js} +1 -1
  82. package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-D91C5cXo.js} +57 -57
  83. package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-CMA3U4ZS.js} +1 -1
  84. package/dist/{vue-ui-donut-C4FcvXm3.js → vue-ui-donut-DObpw5zP.js} +1 -1
  85. package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DpiS28CQ.js} +1 -1
  86. package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-2B61hvv2.js} +1 -1
  87. package/dist/{vue-ui-dumbbell-Cykw4WYn.js → vue-ui-dumbbell-Cmr65TNE.js} +1 -1
  88. package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-7Yfsu6AY.js} +1 -1
  89. package/dist/{vue-ui-funnel-Ct5xQdak.js → vue-ui-funnel-BLRBDW1a.js} +1 -1
  90. package/dist/{vue-ui-galaxy-B5BkdIt5.js → vue-ui-galaxy-B9cxOcoE.js} +1 -1
  91. package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-yo4G5HMt.js} +1 -1
  92. package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-BOHI6oMZ.js} +1 -1
  93. package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-DI-35oK-.js} +1 -1
  94. package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-DBVM90VE.js} +1 -1
  95. package/dist/{vue-ui-history-plot-DCeroetw.js → vue-ui-history-plot-BiWpOHKE.js} +601 -586
  96. package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-XBrvSxtJ.js} +1 -1
  97. package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-55wwhSBh.js} +1 -1
  98. package/dist/{vue-ui-molecule-2pfoR63d.js → vue-ui-molecule-DB3rmTw1.js} +1 -1
  99. package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-izcbwGOc.js} +1 -1
  100. package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-DRJ1QT2n.js} +1 -1
  101. package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-xTZOmmtb.js} +1 -1
  102. package/dist/{vue-ui-parallel-coordinate-plot-BY6dptUG.js → vue-ui-parallel-coordinate-plot-BxQ7D2_o.js} +1 -1
  103. package/dist/{vue-ui-quadrant-Br_iZmcw.js → vue-ui-quadrant-BvAmtyAE.js} +1 -1
  104. package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-CJ1xQgYc.js} +1 -1
  105. package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-C26C6p7e.js} +1 -1
  106. package/dist/{vue-ui-relation-circle-BVDIikGi.js → vue-ui-relation-circle-Dl1aWFAI.js} +1 -1
  107. package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-BbJa5C-d.js} +1 -1
  108. package/dist/{vue-ui-rings-BDJyoWvT.js → vue-ui-rings-CyrvskTi.js} +1 -1
  109. package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-D9Iw5xlb.js} +1 -1
  110. package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-C4D0i9ho.js} +1 -1
  111. package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-CMb7UI2t.js} +1 -1
  112. package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-DEawjWhg.js} +1 -1
  113. package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-mubHGQF_.js} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-D8N-jNBt.js} +1 -1
  115. package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-D4p0PS3-.js} +1 -1
  116. package/dist/{vue-ui-sparkstackbar-1WUQrqd7.js → vue-ui-sparkstackbar-DnrZkIIc.js} +1 -1
  117. package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-BzHSHKqe.js} +1 -1
  118. package/dist/{vue-ui-stackline-IRjugedp.js → vue-ui-stackline-CWSvsW1n.js} +1 -1
  119. package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-pPiVqFYo.js} +1 -1
  120. package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-BzqQKuL-.js} +2 -2
  121. package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BnavmY2R.js} +1 -1
  122. package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-ePIxpTuE.js} +1 -1
  123. package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-BQZxD91f.js} +1 -1
  124. package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-CDOlCWS8.js} +1 -1
  125. package/dist/{vue-ui-treemap-CLOlWiDE.js → vue-ui-treemap-DrZlX_7n.js} +1 -1
  126. package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-BpZrFfUb.js} +1 -1
  127. package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRfyK9q9.js} +1 -1
  128. package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-D0JUA9I9.js} +1 -1
  129. package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-Dx-41fUM.js} +1 -1
  130. package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-BLSGO4Lm.js} +1 -1
  131. package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DpRqQ09J.js} +1 -1
  132. package/package.json +1 -1
@@ -179,88 +179,88 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
179
179
  "copyAlt"
180
180
  ],
181
181
  setup(e, { expose: we, emit: Ke }) {
182
- let zt = v(() => import("./Tooltip-BhKov422.js")), Bt = v(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Vt = v(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Ht = v(() => import("./DataTable-PidUPOit.js")), Ut = v(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Wt = v(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Gt = v(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Kt = v(() => import("./BaseDraggableDialog-DjzNWkiE.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), R = w(!1), on = w(null), sn = w(!1), cn = w(null), ln = w(null), un = w(!1), dn = w(!1), fn = w(null), pn = w(null), mn = w(null), hn = w(null), z = w(null), B = w(null), gn = w({
182
+ let zt = v(() => import("./Tooltip-BhKov422.js")), Bt = v(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Vt = v(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Ht = v(() => import("./DataTable-PidUPOit.js")), Ut = v(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Wt = v(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Gt = v(() => import("./PackageVersion-CqE8ssFu.js").then((e) => e.t)), Kt = v(() => import("./BaseDraggableDialog-DjzNWkiE.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
183
  x: 0,
184
184
  y: 0
185
- }), _n = w("pointer"), vn = w(!1), yn = p({
185
+ }), vn = w("pointer"), yn = w(!1), bn = p({
186
186
  get: () => !!A.dataset && A.dataset.length,
187
187
  set: (e) => e
188
- }), bn = Ke;
188
+ }), xn = Ke;
189
189
  Be(() => {
190
- sn.value = !0, Sn();
190
+ cn.value = !0, Cn();
191
191
  });
192
- let xn = p(() => !!V.value.debug);
193
- function Sn() {
192
+ let Sn = p(() => !!B.value.debug);
193
+ function Cn() {
194
194
  if (s(A.dataset) ? (c({
195
195
  componentName: "VueUiHistoryPlot",
196
196
  type: "dataset",
197
- debug: xn.value
198
- }), Dn.value = !0) : A.dataset.forEach((e, t) => {
197
+ debug: Sn.value
198
+ }), On.value = !0) : A.dataset.forEach((e, t) => {
199
199
  de({
200
200
  datasetObject: e,
201
201
  requiredAttributes: ["name", "values"]
202
202
  }).forEach((e) => {
203
- yn.value = !1, c({
203
+ bn.value = !1, c({
204
204
  componentName: "VueUiHistoryPlot",
205
205
  type: "datasetSerieAttribute",
206
206
  property: e,
207
207
  index: t,
208
- debug: xn.value
208
+ debug: Sn.value
209
209
  });
210
210
  });
211
- }), s(A.dataset) || (Dn.value = V.value.loading), V.value.responsive) {
211
+ }), s(A.dataset) || (On.value = B.value.loading), B.value.responsive) {
212
212
  let e = Te(() => {
213
213
  let { width: e, height: t } = Ee({
214
214
  chart: j.value,
215
- title: V.value.style.chart.title.text ? Xt.value : null,
215
+ title: B.value.style.chart.title.text ? Xt.value : null,
216
216
  noTitle: nn.value,
217
- legend: V.value.style.chart.legend.show ? Qt.value : null,
218
- source: on.value
217
+ legend: B.value.style.chart.legend.show ? Qt.value : null,
218
+ source: sn.value
219
219
  });
220
220
  requestAnimationFrame(() => {
221
- G.value.width = e, G.value.height = t, V.value.responsiveProportionalSizing ? (q.value.plots = l({
221
+ W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = l({
222
222
  relator: Math.min(e, t),
223
223
  adjuster: 600,
224
- source: V.value.style.chart.plots.radius,
224
+ source: B.value.style.chart.plots.radius,
225
225
  threshold: 3,
226
226
  fallback: 3
227
- }), q.value.indexLabels = l({
227
+ }), K.value.indexLabels = l({
228
228
  relator: Math.min(e, t),
229
229
  adjuster: 600,
230
- source: V.value.style.chart.plots.indexLabels.fontSize,
230
+ source: B.value.style.chart.plots.indexLabels.fontSize,
231
231
  threshold: 6,
232
232
  fallback: 6
233
- }), q.value.labels = l({
233
+ }), K.value.labels = l({
234
234
  relator: Math.min(e, t),
235
235
  adjuster: 600,
236
- source: V.value.style.chart.plots.labels.fontSize,
236
+ source: B.value.style.chart.plots.labels.fontSize,
237
237
  threshold: 6,
238
238
  fallback: 6
239
- }), q.value.xAxisLabels = l({
239
+ }), K.value.xAxisLabels = l({
240
240
  relator: Math.min(e, t),
241
241
  adjuster: 600,
242
- source: V.value.style.chart.axes.x.labels.fontSize,
242
+ source: B.value.style.chart.axes.x.labels.fontSize,
243
243
  threshold: 6,
244
244
  fallback: 6
245
- }), q.value.xAxisName = l({
245
+ }), K.value.xAxisName = l({
246
246
  relator: Math.min(e, t),
247
247
  adjuster: 600,
248
- source: V.value.style.chart.axes.x.name.fontSize,
248
+ source: B.value.style.chart.axes.x.name.fontSize,
249
249
  threshold: 6,
250
250
  fallback: 6
251
- }), q.value.yAxisLabels = l({
251
+ }), K.value.yAxisLabels = l({
252
252
  relator: Math.min(e, t),
253
253
  adjuster: 600,
254
- source: V.value.style.chart.axes.y.labels.fontSize,
254
+ source: B.value.style.chart.axes.y.labels.fontSize,
255
255
  threshold: 6,
256
256
  fallback: 6
257
- }), q.value.yAxisName = l({
257
+ }), K.value.yAxisName = l({
258
258
  relator: Math.min(e, t),
259
259
  adjuster: 600,
260
- source: V.value.style.chart.axes.y.name.fontSize,
260
+ source: B.value.style.chart.axes.y.name.fontSize,
261
261
  threshold: 6,
262
262
  fallback: 6
263
- })) : (q.value.plots = V.value.style.chart.plots.radius, q.value.indexLabels = V.value.style.chart.plots.indexLabels.fontSize, q.value.labels = V.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = V.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = V.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = V.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = V.value.style.chart.axes.y.name.fontSize);
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
264
  });
265
265
  });
266
266
  M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = j.value.parentNode, M.value.observe(N.value);
@@ -269,7 +269,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
269
269
  ze(() => {
270
270
  M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
271
271
  });
272
- function Cn() {
272
+ function wn() {
273
273
  let e = ye({
274
274
  userConfig: A.config,
275
275
  defaultConfig: qt
@@ -291,7 +291,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
291
291
  else t = e;
292
292
  return t;
293
293
  }
294
- let V = w(Cn()), H = p(() => V.value.userOptions.useCursorPointer), wn = p(() => n({
294
+ let B = w(wn()), V = p(() => B.value.userOptions.useCursorPointer), Tn = p(() => n({
295
295
  defaultConfig: {
296
296
  userOptions: { show: !1 },
297
297
  table: { show: !1 },
@@ -329,11 +329,11 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
329
329
  }
330
330
  } }
331
331
  },
332
- userConfig: V.value.skeletonConfig ?? {}
333
- })), { loading: Tn, FINAL_DATASET: En, manualLoading: Dn } = ge({
332
+ userConfig: B.value.skeletonConfig ?? {}
333
+ })), { loading: En, FINAL_DATASET: Dn, manualLoading: On } = ge({
334
334
  ...Ue(A),
335
- FINAL_CONFIG: V,
336
- prepareConfig: Cn,
335
+ FINAL_CONFIG: B,
336
+ prepareConfig: wn,
337
337
  skeletonDataset: A.config?.skeletonDataset ?? [{
338
338
  name: "",
339
339
  color: "#CACACA",
@@ -361,131 +361,132 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
361
361
  ]
362
362
  }],
363
363
  skeletonConfig: n({
364
- defaultConfig: V.value,
365
- userConfig: wn.value
364
+ defaultConfig: B.value,
365
+ userConfig: Tn.value
366
366
  })
367
- }), { userOptionsVisible: On, setUserOptionsVisibility: kn, keepUserOptionState: An } = ke({ config: V.value }), { svgRef: U } = Ae({ config: V.value.style.chart.title });
367
+ }), { userOptionsVisible: kn, setUserOptionsVisibility: An, keepUserOptionState: jn } = ke({ config: B.value }), { svgRef: H } = Ae({ config: B.value.style.chart.title });
368
368
  We(() => A.config, (e) => {
369
- Tn.value || (V.value = Cn()), On.value = !V.value.userOptions.showOnChartHover, Sn(), Zt.value += 1, en.value += 1, $t.value += 1, G.value.height = V.value.style.chart.height, G.value.width = V.value.style.chart.width, q.value.plots = V.value.style.chart.plots.radius, q.value.indexLabels = V.value.style.chart.plots.indexLabels.fontSize, q.value.labels = V.value.style.chart.plots.labels.fontSize, q.value.xAxisLabels = V.value.style.chart.axes.x.labels.fontSize, q.value.xAxisName = V.value.style.chart.axes.x.name.fontSize, q.value.yAxisLabels = V.value.style.chart.axes.y.labels.fontSize, q.value.yAxisName = V.value.style.chart.axes.y.name.fontSize, W.value.showTable = V.value.table.show, W.value.showTooltip = V.value.style.chart.tooltip.show;
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
370
  }, { deep: !0 }), We(() => A.dataset, (e) => {
371
- Array.isArray(e) && e.length > 0 && (Dn.value = !1);
371
+ Array.isArray(e) && e.length > 0 && (On.value = !1);
372
372
  }, { deep: !0 });
373
- let { isPrinting: jn, isImaging: Mn, generatePdf: Nn, generateImage: Pn } = he({
373
+ let { isPrinting: Mn, isImaging: Nn, generatePdf: Pn, generateImage: Fn } = he({
374
374
  elementId: `history_plot_${P.value}`,
375
- fileName: V.value.style.chart.title.text || "vue-ui-history-plot",
376
- options: V.value.userOptions.print
377
- }), Fn = p(() => V.value.userOptions.show && !V.value.style.chart.title.text), In = p(() => ee(V.value.customPalette)), W = w({
378
- showTable: V.value.table.show,
379
- showTooltip: V.value.style.chart.tooltip.show
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
380
  });
381
- We(V, () => {
382
- W.value = {
383
- showTable: V.value.table.show,
384
- showTooltip: V.value.style.chart.tooltip.show
381
+ We(B, () => {
382
+ U.value = {
383
+ showTable: B.value.table.show,
384
+ showTooltip: B.value.style.chart.tooltip.show
385
385
  };
386
386
  }, { immediate: !0 });
387
- let G = w({
388
- height: V.value.style.chart.height,
389
- width: V.value.style.chart.width
390
- }), Ln = p(() => G.value.width), Rn = p(() => G.value.height);
391
- function zn() {
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
392
  let e = 0;
393
- hn.value && (e = Array.from(hn.value.querySelectorAll("text")).reduce((e, t) => {
393
+ gn.value && (e = Array.from(gn.value.querySelectorAll("text")).reduce((e, t) => {
394
394
  let n = t.getComputedTextLength();
395
395
  return n > e ? n : e;
396
396
  }, 0));
397
- let t = pn.value ? pn.value.getBoundingClientRect().width : 0;
397
+ let t = mn.value ? mn.value.getBoundingClientRect().width : 0;
398
398
  return e + t + (t ? 24 : 0);
399
399
  }
400
- let Bn = w(0), Vn = Te((e) => {
401
- Bn.value = e;
400
+ let Vn = w(0), Hn = Te((e) => {
401
+ Vn.value = e;
402
402
  });
403
403
  Ge((e) => {
404
- let t = mn.value;
404
+ let t = hn.value;
405
405
  if (!t) return;
406
406
  let n = new ResizeObserver((e) => {
407
- Vn(e[0].contentRect.height);
407
+ Hn(e[0].contentRect.height);
408
408
  });
409
409
  n.observe(t), e(() => n.disconnect());
410
410
  });
411
- let Hn = p(() => {
411
+ let Un = p(() => {
412
412
  let e = 0;
413
- fn.value && (e = fn.value.getBBox().height + q.value.xAxisName / 2);
413
+ pn.value && (e = pn.value.getBBox().height + K.value.xAxisName / 2);
414
414
  let t = 0;
415
- return mn.value && (t = Bn.value), e + t;
416
- }), K = p(() => {
417
- let e = V.value.style.chart.padding.left, t = V.value.style.chart.padding.top, n = zn(), r = V.value.style.chart.plots.radius;
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
418
  return {
419
- left: e + n + V.value.style.chart.axes.y.name.offsetX,
419
+ left: e + n + B.value.style.chart.axes.y.name.offsetX,
420
420
  top: t + r,
421
- right: G.value.width - V.value.style.chart.padding.right - r - V.value.style.chart.axes.y.name.offsetX,
422
- bottom: G.value.height - V.value.style.chart.padding.bottom - Hn.value - r - V.value.style.chart.axes.x.name.offsetY,
423
- width: G.value.width - e - V.value.style.chart.padding.right - n - r - V.value.style.chart.axes.y.name.offsetX,
424
- height: G.value.height - t - V.value.style.chart.padding.bottom - Hn.value - r * 2 - V.value.style.chart.axes.x.name.offsetY
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
425
  };
426
- }), q = w({
427
- plots: V.value.style.chart.plots.radius,
428
- indexLabels: V.value.style.chart.plots.indexLabels.fontSize,
429
- labels: V.value.style.chart.plots.labels.fontSize,
430
- xAxisLabels: V.value.style.chart.axes.x.labels.fontSize,
431
- xAxisName: V.value.style.chart.axes.x.name.fontSize,
432
- yAxisLabels: V.value.style.chart.axes.y.labels.fontSize,
433
- yAxisName: V.value.style.chart.axes.y.name.fontSize
434
- }), J = p(() => En.value.map((e, t) => {
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
435
  let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => oe(e)) : void 0;
436
436
  return {
437
437
  ...e,
438
- color: e.color ? oe(e.color) : In.value[t] || ce[t] || ce[t % ce.length],
438
+ color: e.color ? oe(e.color) : Ln.value[t] || ce[t] || ce[t % ce.length],
439
439
  temperatureColors: n,
440
- temperatureAngle: Un(e.temperatureAngle),
440
+ temperatureAngle: Wn(e.temperatureAngle),
441
+ temperatureIndependant: e.temperatureIndependant === !0,
441
442
  usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
442
443
  seriesIndex: t
443
444
  };
444
445
  }));
445
- function Un(e = 0) {
446
+ function Wn(e = 0) {
446
447
  let t = Number(e);
447
448
  return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
448
449
  }
449
- let Wn = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Gn = p(() => {
450
- let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
450
+ let Gn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Kn = p(() => {
451
+ let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
451
452
  return e < 0 ? e : 0;
452
- }), Kn = p(() => Math.max(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), qn = p(() => {
453
- let e = Math.min(...J.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
453
+ }), qn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Jn = p(() => {
454
+ let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
454
455
  return e < 0 ? e : 0;
455
- }), Y = p(() => {
456
- let e = se(V.value.style.chart.axes.x.scaleMin ?? Gn.value, V.value.style.chart.axes.x.scaleMax ?? Wn.value, V.value.style.chart.axes.x.ticks), t = se(V.value.style.chart.axes.y.scaleMin ?? qn.value, V.value.style.chart.axes.y.scaleMax ?? Kn.value, V.value.style.chart.axes.y.ticks);
456
+ }), J = p(() => {
457
+ let e = se(B.value.style.chart.axes.x.scaleMin ?? Kn.value, B.value.style.chart.axes.x.scaleMax ?? Gn.value, B.value.style.chart.axes.x.ticks), t = se(B.value.style.chart.axes.y.scaleMin ?? Jn.value, B.value.style.chart.axes.y.scaleMax ?? qn.value, B.value.style.chart.axes.y.ticks);
457
458
  return {
458
459
  x: e,
459
460
  y: t,
460
461
  tickX: e.ticks.map((t) => ({
461
- x: K.value.left + (t - e.min) / (e.max - e.min) * K.value.width,
462
- y1: K.value.top,
463
- y2: K.value.bottom,
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,
464
465
  value: t
465
466
  })),
466
467
  tickY: t.ticks.map((e) => ({
467
- y: K.value.bottom - (e - t.min) / (t.max - t.min) * K.value.height,
468
- x1: K.value.left,
469
- x2: K.value.right,
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,
470
471
  value: e
471
472
  }))
472
473
  };
473
474
  });
474
- function Jn(e) {
475
- let t = Y.value.x.min < 0 ? Math.abs(Y.value.x.min) : Y.value.x.min > 0 ? -Y.value.x.min : 0;
476
- return K.value.left + ((e || 0) + t) / (Y.value.x.max + t) * K.value.width;
477
- }
478
475
  function Yn(e) {
479
- let t = Y.value.y.min < 0 ? Math.abs(Y.value.y.min) : Y.value.y.min > 0 ? -Y.value.y.min : 0;
480
- return K.value.bottom - ((e || 0) + t) / (Y.value.y.max + t) * K.value.height;
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;
481
482
  }
482
- let X = p(() => J.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, n) => {
483
+ let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, n) => {
483
484
  let r = e.values.map((t, n) => ({
484
485
  valueX: t.x,
485
486
  valueY: t.y,
486
487
  label: t.label,
487
- x: Jn(t.x),
488
- y: Yn(t.y),
488
+ x: Yn(t.x),
489
+ y: Xn(t.y),
489
490
  color: e.color,
490
491
  seriesName: e.name,
491
492
  id: re()
@@ -496,22 +497,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
496
497
  plots: r,
497
498
  path: `M${i}`
498
499
  };
499
- })), Xn = p(() => {
500
- if (L.value === null || z.value === null) return X.value;
501
- let e = X.value.findIndex((e) => e.seriesIndex === z.value);
502
- if (e === -1) return X.value;
503
- let t = X.value[e];
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];
504
505
  return [
505
- ...X.value.slice(0, e),
506
- ...X.value.slice(e + 1),
506
+ ...Y.value.slice(0, e),
507
+ ...Y.value.slice(e + 1),
507
508
  t
508
509
  ];
509
- }), Zn = p(() => X.value.some((e) => Qn(e)));
510
- function Qn(e) {
510
+ }), Qn = p(() => Y.value.some((e) => X(e)));
511
+ function X(e) {
511
512
  return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
512
513
  }
513
514
  function $n(e) {
514
- return Qn(e) && e.usePlotTemperatureColors;
515
+ return X(e) && e.usePlotTemperatureColors;
515
516
  }
516
517
  function er(e) {
517
518
  let t = Array.isArray(e?.plots) ? e.plots : [];
@@ -533,8 +534,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
533
534
  height: s - o
534
535
  };
535
536
  }
536
- function tr(e) {
537
- let t = Un(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = er(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;
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;
538
553
  return {
539
554
  x1: a - n * s,
540
555
  y1: o - r * s,
@@ -542,8 +557,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
542
557
  y2: o + r * s
543
558
  };
544
559
  }
545
- function nr(e, t) {
546
- let { x1: n, y1: r, x2: i, y2: a } = tr(e), o = i - n, s = a - r, c = o * o + s * s;
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;
547
562
  if (!c) return 0;
548
563
  let ee = ((t.x - n) * o + (t.y - r) * s) / c;
549
564
  return Math.min(1, Math.max(0, ee));
@@ -551,247 +566,247 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
551
566
  function Z(e, t) {
552
567
  return ae({
553
568
  colors: e.temperatureColors,
554
- ratio: nr(e, t)
569
+ ratio: ir(e, t)
555
570
  });
556
571
  }
557
- function rr(e, t) {
572
+ function ar(e, t) {
558
573
  return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
559
574
  }
560
- function ir(e, t, n) {
561
- return $n(e) ? V.value.style.chart.plots.gradient.show ? `url(#${rr(e, t)})` : Z(e, t) : V.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
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;
562
577
  }
563
- function ar(e, t) {
578
+ function sr(e, t) {
564
579
  return $n(e) ? Z(e, t) : e.color;
565
580
  }
566
- function or(e, t) {
567
- return V.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(ar(e, t)) : V.value.style.chart.plots.indexLabels.color;
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;
568
583
  }
569
- function sr(e, t) {
570
- let n = X.value.find((t) => t.seriesIndex === e);
584
+ function lr(e, t) {
585
+ let n = Y.value.find((t) => t.seriesIndex === e);
571
586
  return n && $n(n) ? Z(n, t) : t.color;
572
587
  }
573
- function cr(e) {
574
- return Qn(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : V.value.style.chart.paths.useSerieColor ? e.color : V.value.style.chart.paths.stroke;
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;
575
590
  }
576
- function lr(e) {
577
- return L.value === null || z.value === e ? 1 : Math.min(1, V.value.style.chart.plots.unselectedOpacity);
591
+ function dr(e) {
592
+ return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
578
593
  }
579
- p(() => L.value !== null && z.value !== null);
580
- let ur = w(!1);
594
+ p(() => L.value !== null && R.value !== null);
595
+ let fr = w(!1);
581
596
  function Q() {
582
- return V.value.useCssAnimation && !Tn.value && !ur.value;
597
+ return B.value.useCssAnimation && !En.value && !fr.value;
583
598
  }
584
- function dr() {
599
+ function pr() {
585
600
  return "opacity 0.2s ease-in-out";
586
601
  }
587
- function fr() {
588
- F.value.length ? F.value = [] : _r.value.forEach((e) => {
602
+ function mr() {
603
+ F.value.length ? F.value = [] : yr.value.forEach((e) => {
589
604
  F.value.push(e.seriesIndex);
590
- }), bn("selectLegend", X.value);
591
- }
592
- function pr(e) {
593
- F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), bn("selectLegend", X.value);
594
- }
595
- function mr(e) {
596
- return J.value.length ? J.value.find((t) => t.name === e) || (V.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (V.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
605
+ }), xn("selectLegend", Y.value);
597
606
  }
598
607
  function hr(e) {
599
- let t = mr(e);
600
- t !== null && F.value.includes(t.seriesIndex) && pr(t.seriesIndex);
608
+ F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), xn("selectLegend", Y.value);
601
609
  }
602
610
  function gr(e) {
603
- let t = mr(e);
604
- t !== null && (F.value.includes(t.seriesIndex) || pr(t.seriesIndex));
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);
605
616
  }
606
- let _r = p(() => J.value.map((e) => {
607
- let t = Qn(e) ? e.temperatureColors : null;
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;
608
623
  return {
609
624
  ...e,
610
625
  gradientColors: t,
611
626
  opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
612
- segregate: () => pr(e.seriesIndex),
627
+ segregate: () => hr(e.seriesIndex),
613
628
  isSegregated: F.value.includes(e.seriesIndex),
614
629
  shape: t ? "gradient" : "circle"
615
630
  };
616
- })), vr = p(() => ({
631
+ })), br = p(() => ({
617
632
  cy: "history-plot-div-legend",
618
- backgroundColor: V.value.style.chart.legend.backgroundColor,
619
- color: V.value.style.chart.legend.color,
620
- fontSize: V.value.style.chart.legend.fontSize,
633
+ backgroundColor: B.value.style.chart.legend.backgroundColor,
634
+ color: B.value.style.chart.legend.color,
635
+ fontSize: B.value.style.chart.legend.fontSize,
621
636
  paddingBottom: 12,
622
- fontWeight: V.value.style.chart.legend.bold ? "bold" : ""
637
+ fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
623
638
  }));
624
- function yr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
625
- V.value.events.datapointClick && V.value.events.datapointClick({
639
+ function xr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
640
+ B.value.events.datapointClick && B.value.events.datapointClick({
626
641
  datapoint: {
627
642
  ...e,
628
643
  plotIndex: t,
629
644
  seriesIndex: n
630
645
  },
631
646
  seriesIndex: n
632
- }), bn("selectDatapoint", e);
647
+ }), xn("selectDatapoint", e);
633
648
  }
634
- function br(e) {
649
+ function Sr(e) {
635
650
  I.value = e, tn.value += 1;
636
651
  }
637
- let xr = w(null);
638
- function Sr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
639
- V.value.events.datapointLeave && V.value.events.datapointLeave({
652
+ let Cr = w(null);
653
+ function wr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
654
+ B.value.events.datapointLeave && B.value.events.datapointLeave({
640
655
  datapoint: {
641
656
  ...e,
642
657
  plotIndex: t,
643
658
  seriesIndex: n
644
659
  },
645
660
  seriesIndex: n
646
- }), !(_n.value === "keyboard" && z.value === n && B.value === t) && (rn.value = !1, L.value = null);
661
+ }), !(vn.value === "keyboard" && R.value === n && z.value === t) && (rn.value = !1, L.value = null);
647
662
  }
648
- function Cr(e, t) {
649
- if (!U.value) return;
650
- let n = X.value.find((t) => t.seriesIndex === e);
663
+ function Tr(e, t) {
664
+ if (!H.value) return;
665
+ let n = Y.value.find((t) => t.seriesIndex === e);
651
666
  if (!n) return;
652
667
  let r = n.plots[t];
653
668
  if (!r) return;
654
- let a = i(r.x, r.y, U.value);
655
- a && (gn.value = a);
669
+ let a = i(r.x, r.y, H.value);
670
+ a && (_n.value = a);
656
671
  }
657
- function wr({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
658
- V.value.events.datapointEnter && V.value.events.datapointEnter({
672
+ function Er({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
673
+ B.value.events.datapointEnter && B.value.events.datapointEnter({
659
674
  datapoint: {
660
675
  ...e,
661
676
  plotIndex: t,
662
677
  seriesIndex: n
663
678
  },
664
679
  seriesIndex: n
665
- }), z.value = n, B.value = t, _n.value = r, ur.value = !0;
666
- let i = sr(n, e), a = {
680
+ }), R.value = n, z.value = t, vn.value = r, fr.value = !0;
681
+ let i = lr(n, e), a = {
667
682
  ...e,
668
683
  color: i
669
684
  };
670
- xr.value = {
685
+ Cr.value = {
671
686
  datapoint: a,
672
687
  color: i,
673
688
  seriesIndex: n,
674
689
  plotIndex: t,
675
- config: V.value,
676
- series: J.value
690
+ config: B.value,
691
+ series: q.value
677
692
  }, L.value = e;
678
- let o = V.value.style.chart.tooltip.customFormat;
679
- if (R.value = !1, fe(o)) try {
693
+ let o = B.value.style.chart.tooltip.customFormat;
694
+ if (on.value = !1, fe(o)) try {
680
695
  let e = o({
681
696
  seriesIndex: n,
682
697
  datapoint: a,
683
698
  color: i,
684
699
  plotIndex: t,
685
- series: J.value,
686
- config: V.value
700
+ series: q.value,
701
+ config: B.value
687
702
  });
688
- typeof e == "string" && (an.value = e, R.value = !0);
703
+ typeof e == "string" && (an.value = e, on.value = !0);
689
704
  } catch {
690
- console.warn("Custom format cannot be applied."), R.value = !1;
705
+ console.warn("Custom format cannot be applied."), on.value = !1;
691
706
  }
692
- if (!R.value) {
707
+ if (!on.value) {
693
708
  let t = "";
694
- t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${V.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${V.value.style.chart.axes.x.name.text || "x"}: ${u(V.value.style.chart.axes.x.labels.formatter, e.valueX, d({
695
- p: V.value.style.chart.axes.x.labels.prefix,
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,
696
711
  v: e.valueX,
697
- s: V.value.style.chart.axes.x.labels.suffix,
698
- r: V.value.style.chart.axes.x.labels.rounding
699
- }))}</div>`, t += `<div>${V.value.style.chart.axes.y.name.text || "y"}: ${u(V.value.style.chart.axes.y.labels.formatter, e.valueY, d({
700
- p: V.value.style.chart.axes.y.labels.prefix,
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,
701
716
  v: e.valueY,
702
- s: V.value.style.chart.axes.y.labels.suffix,
703
- r: V.value.style.chart.axes.y.labels.rounding
717
+ s: B.value.style.chart.axes.y.labels.suffix,
718
+ r: B.value.style.chart.axes.y.labels.rounding
704
719
  }))}</div>`, an.value = `<div>${t}</div>`;
705
720
  }
706
721
  rn.value = !0, r === "keyboard" && Re(() => {
707
- Cr(n, t);
722
+ Tr(n, t);
708
723
  });
709
724
  }
710
- p(() => ({ head: X.value.map((e) => ({
725
+ p(() => ({ head: Y.value.map((e) => ({
711
726
  name: e.name,
712
727
  color: e.color
713
728
  })) }));
714
729
  let $ = p(() => {
715
730
  let e = [
716
- V.value.table.columnNames.series,
717
- V.value.table.columnNames.datapoint,
718
- V.value.table.columnNames.x,
719
- V.value.table.columnNames.y
731
+ B.value.table.columnNames.series,
732
+ B.value.table.columnNames.datapoint,
733
+ B.value.table.columnNames.x,
734
+ B.value.table.columnNames.y
720
735
  ];
721
736
  return {
722
737
  head: e,
723
- body: X.value.flatMap((e) => e.plots.map((e) => [
738
+ body: Y.value.flatMap((e) => e.plots.map((e) => [
724
739
  {
725
740
  color: e.color,
726
741
  name: e.seriesName
727
742
  },
728
743
  e.label,
729
- u(V.value.style.chart.axes.x.labels.formatter, e.valueX, d({
730
- p: V.value.style.chart.axes.x.labels.prefix,
744
+ u(B.value.style.chart.axes.x.labels.formatter, e.valueX, d({
745
+ p: B.value.style.chart.axes.x.labels.prefix,
731
746
  v: e.valueX,
732
- s: V.value.style.chart.axes.x.labels.suffix,
733
- r: V.value.style.chart.axes.x.labels.rounding
747
+ s: B.value.style.chart.axes.x.labels.suffix,
748
+ r: B.value.style.chart.axes.x.labels.rounding
734
749
  })),
735
- u(V.value.style.chart.axes.y.labels.formatter, e.valueY, d({
736
- p: V.value.style.chart.axes.y.labels.prefix,
750
+ u(B.value.style.chart.axes.y.labels.formatter, e.valueY, d({
751
+ p: B.value.style.chart.axes.y.labels.prefix,
737
752
  v: e.valueY,
738
- s: V.value.style.chart.axes.y.labels.suffix,
739
- r: V.value.style.chart.axes.y.labels.rounding
753
+ s: B.value.style.chart.axes.y.labels.suffix,
754
+ r: B.value.style.chart.axes.y.labels.rounding
740
755
  }))
741
756
  ])),
742
757
  config: {
743
758
  th: {
744
- backgroundColor: V.value.table.th.backgroundColor,
745
- color: V.value.table.th.color,
746
- outline: V.value.table.th.outline
759
+ backgroundColor: B.value.table.th.backgroundColor,
760
+ color: B.value.table.th.color,
761
+ outline: B.value.table.th.outline
747
762
  },
748
763
  td: {
749
- backgroundColor: V.value.table.td.backgroundColor,
750
- color: V.value.table.td.color,
751
- outline: V.value.table.td.outline
764
+ backgroundColor: B.value.table.td.backgroundColor,
765
+ color: B.value.table.td.color,
766
+ outline: B.value.table.td.outline
752
767
  },
753
- breakpoint: V.value.table.responsiveBreakpoint
768
+ breakpoint: B.value.table.responsiveBreakpoint
754
769
  },
755
770
  colNames: e
756
771
  };
757
772
  });
758
- function Tr(e = null) {
773
+ function Dr(e = null) {
759
774
  Re(() => {
760
775
  let t = [
761
- [V.value.table.columnNames.series],
762
- [V.value.table.columnNames.datapoint],
763
- [V.value.table.columnNames.x],
764
- [V.value.table.columnNames.y]
765
- ], n = X.value.flatMap((e) => e.plots.map((e) => [
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) => [
766
781
  [e.seriesName],
767
782
  [e.label],
768
783
  [e.valueX],
769
784
  [e.valueY]
770
785
  ])), r = pe([
771
- [V.value.style.chart.title.text],
772
- [V.value.style.chart.title.subtitle.text],
786
+ [B.value.style.chart.title.text],
787
+ [B.value.style.chart.title.subtitle.text],
773
788
  t
774
789
  ].concat(n));
775
790
  e ? e(r) : ie({
776
791
  csvContent: r,
777
- title: V.value.style.chart.title.text || "vue-ui-history-plot"
792
+ title: B.value.style.chart.title.text || "vue-ui-history-plot"
778
793
  });
779
794
  });
780
795
  }
781
- let Er = w(!1);
782
- function Dr() {
783
- Er.value = !Er.value;
784
- }
785
- function Or() {
786
- W.value.showTable = !W.value.showTable;
787
- }
796
+ let Or = w(!1);
788
797
  function kr() {
789
- W.value.showTooltip = !W.value.showTooltip;
798
+ Or.value = !Or.value;
790
799
  }
791
800
  function Ar() {
792
- return X.value;
801
+ U.value.showTable = !U.value.showTable;
802
+ }
803
+ function jr() {
804
+ U.value.showTooltip = !U.value.showTooltip;
793
805
  }
794
- async function jr({ scale: e = 2 } = {}) {
806
+ function Mr() {
807
+ return Y.value;
808
+ }
809
+ async function Nr({ scale: e = 2 } = {}) {
795
810
  if (!j.value) return;
796
811
  let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
797
812
  domElement: j.value,
@@ -802,20 +817,20 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
802
817
  return {
803
818
  imageUri: i,
804
819
  base64: a,
805
- title: V.value.style.chart.title.text,
820
+ title: B.value.style.chart.title.text,
806
821
  width: t,
807
822
  height: n,
808
823
  aspectRatio: r
809
824
  };
810
825
  }
811
826
  xe({
812
- timeLabelsEls: mn,
813
- timeLabels: p(() => Y.value.tickX),
827
+ timeLabelsEls: hn,
828
+ timeLabels: p(() => J.value.tickX),
814
829
  slicer: p(() => ({
815
830
  start: 0,
816
- end: Y.value.tickX.length
831
+ end: J.value.tickX.length
817
832
  })),
818
- configRef: V,
833
+ configRef: B,
819
834
  rotationPath: [
820
835
  "style",
821
836
  "chart",
@@ -834,21 +849,21 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
834
849
  "enable"
835
850
  ],
836
851
  isAutoSize: !1,
837
- width: Ln,
838
- height: Rn,
852
+ width: Rn,
853
+ height: zn,
839
854
  targetClass: ".vue-ui-history-plot-x-axis-scale",
840
- rotation: V.value.style.chart.axes.x.labels.autoRotate.angle
855
+ rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
841
856
  });
842
- let Mr = p(() => {
843
- let e = V.value.table.useDialog && !V.value.table.show, t = W.value.showTable;
857
+ let Pr = p(() => {
858
+ let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
844
859
  return {
845
860
  component: e ? Kt : Vt,
846
- title: `${V.value.style.chart.title.text}${V.value.style.chart.title.subtitle.text ? `: ${V.value.style.chart.title.subtitle.text}` : ""}`,
861
+ title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
847
862
  props: e ? {
848
- backgroundColor: V.value.table.th.backgroundColor,
849
- color: V.value.table.th.color,
850
- headerColor: V.value.table.th.color,
851
- headerBg: V.value.table.th.backgroundColor,
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,
852
867
  isFullscreen: I.value,
853
868
  fullscreenParent: j.value,
854
869
  forcedWidth: Math.min(800, window.innerWidth * .8)
@@ -858,71 +873,71 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
858
873
  open: t,
859
874
  maxHeight: 1e4,
860
875
  body: {
861
- backgroundColor: V.value.style.chart.backgroundColor,
862
- color: V.value.style.chart.color
876
+ backgroundColor: B.value.style.chart.backgroundColor,
877
+ color: B.value.style.chart.color
863
878
  },
864
879
  head: {
865
- backgroundColor: V.value.style.chart.backgroundColor,
866
- color: V.value.style.chart.color
880
+ backgroundColor: B.value.style.chart.backgroundColor,
881
+ color: B.value.style.chart.color
867
882
  }
868
883
  }
869
884
  }
870
885
  };
871
886
  });
872
- We(() => W.value.showTable, (e) => {
873
- V.value.table.show || (e && V.value.table.useDialog && cn.value ? cn.value.open() : "close" in cn.value && cn.value.close());
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());
874
889
  });
875
- function Nr() {
876
- W.value.showTable = !1, ln.value && ln.value.setTableIconState(!1);
890
+ function Fr() {
891
+ U.value.showTable = !1, un.value && un.value.setTableIconState(!1);
877
892
  }
878
- let Pr = p(() => V.value.style.chart.backgroundColor), Fr = p(() => V.value.style.chart.legend), { exportSvg: Ir, getSvg: Lr } = ve({
879
- svg: U,
880
- title: p(() => V.value.style.chart.title),
881
- legend: Fr,
882
- legendItems: _r,
883
- backgroundColor: Pr
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
884
899
  });
885
- async function Rr({ isCb: e }) {
886
- dn.value = !0, await Re();
900
+ async function Br({ isCb: e }) {
901
+ fn.value = !0, await Re();
887
902
  try {
888
903
  if (e) {
889
- let { blob: e, url: t, text: n, dataUrl: r } = await Lr();
890
- await Promise.resolve(V.value.userOptions.callbacks.svg({
904
+ let { blob: e, url: t, text: n, dataUrl: r } = await zr();
905
+ await Promise.resolve(B.value.userOptions.callbacks.svg({
891
906
  blob: e,
892
907
  url: t,
893
908
  text: n,
894
909
  dataUrl: r
895
910
  }));
896
- } else await Promise.resolve(Ir());
911
+ } else await Promise.resolve(Rr());
897
912
  } finally {
898
- dn.value = !1;
913
+ fn.value = !1;
899
914
  }
900
915
  }
901
- function zr(e) {
916
+ function Vr(e) {
902
917
  if (e?.stage === "start") {
903
- un.value = !0;
918
+ dn.value = !0;
904
919
  return;
905
920
  }
906
921
  if (e?.stage === "end") {
907
- un.value = !1;
922
+ dn.value = !1;
908
923
  return;
909
924
  }
910
- Pn();
925
+ Fn();
911
926
  }
912
- async function Br() {
913
- if (bn("copyAlt", {
914
- config: V.value,
915
- dataset: X.value
916
- }), !V.value.userOptions.callbacks.altCopy) {
927
+ async function Hr() {
928
+ if (xn("copyAlt", {
929
+ config: B.value,
930
+ dataset: Y.value
931
+ }), !B.value.userOptions.callbacks.altCopy) {
917
932
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
918
933
  return;
919
934
  }
920
- await Promise.resolve(V.value.userOptions.callbacks.altCopy({
921
- config: V.value,
922
- dataset: X.value
935
+ await Promise.resolve(B.value.userOptions.callbacks.altCopy({
936
+ config: B.value,
937
+ dataset: Y.value
923
938
  }));
924
939
  }
925
- let Vr = p(() => ({
940
+ let Ur = p(() => ({
926
941
  head: $.value.head,
927
942
  body: $.value.body.map((e) => [
928
943
  e[0]?.name || "",
@@ -930,49 +945,49 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
930
945
  e[2],
931
946
  e[3]
932
947
  ]),
933
- caption: V.value.a11y.translations.tableCaption,
934
- notice: V.value.a11y.translations.tableAvailable
948
+ caption: B.value.a11y.translations.tableCaption,
949
+ notice: B.value.a11y.translations.tableAvailable
935
950
  }));
936
- function Hr(e) {
937
- return X.value.findIndex((t) => t.seriesIndex === e);
951
+ function Wr(e) {
952
+ return Y.value.findIndex((t) => t.seriesIndex === e);
938
953
  }
939
- function Ur() {
940
- if (z.value !== null && B.value !== null) {
941
- let e = X.value.find((e) => e.seriesIndex === z.value)?.plots?.[B.value];
942
- e && Sr({
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({
943
958
  datapoint: e,
944
- plotIndex: B.value,
945
- seriesIndex: z.value
959
+ plotIndex: z.value,
960
+ seriesIndex: R.value
946
961
  });
947
962
  }
948
- z.value = null, B.value = null, _n.value = "pointer", rn.value = !1, L.value = null;
963
+ R.value = null, z.value = null, vn.value = "pointer", rn.value = !1, L.value = null;
949
964
  }
950
- function Wr() {
951
- z.value = null, B.value = null, vn.value = !0;
965
+ function Kr() {
966
+ R.value = null, z.value = null, yn.value = !0;
952
967
  }
953
- function Gr() {
954
- Ur(), vn.value = !1;
968
+ function qr() {
969
+ Gr(), yn.value = !1;
955
970
  }
956
- function Kr(e, t) {
971
+ function Jr(e, t) {
957
972
  if (!e?.plots?.length) return null;
958
973
  let n = e.plots.length;
959
974
  return (t % n + n) % n;
960
975
  }
961
- function qr({ seriesIndex: e, plotIndex: t, direction: n }) {
962
- if (!X.value.length) return null;
963
- let r = Hr(e);
976
+ function Yr({ seriesIndex: e, plotIndex: t, direction: n }) {
977
+ if (!Y.value.length) return null;
978
+ let r = Wr(e);
964
979
  if (r === -1) return null;
965
980
  if (n === "up" || n === "down") {
966
- let e = X.value[r];
981
+ let e = Y.value[r];
967
982
  if (!e?.plots?.length) return null;
968
- let i = Kr(e, t + (n === "up" ? -1 : 1));
983
+ let i = Jr(e, t + (n === "up" ? -1 : 1));
969
984
  return {
970
985
  seriesIndex: e.seriesIndex,
971
986
  plotIndex: i
972
987
  };
973
988
  }
974
989
  if (n === "left" || n === "right") {
975
- let e = ((r + (n === "left" ? -1 : 1)) % X.value.length + X.value.length) % X.value.length, i = X.value[e];
990
+ let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
976
991
  if (!i?.plots?.length) return null;
977
992
  let a = Math.min(t, i.plots.length - 1);
978
993
  return {
@@ -982,53 +997,53 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
982
997
  }
983
998
  return null;
984
999
  }
985
- function Jr(e) {
986
- if (!U.value || Er.value || document.activeElement !== U.value || !X.value.length) return;
1000
+ function Xr(e) {
1001
+ if (!H.value || Or.value || document.activeElement !== H.value || !Y.value.length) return;
987
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";
988
1003
  if (!t && !n && !r && !i && !a && !o) return;
989
1004
  if (e.preventDefault(), e.stopPropagation(), o) {
990
- Ur();
1005
+ Gr();
991
1006
  return;
992
1007
  }
993
1008
  if (a) {
994
- if (z.value === null || B.value === null) return;
995
- let e = X.value.find((e) => e.seriesIndex === z.value)?.plots?.[B.value];
1009
+ if (R.value === null || z.value === null) return;
1010
+ let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
996
1011
  if (!e) return;
997
- yr({
1012
+ xr({
998
1013
  datapoint: e,
999
- plotIndex: B.value,
1000
- seriesIndex: z.value
1014
+ plotIndex: z.value,
1015
+ seriesIndex: R.value
1001
1016
  });
1002
1017
  return;
1003
1018
  }
1004
1019
  let s = null;
1005
- if (z.value === null || B.value === null) {
1006
- let e = X.value[0];
1020
+ if (R.value === null || z.value === null) {
1021
+ let e = Y.value[0];
1007
1022
  if (!e?.plots?.length) return;
1008
1023
  s = {
1009
1024
  seriesIndex: e.seriesIndex,
1010
1025
  plotIndex: 0
1011
1026
  };
1012
- } else r ? s = qr({
1013
- seriesIndex: z.value,
1014
- plotIndex: B.value,
1027
+ } else r ? s = Yr({
1028
+ seriesIndex: R.value,
1029
+ plotIndex: z.value,
1015
1030
  direction: "up"
1016
- }) : i ? s = qr({
1017
- seriesIndex: z.value,
1018
- plotIndex: B.value,
1031
+ }) : i ? s = Yr({
1032
+ seriesIndex: R.value,
1033
+ plotIndex: z.value,
1019
1034
  direction: "down"
1020
- }) : t ? s = qr({
1021
- seriesIndex: z.value,
1022
- plotIndex: B.value,
1035
+ }) : t ? s = Yr({
1036
+ seriesIndex: R.value,
1037
+ plotIndex: z.value,
1023
1038
  direction: "left"
1024
- }) : n && (s = qr({
1025
- seriesIndex: z.value,
1026
- plotIndex: B.value,
1039
+ }) : n && (s = Yr({
1040
+ seriesIndex: R.value,
1041
+ plotIndex: z.value,
1027
1042
  direction: "right"
1028
1043
  }));
1029
1044
  if (!s) return;
1030
- let c = X.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1031
- c && wr({
1045
+ let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
1046
+ c && Er({
1032
1047
  datapoint: c,
1033
1048
  plotIndex: s.plotIndex,
1034
1049
  seriesIndex: s.seriesIndex,
@@ -1036,19 +1051,19 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1036
1051
  });
1037
1052
  }
1038
1053
  return we({
1039
- getData: Ar,
1040
- getImage: jr,
1041
- generatePdf: Nn,
1042
- generateCsv: Tr,
1043
- generateImage: Pn,
1044
- generateSvg: Rr,
1045
- hideSeries: gr,
1046
- showSeries: hr,
1047
- toggleTable: Or,
1048
- toggleTooltip: kr,
1049
- toggleAnnotator: Dr,
1050
- toggleFullscreen: br,
1051
- copyAlt: Br
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
1052
1067
  }), (e, t) => (C(), g("div", {
1053
1068
  id: `history_plot_${P.value}`,
1054
1069
  ref_key: "historyPlotChart",
@@ -1058,21 +1073,21 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1058
1073
  "vue-ui-history-plot": !0,
1059
1074
  "vue-data-ui-wrapper-fullscreen": I.value
1060
1075
  }),
1061
- style: S(`background:${V.value.style.chart.backgroundColor};color:${V.value.style.chart.color};font-family:${V.value.style.fontFamily}; position: relative; ${V.value.responsive ? "height: 100%" : ""}`),
1062
- onMouseenter: t[2] ||= () => O(kn)(!0),
1063
- onMouseleave: t[3] ||= () => O(kn)(!1)
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)
1064
1079
  }, [
1065
1080
  _("div", {
1066
1081
  id: `chart-instructions-${P.value}`,
1067
1082
  class: "sr-only"
1068
- }, [_("p", null, D(V.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1069
- Vr.value.body.length ? (C(), m(Oe, {
1083
+ }, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
1084
+ Ur.value.body.length ? (C(), m(Oe, {
1070
1085
  key: 0,
1071
1086
  uid: P.value,
1072
- head: Vr.value.head,
1073
- body: Vr.value.body,
1074
- caption: Vr.value.caption,
1075
- notice: Vr.value.notice
1087
+ head: Ur.value.head,
1088
+ body: Ur.value.body,
1089
+ caption: Ur.value.caption,
1090
+ notice: Ur.value.notice
1076
1091
  }, null, 8, [
1077
1092
  "uid",
1078
1093
  "head",
@@ -1081,14 +1096,14 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1081
1096
  "notice"
1082
1097
  ])) : h("", !0),
1083
1098
  E(e.$slots, "userConfig", {}, void 0, !0),
1084
- V.value.userOptions.buttons.annotator ? (C(), m(O(Ut), {
1099
+ B.value.userOptions.buttons.annotator ? (C(), m(O(Ut), {
1085
1100
  key: 1,
1086
- svgRef: O(U),
1087
- backgroundColor: V.value.style.chart.backgroundColor,
1088
- color: V.value.style.chart.color,
1089
- active: Er.value,
1090
- isCursorPointer: H.value,
1091
- onClose: Dr
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
1092
1107
  }, {
1093
1108
  "annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1094
1109
  "annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
@@ -1104,72 +1119,72 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1104
1119
  "active",
1105
1120
  "isCursorPointer"
1106
1121
  ])) : h("", !0),
1107
- Fn.value ? (C(), g("div", {
1122
+ In.value ? (C(), g("div", {
1108
1123
  key: 2,
1109
1124
  ref_key: "noTitle",
1110
1125
  ref: nn,
1111
1126
  class: "vue-data-ui-no-title-space",
1112
1127
  style: "height:36px; width: 100%;background:transparent"
1113
1128
  }, null, 512)) : h("", !0),
1114
- V.value.style.chart.title.text ? (C(), g("div", {
1129
+ B.value.style.chart.title.text ? (C(), g("div", {
1115
1130
  key: 3,
1116
1131
  ref_key: "chartTitle",
1117
1132
  ref: Xt,
1118
1133
  class: "vue-ui-xy-title",
1119
- style: S(`font-family:${V.value.style.fontFamily}`)
1134
+ style: S(`font-family:${B.value.style.fontFamily}`)
1120
1135
  }, [(C(), m(Ce, {
1121
1136
  key: `title_${Zt.value}`,
1122
1137
  config: {
1123
1138
  title: {
1124
1139
  cy: "history-plot-div-title",
1125
- ...V.value.style.chart.title
1140
+ ...B.value.style.chart.title
1126
1141
  },
1127
1142
  subtitle: {
1128
1143
  cy: "history-plot-div-subtitle",
1129
- ...V.value.style.chart.title.subtitle
1144
+ ...B.value.style.chart.title.subtitle
1130
1145
  }
1131
1146
  }
1132
1147
  }, null, 8, ["config"]))], 4)) : h("", !0),
1133
1148
  _("div", { id: `legend-top-${P.value}` }, null, 8, Ye),
1134
- V.value.userOptions.show && yn.value && (O(An) || O(On)) ? (C(), m(O(Wt), {
1149
+ B.value.userOptions.show && bn.value && (O(jn) || O(kn)) ? (C(), m(O(Wt), {
1135
1150
  ref_key: "userOptionsRef",
1136
- ref: ln,
1151
+ ref: un,
1137
1152
  key: `user_option_${tn.value}`,
1138
- backgroundColor: V.value.style.chart.backgroundColor,
1139
- color: V.value.style.chart.color,
1140
- isPrinting: O(jn),
1141
- isImaging: O(Mn),
1153
+ backgroundColor: B.value.style.chart.backgroundColor,
1154
+ color: B.value.style.chart.color,
1155
+ isPrinting: O(Mn),
1156
+ isImaging: O(Nn),
1142
1157
  uid: P.value,
1143
- hasTooltip: V.value.style.chart.tooltip.show && V.value.userOptions.buttons.tooltip,
1144
- hasPdf: V.value.userOptions.buttons.pdf,
1145
- hasImg: V.value.userOptions.buttons.img,
1146
- hasSvg: V.value.userOptions.buttons.svg,
1147
- hasXls: V.value.userOptions.buttons.csv,
1148
- hasTable: V.value.userOptions.buttons.table,
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,
1149
1164
  hasLabel: !1,
1150
- hasFullscreen: V.value.userOptions.buttons.fullscreen,
1151
- hasAltCopy: V.value.userOptions.buttons.altCopy,
1165
+ hasFullscreen: B.value.userOptions.buttons.fullscreen,
1166
+ hasAltCopy: B.value.userOptions.buttons.altCopy,
1152
1167
  isFullscreen: I.value,
1153
1168
  chartElement: j.value,
1154
- position: V.value.userOptions.position,
1155
- isTooltip: W.value.showTooltip,
1156
- titles: { ...V.value.userOptions.buttonTitles },
1157
- hasAnnotator: V.value.userOptions.buttons.annotator,
1158
- isAnnotation: Er.value,
1159
- callbacks: V.value.userOptions.callbacks,
1160
- printScale: V.value.userOptions.print.scale,
1161
- tableDialog: V.value.table.useDialog,
1162
- isCursorPointer: H.value,
1163
- onToggleFullscreen: br,
1164
- onGeneratePdf: O(Nn),
1165
- onGenerateCsv: Tr,
1166
- onGenerateImage: zr,
1167
- onGenerateSvg: Rr,
1168
- onToggleTable: Or,
1169
- onToggleTooltip: kr,
1170
- onToggleAnnotator: Dr,
1171
- onCopyAlt: Br,
1172
- style: S({ visibility: O(An) ? O(On) ? "visible" : "hidden" : "visible" })
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" })
1173
1188
  }, Pe({ _: 2 }, [
1174
1189
  e.$slots.menuIcon ? {
1175
1190
  name: "menuIcon",
@@ -1243,33 +1258,33 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1243
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),
1244
1259
  _("div", Xe, [(C(), g("svg", {
1245
1260
  ref_key: "svgRef",
1246
- ref: U,
1261
+ ref: H,
1247
1262
  xmlns: O(ue),
1248
- viewBox: `0 0 ${G.value.width < 0 ? .1 : G.value.width} ${G.value.height < 0 ? .1 : G.value.height}`,
1249
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${V.value.style.chart.color}`),
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}`),
1250
1265
  "aria-describedby": `chart-instructions-${P.value}`,
1251
1266
  tabindex: "0",
1252
- onFocus: Wr,
1253
- onBlur: Gr,
1254
- onKeydown: Jr
1267
+ onFocus: Kr,
1268
+ onBlur: qr,
1269
+ onKeydown: Xr
1255
1270
  }, [
1256
1271
  Ie(O(Gt)),
1257
1272
  e.$slots["chart-background"] ? (C(), g("foreignObject", {
1258
1273
  key: 0,
1259
- x: K.value.left,
1260
- y: K.value.top,
1261
- width: K.value.width <= 0 ? 10 : K.value.width,
1262
- height: K.value.height <= 0 ? 10 : K.value.height,
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,
1263
1278
  style: { pointerEvents: "none" }
1264
1279
  }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : h("", !0),
1265
- V.value.style.chart.plots.gradient.show || Zn.value ? (C(), g("defs", $e, [V.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(X.value, (e, t) => (C(), g("radialGradient", {
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", {
1266
1281
  key: `gradient_${t}_${P.value}`,
1267
1282
  id: `gradient_${t}_${P.value}`,
1268
1283
  fy: "30%"
1269
1284
  }, [
1270
1285
  _("stop", {
1271
1286
  offset: "10%",
1272
- "stop-color": O(te)(e.color, V.value.style.chart.plots.gradient.intensity / 100)
1287
+ "stop-color": O(te)(e.color, B.value.style.chart.plots.gradient.intensity / 100)
1273
1288
  }, null, 8, tt),
1274
1289
  _("stop", {
1275
1290
  offset: "90%",
@@ -1279,14 +1294,14 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1279
1294
  offset: "100%",
1280
1295
  "stop-color": e.color
1281
1296
  }, null, 8, rt)
1282
- ], 8, et))), 128)) : h("", !0), (C(!0), g(f, null, T(X.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [V.value.style.chart.plots.gradient.show && $n(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), g("radialGradient", {
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", {
1283
1298
  key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
1284
- id: rr(e, t),
1299
+ id: ar(e, t),
1285
1300
  fy: "30%"
1286
1301
  }, [
1287
1302
  _("stop", {
1288
1303
  offset: "10%",
1289
- "stop-color": O(te)(Z(e, t), V.value.style.chart.plots.gradient.intensity / 100)
1304
+ "stop-color": O(te)(Z(e, t), B.value.style.chart.plots.gradient.intensity / 100)
1290
1305
  }, null, 8, at),
1291
1306
  _("stop", {
1292
1307
  offset: "90%",
@@ -1296,144 +1311,144 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1296
1311
  offset: "100%",
1297
1312
  "stop-color": Z(e, t)
1298
1313
  }, null, 8, st)
1299
- ], 8, it))), 128)) : h("", !0), Qn(e) ? (C(), g("linearGradient", {
1314
+ ], 8, it))), 128)) : h("", !0), X(e) ? (C(), g("linearGradient", {
1300
1315
  key: 1,
1301
1316
  id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
1302
1317
  gradientUnits: "userSpaceOnUse",
1303
- x1: tr(e).x1,
1304
- y1: tr(e).y1,
1305
- x2: tr(e).x2,
1306
- y2: tr(e).y2
1318
+ x1: rr(e).x1,
1319
+ y1: rr(e).y1,
1320
+ x2: rr(e).x2,
1321
+ y2: rr(e).y2
1307
1322
  }, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
1308
1323
  key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
1309
1324
  "stop-color": t,
1310
1325
  offset: e.temperatureColors.length === 1 ? "0%" : O(a)(n, e.temperatureColors.length)
1311
1326
  }, null, 8, lt))), 128))], 8, ct)) : h("", !0)], 64))), 128))])) : h("", !0),
1312
- V.value.style.chart.grid.verticalLines.show ? (C(), g("g", ut, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
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", {
1313
1328
  x1: e.x,
1314
1329
  x2: e.x,
1315
1330
  y1: e.y1,
1316
1331
  y2: e.y2,
1317
- stroke: V.value.style.chart.grid.verticalLines.stroke,
1318
- "stroke-width": V.value.style.chart.grid.verticalLines.strokeWidth,
1332
+ stroke: B.value.style.chart.grid.verticalLines.stroke,
1333
+ "stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
1319
1334
  "stroke-linecap": "round"
1320
1335
  }, null, 8, dt))), 256))])) : h("", !0),
1321
- V.value.style.chart.axes.y.labels.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
1322
- stroke: V.value.style.chart.grid.verticalLines.stroke,
1323
- "stroke-width": V.value.style.chart.grid.verticalLines.strokeWidth,
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,
1324
1339
  "stroke-linecap": "round",
1325
- x1: K.value.left - 5,
1326
- x2: K.value.left,
1340
+ x1: G.value.left - 5,
1341
+ x2: G.value.left,
1327
1342
  y1: e.y,
1328
1343
  y2: e.y
1329
1344
  }, null, 8, pt))), 256))])) : h("", !0),
1330
- V.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1345
+ B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
1331
1346
  key: 4,
1332
1347
  ref_key: "yAxisScales",
1333
- ref: hn
1334
- }, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("text", {
1335
- x: K.value.left + V.value.style.chart.axes.y.labels.offsetX - 4 - V.value.style.chart.plots.radius,
1336
- y: e.y + q.value.yAxisLabels / 3,
1337
- fill: V.value.style.chart.axes.y.labels.color,
1338
- "font-size": q.value.yAxisLabels,
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,
1339
1354
  "text-anchor": "end"
1340
- }, D(O(u)(V.value.style.chart.axes.y.labels.formatter, e.value, O(d)({
1341
- p: V.value.style.chart.axes.y.labels.prefix,
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,
1342
1357
  v: e.value,
1343
- s: V.value.style.chart.axes.y.labels.suffix,
1344
- r: V.value.style.chart.axes.y.labels.rounding
1358
+ s: B.value.style.chart.axes.y.labels.suffix,
1359
+ r: B.value.style.chart.axes.y.labels.rounding
1345
1360
  }))), 9, mt))), 256))], 512)) : h("", !0),
1346
- V.value.style.chart.axes.y.name.text ? (C(), g("text", {
1361
+ B.value.style.chart.axes.y.name.text ? (C(), g("text", {
1347
1362
  key: 5,
1348
1363
  ref_key: "yAxisLabel",
1349
- ref: pn,
1350
- transform: `translate(${q.value.yAxisName}, ${G.value.height / 2 + V.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
1351
- "font-size": q.value.yAxisName,
1352
- fill: V.value.style.chart.axes.y.name.color,
1353
- "font-weight": V.value.style.chart.axes.y.name.bold ? "bold" : "normal",
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",
1354
1369
  "text-anchor": "middle"
1355
- }, D(V.value.style.chart.axes.y.name.text), 9, ht)) : h("", !0),
1356
- V.value.style.chart.grid.horizontalLines.show ? (C(), g("g", gt, [(C(!0), g(f, null, T(Y.value.tickY, (e) => (C(), g("line", {
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", {
1357
1372
  x1: e.x1,
1358
1373
  x2: e.x2,
1359
1374
  y1: e.y,
1360
1375
  y2: e.y,
1361
- stroke: V.value.style.chart.grid.horizontalLines.stroke,
1362
- "stroke-width": V.value.style.chart.grid.horizontalLines.strokeWidth,
1376
+ stroke: B.value.style.chart.grid.horizontalLines.stroke,
1377
+ "stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
1363
1378
  "stroke-linecap": "round"
1364
1379
  }, null, 8, _t))), 256))])) : h("", !0),
1365
- V.value.style.chart.axes.x.labels.show ? (C(), g("g", vt, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("line", {
1366
- stroke: V.value.style.chart.grid.verticalLines.stroke,
1367
- "stroke-width": V.value.style.chart.grid.verticalLines.strokeWidth,
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,
1368
1383
  "stroke-linecap": "round",
1369
1384
  x1: e.x,
1370
1385
  x2: e.x,
1371
- y1: K.value.bottom,
1372
- y2: K.value.bottom + 5
1386
+ y1: G.value.bottom,
1387
+ y2: G.value.bottom + 5
1373
1388
  }, null, 8, yt))), 256))])) : h("", !0),
1374
- V.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1389
+ B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
1375
1390
  key: 8,
1376
1391
  ref_key: "xAxisScales",
1377
- ref: mn
1378
- }, [(C(!0), g(f, null, T(Y.value.tickX, (e) => (C(), g("text", {
1392
+ ref: hn
1393
+ }, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
1379
1394
  class: "vue-ui-history-plot-x-axis-scale",
1380
- transform: `translate(${e.x}, ${K.value.bottom + V.value.style.chart.axes.x.labels.offsetY + q.value.xAxisLabels + V.value.style.chart.plots.radius}), rotate(${V.value.style.chart.axes.x.labels.rotation})`,
1381
- fill: V.value.style.chart.axes.x.labels.color,
1382
- "font-size": q.value.xAxisLabels,
1383
- "text-anchor": V.value.style.chart.axes.x.labels.rotation > 0 ? "start" : V.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
1384
- }, D(O(u)(V.value.style.chart.axes.x.labels.formatter, e.value, O(d)({
1385
- p: V.value.style.chart.axes.x.labels.prefix,
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,
1386
1401
  v: e.value,
1387
- s: V.value.style.chart.axes.x.labels.suffix,
1388
- r: V.value.style.chart.axes.x.labels.rounding
1402
+ s: B.value.style.chart.axes.x.labels.suffix,
1403
+ r: B.value.style.chart.axes.x.labels.rounding
1389
1404
  }))), 9, bt))), 256))], 512)) : h("", !0),
1390
- V.value.style.chart.axes.x.name.text ? (C(), g("text", {
1405
+ B.value.style.chart.axes.x.name.text ? (C(), g("text", {
1391
1406
  key: 9,
1392
1407
  ref_key: "xAxisLabel",
1393
- ref: fn,
1394
- x: G.value.width / 2 + V.value.style.chart.axes.x.name.offsetX,
1395
- y: G.value.height,
1396
- "font-size": q.value.xAxisName,
1397
- fill: V.value.style.chart.axes.x.name.color,
1398
- "font-weight": V.value.style.chart.axes.x.name.bold ? "bold" : "normal",
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",
1399
1414
  "text-anchor": "middle"
1400
- }, D(V.value.style.chart.axes.x.name.text), 9, xt)) : h("", !0),
1401
- V.value.style.chart.grid.xAxis.show ? (C(), g("line", {
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", {
1402
1417
  key: 10,
1403
- x1: K.value.left,
1404
- x2: K.value.left + K.value.width,
1405
- y1: K.value.bottom,
1406
- y2: K.value.bottom,
1407
- stroke: V.value.style.chart.grid.xAxis.stroke,
1408
- "stroke-width": V.value.style.chart.grid.xAxis.strokeWidth,
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,
1409
1424
  "stroke-linecap": "round"
1410
1425
  }, null, 8, St)) : h("", !0),
1411
- V.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1426
+ B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
1412
1427
  key: 11,
1413
- x1: K.value.left,
1414
- x2: K.value.left,
1415
- y1: K.value.top,
1416
- y2: K.value.bottom,
1417
- stroke: V.value.style.chart.grid.yAxis.stroke,
1418
- "stroke-width": V.value.style.chart.grid.yAxis.strokeWidth,
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,
1419
1434
  "stroke-linecap": "round"
1420
1435
  }, null, 8, Ct)) : h("", !0),
1421
- (C(!0), g(f, null, T(Xn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
1422
- V.value.style.chart.paths.show ? (C(), g("g", {
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", {
1423
1438
  key: 0,
1424
- style: S({ opacity: lr(e.seriesIndex) })
1439
+ style: S({ opacity: dr(e.seriesIndex) })
1425
1440
  }, [_("path", {
1426
1441
  d: e.path,
1427
- stroke: V.value.style.chart.backgroundColor,
1428
- "stroke-width": V.value.style.chart.paths.strokeWidth + 4,
1442
+ stroke: B.value.style.chart.backgroundColor,
1443
+ "stroke-width": B.value.style.chart.paths.strokeWidth + 4,
1429
1444
  fill: "none",
1430
1445
  "stroke-linecap": "round",
1431
1446
  "stroke-linejoin": "round",
1432
1447
  class: b({ animated: Q() })
1433
1448
  }, null, 10, wt), _("path", {
1434
1449
  d: e.path,
1435
- stroke: cr(e),
1436
- "stroke-width": V.value.style.chart.paths.strokeWidth,
1450
+ stroke: ur(e),
1451
+ "stroke-width": B.value.style.chart.paths.strokeWidth,
1437
1452
  fill: "none",
1438
1453
  "stroke-linecap": "round",
1439
1454
  "stroke-linejoin": "round",
@@ -1442,133 +1457,133 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1442
1457
  (C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
1443
1458
  cx: e.x,
1444
1459
  cy: e.y,
1445
- fill: V.value.style.chart.backgroundColor,
1446
- r: q.value.plots,
1460
+ fill: B.value.style.chart.backgroundColor,
1461
+ r: K.value.plots,
1447
1462
  stroke: "none"
1448
1463
  }, null, 8, Et))), 256)),
1449
1464
  (C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
1450
1465
  cx: t.x,
1451
1466
  cy: t.y,
1452
- fill: ir(e, t, e.gradientIndex),
1453
- r: q.value.plots,
1454
- stroke: V.value.style.chart.plots.stroke,
1455
- "stroke-width": V.value.style.chart.plots.strokeWidth,
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,
1456
1471
  class: b({ animated: Q() }),
1457
1472
  style: S({
1458
- opacity: lr(e.seriesIndex),
1459
- transition: dr()
1473
+ opacity: dr(e.seriesIndex),
1474
+ transition: pr()
1460
1475
  })
1461
1476
  }, null, 14, Dt))), 256)),
1462
- V.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", {
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", {
1463
1478
  key: 1,
1464
- x: t.x + V.value.style.chart.plots.labels.offsetX,
1465
- y: t.y + V.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels,
1466
- "font-size": q.value.labels,
1467
- fill: V.value.style.chart.plots.labels.color,
1468
- "font-weight": V.value.style.chart.plots.labels.bold ? "bold" : "normal",
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",
1469
1484
  "text-anchor": "middle",
1470
1485
  class: b({ animated: Q() }),
1471
1486
  style: S({
1472
- opacity: lr(e.seriesIndex),
1473
- transition: dr()
1487
+ opacity: dr(e.seriesIndex),
1488
+ transition: pr()
1474
1489
  }),
1475
1490
  innerHTML: O(r)({
1476
1491
  content: String(t.label),
1477
- fontSize: q.value.labels,
1478
- fill: V.value.style.chart.plots.labels.color,
1479
- x: t.x + V.value.style.chart.plots.labels.offsetX,
1480
- y: t.y + V.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels
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
1481
1496
  })
1482
1497
  }, null, 14, At)) : (C(), g("text", {
1483
1498
  key: 0,
1484
- x: t.x + V.value.style.chart.plots.labels.offsetX,
1485
- y: t.y + V.value.style.chart.plots.labels.offsetY + q.value.plots + q.value.labels,
1486
- "font-size": q.value.labels,
1487
- fill: V.value.style.chart.plots.labels.color,
1488
- "font-weight": V.value.style.chart.plots.labels.bold ? "bold" : "normal",
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",
1489
1504
  "text-anchor": "middle",
1490
1505
  class: b({ animated: Q() }),
1491
1506
  style: S({
1492
- opacity: lr(e.seriesIndex),
1493
- transition: dr()
1507
+ opacity: dr(e.seriesIndex),
1508
+ transition: pr()
1494
1509
  })
1495
1510
  }, D(t.label), 15, kt))]))), 256))])) : h("", !0),
1496
- V.value.style.chart.plots.indexLabels.show ? (C(), g("g", jt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
1497
- x: t.x + V.value.style.chart.plots.indexLabels.offsetX,
1498
- y: t.y + V.value.style.chart.plots.indexLabels.offsetY + q.value.indexLabels / 3,
1499
- "font-size": q.value.indexLabels,
1500
- "font-weight": V.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
1501
- fill: or(e, t),
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),
1502
1517
  "text-anchor": "middle",
1503
1518
  class: b({ animated: Q() }),
1504
1519
  style: S({
1505
- opacity: lr(e.seriesIndex),
1506
- transition: dr()
1520
+ opacity: dr(e.seriesIndex),
1521
+ transition: pr()
1507
1522
  })
1508
- }, D(V.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Mt))), 256))])) : h("", !0)
1523
+ }, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Mt))), 256))])) : h("", !0)
1509
1524
  ]))), 128)),
1510
- (C(!0), g(f, null, T(Xn.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", {
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", {
1511
1526
  cx: t.x,
1512
1527
  cy: t.y,
1513
1528
  fill: "transparent",
1514
- r: q.value.plots,
1529
+ r: K.value.plots,
1515
1530
  stroke: "none",
1516
- onMouseenter: (r) => wr({
1531
+ onMouseenter: (r) => Er({
1517
1532
  datapoint: t,
1518
1533
  plotIndex: n,
1519
1534
  seriesIndex: e.seriesIndex,
1520
1535
  triggerMode: "pointer"
1521
1536
  }),
1522
- onMouseleave: (r) => Sr({
1537
+ onMouseleave: (r) => wr({
1523
1538
  datapoint: t,
1524
1539
  plotIndex: n,
1525
1540
  seriesIndex: e.seriesIndex
1526
1541
  }),
1527
- onClick: (r) => yr({
1542
+ onClick: (r) => xr({
1528
1543
  datapoint: t,
1529
1544
  plotIndex: n,
1530
1545
  seriesIndex: e.seriesIndex
1531
1546
  })
1532
1547
  }, null, 40, Nt))), 256))]))), 128)),
1533
1548
  E(e.$slots, "svg", { svg: {
1534
- ...G.value,
1535
- drawingArea: K.value,
1536
- isPrintingImg: O(jn) || O(Mn) || un.value,
1537
- isPrintingSvg: dn.value
1549
+ ...W.value,
1550
+ drawingArea: G.value,
1551
+ isPrintingImg: O(Mn) || O(Nn) || dn.value,
1552
+ isPrintingSvg: fn.value
1538
1553
  } }, void 0, !0)
1539
1554
  ], 44, Ze)), e.$slots.hint ? (C(), g("div", Pt, [E(e.$slots, "hint", x(y({
1540
- hint: V.value.a11y.translations.keyboardNavigation,
1541
- isVisible: vn.value
1555
+ hint: B.value.a11y.translations.keyboardNavigation,
1556
+ isVisible: yn.value
1542
1557
  })), void 0, !0)])) : h("", !0)]),
1543
- e.$slots.watermark ? (C(), g("div", Ft, [E(e.$slots, "watermark", x(y({ isPrinting: O(jn) || O(Mn) || un.value || dn.value })), 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),
1544
1559
  _("div", { id: `legend-bottom-${P.value}` }, null, 8, It),
1545
- sn.value && (V.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Ne, {
1560
+ cn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Ne, {
1546
1561
  key: 6,
1547
- to: V.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1562
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
1548
1563
  }, [_("div", {
1549
1564
  ref_key: "chartLegend",
1550
1565
  ref: Qt
1551
- }, [E(e.$slots, "legend", { legend: _r.value }, () => [V.value.style.chart.legend.show && yn.value ? (C(), m(je, {
1566
+ }, [E(e.$slots, "legend", { legend: yr.value }, () => [B.value.style.chart.legend.show && bn.value ? (C(), m(je, {
1552
1567
  key: `legend_${$t.value}`,
1553
- legendSet: _r.value,
1554
- config: vr.value,
1555
- isCursorPointer: H.value,
1568
+ legendSet: yr.value,
1569
+ config: br.value,
1570
+ isCursorPointer: V.value,
1556
1571
  onClickMarker: t[0] ||= ({ legend: e }) => {
1557
- pr(e.seriesIndex);
1572
+ hr(e.seriesIndex);
1558
1573
  }
1559
1574
  }, {
1560
1575
  item: k(({ legend: e, index: t }) => [_("div", {
1561
1576
  onClick: (t) => e.segregate(),
1562
1577
  style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
1563
1578
  }, D(e.name), 13, Lt)]),
1564
- legendToggle: k(() => [_r.value.length > 2 && V.value.style.chart.legend.selectAllToggle.show && !O(Tn) ? (C(), m(De, {
1579
+ legendToggle: k(() => [yr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(En) ? (C(), m(De, {
1565
1580
  key: 0,
1566
- backgroundColor: V.value.style.chart.legend.selectAllToggle.backgroundColor,
1567
- color: V.value.style.chart.legend.selectAllToggle.color,
1568
- fontSize: V.value.style.chart.legend.fontSize,
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,
1569
1584
  checked: F.value.length > 0,
1570
- isCursorPointer: H.value,
1571
- onToggle: fr
1585
+ isCursorPointer: V.value,
1586
+ onToggle: mr
1572
1587
  }, null, 8, [
1573
1588
  "backgroundColor",
1574
1589
  "color",
@@ -1585,36 +1600,36 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1585
1600
  e.$slots.source ? (C(), g("div", {
1586
1601
  key: 7,
1587
1602
  ref_key: "source",
1588
- ref: on,
1603
+ ref: sn,
1589
1604
  dir: "auto"
1590
1605
  }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1591
1606
  Ie(O(zt), {
1592
- teleportTo: V.value.style.chart.tooltip.teleportTo,
1593
- show: W.value.showTooltip && rn.value,
1594
- backgroundColor: V.value.style.chart.tooltip.backgroundColor,
1595
- color: V.value.style.chart.tooltip.color,
1596
- fontSize: V.value.style.chart.tooltip.fontSize,
1597
- borderRadius: V.value.style.chart.tooltip.borderRadius,
1598
- borderColor: V.value.style.chart.tooltip.borderColor,
1599
- borderWidth: V.value.style.chart.tooltip.borderWidth,
1600
- backgroundOpacity: V.value.style.chart.tooltip.backgroundOpacity,
1601
- position: V.value.style.chart.tooltip.position,
1602
- offsetX: V.value.style.chart.tooltip.offsetX,
1603
- offsetY: V.value.style.chart.tooltip.offsetY,
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,
1604
1619
  parent: j.value,
1605
1620
  content: an.value,
1606
- isCustom: R.value,
1621
+ isCustom: on.value,
1607
1622
  isFullscreen: I.value,
1608
- smooth: V.value.style.chart.tooltip.smooth,
1609
- backdropFilter: V.value.style.chart.tooltip.backdropFilter,
1610
- smoothForce: V.value.style.chart.tooltip.smoothForce,
1611
- smoothSnapThreshold: V.value.style.chart.tooltip.smoothSnapThreshold,
1612
- isA11yMode: _n.value === "keyboard",
1613
- a11yPosition: gn.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
1614
1629
  }, {
1615
- "tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...xr.value })), void 0, !0)]),
1616
- tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...xr.value })), void 0, !0)]),
1617
- "tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...xr.value })), void 0, !0)]),
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)]),
1618
1633
  _: 3
1619
1634
  }, 8, [
1620
1635
  "teleportTo",
@@ -1640,10 +1655,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1640
1655
  "isA11yMode",
1641
1656
  "a11yPosition"
1642
1657
  ]),
1643
- yn.value && V.value.userOptions.buttons.table ? (C(), m(Ve(Mr.value.component), Le({ key: 8 }, Mr.value.props, {
1658
+ bn.value && B.value.userOptions.buttons.table ? (C(), m(Ve(Pr.value.component), Le({ key: 8 }, Pr.value.props, {
1644
1659
  ref_key: "tableUnit",
1645
- ref: cn,
1646
- onClose: Nr
1660
+ ref: ln,
1661
+ onClose: Fr
1647
1662
  }), Pe({
1648
1663
  content: k(() => [(C(), m(O(Ht), {
1649
1664
  key: `table_${en.value}`,
@@ -1651,10 +1666,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1651
1666
  head: $.value.head,
1652
1667
  body: $.value.body,
1653
1668
  config: $.value.config,
1654
- title: V.value.table.useDialog ? "" : Mr.value.title,
1655
- withCloseButton: !V.value.table.useDialog,
1656
- isCursorPointer: H.value,
1657
- onClose: Nr
1669
+ title: B.value.table.useDialog ? "" : Pr.value.title,
1670
+ withCloseButton: !B.value.table.useDialog,
1671
+ isCursorPointer: V.value,
1672
+ onClose: Fr
1658
1673
  }, {
1659
1674
  th: k(({ th: e }) => [_("div", {
1660
1675
  innerHTML: e,
@@ -1675,26 +1690,26 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
1675
1690
  "isCursorPointer"
1676
1691
  ]))]),
1677
1692
  _: 2
1678
- }, [V.value.table.useDialog ? {
1693
+ }, [B.value.table.useDialog ? {
1679
1694
  name: "title",
1680
- fn: k(() => [Fe(D(Mr.value.title), 1)]),
1695
+ fn: k(() => [Fe(D(Pr.value.title), 1)]),
1681
1696
  key: "0"
1682
- } : void 0, V.value.table.useDialog ? {
1697
+ } : void 0, B.value.table.useDialog ? {
1683
1698
  name: "actions",
1684
1699
  fn: k(() => [_("button", {
1685
1700
  tabindex: "0",
1686
1701
  class: "vue-ui-user-options-button",
1687
- onClick: t[1] ||= (e) => Tr(V.value.userOptions.callbacks.csv),
1688
- style: S({ cursor: H.value ? "pointer" : "default" })
1702
+ onClick: t[1] ||= (e) => Dr(B.value.userOptions.callbacks.csv),
1703
+ style: S({ cursor: V.value ? "pointer" : "default" })
1689
1704
  }, [Ie(O(Bt), {
1690
1705
  name: "fileCsv",
1691
- stroke: Mr.value.props.color
1706
+ stroke: Pr.value.props.color
1692
1707
  }, null, 8, ["stroke"])], 4)]),
1693
1708
  key: "1"
1694
1709
  } : void 0]), 1040)) : h("", !0),
1695
- E(e.$slots, "skeleton", {}, () => [O(Tn) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
1710
+ E(e.$slots, "skeleton", {}, () => [O(En) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
1696
1711
  ], 46, qe));
1697
1712
  }
1698
- }, [["__scopeId", "data-v-24efe7f0"]]);
1713
+ }, [["__scopeId", "data-v-76063362"]]);
1699
1714
  //#endregion
1700
1715
  export { Ke as n, zt as t };