vue-data-ui 3.0.0-next.8 → 3.0.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/{Arrow-BRtNjitS.js → Arrow-B6OlqyCG.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CO9ok1PR.js → BaseDraggableDialog-CA8QOk7L.js} +2 -2
  3. package/dist/{BaseIcon-BuOIF6t5.js → BaseIcon-DxUUKVlt.js} +1 -1
  4. package/dist/{ColorPicker-FH6oc0mS.js → ColorPicker-Bh1dfgXt.js} +2 -2
  5. package/dist/{DataTable-D36ZRtpU.js → DataTable--paavNqF.js} +2 -2
  6. package/dist/{Legend-DInM-hku.js → Legend-BZ06qU55.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-B60MxEaz.js → NonSvgPenAndPaper-DN9XjEHv.js} +3 -3
  8. package/dist/{PackageVersion-CGQlqnmq.js → PackageVersion-2QvaZf9_.js} +1 -1
  9. package/dist/{PenAndPaper-B5slIHlh.js → PenAndPaper-hGgW0EHz.js} +3 -3
  10. package/dist/{Shape-BGr3dQKt.js → Shape-Mr1eIp_G.js} +1 -1
  11. package/dist/{Slicer-O07lQwRC.js → Slicer-3t0HimeE.js} +2 -2
  12. package/dist/{SparkTooltip-BWA23VgJ.js → SparkTooltip-Czhz446b.js} +1 -1
  13. package/dist/{Title-BSlAPr_H.js → Title-B2dA6-uH.js} +1 -1
  14. package/dist/{Tooltip-lPcsweXz.js → Tooltip-O_hCvqgF.js} +1 -1
  15. package/dist/{UserOptions-Dn5TCQxg.js → UserOptions-Bk03FRqW.js} +2 -2
  16. package/dist/{dom-to-png-Br-eVhJZ.js → dom-to-png-Bt5F9TXw.js} +1 -1
  17. package/dist/{img-CgMUOQnb.js → img-C_9wps3s.js} +1 -1
  18. package/dist/{index-Cfm5-hMQ.js → index-CgShIRes.js} +1 -1
  19. package/dist/{pdf-BMVHBLq5.js → pdf-CXdbjyRJ.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useNestedProp-Hh7nGEjp.js → useNestedProp-BC4Ciblw.js} +1 -1
  22. package/dist/{usePrinter-B1Hgs47c.js → usePrinter-rIrqBbbm.js} +2 -2
  23. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DG97x2hL.js} +139 -132
  24. package/dist/{vue-data-ui-CD674-M3.js → vue-data-ui-DiwfJSwC.js} +64 -64
  25. package/dist/vue-data-ui.js +1 -1
  26. package/dist/{vue-ui-3d-bar-DWtJoryQ.js → vue-ui-3d-bar-BqmzX9u4.js} +6 -6
  27. package/dist/{vue-ui-accordion-CEDGlyKI.js → vue-ui-accordion-hlzscmAS.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-DbrA1G0r.js → vue-ui-age-pyramid-eRPt0BJb.js} +6 -6
  29. package/dist/{vue-ui-annotator-CosgP-Fl.js → vue-ui-annotator-BHwBUNRO.js} +2 -2
  30. package/dist/{vue-ui-bullet-9IB3mGon.js → vue-ui-bullet-BSnF2gql.js} +7 -7
  31. package/dist/{vue-ui-candlestick-CWqPF_zW.js → vue-ui-candlestick-kMbNnoYe.js} +8 -8
  32. package/dist/{vue-ui-carousel-table-BG1ItsAb.js → vue-ui-carousel-table-6MTDYf-H.js} +4 -4
  33. package/dist/{vue-ui-chestnut-6uKesZW9.js → vue-ui-chestnut-Cr6dK21e.js} +5 -5
  34. package/dist/{vue-ui-chord-Crd3l1b6.js → vue-ui-chord-Dxy_bfIE.js} +8 -8
  35. package/dist/{vue-ui-circle-pack-CAm2gxBi.js → vue-ui-circle-pack-I_p4FPiW.js} +6 -6
  36. package/dist/{vue-ui-cursor-CkVnNEGn.js → vue-ui-cursor-Ch5yUxNn.js} +2 -2
  37. package/dist/{vue-ui-dashboard-D07ivGS7.js → vue-ui-dashboard-tVZ9aEHo.js} +62 -62
  38. package/dist/{vue-ui-digits-Doidl3Lz.js → vue-ui-digits-BOlYLluF.js} +2 -2
  39. package/dist/{vue-ui-donut-CWvzqAAa.js → vue-ui-donut-BKwAnTKA.js} +11 -11
  40. package/dist/{vue-ui-donut-evolution-Djp_eBqw.js → vue-ui-donut-evolution-DQhZJ4Sa.js} +9 -9
  41. package/dist/{vue-ui-dumbbell-B7GySnYf.js → vue-ui-dumbbell-DdN-7b3g.js} +7 -7
  42. package/dist/{vue-ui-flow-XDpZAYWI.js → vue-ui-flow-MvORTthN.js} +7 -7
  43. package/dist/{vue-ui-funnel-D1pFzjJa.js → vue-ui-funnel-CAV6A--C.js} +6 -6
  44. package/dist/{vue-ui-galaxy-DBQy21se.js → vue-ui-galaxy-B0PLMAn8.js} +5 -5
  45. package/dist/{vue-ui-gauge-FBZaUrBD.js → vue-ui-gauge-C4FTzDFt.js} +6 -6
  46. package/dist/{vue-ui-gizmo-CDbPxUzE.js → vue-ui-gizmo-Dl5FHFb4.js} +3 -3
  47. package/dist/{vue-ui-heatmap-DsDWxYOS.js → vue-ui-heatmap-C3dee43W.js} +7 -7
  48. package/dist/{vue-ui-history-plot-CzO1Z1FH.js → vue-ui-history-plot-dqv4u1Oa.js} +7 -7
  49. package/dist/{vue-ui-kpi-DTeZbrJk.js → vue-ui-kpi-DjHXc1Z9.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-itpDcfZU.js → vue-ui-mini-loader-C68r9wbr.js} +2 -2
  51. package/dist/{vue-ui-molecule-Ddd3FgID.js → vue-ui-molecule-DtRAlfhC.js} +5 -5
  52. package/dist/{vue-ui-mood-radar-24XAq8mg.js → vue-ui-mood-radar-BZj2G0zE.js} +7 -7
  53. package/dist/{vue-ui-nested-donuts-DjWASp62.js → vue-ui-nested-donuts-OqJTwMb2.js} +7 -7
  54. package/dist/{vue-ui-onion-B9thdF_c.js → vue-ui-onion-DXLokGec.js} +7 -7
  55. package/dist/{vue-ui-parallel-coordinate-plot-DT-GhOaA.js → vue-ui-parallel-coordinate-plot-tg7QhtIE.js} +8 -8
  56. package/dist/{vue-ui-quadrant-0milmSNS.js → vue-ui-quadrant-ULvVhjjq.js} +8 -8
  57. package/dist/{vue-ui-quick-chart-D0DukVN6.js → vue-ui-quick-chart-4EODniQ3.js} +7 -7
  58. package/dist/{vue-ui-radar-DY8y6oRc.js → vue-ui-radar-Dt5p5oSy.js} +7 -7
  59. package/dist/{vue-ui-rating-C3QUdrMw.js → vue-ui-rating-CkdVnYpj.js} +2 -2
  60. package/dist/{vue-ui-relation-circle-8Gd7_fxt.js → vue-ui-relation-circle-_SysXj9T.js} +6 -6
  61. package/dist/{vue-ui-ridgeline-iPtG1McW.js → vue-ui-ridgeline-Cs5UihNN.js} +9 -9
  62. package/dist/{vue-ui-rings-BXPo4MMo.js → vue-ui-rings-Duay-EmS.js} +8 -8
  63. package/dist/{vue-ui-scatter-26d0eebx.js → vue-ui-scatter-C6oGQcbL.js} +8 -8
  64. package/dist/{vue-ui-skeleton-P-1SRvsT.js → vue-ui-skeleton-BsBaCvoE.js} +3 -3
  65. package/dist/{vue-ui-smiley-Cd1bhDuU.js → vue-ui-smiley-B2sBY2Q-.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-Dt3ctzpl.js → vue-ui-spark-trend-CEAqGu3d.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-RrxErqrU.js → vue-ui-sparkbar-ByPUDc6x.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-CyNi1b0O.js → vue-ui-sparkgauge-C-GKwevJ.js} +3 -3
  69. package/dist/{vue-ui-sparkhistogram-DPpZCPuE.js → vue-ui-sparkhistogram-Dz0DdaVW.js} +4 -4
  70. package/dist/{vue-ui-sparkline-BMjQ_uYx.js → vue-ui-sparkline-BULntz_U.js} +3 -3
  71. package/dist/{vue-ui-sparkstackbar-CjO8pfE-.js → vue-ui-sparkstackbar-DXjHOeeU.js} +3 -3
  72. package/dist/{vue-ui-stackbar-wgyvMlE6.js → vue-ui-stackbar-CeP9n7zy.js} +10 -10
  73. package/dist/{vue-ui-strip-plot-BF1o8lvY.js → vue-ui-strip-plot-CaFQkWV8.js} +7 -7
  74. package/dist/{vue-ui-table-B1tjuVi0.js → vue-ui-table-DaE8lQuo.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-BI8eIQG7.js → vue-ui-table-heatmap--dSEG8cU.js} +5 -5
  76. package/dist/{vue-ui-table-sparkline-CqBD7xhZ.js → vue-ui-table-sparkline-D4DkGvDP.js} +4 -4
  77. package/dist/{vue-ui-thermometer-CtuxuYVt.js → vue-ui-thermometer-BXf14CYH.js} +6 -6
  78. package/dist/{vue-ui-timer-sgO_Z6ja.js → vue-ui-timer-CYXTAh6x.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-DOwj4ZE-.js → vue-ui-tiremarks-D6hJ1cd4.js} +6 -6
  80. package/dist/{vue-ui-treemap-C4LtyFug.js → vue-ui-treemap-tBurCrdn.js} +8 -8
  81. package/dist/{vue-ui-vertical-bar-BPay31_q.js → vue-ui-vertical-bar-CO9eR1ty.js} +14 -14
  82. package/dist/{vue-ui-waffle-D8mzGTeo.js → vue-ui-waffle-BNzs_BxY.js} +8 -8
  83. package/dist/{vue-ui-wheel-C6uAotal.js → vue-ui-wheel-tydUATi8.js} +6 -6
  84. package/dist/{vue-ui-word-cloud-Bge2211V.js → vue-ui-word-cloud-DUUc_tj6.js} +6 -6
  85. package/dist/{vue-ui-world-DWskeHfE.js → vue-ui-world-P45Plcqw.js} +6 -6
  86. package/dist/{vue-ui-xy-UzQacbnA.js → vue-ui-xy--HToGdle.js} +148 -148
  87. package/dist/{vue-ui-xy-canvas-Dkmsguo1.js → vue-ui-xy-canvas-DgNBgUak.js} +9 -9
  88. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as Fe, useSlots as It, getCurrentInstance as Tt, ref as w, computed as A, onMounted as ea, toRefs as Ot, onBeforeUnmount as Fa, watch as Cl, nextTick as Se, createElementBlock as r, openBlock as u, normalizeStyle as z, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as ml, unref as c, createSlots as Nt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as m, toDisplayString as j, mergeProps as la, withDirectives as Vt, vModelCheckbox as Pt, createTextVNode as Ht } from "vue";
