vue-data-ui 3.17.9 → 3.17.11

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 (126) hide show
  1. package/dist/{PackageVersion-Ov37I8ii.js → PackageVersion-CHNfLQ9Q.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-digits.js +1 -1
  15. package/dist/components/vue-ui-donut-evolution.js +1 -1
  16. package/dist/components/vue-ui-donut.js +1 -1
  17. package/dist/components/vue-ui-dumbbell.js +1 -1
  18. package/dist/components/vue-ui-flow.js +1 -1
  19. package/dist/components/vue-ui-funnel.js +1 -1
  20. package/dist/components/vue-ui-galaxy.js +1 -1
  21. package/dist/components/vue-ui-gauge.js +1 -1
  22. package/dist/components/vue-ui-geo.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-molecule.js +1 -1
  29. package/dist/components/vue-ui-mood-radar.js +1 -1
  30. package/dist/components/vue-ui-nested-donuts.js +1 -1
  31. package/dist/components/vue-ui-onion.js +1 -1
  32. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  33. package/dist/components/vue-ui-quadrant.js +1 -1
  34. package/dist/components/vue-ui-quick-chart.js +1 -1
  35. package/dist/components/vue-ui-radar.js +1 -1
  36. package/dist/components/vue-ui-relation-circle.js +1 -1
  37. package/dist/components/vue-ui-ridgeline.js +1 -1
  38. package/dist/components/vue-ui-rings.js +1 -1
  39. package/dist/components/vue-ui-scatter.js +1 -1
  40. package/dist/components/vue-ui-skeleton.js +1 -1
  41. package/dist/components/vue-ui-spark-trend.js +1 -1
  42. package/dist/components/vue-ui-sparkbar.js +1 -1
  43. package/dist/components/vue-ui-sparkgauge.js +1 -1
  44. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  45. package/dist/components/vue-ui-sparkline.js +1 -1
  46. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  47. package/dist/components/vue-ui-stackbar.js +1 -1
  48. package/dist/components/vue-ui-stackline.js +1 -1
  49. package/dist/components/vue-ui-strip-plot.js +1 -1
  50. package/dist/components/vue-ui-table-sparkline.js +1 -1
  51. package/dist/components/vue-ui-table.js +1 -1
  52. package/dist/components/vue-ui-thermometer.js +1 -1
  53. package/dist/components/vue-ui-timer.js +1 -1
  54. package/dist/components/vue-ui-tiremarks.js +1 -1
  55. package/dist/components/vue-ui-treemap.js +1 -1
  56. package/dist/components/vue-ui-vertical-bar.js +1 -1
  57. package/dist/components/vue-ui-waffle.js +1 -1
  58. package/dist/components/vue-ui-wheel.js +1 -1
  59. package/dist/components/vue-ui-word-cloud.js +1 -1
  60. package/dist/components/vue-ui-world.js +1 -1
  61. package/dist/components/vue-ui-xy-canvas.js +1 -1
  62. package/dist/components/vue-ui-xy.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/{vue-data-ui-C1Z1RCcf.js → vue-data-ui-BhpgB8UJ.js} +61 -61
  65. package/dist/vue-data-ui.js +61 -61
  66. package/dist/{vue-ui-3d-bar-BqqCv_L2.js → vue-ui-3d-bar-DlLiXS6Z.js} +1 -1
  67. package/dist/{vue-ui-age-pyramid-C-2sRuVe.js → vue-ui-age-pyramid-DraVdYRy.js} +1 -1
  68. package/dist/{vue-ui-bullet-CkBMlG46.js → vue-ui-bullet-WnD9rJbc.js} +19 -18
  69. package/dist/{vue-ui-bump-DxBzf8_x.js → vue-ui-bump-DwgahfiC.js} +1 -1
  70. package/dist/{vue-ui-candlestick-CQw6E5XK.js → vue-ui-candlestick-BleQTpuq.js} +1 -1
  71. package/dist/{vue-ui-carousel-table-ehHnnwYQ.js → vue-ui-carousel-table-BjXxtjCZ.js} +1 -1
  72. package/dist/{vue-ui-chestnut-CEG1n9Bg.js → vue-ui-chestnut-xBDbJ9su.js} +1 -1
  73. package/dist/{vue-ui-chord-Bm8sj1jg.js → vue-ui-chord-D_pGtRHt.js} +36 -35
  74. package/dist/{vue-ui-circle-pack-BhtBzyoU.js → vue-ui-circle-pack-C7-wxx3Y.js} +1 -1
  75. package/dist/{vue-ui-cursor-KjOp9R9e.js → vue-ui-cursor-DBvL5KTg.js} +1 -1
  76. package/dist/{vue-ui-dag-DsBuepaA.js → vue-ui-dag-BKGTFMQK.js} +1 -1
  77. package/dist/{vue-ui-dashboard-ClvBMAzA.js → vue-ui-dashboard-CEtNOoBY.js} +58 -58
  78. package/dist/{vue-ui-digits-CUN5zijI.js → vue-ui-digits-BeIq6BVd.js} +1 -1
  79. package/dist/{vue-ui-donut-B1EgAu-L.js → vue-ui-donut-BjV5_nf1.js} +44 -43
  80. package/dist/{vue-ui-donut-evolution-5PjaWTvx.js → vue-ui-donut-evolution-B7hCGAIO.js} +30 -29
  81. package/dist/{vue-ui-dumbbell-D8hAgMko.js → vue-ui-dumbbell-ZMLefa9v.js} +85 -86
  82. package/dist/{vue-ui-flow-jJLellQk.js → vue-ui-flow-BYjkId4Z.js} +63 -62
  83. package/dist/{vue-ui-funnel-C4JIWkGm.js → vue-ui-funnel-BZtpP-Of.js} +2 -2
  84. package/dist/{vue-ui-galaxy-CuqTB4XR.js → vue-ui-galaxy-bdIj6ERd.js} +56 -55
  85. package/dist/{vue-ui-gauge-B5bJUzMr.js → vue-ui-gauge-DT5-qFXl.js} +1 -1
  86. package/dist/{vue-ui-geo-BJiW5vL1.js → vue-ui-geo-nXp15sZ5.js} +1 -1
  87. package/dist/{vue-ui-gizmo-D5e5T4fu.js → vue-ui-gizmo-J5MTo522.js} +1 -1
  88. package/dist/{vue-ui-heatmap-Bsr9R8ek.js → vue-ui-heatmap-G7DzkGq2.js} +1 -1
  89. package/dist/{vue-ui-history-plot-pXrD1Fm7.js → vue-ui-history-plot-BLoxv5uS.js} +35 -36
  90. package/dist/{vue-ui-horizontal-bar-7HugQ0dT.js → vue-ui-horizontal-bar-B8wbIiWo.js} +1 -1
  91. package/dist/{vue-ui-kpi-BLVCrWfG.js → vue-ui-kpi-AT8jIXnu.js} +1 -1
  92. package/dist/{vue-ui-molecule-DhIWpt07.js → vue-ui-molecule-j5opFMNQ.js} +1 -1
  93. package/dist/{vue-ui-mood-radar-BUpDYe22.js → vue-ui-mood-radar-Opwn9CwC.js} +84 -83
  94. package/dist/{vue-ui-nested-donuts-JhqmPAhH.js → vue-ui-nested-donuts-Cc_5aNFc.js} +117 -120
  95. package/dist/{vue-ui-onion-DUSgz_9-.js → vue-ui-onion-CjDIGb68.js} +62 -63
  96. package/dist/{vue-ui-parallel-coordinate-plot-Cbn9N0y0.js → vue-ui-parallel-coordinate-plot-CcQZTqNS.js} +35 -36
  97. package/dist/{vue-ui-quadrant-Foz7WuoD.js → vue-ui-quadrant-FoV76r7G.js} +32 -33
  98. package/dist/{vue-ui-quick-chart-DVH6A-Nr.js → vue-ui-quick-chart-BPu7QR35.js} +3 -3
  99. package/dist/{vue-ui-radar-CDpMulQa.js → vue-ui-radar-C60tBqYo.js} +72 -73
  100. package/dist/{vue-ui-relation-circle-ChtfTtXY.js → vue-ui-relation-circle-CaeT1NKV.js} +1 -1
  101. package/dist/{vue-ui-ridgeline-DXs-IeYj.js → vue-ui-ridgeline-DpLnKVx2.js} +2 -2
  102. package/dist/{vue-ui-rings-BfhsTTW_.js → vue-ui-rings-Bp1MqbOV.js} +171 -172
  103. package/dist/{vue-ui-scatter-CYWGf_oA.js → vue-ui-scatter-C73P-oBq.js} +100 -101
  104. package/dist/{vue-ui-skeleton-BPUPkwbA.js → vue-ui-skeleton-BSR3VLyw.js} +1 -1
  105. package/dist/{vue-ui-spark-trend-Cz7B6dw6.js → vue-ui-spark-trend-BqlM3vP7.js} +1 -1
  106. package/dist/{vue-ui-sparkbar-Dv89_7Pf.js → vue-ui-sparkbar-DqtEGBj9.js} +1 -1
  107. package/dist/{vue-ui-sparkgauge-BOPXQq5e.js → vue-ui-sparkgauge-DWOru6YE.js} +1 -1
  108. package/dist/{vue-ui-sparkhistogram-BXYBq4wu.js → vue-ui-sparkhistogram-DfYv2pHk.js} +1 -1
  109. package/dist/{vue-ui-sparkline-B-CVRLdL.js → vue-ui-sparkline-Bu5xssk9.js} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-Dg3wvlR7.js → vue-ui-sparkstackbar-D-a14Bay.js} +1 -1
  111. package/dist/{vue-ui-stackbar-Dojc9vet.js → vue-ui-stackbar-BB-KLlR-.js} +45 -46
  112. package/dist/{vue-ui-stackline-BrZw5IXj.js → vue-ui-stackline-fWtYk_Aa.js} +119 -120
  113. package/dist/{vue-ui-strip-plot-Jqkr7XWO.js → vue-ui-strip-plot-D0QC2wVw.js} +1 -1
  114. package/dist/{vue-ui-table-B_TE9dWt.js → vue-ui-table-Rk5HCqBr.js} +2 -2
  115. package/dist/{vue-ui-table-sparkline-DtryAFeu.js → vue-ui-table-sparkline-Cb6fl-Ux.js} +1 -1
  116. package/dist/{vue-ui-thermometer-Cf2u4_lH.js → vue-ui-thermometer-ConedyG6.js} +1 -1
  117. package/dist/{vue-ui-timer-BCw6IHHQ.js → vue-ui-timer-B-GcfZX7.js} +1 -1
  118. package/dist/{vue-ui-tiremarks-AOLQC2Pm.js → vue-ui-tiremarks-BGyILItf.js} +1 -1
  119. package/dist/{vue-ui-treemap-C8MtnLLV.js → vue-ui-treemap-C4PiafoY.js} +33 -34
  120. package/dist/{vue-ui-waffle-DvQ-_joz.js → vue-ui-waffle-DvHrxSIL.js} +44 -45
  121. package/dist/{vue-ui-wheel-BzBzZw1d.js → vue-ui-wheel-DeKJJliu.js} +1 -1
  122. package/dist/{vue-ui-word-cloud-LrVTAPzW.js → vue-ui-word-cloud-IAom94Mg.js} +1 -1
  123. package/dist/{vue-ui-world-7DPU6qqx.js → vue-ui-world-CH9uc5uY.js} +78 -77
  124. package/dist/{vue-ui-xy-XsqGdS48.js → vue-ui-xy-C11EO1Ja.js} +187 -188
  125. package/dist/{vue-ui-xy-canvas--zevqB3i.js → vue-ui-xy-canvas-DLvVyHZO.js} +103 -104
  126. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as vt, watchEffect as sl, nextTick as Pt, onBeforeUnmount as Pl, openBlock as i, createElementBlock as r, normalizeStyle as w, normalizeClass as Je, createElementVNode as y, toDisplayString as se, createBlock as _e, createCommentVNode as h, unref as v, withCtx as Y, renderSlot as O, normalizeProps as ve, guardReactiveProps as de, createSlots as lo, createVNode as dt, Fragment as d, renderList as k, mergeProps as Qe, Teleport as Ru, resolveDynamicComponent as Hu, withDirectives as Du, vModelCheckbox as Wu, createTextVNode as ao } from "vue";
