vue-data-ui 2.13.4 → 2.13.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/{Arrow-Cv5RKI2K.js → Arrow-nJWOreP4.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CbNaTai1.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
  3. package/dist/{BaseIcon-B90jg7Eo.js → BaseIcon-lwpKi6Wa.js} +1 -1
  4. package/dist/{ColorPicker-DrHXo6NB.js → ColorPicker-D8TZj-R5.js} +2 -2
  5. package/dist/{DataTable-DOdmEVBM.js → DataTable-CuFlXUxm.js} +2 -2
  6. package/dist/{Legend-D7As_VVi.js → Legend-DwNuhYnG.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Qe1IsvyR.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
  8. package/dist/{PackageVersion-CJ0MHPau.js → PackageVersion-1psmmuzo.js} +2 -2
  9. package/dist/{PenAndPaper-CsV9xVqP.js → PenAndPaper-DgUkj01g.js} +3 -3
  10. package/dist/{Shape-CMT3DgWJ.js → Shape-CmlBrd-F.js} +1 -1
  11. package/dist/{Slicer-kZ-UNW0I.js → Slicer-B-5jXhhw.js} +161 -161
  12. package/dist/{SparkTooltip-DgaaFrSC.js → SparkTooltip-BGjRXPbu.js} +1 -1
  13. package/dist/{Title-Cuxd1Hw4.js → Title-BoKeR6i0.js} +1 -1
  14. package/dist/{Tooltip-nm6v9SvD.js → Tooltip-Df2iF7bv.js} +1 -1
  15. package/dist/{UserOptions-B4olqrwb.js → UserOptions-NrArsCuC.js} +2 -2
  16. package/dist/{dom-to-png-JxvpNdgk.js → dom-to-png-DK9TIQio.js} +1 -1
  17. package/dist/{img-BrSPXg54.js → img-CqqmkwDl.js} +1 -1
  18. package/dist/{index-DXfqC_CG.js → index-C137VZkI.js} +675 -656
  19. package/dist/{pdf-CRNRsa97.js → pdf-DTB7aasS.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useNestedProp-CUF1PWxQ.js → useNestedProp-ZNu8JrRX.js} +1 -1
  24. package/dist/{usePrinter-DGQh_spY.js → usePrinter-B63T3abI.js} +2 -2
  25. package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
  26. package/dist/{vue-data-ui-tkhMq-bw.js → vue-data-ui-CBTXw5iV.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Dwdfdqch.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
  29. package/dist/{vue-ui-accordion-D-tjbzQS.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BZmYWVrS.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
  31. package/dist/{vue-ui-annotator-DBrXod-O.js → vue-ui-annotator-BokgyAXW.js} +2 -2
  32. package/dist/{vue-ui-bullet-ur-PTrPw.js → vue-ui-bullet-D5TWFElT.js} +6 -6
  33. package/dist/{vue-ui-candlestick-72UivaQY.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
  34. package/dist/{vue-ui-carousel-table-CApme8lg.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
  35. package/dist/{vue-ui-chestnut-jcZZ8cOw.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
  36. package/dist/{vue-ui-chord-A9jGFNM2.js → vue-ui-chord-Drxbeh2P.js} +7 -7
  37. package/dist/{vue-ui-circle-pack-DPnOBq40.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
  38. package/dist/{vue-ui-cursor-Cby6-Vrh.js → vue-ui-cursor-DaT20eFb.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BGzORkrX.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
  40. package/dist/{vue-ui-digits-Dhxd38mc.js → vue-ui-digits-D6kq38s9.js} +2 -2
  41. package/dist/{vue-ui-donut-DsFBb3Cl.js → vue-ui-donut-_kVdFrZR.js} +7 -7
  42. package/dist/{vue-ui-donut-evolution-B-Bo4b4Y.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
  43. package/dist/{vue-ui-dumbbell-EVSJdr9V.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
  44. package/dist/{vue-ui-flow-Cr1-ETyc.js → vue-ui-flow-DTx267Ka.js} +6 -6
  45. package/dist/{vue-ui-funnel-BQ0LckzE.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
  46. package/dist/{vue-ui-galaxy-_fwGK1PY.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
  47. package/dist/{vue-ui-gauge-BrnOoF9C.js → vue-ui-gauge-CAKj45DE.js} +5 -5
  48. package/dist/{vue-ui-gizmo-tgjSYkeV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CamaTaei.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
  50. package/dist/{vue-ui-history-plot-DSBQu-9Y.js → vue-ui-history-plot-DfduurUS.js} +103 -103
  51. package/dist/{vue-ui-kpi-OCtgONK3.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
  52. package/dist/{vue-ui-mini-loader--xzmMUNI.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
  53. package/dist/{vue-ui-molecule-DnkENzdw.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
  54. package/dist/{vue-ui-mood-radar-DKP1rjSd.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
  55. package/dist/{vue-ui-nested-donuts-CHwTDQ9J.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
  56. package/dist/{vue-ui-onion-BxaynRPn.js → vue-ui-onion-BV3A2JCN.js} +6 -6
  57. package/dist/{vue-ui-parallel-coordinate-plot-ohCDDK1Q.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
  58. package/dist/{vue-ui-quadrant-DXZsVWe3.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
  59. package/dist/{vue-ui-quick-chart-C_ofgdSY.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
  60. package/dist/{vue-ui-radar-CLa2PHHK.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
  61. package/dist/{vue-ui-rating-GiRUw1Wv.js → vue-ui-rating-FuSmmUE8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJ1M2Pnc.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
  63. package/dist/{vue-ui-ridgeline-E_7xjHTY.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
  64. package/dist/{vue-ui-rings-BiOAND3T.js → vue-ui-rings-DMx8sMKa.js} +7 -7
  65. package/dist/{vue-ui-scatter-Bai9QSqI.js → vue-ui-scatter-DX42tHz8.js} +7 -7
  66. package/dist/{vue-ui-skeleton-B2N_3mr0.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
  67. package/dist/{vue-ui-smiley-DAvm3IGu.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-D4EwvdX0.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DM_2iDVI.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-UW6sVQdV.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CF0JPKYB.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Dg8j2KTF.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CqT_oEk7.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
  74. package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
  75. package/dist/{vue-ui-strip-plot-BR66rY0G.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
  76. package/dist/{vue-ui-table-Dk0eXTU9.js → vue-ui-table-Cfb6eIU4.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Brldpa0g.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DxQrZBCR.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B_OrqIjE.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
  80. package/dist/{vue-ui-timer-Cz0J-s5D.js → vue-ui-timer-By6_kV9k.js} +8 -8
  81. package/dist/{vue-ui-tiremarks-B1B3h-Vi.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
  82. package/dist/{vue-ui-treemap-CMm6fSIO.js → vue-ui-treemap-DivJblJW.js} +7 -7
  83. package/dist/{vue-ui-vertical-bar-DA2Xpx46.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
  84. package/dist/{vue-ui-waffle-U3NxGQ3l.js → vue-ui-waffle-DSzMjANd.js} +7 -7
  85. package/dist/{vue-ui-wheel-WNOVLYp8.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
  86. package/dist/{vue-ui-word-cloud-_TBCcmAV.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
  87. package/dist/{vue-ui-world-DREkLtrD.js → vue-ui-world-BhGGmeGq.js} +5 -5
  88. package/dist/{vue-ui-xy-CIiqKrxF.js → vue-ui-xy-CZpcKEkV.js} +680 -668
  89. package/dist/{vue-ui-xy-canvas-ClHv-Wlu.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
  90. package/package.json +1 -1
  91. package/dist/vue-ui-stackbar-By7DVfJV.js +0 -1132
@@ -1,18 +1,19 @@
1
- import { defineAsyncComponent as J, ref as d, computed as C, useSlots as _a, onMounted as ra, watch as A, nextTick as ge, shallowRef as $e, onBeforeUnmount as Ba, createElementBlock as se, openBlock as z, unref as p, normalizeClass as Va, normalizeStyle as K, createCommentVNode as U, createBlock as D, createElementVNode as ne, createSlots as Za, withCtx as b, renderSlot as x, normalizeProps as W, guardReactiveProps as X, createVNode as Ga, toDisplayString as ua, createTextVNode as ja } from "vue";
2
- import { u as qa, c as Ja, t as Ka, p as _, a as Qa, C as pe, b as el, D as Ie, i as Q, f as ee, d as sa, a1 as al, H as ll, ai as tl, o as ol, e as rl, x as na, q as ul, r as sl, y as nl, s as ie, l as il } from "./index-DXfqC_CG.js";
3
- import { d as vl, t as cl, u as dl, c as hl, a as ia, l as L, r as Me, b as R, p as va } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as ca } from "./useNestedProp-CUF1PWxQ.js";
5
- import { u as yl } from "./usePrinter-DGQh_spY.js";
6
- import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
8
- import pl from "./Legend-D7As_VVi.js";
9
- import ml from "./Title-Cuxd1Hw4.js";
10
- import { S as bl } from "./Slicer-kZ-UNW0I.js";
11
- import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Ll = ["id"], kl = ["onClick"], Cl = {
1
+ import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Ga, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
2
+ import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a1 as ll, H as tl, ai as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-C137VZkI.js";
3
+ import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as da } from "./useNestedProp-ZNu8JrRX.js";
5
+ import { u as fl } from "./usePrinter-B63T3abI.js";
6
+ import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ml from "./Legend-DwNuhYnG.js";
9
+ import bl from "./Title-BoKeR6i0.js";
10
+ import { S as xl } from "./Slicer-B-5jXhhw.js";
11
+ import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
12
+ import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Cl = ["id"], wl = ["onClick"], zl = {
13
14
  key: 2,
14
15
  class: "vue-data-ui-watermark"
15
- }, wl = ["innerHTML"], zl = {
16
+ }, Sl = ["innerHTML"], $l = {
16
17
  __name: "vue-ui-xy-canvas",
17
18
  props: {
18
19
  dataset: {
@@ -29,48 +30,48 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
29
30
  }
30
31
  },
31
32
  emits: ["selectLegend"],
32
- setup(Te, { expose: da, emit: ha }) {
33
- const ya = J(() => import("./vue-ui-accordion-D-tjbzQS.js")), fa = J(() => import("./DataTable-DOdmEVBM.js")), ga = J(() => import("./NonSvgPenAndPaper-Qe1IsvyR.js")), pa = J(() => import("./vue-ui-skeleton-B2N_3mr0.js")), ma = J(() => import("./Tooltip-nm6v9SvD.js")), ba = J(() => import("./UserOptions-B4olqrwb.js")), { vue_ui_xy_canvas: xa } = qa(), g = Te, me = d(Ja()), ae = d(null), le = d(null), s = d(null), y = d(1), P = d(1), ve = d(!1), v = d(null), ce = d(""), Oe = d(null), $ = d([]), B = d(1), H = d(!0), V = d(!0), be = d(null), Re = d(0), Pe = d(0), de = d(!1), Ee = d(null), Fe = d(null), Ae = d(null), De = d(null), xe = d(0), Le = d(0), ke = d(0), M = d(null), Ce = C(() => !!g.dataset && g.dataset.length), La = ha, ka = _a();
33
+ setup(Oe, { expose: ha, emit: ya }) {
34
+ const fa = K(() => import("./vue-ui-accordion-BI2rBS5z.js")), ga = K(() => import("./DataTable-CuFlXUxm.js")), pa = K(() => import("./NonSvgPenAndPaper-D1qSfnYa.js")), ma = K(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), ba = K(() => import("./Tooltip-Df2iF7bv.js")), xa = K(() => import("./UserOptions-NrArsCuC.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), He = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
34
35
  ra(() => {
35
- ka["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
36
+ Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
36
37
  });
37
- const a = C({
38
- get: () => Ye(),
38
+ const a = x({
39
+ get: () => Ue(),
39
40
  set: (e) => e
40
- }), { userOptionsVisible: we, setUserOptionsVisibility: He, keepUserOptionState: Ne } = fl({ config: a.value }), { svgRef: T } = gl({ config: a.value.style.chart.title });
41
- function Ye() {
42
- const e = ca({
41
+ }), { userOptionsVisible: ze, setUserOptionsVisibility: Ne, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
42
+ function Ue() {
43
+ const e = da({
43
44
  userConfig: g.config,
44
- defaultConfig: xa
45
+ defaultConfig: La
45
46
  });
46
47
  let t = {};
47
48
  return e.theme ? t = {
48
- ...ca({
49
- userConfig: Qa.vue_ui_xy_canvas[e.theme] || g.config,
49
+ ...da({
50
+ userConfig: el.vue_ui_xy_canvas[e.theme] || g.config,
50
51
  defaultConfig: e
51
52
  }),
52
- customPalette: Ka[e.theme] || _
53
- } : t = e, g.config && pe(g.config, "style.chart.scale.min") ? t.style.chart.scale.min = g.config.style.chart.scale.min : t.style.chart.scale.min = null, g.config && pe(g.config, "style.chart.scale.max") ? t.style.chart.scale.max = g.config.style.chart.scale.max : t.style.chart.scale.max = null, g.config && pe(g.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, g.config && pe(g.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
53
+ customPalette: Qa[e.theme] || B
54
+ } : t = e, g.config && me(g.config, "style.chart.scale.min") ? t.style.chart.scale.min = g.config.style.chart.scale.min : t.style.chart.scale.min = null, g.config && me(g.config, "style.chart.scale.max") ? t.style.chart.scale.max = g.config.style.chart.scale.max : t.style.chart.scale.max = null, g.config && me(g.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, g.config && me(g.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
54
55
  }
55
56
  A(() => g.config, (e) => {
56
- a.value = Ye(), we.value = !a.value.userOptions.showOnChartHover, ze(), xe.value += 1, Le.value += 1, ke.value += 1, u.value.showTable = a.value.table.show, u.value.showDataLabels = a.value.style.chart.dataLabels.show, u.value.stacked = a.value.style.chart.stacked, u.value.showTooltip = a.value.style.chart.tooltip.show;
57
+ a.value = Ue(), ze.value = !a.value.userOptions.showOnChartHover, Se(), Le.value += 1, ke.value += 1, Ce.value += 1, r.value.showTable = a.value.table.show, r.value.showDataLabels = a.value.style.chart.dataLabels.show, r.value.stacked = a.value.style.chart.stacked, r.value.showTooltip = a.value.style.chart.tooltip.show;
57
58
  }, { deep: !0 }), A(() => g.dataset, () => {
58
- ze(), xe.value += 1, Le.value += 1, ke.value += 1;
59
+ Se(), Le.value += 1, ke.value += 1, Ce.value += 1;
59
60
  }, { deep: !0 });
60
- const Ue = d(a.value.style.chart.aspectRatio), { isPrinting: We, isImaging: Xe, generatePdf: _e, generateImage: Be } = yl({
61
- elementId: `xy_canvas_${me.value}`,
61
+ const We = d(a.value.style.chart.aspectRatio), { isPrinting: Xe, isImaging: _e, generatePdf: Be, generateImage: Ve } = fl({
62
+ elementId: `xy_canvas_${be.value}`,
62
63
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
63
64
  options: a.value.userOptions.print
64
- }), u = d({
65
+ }), r = d({
65
66
  showTable: a.value.table.show,
66
67
  showDataLabels: a.value.style.chart.dataLabels.show,
67
68
  stacked: a.value.style.chart.stacked,
68
69
  showTooltip: a.value.style.chart.tooltip.show
69
70
  });
70
- function Ca(e) {
71
- de.value = e, Pe.value += 1;
71
+ function wa(e) {
72
+ he.value = e, Ee.value += 1;
72
73
  }
73
- const Ve = C(() => el(a.value.customPalette)), I = C(() => Z.value ? Math.max(...Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = C(() => {
74
+ const Ze = x(() => al(a.value.customPalette)), I = x(() => G.value ? Math.max(...G.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
74
75
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
75
76
  return {
76
77
  canvasWidth: y.value,
@@ -81,27 +82,27 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
81
82
  bottom: P.value - P.value * a.value.style.chart.paddingProportions.bottom,
82
83
  width: e,
83
84
  height: P.value - P.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
84
- slot: e / (r.value.end - r.value.start)
85
+ slot: e / (u.value.end - u.value.start)
85
86
  };
86
87
  });
87
- function Ze(e, t) {
88
+ function Ge(e, t) {
88
89
  return e / t;
89
90
  }
90
- function wa({ hasAutoScale: e, series: t, min: o, max: n, scale: c, yOffset: k, individualHeight: i, stackIndex: f = null }) {
91
- return t.map((N, S) => {
92
- const F = c.min < 0 ? Math.abs(c.min) : 0, Y = Ze(N + F, F + c.max);
93
- let re, ue;
94
- e && (re = c.min, ue = Ze(N - re, c.max - re));
91
+ function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
92
+ return t.map((Y, S) => {
93
+ const F = v.min < 0 ? Math.abs(v.min) : 0, U = Ge(Y + F, F + v.max);
94
+ let re, se;
95
+ e && (re = v.min, se = Ge(Y - re, v.max - re));
95
96
  let O = 0;
96
- return f === null ? O = l.value.bottom - l.value.height * (e ? ue : Y) : O = l.value.bottom - k - i * (e ? ue : Y), {
97
+ return f === null ? O = l.value.bottom - l.value.height * (e ? se : U) : O = l.value.bottom - C - i * (e ? se : U), {
97
98
  x: l.value.left + l.value.slot * S + l.value.slot / 2,
98
99
  y: O,
99
- value: N
100
+ value: Y
100
101
  };
101
102
  });
102
103
  }
103
- const m = C(() => {
104
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(r.value.start, r.value.end))), o = Ie(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (n / (o.max + n)), k = o.ticks.map((i) => ({
104
+ const m = x(() => {
105
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...G.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), o = Me(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
105
106
  y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
106
107
  x: l.value.left - 8,
107
108
  value: i
@@ -111,110 +112,110 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
111
112
  max: t,
112
113
  min: e,
113
114
  scale: o,
114
- yLabels: k,
115
- zero: c
115
+ yLabels: C,
116
+ zero: v
116
117
  };
117
- }), za = C(() => h.value.map((e) => `
118
+ }), Sa = x(() => h.value.map((e) => `
118
119
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
119
120
  <svg viewBox="0 0 10 10" height="12" width="12">
120
121
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
121
122
  </svg>
122
123
  <span>${e.name ? e.name + ": " : ""}</span>
123
- <span>${Q(
124
+ <span>${ee(
124
125
  a.value.style.chart.dataLabels.formatter,
125
- e.series[v.value],
126
- ee({
126
+ e.series[c.value],
127
+ ae({
127
128
  p: e.prefix || "",
128
- v: e.series[v.value],
129
+ v: e.series[c.value],
129
130
  s: e.suffix || "",
130
131
  r: e.rounding || 0
131
132
  }),
132
- { datapoint: e, seriesIndex: v.value }
133
+ { datapoint: e, seriesIndex: c.value }
133
134
  )}</span>
134
135
  </div>
135
- `)), Z = C(() => g.dataset.map((e, t) => ({
136
+ `)), G = x(() => g.dataset.map((e, t) => ({
136
137
  ...e,
137
- series: al({
138
- data: ll(e.series),
138
+ series: ll({
139
+ data: tl(e.series),
139
140
  threshold: a.value.downsample.threshold
140
141
  }),
141
142
  absoluteIndex: t,
142
- color: sa(e.color || Ve.value[t] || _[t] || _[t % _.length])
143
+ color: na(e.color || Ze.value[t] || B[t] || B[t % B.length])
143
144
  })));
144
145
  A(I, (e) => {
145
- e && Ge();
146
+ e && je();
146
147
  });
147
- const h = C(() => tl(Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
148
+ const h = x(() => ol(G.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
148
149
  ...e,
149
- series: e.series.slice(r.value.start, r.value.end)
150
+ series: e.series.slice(u.value.start, u.value.end)
150
151
  })).map((e, t) => {
151
152
  let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, n = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
152
153
  o === n && (o = o >= 0 ? n - 1 : o, n = n >= 0 ? n : o + 1), e.series.filter((O) => ![null, void 0].includes(O)).map((O) => (O - o) / (n - o));
153
- const c = {
154
+ const v = {
154
155
  valueMin: o,
155
156
  valueMax: n
156
- }, k = e.scaleSteps || a.value.style.chart.scale.ticks;
157
+ }, C = e.scaleSteps || a.value.style.chart.scale.ticks;
157
158
  let i;
158
- e.autoScaling ? i = Ie(c.valueMin, c.valueMax, k) : i = Ie(c.valueMin < 0 ? c.valueMin : 0, c.valueMax <= 0 ? 0 : c.valueMax, k);
159
- const f = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, N = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = u.value.stacked ? l.value.height * e.stackRatio - N : l.value.height, F = i.min < 0 ? Math.abs(i.min) : 0;
160
- let Y;
161
- e.autoScaling && u.value.stacked && n <= 0 ? Y = l.value.bottom - f - S : Y = l.value.bottom - f - S * (F / (i.max + F));
162
- const re = i.ticks.map((O, Xa) => ({
163
- y: l.value.bottom - f - S * (Xa / (i.ticks.length - 1)),
159
+ e.autoScaling ? i = Me(v.valueMin, v.valueMax, C) : i = Me(v.valueMin < 0 ? v.valueMin : 0, v.valueMax <= 0 ? 0 : v.valueMax, C);
160
+ const f = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Y = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = r.value.stacked ? l.value.height * e.stackRatio - Y : l.value.height, F = i.min < 0 ? Math.abs(i.min) : 0;
161
+ let U;
162
+ e.autoScaling && r.value.stacked && n <= 0 ? U = l.value.bottom - f - S : U = l.value.bottom - f - S * (F / (i.max + F));
163
+ const re = i.ticks.map((O, _a) => ({
164
+ y: l.value.bottom - f - S * (_a / (i.ticks.length - 1)),
164
165
  x: l.value.left - 8,
165
166
  value: O
166
- })), ue = wa({
167
- hasAutoScale: u.value.stacked && e.autoScaling,
167
+ })), se = za({
168
+ hasAutoScale: r.value.stacked && e.autoScaling,
168
169
  series: e.series,
169
- min: u.value.stacked ? o : m.value.min,
170
- max: u.value.stacked ? n : m.value.max,
171
- scale: u.value.stacked ? i : m.value.scale,
170
+ min: r.value.stacked ? o : m.value.min,
171
+ max: r.value.stacked ? n : m.value.max,
172
+ scale: r.value.stacked ? i : m.value.scale,
172
173
  yOffset: f,
173
174
  individualHeight: S,
174
- stackIndex: u.value.stacked ? t : null
175
+ stackIndex: r.value.stacked ? t : null
175
176
  });
176
177
  return {
177
178
  ...e,
178
- coordinatesLine: ue,
179
+ coordinatesLine: se,
179
180
  min: o,
180
181
  max: n,
181
182
  localScale: i,
182
- localZero: Y,
183
+ localZero: U,
183
184
  localMin: F,
184
185
  localYLabels: re,
185
186
  yOffset: f,
186
187
  individualHeight: S
187
188
  };
188
- })), r = d({
189
+ })), u = d({
189
190
  start: 0,
190
191
  end: I.value
191
192
  });
192
- function Ge() {
193
- je();
193
+ function je() {
194
+ qe();
194
195
  }
195
- const G = d(null);
196
- async function je() {
197
- (a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && G.value ? (a.value.style.chart.zoom.startIndex !== null && (await ge(), await ge(), G.value && G.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await ge(), await ge(), G.value && G.value.setEndValue(Sa(a.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
196
+ const j = d(null);
197
+ async function qe() {
198
+ (a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && j.value ? (a.value.style.chart.zoom.startIndex !== null && (await pe(), await pe(), j.value && j.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await pe(), await pe(), j.value && j.value.setEndValue($a(a.value.style.chart.zoom.endIndex + 1)))) : (u.value = {
198
199
  start: 0,
199
200
  end: I.value
200
- }, Re.value += 1);
201
+ }, Pe.value += 1);
201
202
  }
202
- function Sa(e) {
203
+ function $a(e) {
203
204
  const t = I.value;
204
205
  return e > t ? t : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
205
206
  }
206
- const $a = C(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = C(() => h.value.filter((e) => e.type === "bar"));
207
- function Ia() {
207
+ const Ia = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = x(() => h.value.filter((e) => e.type === "bar"));
208
+ function Ma() {
208
209
  if (!T.value)
209
210
  return;
210
- const e = le.value.offsetWidth, t = le.value.offsetHeight;
211
- T.value.width = e * B.value * 2, T.value.height = t * B.value * 2, y.value = e * B.value * 2, P.value = t * B.value * 2, s.value.scale(B.value, B.value), te();
211
+ const e = te.value.offsetWidth, t = te.value.offsetHeight;
212
+ T.value.width = e * V.value * 2, T.value.height = t * V.value * 2, y.value = e * V.value * 2, P.value = t * V.value * 2, s.value.scale(V.value, V.value), oe();
212
213
  }
213
- function Ma() {
214
- if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
215
- a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
216
- for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
217
- L(
214
+ function Ta() {
215
+ if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
216
+ a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
217
+ for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
218
+ k(
218
219
  s.value,
219
220
  [
220
221
  {
@@ -230,17 +231,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
230
231
  color: a.value.style.chart.grid.y.verticalLines.color
231
232
  }
232
233
  );
233
- }) : a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
234
- for (let t = r.value.start; t < r.value.end; t += 1)
235
- t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
234
+ }) : a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
235
+ for (let t = u.value.start; t < u.value.end; t += 1)
236
+ t % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
236
237
  s.value,
237
238
  [
238
239
  {
239
- x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
240
+ x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
240
241
  y: l.value.bottom - e.yOffset - e.individualHeight
241
242
  },
242
243
  {
243
- x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
244
+ x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
244
245
  y: l.value.bottom - e.yOffset
245
246
  }
246
247
  ],
@@ -250,7 +251,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
250
251
  );
251
252
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
252
253
  e.localYLabels.forEach((t, o) => {
253
- o < e.localYLabels.length - 1 && Me(
254
+ o < e.localYLabels.length - 1 && Te(
254
255
  s.value,
255
256
  [
256
257
  { x: l.value.left, y: t.y },
@@ -259,14 +260,14 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
259
260
  { x: l.value.left, y: e.localYLabels[o + 1].y }
260
261
  ],
261
262
  {
262
- fillColor: o % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
263
+ fillColor: o % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
263
264
  strokeColor: "transparent"
264
265
  }
265
266
  );
266
267
  });
267
268
  }) : h.value.forEach((e) => {
268
- e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
269
- L(
269
+ e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
270
+ k(
270
271
  s.value,
271
272
  [
272
273
  { x: l.value.left, y: t.y },
@@ -278,7 +279,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
278
279
  );
279
280
  });
280
281
  })), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
281
- L(
282
+ k(
282
283
  s.value,
283
284
  [
284
285
  { x: l.value.left, y: e.localZero },
@@ -290,7 +291,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
290
291
  }
291
292
  );
292
293
  }), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
293
- L(
294
+ k(
294
295
  s.value,
295
296
  [
296
297
  { x: l.value.left, y: l.value.bottom - e.yOffset },
@@ -299,7 +300,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
299
300
  {
300
301
  color: e.color
301
302
  }
302
- ), L(
303
+ ), k(
303
304
  s.value,
304
305
  [
305
306
  { x: l.value.right, y: l.value.bottom - e.yOffset },
@@ -324,9 +325,9 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
324
325
  );
325
326
  });
326
327
  else {
327
- if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
328
- for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
329
- L(
328
+ if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
329
+ for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
330
+ k(
330
331
  s.value,
331
332
  [
332
333
  { x: l.value.left + l.value.slot * e, y: l.value.top },
@@ -336,20 +337,20 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
336
337
  color: a.value.style.chart.grid.y.verticalLines.color
337
338
  }
338
339
  );
339
- else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
340
- for (let e = r.value.start; e < r.value.end; e += 1)
341
- e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
340
+ else if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
341
+ for (let e = u.value.start; e < u.value.end; e += 1)
342
+ e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
342
343
  s.value,
343
344
  [
344
- { x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
345
- { x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.bottom }
345
+ { x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.top },
346
+ { x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.bottom }
346
347
  ],
347
348
  {
348
349
  color: a.value.style.chart.grid.y.verticalLines.color
349
350
  }
350
351
  );
351
352
  a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, t) => {
352
- t < m.value.yLabels.length - 1 && Me(
353
+ t < m.value.yLabels.length - 1 && Te(
353
354
  s.value,
354
355
  [
355
356
  { x: l.value.left, y: e.y },
@@ -358,12 +359,12 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
358
359
  { x: l.value.left, y: m.value.yLabels[t + 1].y }
359
360
  ],
360
361
  {
361
- fillColor: t % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
362
+ fillColor: t % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
362
363
  strokeColor: "transparent"
363
364
  }
364
365
  );
365
366
  }) : m.value.yLabels.forEach((e) => {
366
- L(
367
+ k(
367
368
  s.value,
368
369
  [
369
370
  { x: l.value.left, y: e.y },
@@ -373,7 +374,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
373
374
  color: a.value.style.chart.grid.x.horizontalLines.color
374
375
  }
375
376
  );
376
- })), a.value.style.chart.grid.y.showAxis && L(
377
+ })), a.value.style.chart.grid.y.showAxis && k(
377
378
  s.value,
378
379
  [
379
380
  { x: l.value.left, y: l.value.top },
@@ -383,7 +384,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
383
384
  color: a.value.style.chart.grid.y.axisColor,
384
385
  lineWidth: a.value.style.chart.grid.y.axisThickness
385
386
  }
386
- ), a.value.style.chart.grid.x.showAxis && L(
387
+ ), a.value.style.chart.grid.x.showAxis && k(
387
388
  s.value,
388
389
  [
389
390
  { x: l.value.left, y: l.value.bottom },
@@ -393,7 +394,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
393
394
  color: a.value.style.chart.grid.x.axisColor,
394
395
  lineWidth: a.value.style.chart.grid.x.axisThickness
395
396
  }
396
- ), a.value.style.chart.grid.zeroLine.show && L(
397
+ ), a.value.style.chart.grid.zeroLine.show && k(
397
398
  s.value,
398
399
  [
399
400
  { x: l.value.left, y: m.value.zero },
@@ -428,10 +429,10 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
428
429
  }
429
430
  );
430
431
  }
431
- function Ta(e) {
432
+ function Oa(e) {
432
433
  for (let t = 0; t < e.coordinatesLine.length; t += 1) {
433
- const o = (v.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
434
- ia(
434
+ const o = (c.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
435
+ va(
435
436
  s.value,
436
437
  { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
437
438
  o,
@@ -442,23 +443,23 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
442
443
  );
443
444
  }
444
445
  }
445
- function Oa() {
446
+ function Ra() {
446
447
  h.value.forEach((e) => {
447
- e.showYMarker && oe(e) && R(
448
+ e.showYMarker && ue(e) && R(
448
449
  s.value,
449
- Q(
450
+ ee(
450
451
  a.value.style.chart.dataLabels.formatter,
451
- oe(e).value,
452
- ee({
452
+ ue(e).value,
453
+ ae({
453
454
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
454
- v: oe(e).value,
455
+ v: ue(e).value,
455
456
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
456
457
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
457
458
  }),
458
- { datapoint: oe(e), seriesIndex: null }
459
+ { datapoint: ue(e), seriesIndex: null }
459
460
  ),
460
461
  l.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
461
- oe(e).y,
462
+ ue(e).y,
462
463
  {
463
464
  align: "right",
464
465
  font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -467,15 +468,15 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
467
468
  );
468
469
  });
469
470
  }
470
- function Ra() {
471
- a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
471
+ function Pa() {
472
+ a.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
472
473
  e.localYLabels.forEach((t, o) => {
473
474
  R(
474
475
  s.value,
475
- Q(
476
+ ee(
476
477
  a.value.style.chart.dataLabels.formatter,
477
478
  t.value,
478
- ee({
479
+ ae({
479
480
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
480
481
  v: t.value,
481
482
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -489,17 +490,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
489
490
  align: "right",
490
491
  font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
491
492
  color: e.color,
492
- globalAlpha: e.showYMarker && ![null, void 0].includes(v.value) ? 0.2 : 1
493
+ globalAlpha: e.showYMarker && ![null, void 0].includes(c.value) ? 0.2 : 1
493
494
  }
494
495
  );
495
496
  });
496
497
  }) : m.value.yLabels.forEach((e, t) => {
497
498
  R(
498
499
  s.value,
499
- Q(
500
+ ee(
500
501
  a.value.style.chart.dataLabels.formatter,
501
502
  e.value,
502
- ee({
503
+ ae({
503
504
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
504
505
  v: e.value,
505
506
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -513,19 +514,19 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
513
514
  align: "right",
514
515
  font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
515
516
  color: a.value.style.chart.grid.y.axisLabels.color,
516
- globalAlpha: h.value.some((o) => o.showYMarker) && ![null, void 0].includes(v.value) ? 0.2 : 1
517
+ globalAlpha: h.value.some((o) => o.showYMarker) && ![null, void 0].includes(c.value) ? 0.2 : 1
517
518
  }
518
519
  );
519
520
  }));
520
521
  }
521
- function Pa(e) {
522
+ function Ea(e) {
522
523
  for (let t = 0; t < e.coordinatesLine.length; t += 1)
523
524
  R(
524
525
  s.value,
525
- Q(
526
+ ee(
526
527
  a.value.style.chart.dataLabels.formatter,
527
528
  e.coordinatesLine[t].value,
528
- ee({
529
+ ae({
529
530
  p: e.prefix || "",
530
531
  v: e.coordinatesLine[t].value,
531
532
  s: e.suffix || "",
@@ -542,27 +543,34 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
542
543
  }
543
544
  );
544
545
  }
545
- function Ea() {
546
- for (let e = r.value.start; e < r.value.end; e += 1)
547
- (r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === v.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
546
+ const N = x(() => Ll({
547
+ values: a.value.style.chart.grid.y.timeLabels.values,
548
+ maxDatapoints: I.value,
549
+ formatter: a.value.style.chart.grid.y.timeLabels.formatter,
550
+ start: 0,
551
+ end: a.value.style.chart.grid.y.timeLabels.values.length
552
+ }));
553
+ function Fa() {
554
+ for (let e = u.value.start; e < u.value.end; e += 1)
555
+ (u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
548
556
  s.value,
549
- a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
550
- l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
557
+ N.value[e] ? N.value[e].text : e + 1,
558
+ l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
551
559
  l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
552
560
  {
553
561
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
554
562
  font: `${a.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
555
- color: a.value.style.chart.grid.y.timeLabels.showMarker ? ie(a.value.style.chart.grid.y.timeLabels.color, v.value !== null ? v.value + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
563
+ color: a.value.style.chart.grid.y.timeLabels.showMarker ? ve(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + u.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
556
564
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
557
565
  }
558
566
  );
559
567
  }
560
- function qe() {
561
- L(
568
+ function Je() {
569
+ k(
562
570
  s.value,
563
571
  [
564
- { x: l.value.left + l.value.slot * v.value + l.value.slot / 2, y: l.value.top },
565
- { x: l.value.left + l.value.slot * v.value + l.value.slot / 2, y: l.value.bottom }
572
+ { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.top },
573
+ { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.bottom }
566
574
  ],
567
575
  {
568
576
  color: a.value.style.chart.selector.color,
@@ -571,8 +579,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
571
579
  }
572
580
  );
573
581
  }
574
- function Fa() {
575
- M.value && L(
582
+ function Aa() {
583
+ M.value && k(
576
584
  s.value,
577
585
  [
578
586
  { x: l.value.left, y: M.value },
@@ -585,26 +593,26 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
585
593
  }
586
594
  );
587
595
  }
588
- function Aa() {
596
+ function Da() {
589
597
  w.value.forEach((e, t) => {
590
598
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
591
- Me(
599
+ Te(
592
600
  s.value,
593
601
  [
594
602
  {
595
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
596
- y: u.value.stacked ? e.localZero : m.value.zero
603
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
604
+ y: r.value.stacked ? e.localZero : m.value.zero
597
605
  },
598
606
  {
599
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : w.value.length),
600
- y: u.value.stacked ? e.localZero : m.value.zero
607
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
608
+ y: r.value.stacked ? e.localZero : m.value.zero
601
609
  },
602
610
  {
603
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : w.value.length),
611
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
604
612
  y: e.coordinatesLine[o].y
605
613
  },
606
614
  {
607
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
615
+ x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
608
616
  y: e.coordinatesLine[o].y
609
617
  }
610
618
  ],
@@ -618,20 +626,20 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
618
626
  },
619
627
  end: {
620
628
  x: e.coordinatesLine[o].x,
621
- y: u.value.stacked ? e.localZero : m.value.zero
629
+ y: r.value.stacked ? e.localZero : m.value.zero
622
630
  },
623
631
  stops: [
624
632
  { offset: 0, color: e.color },
625
- { offset: 1, color: a.value.style.chart.bar.gradient.show ? il(e.color, 0.5) : e.color }
633
+ { offset: 1, color: a.value.style.chart.bar.gradient.show ? vl(e.color, 0.5) : e.color }
626
634
  ]
627
635
  }
628
636
  }
629
- ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
637
+ ), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
630
638
  s.value,
631
- Q(
639
+ ee(
632
640
  a.value.style.chart.dataLabels.formatter,
633
641
  e.coordinatesLine[o].value,
634
- ee({
642
+ ae({
635
643
  p: e.prefix || "",
636
644
  v: e.coordinatesLine[o].value,
637
645
  s: e.suffix || "",
@@ -639,8 +647,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
639
647
  }),
640
648
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
641
649
  ),
642
- l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : w.value.length),
643
- (e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
650
+ l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : w.value.length),
651
+ (e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
644
652
  {
645
653
  align: "center",
646
654
  font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -651,29 +659,29 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
651
659
  );
652
660
  });
653
661
  }
654
- function Da(e) {
655
- e.useArea ? u.value.stacked ? va(
662
+ function Ha(e) {
663
+ e.useArea ? r.value.stacked ? ca(
656
664
  s.value,
657
665
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
658
666
  {
659
- fillColor: ie(e.color, a.value.style.chart.area.opacity),
667
+ fillColor: ve(e.color, a.value.style.chart.area.opacity),
660
668
  strokeColor: "transparent"
661
669
  }
662
- ) : va(
670
+ ) : ca(
663
671
  s.value,
664
672
  [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
665
673
  {
666
- fillColor: ie(e.color, a.value.style.chart.area.opacity),
674
+ fillColor: ve(e.color, a.value.style.chart.area.opacity),
667
675
  strokeColor: "transparent"
668
676
  }
669
- ) : L(s.value, e.coordinatesLine, {
677
+ ) : k(s.value, e.coordinatesLine, {
670
678
  color: e.color,
671
679
  lineWidth: 3
672
680
  });
673
681
  }
674
- function Ha() {
682
+ function Na() {
675
683
  h.value.forEach((e, t) => {
676
- L(
684
+ k(
677
685
  s.value,
678
686
  [
679
687
  { x: l.value.left, y: l.value.bottom - e.yOffset },
@@ -686,17 +694,17 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
686
694
  );
687
695
  });
688
696
  }
689
- function te() {
690
- Ma(), H.value ? (v.value !== null && a.value.style.chart.selector.show && qe(), Aa(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), $a.value.forEach((e) => {
691
- (e.type === "line" || !e.type) && Da(e), V.value && (Ta(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Pa(e));
692
- }), be.value = hl(T.value)) : (be.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(be.value, 0, 0)), v.value !== null && a.value.style.chart.selector.show && qe(), v.value !== null && h.value.forEach((e) => {
697
+ function oe() {
698
+ Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Na(), Ia.value.forEach((e) => {
699
+ (e.type === "line" || !e.type) && Ha(e), Z.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
700
+ }), xe.value = yl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
693
701
  if (e.type === "line" || !e.type || e.type === "plot") {
694
- if (!e.coordinatesLine[v.value]) return;
695
- e.coordinatesLine[v.value].x !== void 0 && e.coordinatesLine[v.value].y !== void 0 && ia(
702
+ if (!e.coordinatesLine[c.value]) return;
703
+ e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && va(
696
704
  s.value,
697
705
  {
698
- x: e.coordinatesLine[v.value].x,
699
- y: e.coordinatesLine[v.value].y
706
+ x: e.coordinatesLine[c.value].x,
707
+ y: e.coordinatesLine[c.value].y
700
708
  },
701
709
  y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
702
710
  {
@@ -705,104 +713,104 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
705
713
  }
706
714
  );
707
715
  }
708
- })), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Fa(), Ra(), Oa(), H.value = !1;
716
+ })), a.value.style.chart.grid.y.timeLabels.show && Fa(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
709
717
  }
710
- const he = vl(() => {
711
- V.value = !0, Ia();
712
- }, I.value > 200 ? 10 : 1, !V.value);
713
- function oe(e) {
714
- if ([null, void 0].includes(v.value) || !e.coordinatesLine[v.value]) return !1;
715
- const { y: t, value: o } = e.coordinatesLine[v.value];
718
+ const ye = cl(() => {
719
+ Z.value = !0, Ma();
720
+ }, I.value > 200 ? 10 : 1, !Z.value);
721
+ function ue(e) {
722
+ if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
723
+ const { y: t, value: o } = e.coordinatesLine[c.value];
716
724
  return { y: t, value: o };
717
725
  }
718
- function Na(e) {
726
+ function Ya(e) {
719
727
  const { left: t, top: o } = T.value.getBoundingClientRect(), n = e.clientX - t;
720
728
  if (M.value = (e.clientY - o) * 2, (M.value < l.value.top || M.value > l.value.bottom) && (M.value = null), n * 2 < l.value.left || n * 2 > l.value.right) {
721
- ve.value = !1, v.value = null;
729
+ ce.value = !1, c.value = null;
722
730
  return;
723
731
  }
724
- const c = n * 2 - l.value.left;
725
- if (v.value = Math.floor(c / l.value.slot), ve.value = !0, !V.value) return;
726
- let k = "";
732
+ const v = n * 2 - l.value.left;
733
+ if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !Z.value) return;
734
+ let C = "";
727
735
  const i = a.value.style.chart.tooltip.customFormat;
728
- na(i) && nl(() => i({
729
- seriesIndex: v.value,
736
+ ia(i) && il(() => i({
737
+ seriesIndex: c.value,
730
738
  datapoint: h.value.map((f) => ({
731
739
  shape: f.shape || null,
732
740
  name: f.name,
733
741
  color: f.color,
734
742
  type: f.type || "line",
735
- value: f.series.find((N, S) => S === v.value)
743
+ value: f.series.find((Y, S) => S === c.value)
736
744
  })),
737
745
  series: h.value,
738
746
  config: a.value
739
- })) ? ce.value = i({
740
- seriesIndex: v.value,
747
+ })) ? de.value = i({
748
+ seriesIndex: c.value,
741
749
  datapoint: h.value.map((f) => ({
742
750
  shape: f.shape || null,
743
751
  name: f.name,
744
752
  color: f.color,
745
753
  type: f.type || "line",
746
- value: f.series.find((N, S) => S === v.value)
754
+ value: f.series.find((Y, S) => S === c.value)
747
755
  })),
748
756
  series: h.value,
749
757
  config: a.value
750
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[v.value] && (k += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[v.value]}</div>`), k += za.value.join(""), ce.value = k), V.value = !1;
758
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), Z.value = !1;
751
759
  }
752
- A(() => v.value, (e) => {
753
- he();
754
- }), A(() => r.value, (e) => {
755
- H.value = !0, te();
760
+ A(() => c.value, (e) => {
761
+ ye();
762
+ }), A(() => u.value, (e) => {
763
+ H.value = !0, oe();
756
764
  }, {
757
765
  deep: !0
758
- }), A(() => u.value.showDataLabels, (e) => {
759
- H.value = !0, te();
766
+ }), A(() => r.value.showDataLabels, (e) => {
767
+ H.value = !0, oe();
760
768
  }), A(() => M.value, (e) => {
761
- e && te();
762
- }), A(() => u.value.stacked, (e) => {
763
- H.value = !0, V.value = !0, he();
769
+ e && oe();
770
+ }), A(() => r.value.stacked, (e) => {
771
+ H.value = !0, Z.value = !0, ye();
764
772
  });
765
- function Ya() {
766
- ve.value = !1, v.value = null, ce.value = "", M.value = null, te();
773
+ function Ua() {
774
+ ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
767
775
  }
768
- const E = $e(null), j = $e(null), q = $e(null);
776
+ const E = Ie(null), q = Ie(null), J = Ie(null);
769
777
  ra(() => {
770
- ze();
778
+ Se();
771
779
  });
772
- function ze() {
773
- if (ol(g.dataset) ? rl({
780
+ function Se() {
781
+ if (ul(g.dataset) ? rl({
774
782
  componentName: "VueUiXyCanvas",
775
783
  type: "dataset"
776
784
  }) : T.value && (s.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
777
- const e = cl(() => {
778
- const { width: t, height: o } = dl({
779
- chart: ae.value,
780
- title: a.value.style.chart.title.text ? Ee.value : null,
781
- legend: a.value.style.chart.legend.show ? Fe.value : null,
782
- slicer: a.value.style.chart.zoom.show && I.value > 1 ? Ae.value : null,
783
- source: De.value
785
+ const e = dl(() => {
786
+ const { width: t, height: o } = hl({
787
+ chart: le.value,
788
+ title: a.value.style.chart.title.text ? Fe.value : null,
789
+ legend: a.value.style.chart.legend.show ? Ae.value : null,
790
+ slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
791
+ source: He.value
784
792
  });
785
793
  requestAnimationFrame(() => {
786
- Ue.value = `${t} / ${o}`;
794
+ We.value = `${t} / ${o}`;
787
795
  });
788
796
  });
789
- E.value && (j.value && E.value.unobserve(j.value), E.value.disconnect()), E.value = new ResizeObserver(e), j.value = ae.value.parentNode, E.value.observe(j.value);
797
+ E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(e), q.value = le.value.parentNode, E.value.observe(q.value);
790
798
  }
791
- q.value && q.value.disconnect(), q.value = new ResizeObserver((e) => {
799
+ J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
792
800
  for (const t of e)
793
- t.contentBoxSize && le.value && (H.value = !0, he());
794
- }), q.value.observe(le.value), je();
801
+ t.contentBoxSize && te.value && (H.value = !0, ye());
802
+ }), J.value.observe(te.value), qe();
795
803
  }
796
- Ba(() => {
797
- q.value && q.value.disconnect(), E.value && (j.value && E.value.unobserve(j.value), E.value.disconnect());
804
+ Va(() => {
805
+ J.value && J.value.disconnect(), E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
798
806
  });
799
- function Je(e) {
800
- La("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), H.value = !0, he();
807
+ function Ke(e) {
808
+ ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), H.value = !0, ye();
801
809
  }
802
- const Ke = C(() => Z.value.map((e, t) => ({
810
+ const Qe = x(() => G.value.map((e, t) => ({
803
811
  ...e,
804
812
  name: e.name,
805
- color: sa(e.color) || Ve.value[t] || _[t] || _[t % _.length],
813
+ color: na(e.color) || Ze.value[t] || B[t] || B[t % B.length],
806
814
  shape: e.shape || "circle",
807
815
  prefix: e.prefix || "",
808
816
  suffix: e.suffix || "",
@@ -810,21 +818,21 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
810
818
  })).map((e) => ({
811
819
  ...e,
812
820
  opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
813
- segregate: () => Je(e.absoluteIndex),
821
+ segregate: () => Ke(e.absoluteIndex),
814
822
  isSegregated: $.value.includes(e.absoluteIndex)
815
- }))), Ua = C(() => ({
823
+ }))), Wa = x(() => ({
816
824
  cy: "donut-div-legend",
817
825
  backgroundColor: a.value.style.chart.legend.backgroundColor,
818
826
  color: a.value.style.chart.legend.color,
819
827
  fontSize: a.value.style.chart.legend.fontSize,
820
828
  paddingBottom: 12,
821
829
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
822
- })), ye = C(() => {
823
- const e = [""].concat(h.value.map((c) => c.name)).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>');
830
+ })), fe = x(() => {
831
+ const e = [""].concat(h.value.map((v) => v.name)).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>');
824
832
  let t = [];
825
- for (let c = 0; c < I.value; c += 1) {
826
- const k = h.value.map((i) => i.series[c] ?? 0).reduce((i, f) => i + f, 0);
827
- t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((i) => (i.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((k ?? 0).toFixed(a.value.table.rounding)));
833
+ for (let v = 0; v < I.value; v += 1) {
834
+ const C = h.value.map((i) => i.series[v] ?? 0).reduce((i, f) => i + f, 0);
835
+ t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? N.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
828
836
  }
829
837
  const o = {
830
838
  th: {
@@ -838,73 +846,73 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
838
846
  outline: a.value.table.td.outline
839
847
  },
840
848
  breakpoint: a.value.table.responsiveBreakpoint
841
- }, n = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
842
- return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: n };
843
- }), Qe = C(() => {
849
+ }, n = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
850
+ return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: n };
851
+ }), ea = x(() => {
844
852
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
845
853
  const e = h.value.map((o) => ({
846
854
  label: o.name,
847
855
  color: o.color,
848
856
  type: o.type
849
857
  })), t = [];
850
- for (let o = r.value.start; o < r.value.end; o += 1) {
851
- const n = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
852
- h.value.forEach((c) => {
853
- n.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
858
+ for (let o = u.value.start; o < u.value.end; o += 1) {
859
+ const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? N.value[o].text : o + 1];
860
+ h.value.forEach((v) => {
861
+ n.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
854
862
  }), t.push(n);
855
863
  }
856
864
  return { head: e, body: t };
857
865
  });
858
- function ea(e = null) {
859
- const t = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...Qe.value.head.map((i) => i.label)], n = Qe.value.body, c = t.concat([o]).concat(n), k = ul(c);
860
- e ? e(k) : sl({ csvContent: k, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
866
+ function aa(e = null) {
867
+ const t = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((i) => i.label)], n = ea.value.body, v = t.concat([o]).concat(n), C = sl(v);
868
+ e ? e(C) : nl({ csvContent: C, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
861
869
  }
862
- function Wa() {
870
+ function Xa() {
863
871
  return h.value;
864
872
  }
865
- function aa() {
866
- u.value.showTable = !u.value.showTable;
867
- }
868
873
  function la() {
869
- u.value.showDataLabels = !u.value.showDataLabels;
874
+ r.value.showTable = !r.value.showTable;
870
875
  }
871
876
  function ta() {
872
- u.value.stacked = !u.value.stacked;
877
+ r.value.showDataLabels = !r.value.showDataLabels;
873
878
  }
874
879
  function oa() {
875
- u.value.showTooltip = !u.value.showTooltip;
880
+ r.value.stacked = !r.value.stacked;
876
881
  }
877
- const fe = d(!1);
878
- function Se() {
879
- fe.value = !fe.value;
882
+ function ua() {
883
+ r.value.showTooltip = !r.value.showTooltip;
880
884
  }
881
- return da({
882
- getData: Wa,
883
- generateCsv: ea,
884
- generatePdf: _e,
885
- generateImage: Be,
886
- toggleTable: aa,
887
- toggleLabels: la,
888
- toggleStack: ta,
889
- toggleTooltip: oa,
890
- toggleAnnotator: Se
891
- }), (e, t) => (z(), se("div", {
892
- style: K(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
885
+ const ge = d(!1);
886
+ function $e() {
887
+ ge.value = !ge.value;
888
+ }
889
+ return ha({
890
+ getData: Xa,
891
+ generateCsv: aa,
892
+ generatePdf: Be,
893
+ generateImage: Ve,
894
+ toggleTable: la,
895
+ toggleLabels: ta,
896
+ toggleStack: oa,
897
+ toggleTooltip: ua,
898
+ toggleAnnotator: $e
899
+ }), (e, t) => (z(), ne("div", {
900
+ style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
893
901
  ref_key: "xy",
894
- ref: ae,
895
- id: `xy_canvas_${me.value}`,
896
- class: Va(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
897
- onMouseenter: t[5] || (t[5] = () => p(He)(!0)),
898
- onMouseleave: t[6] || (t[6] = () => p(He)(!1))
902
+ ref: le,
903
+ id: `xy_canvas_${be.value}`,
904
+ class: Za(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
905
+ onMouseenter: t[5] || (t[5] = () => p(Ne)(!0)),
906
+ onMouseleave: t[6] || (t[6] = () => p(Ne)(!1))
899
907
  }, [
900
- a.value.style.chart.title.text ? (z(), se("div", {
908
+ a.value.style.chart.title.text ? (z(), ne("div", {
901
909
  key: 0,
902
910
  ref_key: "chartTitle",
903
- ref: Ee,
904
- style: K(`width:100%;background:${a.value.style.chart.backgroundColor};`)
911
+ ref: Fe,
912
+ style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
905
913
  }, [
906
- (z(), D(ml, {
907
- key: `title_${xe.value}`,
914
+ (z(), D(bl, {
915
+ key: `title_${Le.value}`,
908
916
  config: {
909
917
  title: {
910
918
  cy: "xy-canvas-title",
@@ -916,130 +924,130 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
916
924
  }
917
925
  }
918
926
  }, null, 8, ["config"]))
919
- ], 4)) : U("", !0),
920
- a.value.userOptions.show && Ce.value && (p(Ne) || p(we)) ? (z(), D(p(ba), {
927
+ ], 4)) : W("", !0),
928
+ a.value.userOptions.show && we.value && (p(Ye) || p(ze)) ? (z(), D(p(xa), {
921
929
  ref: "details",
922
- key: `user_option_${Pe.value}`,
930
+ key: `user_option_${Ee.value}`,
923
931
  backgroundColor: a.value.style.chart.backgroundColor,
924
932
  color: a.value.style.chart.color,
925
- isPrinting: p(We),
926
- isImaging: p(Xe),
927
- uid: me.value,
933
+ isPrinting: p(Xe),
934
+ isImaging: p(_e),
935
+ uid: be.value,
928
936
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
929
937
  hasPdf: a.value.userOptions.buttons.pdf,
930
938
  hasImg: a.value.userOptions.buttons.img,
931
939
  hasXls: a.value.userOptions.buttons.csv,
932
940
  hasLabel: a.value.userOptions.buttons.labels,
933
- hasStack: Te.dataset.length > 1 && a.value.userOptions.buttons.stack,
941
+ hasStack: Oe.dataset.length > 1 && a.value.userOptions.buttons.stack,
934
942
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
935
- hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
936
- isFullscreen: de.value,
937
- isTooltip: u.value.showTooltip,
938
- isStacked: u.value.stacked,
943
+ hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
944
+ isFullscreen: he.value,
945
+ isTooltip: r.value.showTooltip,
946
+ isStacked: r.value.stacked,
939
947
  titles: { ...a.value.userOptions.buttonTitles },
940
- chartElement: ae.value,
948
+ chartElement: le.value,
941
949
  position: a.value.userOptions.position,
942
950
  hasAnnotator: a.value.userOptions.buttons.annotator,
943
- isAnnotation: fe.value,
951
+ isAnnotation: ge.value,
944
952
  callbacks: a.value.userOptions.callbacks,
945
- onToggleFullscreen: Ca,
946
- onGeneratePdf: p(_e),
947
- onGenerateCsv: ea,
948
- onGenerateImage: p(Be),
949
- onToggleTable: aa,
950
- onToggleLabels: la,
951
- onToggleStack: ta,
952
- onToggleTooltip: oa,
953
- onToggleAnnotator: Se,
954
- style: K({
955
- visibility: p(Ne) ? p(we) ? "visible" : "hidden" : "visible"
953
+ onToggleFullscreen: wa,
954
+ onGeneratePdf: p(Be),
955
+ onGenerateCsv: aa,
956
+ onGenerateImage: p(Ve),
957
+ onToggleTable: la,
958
+ onToggleLabels: ta,
959
+ onToggleStack: oa,
960
+ onToggleTooltip: ua,
961
+ onToggleAnnotator: $e,
962
+ style: Q({
963
+ visibility: p(Ye) ? p(ze) ? "visible" : "hidden" : "visible"
956
964
  })
957
- }, Za({ _: 2 }, [
965
+ }, Ga({ _: 2 }, [
958
966
  e.$slots.menuIcon ? {
959
967
  name: "menuIcon",
960
968
  fn: b(({ isOpen: o, color: n }) => [
961
- x(e.$slots, "menuIcon", W(X({ isOpen: o, color: n })), void 0, !0)
969
+ L(e.$slots, "menuIcon", X(_({ isOpen: o, color: n })), void 0, !0)
962
970
  ]),
963
971
  key: "0"
964
972
  } : void 0,
965
973
  e.$slots.optionTooltip ? {
966
974
  name: "optionTooltip",
967
975
  fn: b(() => [
968
- x(e.$slots, "optionTooltip", {}, void 0, !0)
976
+ L(e.$slots, "optionTooltip", {}, void 0, !0)
969
977
  ]),
970
978
  key: "1"
971
979
  } : void 0,
972
980
  e.$slots.optionPdf ? {
973
981
  name: "optionPdf",
974
982
  fn: b(() => [
975
- x(e.$slots, "optionPdf", {}, void 0, !0)
983
+ L(e.$slots, "optionPdf", {}, void 0, !0)
976
984
  ]),
977
985
  key: "2"
978
986
  } : void 0,
979
987
  e.$slots.optionCsv ? {
980
988
  name: "optionCsv",
981
989
  fn: b(() => [
982
- x(e.$slots, "optionCsv", {}, void 0, !0)
990
+ L(e.$slots, "optionCsv", {}, void 0, !0)
983
991
  ]),
984
992
  key: "3"
985
993
  } : void 0,
986
994
  e.$slots.optionImg ? {
987
995
  name: "optionImg",
988
996
  fn: b(() => [
989
- x(e.$slots, "optionImg", {}, void 0, !0)
997
+ L(e.$slots, "optionImg", {}, void 0, !0)
990
998
  ]),
991
999
  key: "4"
992
1000
  } : void 0,
993
1001
  e.$slots.optionTable ? {
994
1002
  name: "optionTable",
995
1003
  fn: b(() => [
996
- x(e.$slots, "optionTable", {}, void 0, !0)
1004
+ L(e.$slots, "optionTable", {}, void 0, !0)
997
1005
  ]),
998
1006
  key: "5"
999
1007
  } : void 0,
1000
1008
  e.$slots.optionLabels ? {
1001
1009
  name: "optionLabels",
1002
1010
  fn: b(() => [
1003
- x(e.$slots, "optionLabels", {}, void 0, !0)
1011
+ L(e.$slots, "optionLabels", {}, void 0, !0)
1004
1012
  ]),
1005
1013
  key: "6"
1006
1014
  } : void 0,
1007
1015
  e.$slots.optionStack ? {
1008
1016
  name: "optionStack",
1009
1017
  fn: b(() => [
1010
- x(e.$slots, "optionStack", {}, void 0, !0)
1018
+ L(e.$slots, "optionStack", {}, void 0, !0)
1011
1019
  ]),
1012
1020
  key: "7"
1013
1021
  } : void 0,
1014
1022
  e.$slots.optionFullscreen ? {
1015
1023
  name: "optionFullscreen",
1016
1024
  fn: b(({ toggleFullscreen: o, isFullscreen: n }) => [
1017
- x(e.$slots, "optionFullscreen", W(X({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
1025
+ L(e.$slots, "optionFullscreen", X(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
1018
1026
  ]),
1019
1027
  key: "8"
1020
1028
  } : void 0,
1021
1029
  e.$slots.optionAnnotator ? {
1022
1030
  name: "optionAnnotator",
1023
1031
  fn: b(({ toggleAnnotator: o, isAnnotator: n }) => [
1024
- x(e.$slots, "optionAnnotator", W(X({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
1032
+ L(e.$slots, "optionAnnotator", X(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
1025
1033
  ]),
1026
1034
  key: "9"
1027
1035
  } : void 0
1028
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : U("", !0),
1029
- ne("div", {
1036
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
1037
+ ie("div", {
1030
1038
  class: "vue-ui-xy-canvas",
1031
- style: K(`position: relative; aspect-ratio: ${Ue.value}`),
1039
+ style: Q(`position: relative; aspect-ratio: ${We.value}`),
1032
1040
  ref_key: "container",
1033
- ref: le
1041
+ ref: te
1034
1042
  }, [
1035
- Ce.value ? (z(), se("canvas", {
1043
+ we.value ? (z(), ne("canvas", {
1036
1044
  key: 0,
1037
1045
  ref_key: "canvas",
1038
1046
  ref: T,
1039
1047
  style: { width: "100%", height: "100%" },
1040
- onMousemove: t[0] || (t[0] = (o) => Na(o)),
1041
- onMouseleave: Ya
1042
- }, null, 544)) : (z(), D(p(pa), {
1048
+ onMousemove: t[0] || (t[0] = (o) => Ya(o)),
1049
+ onMouseleave: Ua
1050
+ }, null, 544)) : (z(), D(p(ma), {
1043
1051
  key: 1,
1044
1052
  config: {
1045
1053
  type: "line",
@@ -1057,8 +1065,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
1057
1065
  }
1058
1066
  }
1059
1067
  }, null, 8, ["config"])),
1060
- Ga(p(ma), {
1061
- show: u.value.showTooltip && ve.value,
1068
+ ja(p(ba), {
1069
+ show: r.value.showTooltip && ce.value,
1062
1070
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1063
1071
  color: a.value.style.chart.tooltip.color,
1064
1072
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -1068,97 +1076,97 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
1068
1076
  position: a.value.style.chart.tooltip.position,
1069
1077
  offsetY: a.value.style.chart.tooltip.offsetY,
1070
1078
  parent: p(T),
1071
- content: ce.value,
1072
- isFullscreen: de.value,
1079
+ content: de.value,
1080
+ isFullscreen: he.value,
1073
1081
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1074
- isCustom: p(na)(a.value.style.chart.tooltip.customFormat)
1082
+ isCustom: p(ia)(a.value.style.chart.tooltip.customFormat)
1075
1083
  }, {
1076
1084
  "tooltip-before": b(() => [
1077
- x(e.$slots, "tooltip-before", W(X({ ...Oe.value })), void 0, !0)
1085
+ L(e.$slots, "tooltip-before", X(_({ ...Re.value })), void 0, !0)
1078
1086
  ]),
1079
1087
  "tooltip-after": b(() => [
1080
- x(e.$slots, "tooltip-after", W(X({ ...Oe.value })), void 0, !0)
1088
+ L(e.$slots, "tooltip-after", X(_({ ...Re.value })), void 0, !0)
1081
1089
  ]),
1082
1090
  _: 3
1083
1091
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
1084
1092
  ], 4),
1085
- ne("div", {
1093
+ ie("div", {
1086
1094
  ref_key: "chartSlicer",
1087
- ref: Ae,
1088
- style: K(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1095
+ ref: De,
1096
+ style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1089
1097
  "data-dom-to-png-ignore": ""
1090
1098
  }, [
1091
- a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(bl, {
1099
+ a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(xl, {
1092
1100
  ref_key: "slicerComponent",
1093
- ref: G,
1094
- key: `slicer_${Re.value}`,
1101
+ ref: j,
1102
+ key: `slicer_${Pe.value}`,
1095
1103
  background: a.value.style.chart.zoom.color,
1096
1104
  borderColor: a.value.style.chart.backgroundColor,
1097
1105
  fontSize: a.value.style.chart.zoom.fontSize,
1098
1106
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
1099
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
1100
- labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
1107
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? N.value[u.value.start].text : "",
1108
+ labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? N.value[u.value.end - 1].text : "",
1101
1109
  textColor: a.value.style.chart.color,
1102
1110
  inputColor: a.value.style.chart.zoom.color,
1103
1111
  selectColor: a.value.style.chart.zoom.highlightColor,
1104
1112
  max: I.value,
1105
1113
  min: 0,
1106
- valueStart: r.value.start,
1107
- valueEnd: r.value.end,
1108
- start: r.value.start,
1109
- "onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
1110
- end: r.value.end,
1111
- "onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
1114
+ valueStart: u.value.start,
1115
+ valueEnd: u.value.end,
1116
+ start: u.value.start,
1117
+ "onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
1118
+ end: u.value.end,
1119
+ "onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
1112
1120
  refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
1113
1121
  refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
1114
1122
  enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
1115
1123
  enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
1116
- onReset: Ge
1124
+ onReset: je
1117
1125
  }, {
1118
1126
  "reset-action": b(({ reset: o }) => [
1119
- x(e.$slots, "reset-action", W(X({ reset: o })), void 0, !0)
1127
+ L(e.$slots, "reset-action", X(_({ reset: o })), void 0, !0)
1120
1128
  ]),
1121
1129
  _: 3
1122
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : U("", !0)
1130
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : W("", !0)
1123
1131
  ], 4),
1124
- ne("div", {
1132
+ ie("div", {
1125
1133
  ref_key: "chartLegend",
1126
- ref: Fe
1134
+ ref: Ae
1127
1135
  }, [
1128
- a.value.style.chart.legend.show && Ce.value ? (z(), D(pl, {
1129
- legendSet: Ke.value,
1130
- config: Ua.value,
1131
- key: `legend_${ke.value}`,
1132
- onClickMarker: t[3] || (t[3] = ({ i: o }) => Je(o))
1136
+ a.value.style.chart.legend.show && we.value ? (z(), D(ml, {
1137
+ legendSet: Qe.value,
1138
+ config: Wa.value,
1139
+ key: `legend_${Ce.value}`,
1140
+ onClickMarker: t[3] || (t[3] = ({ i: o }) => Ke(o))
1133
1141
  }, {
1134
1142
  item: b(({ legend: o, index: n }) => [
1135
- ne("div", {
1136
- onClick: (c) => o.segregate(),
1137
- style: K(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
1138
- }, ua(o.name), 13, kl)
1143
+ ie("div", {
1144
+ onClick: (v) => o.segregate(),
1145
+ style: Q(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
1146
+ }, sa(o.name), 13, wl)
1139
1147
  ]),
1140
1148
  _: 1
1141
- }, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
1149
+ }, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
1142
1150
  key: 1,
1143
- legend: Ke.value
1151
+ legend: Qe.value
1144
1152
  }, void 0, !0)
1145
1153
  ], 512),
1146
- e.$slots.watermark ? (z(), se("div", Cl, [
1147
- x(e.$slots, "watermark", W(X({ isPrinting: p(We) || p(Xe) })), void 0, !0)
1148
- ])) : U("", !0),
1149
- e.$slots.source ? (z(), se("div", {
1154
+ e.$slots.watermark ? (z(), ne("div", zl, [
1155
+ L(e.$slots, "watermark", X(_({ isPrinting: p(Xe) || p(_e) })), void 0, !0)
1156
+ ])) : W("", !0),
1157
+ e.$slots.source ? (z(), ne("div", {
1150
1158
  key: 3,
1151
1159
  ref_key: "source",
1152
- ref: De,
1160
+ ref: He,
1153
1161
  dir: "auto"
1154
1162
  }, [
1155
- x(e.$slots, "source", {}, void 0, !0)
1156
- ], 512)) : U("", !0),
1157
- r.value.end - r.value.start < 200 ? (z(), D(p(ya), {
1163
+ L(e.$slots, "source", {}, void 0, !0)
1164
+ ], 512)) : W("", !0),
1165
+ u.value.end - u.value.start < 200 ? (z(), D(p(fa), {
1158
1166
  key: 4,
1159
1167
  hideDetails: "",
1160
1168
  config: {
1161
- open: u.value.showTable,
1169
+ open: r.value.showTable,
1162
1170
  maxHeight: 1e4,
1163
1171
  body: {
1164
1172
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1171,37 +1179,37 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
1171
1179
  }
1172
1180
  }, {
1173
1181
  content: b(() => [
1174
- (z(), D(p(fa), {
1175
- key: `table_${Le.value}`,
1176
- colNames: ye.value.colNames,
1177
- head: ye.value.head,
1178
- body: ye.value.body,
1179
- config: ye.value.config,
1182
+ (z(), D(p(ga), {
1183
+ key: `table_${ke.value}`,
1184
+ colNames: fe.value.colNames,
1185
+ head: fe.value.head,
1186
+ body: fe.value.body,
1187
+ config: fe.value.config,
1180
1188
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1181
- onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
1189
+ onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
1182
1190
  }, {
1183
1191
  th: b(({ th: o }) => [
1184
- ne("div", { innerHTML: o }, null, 8, wl)
1192
+ ie("div", { innerHTML: o }, null, 8, Sl)
1185
1193
  ]),
1186
1194
  td: b(({ td: o }) => [
1187
- ja(ua(o), 1)
1195
+ qa(sa(o), 1)
1188
1196
  ]),
1189
1197
  _: 1
1190
1198
  }, 8, ["colNames", "head", "body", "config", "title"]))
1191
1199
  ]),
1192
1200
  _: 1
1193
- }, 8, ["config"])) : U("", !0),
1194
- a.value.userOptions.buttons.annotator && h.value.length ? (z(), D(p(ga), {
1201
+ }, 8, ["config"])) : W("", !0),
1202
+ a.value.userOptions.buttons.annotator && h.value.length ? (z(), D(p(pa), {
1195
1203
  key: 5,
1196
- parent: ae.value,
1204
+ parent: le.value,
1197
1205
  backgroundColor: a.value.style.chart.backgroundColor,
1198
1206
  color: a.value.style.chart.color,
1199
- active: fe.value,
1200
- onClose: Se
1201
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : U("", !0)
1202
- ], 46, Ll));
1207
+ active: ge.value,
1208
+ onClose: $e
1209
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
1210
+ ], 46, Cl));
1203
1211
  }
1204
- }, Dl = /* @__PURE__ */ xl(zl, [["__scopeId", "data-v-3390327e"]]);
1212
+ }, Yl = /* @__PURE__ */ kl($l, [["__scopeId", "data-v-f3aa051a"]]);
1205
1213
  export {
1206
- Dl as default
1214
+ Yl as default
1207
1215
  };