2
- import { u as Rt, c as aa, e as ta, A as Bt, a5 as Ee, b as Yt, D as yl, ab as el, d as Ft, p as Et, ac as Il, ad as Wt, v as T, ae as Ea, V as Wa, af as Ga, U as Xa, ag as Gt, ah as Xt, ai as Da, x as Dt, y as Ut, _ as Ua, R as Te, i as ne, f as me, aa as H, w as ll, s as $e, a8 as W, L as qt, F as We, aj as Tl, I as Zt, ak as Ge, C as ul, t as Jt, a as Kt, o as qa, q as Qt, r as jt, E as il } from "./index-Cfm5-hMQ.js";
3
- import { u as oa } from "./useNestedProp-Hh7nGEjp.js";
4
- import { u as eo } from "./useTimeLabels-Mrr0jrpL.js";
5
- import { S as lo } from "./Slicer-O07lQwRC.js";
6
- import ao from "./Title-BSlAPr_H.js";
7
- import { _ as Ol } from "./Shape-BGr3dQKt.js";
8
- import to from "./img-CgMUOQnb.js";
9
- import { u as oo } from "./usePrinter-B1Hgs47c.js";
1
+ import { defineAsyncComponent as Fe, useSlots as Tt, getCurrentInstance as Ot, ref as w, computed as A, onMounted as ea, toRefs as Nt, onBeforeUnmount as Fa, watch as Cl, nextTick as Se, createElementBlock as r, openBlock as u, normalizeStyle as z, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as yl, unref as c, createSlots as Vt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as m, toDisplayString as j, mergeProps as la, withDirectives as Pt, vModelCheckbox as Ht, createTextVNode as Rt } from "vue";
2
+ import { u as Bt, c as aa, e as ta, A as Yt, a5 as Ee, b as Ft, D as pl, ab as el, d as Et, p as Wt, ac as Il, ad as Gt, v as T, ae as Ea, V as Wa, af as Ga, U as Xa, ag as Xt, ah as Da, ai as Ua, x as Dt, y as Ut, _ as qa, R as Te, i as ce, f as me, aa as H, w as ll, s as $e, a8 as W, L as qt, F as We, aj as Tl, I as Zt, ak as Ge, C as ul, t as Jt, a as Kt, o as Za, q as Qt, r as jt, E as il } from "./index-CgShIRes.js";
3
+ import { u as oa } from "./useNestedProp-BC4Ciblw.js";
4
+ import { u as eo } from "./useTimeLabels-DG97x2hL.js";
5
+ import { S as lo } from "./Slicer-3t0HimeE.js";
6
+ import ao from "./Title-B2dA6-uH.js";
7
+ import { _ as Ol } from "./Shape-Mr1eIp_G.js";
8
+ import to from "./img-C_9wps3s.js";
9
+ import { u as oo } from "./usePrinter-rIrqBbbm.js";
10
10
  import { u as so, B as uo } from "./useLoading-Bt5Doa8m.js";
11
11
  import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = { class: "vue-ui-xy-grid" }, fo = ["stroke", "x1", "x2", "y1", "y2"], go = ["stroke", "x1", "x2", "y1", "y2"], xo = { key: 1 }, bo = ["x1", "x2", "y1", "y2", "stroke"], mo = ["x1", "x2", "y1", "y2", "stroke"], yo = ["x1", "x2", "y1", "y2", "stroke"], po = { key: 3 }, ko = ["x1", "x2", "y1", "y2", "stroke"], _o = { key: 4 }, wo = ["y1", "y2", "x1", "x2", "stroke"], So = ["id"], $o = ["stop-color"], Lo = ["stop-color"], Ao = ["stop-color"], Mo = ["id"], zo = ["stop-color"], Co = ["stop-color"], Io = ["stop-color"], To = ["id"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["x", "y", "height", "width", "fill"], Eo = ["x", "y", "width"], Wo = ["x", "y", "height", "width", "fill"], Go = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Xo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Do = ["width", "x", "y"], Uo = { key: 0 }, qo = ["id"], Zo = ["fill"], Jo = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ko = ["x", "y", "font-size", "fill"], Qo = ["stroke", "x1", "x2", "y1", "y2"], jo = { key: 2 }, es = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ls = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], as = {
@@ -73,11 +73,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
73
73
  }
74
74
  },