2
- import { j as Ol, q as Nl, t as oo, n as Eu, D as uo, E as so, s as Fl, p as Vl, F as nl, G as W, H as Bl, I as Yu, J as Xu, K as N, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as he, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as ht, a3 as as } from "./lib-DMzrGQHK.js";
1
+ import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as ct, watchEffect as sl, nextTick as Pt, onBeforeUnmount as Pl, openBlock as i, createElementBlock as r, normalizeStyle as w, normalizeClass as Je, createElementVNode as y, toDisplayString as se, createBlock as _e, createCommentVNode as h, unref as v, withCtx as Y, renderSlot as O, normalizeProps as ve, guardReactiveProps as de, createSlots as lo, createVNode as vt, Fragment as d, renderList as k, mergeProps as Qe, Teleport as Ru, resolveDynamicComponent as Hu, withDirectives as Du, vModelCheckbox as Wu, createTextVNode as ao } from "vue";
2
+ import { j as Ol, q as Nl, t as oo, n as Eu, D as uo, E as so, s as Fl, p as Vl, F as nl, G as W, H as Bl, I as Yu, J as Xu, K as N, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as he, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as dt, a3 as as } from "./lib-DMzrGQHK.js";
3
3
  import { u as bo, a as po, b as os } from "./useTimeLabels-Cv0tD9In.js";
4
4
  import { u as us } from "./useConfig-B70q17MC.js";
5
5
  import { u as ss } from "./usePrinter-C4t8DdQ-.js";
