vue-data-ui 3.0.1 → 3.0.3

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 (91) hide show
  1. package/dist/{Arrow-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as X, ref as v, shallowRef as Fe, computed as d, onMounted as kt, onBeforeUnmount as wt, toRefs as At, watch as ie, watchEffect as Ct, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as _, normalizeClass as O, renderSlot as p, createBlock as I, createCommentVNode as h, createElementVNode as M, createVNode as Xe, createSlots as _t, withCtx as m, normalizeProps as R, guardReactiveProps as Y, Fragment as b, renderList as g, toDisplayString as z, createTextVNode as Lt, nextTick as $t } from "vue";
2
- import { u as St, c as Re, o as Ye, f as De, g as Tt, t as Mt, d as zt, e as Nt, p as Z, D as Be, k as D, i as B, X as Ot, l as It, j as Pt, I as Ft, F as Xt, E as P, a as Rt, b as Yt, C as J, v as Dt, w as Bt, y as Et } from "./index-Dzc2Gi60.js";
3
- import { t as Ee, u as Ht } from "./useResponsive-DfdjqQps.js";
4
- import { u as jt, B as Wt } from "./useLoading-D7YHNtLX.js";
5
- import { u as Ut } from "./usePrinter-DBRh8ZvS.js";
6
- import { u as He } from "./useNestedProp-CjnS13nF.js";
7
- import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { u as qt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
- import Zt from "./Legend-CMvJ6X5j.js";
11
- import Jt from "./Title-xTWR-Vil.js";
12
- import Kt from "./img-Vb4QHAHI.js";
13
- import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"], al = { key: 1 }, sl = ["id"], ol = ["stop-color"], rl = ["stop-color"], nl = ["stop-color"], il = { key: 2 }, ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = { key: 3 }, vl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], hl = ["x", "y", "fill", "font-size"], yl = ["transform", "font-size", "fill", "font-weight"], dl = { key: 6 }, fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = { key: 7 }, pl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], ml = ["transform", "fill", "font-size", "text-anchor"], bl = ["x", "y", "font-size", "fill", "font-weight"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["d", "stroke", "stroke-width"], Al = ["d", "stroke", "stroke-width"], Cl = ["cx", "cy", "fill", "r"], _l = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Ll = { key: 1 }, $l = ["x", "y", "font-size", "fill", "font-weight"], Sl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Tl = { key: 2 }, Ml = ["x", "y", "font-size", "font-weight", "fill"], zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Nl = {
1
+ import { defineAsyncComponent as R, ref as v, shallowRef as Xe, computed as d, onMounted as wt, onBeforeUnmount as At, toRefs as Ct, watch as ie, watchEffect as _t, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as _, normalizeClass as P, renderSlot as p, createBlock as N, createCommentVNode as h, createElementVNode as L, createVNode as Re, createSlots as Lt, withCtx as m, normalizeProps as Y, guardReactiveProps as D, Fragment as g, renderList as b, toDisplayString as O, Teleport as $t, createTextVNode as St, nextTick as Tt } from "vue";
2
+ import { u as Mt, c as Ye, o as De, f as Be, g as zt, t as Nt, d as Ot, e as It, p as Z, D as Ee, k as B, i as E, X as Pt, l as Ft, j as Xt, I as Rt, F as Yt, E as F, a as Dt, b as Bt, C as J, v as Et, w as Ht, y as jt } from "./index-DrRiscPm.js";
3
+ import { t as He, u as Wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ut, B as Gt } from "./useLoading-D7YHNtLX.js";
5
+ import { u as Vt } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as je } from "./useNestedProp-BXhArS-K.js";
7
+ import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { u as Jt } from "./useTimeLabelCollider-CIsgDrl9.js";
10
+ import Kt from "./Legend-CevCqVZ5.js";
11
+ import Qt from "./Title-CINHji0n.js";
12
+ import el from "./img-CBdOMFyn.js";
13
+ import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const ll = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], ol = ["x", "y", "width", "height"], rl = { key: 1 }, nl = ["id"], il = ["stop-color"], ul = ["stop-color"], cl = ["stop-color"], vl = { key: 2 }, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = { key: 3 }, dl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], fl = ["x", "y", "fill", "font-size"], xl = ["transform", "font-size", "fill", "font-weight"], pl = { key: 6 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = { key: 7 }, bl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], kl = ["transform", "fill", "font-size", "text-anchor"], wl = ["x", "y", "font-size", "fill", "font-weight"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["d", "stroke", "stroke-width"], Ll = ["d", "stroke", "stroke-width"], $l = ["cx", "cy", "fill", "r"], Sl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Tl = { key: 1 }, Ml = ["x", "y", "font-size", "fill", "font-weight"], zl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Nl = { key: 2 }, Ol = ["x", "y", "font-size", "font-weight", "fill"], Il = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Pl = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Ol = ["onClick"], Il = ["innerHTML"], Pl = {
17
+ }, Fl = ["id"], Xl = ["onClick"], Rl = ["innerHTML"], Yl = {
18
18
  __name: "vue-ui-history-plot",
19
19
  props: {
20
20
  config: {
@@ -31,78 +31,80 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend", "selectDatapoint"],
34
- setup(je, { expose: We, emit: Ue }) {
35
- const Ge = X(() => import("./vue-ui-accordion-CPk8wAuj.js")), Ve = X(() => import("./DataTable-ClgCsiJA.js")), qe = X(() => import("./PackageVersion-CD5VH_Al.js")), Ze = X(() => import("./PenAndPaper-D3WRn-G2.js")), Je = X(() => import("./Tooltip-BH3CiANh.js")), Ke = X(() => import("./UserOptions-CKKPgDLV.js")), { vue_ui_history_plot: Qe } = St(), y = je, L = v(null), ue = v(null), ce = v(0), ve = v(null), he = v(0), ye = v(0), de = v(0), $ = Fe(null), F = Fe(null), fe = v(null), E = v(Re()), K = v(!1), Q = v(""), w = v([]), j = v(!1), A = v(null), H = v(!1), xe = v(null), ee = v(null), te = v(null), W = v(null), le = v(null), U = d({
34
+ setup(We, { expose: Ue, emit: Ge }) {
35
+ const Ve = R(() => import("./vue-ui-accordion-s_m_NJzJ.js")), qe = R(() => import("./DataTable-CWzb1j8d.js")), Ze = R(() => import("./PackageVersion-n4qokxnx.js")), Je = R(() => import("./PenAndPaper-C_R9vJkU.js")), Ke = R(() => import("./Tooltip-hfdFRoLp.js")), Qe = R(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_history_plot: et } = Mt(), y = We, S = v(null), ue = v(null), ce = v(0), ve = v(null), he = v(0), ye = v(0), de = v(0), T = Xe(null), X = Xe(null), fe = v(null), $ = v(Ye()), K = v(!1), Q = v(""), w = v([]), j = v(!1), A = v(null), H = v(!1), xe = v(null), pe = v(!1), ee = v(null), te = v(null), W = v(null), le = v(null), U = d({
36
36
  get: () => !!y.dataset && y.dataset.length,
37
37
  set: (t) => t
38
- }), pe = Ue;
39
- kt(be);
40
- const me = d(() => !!e.value.debug);
38
+ }), me = Ge;
39
+ wt(() => {
40
+ pe.value = !0, be();
41
+ });
42
+ const ge = d(() => !!e.value.debug);
41
43
  function be() {
42
- if (Ye(y.dataset) ? (De({
44
+ if (De(y.dataset) ? (Be({
43
45
  componentName: "VueUiHistoryPlot",
44
46
  type: "dataset",
45
- debug: me.value
47
+ debug: ge.value
46
48
  }), se.value = !0) : y.dataset.forEach((t, a) => {
47
- Tt({
49
+ zt({
48
50
  datasetObject: t,
49
51
  requiredAttributes: ["name", "values"]
50
52
  }).forEach((l) => {
51
- U.value = !1, De({
53
+ U.value = !1, Be({
52
54
  componentName: "VueUiHistoryPlot",
53
55
  type: "datasetSerieAttribute",
54
56
  property: l,
55
57
  index: a,
56
- debug: me.value
58
+ debug: ge.value
57
59
  });
58
60
  });
59
- }), Ye(y.dataset) || (se.value = e.value.loading), e.value.responsive) {
60
- const t = Ee(() => {
61
- const { width: a, height: l } = Ht({
62
- chart: L.value,
61
+ }), De(y.dataset) || (se.value = e.value.loading), e.value.responsive) {
62
+ const t = He(() => {
63
+ const { width: a, height: l } = Wt({
64
+ chart: S.value,
63
65
  title: e.value.style.chart.title.text ? ue.value : null,
64
66
  noTitle: fe.value,
65
67
  legend: e.value.style.chart.legend.show ? ve.value : null,
66
68
  source: xe.value
67
69
  });
68
70
  requestAnimationFrame(() => {
69
- f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = P({
71
+ f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
70
72
  relator: Math.min(a, l),
71
73
  adjuster: 600,
72
74
  source: e.value.style.chart.plots.radius,
73
75
  threshold: 3,
74
76
  fallback: 3
75
- }), n.value.indexLabels = P({
77
+ }), n.value.indexLabels = F({
76
78
  relator: Math.min(a, l),
77
79
  adjuster: 600,
78
80
  source: e.value.style.chart.plots.indexLabels.fontSize,
79
81
  threshold: 6,
80
82
  fallback: 6
81
- }), n.value.labels = P({
83
+ }), n.value.labels = F({
82
84
  relator: Math.min(a, l),
83
85
  adjuster: 600,
84
86
  source: e.value.style.chart.plots.labels.fontSize,
85
87
  threshold: 6,
86
88
  fallback: 6
87
- }), n.value.xAxisLabels = P({
89
+ }), n.value.xAxisLabels = F({
88
90
  relator: Math.min(a, l),
89
91
  adjuster: 600,
90
92
  source: e.value.style.chart.axes.x.labels.fontSize,
91
93
  threshold: 6,
92
94
  fallback: 6
93
- }), n.value.xAxisName = P({
95
+ }), n.value.xAxisName = F({
94
96
  relator: Math.min(a, l),
95
97
  adjuster: 600,
96
98
  source: e.value.style.chart.axes.x.name.fontSize,
97
99
  threshold: 6,
98
100
  fallback: 6
99
- }), n.value.yAxisLabels = P({
101
+ }), n.value.yAxisLabels = F({
100
102
  relator: Math.min(a, l),
101
103
  adjuster: 600,
102
104
  source: e.value.style.chart.axes.y.labels.fontSize,
103
105
  threshold: 6,
104
106
  fallback: 6
105
- }), n.value.yAxisName = P({
107
+ }), n.value.yAxisName = F({
106
108
  relator: Math.min(a, l),
107
109
  adjuster: 600,
108
110
  source: e.value.style.chart.axes.y.name.fontSize,
@@ -111,28 +113,28 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
111
113
  })) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
112
114
  });
113
115
  });
114
- $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect()), $.value = new ResizeObserver(t), F.value = L.value.parentNode, $.value.observe(F.value);
116
+ T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect()), T.value = new ResizeObserver(t), X.value = S.value.parentNode, T.value.observe(X.value);
115
117
  }
116
118
  }
117
- wt(() => {
118
- $.value && (F.value && $.value.unobserve(F.value), $.value.disconnect());
119
+ At(() => {
120
+ T.value && (X.value && T.value.unobserve(X.value), T.value.disconnect());
119
121
  });
120
122
  function ae() {
121
- const t = He({
123
+ const t = je({
122
124
  userConfig: y.config,
123
- defaultConfig: Qe
125
+ defaultConfig: et
124
126
  });
125
127
  let a = {};
126
128
  return t.theme ? a = {
127
- ...He({
128
- userConfig: Yt.vue_ui_history_plot[t.theme] || y.config,
129
+ ...je({
130
+ userConfig: Bt.vue_ui_history_plot[t.theme] || y.config,
129
131
  defaultConfig: t
130
132
  }),
131
- customPalette: Rt[t.theme] || Z
133
+ customPalette: Dt[t.theme] || Z
132
134
  } : a = t, y.config && J(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && J(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && J(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && J(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
133
135
  }
134
- const e = v(ae()), { loading: S, FINAL_DATASET: et, manualLoading: se } = jt({
135
- ...At(y),
136
+ const e = v(ae()), { loading: M, FINAL_DATASET: tt, manualLoading: se } = Ut({
137
+ ...Ct(y),
136
138
  FINAL_CONFIG: e,
137
139
  prepareConfig: ae,
138
140
  skeletonDataset: [
@@ -147,7 +149,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
147
149
  ]
148
150
  }
149
151
  ],
150
- skeletonConfig: Mt({
152
+ skeletonConfig: Nt({
151
153
  defaultConfig: e.value,
152
154
  userConfig: {
153
155
  userOptions: { show: !1 },
@@ -199,17 +201,17 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
199
201
  }
200
202
  }
201
203
  })
202
- }), { userOptionsVisible: oe, setUserOptionsVisibility: ge, keepUserOptionState: ke } = Gt({ config: e.value }), { svgRef: we } = Vt({ config: e.value.style.chart.title });
204
+ }), { userOptionsVisible: oe, setUserOptionsVisibility: ke, keepUserOptionState: we } = qt({ config: e.value }), { svgRef: Ae } = Zt({ config: e.value.style.chart.title });
203
205
  ie(() => y.config, (t) => {
204
- S.value || (e.value = ae()), oe.value = !e.value.userOptions.showOnChartHover, be(), ce.value += 1, ye.value += 1, he.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
206
+ M.value || (e.value = ae()), oe.value = !e.value.userOptions.showOnChartHover, be(), ce.value += 1, ye.value += 1, he.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
205
207
  }, { deep: !0 }), ie(() => y.dataset, (t) => {
206
208
  Array.isArray(t) && t.length > 0 && (se.value = !1);
207
209
  }, { deep: !0 });
208
- const { isPrinting: Ae, isImaging: Ce, generatePdf: _e, generateImage: Le } = Ut({
209
- elementId: `history_plot_${E.value}`,
210
+ const { isPrinting: Ce, isImaging: _e, generatePdf: Le, generateImage: $e } = Vt({
211
+ elementId: `history_plot_${$.value}`,
210
212
  fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
211
213
  options: e.value.userOptions.print
212
- }), tt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), lt = d(() => zt(e.value.customPalette)), C = v({
214
+ }), lt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = d(() => Ot(e.value.customPalette)), C = v({
213
215
  showTable: e.value.table.show,
214
216
  showTooltip: e.value.style.chart.tooltip.show
215
217
  });
@@ -222,8 +224,8 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
222
224
  const f = v({
223
225
  height: e.value.style.chart.height,
224
226
  width: e.value.style.chart.width
225
- }), at = d(() => f.value.width), st = d(() => f.value.height);
226
- function ot() {
227
+ }), st = d(() => f.value.width), ot = d(() => f.value.height);
228
+ function rt() {
227
229
  let t = 0;
228
230
  le.value && (t = Array.from(le.value.querySelectorAll("text")).reduce((i, s) => {
229
231
  const k = s.getComputedTextLength();
@@ -232,31 +234,31 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
232
234
  const a = te.value ? te.value.getBoundingClientRect().width : 0;
233
235
  return t + a + (a ? 24 : 0);
234
236
  }
235
- const $e = v(0), rt = Ee((t) => {
236
- $e.value = t;
237
+ const Se = v(0), nt = He((t) => {
238
+ Se.value = t;
237
239
  });
238
- Ct((t) => {
240
+ _t((t) => {
239
241
  const a = W.value;
240
242
  if (!a) return;
241
243
  const l = new ResizeObserver((i) => {
242
- rt(i[0].contentRect.height);
244
+ nt(i[0].contentRect.height);
243
245
  });
244
246
  l.observe(a), t(() => l.disconnect());
245
247
  });
246
- const Se = d(() => {
248
+ const Te = d(() => {
247
249
  let t = 0;
248
250
  ee.value && (t = ee.value.getBBox().height + n.value.xAxisName / 2);
249
251
  let a = 0;
250
- return W.value && (a = $e.value), t + a;
252
+ return W.value && (a = Se.value), t + a;
251
253
  }), c = d(() => {
252
- const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = ot(), i = e.value.style.chart.plots.radius;
254
+ const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = rt(), i = e.value.style.chart.plots.radius;
253
255
  return {
254
256
  left: t + l + e.value.style.chart.axes.y.name.offsetX,
255
257
  top: a + i,
256
258
  right: f.value.width - e.value.style.chart.padding.right - i - e.value.style.chart.axes.y.name.offsetX,
257
- bottom: f.value.height - e.value.style.chart.padding.bottom - Se.value - i - e.value.style.chart.axes.x.name.offsetY,
259
+ bottom: f.value.height - e.value.style.chart.padding.bottom - Te.value - i - e.value.style.chart.axes.x.name.offsetY,
258
260
  width: f.value.width - t - e.value.style.chart.padding.right - l - i - e.value.style.chart.axes.y.name.offsetX,
259
- height: f.value.height - a - e.value.style.chart.padding.bottom - Se.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
261
+ height: f.value.height - a - e.value.style.chart.padding.bottom - Te.value - i * 2 - e.value.style.chart.axes.x.name.offsetY
260
262
  };
261
263
  }), n = v({
262
264
  plots: e.value.style.chart.plots.radius,
@@ -266,24 +268,24 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
266
268
  xAxisName: e.value.style.chart.axes.x.name.fontSize,
267
269
  yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
268
270
  yAxisName: e.value.style.chart.axes.y.name.fontSize
269
- }), T = d(() => et.value.map((t, a) => ({
271
+ }), z = d(() => tt.value.map((t, a) => ({
270
272
  ...t,
271
- color: t.color ? Nt(t.color) : lt.value[a] || Z[a] || Z[a % Z.length],
273
+ color: t.color ? It(t.color) : at.value[a] || Z[a] || Z[a % Z.length],
272
274
  seriesIndex: a
273
- }))), nt = d(() => Math.max(...T.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), it = d(() => {
274
- const t = Math.min(...T.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
275
+ }))), it = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), ut = d(() => {
276
+ const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
275
277
  return t < 0 ? t : 0;
276
- }), ut = d(() => Math.max(...T.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), ct = d(() => {
277
- const t = Math.min(...T.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
278
+ }), ct = d(() => Math.max(...z.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), vt = d(() => {
279
+ const t = Math.min(...z.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
278
280
  return t < 0 ? t : 0;
279
281
  }), x = d(() => {
280
- const t = Be(
281
- e.value.style.chart.axes.x.scaleMin === null ? it.value : e.value.style.chart.axes.x.scaleMin,
282
- e.value.style.chart.axes.x.scaleMax === null ? nt.value : e.value.style.chart.axes.x.scaleMax,
282
+ const t = Ee(
283
+ e.value.style.chart.axes.x.scaleMin === null ? ut.value : e.value.style.chart.axes.x.scaleMin,
284
+ e.value.style.chart.axes.x.scaleMax === null ? it.value : e.value.style.chart.axes.x.scaleMax,
283
285
  e.value.style.chart.axes.x.ticks
284
- ), a = Be(
285
- e.value.style.chart.axes.y.scaleMin === null ? ct.value : e.value.style.chart.axes.y.scaleMin,
286
- e.value.style.chart.axes.y.scaleMax === null ? ut.value : e.value.style.chart.axes.y.scaleMax,
286
+ ), a = Ee(
287
+ e.value.style.chart.axes.y.scaleMin === null ? vt.value : e.value.style.chart.axes.y.scaleMin,
288
+ e.value.style.chart.axes.y.scaleMax === null ? ct.value : e.value.style.chart.axes.y.scaleMax,
287
289
  e.value.style.chart.axes.y.ticks
288
290
  );
289
291
  return {
@@ -303,24 +305,24 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
303
305
  }))
304
306
  };
305
307
  });
306
- function vt(t) {
308
+ function ht(t) {
307
309
  const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
308
310
  return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
309
311
  }
310
- function ht(t) {
312
+ function yt(t) {
311
313
  const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
312
314
  return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
313
315
  }
314
- const N = d(() => T.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
316
+ const I = d(() => z.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
315
317
  const l = t.values.map((s, k) => ({
316
318
  valueX: s.x,
317
319
  valueY: s.y,
318
320
  label: s.label,
319
- x: vt(s.x),
320
- y: ht(s.y),
321
+ x: ht(s.x),
322
+ y: yt(s.y),
321
323
  color: t.color,
322
324
  seriesName: t.name,
323
- id: Re()
325
+ id: Ye()
324
326
  })), i = l.map((s) => `${s.x},${s.y} `).join("").trim();
325
327
  return {
326
328
  ...t,
@@ -328,16 +330,16 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
328
330
  path: `M${i}`
329
331
  };
330
332
  }));
331
- function Te(t) {
333
+ function Me(t) {
332
334
  w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
333
335
  }
334
- const Me = d(() => T.value.map((t) => ({
336
+ const ze = d(() => z.value.map((t) => ({
335
337
  ...t,
336
338
  opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
337
- segregate: () => Te(t.seriesIndex),
339
+ segregate: () => Me(t.seriesIndex),
338
340
  isSegregated: w.value.includes(t.seriesIndex),
339
341
  shape: "circle"
340
- }))), yt = d(() => ({
342
+ }))), dt = d(() => ({
341
343
  cy: "history-plot-div-legend",
342
344
  backgroundColor: e.value.style.chart.legend.backgroundColor,
343
345
  color: e.value.style.chart.legend.color,
@@ -345,33 +347,33 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
345
347
  paddingBottom: 12,
346
348
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
347
349
  }));
348
- function dt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
349
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), pe("selectDatapoint", t);
350
+ function ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
351
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), me("selectDatapoint", t);
350
352
  }
351
- function ze(t) {
352
- pe("selectLegend", {
353
+ function Ne(t) {
354
+ me("selectLegend", {
353
355
  ...t,
354
356
  isSegregated: !t.isSegregated,
355
357
  opacity: t.isSegregated ? 1 : 0.5
356
358
  });
357
359
  }
358
- function Ne(t) {
360
+ function Oe(t) {
359
361
  j.value = t, de.value += 1;
360
362
  }
361
363
  const re = v(null);
362
- function ft({ datapoint: t, plotIndex: a, seriesIndex: l }) {
364
+ function xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
363
365
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), K.value = !1, A.value = null;
364
366
  }
365
- function xt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
366
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: T.value }, A.value = t;
367
+ function pt({ datapoint: t, plotIndex: a, seriesIndex: l }) {
368
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), re.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: z.value }, A.value = t;
367
369
  const i = e.value.style.chart.tooltip.customFormat;
368
- if (H.value = !1, Et(i))
370
+ if (H.value = !1, jt(i))
369
371
  try {
370
372
  const s = i({
371
373
  seriesIndex: l,
372
374
  datapoint: t,
373
375
  plotIndex: a,
374
- series: T.value,
376
+ series: z.value,
375
377
  config: e.value
376
378
  });
377
379
  typeof s == "string" && (Q.value = s, H.value = !0);
@@ -380,19 +382,19 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
380
382
  }
381
383
  if (!H.value) {
382
384
  let s = "";
383
- s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.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="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${D(
385
+ s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${e.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="${t.color}"/></svg><span>${t.seriesName}</span></div>`, s += `<div>${t.label}</div>`, s += `<div>${e.value.style.chart.axes.x.name.text || "x"}: ${B(
384
386
  e.value.style.chart.axes.x.labels.formatter,
385
387
  t.valueX,
386
- B({
388
+ E({
387
389
  p: e.value.style.chart.axes.x.labels.prefix,
388
390
  v: t.valueX,
389
391
  s: e.value.style.chart.axes.x.labels.suffix,
390
392
  r: e.value.style.chart.axes.x.labels.rounding
391
393
  })
392
- )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${D(
394
+ )}</div>`, s += `<div>${e.value.style.chart.axes.y.name.text || "y"}: ${B(
393
395
  e.value.style.chart.axes.y.labels.formatter,
394
396
  t.valueY,
395
- B({
397
+ E({
396
398
  p: e.value.style.chart.axes.y.labels.prefix,
397
399
  v: t.valueY,
398
400
  s: e.value.style.chart.axes.y.labels.suffix,
@@ -402,7 +404,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
402
404
  }
403
405
  K.value = !0;
404
406
  }
405
- d(() => ({ head: N.value.map((a) => ({
407
+ d(() => ({ head: I.value.map((a) => ({
406
408
  name: a.name,
407
409
  color: a.color
408
410
  })) }));
@@ -412,26 +414,26 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
412
414
  e.value.table.columnNames.datapoint,
413
415
  e.value.table.columnNames.x,
414
416
  e.value.table.columnNames.y
415
- ], a = N.value.flatMap((i) => i.plots.map((s) => [
417
+ ], a = I.value.flatMap((i) => i.plots.map((s) => [
416
418
  {
417
419
  color: s.color,
418
420
  name: s.seriesName
419
421
  },
420
422
  s.label,
421
- D(
423
+ B(
422
424
  e.value.style.chart.axes.x.labels.formatter,
423
425
  s.valueX,
424
- B({
426
+ E({
425
427
  p: e.value.style.chart.axes.x.labels.prefix,
426
428
  v: s.valueX,
427
429
  s: e.value.style.chart.axes.x.labels.suffix,
428
430
  r: e.value.style.chart.axes.x.labels.rounding
429
431
  })
430
432
  ),
431
- D(
433
+ B(
432
434
  e.value.style.chart.axes.y.labels.formatter,
433
435
  s.valueY,
434
- B({
436
+ E({
435
437
  p: e.value.style.chart.axes.y.labels.prefix,
436
438
  v: s.valueY,
437
439
  s: e.value.style.chart.axes.y.labels.suffix,
@@ -458,14 +460,14 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
458
460
  colNames: t
459
461
  };
460
462
  });
461
- function Oe(t = null) {
462
- $t(() => {
463
+ function Ie(t = null) {
464
+ Tt(() => {
463
465
  const a = [
464
466
  [e.value.table.columnNames.series],
465
467
  [e.value.table.columnNames.datapoint],
466
468
  [e.value.table.columnNames.x],
467
469
  [e.value.table.columnNames.y]
468
- ], l = N.value.flatMap((k) => k.plots.map((q) => [
470
+ ], l = I.value.flatMap((k) => k.plots.map((q) => [
469
471
  [q.seriesName],
470
472
  [q.label],
471
473
  [q.valueX],
@@ -474,8 +476,8 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
474
476
  [e.value.style.chart.title.text],
475
477
  [e.value.style.chart.title.subtitle.text],
476
478
  a
477
- ].concat(l), s = Dt(i);
478
- t ? t(s) : Bt({
479
+ ].concat(l), s = Et(i);
480
+ t ? t(s) : Ht({
479
481
  csvContent: s,
480
482
  title: e.value.style.chart.title.text || "vue-ui-history-plot"
481
483
  });
@@ -485,18 +487,18 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
485
487
  function ne() {
486
488
  V.value = !V.value;
487
489
  }
488
- function Ie() {
490
+ function Pe() {
489
491
  C.value.showTable = !C.value.showTable;
490
492
  }
491
- function Pe() {
493
+ function Fe() {
492
494
  C.value.showTooltip = !C.value.showTooltip;
493
495
  }
494
- function pt() {
495
- return N.value;
496
+ function mt() {
497
+ return I.value;
496
498
  }
497
- async function mt({ scale: t = 2 } = {}) {
498
- if (!L.value) return;
499
- const { width: a, height: l } = L.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await Kt({ domElement: L.value, base64: !0, img: !0, scale: t });
499
+ async function gt({ scale: t = 2 } = {}) {
500
+ if (!S.value) return;
501
+ const { width: a, height: l } = S.value.getBoundingClientRect(), i = a / l, { imageUri: s, base64: k } = await el({ domElement: S.value, base64: !0, img: !0, scale: t });
500
502
  return {
501
503
  imageUri: s,
502
504
  base64: k,
@@ -506,48 +508,48 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
506
508
  aspectRatio: i
507
509
  };
508
510
  }
509
- const bt = d(() => x.value.tickX), gt = d(() => ({ start: 0, end: x.value.tickX.length }));
510
- return qt({
511
+ const bt = d(() => x.value.tickX), kt = d(() => ({ start: 0, end: x.value.tickX.length }));
512
+ return Jt({
511
513
  timeLabelsEls: W,
512
514
  timeLabels: bt,
513
- slicer: gt,
515
+ slicer: kt,
514
516
  configRef: e,
515
517
  rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
516
518
  autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
517
519
  isAutoSize: !1,
518
- width: at,
519
- height: st,
520
+ width: st,
521
+ height: ot,
520
522
  targetClass: ".vue-ui-history-plot-x-axis-scale",
521
523
  rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
522
- }), We({
523
- getData: pt,
524
- getImage: mt,
525
- generatePdf: _e,
526
- generateCsv: Oe,
527
- generateImage: Le,
528
- toggleTable: Ie,
529
- toggleTooltip: Pe,
524
+ }), Ue({
525
+ getData: mt,
526
+ getImage: gt,
527
+ generatePdf: Le,
528
+ generateCsv: Ie,
529
+ generateImage: $e,
530
+ toggleTable: Pe,
531
+ toggleTooltip: Fe,
530
532
  toggleAnnotator: ne,
531
- toggleFullscreen: Ne
533
+ toggleFullscreen: Oe
532
534
  }), (t, a) => (o(), r("div", {
533
- id: `history_plot_${E.value}`,
535
+ id: `history_plot_${$.value}`,
534
536
  ref_key: "historyPlotChart",
535
- ref: L,
536
- class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
537
+ ref: S,
538
+ class: P({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": j.value }),
537
539
  style: _(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
538
- onMouseenter: a[2] || (a[2] = () => u(ge)(!0)),
539
- onMouseleave: a[3] || (a[3] = () => u(ge)(!1))
540
+ onMouseenter: a[2] || (a[2] = () => u(ke)(!0)),
541
+ onMouseleave: a[3] || (a[3] = () => u(ke)(!1))
540
542
  }, [
541
543
  p(t.$slots, "userConfig", {}, void 0, !0),
542
- e.value.userOptions.buttons.annotator ? (o(), I(u(Ze), {
544
+ e.value.userOptions.buttons.annotator ? (o(), N(u(Je), {
543
545
  key: 0,
544
- svgRef: u(we),
546
+ svgRef: u(Ae),
545
547
  backgroundColor: e.value.style.chart.backgroundColor,
546
548
  color: e.value.style.chart.color,
547
549
  active: V.value,
548
550
  onClose: ne
549
551
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
550
- tt.value ? (o(), r("div", {
552
+ lt.value ? (o(), r("div", {
551
553
  key: 1,
552
554
  ref_key: "noTitle",
553
555
  ref: fe,
@@ -561,7 +563,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
561
563
  class: "vue-ui-xy-title",
562
564
  style: _(`font-family:${e.value.style.fontFamily}`)
563
565
  }, [
564
- (o(), I(Jt, {
566
+ (o(), N(Qt, {
565
567
  key: `title_${ce.value}`,
566
568
  config: {
567
569
  title: {
@@ -575,14 +577,17 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
575
577
  }
576
578
  }, null, 8, ["config"]))
577
579
  ], 4)) : h("", !0),
578
- e.value.userOptions.show && U.value && (u(ke) || u(oe)) ? (o(), I(u(Ke), {
580
+ L("div", {
581
+ id: `legend-top-${$.value}`
582
+ }, null, 8, al),
583
+ e.value.userOptions.show && U.value && (u(we) || u(oe)) ? (o(), N(u(Qe), {
579
584
  ref: "details",
580
585
  key: `user_option_${de.value}`,
581
586
  backgroundColor: e.value.style.chart.backgroundColor,
582
587
  color: e.value.style.chart.color,
583
- isPrinting: u(Ae),
584
- isImaging: u(Ce),
585
- uid: E.value,
588
+ isPrinting: u(Ce),
589
+ isImaging: u(_e),
590
+ uid: $.value,
586
591
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
587
592
  hasPdf: e.value.userOptions.buttons.pdf,
588
593
  hasImg: e.value.userOptions.buttons.img,
@@ -591,7 +596,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
591
596
  hasLabel: !1,
592
597
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
593
598
  isFullscreen: j.value,
594
- chartElement: L.value,
599
+ chartElement: S.value,
595
600
  position: e.value.userOptions.position,
596
601
  isTooltip: C.value.showTooltip,
597
602
  titles: { ...e.value.userOptions.buttonTitles },
@@ -599,21 +604,21 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
599
604
  isAnnotation: V.value,
600
605
  callbacks: e.value.userOptions.callbacks,
601
606
  printScale: e.value.userOptions.print.scale,
602
- onToggleFullscreen: Ne,
603
- onGeneratePdf: u(_e),
604
- onGenerateCsv: Oe,
605
- onGenerateImage: u(Le),
606
- onToggleTable: Ie,
607
- onToggleTooltip: Pe,
607
+ onToggleFullscreen: Oe,
608
+ onGeneratePdf: u(Le),
609
+ onGenerateCsv: Ie,
610
+ onGenerateImage: u($e),
611
+ onToggleTable: Pe,
612
+ onToggleTooltip: Fe,
608
613
  onToggleAnnotator: ne,
609
614
  style: _({
610
- visibility: u(ke) ? u(oe) ? "visible" : "hidden" : "visible"
615
+ visibility: u(we) ? u(oe) ? "visible" : "hidden" : "visible"
611
616
  })
612
- }, _t({ _: 2 }, [
617
+ }, Lt({ _: 2 }, [
613
618
  t.$slots.menuIcon ? {
614
619
  name: "menuIcon",
615
620
  fn: m(({ isOpen: l, color: i }) => [
616
- p(t.$slots, "menuIcon", R(Y({ isOpen: l, color: i })), void 0, !0)
621
+ p(t.$slots, "menuIcon", Y(D({ isOpen: l, color: i })), void 0, !0)
617
622
  ]),
618
623
  key: "0"
619
624
  } : void 0,
@@ -655,26 +660,26 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
655
660
  t.$slots.optionFullscreen ? {
656
661
  name: "optionFullscreen",
657
662
  fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
658
- p(t.$slots, "optionFullscreen", R(Y({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
663
+ p(t.$slots, "optionFullscreen", Y(D({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
659
664
  ]),
660
665
  key: "6"
661
666
  } : void 0,
662
667
  t.$slots.optionAnnotator ? {
663
668
  name: "optionAnnotator",
664
669
  fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
665
- p(t.$slots, "optionAnnotator", R(Y({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
670
+ p(t.$slots, "optionAnnotator", Y(D({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
666
671
  ]),
667
672
  key: "7"
668
673
  } : void 0
669
674
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
670
675
  (o(), r("svg", {
671
676
  ref_key: "svgRef",
672
- ref: we,
673
- xmlns: u(Ot),
677
+ ref: Ae,
678
+ xmlns: u(Pt),
674
679
  viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
675
680
  style: _(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
676
681
  }, [
677
- Xe(u(qe)),
682
+ Re(u(Ze)),
678
683
  t.$slots["chart-background"] ? (o(), r("foreignObject", {
679
684
  key: 0,
680
685
  x: c.value.left,
@@ -686,28 +691,28 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
686
691
  }
687
692
  }, [
688
693
  p(t.$slots, "chart-background", {}, void 0, !0)
689
- ], 8, ll)) : h("", !0),
690
- e.value.style.chart.plots.gradient.show ? (o(), r("defs", al, [
691
- (o(!0), r(b, null, g(N.value, (l, i) => (o(), r("radialGradient", {
692
- id: `gradient_${i}_${E.value}`,
694
+ ], 8, ol)) : h("", !0),
695
+ e.value.style.chart.plots.gradient.show ? (o(), r("defs", rl, [
696
+ (o(!0), r(g, null, b(I.value, (l, i) => (o(), r("radialGradient", {
697
+ id: `gradient_${i}_${$.value}`,
693
698
  fy: "30%"
694
699
  }, [
695
- M("stop", {
700
+ L("stop", {
696
701
  offset: "10%",
697
- "stop-color": u(It)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
698
- }, null, 8, ol),
699
- M("stop", {
702
+ "stop-color": u(Ft)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
703
+ }, null, 8, il),
704
+ L("stop", {
700
705
  offset: "90%",
701
- "stop-color": u(Pt)(l.color, 0.1)
702
- }, null, 8, rl),
703
- M("stop", {
706
+ "stop-color": u(Xt)(l.color, 0.1)
707
+ }, null, 8, ul),
708
+ L("stop", {
704
709
  offset: "100%",
705
710
  "stop-color": l.color
706
- }, null, 8, nl)
707
- ], 8, sl))), 256))
711
+ }, null, 8, cl)
712
+ ], 8, nl))), 256))
708
713
  ])) : h("", !0),
709
- e.value.style.chart.grid.verticalLines.show ? (o(), r("g", il, [
710
- (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
714
+ e.value.style.chart.grid.verticalLines.show ? (o(), r("g", vl, [
715
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
711
716
  x1: l.x,
712
717
  x2: l.x,
713
718
  y1: l.y1,
@@ -715,10 +720,10 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
715
720
  stroke: e.value.style.chart.grid.verticalLines.stroke,
716
721
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
717
722
  "stroke-linecap": "round"
718
- }, null, 8, ul))), 256))
723
+ }, null, 8, hl))), 256))
719
724
  ])) : h("", !0),
720
- e.value.style.chart.axes.y.labels.show ? (o(), r("g", cl, [
721
- (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
725
+ e.value.style.chart.axes.y.labels.show ? (o(), r("g", yl, [
726
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
722
727
  stroke: e.value.style.chart.grid.verticalLines.stroke,
723
728
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
724
729
  "stroke-linecap": "round",
@@ -726,29 +731,29 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
726
731
  x2: c.value.left,
727
732
  y1: l.y,
728
733
  y2: l.y
729
- }, null, 8, vl))), 256))
734
+ }, null, 8, dl))), 256))
730
735
  ])) : h("", !0),
731
736
  e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
732
737
  key: 4,
733
738
  ref_key: "yAxisScales",
734
739
  ref: le
735
740
  }, [
736
- (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("text", {
741
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("text", {
737
742
  x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
738
743
  y: l.y + n.value.yAxisLabels / 3,
739
744
  fill: e.value.style.chart.axes.y.labels.color,
740
745
  "font-size": n.value.yAxisLabels,
741
746
  "text-anchor": "end"
742
- }, z(u(D)(
747
+ }, O(u(B)(
743
748
  e.value.style.chart.axes.y.labels.formatter,
744
749
  l.value,
745
- u(B)({
750
+ u(E)({
746
751
  p: e.value.style.chart.axes.y.labels.prefix,
747
752
  v: l.value,
748
753
  s: e.value.style.chart.axes.y.labels.suffix,
749
754
  r: e.value.style.chart.axes.y.labels.rounding
750
755
  })
751
- )), 9, hl))), 256))
756
+ )), 9, fl))), 256))
752
757
  ], 512)) : h("", !0),
753
758
  e.value.style.chart.axes.y.name.text ? (o(), r("text", {
754
759
  key: 5,
@@ -759,9 +764,9 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
759
764
  fill: e.value.style.chart.axes.y.name.color,
760
765
  "font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
761
766
  "text-anchor": "middle"
762
- }, z(e.value.style.chart.axes.y.name.text), 9, yl)) : h("", !0),
763
- e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", dl, [
764
- (o(!0), r(b, null, g(x.value.tickY, (l) => (o(), r("line", {
767
+ }, O(e.value.style.chart.axes.y.name.text), 9, xl)) : h("", !0),
768
+ e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", pl, [
769
+ (o(!0), r(g, null, b(x.value.tickY, (l) => (o(), r("line", {
765
770
  x1: l.x1,
766
771
  x2: l.x2,
767
772
  y1: l.y,
@@ -769,10 +774,10 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
769
774
  stroke: e.value.style.chart.grid.horizontalLines.stroke,
770
775
  "stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
771
776
  "stroke-linecap": "round"
772
- }, null, 8, fl))), 256))
777
+ }, null, 8, ml))), 256))
773
778
  ])) : h("", !0),
774
- e.value.style.chart.axes.x.labels.show ? (o(), r("g", xl, [
775
- (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("line", {
779
+ e.value.style.chart.axes.x.labels.show ? (o(), r("g", gl, [
780
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("line", {
776
781
  stroke: e.value.style.chart.grid.verticalLines.stroke,
777
782
  "stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
778
783
  "stroke-linecap": "round",
@@ -780,29 +785,29 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
780
785
  x2: l.x,
781
786
  y1: c.value.bottom,
782
787
  y2: c.value.bottom + 5
783
- }, null, 8, pl))), 256))
788
+ }, null, 8, bl))), 256))
784
789
  ])) : h("", !0),
785
790
  e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
786
791
  key: 8,
787
792
  ref_key: "xAxisScales",
788
793
  ref: W
789
794
  }, [
790
- (o(!0), r(b, null, g(x.value.tickX, (l) => (o(), r("text", {
795
+ (o(!0), r(g, null, b(x.value.tickX, (l) => (o(), r("text", {
791
796
  class: "vue-ui-history-plot-x-axis-scale",
792
797
  transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
793
798
  fill: e.value.style.chart.axes.x.labels.color,
794
799
  "font-size": n.value.xAxisLabels,
795
800
  "text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
796
- }, z(u(D)(
801
+ }, O(u(B)(
797
802
  e.value.style.chart.axes.x.labels.formatter,
798
803
  l.value,
799
- u(B)({
804
+ u(E)({
800
805
  p: e.value.style.chart.axes.x.labels.prefix,
801
806
  v: l.value,
802
807
  s: e.value.style.chart.axes.x.labels.suffix,
803
808
  r: e.value.style.chart.axes.x.labels.rounding
804
809
  })
805
- )), 9, ml))), 256))
810
+ )), 9, kl))), 256))
806
811
  ], 512)) : h("", !0),
807
812
  e.value.style.chart.axes.x.name.text ? (o(), r("text", {
808
813
  key: 9,
@@ -814,7 +819,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
814
819
  fill: e.value.style.chart.axes.x.name.color,
815
820
  "font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
816
821
  "text-anchor": "middle"
817
- }, z(e.value.style.chart.axes.x.name.text), 9, bl)) : h("", !0),
822
+ }, O(e.value.style.chart.axes.x.name.text), 9, wl)) : h("", !0),
818
823
  e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
819
824
  key: 10,
820
825
  x1: c.value.left,
@@ -824,7 +829,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
824
829
  stroke: e.value.style.chart.grid.xAxis.stroke,
825
830
  "stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
826
831
  "stroke-linecap": "round"
827
- }, null, 8, gl)) : h("", !0),
832
+ }, null, 8, Al)) : h("", !0),
828
833
  e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
829
834
  key: 11,
830
835
  x1: c.value.left,
@@ -834,55 +839,55 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
834
839
  stroke: e.value.style.chart.grid.yAxis.stroke,
835
840
  "stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
836
841
  "stroke-linecap": "round"
837
- }, null, 8, kl)) : h("", !0),
838
- (o(!0), r(b, null, g(N.value, (l, i) => (o(), r("g", null, [
842
+ }, null, 8, Cl)) : h("", !0),
843
+ (o(!0), r(g, null, b(I.value, (l, i) => (o(), r("g", null, [
839
844
  e.value.style.chart.paths.show ? (o(), r("g", {
840
845
  key: 0,
841
846
  style: _({
842
847
  opacity: A.value === null ? 1 : 0.3
843
848
  })
844
849
  }, [
845
- M("path", {
850
+ L("path", {
846
851
  d: l.path,
847
852
  stroke: e.value.style.chart.backgroundColor,
848
853
  "stroke-width": e.value.style.chart.paths.strokeWidth + 4,
849
854
  fill: "none",
850
855
  "stroke-linecap": "round",
851
856
  "stroke-linejoin": "round",
852
- class: O({ animated: e.value.useCssAnimation && !u(S) })
853
- }, null, 10, wl),
854
- M("path", {
857
+ class: P({ animated: e.value.useCssAnimation && !u(M) })
858
+ }, null, 10, _l),
859
+ L("path", {
855
860
  d: l.path,
856
861
  stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
857
862
  "stroke-width": e.value.style.chart.paths.strokeWidth,
858
863
  fill: "none",
859
864
  "stroke-linecap": "round",
860
865
  "stroke-linejoin": "round",
861
- class: O({ animated: e.value.useCssAnimation && !u(S) })
862
- }, null, 10, Al)
866
+ class: P({ animated: e.value.useCssAnimation && !u(M) })
867
+ }, null, 10, Ll)
863
868
  ], 4)) : h("", !0),
864
- (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
869
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
865
870
  cx: s.x,
866
871
  cy: s.y,
867
872
  fill: e.value.style.chart.backgroundColor,
868
873
  r: n.value.plots,
869
874
  stroke: "none"
870
- }, null, 8, Cl))), 256)),
871
- (o(!0), r(b, null, g(l.plots, (s) => (o(), r("circle", {
875
+ }, null, 8, $l))), 256)),
876
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("circle", {
872
877
  cx: s.x,
873
878
  cy: s.y,
874
- fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${E.value})` : s.color,
879
+ fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${i}_${$.value})` : s.color,
875
880
  r: n.value.plots,
876
881
  stroke: e.value.style.chart.plots.stroke,
877
882
  "stroke-width": e.value.style.chart.plots.strokeWidth,
878
- class: O({ animated: e.value.useCssAnimation && !u(S) }),
883
+ class: P({ animated: e.value.useCssAnimation && !u(M) }),
879
884
  style: _({
880
885
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
881
886
  transition: "opacity 0.2s ease-in-out"
882
887
  })
883
- }, null, 14, _l))), 256)),
884
- e.value.style.chart.plots.labels.show ? (o(), r("g", Ll, [
885
- (o(!0), r(b, null, g(l.plots, (s) => (o(), r("g", null, [
888
+ }, null, 14, Sl))), 256)),
889
+ e.value.style.chart.plots.labels.show ? (o(), r("g", Tl, [
890
+ (o(!0), r(g, null, b(l.plots, (s) => (o(), r("g", null, [
886
891
  String(s.label).includes(`
887
892
  `) ? (o(), r("text", {
888
893
  key: 1,
@@ -892,19 +897,19 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
892
897
  fill: e.value.style.chart.plots.labels.color,
893
898
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
894
899
  "text-anchor": "middle",
895
- class: O({ animated: e.value.useCssAnimation && !u(S) }),
900
+ class: P({ animated: e.value.useCssAnimation && !u(M) }),
896
901
  style: _({
897
902
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
898
903
  transition: "opacity 0.2s ease-in-out"
899
904
  }),
900
- innerHTML: u(Ft)({
905
+ innerHTML: u(Rt)({
901
906
  content: String(s.label),
902
907
  fontSize: n.value.labels,
903
908
  fill: e.value.style.chart.plots.labels.color,
904
909
  x: s.x + e.value.style.chart.plots.labels.offsetX,
905
910
  y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
906
911
  })
907
- }, null, 14, Sl)) : (o(), r("text", {
912
+ }, null, 14, zl)) : (o(), r("text", {
908
913
  key: 0,
909
914
  x: s.x + e.value.style.chart.plots.labels.offsetX,
910
915
  y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
@@ -912,94 +917,102 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
912
917
  fill: e.value.style.chart.plots.labels.color,
913
918
  "font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
914
919
  "text-anchor": "middle",
915
- class: O({ animated: e.value.useCssAnimation && !u(S) }),
920
+ class: P({ animated: e.value.useCssAnimation && !u(M) }),
916
921
  style: _({
917
922
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
918
923
  transition: "opacity 0.2s ease-in-out"
919
924
  })
920
- }, z(s.label), 15, $l))
925
+ }, O(s.label), 15, Ml))
921
926
  ]))), 256))
922
927
  ])) : h("", !0),
923
- e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Tl, [
924
- (o(!0), r(b, null, g(l.plots, (s, k) => (o(), r("text", {
928
+ e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Nl, [
929
+ (o(!0), r(g, null, b(l.plots, (s, k) => (o(), r("text", {
925
930
  x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
926
931
  y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
927
932
  "font-size": n.value.indexLabels,
928
933
  "font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
929
- fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Xt)(l.color) : e.value.style.chart.plots.indexLabels.color,
934
+ fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? u(Yt)(l.color) : e.value.style.chart.plots.indexLabels.color,
930
935
  "text-anchor": "middle",
931
- class: O({ animated: e.value.useCssAnimation && !u(S) }),
936
+ class: P({ animated: e.value.useCssAnimation && !u(M) }),
932
937
  style: _({
933
938
  opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
934
939
  transition: "opacity 0.2s ease-in-out"
935
940
  })
936
- }, z(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ml))), 256))
941
+ }, O(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Ol))), 256))
937
942
  ])) : h("", !0)
938
943
  ]))), 256)),
939
- (o(!0), r(b, null, g(N.value, (l) => (o(), r("g", null, [
940
- (o(!0), r(b, null, g(l.plots, (i, s) => (o(), r("circle", {
944
+ (o(!0), r(g, null, b(I.value, (l) => (o(), r("g", null, [
945
+ (o(!0), r(g, null, b(l.plots, (i, s) => (o(), r("circle", {
941
946
  cx: i.x,
942
947
  cy: i.y,
943
948
  fill: "transparent",
944
949
  r: n.value.plots,
945
950
  stroke: "none",
946
- onMouseenter: (k) => xt({
951
+ onMouseenter: (k) => pt({
947
952
  datapoint: i,
948
953
  plotIndex: s,
949
954
  seriesIndex: l.seriesIndex
950
955
  }),
951
- onMouseleave: (k) => ft({
956
+ onMouseleave: (k) => xt({
952
957
  datapoint: i,
953
958
  plotIndex: s,
954
959
  seriesIndex: l.seriesIndex
955
960
  }),
956
- onClick: (k) => dt({
961
+ onClick: (k) => ft({
957
962
  datapoint: i,
958
963
  plotIndex: s,
959
964
  seriesIndex: l.seriesIndex
960
965
  })
961
- }, null, 40, zl))), 256))
966
+ }, null, 40, Il))), 256))
962
967
  ]))), 256)),
963
968
  p(t.$slots, "svg", { svg: f.value }, void 0, !0)
964
- ], 12, tl)),
965
- t.$slots.watermark ? (o(), r("div", Nl, [
966
- p(t.$slots, "watermark", R(Y({ isPrinting: u(Ae) || u(Ce) })), void 0, !0)
969
+ ], 12, sl)),
970
+ t.$slots.watermark ? (o(), r("div", Pl, [
971
+ p(t.$slots, "watermark", Y(D({ isPrinting: u(Ce) || u(_e) })), void 0, !0)
967
972
  ])) : h("", !0),
968
- M("div", {
969
- ref_key: "chartLegend",
970
- ref: ve
973
+ L("div", {
974
+ id: `legend-bottom-${$.value}`
975
+ }, null, 8, Fl),
976
+ pe.value ? (o(), N($t, {
977
+ key: 5,
978
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
971
979
  }, [
972
- e.value.style.chart.legend.show && U.value ? (o(), I(Zt, {
973
- key: `legend_${he.value}`,
974
- legendSet: Me.value,
975
- config: yt.value,
976
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
977
- Te(l.seriesIndex), ze(l);
978
- })
979
- }, {
980
- item: m(({ legend: l, index: i }) => [
981
- M("div", {
982
- onClick: (s) => {
983
- l.segregate(), ze(l);
984
- },
985
- style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
986
- }, z(l.name), 13, Ol)
987
- ]),
988
- _: 1
989
- }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
990
- key: 1,
991
- legend: Me.value
992
- }, void 0, !0)
993
- ], 512),
980
+ L("div", {
981
+ ref_key: "chartLegend",
982
+ ref: ve
983
+ }, [
984
+ e.value.style.chart.legend.show && U.value ? (o(), N(Kt, {
985
+ key: `legend_${he.value}`,
986
+ legendSet: ze.value,
987
+ config: dt.value,
988
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
989
+ Me(l.seriesIndex), Ne(l);
990
+ })
991
+ }, {
992
+ item: m(({ legend: l, index: i }) => [
993
+ L("div", {
994
+ onClick: (s) => {
995
+ l.segregate(), Ne(l);
996
+ },
997
+ style: _(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
998
+ }, O(l.name), 13, Xl)
999
+ ]),
1000
+ _: 1
1001
+ }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
1002
+ key: 1,
1003
+ legend: ze.value
1004
+ }, void 0, !0)
1005
+ ], 512)
1006
+ ], 8, ["to"])) : h("", !0),
994
1007
  t.$slots.source ? (o(), r("div", {
995
- key: 5,
1008
+ key: 6,
996
1009
  ref_key: "source",
997
1010
  ref: xe,
998
1011
  dir: "auto"
999
1012
  }, [
1000
1013
  p(t.$slots, "source", {}, void 0, !0)
1001
1014
  ], 512)) : h("", !0),
1002
- Xe(u(Je), {
1015
+ Re(u(Ke), {
1003
1016
  show: C.value.showTooltip && K.value,
1004
1017
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1005
1018
  color: e.value.style.chart.tooltip.color,
@@ -1010,7 +1023,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
1010
1023
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1011
1024
  position: e.value.style.chart.tooltip.position,
1012
1025
  offsetY: e.value.style.chart.tooltip.offsetY,
1013
- parent: L.value,
1026
+ parent: S.value,
1014
1027
  content: Q.value,
1015
1028
  isCustom: H.value,
1016
1029
  isFullscreen: j.value,
@@ -1018,15 +1031,15 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
1018
1031
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1019
1032
  }, {
1020
1033
  "tooltip-before": m(() => [
1021
- p(t.$slots, "tooltip-before", R(Y({ ...re.value })), void 0, !0)
1034
+ p(t.$slots, "tooltip-before", Y(D({ ...re.value })), void 0, !0)
1022
1035
  ]),
1023
1036
  "tooltip-after": m(() => [
1024
- p(t.$slots, "tooltip-after", R(Y({ ...re.value })), void 0, !0)
1037
+ p(t.$slots, "tooltip-after", Y(D({ ...re.value })), void 0, !0)
1025
1038
  ]),
1026
1039
  _: 3
1027
1040
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter"]),
1028
- U.value ? (o(), I(u(Ge), {
1029
- key: 6,
1041
+ U.value ? (o(), N(u(Ve), {
1042
+ key: 7,
1030
1043
  hideDetails: "",
1031
1044
  config: {
1032
1045
  open: C.value.showTable,
@@ -1042,7 +1055,7 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
1042
1055
  }
1043
1056
  }, {
1044
1057
  content: m(() => [
1045
- (o(), I(u(Ve), {
1058
+ (o(), N(u(qe), {
1046
1059
  key: `table_${ye.value}`,
1047
1060
  colNames: G.value.colNames,
1048
1061
  head: G.value.head,
@@ -1052,23 +1065,23 @@ const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["x", "y", "width", "height"]
1052
1065
  onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
1053
1066
  }, {
1054
1067
  th: m(({ th: l }) => [
1055
- M("div", {
1068
+ L("div", {
1056
1069
  innerHTML: l,
1057
1070
  style: { display: "flex", "align-items": "center" }
1058
- }, null, 8, Il)
1071
+ }, null, 8, Rl)
1059
1072
  ]),
1060
1073
  td: m(({ td: l }) => [
1061
- Lt(z(l.name || l), 1)
1074
+ St(O(l.name || l), 1)
1062
1075
  ]),
1063
1076
  _: 1
1064
1077
  }, 8, ["colNames", "head", "body", "config", "title"]))
1065
1078
  ]),
1066
1079
  _: 1
1067
1080
  }, 8, ["config"])) : h("", !0),
1068
- u(S) ? (o(), I(Wt, { key: 7 })) : h("", !0)
1069
- ], 46, el));
1081
+ u(M) ? (o(), N(Gt, { key: 8 })) : h("", !0)
1082
+ ], 46, ll));
1070
1083
  }
1071
- }, ql = /* @__PURE__ */ Qt(Pl, [["__scopeId", "data-v-69f5b31c"]]);
1084
+ }, Ql = /* @__PURE__ */ tl(Yl, [["__scopeId", "data-v-88bdea2f"]]);
1072
1085
  export {
1073
- ql as default
1086
+ Ql as default
1074
1087
  };