75
75
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
76
- setup(Nl, { expose: Za, emit: Ja }) {
77
- const y = Nl, Ka = Fe(() => import("./DataTable-D36ZRtpU.js")), Qa = Fe(() => import("./Tooltip-lPcsweXz.js")), ja = Fe(() => import("./UserOptions-Dn5TCQxg.js")), et = Fe(() => import("./BaseIcon-BuOIF6t5.js")), lt = Fe(() => import("./vue-ui-table-sparkline-CqBD7xhZ.js")), at = Fe(() => import("./vue-ui-accordion-CEDGlyKI.js")), tt = Fe(() => import("./PackageVersion-CGQlqnmq.js")), ot = Fe(() => import("./PenAndPaper-B5slIHlh.js")), Vl = Ja, sa = It(), st = Tt(), { vue_ui_xy: Pl } = Rt(), ge = w(null), rl = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ua = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), ut = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), tl = w(!1), ra = w(!1), k = w(null), Ue = w(null), ae = w([]), q = w(aa()), na = w(0), ca = w(0), va = w(0), dl = w(!0), El = w(0), O = w(null), da = w(!1), Wl = w(!0), kl = w(!0), ye = w(null), Oe = w({}), _l = w(null), ha = w(0), it = w(1), rt = A(() => ({
76
+ setup(Nl, { expose: Ja, emit: Ka }) {
77
+ const y = Nl, Qa = Fe(() => import("./DataTable--paavNqF.js")), ja = Fe(() => import("./Tooltip-O_hCvqgF.js")), et = Fe(() => import("./UserOptions-Bk03FRqW.js")), lt = Fe(() => import("./BaseIcon-DxUUKVlt.js")), at = Fe(() => import("./vue-ui-table-sparkline-D4DkGvDP.js")), tt = Fe(() => import("./vue-ui-accordion-hlzscmAS.js")), ot = Fe(() => import("./PackageVersion-2QvaZf9_.js")), st = Fe(() => import("./PenAndPaper-hGgW0EHz.js")), Vl = Ka, sa = Tt(), ut = Ot(), { vue_ui_xy: Pl } = Bt(), ge = w(null), rl = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ua = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), it = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), kl = w(!1), tl = w(!1), ra = w(!1), k = w(null), Ue = w(null), ae = w([]), q = w(aa()), na = w(0), ca = w(0), va = w(0), dl = w(!0), El = w(0), O = w(null), da = w(!1), Wl = w(!0), _l = w(!0), ye = w(null), Oe = w({}), wl = w(null), ha = w(0), rt = w(1), nt = A(() => ({
78
78
  height: ue.value,
79
79
  width: Z.value
80
- })), nt = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f = w({
80
+ })), ct = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f = w({
81
81
  dataLabels: { show: !0 },
82
82
  showTooltip: !0,
83
83
  showTable: !1,
@@ -130,8 +130,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
130
130
  set(a) {
131
131
  return a;
132
132
  }
133
- }), e = w(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: wl } = so({
134
- ...Ot(y),
133
+ }), e = w(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: Sl } = so({
134
+ ...Nt(y),
135
135
  FINAL_CONFIG: e,
136
136
  prepareConfig: Gl,
137
137
  callback: () => {
@@ -154,7 +154,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
154
154
  color: "#CACACA"
155
155
  }
156
156
  ],
157
- skeletonConfig: Bt({
157
+ skeletonConfig: Yt({
158
158
  defaultConfig: e.value,
159
159
  userConfig: {
160
160
  autoSize: !1,
@@ -163,7 +163,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
163
163
  chart: {
164
164
  annotations: [],
165
165
  highlightArea: [],
166
- backgroundColor: "#999999",
166
+ backgroundColor: "#99999930",
167
167
  grid: {
168
168
  stroke: "#6A6A6A",
169
169
  labels: {
@@ -211,7 +211,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
211
211
  }
212
212
  })
213
213
  }), He = A({
214
- get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: nt }).length)),
214
+ get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: ct }).length)),
215
215
  set: (a) => a