@@ -123,21 +123,21 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
123
123
  const T = cl, ko = Re(() => import("./DataTable-cMnb68Ik.js")), _o = Re(() => import("./Tooltip-Cvt7Fi0Q.js")), wo = Re(
124
124
  () => import("./UserOptions-DVduN6X7.js")
125
125
  ), Rl = Re(() => import("./BaseIcon-DX0hTWa-.js")), So = Re(
126
- () => import("./vue-ui-table-sparkline-DtryAFeu.js")
126
+ () => import("./vue-ui-table-sparkline-Cb6fl-Ux.js")
127
127
  ), $o = Re(
128
- () => import("./PackageVersion-Ov37I8ii.js")
128
+ () => import("./PackageVersion-CHNfLQ9Q.js")
129
129
  ), Lo = Re(
130
130
  () => import("./PenAndPaper-CJDoB5H9.js")
131
131
  ), Mo = Re(
132
132
  () => import("./BaseDraggableDialog-Di8Hlru3.js")
133
- ), We = xo, Hl = Nu(), Ao = Fu(), { vue_ui_xy: ft } = us(), { isThemeValid: Co, warnInvalidTheme: To } = cs(), $e = g(null), mt = g(null), Te = g(null), et = g(null), gt = g(null), bt = g(null), zo = g(null), vl = g(null), dl = g(null), Ft = g(null), hl = g(null), fl = g(null), Ne = g(null), ml = g(null), Io = g(0), C = g(null), Dl = g(!0), fe = g(600), ee = g(1e3), Vt = g("0 0 1000 600"), Po = g({ x: 0, y: 0 }), pt = g({ line: "line", bar: "bar", plot: "plot" }), tt = g(!1), Ee = g(!1), Wl = g(!1), Ye = g(null), G = g([]), z = g(Ol()), El = g(0), Yl = g(0), Xl = g(0), yt = g(!0), gl = g(0), P = g(null), Gl = g(!1), bl = g(!0), Bt = g(!0), ae = g(null), Oe = g({}), Rt = g(null), ql = g(!1), lt = g(null), Ht = g(!1), Dt = g(!1), _ = g(null), at = g(null), Ul = g({ x: 0, y: 0 }), Zl = Vu(null), Kl = g(!1), Jl = g(0), Ql = g(0), jl = vs({
133
+ ), We = xo, Hl = Nu(), Ao = Fu(), { vue_ui_xy: ht } = us(), { isThemeValid: Co, warnInvalidTheme: To } = cs(), $e = g(null), ft = g(null), Te = g(null), mt = g(null), gt = g(null), bt = g(null), zo = g(null), vl = g(null), dl = g(null), Ft = g(null), hl = g(null), fl = g(null), Ne = g(null), ml = g(null), Io = g(0), C = g(null), Dl = g(!0), fe = g(600), ee = g(1e3), Vt = g("0 0 1000 600"), Po = g({ x: 0, y: 0 }), pt = g({ line: "line", bar: "bar", plot: "plot" }), et = g(!1), Ee = g(!1), Wl = g(!1), Ye = g(null), G = g([]), z = g(Ol()), El = g(0), Yl = g(0), Xl = g(0), yt = g(!0), gl = g(0), P = g(null), Gl = g(!1), bl = g(!0), Bt = g(!0), ae = g(null), Oe = g({}), Rt = g(null), ql = g(!1), tt = g(null), Ht = g(!1), Dt = g(!1), _ = g(null), lt = g(null), Ul = g({ x: 0, y: 0 }), Zl = Vu(null), Kl = g(!1), Jl = g(0), Ql = g(0), jl = vs({
134
134
  elementRef: Zl,
135
135
  minimumWidth: 2,
136
136
  minimumHeight: 2,
137
137
  stableFramesRequired: 2,
138
138
  once: !1,
139
139
  onSizeAccepted: () => {
140
- ot();
140
+ at();
141
141
  }
142
142
  });
143
143
  function xt() {
@@ -150,7 +150,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
150
150
  });
151
151
  });
152
152
  }
153
- async function ot() {
153
+ async function at() {
154
154
  const l = ++Ql.value;
155
155
  Kl.value = !1, await Pt(), await ea(), await ea(), l === Ql.value && (Jl.value += 1, Kl.value = !0);
156
156
  }
@@ -179,31 +179,31 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
179
179
  index: o,
180
180
  debug: kt.value
181
181
  });
182
- }), xt(), jl.start(), ot();
182
+ }), xt(), jl.start(), at();
183
183
  });
184
184
  function yl() {
185
185
  if (!Object.keys(T.config || {}).length)
186
- return ft;
186
+ return ht;
187
187
  const l = Nt({
188
188
  userConfig: T.config,
189
- defaultConfig: ft
189
+ defaultConfig: ht
190
190
  });
191
191
  T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea : l.chart.highlightArea = [
192
192
  T.config.chart.highlightArea
193
193
  ]), T.config && Ot(T.config, "chart.annotations") && Array.isArray(T.config.chart.annotations) && T.config.chart.annotations.length ? l.chart.annotations = T.config.chart.annotations.map(
194
194
  (a) => Nt({
195
- defaultConfig: ft.chart.annotations[0],
195
+ defaultConfig: ht.chart.annotations[0],
196
196
  userConfig: a
197
197
  })
198
198
  ) : l.chart.annotations = [], T.config && Ot(T.config, "chart.grid.position") && T.config.chart.grid.position === "start" && T.dataset.length && T.dataset.some((a) => a.type === "bar") && (l.chart.grid.position = "middle", Ot(T.config, "debug") && console.warn(
199
199
  "Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar"
200
200
  )), T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea.map(
201
201
  (a) => aa({
202
- defaultConfig: ft.chart.highlightArea,
202
+ defaultConfig: ht.chart.highlightArea,
203
203
  userConfig: a
204
204
  })
205
205
  ) : l.chart.highlightArea = aa({
206
- defaultConfig: ft.chart.highlightArea,
206
+ defaultConfig: ht.chart.highlightArea,
207
207
  userConfig: T.config.chart.highlightArea
208
208
  }));
209
209
  const o = l.theme;
@@ -359,7 +359,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
359
359
  function ua(l, o) {
360
360
  Me.value[l] = o;
361
361
  }
362
- function ut() {
362
+ function ot() {
363
363
  const l = Math.max(
364
364
  1,
365
365
  ...pe.value.map((s) => Fe(s.series).length)
@@ -387,7 +387,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
387
387
  }
388
388
  };
389
389
  });
