vue-data-ui 3.4.8 → 3.5.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 (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.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-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
  99. package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as pe, ref as d, computed as g, useSlots as Ml, onMounted as Ta, toRefs as $l, watch as O, nextTick as be, onBeforeUnmount as Aa, shallowRef as Ye, createElementBlock as Ae, openBlock as F, normalizeClass as Il, normalizeStyle as xe, createCommentVNode as W, createElementVNode as J, createBlock as Y, unref as L, createSlots as Fa, withCtx as b, renderSlot as M, normalizeProps as K, guardReactiveProps as ee, createVNode as Ra, Teleport as Tl, toDisplayString as Ve, resolveDynamicComponent as Al, mergeProps as Fl, createTextVNode as Oa } from "vue";
2
- import { c as Rl, t as Ol, b as Pl, p as ae, O as Le, e as Dl, m as Ge, a as se, d as re, h as Pa, u as El, a1 as Nl, w as _l, o as Hl, f as Bl, G as Da, s as ke, S as Xl, P as Ul, Q as Wl, H as Yl } from "./lib-C_mNZmhD.js";
3
- import { c as Vl, a as qe, d as Gl, t as ql, u as Zl, l as C, r as Fe, b as V, p as Ea } from "./useResponsive-DfdjqQps.js";
4
- import { u as jl, a as Ze } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Jl, B as Ql } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Kl } from "./usePrinter-DTzqpYKF.js";
7
- import { u as et, a as at, l as lt } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
10
- import ut from "./img-BecE5qXd.js";
11
- import { t as st } from "./themes-AUNCOb2G.js";
12
- import rt from "./Legend-G6GMcdAc.js";
13
- import nt from "./Title-l36lOBMx.js";
14
- import it from "./BaseIcon-BmMbm4d0.js";
15
- import vt from "./vue-ui-accordion-CZ0thhxa.js";
16
- import { S as ct } from "./SlicerPreview-ij72TAs6.js";
17
- import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1
+ import { defineAsyncComponent as pe, ref as d, computed as g, useSlots as Tl, onMounted as Aa, toRefs as Al, watch as P, nextTick as be, onBeforeUnmount as Fa, shallowRef as Ye, createElementBlock as Fe, openBlock as R, normalizeClass as Fl, normalizeStyle as xe, createCommentVNode as W, createElementVNode as J, createBlock as V, unref as L, createSlots as Ra, withCtx as b, renderSlot as M, normalizeProps as K, guardReactiveProps as ee, createVNode as Oa, Teleport as Rl, toDisplayString as Ge, resolveDynamicComponent as Ol, mergeProps as Pl, createTextVNode as Pa } from "vue";
2
+ import { c as Dl, t as El, b as Nl, p as ae, O as Le, e as _l, m as qe, a as se, d as re, h as Da, u as Hl, a1 as Xl, w as Ul, o as Bl, f as Wl, G as Ea, s as ke, S as Vl, P as Yl, Q as Gl, H as ql } from "./lib-C_mNZmhD.js";
3
+ import { c as Zl, a as Ze, d as jl, t as Jl, u as Ql, l as C, r as Re, b as Y, p as Na } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Kl, a as je } from "./useNestedProp-BjZe1Y85.js";
5
+ import { u as et, B as at } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as lt } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as tt, a as ot, l as ut } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import nt from "./img-BecE5qXd.js";
11
+ import { t as it } from "./themes-AUNCOb2G.js";
12
+ import vt from "./Legend-G6GMcdAc.js";
13
+ import ct from "./Title-l36lOBMx.js";
14
+ import dt from "./BaseIcon-BmMbm4d0.js";
15
+ import ht from "./vue-ui-accordion-CZ0thhxa.js";
16
+ import { S as ft } from "./SlicerPreview-ij72TAs6.js";
17
+ import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const mt = ["id"], gt = ["id"], pt = ["id"], bt = ["onClick"], xt = {
19
19
  key: 4,
20
20
  class: "vue-data-ui-watermark"
21
- }, pt = ["innerHTML"], bt = {
21
+ }, Lt = ["innerHTML"], kt = {
22
22
  __name: "vue-ui-xy-canvas",
23
23
  props: {
24
24
  dataset: {
@@ -39,15 +39,15 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
39
39
  }
40
40
  },
41
41
  emits: ["selectLegend", "selectX"],
42
- setup(je, { expose: Na, emit: _a }) {
43
- const Ha = pe(() => import("./Tooltip-oWCO1HKy.js")), Ba = pe(() => import("./DataTable-BT7VF2ua.js")), Xa = pe(() => import("./UserOptions-CGnQt6Fd.js")), Ua = pe(() => import("./NonSvgPenAndPaper-C7TRn0_3.js")), Wa = pe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_xy_canvas: Ya } = jl(), p = je, Q = d(Rl()), H = d(null), le = d(null), v = d(null), m = d(1), G = d(1), ne = d(!1), h = d(null), Ce = d(""), Je = d(null), A = d([]), te = d(1), D = d(!0), B = d(!0), we = d(null), Qe = d(0), ie = d(!1), Ke = d(null), ea = d(null), q = d(null), aa = d(null), Re = d(0), Oe = d(0), Pe = d(0), E = d(null), la = d(!1), ve = d(null), De = d(null), ce = d(!1), ta = d(!1), Se = d(!1), w = d(null), X = g(() => Array.isArray(_e.value) && _e.value.length > 0), Ee = _a, Va = Ml();
44
- Ta(() => {
45
- Va["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
42
+ setup(Je, { expose: _a, emit: Ha }) {
43
+ const Xa = pe(() => import("./Tooltip-oWCO1HKy.js")), Ua = pe(() => import("./DataTable-BT7VF2ua.js")), Ba = pe(() => import("./UserOptions-CGnQt6Fd.js")), Wa = pe(() => import("./NonSvgPenAndPaper-C7TRn0_3.js")), Va = pe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_xy_canvas: Ya } = Kl(), p = Je, Q = d(Dl()), H = d(null), le = d(null), v = d(null), m = d(1), G = d(1), ne = d(!1), h = d(null), Ce = d(""), Qe = d(null), $ = d([]), te = d(1), D = d(!0), X = d(!0), we = d(null), Ke = d(0), ie = d(!1), ea = d(null), aa = d(null), q = d(null), la = d(null), Oe = d(0), Pe = d(0), De = d(0), E = d(null), ta = d(!1), ve = d(null), Ee = d(null), ce = d(!1), oa = d(!1), Se = d(!1), w = d(null), U = g(() => Array.isArray(He.value) && He.value.length > 0), Ne = Ha, Ga = Tl();
44
+ Aa(() => {
45
+ Ga["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
46
46
  });
47
- const a = d(Be()), Ga = g(() => !!a.value.debug), { loading: Ne, FINAL_DATASET: _e } = Jl({
48
- ...$l(p),
47
+ const a = d(Ue()), qa = g(() => !!a.value.debug), { loading: _e, FINAL_DATASET: He } = et({
48
+ ...Al(p),
49
49
  FINAL_CONFIG: a,
50
- prepareConfig: Be,
50
+ prepareConfig: Ue,
51
51
  skeletonDataset: [
52
52
  {
53
53
  name: "",
@@ -63,7 +63,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
63
63
  color: "#AAAAAA"
64
64
  }
65
65
  ],
66
- skeletonConfig: Ol({
66
+ skeletonConfig: El({
67
67
  defaultConfig: a.value,
68
68
  userConfig: {
69
69
  userOptions: { show: !1 },
@@ -102,36 +102,36 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
102
102
  }
103
103
  }
104
104
  })
105
- }), { userOptionsVisible: He, setUserOptionsVisibility: oa, keepUserOptionState: ua } = tt({ config: a.value }), { svgRef: S } = ot({ config: a.value.style.chart.title });
106
- function qa() {
107
- oa(!0);
108
- }
105
+ }), { userOptionsVisible: Xe, setUserOptionsVisibility: ua, keepUserOptionState: sa } = st({ config: a.value }), { svgRef: S } = rt({ config: a.value.style.chart.title });
109
106
  function Za() {
110
- oa(!1), Ee("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
107
+ ua(!0);
111
108
  }
112
- function Be() {
113
- const e = Ze({
109
+ function ja() {
110
+ ua(!1), Ne("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
111
+ }
112
+ function Ue() {
113
+ const e = je({
114
114
  userConfig: p.config,
115
115
  defaultConfig: Ya
116
116
  });
117
117
  let l = {};
118
118
  return e.theme ? l = {
119
- ...Ze({
120
- userConfig: st.vue_ui_xy_canvas[e.theme] || p.config,
119
+ ...je({
120
+ userConfig: it.vue_ui_xy_canvas[e.theme] || p.config,
121
121
  defaultConfig: e
122
122
  }),
123
- customPalette: Pl[e.theme] || ae
124
- } : l = e, p.config && Le(p.config, "style.chart.scale.min") ? l.style.chart.scale.min = p.config.style.chart.scale.min : l.style.chart.scale.min = null, p.config && Le(p.config, "style.chart.scale.max") ? l.style.chart.scale.max = p.config.style.chart.scale.max : l.style.chart.scale.max = null, p.config && Le(p.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = p.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, p.config && Le(p.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = p.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, p.config && Le(p.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), l.style.chart.grid.x.timeLabels = Ze({
123
+ customPalette: Nl[e.theme] || ae
124
+ } : l = e, p.config && Le(p.config, "style.chart.scale.min") ? l.style.chart.scale.min = p.config.style.chart.scale.min : l.style.chart.scale.min = null, p.config && Le(p.config, "style.chart.scale.max") ? l.style.chart.scale.max = p.config.style.chart.scale.max : l.style.chart.scale.max = null, p.config && Le(p.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = p.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, p.config && Le(p.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = p.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, p.config && Le(p.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), l.style.chart.grid.x.timeLabels = je({
125
125
  defaultConfig: l.style.chart.grid.x.timeLabels,
126
126
  userConfig: p.config.style.chart.grid.y.timeLabels
127
127
  })), l;
128
128
  }
129
- O(() => p.config, (e) => {
130
- Ne.value || (a.value = Be()), He.value = !a.value.userOptions.showOnChartHover, La(), Re.value += 1, Oe.value += 1, Pe.value += 1, c.value.showTable = a.value.table.show, c.value.showDataLabels = a.value.style.chart.dataLabels.show, c.value.stacked = a.value.style.chart.stacked, c.value.showTooltip = a.value.style.chart.tooltip.show;
131
- }, { deep: !0 }), O(() => p.dataset, async (e) => {
132
- !Array.isArray(e) || e.length === 0 || (await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, B.value = !0, await he(), Me(), Re.value += 1, Oe.value += 1, Pe.value += 1);
129
+ P(() => p.config, (e) => {
130
+ _e.value || (a.value = Ue()), Xe.value = !a.value.userOptions.showOnChartHover, ka(), Oe.value += 1, Pe.value += 1, De.value += 1, c.value.showTable = a.value.table.show, c.value.showDataLabels = a.value.style.chart.dataLabels.show, c.value.stacked = a.value.style.chart.stacked, c.value.showTooltip = a.value.style.chart.tooltip.show;
131
+ }, { deep: !0 }), P(() => p.dataset, async (e) => {
132
+ !Array.isArray(e) || e.length === 0 || (await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, X.value = !0, await he(), Me(), Oe.value += 1, Pe.value += 1, De.value += 1);
133
133
  }, { deep: !0 });
134
- const sa = d(a.value.style.chart.aspectRatio), { isPrinting: ra, isImaging: na, generatePdf: ia, generateImage: va } = Kl({
134
+ const ra = d(a.value.style.chart.aspectRatio), { isPrinting: na, isImaging: ia, generatePdf: va, generateImage: ca } = lt({
135
135
  elementId: `xy_canvas_${Q.value}`,
136
136
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
137
137
  options: a.value.userOptions.print
@@ -141,11 +141,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
141
141
  stacked: a.value.style.chart.stacked,
142
142
  showTooltip: a.value.style.chart.tooltip.show
143
143
  });
144
- function ca(e) {
145
- ie.value = e, Qe.value += 1;
144
+ function da(e) {
145
+ ie.value = e, Ke.value += 1;
146
146
  }
147
- const da = g(() => Dl(a.value.customPalette)), R = g(() => P.value ? Math.max(...P.value.filter((e, l) => !A.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
148
- function ja(e) {
147
+ const ha = g(() => _l(a.value.customPalette)), O = g(() => F.value ? Math.max(...F.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
148
+ function Ja(e) {
149
149
  w.value = e, Z();
150
150
  }
151
151
  const o = g(() => {
@@ -162,24 +162,24 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
162
162
  slot: e / (u.value.end - u.value.start)
163
163
  };
164
164
  });
165
- function ha(e, l) {
165
+ function fa(e, l) {
166
166
  return e / l;
167
167
  }
168
- function Ja({ hasAutoScale: e, series: l, min: t, max: r, scale: s, yOffset: i, individualHeight: n, stackIndex: f = null }) {
169
- return l.map((x, T) => {
170
- const k = s.min < 0 ? Math.abs(s.min) : 0, _ = ha(x + k, k + s.max);
168
+ function Qa({ hasAutoScale: e, series: l, min: t, max: r, scale: s, yOffset: i, individualHeight: n, stackIndex: f = null }) {
169
+ return l.map((x, A) => {
170
+ const k = s.min < 0 ? Math.abs(s.min) : 0, _ = fa(x + k, k + s.max);
171
171
  let me, ge;
172
- e && (me = s.min, ge = ha(x - me, s.max - me));
173
- let U = 0;
174
- return f === null ? U = o.value.bottom - o.value.height * (e ? ge : _) : U = o.value.bottom - i - n * (e ? ge : _), {
175
- x: o.value.left + o.value.slot * T + o.value.slot / 2,
176
- y: U,
172
+ e && (me = s.min, ge = fa(x - me, s.max - me));
173
+ let B = 0;
174
+ return f === null ? B = o.value.bottom - o.value.height * (e ? ge : _) : B = o.value.bottom - i - n * (e ? ge : _), {
175
+ x: o.value.left + o.value.slot * A + o.value.slot / 2,
176
+ y: B,
177
177
  value: x
178
178
  };
179
179
  });
180
180
  }
181
181
  const z = g(() => {
182
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...P.value.filter((n, f) => !A.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...P.value.filter((n, f) => !A.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = Ge(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), r = t.min < 0 ? Math.abs(t.min) : 0, s = o.value.bottom - o.value.height * (r / (t.max + r)), i = t.ticks.map((n) => ({
182
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...F.value.filter((n, f) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...F.value.filter((n, f) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = qe(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), r = t.min < 0 ? Math.abs(t.min) : 0, s = o.value.bottom - o.value.height * (r / (t.max + r)), i = t.ticks.map((n) => ({
183
183
  y: o.value.bottom - o.value.height * ((n + r) / (t.max + r)),
184
184
  x: o.value.left - 8,
185
185
  value: n
@@ -192,7 +192,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
192
192
  yLabels: i,
193
193
  zero: s
194
194
  };
195
- }), Qa = g(() => y.value.map((e) => `
195
+ }), Ka = g(() => y.value.map((e) => `
196
196
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
197
197
  <svg viewBox="0 0 10 10" height="12" width="12">
198
198
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -210,55 +210,55 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
210
210
  { datapoint: e, seriesIndex: h.value }
211
211
  )}</span>
212
212
  </div>
213
- `)), ze = g(() => a.value.style.chart.line.cutNullValues), P = g(() => _e.value.map((e, l) => ({
213
+ `)), ze = g(() => a.value.style.chart.line.cutNullValues), F = g(() => He.value.map((e, l) => ({
214
214
  ...e,
215
- series: El({
216
- data: Nl(e.series, [], ze.value),
215
+ series: Hl({
216
+ data: Xl(e.series, [], ze.value),
217
217
  threshold: a.value.downsample.threshold
218
218
  }),
219
219
  absoluteIndex: l,
220
- color: Pa(e.color || da.value[l] || ae[l] || ae[l % ae.length])
221
- }))), Ka = g(() => {
220
+ color: Da(e.color || ha.value[l] || ae[l] || ae[l % ae.length])
221
+ }))), el = g(() => {
222
222
  if (!a.value.style.chart.zoom.minimap.show) return [];
223
- const e = P.value.filter((s) => !A.value.includes(s.absoluteIndex)), l = Math.max(...e.map((s) => s.series.length)), t = [];
223
+ const e = F.value.filter((s) => !$.value.includes(s.absoluteIndex)), l = Math.max(...e.map((s) => s.series.length)), t = [];
224
224
  for (let s = 0; s < l; s += 1)
225
225
  t.push(e.map((i) => i.series[s] || 0).reduce((i, n) => (i || 0) + (n || 0), 0));
226
226
  const r = Math.min(...t);
227
227
  return t.map((s) => s + (r < 0 ? Math.abs(r) : 0));
228
- }), el = g(() => a.value.style.chart.zoom.minimap.show ? P.value.map((l) => ({
228
+ }), al = g(() => a.value.style.chart.zoom.minimap.show ? F.value.map((l) => ({
229
229
  ...l,
230
- isVisible: !A.value.includes(l.absoluteIndex)
230
+ isVisible: !$.value.includes(l.absoluteIndex)
231
231
  })) : []);
232
- O(R, (e) => {
232
+ P(O, (e) => {
233
233
  e && he();
234
234
  });
235
- const y = g(() => _l(P.value.filter((e, l) => !A.value.includes(e.absoluteIndex))).map((e, l) => ({
235
+ const y = g(() => Ul(F.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
236
236
  ...e,
237
237
  series: e.series.slice(u.value.start, u.value.end)
238
238
  })).map((e, l) => {
239
239
  let t = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, r = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
240
- t === r && (t = t >= 0 ? r - 1 : t, r = r >= 0 ? r : t + 1), e.series.filter((U) => ![null, void 0].includes(U)).map((U) => (U - t) / (r - t));
240
+ t === r && (t = t >= 0 ? r - 1 : t, r = r >= 0 ? r : t + 1), e.series.filter((B) => ![null, void 0].includes(B)).map((B) => (B - t) / (r - t));
241
241
  const s = {
242
242
  valueMin: t,
243
243
  valueMax: r
244
244
  }, i = e.scaleSteps || a.value.style.chart.scale.ticks;
245
245
  let n;
246
- e.autoScaling ? n = Ge(s.valueMin, s.valueMax, i) : n = Ge(s.valueMin < 0 ? s.valueMin : 0, s.valueMax <= 0 ? 0 : s.valueMax, i);
247
- const f = c.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, x = c.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, T = c.value.stacked ? o.value.height * e.stackRatio - x : o.value.height, k = n.min < 0 ? Math.abs(n.min) : 0;
246
+ e.autoScaling ? n = qe(s.valueMin, s.valueMax, i) : n = qe(s.valueMin < 0 ? s.valueMin : 0, s.valueMax <= 0 ? 0 : s.valueMax, i);
247
+ const f = c.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, x = c.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, A = c.value.stacked ? o.value.height * e.stackRatio - x : o.value.height, k = n.min < 0 ? Math.abs(n.min) : 0;
248
248
  let _;
249
- e.autoScaling && c.value.stacked && r <= 0 ? _ = o.value.bottom - f - T : _ = o.value.bottom - f - T * (k / (n.max + k));
250
- const me = n.ticks.map((U, zl) => ({
251
- y: o.value.bottom - f - T * (zl / (n.ticks.length - 1)),
249
+ e.autoScaling && c.value.stacked && r <= 0 ? _ = o.value.bottom - f - A : _ = o.value.bottom - f - A * (k / (n.max + k));
250
+ const me = n.ticks.map((B, Il) => ({
251
+ y: o.value.bottom - f - A * (Il / (n.ticks.length - 1)),
252
252
  x: o.value.left - 8,
253
- value: U
254
- })), ge = Ja({
253
+ value: B
254
+ })), ge = Qa({
255
255
  hasAutoScale: c.value.stacked && e.autoScaling,
256
256
  series: e.series,
257
257
  min: c.value.stacked ? t : z.value.min,
258
258
  max: c.value.stacked ? r : z.value.max,
259
259
  scale: c.value.stacked ? n : z.value.scale,
260
260
  yOffset: f,
261
- individualHeight: T,
261
+ individualHeight: A,
262
262
  stackIndex: c.value.stacked ? l : null
263
263
  });
264
264
  return {
@@ -271,35 +271,35 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
271
271
  localMin: k,
272
272
  localYLabels: me,
273
273
  yOffset: f,
274
- individualHeight: T
274
+ individualHeight: A
275
275
  };
276
276
  })), u = d({
277
277
  start: 0,
278
- end: R.value
279
- }), $ = d({ start: 0, end: R.value }), de = d(null);
280
- function al() {
278
+ end: O.value
279
+ }), I = d({ start: 0, end: O.value }), de = d(null);
280
+ function ll() {
281
281
  return new Promise((e) => requestAnimationFrame(
282
282
  () => requestAnimationFrame(() => e())
283
283
  ));
284
284
  }
285
- Aa(() => {
285
+ Fa(() => {
286
286
  de.value && cancelAnimationFrame(de.value);
287
287
  });
288
288
  async function he() {
289
- ya(), await be(), de.value && cancelAnimationFrame(de.value), de.value = requestAnimationFrame(async () => {
290
- await al(), ya();
289
+ ma(), await be(), de.value && cancelAnimationFrame(de.value), de.value = requestAnimationFrame(async () => {
290
+ await ll(), ma();
291
291
  });
292
292
  }
293
- const ll = g(() => a.value.style.chart.zoom.preview.enable && ($.value.start !== u.value.start || $.value.end !== u.value.end));
294
- function fa(e, l) {
295
- $.value[e] = l;
293
+ const tl = g(() => a.value.style.chart.zoom.preview.enable && (I.value.start !== u.value.start || I.value.end !== u.value.end));
294
+ function ya(e, l) {
295
+ I.value[e] = l;
296
296
  }
297
- async function ya() {
297
+ async function ma() {
298
298
  if (!ce.value) {
299
299
  ce.value = !0;
300
300
  try {
301
- const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, t = Math.max(...P.value.map((i) => i.series.length)), r = e ?? 0, s = l != null ? Math.min(ma(l + 1), t) : t;
302
- Se.value = !0, u.value.start = r, u.value.end = s, $.value.start = r, $.value.end = s, Xe(), ta.value = !0, await be(), q.value && (q.value.setStartValue(u.value.start), q.value.setEndValue(u.value.end));
301
+ const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, t = Math.max(...F.value.map((i) => i.series.length)), r = e ?? 0, s = l != null ? Math.min(ga(l + 1), t) : t;
302
+ Se.value = !0, u.value.start = r, u.value.end = s, I.value.start = r, I.value.end = s, Be(), oa.value = !0, await be(), q.value && (q.value.setStartValue(u.value.start), q.value.setEndValue(u.value.end));
303
303
  } finally {
304
304
  queueMicrotask(() => {
305
305
  Se.value = !1;
@@ -307,41 +307,41 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
307
307
  }
308
308
  }
309
309
  }
310
- function tl(e) {
311
- ce.value || Se.value || e !== u.value.start && (u.value.start = e, $.value.start = e, Xe());
312
- }
313
310
  function ol(e) {
311
+ ce.value || Se.value || e !== u.value.start && (u.value.start = e, I.value.start = e, Be());
312
+ }
313
+ function ul(e) {
314
314
  if (ce.value || Se.value) return;
315
- const l = ma(e);
316
- l !== u.value.end && (u.value.end = l, $.value.end = l, Xe());
315
+ const l = ga(e);
316
+ l !== u.value.end && (u.value.end = l, I.value.end = l, Be());
317
317
  }
318
- function ma(e) {
319
- const l = R.value;
318
+ function ga(e) {
319
+ const l = O.value;
320
320
  return e > l ? l : e < 0 || e < u.value.start ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
321
321
  }
322
- function Xe() {
322
+ function Be() {
323
323
  const e = Math.max(
324
324
  1,
325
- Math.max(...P.value.map((r) => r.series.length))
325
+ Math.max(...F.value.map((r) => r.series.length))
326
326
  );
327
327
  let l = Math.max(0, Math.min(u.value.start ?? 0, e - 1)), t = Math.max(l + 1, Math.min(u.value.end ?? e, e));
328
- (!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = e), u.value = { start: l, end: t }, $.value.start = l, $.value.end = t, q.value && (q.value.setStartValue(l), q.value.setEndValue(t));
328
+ (!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = e), u.value = { start: l, end: t }, I.value.start = l, I.value.end = t, q.value && (q.value.setStartValue(l), q.value.setEndValue(t));
329
329
  }
330
- const ul = g(() => y.value.filter((e) => ["line", "plot", void 0].includes(e.type))), I = g(() => y.value.filter((e) => e.type === "bar"));
330
+ const sl = g(() => y.value.filter((e) => ["line", "plot", void 0].includes(e.type))), T = g(() => y.value.filter((e) => e.type === "bar"));
331
331
  function Me() {
332
332
  if (!S.value || !le.value) return;
333
333
  const e = le.value.offsetWidth, l = le.value.offsetHeight;
334
334
  S.value.width = e * te.value * 2, S.value.height = l * te.value * 2, m.value = e * te.value * 2, G.value = l * te.value * 2, v.value?.scale(te.value, te.value), Z();
335
335
  }
336
- O(X, async (e) => {
336
+ P(U, async (e) => {
337
337
  if (!e) {
338
338
  we.value = null, ne.value = !1, h.value = null, E.value = null;
339
339
  return;
340
340
  }
341
- await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, B.value = !0, await he(), Me(), Z();
341
+ await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, X.value = !0, await he(), Me(), Z();
342
342
  });
343
- function sl() {
344
- if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(0, 0, o.value.canvasWidth, o.value.canvasHeight), !!X.value)) {
343
+ function rl() {
344
+ if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(0, 0, o.value.canvasWidth, o.value.canvasHeight), !!U.value)) {
345
345
  if (c.value.stacked)
346
346
  a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? y.value.forEach((e) => {
347
347
  for (let l = 0; l < u.value.end - u.value.start + 1; l += 1)
@@ -381,7 +381,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
381
381
  );
382
382
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? y.value.forEach((e) => {
383
383
  e.localYLabels.forEach((l, t) => {
384
- t < e.localYLabels.length - 1 && Fe(
384
+ t < e.localYLabels.length - 1 && Re(
385
385
  v.value,
386
386
  [
387
387
  { x: o.value.left, y: l.y },
@@ -441,7 +441,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
441
441
  }
442
442
  );
443
443
  }), y.value.forEach((e) => {
444
- V(
444
+ Y(
445
445
  v.value,
446
446
  e.name,
447
447
  m.value / 35,
@@ -480,7 +480,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
480
480
  }
481
481
  );
482
482
  a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? z.value.yLabels.forEach((e, l) => {
483
- l < z.value.yLabels.length - 1 && Fe(
483
+ l < z.value.yLabels.length - 1 && Re(
484
484
  v.value,
485
485
  [
486
486
  { x: o.value.left, y: e.y },
@@ -536,7 +536,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
536
536
  }
537
537
  );
538
538
  }
539
- a.value.style.chart.grid.y.axisName && V(
539
+ a.value.style.chart.grid.y.axisName && Y(
540
540
  v.value,
541
541
  a.value.style.chart.grid.y.axisName,
542
542
  m.value - m.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
@@ -547,7 +547,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
547
547
  align: "center",
548
548
  rotation: 90
549
549
  }
550
- ), a.value.style.chart.grid.x.axisName && V(
550
+ ), a.value.style.chart.grid.x.axisName && Y(
551
551
  v.value,
552
552
  a.value.style.chart.grid.x.axisName,
553
553
  m.value / 2,
@@ -560,10 +560,10 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
560
560
  );
561
561
  }
562
562
  }
563
- function rl(e) {
563
+ function nl(e) {
564
564
  for (let l = 0; l < e.coordinatesLine.length; l += 1) {
565
565
  const t = (h.value === l || w.value === l ? m.value / 150 : a.value.style.chart.line.plots.show || e.type === "plot" ? m.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
566
- qe(
566
+ Ze(
567
567
  v.value,
568
568
  { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
569
569
  t,
@@ -574,9 +574,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
574
574
  );
575
575
  }
576
576
  }
577
- function nl() {
577
+ function il() {
578
578
  y.value.forEach((e) => {
579
- e.showYMarker && fe(e) && V(
579
+ e.showYMarker && fe(e) && Y(
580
580
  v.value,
581
581
  se(
582
582
  a.value.style.chart.dataLabels.formatter,
@@ -599,10 +599,10 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
599
599
  );
600
600
  });
601
601
  }
602
- function il() {
602
+ function vl() {
603
603
  a.value.style.chart.grid.y.axisLabels.show && (c.value.stacked ? y.value.forEach((e) => {
604
604
  e.localYLabels.forEach((l, t) => {
605
- V(
605
+ Y(
606
606
  v.value,
607
607
  se(
608
608
  a.value.style.chart.dataLabels.formatter,
@@ -626,7 +626,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
626
626
  );
627
627
  });
628
628
  }) : z.value.yLabels.forEach((e, l) => {
629
- V(
629
+ Y(
630
630
  v.value,
631
631
  se(
632
632
  a.value.style.chart.dataLabels.formatter,
@@ -650,9 +650,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
650
650
  );
651
651
  }));
652
652
  }
653
- function vl(e) {
653
+ function cl(e) {
654
654
  for (let l = 0; l < e.coordinatesLine.length; l += 1)
655
- V(
655
+ Y(
656
656
  v.value,
657
657
  se(
658
658
  a.value.style.chart.dataLabels.formatter,
@@ -676,32 +676,32 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
676
676
  }
677
677
  );
678
678
  }
679
- const N = g(() => et({
679
+ const N = g(() => tt({
680
680
  values: a.value.style.chart.grid.x.timeLabels.values,
681
- maxDatapoints: R.value,
681
+ maxDatapoints: O.value,
682
682
  formatter: a.value.style.chart.grid.x.timeLabels.datetimeFormatter,
683
683
  start: 0,
684
- end: R.value
685
- })), ga = g(() => {
686
- const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = at({
684
+ end: O.value
685
+ })), pa = g(() => {
686
+ const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = ot({
687
687
  useUTC: e.useUTC,
688
- locale: lt[e.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
688
+ locale: ut[e.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
689
689
  januaryAsYear: e.januaryAsYear
690
690
  });
691
691
  return (t, r) => {
692
692
  const i = a.value.style.chart.grid.x.timeLabels.values?.[t];
693
693
  return i == null ? "" : l.formatDate(new Date(i), r);
694
694
  };
695
- }), pa = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
696
- text: ga.value(t, a.value.style.chart.zoom.timeFormat),
695
+ }), ba = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
696
+ text: pa.value(t, a.value.style.chart.zoom.timeFormat),
697
697
  absoluteIndex: t
698
- }))), cl = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
699
- text: ga.value(t, a.value.style.chart.tooltip.timeFormat),
698
+ }))), dl = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
699
+ text: pa.value(t, a.value.style.chart.tooltip.timeFormat),
700
700
  absoluteIndex: t
701
701
  })));
702
- function dl() {
702
+ function hl() {
703
703
  for (let e = u.value.start; e < u.value.end; e += 1)
704
- (u.value.end - u.value.start < a.value.style.chart.grid.x.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === h.value + u.value.start || e === w.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && V(
704
+ (u.value.end - u.value.start < a.value.style.chart.grid.x.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === h.value + u.value.start || e === w.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && Y(
705
705
  v.value,
706
706
  N.value[e] ? N.value[e].text : e + 1,
707
707
  o.value.left + o.value.slot * (e - u.value.start) + o.value.slot / 2,
@@ -714,7 +714,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
714
714
  }
715
715
  );
716
716
  }
717
- function ba() {
717
+ function xa() {
718
718
  C(
719
719
  v.value,
720
720
  [
@@ -728,7 +728,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
728
728
  }
729
729
  );
730
730
  }
731
- function hl() {
731
+ function fl() {
732
732
  E.value && C(
733
733
  v.value,
734
734
  [
@@ -742,26 +742,26 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
742
742
  }
743
743
  );
744
744
  }
745
- function fl() {
746
- I.value.forEach((e, l) => {
745
+ function yl() {
746
+ T.value.forEach((e, l) => {
747
747
  for (let t = 0; t < e.coordinatesLine.length; t += 1)
748
- Fe(
748
+ Re(
749
749
  v.value,
750
750
  [
751
751
  {
752
- x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / I.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * I.value.length) * l)),
752
+ x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)),
753
753
  y: c.value.stacked ? e.localZero : z.value.zero
754
754
  },
755
755
  {
756
- x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / I.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * I.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : I.value.length),
756
+ x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : T.value.length),
757
757
  y: c.value.stacked ? e.localZero : z.value.zero
758
758
  },
759
759
  {
760
- x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / I.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * I.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : I.value.length),
760
+ x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : T.value.length),
761
761
  y: e.coordinatesLine[t].y
762
762
  },
763
763
  {
764
- x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / I.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * I.value.length) * l)),
764
+ x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)),
765
765
  y: e.coordinatesLine[t].y
766
766
  }
767
767
  ],
@@ -779,11 +779,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
779
779
  },
780
780
  stops: [
781
781
  { offset: 0, color: e.color },
782
- { offset: 1, color: a.value.style.chart.bar.gradient.show ? Xl(e.color, 0.5) : e.color }
782
+ { offset: 1, color: a.value.style.chart.bar.gradient.show ? Vl(e.color, 0.5) : e.color }
783
783
  ]
784
784
  }
785
785
  }
786
- ), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && V(
786
+ ), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Y(
787
787
  v.value,
788
788
  se(
789
789
  a.value.style.chart.dataLabels.formatter,
@@ -796,7 +796,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
796
796
  }),
797
797
  { datapoint: e.coordinatesLine[t], seriesIndex: t }
798
798
  ),
799
- o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / I.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * I.value.length) * l)) + o.value.slot * 0.4 / (c.value.stacked ? 1 : I.value.length),
799
+ o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.4 / (c.value.stacked ? 1 : T.value.length),
800
800
  (e.coordinatesLine[t].value < 0 ? c.value.stacked ? e.localZero : z.value.zero : e.coordinatesLine[t].y) + a.value.style.chart.dataLabels.offsetY,
801
801
  {
802
802
  align: "center",
@@ -808,7 +808,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
808
808
  );
809
809
  });
810
810
  }
811
- function yl(e, l) {
811
+ function ml(e, l) {
812
812
  const t = e.coordinatesLine.map((n, f) => {
813
813
  const x = e.series[f];
814
814
  return x != null && Number.isFinite(n?.y) ? n : null;
@@ -820,11 +820,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
820
820
  i.push(f);
821
821
  else {
822
822
  if (i.length >= 2) {
823
- const x = i[0], T = i[i.length - 1];
823
+ const x = i[0], A = i[i.length - 1];
824
824
  r.push([
825
825
  { x: x.x, y: l },
826
826
  ...i,
827
- { x: T.x, y: l }
827
+ { x: A.x, y: l }
828
828
  ]);
829
829
  } else i.length === 1 && s.push(i[0]);
830
830
  i = [];
@@ -840,7 +840,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
840
840
  } else i.length === 1 && s.push(i[0]);
841
841
  return { polygons: r, singles: s };
842
842
  }
843
- function ml(e) {
843
+ function gl(e) {
844
844
  const l = e.coordinatesLine.map((s, i) => {
845
845
  const n = e.series[i];
846
846
  return n != null && Number.isFinite(s?.y) ? s : null;
@@ -852,9 +852,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
852
852
  }
853
853
  return r.length >= 2 && t.push(r), t;
854
854
  }
855
- function xa(e) {
855
+ function La(e) {
856
856
  if (ze.value) {
857
- const l = ml(e);
857
+ const l = gl(e);
858
858
  for (const t of l)
859
859
  C(v.value, t, {
860
860
  color: e.color,
@@ -866,20 +866,20 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
866
866
  lineWidth: 3
867
867
  });
868
868
  }
869
- function gl(e) {
869
+ function pl(e) {
870
870
  const l = !!ze.value;
871
871
  if (e.useArea) {
872
872
  const t = c.value.stacked ? e.localZero : z.value.zero;
873
873
  if (l) {
874
- const { polygons: r, singles: s } = yl(e, t);
874
+ const { polygons: r, singles: s } = ml(e, t);
875
875
  for (const n of r)
876
- Ea(v.value, n, {
876
+ Na(v.value, n, {
877
877
  fillColor: ke(e.color, a.value.style.chart.area.opacity),
878
878
  strokeColor: "transparent"
879
879
  });
880
880
  const i = m.value / 200 * a.value.style.chart.line.plots.radiusRatio;
881
881
  for (const n of s)
882
- qe(
882
+ Ze(
883
883
  v.value,
884
884
  { x: n.x, y: n.y },
885
885
  i,
@@ -890,7 +890,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
890
890
  );
891
891
  } else {
892
892
  const r = { x: e.coordinatesLine[0].x, y: t }, s = { x: e.coordinatesLine.at(-1).x, y: t };
893
- Ea(
893
+ Na(
894
894
  v.value,
895
895
  [r, ...e.coordinatesLine, s],
896
896
  {
@@ -899,12 +899,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
899
899
  }
900
900
  );
901
901
  }
902
- xa(e);
902
+ La(e);
903
903
  return;
904
904
  }
905
- xa(e);
905
+ La(e);
906
906
  }
907
- function pl() {
907
+ function bl() {
908
908
  y.value.forEach((e, l) => {
909
909
  C(
910
910
  v.value,
@@ -919,9 +919,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
919
919
  );
920
920
  });
921
921
  }
922
- function bl() {
923
- const { left: e, top: l, width: t, height: r } = o.value, s = u.value.start, n = u.value.end - s, f = t / n, x = $.value.start - s, T = $.value.end - s, k = Math.max(0, Math.min(n, x)), _ = Math.max(0, Math.min(n, T));
924
- Fe(
922
+ function xl() {
923
+ const { left: e, top: l, width: t, height: r } = o.value, s = u.value.start, n = u.value.end - s, f = t / n, x = I.value.start - s, A = I.value.end - s, k = Math.max(0, Math.min(n, x)), _ = Math.max(0, Math.min(n, A));
924
+ Re(
925
925
  v.value,
926
926
  [
927
927
  { x: e + k * f, y: l },
@@ -938,11 +938,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
938
938
  );
939
939
  }
940
940
  function Z() {
941
- !X.value || !S.value || !v.value || (sl(), D.value ? ((h.value !== null || w.value !== null) && a.value.style.chart.selector.show && ba(), fl(), c.value.stacked && a.value.style.chart.grid.x.showAxis && pl(), ul.value.forEach((e) => {
942
- (e.type === "line" || !e.type) && gl(e), B.value && (rl(e), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && vl(e));
943
- }), S.value && (we.value = Vl(S.value))) : (we.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(we.value, 0, 0)), (h.value !== null || w.value !== null) && a.value.style.chart.selector.show && ba(), (h.value !== null || w.value !== null) && y.value.forEach((e) => {
941
+ !U.value || !S.value || !v.value || (rl(), D.value ? ((h.value !== null || w.value !== null) && a.value.style.chart.selector.show && xa(), yl(), c.value.stacked && a.value.style.chart.grid.x.showAxis && bl(), sl.value.forEach((e) => {
942
+ (e.type === "line" || !e.type) && pl(e), X.value && (nl(e), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && cl(e));
943
+ }), S.value && (we.value = Zl(S.value))) : (we.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(we.value, 0, 0)), (h.value !== null || w.value !== null) && a.value.style.chart.selector.show && xa(), (h.value !== null || w.value !== null) && y.value.forEach((e) => {
944
944
  const l = h.value ?? w.value, t = e.coordinatesLine[l];
945
- (e.type === "line" || !e.type || e.type === "plot") && t && Number.isFinite(t.x) && Number.isFinite(t.y) && qe(
945
+ (e.type === "line" || !e.type || e.type === "plot") && t && Number.isFinite(t.x) && Number.isFinite(t.y) && Ze(
946
946
  v.value,
947
947
  { x: t.x, y: t.y },
948
948
  m.value / 150 * a.value.style.chart.line.plots.radiusRatio,
@@ -951,34 +951,34 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
951
951
  fillStyle: e.color
952
952
  }
953
953
  );
954
- })), a.value.style.chart.grid.x.timeLabels.show && dl(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && hl(), il(), nl(), a.value.style.chart.zoom.preview.enable && (u.value.start !== $.value.start || u.value.end !== $.value.end) && bl(), D.value = !1);
954
+ })), a.value.style.chart.grid.x.timeLabels.show && hl(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && fl(), vl(), il(), a.value.style.chart.zoom.preview.enable && (u.value.start !== I.value.start || u.value.end !== I.value.end) && xl(), D.value = !1);
955
955
  }
956
- const $e = Gl(() => {
957
- B.value = !0, Me();
958
- }, R.value > 200 ? 10 : 1, !B.value);
956
+ const $e = jl(() => {
957
+ X.value = !0, Me();
958
+ }, O.value > 200 ? 10 : 1, !X.value);
959
959
  function fe(e) {
960
960
  if ([null, void 0].includes(h.value ?? w.value) || !e.coordinatesLine[h.value ?? w.value]) return !1;
961
961
  const { y: l, value: t } = e.coordinatesLine[h.value ?? w.value];
962
962
  return { y: l, value: t };
963
963
  }
964
- function xl(e) {
965
- if (!X.value || !S.value) return;
964
+ function Ll(e) {
965
+ if (!U.value || !S.value) return;
966
966
  const { left: l, top: t } = S.value.getBoundingClientRect(), r = e.clientX - l;
967
967
  if (E.value = (e.clientY - t) * 2, (E.value < o.value.top || E.value > o.value.bottom) && (E.value = null), r * 2 < o.value.left || r * 2 > o.value.right) {
968
968
  ne.value = !1, h.value = null;
969
969
  return;
970
970
  }
971
971
  const s = r * 2 - o.value.left;
972
- if (h.value = Math.floor(s / o.value.slot), ne.value = !0, !B.value) return;
972
+ if (h.value = Math.floor(s / o.value.slot), ne.value = !0, !X.value) return;
973
973
  let i = "";
974
974
  const n = a.value.style.chart.tooltip.customFormat, f = y.value.map((x) => ({
975
975
  shape: x.shape || null,
976
976
  name: x.name,
977
977
  color: x.color,
978
978
  type: x.type || "line",
979
- value: x.series.find((T, k) => k === h.value)
979
+ value: x.series.find((A, k) => k === h.value)
980
980
  }));
981
- Ll({ seriesIndex: h.value, datapoint: f }), Da(n) && Yl(() => n({
981
+ kl({ seriesIndex: h.value, datapoint: f }), Ea(n) && ql(() => n({
982
982
  seriesIndex: h.value,
983
983
  datapoint: f,
984
984
  series: y.value,
@@ -988,59 +988,59 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
988
988
  datapoint: f,
989
989
  series: y.value,
990
990
  config: a.value
991
- }) : (a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[h.value] ? i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? N.value.slice(u.value.start, u.value.end)[h.value]?.text : cl.value[h.value]?.text}</div>` : i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value[h.value + u.value.start]?.text ?? ""}</div>`, i += Qa.value.join(""), Ce.value = i), B.value = !1;
991
+ }) : (a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[h.value] ? i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? N.value.slice(u.value.start, u.value.end)[h.value]?.text : dl.value[h.value]?.text}</div>` : i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value[h.value + u.value.start]?.text ?? ""}</div>`, i += Ka.value.join(""), Ce.value = i), X.value = !1;
992
992
  }
993
- function Ll({ seriesIndex: e, datapoint: l }) {
993
+ function kl({ seriesIndex: e, datapoint: l }) {
994
994
  const t = u.value.start + e;
995
- Ee("selectX", {
995
+ Ne("selectX", {
996
996
  dataset: l,
997
997
  index: t,
998
998
  indexLabel: ""
999
999
  });
1000
1000
  }
1001
- O(() => p.selectedXIndex, (e) => {
1001
+ P(() => p.selectedXIndex, (e) => {
1002
1002
  if ([null, void 0].includes(p.selectedXIndex)) {
1003
1003
  h.value = null;
1004
1004
  return;
1005
1005
  }
1006
1006
  const l = e - u.value.start;
1007
1007
  l < 0 || e >= u.value.end ? h.value = null : h.value = l ?? null;
1008
- }, { immediate: !0 }), O(() => h.value, (e) => {
1008
+ }, { immediate: !0 }), P(() => h.value, (e) => {
1009
1009
  $e();
1010
- }), O(() => u.value, (e) => {
1010
+ }), P(() => u.value, (e) => {
1011
1011
  D.value = !0, Z();
1012
1012
  }, {
1013
1013
  deep: !0
1014
- }), O(() => $.value, (e) => {
1014
+ }), P(() => I.value, (e) => {
1015
1015
  Z();
1016
- }, { deep: !0 }), O(() => c.value.showDataLabels, (e) => {
1016
+ }, { deep: !0 }), P(() => c.value.showDataLabels, (e) => {
1017
1017
  D.value = !0, Z();
1018
- }), O(() => E.value, (e) => {
1018
+ }), P(() => E.value, (e) => {
1019
1019
  e && Z();
1020
- }), O(() => c.value.stacked, (e) => {
1021
- D.value = !0, B.value = !0, $e();
1020
+ }), P(() => c.value.stacked, (e) => {
1021
+ D.value = !0, X.value = !0, $e();
1022
1022
  });
1023
- function kl() {
1023
+ function Cl() {
1024
1024
  ne.value = !1, h.value = null, Ce.value = "", E.value = null, Z();
1025
1025
  }
1026
1026
  const j = Ye(null), oe = Ye(null), ue = Ye(null);
1027
- Ta(() => {
1028
- la.value = !0, La();
1027
+ Aa(() => {
1028
+ ta.value = !0, ka();
1029
1029
  });
1030
- function La() {
1031
- if (Hl(p.dataset) && Ga.value && Bl({ componentName: "VueUiXyCanvas", type: "dataset" }), be(() => {
1032
- S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), v.value && X.value && (D.value = !0, B.value = !0, Me());
1030
+ function ka() {
1031
+ if (Bl(p.dataset) && qa.value && Wl({ componentName: "VueUiXyCanvas", type: "dataset" }), be(() => {
1032
+ S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), v.value && U.value && (D.value = !0, X.value = !0, Me());
1033
1033
  }), a.value.responsive) {
1034
- const e = ql(() => {
1035
- const { width: l, height: t } = Zl({
1034
+ const e = Jl(() => {
1035
+ const { width: l, height: t } = Ql({
1036
1036
  chart: H.value,
1037
- title: a.value.style.chart.title.text ? Ke.value : null,
1038
- legend: a.value.style.chart.legend.show ? ea.value : null,
1039
- slicer: a.value.style.chart.zoom.show && R.value > 6 ? q.value?.$el : null,
1040
- source: aa.value
1037
+ title: a.value.style.chart.title.text ? ea.value : null,
1038
+ legend: a.value.style.chart.legend.show ? aa.value : null,
1039
+ slicer: a.value.style.chart.zoom.show && O.value > 6 ? q.value?.$el : null,
1040
+ source: la.value
1041
1041
  });
1042
1042
  requestAnimationFrame(() => {
1043
- sa.value = `${l} / ${t}`;
1043
+ ra.value = `${l} / ${t}`;
1044
1044
  });
1045
1045
  });
1046
1046
  j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(e), oe.value = H.value.parentNode, j.value.observe(oe.value);
@@ -1050,36 +1050,50 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1050
1050
  l.contentBoxSize && le.value && (D.value = !0, $e());
1051
1051
  }), ue.value.observe(le.value), he();
1052
1052
  }
1053
- Aa(() => {
1053
+ Fa(() => {
1054
1054
  ue.value && ue.value.disconnect(), j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect());
1055
1055
  });
1056
- function ka(e) {
1057
- Ee("selectLegend", y.value.find((l) => l.absoluteIndex === e)), A.value.includes(e) ? A.value = A.value.filter((l) => l !== e) : A.value.push(e), D.value = !0, $e();
1056
+ function Ie(e) {
1057
+ Ne("selectLegend", y.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), D.value = !0, $e();
1058
+ }
1059
+ function Ca(e) {
1060
+ if (!F.value.length)
1061
+ return a.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null;
1062
+ const l = F.value.find((t) => t.name === e);
1063
+ return l || (a.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null);
1064
+ }
1065
+ function wl(e) {
1066
+ const l = Ca(e);
1067
+ l !== null && $.value.includes(l.absoluteIndex) && Ie(l.absoluteIndex);
1068
+ }
1069
+ function Sl(e) {
1070
+ const l = Ca(e);
1071
+ l !== null && ($.value.includes(l.absoluteIndex) || Ie(l.absoluteIndex));
1058
1072
  }
1059
- const Ca = g(() => P.value.map((e, l) => ({
1073
+ const wa = g(() => F.value.map((e, l) => ({
1060
1074
  ...e,
1061
1075
  name: e.name,
1062
- color: Pa(e.color) || da.value[l] || ae[l] || ae[l % ae.length],
1076
+ color: Da(e.color) || ha.value[l] || ae[l] || ae[l % ae.length],
1063
1077
  shape: e.shape || "circle",
1064
1078
  prefix: e.prefix || "",
1065
1079
  suffix: e.suffix || "",
1066
1080
  rounding: e.rounding || 0
1067
1081
  })).map((e) => ({
1068
1082
  ...e,
1069
- opacity: A.value.includes(e.absoluteIndex) ? 0.5 : 1,
1070
- segregate: () => ka(e.absoluteIndex),
1071
- isSegregated: A.value.includes(e.absoluteIndex)
1072
- }))), Cl = g(() => ({
1083
+ opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
1084
+ segregate: () => Ie(e.absoluteIndex),
1085
+ isSegregated: $.value.includes(e.absoluteIndex)
1086
+ }))), zl = g(() => ({
1073
1087
  cy: "donut-div-legend",
1074
1088
  backgroundColor: a.value.style.chart.legend.backgroundColor,
1075
1089
  color: a.value.style.chart.legend.color,
1076
1090
  fontSize: a.value.style.chart.legend.fontSize,
1077
1091
  paddingBottom: 12,
1078
1092
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
1079
- })), Ie = g(() => {
1093
+ })), Te = g(() => {
1080
1094
  const e = [""].concat(y.value.map((s) => s.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>');
1081
1095
  let l = [];
1082
- for (let s = 0; s < R.value; s += 1) {
1096
+ for (let s = 0; s < O.value; s += 1) {
1083
1097
  const i = y.value.map((n) => n.series[s] ?? 0).reduce((n, f) => n + f, 0);
1084
1098
  l.push([a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[s] ? N.value.slice(u.value.start, u.value.end)[s].text : s + 1].concat(y.value.map((n) => (n.series[s] ?? 0).toFixed(a.value.table.rounding))).concat((i ?? 0).toFixed(a.value.table.rounding)));
1085
1099
  }
@@ -1097,7 +1111,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1097
1111
  breakpoint: a.value.table.responsiveBreakpoint
1098
1112
  }, r = [a.value.table.columnNames.period].concat(y.value.map((s) => s.name)).concat(a.value.table.columnNames.total);
1099
1113
  return { head: e, body: l.slice(0, u.value.end - u.value.start), config: t, colNames: r };
1100
- }), wa = g(() => {
1114
+ }), Sa = g(() => {
1101
1115
  if (y.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1102
1116
  const e = y.value.map((t) => ({
1103
1117
  label: t.name,
@@ -1112,32 +1126,32 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1112
1126
  }
1113
1127
  return { head: e, body: l };
1114
1128
  });
1115
- function Ue(e = null) {
1116
- const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...wa.value.head.map((n) => n.label)], r = wa.value.body, s = l.concat([t]).concat(r), i = Ul(s);
1117
- e ? e(i) : Wl({ csvContent: i, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
1129
+ function We(e = null) {
1130
+ const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Sa.value.head.map((n) => n.label)], r = Sa.value.body, s = l.concat([t]).concat(r), i = Yl(s);
1131
+ e ? e(i) : Gl({ csvContent: i, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
1118
1132
  }
1119
- function wl() {
1133
+ function Ml() {
1120
1134
  return y.value;
1121
1135
  }
1122
- function Sa() {
1136
+ function za() {
1123
1137
  c.value.showTable = !c.value.showTable;
1124
1138
  }
1125
- function za() {
1139
+ function Ma() {
1126
1140
  c.value.showDataLabels = !c.value.showDataLabels;
1127
1141
  }
1128
- function Ma() {
1142
+ function $a() {
1129
1143
  c.value.stacked = !c.value.stacked;
1130
1144
  }
1131
- function $a() {
1145
+ function Ia() {
1132
1146
  c.value.showTooltip = !c.value.showTooltip;
1133
1147
  }
1134
- const Te = d(!1);
1135
- function We() {
1136
- Te.value = !Te.value;
1148
+ const Ae = d(!1);
1149
+ function Ve() {
1150
+ Ae.value = !Ae.value;
1137
1151
  }
1138
- async function Sl({ scale: e = 2 } = {}) {
1152
+ async function $l({ scale: e = 2 } = {}) {
1139
1153
  if (!H.value) return;
1140
- const { width: l, height: t } = H.value.getBoundingClientRect(), r = l / t, { imageUri: s, base64: i } = await ut({ domElement: H.value, base64: !0, img: !0, scale: e });
1154
+ const { width: l, height: t } = H.value.getBoundingClientRect(), r = l / t, { imageUri: s, base64: i } = await nt({ domElement: H.value, base64: !0, img: !0, scale: e });
1141
1155
  return {
1142
1156
  imageUri: s,
1143
1157
  base64: i,
@@ -1150,7 +1164,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1150
1164
  const ye = g(() => {
1151
1165
  const e = a.value.table.useDialog && !a.value.table.show, l = c.value.showTable;
1152
1166
  return {
1153
- component: e ? Wa : vt,
1167
+ component: e ? Va : ht,
1154
1168
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? `: ${a.value.style.chart.title.subtitle.text}` : ""}`,
1155
1169
  props: e ? {
1156
1170
  backgroundColor: a.value.table.th.backgroundColor,
@@ -1177,41 +1191,43 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1177
1191
  }
1178
1192
  };
1179
1193
  });
1180
- O(() => c.value.showTable, (e) => {
1194
+ P(() => c.value.showTable, (e) => {
1181
1195
  a.value.table.show || (e && a.value.table.useDialog && ve.value ? ve.value.open() : "close" in ve.value && ve.value.close());
1182
1196
  });
1183
- function Ia() {
1184
- c.value.showTable = !1, De.value && De.value.setTableIconState(!1);
1197
+ function Ta() {
1198
+ c.value.showTable = !1, Ee.value && Ee.value.setTableIconState(!1);
1185
1199
  }
1186
- return Na({
1187
- getData: wl,
1188
- getImage: Sl,
1189
- generateCsv: Ue,
1190
- generatePdf: ia,
1191
- generateImage: va,
1192
- toggleTable: Sa,
1193
- toggleLabels: za,
1194
- toggleStack: Ma,
1195
- toggleTooltip: $a,
1196
- toggleAnnotator: We,
1197
- toggleFullscreen: ca
1198
- }), (e, l) => (F(), Ae("div", {
1200
+ return _a({
1201
+ getData: Ml,
1202
+ getImage: $l,
1203
+ generateCsv: We,
1204
+ generatePdf: va,
1205
+ generateImage: ca,
1206
+ hideSeries: Sl,
1207
+ showSeries: wl,
1208
+ toggleTable: za,
1209
+ toggleLabels: Ma,
1210
+ toggleStack: $a,
1211
+ toggleTooltip: Ia,
1212
+ toggleAnnotator: Ve,
1213
+ toggleFullscreen: da
1214
+ }), (e, l) => (R(), Fe("div", {
1199
1215
  style: xe(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}; background:${a.value.style.chart.backgroundColor};`),
1200
1216
  ref_key: "xy",
1201
1217
  ref: H,
1202
1218
  id: `xy_canvas_${Q.value}`,
1203
- class: Il(`vue-data-ui-component vue-ui-xy-canvas ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1204
- onMouseenter: qa,
1205
- onMouseleave: Za
1219
+ class: Fl(`vue-data-ui-component vue-ui-xy-canvas ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1220
+ onMouseenter: Za,
1221
+ onMouseleave: ja
1206
1222
  }, [
1207
- a.value.style.chart.title.text ? (F(), Ae("div", {
1223
+ a.value.style.chart.title.text ? (R(), Fe("div", {
1208
1224
  key: 0,
1209
1225
  ref_key: "chartTitle",
1210
- ref: Ke,
1226
+ ref: ea,
1211
1227
  style: xe(`width:100%;background:${a.value.style.chart.backgroundColor};`)
1212
1228
  }, [
1213
- (F(), Y(nt, {
1214
- key: `title_${Re.value}`,
1229
+ (R(), V(ct, {
1230
+ key: `title_${Oe.value}`,
1215
1231
  config: {
1216
1232
  title: {
1217
1233
  cy: "xy-canvas-title",
@@ -1226,22 +1242,22 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1226
1242
  ], 4)) : W("", !0),
1227
1243
  J("div", {
1228
1244
  id: `legend-top-${Q.value}`
1229
- }, null, 8, ft),
1230
- a.value.userOptions.show && X.value && (L(ua) || L(He)) ? (F(), Y(L(Xa), {
1245
+ }, null, 8, gt),
1246
+ a.value.userOptions.show && U.value && (L(sa) || L(Xe)) ? (R(), V(L(Ba), {
1231
1247
  ref_key: "userOptionsRef",
1232
- ref: De,
1233
- key: `user_option_${Qe.value}`,
1248
+ ref: Ee,
1249
+ key: `user_option_${Ke.value}`,
1234
1250
  backgroundColor: a.value.style.chart.backgroundColor,
1235
1251
  color: a.value.style.chart.color,
1236
- isPrinting: L(ra),
1237
- isImaging: L(na),
1252
+ isPrinting: L(na),
1253
+ isImaging: L(ia),
1238
1254
  uid: Q.value,
1239
1255
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
1240
1256
  hasPdf: a.value.userOptions.buttons.pdf,
1241
1257
  hasImg: a.value.userOptions.buttons.img,
1242
1258
  hasXls: a.value.userOptions.buttons.csv,
1243
1259
  hasLabel: a.value.userOptions.buttons.labels,
1244
- hasStack: je.dataset.length > 1 && a.value.userOptions.buttons.stack,
1260
+ hasStack: Je.dataset.length > 1 && a.value.userOptions.buttons.stack,
1245
1261
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
1246
1262
  hasTable: u.value.end - u.value.start <= 730 && a.value.userOptions.buttons.table,
1247
1263
  isFullscreen: ie.value,
@@ -1251,23 +1267,23 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1251
1267
  chartElement: H.value,
1252
1268
  position: a.value.userOptions.position,
1253
1269
  hasAnnotator: a.value.userOptions.buttons.annotator,
1254
- isAnnotation: Te.value,
1270
+ isAnnotation: Ae.value,
1255
1271
  callbacks: a.value.userOptions.callbacks,
1256
1272
  printScale: a.value.userOptions.print.scale,
1257
1273
  tableDialog: a.value.table.useDialog,
1258
- onToggleFullscreen: ca,
1259
- onGeneratePdf: L(ia),
1260
- onGenerateCsv: Ue,
1261
- onGenerateImage: L(va),
1262
- onToggleTable: Sa,
1263
- onToggleLabels: za,
1264
- onToggleStack: Ma,
1265
- onToggleTooltip: $a,
1266
- onToggleAnnotator: We,
1274
+ onToggleFullscreen: da,
1275
+ onGeneratePdf: L(va),
1276
+ onGenerateCsv: We,
1277
+ onGenerateImage: L(ca),
1278
+ onToggleTable: za,
1279
+ onToggleLabels: Ma,
1280
+ onToggleStack: $a,
1281
+ onToggleTooltip: Ia,
1282
+ onToggleAnnotator: Ve,
1267
1283
  style: xe({
1268
- visibility: L(ua) ? L(He) ? "visible" : "hidden" : "visible"
1284
+ visibility: L(sa) ? L(Xe) ? "visible" : "hidden" : "visible"
1269
1285
  })
1270
- }, Fa({ _: 2 }, [
1286
+ }, Ra({ _: 2 }, [
1271
1287
  e.$slots.menuIcon ? {
1272
1288
  name: "menuIcon",
1273
1289
  fn: b(({ isOpen: t, color: r }) => [
@@ -1341,7 +1357,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1341
1357
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
1342
1358
  J("div", {
1343
1359
  class: "vue-ui-xy-canvas",
1344
- style: xe(`position: relative; aspect-ratio: ${sa.value}`),
1360
+ style: xe(`position: relative; aspect-ratio: ${ra.value}`),
1345
1361
  ref_key: "container",
1346
1362
  ref: le
1347
1363
  }, [
@@ -1349,11 +1365,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1349
1365
  ref_key: "canvas",
1350
1366
  ref: S,
1351
1367
  style: { width: "100%", height: "100%" },
1352
- onMousemove: l[0] || (l[0] = (t) => xl(t)),
1353
- onMouseleave: kl
1368
+ onMousemove: l[0] || (l[0] = (t) => Ll(t)),
1369
+ onMouseleave: Cl
1354
1370
  }, null, 544),
1355
- L(Ne) ? (F(), Y(Ql, { key: 0 })) : W("", !0),
1356
- Ra(L(Ha), {
1371
+ L(_e) ? (R(), V(at, { key: 0 })) : W("", !0),
1372
+ Oa(L(Xa), {
1357
1373
  show: c.value.showTooltip && ne.value,
1358
1374
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1359
1375
  color: a.value.style.chart.tooltip.color,
@@ -1367,26 +1383,26 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1367
1383
  content: Ce.value,
1368
1384
  isFullscreen: ie.value,
1369
1385
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1370
- isCustom: L(Da)(a.value.style.chart.tooltip.customFormat),
1386
+ isCustom: L(Ea)(a.value.style.chart.tooltip.customFormat),
1371
1387
  smooth: a.value.style.chart.tooltip.smooth,
1372
1388
  backdropFilter: a.value.style.chart.tooltip.backdropFilter,
1373
1389
  smoothForce: a.value.style.chart.tooltip.smoothForce,
1374
1390
  smoothSnapThreshold: a.value.style.chart.tooltip.smoothSnapThreshold
1375
1391
  }, {
1376
1392
  "tooltip-before": b(() => [
1377
- M(e.$slots, "tooltip-before", K(ee({ ...Je.value })), void 0, !0)
1393
+ M(e.$slots, "tooltip-before", K(ee({ ...Qe.value })), void 0, !0)
1378
1394
  ]),
1379
1395
  "tooltip-after": b(() => [
1380
- M(e.$slots, "tooltip-after", K(ee({ ...Je.value })), void 0, !0)
1396
+ M(e.$slots, "tooltip-after", K(ee({ ...Qe.value })), void 0, !0)
1381
1397
  ]),
1382
1398
  _: 3
1383
1399
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"])
1384
1400
  ], 4),
1385
- a.value.style.chart.zoom.show && R.value > 6 && X.value && ta.value && !L(Ne) ? (F(), Y(ct, {
1401
+ a.value.style.chart.zoom.show && O.value > 6 && U.value && oa.value && !L(_e) ? (R(), V(ft, {
1386
1402
  key: 2,
1387
1403
  ref_key: "chartSlicer",
1388
1404
  ref: q,
1389
- allMinimaps: el.value,
1405
+ allMinimaps: al.value,
1390
1406
  background: a.value.style.chart.zoom.color,
1391
1407
  borderColor: a.value.style.chart.backgroundColor,
1392
1408
  customFormat: a.value.style.chart.zoom.customFormat,
@@ -1399,12 +1415,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1399
1415
  fontSize: a.value.style.chart.zoom.fontSize,
1400
1416
  immediate: !a.value.style.chart.zoom.preview.enable,
1401
1417
  inputColor: a.value.style.chart.zoom.color,
1402
- isPreview: ll.value,
1418
+ isPreview: tl.value,
1403
1419
  labelLeft: a.value.style.chart.grid.x.timeLabels.values[u.value.start] ? N.value[u.value.start].text : "",
1404
1420
  labelRight: a.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] ? N.value[u.value.end - 1].text : "",
1405
- max: R.value,
1421
+ max: O.value,
1406
1422
  min: 0,
1407
- minimap: Ka.value,
1423
+ minimap: el.value,
1408
1424
  minimapCompact: a.value.style.chart.zoom.minimap.compact,
1409
1425
  minimapFrameColor: a.value.style.chart.zoom.minimap.frameColor,
1410
1426
  minimapIndicatorColor: a.value.style.chart.zoom.minimap.indicatorColor,
@@ -1414,11 +1430,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1414
1430
  minimapSelectedColorOpacity: a.value.style.chart.zoom.minimap.selectedColorOpacity,
1415
1431
  minimapSelectedIndex: h.value,
1416
1432
  minimapSelectionRadius: a.value.style.chart.zoom.minimap.selectionRadius,
1417
- preciseLabels: pa.value.length ? pa.value : N.value,
1418
- refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : R.value,
1433
+ preciseLabels: ba.value.length ? ba.value : N.value,
1434
+ refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : O.value,
1419
1435
  refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
1420
1436
  selectColor: a.value.style.chart.zoom.highlightColor,
1421
- selectedSeries: P.value,
1437
+ selectedSeries: F.value,
1422
1438
  smoothMinimap: a.value.style.chart.zoom.minimap.smooth,
1423
1439
  start: u.value.start,
1424
1440
  timeLabels: N.value,
@@ -1428,12 +1444,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1428
1444
  valueEnd: u.value.end,
1429
1445
  valueStart: u.value.start,
1430
1446
  verticalHandles: a.value.style.chart.zoom.minimap.verticalHandles,
1431
- onFutureEnd: l[1] || (l[1] = (t) => fa("end", t)),
1432
- onFutureStart: l[2] || (l[2] = (t) => fa("start", t)),
1447
+ onFutureEnd: l[1] || (l[1] = (t) => ya("end", t)),
1448
+ onFutureStart: l[2] || (l[2] = (t) => ya("start", t)),
1433
1449
  onReset: he,
1434
- onTrapMouse: ja,
1435
- "onUpdate:end": ol,
1436
- "onUpdate:start": tl
1450
+ onTrapMouse: Ja,
1451
+ "onUpdate:end": ul,
1452
+ "onUpdate:start": ol
1437
1453
  }, {
1438
1454
  "reset-action": b(({ reset: t }) => [
1439
1455
  M(e.$slots, "reset-action", K(ee({ reset: t })), void 0, !0)
@@ -1442,66 +1458,66 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1442
1458
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "timeLabels", "usePreciseLabels", "textColor", "useResetSlot", "valueEnd", "valueStart", "verticalHandles"])) : W("", !0),
1443
1459
  J("div", {
1444
1460
  id: `legend-bottom-${Q.value}`
1445
- }, null, 8, yt),
1446
- la.value ? (F(), Y(Tl, {
1461
+ }, null, 8, pt),
1462
+ ta.value ? (R(), V(Rl, {
1447
1463
  key: 3,
1448
1464
  to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Q.value}` : `#legend-bottom-${Q.value}`
1449
1465
  }, [
1450
1466
  J("div", {
1451
1467
  ref_key: "chartLegend",
1452
- ref: ea
1468
+ ref: aa
1453
1469
  }, [
1454
- a.value.style.chart.legend.show && X.value ? (F(), Y(rt, {
1455
- legendSet: Ca.value,
1456
- config: Cl.value,
1457
- key: `legend_${Pe.value}`,
1458
- onClickMarker: l[3] || (l[3] = ({ i: t }) => ka(t))
1470
+ a.value.style.chart.legend.show && U.value ? (R(), V(vt, {
1471
+ legendSet: wa.value,
1472
+ config: zl.value,
1473
+ key: `legend_${De.value}`,
1474
+ onClickMarker: l[3] || (l[3] = ({ i: t }) => Ie(t))
1459
1475
  }, {
1460
1476
  item: b(({ legend: t, index: r }) => [
1461
1477
  J("div", {
1462
1478
  onClick: (s) => t.segregate(),
1463
- style: xe(`opacity:${A.value.includes(r) ? 0.5 : 1}`)
1464
- }, Ve(t.name), 13, mt)
1479
+ style: xe(`opacity:${$.value.includes(r) ? 0.5 : 1}`)
1480
+ }, Ge(t.name), 13, bt)
1465
1481
  ]),
1466
1482
  _: 1
1467
1483
  }, 8, ["legendSet", "config"])) : M(e.$slots, "legend", {
1468
1484
  key: 1,
1469
- legend: Ca.value
1485
+ legend: wa.value
1470
1486
  }, void 0, !0)
1471
1487
  ], 512)
1472
1488
  ], 8, ["to"])) : W("", !0),
1473
- e.$slots.watermark ? (F(), Ae("div", gt, [
1474
- M(e.$slots, "watermark", K(ee({ isPrinting: L(ra) || L(na) })), void 0, !0)
1489
+ e.$slots.watermark ? (R(), Fe("div", xt, [
1490
+ M(e.$slots, "watermark", K(ee({ isPrinting: L(na) || L(ia) })), void 0, !0)
1475
1491
  ])) : W("", !0),
1476
- e.$slots.source ? (F(), Ae("div", {
1492
+ e.$slots.source ? (R(), Fe("div", {
1477
1493
  key: 5,
1478
1494
  ref_key: "source",
1479
- ref: aa,
1495
+ ref: la,
1480
1496
  dir: "auto"
1481
1497
  }, [
1482
1498
  M(e.$slots, "source", {}, void 0, !0)
1483
1499
  ], 512)) : W("", !0),
1484
- X.value && a.value.userOptions.buttons.table ? (F(), Y(Al(ye.value.component), Fl({ key: 6 }, ye.value.props, {
1500
+ U.value && a.value.userOptions.buttons.table ? (R(), V(Ol(ye.value.component), Pl({ key: 6 }, ye.value.props, {
1485
1501
  ref_key: "tableUnit",
1486
1502
  ref: ve,
1487
- onClose: Ia
1488
- }), Fa({
1503
+ onClose: Ta
1504
+ }), Ra({
1489
1505
  content: b(() => [
1490
- (F(), Y(L(Ba), {
1491
- key: `table_${Oe.value}`,
1492
- colNames: Ie.value.colNames,
1493
- head: Ie.value.head,
1494
- body: Ie.value.body,
1495
- config: Ie.value.config,
1506
+ (R(), V(L(Ua), {
1507
+ key: `table_${Pe.value}`,
1508
+ colNames: Te.value.colNames,
1509
+ head: Te.value.head,
1510
+ body: Te.value.body,
1511
+ config: Te.value.config,
1496
1512
  title: a.value.table.useDialog ? "" : ye.value.title,
1497
1513
  withCloseButton: !a.value.table.useDialog,
1498
- onClose: Ia
1514
+ onClose: Ta
1499
1515
  }, {
1500
1516
  th: b(({ th: t }) => [
1501
- J("div", { innerHTML: t }, null, 8, pt)
1517
+ J("div", { innerHTML: t }, null, 8, Lt)
1502
1518
  ]),
1503
1519
  td: b(({ td: t }) => [
1504
- Oa(Ve(t), 1)
1520
+ Pa(Ge(t), 1)
1505
1521
  ]),
1506
1522
  _: 1
1507
1523
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1511,7 +1527,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1511
1527
  a.value.table.useDialog ? {
1512
1528
  name: "title",
1513
1529
  fn: b(() => [
1514
- Oa(Ve(ye.value.title), 1)
1530
+ Pa(Ge(ye.value.title), 1)
1515
1531
  ]),
1516
1532
  key: "0"
1517
1533
  } : void 0,
@@ -1521,9 +1537,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1521
1537
  J("button", {
1522
1538
  tabindex: "0",
1523
1539
  class: "vue-ui-user-options-button",
1524
- onClick: l[4] || (l[4] = (t) => Ue(a.value.userOptions.callbacks.csv))
1540
+ onClick: l[4] || (l[4] = (t) => We(a.value.userOptions.callbacks.csv))
1525
1541
  }, [
1526
- Ra(it, {
1542
+ Oa(dt, {
1527
1543
  name: "excel",
1528
1544
  stroke: ye.value.props.color
1529
1545
  }, null, 8, ["stroke"])
@@ -1532,17 +1548,17 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
1532
1548
  key: "1"
1533
1549
  } : void 0
1534
1550
  ]), 1040)) : W("", !0),
1535
- a.value.userOptions.buttons.annotator && y.value.length ? (F(), Y(L(Ua), {
1551
+ a.value.userOptions.buttons.annotator && y.value.length ? (R(), V(L(Wa), {
1536
1552
  key: 7,
1537
1553
  parent: H.value,
1538
1554
  backgroundColor: a.value.style.chart.backgroundColor,
1539
1555
  color: a.value.style.chart.color,
1540
- active: Te.value,
1541
- onClose: We
1556
+ active: Ae.value,
1557
+ onClose: Ve
1542
1558
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
1543
- ], 46, ht));
1559
+ ], 46, mt));
1544
1560
  }
1545
- }, Et = /* @__PURE__ */ dt(bt, [["__scopeId", "data-v-8c17f74b"]]);
1561
+ }, Ht = /* @__PURE__ */ yt(kt, [["__scopeId", "data-v-ab4f23de"]]);
1546
1562
  export {
1547
- Et as default
1563
+ Ht as default
1548
1564
  };