216
216
  }), _ = w({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: fa, generatePdf: ga, generateImage: xa } = oo({
217
217
  elementId: `vue-ui-xy_${q.value}`,
@@ -220,12 +220,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
220
220
  }), G = A(() => e.value.autoSize), ql = A(() => {
221
221
  const [a, v, l, s] = De.value.split(" ").map(Number);
222
222
  return { x: a, y: v, width: l, height: s };
223
- }), ba = A(() => Yt(e.value.customPalette)), Sl = A(() => e.value.chart.grid.labels.yAxis.scaleMax ? e.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ve.value.filter((a) => !ae.value.includes(a.id)).map((a) => Math.max(...a.series)))), Zl = A(() => {
223
+ }), ba = A(() => Ft(e.value.customPalette)), $l = A(() => e.value.chart.grid.labels.yAxis.scaleMax ? e.value.chart.grid.labels.yAxis.scaleMax : Math.max(...Ve.value.filter((a) => !ae.value.includes(a.id)).map((a) => Math.max(...a.series)))), Zl = A(() => {
224
224
  if (e.value.chart.grid.labels.yAxis.scaleMin !== null)
225
225
  return e.value.chart.grid.labels.yAxis.scaleMin;
226
226
  const a = Math.min(...Ve.value.filter((v) => !ae.value.includes(v.id)).map((v) => Math.min(...v.series)));
227
227
  return a > 0 ? 0 : a;
228
- }), pe = A(() => e.value.chart.grid.labels.yAxis.useNiceScale ? yl(Zl.value, Sl.value < 0 ? 0 : Sl.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : el(Zl.value, Sl.value < 0 ? 0 : Sl.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), hl = A(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? pe.value.min >= 0 ? 0 : Math.abs(pe.value.min) : -pe.value.min), Ve = A(() => ia.value ? Ne.value.map((a, v) => {
228
+ }), pe = A(() => e.value.chart.grid.labels.yAxis.useNiceScale ? pl(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps) : el(Zl.value, $l.value < 0 ? 0 : $l.value, e.value.chart.grid.labels.yAxis.commonScaleSteps)), hl = A(() => [null, void 0].includes(e.value.chart.grid.labels.yAxis.scaleMin) ? pe.value.min >= 0 ? 0 : Math.abs(pe.value.min) : -pe.value.min), Ve = A(() => ia.value ? Ne.value.map((a, v) => {
229
229
  const l = Ee({
230
230
  data: a.series,
231
231
  threshold: e.value.downsample.threshold
@@ -234,7 +234,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
234
234
  ...a,
235
235
  slotAbsoluteIndex: v,
236
236
  series: l.map((t) => Il(t) ? t : null).slice(_.value.start, _.value.end),
237
- color: Ft(a.color ? a.color : ba.value[v] ? ba.value[v] : Et[v]),
237
+ color: Et(a.color ? a.color : ba.value[v] ? ba.value[v] : Wt[v]),
238
238
  id: s,
239
239
  scaleLabel: a.scaleLabel || s
240
240
  };
@@ -268,27 +268,27 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
268
268
  };
269
269
  });
270
270
  function ma() {
271
- return !!st?.vnode.props?.onSelectTimeLabel;
271
+ return !!ut?.vnode.props?.onSelectTimeLabel;
272
272
  }
273
- function ct(a, v, l) {
274
- if (!_l.value) {
273
+ function vt(a, v, l) {
274
+ if (!wl.value) {
275
275
  const s = document.createElement("canvas");
276
- _l.value = s.getContext("2d");
276
+ wl.value = s.getContext("2d");
277
277
  }
278
- return _l.value.font = `normal ${a}px sans-serif`, _l.value;
278
+ return wl.value.font = `normal ${a}px sans-serif`, wl.value;
279
279
  }
280
280
  function ya() {
281
281
  const a = ge.value.querySelectorAll(".vue-ui-xy-tag");
282
282
  a.length && Array.from(a).forEach((v) => v.style.opacity = "0");
283
283
  }
284
- function $l(a, v, l, s, t) {
284
+ function Ll(a, v, l, s, t) {
285
285
  l && (Oe.value[`${a}_${v}_${s}_${t}`] = l);
286
286
  }
287
287
  function pa(a = !1) {
288
- da.value && (kl.value = a);
288
+ da.value && (_l.value = a);
289
289
  }
290
290
  function Jl() {
291
- pl.value = !pl.value;
291
+ kl.value = !kl.value;
292
292
  }
293
293
  const de = A(() => {
294
294
  const a = Math.max(...Ne.value.map((v) => Ee({ data: v.series, threshold: e.value.downsample.threshold }).length));
@@ -318,20 +318,20 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
318
318
  });
319
319
  }
320
320
  const b = A(() => _.value.end - _.value.start);
321
- async function vt() {
321
+ async function dt() {
322
322
  if (!Hl.value) return;
323
323
  await Se();
324
324
  let a = i.value.bottom;
325
325
  Bl.value && (a += Bl.value.getBBox().height), Hl.value.setAttribute("y", a + x.value.xAxis * 1.3 + e.value.chart.grid.labels.axis.xLabelOffsetY);
326
326
  }
327
- async function dt() {
327
+ async function ht() {
328
328
  Rl.value && (await Se(), Rl.value.setAttribute("transform", `translate(${ql.value.x + e.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis}, ${i.value.top + i.value.height / 2}) rotate(-90)`));
329
329
  }
330
330
  async function ol() {
331
331
  await Se();
332
332
  const a = ua.value;
333
333
  if (!a) return;
334
- De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`, vt(), await Se(), dt();
334
+ De.value = `0 0 ${e.value.chart.width} ${e.value.chart.height}`, dt(), await Se(), ht();
335
335
  const v = a.getBBox();
336
336
  De.value = `${v.x} ${v.y - x.value.plotLabels} ${v.width + e.value.chart.padding.left} ${v.height + x.value.plotLabels + e.value.chart.padding.top}`, await Se(), ge.value.classList.remove("no-transition");
337
337
  }
@@ -346,7 +346,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
346
346
  }
347
347
  }
348
348
  }
349
- function ht(a) {
349
+ function ft(a) {
350
350
  O.value = a;
351
351
  }
352
352
  function _a() {
@@ -355,23 +355,23 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
355
355
  function Ql(a) {
356
356
  xl.value && a.autoScaling && (e.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), e.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
357
357
  }
358
- function ft(a, v) {
358
+ function gt(a, v) {
359
359
  let l = Array(a).fill(0);
360
360
  for (let s = 0; s < v.length && s < a; s += 1)
361
361
  l[s] = v[s];
362
362
  return l;
363
363
  }
364
- function gt(a) {
364
+ function xt(a) {
365
365
  const v = Math.max(...Ne.value.map((l) => Ee({ data: l.series, threshold: e.value.downsample.threshold }).length));
366
366
  return a > v ? v : a < 0 || e.value.chart.zoom.startIndex !== null && a < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : a;
367
367
  }
368
368
  async function jl() {
369
- (e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(gt(e.value.chart.zoom.endIndex + 1)))) : (_.value = {
369
+ (e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(xt(e.value.chart.zoom.endIndex + 1)))) : (_.value = {
370
370
  start: 0,
371
371
  end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: e.value.downsample.threshold }).length))
372
372
  }, Fl.value += 1);
373
373
  }
374
- function xt() {
374
+ function bt() {
375
375
  jl();
376
376
  }
377
377
  function xe(a) {
@@ -397,7 +397,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
397
397
  function _e() {
398
398
  return f.value.useIndividualScale && f.value.isStacked ? J.value.line - i.value.width / b.value * 0.1 : J.value.bar;
399
399
  }
400
- function Ll(a) {
400
+ function Al(a) {
401
401
  return f.value.useIndividualScale && f.value.isStacked ? a.x + i.value.width / b.value * 0.05 : a.x + J.value.bar / 2;
402
402
  }
403
403
  function La(a) {
@@ -406,7 +406,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
406
406
  function Aa(a) {
407
407
  return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
408
408
  }
409
- function bt(a) {
409
+ function mt(a) {
410
410
  Vl(
411
411
  "selectX",
412
412
  {
@@ -421,7 +421,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
421
421
  }
422
422
  );
423
423
  }
424
- function mt() {
424
+ function yt() {
425
425
  return Me.value.map((a) => ({
426
426
  values: a.absoluteValues,
427
427
  color: a.color,
@@ -429,7 +429,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
429
429
  type: a.type
430
430
  }));
431
431
  }
432
- async function yt({ scale: a = 2 } = {}) {
432
+ async function pt({ scale: a = 2 } = {}) {
433
433
  if (!ge.value) return;
434
434
  const { width: v, height: l } = ge.value.getBoundingClientRect(), s = v / l, { imageUri: t, base64: n } = await to({ domElement: ge.value, base64: !0, img: !0, scale: a });
435
435
  return {
@@ -455,12 +455,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
455
455
  type: v.type
456
456
  }))), El.value += 1;
457
457
  }
458
- const pt = A(() => {
458
+ const kt = A(() => {
459
459
  const a = e.value.chart.title.text || "Chart visualization", v = e.value.chart.title.subtitle.text || "";
460
460
  return `${a}. ${v}`;
461
461
  }), za = A(() => ({
462
462
  linePlot: b.value > e.value.line.dot.hideAboveMaxSerieLength
463
- })), kt = A(() => e.value.chart.userOptions.show && (!e.value.chart.title.show || !e.value.chart.title.text)), _t = A(() => {
463
+ })), _t = A(() => e.value.chart.userOptions.show && (!e.value.chart.title.show || !e.value.chart.title.text)), wt = A(() => {
464
464
  if (Array.isArray(e.value.chart.highlightArea))
465
465
  return e.value.chart.highlightArea.map((v) => {
466
466
  const l = Math.min(v.to, He.value - 1);
@@ -474,22 +474,22 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
474
474
  to: Math.min(e.value.chart.highlightArea.to, He.value - 1)
475
475
  };
476
476
  return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
477
- }), wt = A(() => ia.value ? Ne.value.map((a, v) => ({
477
+ }), St = A(() => ia.value ? Ne.value.map((a, v) => ({
478
478
  ...a,
479
479
  series: Ee({
480
480
  data: a.series,
481
481
  threshold: e.value.downsample.threshold
482
482
  }),
483
483
  id: `uniqueId_${v}`
484
- })) : Ne.value), St = A(() => ke.value.map((a) => {
484
+ })) : Ne.value), $t = A(() => ke.value.map((a) => {
485
485
  const v = a.absoluteValues.map((l) => [void 0, null].includes(l) ? 0 : l);
486
486
  return {
487
487
  id: a.id,
488
488
  name: a.name,
489
489
  color: a.color,
490
- values: ft(b.value, v)
490
+ values: gt(b.value, v)
491
491
  };
492
- })), $t = A(() => ({
492
+ })), Lt = A(() => ({
493
493
  responsiveBreakpoint: e.value.table.responsiveBreakpoint,
494
494
  roundingValues: e.value.table.rounding,
495
495
  showAverage: !1,
@@ -512,7 +512,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
512
512
  userOptions: {
513
513
  show: !1
514
514
  }
515
- })), B = A(() => e.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), Ze = A(() => Wt(Me.value.filter((a) => !ae.value.includes(a.id)))), p = A(() => {
515
+ })), B = A(() => e.value.chart.grid.position === "middle" ? 0 : i.value.width / b.value / 2), Ze = A(() => Gt(Me.value.filter((a) => !ae.value.includes(a.id)))), p = A(() => {
516
516
  const a = Object.groupBy(Ze.value, (l) => l.scaleLabel), v = {};
517
517
  for (const [l, s] of Object.entries(a)) {
518
518
  const t = s.flatMap((n) => n.absoluteValues);
@@ -523,12 +523,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
523
523
  };
524
524
  }
525
525
  return v;
526
- }), Lt = A(() => {
526
+ }), At = A(() => {
527
527
  const a = Ve.value.filter((v) => v.type === "bar").filter((v) => !ae.value.includes(v.id)).length;
528
528
  return i.value.width / b.value / a - Pe.value * a;
529
- }), Pe = A(() => J.value.line * e.value.bar.periodGap), At = A(() => {
529
+ }), Pe = A(() => J.value.line * e.value.bar.periodGap), Mt = A(() => {
530
530
  if (!e.value.chart.zoom.minimap.show) return [];
531
- const a = wt.value.filter((t) => !ae.value.includes(t.id)), v = Math.max(...a.map((t) => t.series.length)), l = [];
531
+ const a = St.value.filter((t) => !ae.value.includes(t.id)), v = Math.max(...a.map((t) => t.series.length)), l = [];
532
532
  for (let t = 0; t < v; t += 1)
533
533
  l.push(a.map((n) => n.series[t] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
534
534
  const s = Math.min(...l);
@@ -560,7 +560,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
560
560
  return t - I * n;
561
561
  };
562
562
  return v.map(($) => {
563
- const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : ee(I), te = X == null ? null : ee(X), re = ct(S.fontSize);
563
+ const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : ee(I), te = X == null ? null : ee(X), re = vt(S.fontSize);
564
564
  re.font = `${S.fontSize}px sans-serif`;
565
565
  const D = re.measureText(S.text).width, be = S.fontSize, Ce = (S.position === "start" ? l + S.padding.left : s - S.padding.right) + S.offsetX, he = (L != null && te != null ? Math.min(L, te) : L ?? te) - S.fontSize / 3 + S.offsetY - S.padding.top;
566
566
  let V;
@@ -602,8 +602,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
602
602
  }, I = {
603
603
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
604
604
  min: o.scaleMin || Math.min(...o.absoluteValues.filter((N) => ![void 0, null].includes(N))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((N) => ![null, void 0].includes(N)))
605
- }, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? yl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? yl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ce = Me.value.filter((N) => N.type === "bar").filter((N) => !ae.value.includes(N.id)).length, bl = o.series.map((N, le) => {
606
- const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * Y + J.value.bar * le * ce - Lt.value / 2 - Y * Pe.value;
605
+ }, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ne = Me.value.filter((N) => N.type === "bar").filter((N) => !ae.value.includes(N.id)).length, bl = o.series.map((N, le) => {
606
+ const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * Y + J.value.bar * le * ne - At.value / 2 - Y * Pe.value;
607
607
  return {
608
608
  yOffset: T(V),
609
609
  individualHeight: T(P),
@@ -667,11 +667,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
667
667
  }, I = {
668
668
  max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
669
669
  min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
670
- }, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? yl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? yl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ce = o.series.map((C, oe) => {
671
- const Ct = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(te)) / D : qe(C);
670
+ }, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? pl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? pl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ne = o.series.map((C, oe) => {
671
+ const It = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(te)) / D : qe(C);
672
672
  return {
673
673
  x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
674
- y: T(i.value.bottom - V - P * Ct),
674
+ y: T(i.value.bottom - V - P * It),
675
675
  value: o.absoluteValues[oe],
676
676
  comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
677
677
  };
@@ -685,7 +685,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
685
685
  y: T(i.value.bottom - V - (P * bl[oe] || 0)),
686
686
  value: o.absoluteValues[oe],
687
687
  comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
688
- }), Be = e.value.line.cutNullValues ? Ea(ce) : Wa(ce.filter((C) => C.value !== null)), E = e.value.line.cutNullValues ? Ea(ve) : Wa(ve.filter((C) => C.value !== null)), Q = e.value.line.cutNullValues ? Ga(ce) : Xa(ce.filter((C) => C.value !== null)), N = e.value.line.cutNullValues ? Ga(ve) : Xa(ve.filter((C) => C.value !== null)), le = R.ticks.map((C) => ({
688
+ }), Be = e.value.line.cutNullValues ? Ea(ne) : Wa(ne.filter((C) => C.value !== null)), E = e.value.line.cutNullValues ? Ea(ve) : Wa(ve.filter((C) => C.value !== null)), Q = e.value.line.cutNullValues ? Ga(ne) : Xa(ne.filter((C) => C.value !== null)), N = e.value.line.cutNullValues ? Ga(ve) : Xa(ve.filter((C) => C.value !== null)), le = R.ticks.map((C) => ({
689
689
  y: C >= 0 ? K - P * (C / D) : K + P * Math.abs(C) / D,
690
690
  value: C,
691
691
  prefix: o.prefix || e.value.chart.labels.prefix,
@@ -702,7 +702,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
702
702
  };
703
703
  });
704
704
  p.value[o.scaleLabel].name = o.name, p.value[o.scaleLabel].groupName = o.scaleLabel, p.value[o.scaleLabel].groupColor = e.value.chart.grid.labels.yAxis.groupColor || o.color, p.value[o.scaleLabel].color = o.color, p.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : le, p.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : K, p.value[o.scaleLabel].individualMax = o.autoScaling ? be : D, p.value[o.scaleLabel].scaleLabel = o.scaleLabel, p.value[o.scaleLabel].id = o.id, p.value[o.scaleLabel].yOffset = V, p.value[o.scaleLabel].individualHeight = P, p.value[o.scaleLabel].autoScaleYLabels = Ye, p.value[o.scaleLabel].unique = Ze.value.filter((C) => C.scaleLabel === o.scaleLabel).length === 1;
705
- const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value, zl = Math.max(Math.max(o.autoScaling ? fe : le.at(-1).y || 0, i.value.top), Je);
705
+ const Je = f.value.useIndividualScale ? o.autoScaling ? fe : K : ie.value, ml = Math.max(Math.max(o.autoScaling ? fe : le.at(-1).y || 0, i.value.top), Je);
706
706
  return {
707
707
  ...o,
708
708
  yOffset: V,
@@ -713,17 +713,17 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
713
713
  individualMax: o.autoScaling ? be : D,
714
714
  zeroPosition: o.autoScaling ? fe : K,
715
715
  curve: o.autoScaling ? E : Be,
716
- plots: o.autoScaling ? ve : ce,
717
- area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ? Xt(
718
- o.autoScaling ? ve : ce,
719
- zl
720
- ) : Da(
721
- o.autoScaling ? ve.filter((C) => C.value !== null) : ce.filter((C) => C.value !== null),
722
- zl
723
- ) : Da(ce.filter((C) => C.value !== null), zl) : "",
724
- curveAreas: o.useArea ? Gt(
725
- o.autoScaling ? e.value.line.cutNullValues ? ve : ve.filter((C) => C.value !== null) : e.value.line.cutNullValues ? ce : ce.filter((C) => C.value !== null),
726
- zl,
716
+ plots: o.autoScaling ? ve : ne,
717
+ area: o.useArea ? f.value.useIndividualScale ? e.value.line.cutNullValues ? Da(
718
+ o.autoScaling ? ve : ne,
719
+ ml
720
+ ) : Ua(
721
+ o.autoScaling ? ve.filter((C) => C.value !== null) : ne.filter((C) => C.value !== null),
722
+ ml
723
+ ) : e.value.line.cutNullValues ? Da(ne, ml) : Ua(ne.filter((C) => C.value !== null), ml) : "",
724
+ curveAreas: o.useArea ? Xt(
725
+ o.autoScaling ? e.value.line.cutNullValues ? ve : ve.filter((C) => C.value !== null) : e.value.line.cutNullValues ? ne : ne.filter((C) => C.value !== null),
726
+ ml,
727
727
  e.value.line.cutNullValues
728
728
  ) : [],
729
729
  straight: o.autoScaling ? N : Q,
@@ -750,9 +750,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
750
750
  value: o.absoluteValues[Q],
751
751
  comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
752
752
  };
753
- }), ce = o.absoluteValues.map((E) => R.min >= 0 ? (E - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (E + Math.abs(R.min)) / (R.max + Math.abs(R.min))), bl = o.series.map((E, Q) => ({
753
+ }), ne = o.absoluteValues.map((E) => R.min >= 0 ? (E - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (E + Math.abs(R.min)) / (R.max + Math.abs(R.min))), bl = o.series.map((E, Q) => ({
754
754
  x: T(i.value.left + J.value.plot / 2 + J.value.plot * Q),
755
- y: T(i.value.bottom - he - (V * ce[Q] || 0)),
755
+ y: T(i.value.bottom - he - (V * ne[Q] || 0)),
756
756
  value: o.absoluteValues[Q],
757
757
  comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
758
758
  })), ve = S.ticks.map((E) => ({
@@ -848,7 +848,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
848
848
  lines: we.value,
849
849
  plots: ze.value,
850
850
  config: e.value
851
- })), Mt = A(() => {
851
+ })), zt = A(() => {
852
852
  let a = "", v = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
853
853
  const l = de.value[k.value], s = e.value.chart.tooltip.customFormat;
854
854
  return Dt(s) && Ut(() => s({
@@ -877,7 +877,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
877
877
  n = `<svg viewBox="0 0 40 40" height="14" width="14">${sa.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${sa.pattern ? `url(#pattern_${q.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
878
878
  break;
879
879
  case "line":
880
- !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Ua({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
880
+ !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Te({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${qa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
881
881
  break;
882
882
  case "plot":
883
883
  if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
@@ -885,7 +885,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
885
885
  break;
886
886
  }
887
887
  if (t.shape === "star") {
888
- n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Ua({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
888
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${qa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
889
889
  break;
890
890
  }
891
891
  if (t.shape === "triangle") {
@@ -909,7 +909,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
909
909
  break;
910
910
  }
911
911
  }
912
- a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${e.value.chart.tooltip.showValue ? ne(
912
+ a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${t.name}: <b>${e.value.chart.tooltip.showValue ? ce(
913
913
  t.type === "line" ? e.value.line.labels.formatter : t.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
914
914
  t.value,
915
915
  me({
@@ -941,7 +941,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
941
941
  }), v.push(t);
942
942
  }), { head: a, body: v };
943
943
  });
944
- const Al = A(() => {
944
+ const Ml = A(() => {
945
945
  const a = e.value.table.showSum;
946
946
  let v = [""].concat(ke.value.map((n) => n.name));
947
947
  a && (v = v.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
@@ -952,7 +952,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
952
952
  [
953
953
  de.value[n].text ?? "-"
954
954
  ].concat(ke.value.map(
955
- (Y) => ne(
955
+ (Y) => ce(
956
956
  Y.type === "line" ? e.value.line.labels.formatter : Y.type === "bar" ? e.value.bar.labels.formatter : e.value.plot.labels.formatter,
957
957
  Y.absoluteValues[n] ?? 0,
958
958
  me({
@@ -1044,25 +1044,25 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1044
1044
  }
1045
1045
  const xl = A(() => !!e.value.debug);
1046
1046
  function Ya() {
1047
- qa(y.dataset) ? (ta({
1047
+ Za(y.dataset) ? (ta({
1048
1048
  componentName: "VueUiXy",
1049
1049
  type: "dataset",
1050
1050
  debug: xl.value
1051
- }), wl.value = !0) : y.dataset.forEach((v, l) => {
1051
+ }), Sl.value = !0) : y.dataset.forEach((v, l) => {
1052
1052
  [null, void 0].includes(v.name) && (ta({
1053
1053
  componentName: "VueUiXy",
1054
1054
  type: "datasetSerieAttribute",
1055
1055
  property: "name (string)",
1056
1056
  index: l,
1057
1057
  debug: xl.value
1058
- }), wl.value = !0);
1058
+ }), Sl.value = !0);
1059
1059
  }), xl.value && y.dataset.forEach((v) => {
1060
1060
  v.series.forEach((l, s) => {
1061
1061
  Il(l) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1062
1062
  -----> The serie '${v.name}' contains the value '${l}' at index ${s}.
1063
1063
  '${l}' was converted to null to allow the chart to display.`);
1064
1064
  });
1065
- }), qa(y.dataset) || (wl.value = e.value.loading), da.value = e.value.chart.userOptions.showOnChartHover, Wl.value = e.value.chart.userOptions.keepStateOnChartLeave, kl.value = !e.value.chart.userOptions.showOnChartHover, f.value = {
1065
+ }), Za(y.dataset) || (Sl.value = e.value.loading), da.value = e.value.chart.userOptions.showOnChartHover, Wl.value = e.value.chart.userOptions.keepStateOnChartLeave, _l.value = !e.value.chart.userOptions.showOnChartHover, f.value = {
1066
1066
  dataLabels: {
1067
1067
  show: !0
1068
1068
  },
@@ -1089,7 +1089,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1089
1089
  const S = new ResizeObserver((R) => {
1090
1090
  for (const L of R)
1091
1091
  e.value.chart.title.show && rl.value ? o = rl.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? I = nl.value.getBoundingClientRect().height : I = 0, cl.value ? X = cl.value.getBoundingClientRect().height : X = 0, G.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
1092
- ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (ha.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, it.value = Z.value / ha.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ba();
1092
+ ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (ha.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, rt.value = Z.value / ha.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ba();
1093
1093
  });
1094
1094
  });
1095
1095
  Xe.value = S, Yl.value = l, S.observe(l);
@@ -1098,7 +1098,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1098
1098
  }
1099
1099
  ea(() => {
1100
1100
  Ya(), jl(), document.addEventListener("mousemove", (a) => {
1101
- ut.value = {
1101
+ it.value = {
1102
1102
  x: a.clientX,
1103
1103
  y: a.clientY
1104
1104
  };
@@ -1108,24 +1108,24 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1108
1108
  }), Cl(() => f.value.isStacked, async () => {
1109
1109
  G.value && (await Se(), ol(), Kl());
1110
1110
  });
1111
- let Ml;
1112
- async function zt() {
1113
- await Se(), ol(), Kl(), Ml.disconnect();
1111
+ let zl;
1112
+ async function Ct() {
1113
+ await Se(), ol(), Kl(), zl.disconnect();
1114
1114
  }
1115
1115
  return ea(() => {
1116
- ge.value && (Ml = new ResizeObserver((a) => {
1116
+ ge.value && (zl = new ResizeObserver((a) => {
1117
1117
  for (const v of a) {
1118
1118
  const { width: l, height: s } = v.contentRect;
1119
1119
  if (l > 0 && s > 0) {
1120
- zt();
1120
+ Ct();
1121
1121
  break;
1122
1122
  }
1123
1123
  }
1124
- }), Ml.observe(ge.value.parentElement));
1124
+ }), zl.observe(ge.value.parentElement));
1125
1125
  }), Fa(() => {
1126
- Ml?.disconnect();
1126
+ zl?.disconnect();
1127
1127
  }), Cl(() => y.dataset, (a) => {
1128
- Array.isArray(a) && a.length > 0 && (wl.value = !1), He.value = Math.max(...Ne.value.map((v) => Ee({
1128
+ Array.isArray(a) && a.length > 0 && (Sl.value = !1), He.value = Math.max(...Ne.value.map((v) => Ee({
1129
1129
  data: v.series,
1130
1130
  threshold: e.value.downsample.threshold
1131
1131
  }).length)), _.value = {
@@ -1152,9 +1152,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1152
1152
  isStacked: e.value.chart.grid.labels.yAxis.stacked,
1153
1153
  useIndividualScale: e.value.chart.grid.labels.yAxis.useIndividualScale
1154
1154
  };
1155
- }, { immediate: !0 }), Za({
1156
- getData: mt,
1157
- getImage: yt,
1155
+ }, { immediate: !0 }), Ja({
1156
+ getData: yt,
1157
+ getImage: pt,
1158
1158
  generatePdf: ga,
1159
1159
  generateImage: xa,
1160
1160
  generateCsv: Oa,
@@ -1173,15 +1173,15 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1173
1173
  onMouseenter: v[7] || (v[7] = () => pa(!0)),
1174
1174
  onMouseleave: v[8] || (v[8] = () => pa(!1))
1175
1175
  }, [
1176
- e.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Ie(c(ot), {
1176
+ e.value.chart.userOptions.buttons.annotator && ye.value ? (u(), Ie(c(st), {
1177
1177
  key: 0,
1178
1178
  svgRef: ye.value,
1179
1179
  backgroundColor: e.value.chart.backgroundColor,
1180
1180
  color: e.value.chart.color,
1181
- active: pl.value,
1181
+ active: kl.value,
1182
1182
  onClose: Jl
1183
1183
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
1184
- kt.value ? (u(), r("div", {
1184
+ _t.value ? (u(), r("div", {
1185
1185
  key: 1,
1186
1186
  ref_key: "noTitle",
1187
1187
  ref: cl,
@@ -1209,7 +1209,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1209
1209
  }
1210
1210
  }, null, 8, ["config"]))
1211
1211
  ], 4)) : d("", !0),
1212
- e.value.chart.userOptions.show && (Wl.value || kl.value) ? (u(), Ie(c(ja), {
1212
+ e.value.chart.userOptions.show && (Wl.value || _l.value) ? (u(), Ie(c(et), {
1213
1213
  ref: "defails",
1214
1214
  key: `user_options_${na.value}`,
1215
1215
  backgroundColor: e.value.chart.backgroundColor,
@@ -1232,7 +1232,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1232
1232
  isTooltip: f.value.showTooltip,
1233
1233
  titles: { ...e.value.chart.userOptions.buttonTitles },
1234
1234
  hasAnnotator: e.value.chart.userOptions.buttons.annotator,
1235
- isAnnotation: pl.value,
1235
+ isAnnotation: kl.value,
1236
1236
  callbacks: e.value.chart.userOptions.callbacks,
1237
1237
  printScale: e.value.chart.userOptions.print.scale,
1238
1238
  onToggleFullscreen: Ra,
@@ -1245,9 +1245,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1245
1245
  onToggleTooltip: Ha,
1246
1246
  onToggleAnnotator: Jl,
1247
1247
  style: z({
1248
- visibility: Wl.value ? kl.value ? "visible" : "hidden" : "visible"
1248
+ visibility: Wl.value ? _l.value ? "visible" : "hidden" : "visible"
1249
1249
  })
1250
- }, Nt({ _: 2 }, [
1250
+ }, Vt({ _: 2 }, [
1251
1251
  a.$slots.menuIcon ? {
1252
1252
  name: "menuIcon",
1253
1253
  fn: se(({ isOpen: l, color: s }) => [
@@ -1327,7 +1327,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1327
1327
  width: G.value ? void 0 : "100%",
1328
1328
  viewBox: De.value,
1329
1329
  style: z(`background: transparent; color:${e.value.chart.color}; font-family:${e.value.chart.fontFamily}`),
1330
- "aria-label": pt.value,
1330
+ "aria-label": kt.value,
1331
1331
  role: "img",
1332
1332
  "aria-live": "polite",
1333
1333
  preserveAspectRatio: "xMidYMid"
@@ -1337,7 +1337,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1337
1337
  ref: ua,
1338
1338
  class: "vue-data-ui-g"
1339
1339
  }, [
1340
- ml(c(tt)),
1340
+ yl(c(ot)),
1341
1341
  a.$slots["chart-background"] ? (u(), r("foreignObject", {
1342
1342
  key: 0,
1343
1343
  x: i.value.left + B.value < 0 ? 0 : i.value.left + B.value,
@@ -1538,7 +1538,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1538
1538
  }, null, 8, Yo)
1539
1539
  ], 8, Ro)
1540
1540
  ]))), 128)),
1541
- (u(!0), r(h, null, m(_t.value, (l) => (u(), r("g", null, [
1541
+ (u(!0), r(h, null, m(wt.value, (l) => (u(), r("g", null, [
1542
1542
  l.show ? (u(), r(h, { key: 0 }, [
1543
1543
  (u(!0), r(h, null, m(l.span, (s, t) => (u(), r("g", null, [
1544
1544
  g("rect", {
@@ -1595,7 +1595,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1595
1595
  }, [
1596
1596
  xe(t.value) ? (u(), r("rect", {
1597
1597
  key: 0,
1598
- x: Ll(t),
1598
+ x: Al(t),
1599
1599
  y: f.value.useIndividualScale ? Aa(t) : La(t),
1600
1600
  height: f.value.useIndividualScale ? Math.abs($a(t)) : Math.abs(Sa(t)),
1601
1601
  width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
@@ -1607,7 +1607,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1607
1607
  }, null, 12, Go)) : d("", !0),
1608
1608
  xe(t.value) && a.$slots.pattern ? (u(), r("rect", {
1609
1609
  key: 1,
1610
- x: Ll(t),
1610
+ x: Al(t),
1611
1611
  y: f.value.useIndividualScale ? Aa(t) : La(t),
1612
1612
  height: f.value.useIndividualScale ? Math.abs($a(t)) : Math.abs(Sa(t)),
1613
1613
  width: _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value),
@@ -1621,7 +1621,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1621
1621
  style: { overflow: "visible" },
1622
1622
  height: "12",
1623
1623
  width: (_e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) < 0 ? 1e-5 : _e() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Pe.value) / 2) + e.value.chart.comments.width,
1624
- x: Ll(t) - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
1624
+ x: Al(t) - e.value.chart.comments.width / 2 + e.value.chart.comments.offsetX,
1625
1625
  y: c(T)(t.y) + e.value.chart.comments.offsetY + 6
1626
1626
  }, [
1627
1627
  U(a.$slots, "plot-comment", {
@@ -1750,7 +1750,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1750
1750
  "font-size": x.value.dataLabels,
1751
1751
  "text-anchor": "end",
1752
1752
  fill: l.color
1753
- }, j(c(ne)(
1753
+ }, j(c(ce)(
1754
1754
  e.value.chart.grid.labels.yAxis.formatter,
1755
1755
  s.value,
1756
1756
  c(me)({
@@ -1783,7 +1783,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
1783
1783
  "font-size": x.value.dataLabels,
1784
1784
  "text-anchor": "end",
1785
1785
  fill: e.value.chart.grid.labels.color
1786
- }, j(xe(l.value) ? c(ne)(
1786
+ }, j(xe(l.value) ? c(ce)(
1787
1787
  e.value.chart.grid.labels.yAxis.formatter,
1788
1788
  l.value,
1789
1789
  c(me)({
@@ -2019,13 +2019,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2019
2019
  }, [
2020
2020
  t && (!Object.hasOwn(l, "dataLabels") || l.dataLabels === !0 || k.value !== null && k.value === n || O.value !== null && O.value === n) && e.value.bar.labels.show ? (u(), r("text", {
2021
2021
  key: 0,
2022
- x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Ll(t) + _e() / 2 - Pe.value / 2,
2022
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + J.value.line / 2 : Al(t) + _e() / 2 - Pe.value / 2,
2023
2023
  y: c(T)(t.y) + (t.value >= 0 ? e.value.bar.labels.offsetY : -e.value.bar.labels.offsetY * 3),
2024
2024
  "text-anchor": "middle",
2025
2025
  "font-size": x.value.plotLabels,
2026
2026
  fill: e.value.bar.labels.color,
2027
2027
  style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2028
- }, j(xe(t.value) ? c(ne)(
2028
+ }, j(xe(t.value) ? c(ce)(
2029
2029
  e.value.bar.labels.formatter,
2030
2030
  t.value,
2031
2031
  c(me)({
@@ -2067,7 +2067,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2067
2067
  "font-size": x.value.plotLabels,
2068
2068
  fill: e.value.plot.labels.color,
2069
2069
  style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2070
- }, j(xe(t.value) ? c(ne)(
2070
+ }, j(xe(t.value) ? c(ce)(
2071
2071
  e.value.plot.labels.formatter,
2072
2072
  t.value,
2073
2073
  c(me)({
@@ -2114,7 +2114,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2114
2114
  }, [
2115
2115
  g("div", {
2116
2116
  style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2117
- innerHTML: c(ne)(
2117
+ innerHTML: c(ce)(
2118
2118
  e.value.plot.tag.formatter,
2119
2119
  t.value,
2120
2120
  l.name,
@@ -2136,7 +2136,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2136
2136
  }, [
2137
2137
  g("div", {
2138
2138
  style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2139
- innerHTML: c(ne)(
2139
+ innerHTML: c(ce)(
2140
2140
  e.value.plot.tag.formatter,
2141
2141
  t.value,
2142
2142
  l.name,
@@ -2167,7 +2167,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2167
2167
  "font-size": x.value.plotLabels,
2168
2168
  fill: e.value.line.labels.color,
2169
2169
  style: z(`opacity:${M.value ? M.value === l.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2170
- }, j(xe(t.value) ? c(ne)(
2170
+ }, j(xe(t.value) ? c(ce)(
2171
2171
  e.value.line.labels.formatter,
2172
2172
  t.value,
2173
2173
  c(me)({
@@ -2214,7 +2214,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2214
2214
  }, [
2215
2215
  g("div", {
2216
2216
  style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2217
- innerHTML: c(ne)(
2217
+ innerHTML: c(ce)(
2218
2218
  e.value.line.tag.formatter,
2219
2219
  t.value,
2220
2220
  l.name,
@@ -2236,7 +2236,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2236
2236
  }, [
2237
2237
  g("div", {
2238
2238
  style: z(`padding: 3px; background:${c($e)(l.color, 80)};color:${c(We)(l.color)};width:fit-content;font-size:${x.value.plotLabels}px;border-radius: 2px;`),
2239
- innerHTML: c(ne)(
2239
+ innerHTML: c(ce)(
2240
2240
  e.value.line.tag.formatter,
2241
2241
  t.value,
2242
2242
  l.name,
@@ -2506,7 +2506,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2506
2506
  fill: "transparent",
2507
2507
  onMouseenter: (t) => Na(!0, s),
2508
2508
  onMouseleave: v[1] || (v[1] = (t) => Na(!1)),
2509
- onClick: (t) => bt(s)
2509
+ onClick: (t) => mt(s)
2510
2510
  }, null, 40, gu))), 128))
2511
2511
  ]),
2512
2512
  e.value.chart.timeTag.show && (![null, void 0].includes(k.value) || ![null, void 0].includes(O.value)) ? (u(), r("g", xu, [
@@ -2530,7 +2530,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2530
2530
  }, null, 8, mu)
2531
2531
  ])) : d("", !0)
2532
2532
  ])) : d("", !0),
2533
- U(a.$slots, "svg", { svg: rt.value }, void 0, !0)
2533
+ U(a.$slots, "svg", { svg: nt.value }, void 0, !0)
2534
2534
  ], 512)
2535
2535
  ], 14, no)),
2536
2536
  a.$slots.watermark ? (u(), r("div", yu, [
@@ -2545,7 +2545,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2545
2545
  [O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.line.tag.followValue ? (u(), r("div", {
2546
2546
  key: 0,
2547
2547
  ref_for: !0,
2548
- ref: (o) => $l(s, n, o, "right", "line"),
2548
+ ref: (o) => Ll(s, n, o, "right", "line"),
2549
2549
  class: "vue-ui-xy-tag",
2550
2550
  "data-tag": "right",
2551
2551
  style: z({
@@ -2582,7 +2582,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2582
2582
  ])),
2583
2583
  g("div", {
2584
2584
  class: "vue-ui-xy-tag-content",
2585
- innerHTML: c(ne)(
2585
+ innerHTML: c(ce)(
2586
2586
  e.value.line.tag.formatter,
2587
2587
  t.value,
2588
2588
  l.name,
@@ -2597,7 +2597,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2597
2597
  [O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.line.tag.followValue ? (u(), r("div", {
2598
2598
  key: 1,
2599
2599
  ref_for: !0,
2600
- ref: (o) => $l(s, n, o, "left", "line"),
2600
+ ref: (o) => Ll(s, n, o, "left", "line"),
2601
2601
  class: "vue-ui-xy-tag",
2602
2602
  "data-tag": "left",
2603
2603
  style: z({
@@ -2634,7 +2634,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2634
2634
  ])),
2635
2635
  g("div", {
2636
2636
  class: "vue-ui-xy-tag-content",
2637
- innerHTML: c(ne)(
2637
+ innerHTML: c(ce)(
2638
2638
  e.value.line.tag.formatter,
2639
2639
  t.value,
2640
2640
  l.name,
@@ -2657,7 +2657,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2657
2657
  [O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "end" && e.value.plot.tag.followValue ? (u(), r("div", {
2658
2658
  key: 0,
2659
2659
  ref_for: !0,
2660
- ref: (o) => $l(s, n, o, "right", "plot"),
2660
+ ref: (o) => Ll(s, n, o, "right", "plot"),
2661
2661
  class: "vue-ui-xy-tag",
2662
2662
  "data-tag": "right",
2663
2663
  style: z({
@@ -2694,7 +2694,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2694
2694
  ])),
2695
2695
  g("div", {
2696
2696
  class: "vue-ui-xy-tag-content",
2697
- innerHTML: c(ne)(
2697
+ innerHTML: c(ce)(
2698
2698
  e.value.plot.tag.formatter,
2699
2699
  t.value,
2700
2700
  l.name,
@@ -2709,7 +2709,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2709
2709
  [O.value, k.value, Ue.value].includes(n) && l.useTag && l.useTag === "start" && e.value.plot.tag.followValue ? (u(), r("div", {
2710
2710
  key: 1,
2711
2711
  ref_for: !0,
2712
- ref: (o) => $l(s, n, o, "left", "plot"),
2712
+ ref: (o) => Ll(s, n, o, "left", "plot"),
2713
2713
  class: "vue-ui-xy-tag",
2714
2714
  "data-tag": "left",
2715
2715
  style: z({
@@ -2746,7 +2746,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2746
2746
  ])),
2747
2747
  g("div", {
2748
2748
  class: "vue-ui-xy-tag-content",
2749
- innerHTML: c(ne)(
2749
+ innerHTML: c(ce)(
2750
2750
  e.value.plot.tag.formatter,
2751
2751
  t.value,
2752
2752
  l.name,
@@ -2773,7 +2773,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2773
2773
  inputColor: e.value.chart.zoom.color,
2774
2774
  selectColor: e.value.chart.zoom.highlightColor,
2775
2775
  borderColor: e.value.chart.backgroundColor,
2776
- minimap: At.value,
2776
+ minimap: Mt.value,
2777
2777
  smoothMinimap: e.value.chart.zoom.minimap.smooth,
2778
2778
  minimapSelectedColor: e.value.chart.zoom.minimap.selectedColor,
2779
2779
  minimapSelectionRadius: e.value.chart.zoom.minimap.selectionRadius,
@@ -2794,8 +2794,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2794
2794
  refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((l) => c(Ee)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
2795
2795
  enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
2796
2796
  enableSelectionDrag: e.value.chart.zoom.enableSelectionDrag,
2797
- onReset: xt,
2798
- onTrapMouse: ht
2797
+ onReset: bt,
2798
+ onTrapMouse: ft
2799
2799
  }, {
2800
2800
  "reset-action": se(({ reset: l }) => [
2801
2801
  U(a.$slots, "reset-action", Qe(je({ reset: l })), void 0, !0)
@@ -2825,7 +2825,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2825
2825
  width: "20",
2826
2826
  fill: l.color
2827
2827
  }, null, 8, Nu),
2828
- ml(Ol, {
2828
+ yl(Ol, {
2829
2829
  plot: { x: 10, y: 9 },
2830
2830
  radius: 4,
2831
2831
  color: l.color,
@@ -2855,7 +2855,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2855
2855
  fill: a.$slots.pattern ? `url(#pattern_${q.value}_${l.slotAbsoluteIndex})` : l.color
2856
2856
  }, null, 8, Hu)) : d("", !0)
2857
2857
  ])) : (u(), r("svg", Ru, [
2858
- ml(Ol, {
2858
+ yl(Ol, {
2859
2859
  plot: { x: 6, y: 6 },
2860
2860
  radius: 5,
2861
2861
  color: l.color,
@@ -2881,7 +2881,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2881
2881
  }, [
2882
2882
  U(a.$slots, "source", {}, void 0, !0)
2883
2883
  ], 512)) : d("", !0),
2884
- ml(c(Qa), {
2884
+ yl(c(ja), {
2885
2885
  show: f.value.showTooltip && ra.value,
2886
2886
  backgroundColor: e.value.chart.tooltip.backgroundColor,
2887
2887
  color: e.value.chart.tooltip.color,
@@ -2893,7 +2893,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2893
2893
  position: e.value.chart.tooltip.position,
2894
2894
  offsetY: e.value.chart.tooltip.offsetY,
2895
2895
  parent: a.$refs.chart,
2896
- content: Mt.value,
2896
+ content: zt.value,
2897
2897
  isFullscreen: tl.value,
2898
2898
  isCustom: e.value.chart.tooltip.customFormat && typeof e.value.chart.tooltip.customFormat == "function"
2899
2899
  }, {
@@ -2905,7 +2905,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2905
2905
  ]),
2906
2906
  _: 3
2907
2907
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
2908
- Xl.value ? (u(), Ie(c(at), {
2908
+ Xl.value ? (u(), Ie(c(tt), {
2909
2909
  key: 9,
2910
2910
  hideDetails: "",
2911
2911
  config: {
@@ -2926,33 +2926,33 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2926
2926
  style: z(`${c(Ul) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
2927
2927
  }, [
2928
2928
  g("div", Bu, [
2929
- Vt(g("input", {
2929
+ Pt(g("input", {
2930
2930
  type: "checkbox",
2931
2931
  "onUpdate:modelValue": v[4] || (v[4] = (l) => dl.value = l)
2932
2932
  }, null, 512), [
2933
- [Pt, dl.value]
2933
+ [Ht, dl.value]
2934
2934
  ]),
2935
2935
  g("div", {
2936
2936
  onClick: v[5] || (v[5] = (l) => dl.value = !dl.value),
2937
2937
  style: { cursor: "pointer" }
2938
2938
  }, [
2939
- ml(c(et), {
2939
+ yl(c(lt), {
2940
2940
  name: "chartLine",
2941
2941
  size: 20,
2942
2942
  stroke: e.value.chart.color
2943
2943
  }, null, 8, ["stroke"])
2944
2944
  ])
2945
2945
  ]),
2946
- dl.value ? (u(), Ie(c(lt), {
2946
+ dl.value ? (u(), Ie(c(at), {
2947
2947
  key: `sparkline_${El.value}`,
2948
- dataset: St.value,
2949
- config: $t.value
2950
- }, null, 8, ["dataset", "config"])) : (u(), Ie(c(Ka), {
2948
+ dataset: $t.value,
2949
+ config: Lt.value
2950
+ }, null, 8, ["dataset", "config"])) : (u(), Ie(c(Qa), {
2951
2951
  key: `table_${ca.value}`,
2952
- colNames: Al.value.colNames,
2953
- head: Al.value.head,
2954
- body: Al.value.body,
2955
- config: Al.value.config,
2952
+ colNames: Ml.value.colNames,
2953
+ head: Ml.value.head,
2954
+ body: Ml.value.body,
2955
+ config: Ml.value.config,
2956
2956
  title: `${e.value.chart.title.text}${e.value.chart.title.subtitle.text ? ` : ${e.value.chart.title.subtitle.text}` : ""}`,
2957
2957
  onClose: v[6] || (v[6] = (l) => f.value.showTable = !1)
2958
2958
  }, {
@@ -2960,7 +2960,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2960
2960
  g("div", { innerHTML: l }, null, 8, Yu)
2961
2961
  ]),
2962
2962
  td: se(({ td: l }) => [
2963
- Ht(j(isNaN(Number(l)) ? l : c(me)({
2963
+ Rt(j(isNaN(Number(l)) ? l : c(me)({
2964
2964
  p: e.value.chart.labels.prefix,
2965
2965
  v: l,
2966
2966
  s: e.value.chart.labels.suffix,
@@ -2976,7 +2976,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
2976
2976
  c(Dl) ? (u(), Ie(uo, { key: 10 })) : d("", !0)
2977
2977
  ], 46, ro));
2978
2978
  }
2979
- }, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-47c51d2d"]]);
2979
+ }, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-82f3ba26"]]);
2980
2980
  export {
2981
2981
  ju as default
2982
2982
  };