390
- vt(
390
+ ct(
391
391
  () => T.selectedXIndex,
392
392
  (l) => {
393
393
  if ([null, void 0].includes(T.selectedXIndex)) {
@@ -403,17 +403,17 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
403
403
  elementId: `vue-ui-xy_${z.value}`,
404
404
  fileName: t.value.chart.title.text || "vue-ui-xy",
405
405
  options: t.value.chart.userOptions.print
406
- }), Ho = g(!1), Yt = b(() => Eu(t.value.customPalette)), st = b(() => {
406
+ }), Ho = g(!1), Yt = b(() => Eu(t.value.customPalette)), ut = b(() => {
407
407
  const l = t.value.chart.grid.labels.yAxis.scaleMin;
408
408
  if (l == null) return null;
409
409
  const o = Number(l);
410
410
  return Number.isFinite(o) ? o : null;
411
- }), Do = b(() => st.value !== null ? c.value.bottom : me.value), _t = b(() => {
411
+ }), Do = b(() => ut.value !== null ? c.value.bottom : me.value), _t = b(() => {
412
412
  const l = t.value.chart.grid.labels.yAxis.scaleMax;
413
413
  if (l == null) return null;
414
414
  const o = Number(l);
415
415
  return Number.isFinite(o) ? o : null;
416
- }), ia = b(() => st.value !== null || _t.value !== null), ra = b(() => {
416
+ }), ia = b(() => ut.value !== null || _t.value !== null), ra = b(() => {
417
417
  const l = Ve.value.filter((o) => !G.value.includes(o.id)).flatMap((o) => Array.isArray(o.series) ? o.series : []).filter(Number.isFinite);
418
418
  return l.length ? {
419
419
  min: Math.min(...l),
@@ -430,7 +430,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
430
430
  const u = l;
431
431
  return u > 0 ? 0 : u;
432
432
  }
433
- const e = st.value !== null ? st.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
433
+ const e = ut.value !== null ? ut.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
434
434
  return ca(a, n).min;
435
435
  }), Gt = b(() => {
436
436
  const { min: l, max: o } = ra.value;
@@ -438,7 +438,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
438
438
  const u = o;
439
439
  return Xt.value === u ? u + 1 : u;
440
440
  }
441
- const e = st.value !== null ? st.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
441
+ const e = ut.value !== null ? ut.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
442
442
  return ca(a, n).max;
443
443
  }), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(
444
444
  Xt.value,
@@ -487,18 +487,18 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
487
487
  const o = dl.value ? dl.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + x.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
488
488
  return l + o + e;
489
489
  }
490
- const St = g(0), nt = g(0);
490
+ const St = g(0), st = g(0);
491
491
  function va() {
492
492
  const l = Ft.value;
493
493
  if (!l) {
494
- St.value = 0, nt.value = 0;
494
+ St.value = 0, st.value = 0;
495
495
  return;
496
496
  }
497
497
  try {
498
498
  const o = l.getBBox();
499
- St.value = o?.height ?? 0, nt.value = o?.x ?? 0;
499
+ St.value = o?.height ?? 0, st.value = o?.x ?? 0;
500
500
  } catch {
501
- St.value = 0, nt.value = 0;
501
+ St.value = 0, st.value = 0;
502
502
  }
503
503
  }
504
504
  const da = b(() => {
@@ -516,7 +516,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
516
516
  const o = 36;
517
517
  t.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? l = (pe.value.length - G.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + o) : f.value.useIndividualScale && f.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + o : l = Eo());
518
518
  const e = t.value.chart.labels.fontSize * 1.1, s = Yo.value ? 24 : 6;
519
- Ft.value && nt.value < 0 && (l += Math.abs(nt.value));
519
+ Ft.value && st.value < 0 && (l += Math.abs(st.value));
520
520
  const a = ee.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - s - t.value.chart.padding?.left - t.value.chart.padding?.right, n = t.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
521
521
  return {
522
522
  top: t.value.chart.padding?.top + e,
@@ -565,7 +565,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
565
565
  await Pt(), Ut.value = l, Gl.value && (Bt.value = l);
566
566
  }
567
567
  function wl() {
568
- tt.value = !tt.value;
568
+ et.value = !et.value;
569
569
  }
570
570
  const oe = g([]), Zt = g([]);
571
571
  let ga = 0;
@@ -632,7 +632,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
632
632
  It(() => {
633
633
  requestAnimationFrame(() => {
634
634
  va();
635
- }), vt(
635
+ }), ct(
636
636
  [
637
637
  () => Zo.value,
638
638
  () => t.value.chart.grid.labels.xAxisLabels.rotation,
@@ -648,7 +648,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
648
648
  { flush: "post" }
649
649
  );
650
650
  }), Pl(() => {
651
- St.value = 0, nt.value = 0, jl.stop();
651
+ St.value = 0, st.value = 0, jl.stop();
652
652
  });
653
653
  function pa(l, o) {
654
654
  const e = ye.value.map((s) => ({
@@ -713,7 +713,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
713
713
  );
714
714
  _a.value = 0, wa.value = e;
715
715
  const s = l ?? 0, a = o != null ? Math.min(xa(o + 1), e) : e;
716
- Qt.value = !0, m.value.start = s, m.value.end = a, Me.value.start = s, Me.value.end = a, ut(), ka.value = !0;
716
+ Qt.value = !0, m.value.start = s, m.value.end = a, Me.value.start = s, Me.value.end = a, ot(), ka.value = !0;
717
717
  } finally {
718
718
  queueMicrotask(() => {
719
719
  Qt.value = !1;
@@ -731,7 +731,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
731
731
  o,
732
732
  _a.value
733
733
  )
734
- }), Number.isFinite(o) && o !== m.value.start && (m.value.start = o, Me.value.start = o, ut());
734
+ }), Number.isFinite(o) && o !== m.value.start && (m.value.start = o, Me.value.start = o, ot());
735
735
  }
736
736
  function jo(l) {
737
737
  if ($t.value || Qt.value) return;
@@ -739,7 +739,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
739
739
  We("zoomEnd", {
740
740
  index: o,
741
741
  isZoom: Sa(o, wa.value)
742
- }), o !== m.value.end && (m.value.end = o, Me.value.end = o, ut());
742
+ }), o !== m.value.end && (m.value.end = o, Me.value.end = o, ot());
743
743
  }
744
744
  async function eu() {
745
745
  await Jt(), We("zoomReset");
@@ -796,7 +796,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
796
796
  l.zeroPosition
797
797
  ) ? 0 : l.zeroPosition;
798
798
  }
799
- const it = g(null);
799
+ const nt = g(null);
800
800
  function Ta(l) {
801
801
  const o = ae.value;
802
802
  if (!o) return null;
@@ -819,7 +819,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
819
819
  }
820
820
  let qe = 0;
821
821
  function tu(l) {
822
- at.value = null, !tt.value && (qe && cancelAnimationFrame(qe), qe = requestAnimationFrame(() => {
822
+ lt.value = null, !et.value && (qe && cancelAnimationFrame(qe), qe = requestAnimationFrame(() => {
823
823
  qe = 0;
824
824
  const o = Ta(l);
825
825
  if (!o || !ae.value) {
@@ -832,11 +832,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
832
832
  return;
833
833
  }
834
834
  const S = o.x - e, M = u / $.value, I = Math.floor(S / M);
835
- I >= 0 && I < $.value ? it.value !== I && (it.value = I, Al(!0, I)) : Lt();
835
+ I >= 0 && I < $.value ? nt.value !== I && (nt.value = I, Al(!0, I)) : Lt();
836
836
  }));
837
837
  }
838
838
  function Lt() {
839
- qe && (cancelAnimationFrame(qe), qe = 0), it.value = null, Al(!1, null);
839
+ qe && (cancelAnimationFrame(qe), qe = 0), nt.value = null, Al(!1, null);
840
840
  }
841
841
  function za(l) {
842
842
  const o = Ta(l);
@@ -850,7 +850,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
850
850
  }
851
851
  }
852
852
  }
853
- it.value != null && Ia(it.value);
853
+ nt.value != null && Ia(nt.value);
854
854
  }
855
855
  function Ia(l) {
856
856
  const o = ye.value.map((e) => ({
@@ -986,7 +986,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
986
986
  prefix: t.value.chart.labels.prefix,
987
987
  suffix: t.value.chart.labels.suffix,
988
988
  colNames: oe.value.map(
989
- (l, o) => t.value.table.useDefaultTimeFormat ? l.text : rt.value(
989
+ (l, o) => t.value.table.useDefaultTimeFormat ? l.text : it.value(
990
990
  o + m.value.start,
991
991
  t.value.table.timeFormat
992
992
  )
@@ -1623,7 +1623,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1623
1623
  l === Da && (Ha.value = e.data);
1624
1624
  })();
1625
1625
  });
1626
- const rt = b(() => {
1626
+ const it = b(() => {
1627
1627
  const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, o = os({
1628
1628
  useUTC: l.useUTC,
1629
1629
  locale: Ha.value,
@@ -1634,7 +1634,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1634
1634
  return n == null ? "" : o.formatDate(new Date(n), s);
1635
1635
  };
1636
1636
  }), Wa = b(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((o, e) => ({
1637
- text: rt.value(
1637
+ text: it.value(
1638
1638
  e,
1639
1639
  t.value.chart.zoom.timeFormat
1640
1640
  ),
@@ -1667,7 +1667,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1667
1667
  dateLabel: e
1668
1668
  });
1669
1669
  if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
1670
- const a = rt.value(
1670
+ const a = it.value(
1671
1671
  _.value + m.value.start,
1672
1672
  t.value.chart.tooltip.timeFormat
1673
1673
  );
@@ -1754,7 +1754,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1754
1754
  })), o = [];
1755
1755
  return oe.value.forEach((e, s) => {
1756
1756
  const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
1757
- rt.value(
1757
+ it.value(
1758
1758
  s + m.value.start,
1759
1759
  t.value.table.timeFormat
1760
1760
  )
@@ -1769,7 +1769,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1769
1769
  );
1770
1770
  }), o.push(a);
1771
1771
  }), { head: l, body: o };
1772
- }), ct = b(() => {
1772
+ }), rt = b(() => {
1773
1773
  const l = t.value.table.showSum;
1774
1774
  let o = [""].concat(ye.value.map((n) => n.name));
1775
1775
  l && (o = o.concat(
@@ -1780,7 +1780,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1780
1780
  const u = ye.value.map((S) => S.absoluteValues[n] ?? 0).reduce((S, M) => S + M, 0);
1781
1781
  e.push(
1782
1782
  [
1783
- t.value.table.useDefaultTimeFormat ? oe.value[n]?.text ?? "-" : rt.value(
1783
+ t.value.table.useDefaultTimeFormat ? oe.value[n]?.text ?? "-" : it.value(
1784
1784
  n + m.value.start,
1785
1785
  t.value.table.timeFormat
1786
1786
  )
@@ -1862,37 +1862,37 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1862
1862
  x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius;
1863
1863
  return;
1864
1864
  }
1865
- x.value.dataLabels = ht({
1865
+ x.value.dataLabels = dt({
1866
1866
  relator: fe.value,
1867
1867
  adjuster: 400,
1868
1868
  source: t.value.chart.grid.labels.fontSize,
1869
1869
  threshold: 10,
1870
1870
  fallback: 10
1871
- }), x.value.yAxis = ht({
1871
+ }), x.value.yAxis = dt({
1872
1872
  relator: ee.value,
1873
1873
  adjuster: 1e3,
1874
1874
  source: t.value.chart.grid.labels.axis.fontSize,
1875
1875
  threshold: 10,
1876
1876
  fallback: 10
1877
- }), x.value.xAxis = ht({
1877
+ }), x.value.xAxis = dt({
1878
1878
  relator: ee.value,
1879
1879
  adjuster: 1e3,
1880
1880
  source: t.value.chart.grid.labels.xAxisLabels.fontSize,
1881
1881
  threshold: 10,
1882
1882
  fallback: 10
1883
- }), x.value.plotLabels = ht({
1883
+ }), x.value.plotLabels = dt({
1884
1884
  relator: ee.value,
1885
1885
  adjuster: 800,
1886
1886
  source: t.value.chart.labels.fontSize,
1887
1887
  threshold: 10,
1888
1888
  fallback: 10
1889
- }), Le.value.plot = ht({
1889
+ }), Le.value.plot = dt({
1890
1890
  relator: ee.value,
1891
1891
  adjuster: 800,
1892
1892
  source: t.value.plot.radius,
1893
1893
  threshold: 1,
1894
1894
  fallback: 1
1895
- }), Le.value.line = ht({
1895
+ }), Le.value.line = dt({
1896
1896
  relator: ee.value,
1897
1897
  adjuster: 800,
1898
1898
  source: t.value.line.radius,
@@ -1928,25 +1928,25 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
1928
1928
  Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect());
1929
1929
  const { height: s, width: a } = e.getBoundingClientRect();
1930
1930
  let n = null, u = 0;
1931
- t.value.chart.title.show && mt.value && (n = mt.value, u = n.getBoundingClientRect().height);
1931
+ t.value.chart.title.show && ft.value && (n = ft.value, u = n.getBoundingClientRect().height);
1932
1932
  let S = null, M = 0;
1933
1933
  t.value.chart.zoom.show && ze.value > 6 && xl.value && Te.value && Te.value.$el && (S = Te.value.$el, M = S.getBoundingClientRect().height);
1934
1934
  let I = null, V = 0;
1935
- t.value.chart.legend.show && et.value && (I = et.value, V = I.getBoundingClientRect().height);
1935
+ t.value.chart.legend.show && mt.value && (I = mt.value, V = I.getBoundingClientRect().height);
1936
1936
  let D = 0;
1937
1937
  gt.value && (D = gt.value.getBoundingClientRect().height);
1938
1938
  let F = 0;
1939
1939
  bt.value && (F = bt.value.getBoundingClientRect().height), fe.value = s - u - V - M - D - F - l, ee.value = a, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${fe.value < 0 ? 10 : fe.value}`, Ua();
1940
1940
  const p = new ResizeObserver((te) => {
1941
1941
  for (const B of te)
1942
- t.value.chart.title.show && mt.value ? u = mt.value.getBoundingClientRect().height : u = 0, Te.value && Te.value.$el ? M = Te.value.$el.getBoundingClientRect().height : M = 0, et.value ? V = et.value.getBoundingClientRect().height : V = 0, gt.value ? D = gt.value.getBoundingClientRect().height : D = 0, bt.value ? F = bt.value.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
1943
- fe.value = B.contentRect.height - u - V - M - D - F - l, ee.value = B.contentBoxSize[0].inlineSize ?? B.contentRect.width, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${fe.value < 0 ? 10 : fe.value}`, Ua(), xt(), ot();
1942
+ t.value.chart.title.show && ft.value ? u = ft.value.getBoundingClientRect().height : u = 0, Te.value && Te.value.$el ? M = Te.value.$el.getBoundingClientRect().height : M = 0, mt.value ? V = mt.value.getBoundingClientRect().height : V = 0, gt.value ? D = gt.value.getBoundingClientRect().height : D = 0, bt.value ? F = bt.value.getBoundingClientRect().height : F = 0, requestAnimationFrame(() => {
1943
+ fe.value = B.contentRect.height - u - V - M - D - F - l, ee.value = B.contentBoxSize[0].inlineSize ?? B.contentRect.width, Vt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${fe.value < 0 ? 10 : fe.value}`, Ua(), xt(), at();
1944
1944
  });
1945
1945
  });
1946
1946
  Ne.value = p, ml.value = e, p.observe(e);
1947
1947
  } else
1948
1948
  fe.value = t.value.chart.height, ee.value = t.value.chart.width, x.value.dataLabels = t.value.chart.grid.labels.fontSize, x.value.yAxis = t.value.chart.grid.labels.axis.fontSize, x.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = t.value.chart.labels.fontSize, Le.value.plot = t.value.plot.radius, Le.value.line = t.value.line.radius, Vt.value = `0 0 ${ee.value} ${fe.value}`;
1949
- xt(), ot();
1949
+ xt(), at();
1950
1950
  }
1951
1951
  function Za(l) {
1952
1952
  Po.value = {
@@ -2037,12 +2037,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2037
2037
  console.warn("Custom format cannot be applied on timeTag."), al.value = !1;
2038
2038
  }
2039
2039
  if (!al.value)
2040
- return [null, void 0].includes(oe.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? rt.value(
2040
+ return [null, void 0].includes(oe.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? it.value(
2041
2041
  l + m.value.start,
2042
2042
  t.value.chart.timeTag.timeFormat
2043
2043
  ) : oe.value[l].text;
2044
2044
  });
2045
- vt(
2045
+ ct(
2046
2046
  () => T.dataset,
2047
2047
  (l) => {
2048
2048
  Array.isArray(l) && l.length > 0 && (Wt.value = !1), ze.value = Math.max(
@@ -2052,13 +2052,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2052
2052
  ), m.value = {
2053
2053
  start: 0,
2054
2054
  end: ze.value
2055
- }, Io.value += 1, gl.value += 1, xt(), ot(), ut();
2055
+ }, Io.value += 1, gl.value += 1, xt(), at(), ot();
2056
2056
  },
2057
2057
  { deep: !0 }
2058
- ), vt(
2058
+ ), ct(
2059
2059
  () => T.config,
2060
2060
  (l) => {
2061
- ne.value || (t.value = yl()), Cl(), Xl.value += 1, Yl.value += 1, kl(), xt(), ot(), ut();
2061
+ ne.value || (t.value = yl()), Cl(), Xl.value += 1, Yl.value += 1, kl(), xt(), at(), ot();
2062
2062
  },
2063
2063
  { deep: !0 }
2064
2064
  );
@@ -2075,10 +2075,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2075
2075
  It(() => {
2076
2076
  Qa();
2077
2077
  const l = new ResizeObserver(() => {
2078
- Qa(), Tl.value && (Cl(), ut(), Jt());
2078
+ Qa(), Tl.value && (Cl(), ot(), Jt());
2079
2079
  });
2080
2080
  $e.value?.parentNode && l.observe($e.value.parentNode);
2081
- }), vt(
2081
+ }), ct(
2082
2082
  t,
2083
2083
  () => {
2084
2084
  kl();
@@ -2115,10 +2115,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2115
2115
  }
2116
2116
  };
2117
2117
  });
2118
- vt(
2118
+ ct(
2119
2119
  () => f.value.showTable,
2120
2120
  (l) => {
2121
- t.value.showTable || (l && t.value.table.useDialog && lt.value ? lt.value.open() : lt.value && lt.value.close && lt.value.close());
2121
+ t.value.showTable || (l && t.value.table.useDialog && tt.value ? tt.value.open() : tt.value && tt.value.close && tt.value.close());
2122
2122
  }
2123
2123
  );
2124
2124
  function ja() {
@@ -2198,21 +2198,21 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2198
2198
  }
2199
2199
  const zl = g(!1);
2200
2200
  function Cu() {
2201
- m.value.end > m.value.start && (at.value = null), Ut.value = !0, zl.value = !0;
2201
+ m.value.end > m.value.start && (lt.value = null), Ut.value = !0, zl.value = !0;
2202
2202
  }
2203
2203
  function Tu() {
2204
- at.value = null, Lt(), zl.value = !1, Ut.value = !1;
2204
+ lt.value = null, Lt(), zl.value = !1, Ut.value = !1;
2205
2205
  }
2206
2206
  function zu(l) {
2207
- if (!ae.value || tt.value || document.activeElement !== ae.value) return;
2207
+ if (!ae.value || et.value || document.activeElement !== ae.value) return;
2208
2208
  const o = l.key === "ArrowLeft", e = l.key === "ArrowRight";
2209
2209
  if (!o && !e || !m.value.end && m.value.end !== 0) return;
2210
2210
  const s = m.value.end - m.value.start;
2211
2211
  if (s <= 0) return;
2212
2212
  l.preventDefault(), l.stopPropagation();
2213
- let a = at.value;
2214
- const n = it.value, u = a !== null && a >= 0 && a < s, S = n !== null && n >= 0 && n < s;
2215
- u ? e ? (a += 1, a >= s && (a = 0)) : o && (a -= 1, a < 0 && (a = s - 1)) : S ? (a = e ? n + 1 : n - 1, a >= s && (a = 0), a < 0 && (a = s - 1)) : e ? a = 0 : a = s - 1, at.value = a, Iu(a), Al(!0, a);
2213
+ let a = lt.value;
2214
+ const n = nt.value, u = a !== null && a >= 0 && a < s, S = n !== null && n >= 0 && n < s;
2215
+ u ? e ? (a += 1, a >= s && (a = 0)) : o && (a -= 1, a < 0 && (a = s - 1)) : S ? (a = e ? n + 1 : n - 1, a >= s && (a = 0), a < 0 && (a = s - 1)) : e ? a = 0 : a = s - 1, lt.value = a, Iu(a), Al(!0, a);
2216
2216
  }
2217
2217
  function Iu(l) {
2218
2218
  const o = m.value.end - m.value.start;
@@ -2221,13 +2221,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2221
2221
  n && (Ul.value = n);
2222
2222
  }
2223
2223
  const Il = b(() => {
2224
- if (!ct.value) return null;
2224
+ if (!rt.value) return null;
2225
2225
  const l = t.value.table.showSum;
2226
2226
  let o = [t.value.table.columnNames.period].concat(
2227
2227
  ye.value.map((s) => s.name)
2228
2228
  );
2229
2229
  l && (o = o.concat(t.value.table.columnNames.total));
2230
- const e = ct.value.body.slice(
2230
+ const e = rt.value.body.slice(
2231
2231
  m.value.start,
2232
2232
  m.value.end
2233
2233
  );
@@ -2281,7 +2281,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2281
2281
  svgRef: ae.value,
2282
2282
  backgroundColor: t.value.chart.backgroundColor,
2283
2283
  color: t.value.chart.color,
2284
- active: tt.value,
2284
+ active: et.value,
2285
2285
  isCursorPointer: Xe.value,
2286
2286
  onClose: wl
2287
2287
  }, {
@@ -2315,7 +2315,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2315
2315
  t.value.chart.title.show ? (i(), r("div", {
2316
2316
  key: 3,
2317
2317
  ref_key: "chartTitle",
2318
- ref: mt,
2318
+ ref: ft,
2319
2319
  class: "vue-ui-xy-title",
2320
2320
  style: w(`font-family:${t.value.chart.fontFamily}`)
2321
2321
  }, [
@@ -2362,7 +2362,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2362
2362
  isTooltip: f.value.showTooltip,
2363
2363
  titles: { ...t.value.chart.userOptions.buttonTitles },
2364
2364
  hasAnnotator: t.value.chart.userOptions.buttons.annotator,
2365
- isAnnotation: tt.value,
2365
+ isAnnotation: et.value,
2366
2366
  callbacks: t.value.chart.userOptions.callbacks,
2367
2367
  tableDialog: t.value.table.useDialog,
2368
2368
  printScale: t.value.chart.userOptions.print.scale,
@@ -2501,7 +2501,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
2501
2501
  ref: zo,
2502
2502
  class: "vue-data-ui-g"
2503
2503
  }, [
2504
- dt(v($o)),
2504
+ vt(v($o)),
2505
2505
  l.$slots["chart-background"] ? (i(), r("foreignObject", {
2506
2506
  key: 0,
2507
2507
  x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
@@ -4220,115 +4220,114 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4220
4220
  y("div", {
4221
4221
  id: `legend-bottom-${z.value}`
4222
4222
  }, null, 8, Ui),
4223
- ql.value ? (i(), _e(Ru, {
4223
+ ql.value && (t.value.chart.legend.show || l.$slots.legend) ? (i(), _e(Ru, {
4224
4224
  key: 7,
4225
4225
  to: t.value.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
4226
4226
  }, [
4227
- t.value.chart.legend.show ? (i(), r("div", {
4228
- key: 0,
4227
+ y("div", {
4229
4228
  ref_key: "chartLegend",
4230
- ref: et,
4231
- class: "vue-ui-xy-legend",
4232
- style: w({
4233
- fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
4234
- })
4229
+ ref: mt
4235
4230
  }, [
4236
- t.value.chart.legend.selectAllToggle.show && ie.value.length > 2 && !v(ne) ? (i(), _e(ps, {
4237
- key: 0,
4238
- backgroundColor: t.value.chart.legend.selectAllToggle.backgroundColor,
4239
- color: t.value.chart.legend.selectAllToggle.color,
4240
- fontSize: t.value.chart.legend.fontSize,
4241
- checked: G.value.length > 0,
4242
- onToggle: ou
4243
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0),
4244
- (i(!0), r(d, null, k(ie.value, (e, s) => (i(), r("div", {
4245
- key: `div_legend_item_${s}`,
4246
- onClick: (a) => Mt(e),
4247
- onKeydown: (a) => uu(a, e),
4248
- role: "button",
4249
- tabindex: "0",
4250
- class: Je({
4251
- "vue-ui-xy-legend-item-alone": ie.value.length === 1,
4252
- "vue-ui-xy-legend-item": !0,
4253
- "vue-ui-xy-legend-item-segregated": G.value.includes(e.id)
4254
- }),
4255
- style: w({
4256
- cursor: Xe.value ? "pointer" : "default"
4257
- })
4258
- }, [
4259
- pt.value[e.type] === "line" ? (i(), r("svg", Ki, [
4260
- y("rect", {
4261
- x: "0",
4262
- y: "7.5",
4263
- rx: "1.5",
4264
- stroke: t.value.chart.backgroundColor,
4265
- "stroke-width": 0.5,
4266
- height: "3",
4267
- width: "20",
4268
- fill: e.color
4269
- }, null, 8, Ji),
4270
- dt(rl, {
4271
- plot: { x: 10, y: 9 },
4272
- radius: 4,
4273
- color: e.color,
4274
- shape: [
4275
- "triangle",
4276
- "square",
4277
- "diamond",
4278
- "pentagon",
4279
- "hexagon",
4280
- "star"
4281
- ].includes(e.shape) ? e.shape : "circle",
4282
- stroke: t.value.chart.backgroundColor,
4283
- strokeWidth: 0.5
4284
- }, null, 8, ["color", "shape", "stroke"])
4285
- ])) : pt.value[e.type] === "bar" ? (i(), r("svg", Qi, [
4286
- pt.value[e.type] === "bar" && l.$slots.pattern ? (i(), r("rect", {
4231
+ O(l.$slots, "legend", { legend: ie.value }, () => [
4232
+ t.value.chart.legend.show ? (i(), r("div", {
4233
+ key: 0,
4234
+ class: "vue-ui-xy-legend",
4235
+ style: w({
4236
+ fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
4237
+ })
4238
+ }, [
4239
+ t.value.chart.legend.selectAllToggle.show && ie.value.length > 2 && !v(ne) ? (i(), _e(ps, {
4287
4240
  key: 0,
4288
- x: "4",
4289
- y: "4",
4290
- rx: "1",
4291
- height: "32",
4292
- width: "32",
4293
- stroke: "none",
4294
- fill: e.color
4295
- }, null, 8, ji)) : h("", !0),
4296
- pt.value[e.type] === "bar" ? (i(), r("rect", {
4297
- key: 1,
4298
- x: "4",
4299
- y: "4",
4300
- rx: "1",
4301
- height: "32",
4302
- width: "32",
4303
- stroke: "none",
4304
- fill: l.$slots.pattern ? `url(#pattern_${z.value}_${e.slotAbsoluteIndex})` : e.color
4305
- }, null, 8, er)) : h("", !0)
4306
- ])) : (i(), r("svg", tr, [
4307
- dt(rl, {
4308
- plot: { x: 6, y: 6 },
4309
- radius: 5,
4310
- color: e.color,
4311
- shape: [
4312
- "triangle",
4313
- "square",
4314
- "diamond",
4315
- "pentagon",
4316
- "hexagon",
4317
- "star"
4318
- ].includes(e.shape) ? e.shape : "circle"
4319
- }, null, 8, ["color", "shape"])
4320
- ])),
4321
- y("span", {
4322
- style: w(`color:${t.value.chart.legend.color}`)
4323
- }, se(e.name), 5)
4324
- ], 46, Zi))), 128))
4325
- ], 4)) : (i(), r("div", {
4326
- key: 1,
4327
- ref_key: "chartLegend",
4328
- ref: et
4329
- }, [
4330
- O(l.$slots, "legend", { legend: ie.value }, void 0, !0)
4331
- ], 512))
4241
+ backgroundColor: t.value.chart.legend.selectAllToggle.backgroundColor,
4242
+ color: t.value.chart.legend.selectAllToggle.color,
4243
+ fontSize: t.value.chart.legend.fontSize,
4244
+ checked: G.value.length > 0,
4245
+ onToggle: ou
4246
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : h("", !0),
4247
+ (i(!0), r(d, null, k(ie.value, (e, s) => (i(), r("div", {
4248
+ key: `div_legend_item_${s}`,
4249
+ onClick: (a) => Mt(e),
4250
+ onKeydown: (a) => uu(a, e),
4251
+ role: "button",
4252
+ tabindex: "0",
4253
+ class: Je({
4254
+ "vue-ui-xy-legend-item-alone": ie.value.length === 1,
4255
+ "vue-ui-xy-legend-item": !0,
4256
+ "vue-ui-xy-legend-item-segregated": G.value.includes(e.id)
4257
+ }),
4258
+ style: w({
4259
+ cursor: Xe.value ? "pointer" : "default"
4260
+ })
4261
+ }, [
4262
+ pt.value[e.type] === "line" ? (i(), r("svg", Ki, [
4263
+ y("rect", {
4264
+ x: "0",
4265
+ y: "7.5",
4266
+ rx: "1.5",
4267
+ stroke: t.value.chart.backgroundColor,
4268
+ "stroke-width": 0.5,
4269
+ height: "3",
4270
+ width: "20",
4271
+ fill: e.color
4272
+ }, null, 8, Ji),
4273
+ vt(rl, {
4274
+ plot: { x: 10, y: 9 },
4275
+ radius: 4,
4276
+ color: e.color,
4277
+ shape: [
4278
+ "triangle",
4279
+ "square",
4280
+ "diamond",
4281
+ "pentagon",
4282
+ "hexagon",
4283
+ "star"
4284
+ ].includes(e.shape) ? e.shape : "circle",
4285
+ stroke: t.value.chart.backgroundColor,
4286
+ strokeWidth: 0.5
4287
+ }, null, 8, ["color", "shape", "stroke"])
4288
+ ])) : pt.value[e.type] === "bar" ? (i(), r("svg", Qi, [
4289
+ pt.value[e.type] === "bar" && l.$slots.pattern ? (i(), r("rect", {
4290
+ key: 0,
4291
+ x: "4",
4292
+ y: "4",
4293
+ rx: "1",
4294
+ height: "32",
4295
+ width: "32",
4296
+ stroke: "none",
4297
+ fill: e.color
4298
+ }, null, 8, ji)) : h("", !0),
4299
+ pt.value[e.type] === "bar" ? (i(), r("rect", {
4300
+ key: 1,
4301
+ x: "4",
4302
+ y: "4",
4303
+ rx: "1",
4304
+ height: "32",
4305
+ width: "32",
4306
+ stroke: "none",
4307
+ fill: l.$slots.pattern ? `url(#pattern_${z.value}_${e.slotAbsoluteIndex})` : e.color
4308
+ }, null, 8, er)) : h("", !0)
4309
+ ])) : (i(), r("svg", tr, [
4310
+ vt(rl, {
4311
+ plot: { x: 6, y: 6 },
4312
+ radius: 5,
4313
+ color: e.color,
4314
+ shape: [
4315
+ "triangle",
4316
+ "square",
4317
+ "diamond",
4318
+ "pentagon",
4319
+ "hexagon",
4320
+ "star"
4321
+ ].includes(e.shape) ? e.shape : "circle"
4322
+ }, null, 8, ["color", "shape"])
4323
+ ])),
4324
+ y("span", {
4325
+ style: w(`color:${t.value.chart.legend.color}`)
4326
+ }, se(e.name), 5)
4327
+ ], 46, Zi))), 128))
4328
+ ], 4)) : h("", !0)
4329
+ ], !0)
4330
+ ], 512)
4332
4331
  ], 8, ["to"])) : h("", !0),
4333
4332
  l.$slots.source ? (i(), r("div", {
4334
4333
  key: 8,
@@ -4338,7 +4337,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4338
4337
  }, [
4339
4338
  O(l.$slots, "source", {}, void 0, !0)
4340
4339
  ], 512)) : h("", !0),
4341
- dt(v(_o), {
4340
+ vt(v(_o), {
4342
4341
  teleportTo: t.value.chart.tooltip.teleportTo,
4343
4342
  show: f.value.showTooltip && Wl.value,
4344
4343
  backgroundColor: t.value.chart.tooltip.backgroundColor,
@@ -4358,7 +4357,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4358
4357
  backdropFilter: t.value.chart.tooltip.backdropFilter,
4359
4358
  smoothForce: t.value.chart.tooltip.smoothForce,
4360
4359
  smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold,
4361
- isA11yMode: at.value != null,
4360
+ isA11yMode: lt.value != null,
4362
4361
  a11yPosition: Ul.value
4363
4362
  }, {
4364
4363
  "tooltip-before": Y(() => [
@@ -4374,7 +4373,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4374
4373
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
4375
4374
  xl.value && t.value.chart.userOptions.buttons.table ? (i(), _e(Hu(Ct.value.component), Qe({ key: 9 }, Ct.value.props, {
4376
4375
  ref_key: "tableUnit",
4377
- ref: lt,
4376
+ ref: tt,
4378
4377
  onClose: ja
4379
4378
  }), lo({
4380
4379
  content: Y(() => [
@@ -4394,7 +4393,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4394
4393
  cursor: Xe.value ? "pointer" : "default"
4395
4394
  })
4396
4395
  }, [
4397
- dt(v(Rl), {
4396
+ vt(v(Rl), {
4398
4397
  name: "chartLine",
4399
4398
  size: 20,
4400
4399
  stroke: t.value.chart.color
@@ -4407,10 +4406,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4407
4406
  config: du.value
4408
4407
  }, null, 8, ["dataset", "config"])) : (i(), _e(v(ko), {
4409
4408
  key: `table_${Yl.value}`,
4410
- colNames: ct.value.colNames,
4411
- head: ct.value.head,
4412
- body: ct.value.body,
4413
- config: ct.value.config,
4409
+ colNames: rt.value.colNames,
4410
+ head: rt.value.head,
4411
+ body: rt.value.body,
4412
+ config: rt.value.config,
4414
4413
  title: t.value.table.useDialog ? "" : Ct.value.title,
4415
4414
  withCloseButton: !t.value.table.useDialog,
4416
4415
  onClose: ja
@@ -4449,7 +4448,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4449
4448
  t.value.chart.userOptions.callbacks.csv
4450
4449
  ))
4451
4450
  }, [
4452
- dt(v(Rl), {
4451
+ vt(v(Rl), {
4453
4452
  name: "fileCsv",
4454
4453
  stroke: Ct.value.props.color
4455
4454
  }, null, 8, ["stroke"])
@@ -4463,7 +4462,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
4463
4462
  ], !0)
4464
4463
  ], 46, ks));
4465
4464
  }
4466
- }, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-37e62326"]]);
4465
+ }, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-8ec65780"]]);
4467
4466
  export {
4468
4467
  $r as default
4469
4468
  };