vue-data-ui 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a4 as tl, G as ol, ae as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-B9Ct1B_p.js";
3
- import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-C0gKxLur.js";
5
- import { u as gl } from "./usePrinter-DcZXg1hH.js";
6
- import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-CQsASoei.js";
9
- import xl from "./Title-CntvKJss.js";
10
- import { S as Ll } from "./Slicer-52shR-Vu.js";
11
- import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-Cv4nScI0.js";
13
- import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Sl = ["id"], zl = ["onClick"], $l = {
15
- key: 2,
1
+ import { defineAsyncComponent as ee, ref as d, computed as L, useSlots as Ga, onMounted as sa, watch as N, nextTick as na, shallowRef as ze, onBeforeUnmount as Za, createElementBlock as ie, openBlock as S, unref as p, normalizeClass as ja, normalizeStyle as ae, createCommentVNode as H, createElementVNode as B, createBlock as R, createSlots as qa, withCtx as x, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as Ja, Teleport as Ka, toDisplayString as ia, createTextVNode as Qa } from "vue";
2
+ import { u as el, c as al, a as ll, p as Z, b as tl, C as pe, d as ol, D as $e, k as le, i as te, e as va, a4 as rl, G as ul, ae as sl, o as nl, f as il, y as ca, v as vl, w as cl, z as dl, s as ve, l as hl } from "./index-DrRiscPm.js";
3
+ import { d as yl, t as fl, u as gl, c as pl, a as da, l as C, r as Ie, b as P, p as ha } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ya } from "./useNestedProp-BXhArS-K.js";
5
+ import { u as ml } from "./usePrinter-CZk2ISUm.js";
6
+ import { u as bl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as xl } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Ll from "./Legend-CevCqVZ5.js";
9
+ import kl from "./Title-CINHji0n.js";
10
+ import { S as Cl } from "./Slicer-BBjJsLlJ.js";
11
+ import { u as wl } from "./useTimeLabels-DkzmKfZn.js";
12
+ import Sl from "./img-CBdOMFyn.js";
13
+ import { _ as zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const $l = ["id"], Il = ["id"], Ml = ["id"], Tl = ["onClick"], Ol = {
15
+ key: 3,
16
16
  class: "vue-data-ui-watermark"
17
- }, Il = ["innerHTML"], Ml = {
17
+ }, Rl = ["innerHTML"], Pl = {
18
18
  __name: "vue-ui-xy-canvas",
19
19
  props: {
20
20
  dataset: {
@@ -31,36 +31,36 @@ const Sl = ["id"], zl = ["onClick"], $l = {
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Me, { expose: ya, emit: fa }) {
35
- const ga = K(() => import("./vue-ui-accordion-B31QK9Hj.js")), pa = K(() => import("./DataTable-osx68WLA.js")), ma = K(() => import("./NonSvgPenAndPaper-BWz0WtJG.js")), ba = K(() => import("./vue-ui-skeleton-C_nf6VDZ.js")), xa = K(() => import("./Tooltip-DF8e4iB9.js")), La = K(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
- ua(() => {
37
- wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
34
+ setup(Me, { expose: fa, emit: ga }) {
35
+ const pa = ee(() => import("./vue-ui-accordion-s_m_NJzJ.js")), ma = ee(() => import("./DataTable-CWzb1j8d.js")), ba = ee(() => import("./NonSvgPenAndPaper-DOG92bzo.js")), xa = ee(() => import("./vue-ui-skeleton-BaqJKjqR.js")), La = ee(() => import("./Tooltip-hfdFRoLp.js")), ka = ee(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_xy_canvas: Ca } = el(), g = Me, Y = d(al()), F = d(null), oe = d(null), n = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Te = d(null), $ = d([]), j = d(1), _ = d(!0), q = d(!0), me = d(null), Oe = d(0), Re = d(0), he = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), De = d(!1), ke = L(() => !!g.dataset && g.dataset.length), wa = ga, Sa = Ga();
36
+ sa(() => {
37
+ Sa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
39
39
  const a = L({
40
- get: () => He(),
40
+ get: () => Ye(),
41
41
  set: (e) => e
42
- }), { userOptionsVisible: Ce, setUserOptionsVisibility: De, keepUserOptionState: Ne } = pl({ config: a.value }), { svgRef: T } = ml({ config: a.value.style.chart.title });
43
- function He() {
44
- const e = ha({
42
+ }), { userOptionsVisible: Ce, setUserOptionsVisibility: Ne, keepUserOptionState: He } = bl({ config: a.value }), { svgRef: T } = xl({ config: a.value.style.chart.title });
43
+ function Ye() {
44
+ const e = ya({
45
45
  userConfig: g.config,
46
- defaultConfig: ka
46
+ defaultConfig: Ca
47
47
  });
48
48
  let l = {};
49
49
  return e.theme ? l = {
50
- ...ha({
51
- userConfig: al.vue_ui_xy_canvas[e.theme] || g.config,
50
+ ...ya({
51
+ userConfig: tl.vue_ui_xy_canvas[e.theme] || g.config,
52
52
  defaultConfig: e
53
53
  }),
54
- customPalette: el[e.theme] || V
55
- } : l = e, g.config && ge(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && ge(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && ge(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ge(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
54
+ customPalette: ll[e.theme] || Z
55
+ } : l = e, g.config && pe(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && pe(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && pe(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && pe(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
56
56
  }
57
- D(() => g.config, (e) => {
58
- a.value = He(), Ce.value = !a.value.userOptions.showOnChartHover, we(), be.value += 1, xe.value += 1, Le.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;
59
- }, { deep: !0 }), D(() => g.dataset, () => {
57
+ N(() => g.config, (e) => {
58
+ a.value = Ye(), Ce.value = !a.value.userOptions.showOnChartHover, we(), be.value += 1, xe.value += 1, Le.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;
59
+ }, { deep: !0 }), N(() => g.dataset, () => {
60
60
  we(), be.value += 1, xe.value += 1, Le.value += 1;
61
61
  }, { deep: !0 });
62
- const Ye = d(a.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: We, generatePdf: Xe, generateImage: Be } = gl({
63
- elementId: `xy_canvas_${pe.value}`,
62
+ const _e = d(a.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: We, generatePdf: Xe, generateImage: Be } = ml({
63
+ elementId: `xy_canvas_${Y.value}`,
64
64
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
65
65
  options: a.value.userOptions.print
66
66
  }), u = d({
@@ -69,41 +69,41 @@ const Sl = ["id"], zl = ["onClick"], $l = {
69
69
  stacked: a.value.style.chart.stacked,
70
70
  showTooltip: a.value.style.chart.tooltip.show
71
71
  });
72
- function _e(e) {
73
- de.value = e, Re.value += 1;
72
+ function Ve(e) {
73
+ he.value = e, Re.value += 1;
74
74
  }
75
- const Ve = L(() => ll(a.value.customPalette)), I = L(() => j.value ? Math.max(...j.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
75
+ const Ge = L(() => ol(a.value.customPalette)), I = L(() => J.value ? Math.max(...J.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
76
76
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
77
77
  return {
78
78
  canvasWidth: y.value,
79
- canvasHeight: F.value,
79
+ canvasHeight: E.value,
80
80
  left: y.value * a.value.style.chart.paddingProportions.left,
81
- top: F.value * a.value.style.chart.paddingProportions.top,
81
+ top: E.value * a.value.style.chart.paddingProportions.top,
82
82
  right: y.value - y.value * a.value.style.chart.paddingProportions.right,
83
- bottom: F.value - F.value * a.value.style.chart.paddingProportions.bottom,
83
+ bottom: E.value - E.value * a.value.style.chart.paddingProportions.bottom,
84
84
  width: e,
85
- height: F.value - F.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
85
+ height: E.value - E.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
86
86
  slot: e / (r.value.end - r.value.start)
87
87
  };
88
88
  });
89
- function Ge(e, l) {
89
+ function Ze(e, l) {
90
90
  return e / l;
91
91
  }
92
- function Sa({ hasAutoScale: e, series: l, min: o, max: s, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
93
- return l.map((U, z) => {
94
- const A = i.min < 0 ? Math.abs(i.min) : 0, W = Ge(U + A, A + i.max);
95
- let re, ue;
96
- e && (re = i.min, ue = Ge(U - re, i.max - re));
92
+ function za({ hasAutoScale: e, series: l, min: o, max: s, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
93
+ return l.map((W, z) => {
94
+ const D = i.min < 0 ? Math.abs(i.min) : 0, X = Ze(W + D, D + i.max);
95
+ let se, ne;
96
+ e && (se = i.min, ne = Ze(W - se, i.max - se));
97
97
  let O = 0;
98
- return f === null ? O = t.value.bottom - t.value.height * (e ? ue : W) : O = t.value.bottom - b - v * (e ? ue : W), {
98
+ return f === null ? O = t.value.bottom - t.value.height * (e ? ne : X) : O = t.value.bottom - b - v * (e ? ne : X), {
99
99
  x: t.value.left + t.value.slot * z + t.value.slot / 2,
100
100
  y: O,
101
- value: U
101
+ value: W
102
102
  };
103
103
  });
104
104
  }
105
105
  const m = L(() => {
106
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = $e(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), b = o.ticks.map((v) => ({
106
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = $e(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), b = o.ticks.map((v) => ({
107
107
  y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
108
108
  x: t.value.left - 8,
109
109
  value: v
@@ -116,16 +116,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
116
116
  yLabels: b,
117
117
  zero: i
118
118
  };
119
- }), za = L(() => h.value.map((e) => `
119
+ }), $a = L(() => h.value.map((e) => `
120
120
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
121
121
  <svg viewBox="0 0 10 10" height="12" width="12">
122
122
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
123
123
  </svg>
124
124
  <span>${e.name ? e.name + ": " : ""}</span>
125
- <span>${ee(
125
+ <span>${le(
126
126
  a.value.style.chart.dataLabels.formatter,
127
127
  e.series[c.value],
128
- ae({
128
+ te({
129
129
  p: e.prefix || "",
130
130
  v: e.series[c.value],
131
131
  s: e.suffix || "",
@@ -134,19 +134,19 @@ const Sl = ["id"], zl = ["onClick"], $l = {
134
134
  { datapoint: e, seriesIndex: c.value }
135
135
  )}</span>
136
136
  </div>
137
- `)), j = L(() => g.dataset.map((e, l) => ({
137
+ `)), J = L(() => g.dataset.map((e, l) => ({
138
138
  ...e,
139
- series: tl({
140
- data: ol(e.series),
139
+ series: rl({
140
+ data: ul(e.series),
141
141
  threshold: a.value.downsample.threshold
142
142
  }),
143
143
  absoluteIndex: l,
144
- color: ia(e.color || Ve.value[l] || V[l] || V[l % V.length])
144
+ color: va(e.color || Ge.value[l] || Z[l] || Z[l % Z.length])
145
145
  })));
146
- D(I, (e) => {
147
- e && Ze();
146
+ N(I, (e) => {
147
+ e && je();
148
148
  });
149
- const h = L(() => rl(j.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
149
+ const h = L(() => sl(J.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
150
150
  ...e,
151
151
  series: e.series.slice(r.value.start, r.value.end)
152
152
  })).map((e, l) => {
@@ -158,14 +158,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
158
158
  }, b = e.scaleSteps || a.value.style.chart.scale.ticks;
159
159
  let v;
160
160
  e.autoScaling ? v = $e(i.valueMin, i.valueMax, b) : v = $e(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, b);
161
- const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, U = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, z = u.value.stacked ? t.value.height * e.stackRatio - U : t.value.height, A = v.min < 0 ? Math.abs(v.min) : 0;
162
- let W;
163
- e.autoScaling && u.value.stacked && s <= 0 ? W = t.value.bottom - f - z : W = t.value.bottom - f - z * (A / (v.max + A));
164
- const re = v.ticks.map((O, _a) => ({
165
- y: t.value.bottom - f - z * (_a / (v.ticks.length - 1)),
161
+ const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, z = u.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, D = v.min < 0 ? Math.abs(v.min) : 0;
162
+ let X;
163
+ e.autoScaling && u.value.stacked && s <= 0 ? X = t.value.bottom - f - z : X = t.value.bottom - f - z * (D / (v.max + D));
164
+ const se = v.ticks.map((O, Va) => ({
165
+ y: t.value.bottom - f - z * (Va / (v.ticks.length - 1)),
166
166
  x: t.value.left - 8,
167
167
  value: O
168
- })), ue = Sa({
168
+ })), ne = za({
169
169
  hasAutoScale: u.value.stacked && e.autoScaling,
170
170
  series: e.series,
171
171
  min: u.value.stacked ? o : m.value.min,
@@ -177,13 +177,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
177
177
  });
178
178
  return {
179
179
  ...e,
180
- coordinatesLine: ue,
180
+ coordinatesLine: ne,
181
181
  min: o,
182
182
  max: s,
183
183
  localScale: v,
184
- localZero: W,
185
- localMin: A,
186
- localYLabels: re,
184
+ localZero: X,
185
+ localMin: D,
186
+ localYLabels: se,
187
187
  yOffset: f,
188
188
  individualHeight: z
189
189
  };
@@ -191,27 +191,27 @@ const Sl = ["id"], zl = ["onClick"], $l = {
191
191
  start: 0,
192
192
  end: I.value
193
193
  });
194
- function Ze() {
195
- qe();
194
+ function je() {
195
+ Je();
196
196
  }
197
- const je = d(null);
198
- async function qe() {
199
- await sa(), await sa();
200
- const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o = je.value, s = I.value;
201
- (e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue($a(l + 1))) : (r.value = { start: 0, end: s }, Oe.value += 1);
197
+ const qe = d(null);
198
+ async function Je() {
199
+ await na(), await na();
200
+ const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o = qe.value, s = I.value;
201
+ (e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue(Ia(l + 1))) : (r.value = { start: 0, end: s }, Oe.value += 1);
202
202
  }
203
- function $a(e) {
203
+ function Ia(e) {
204
204
  const l = I.value;
205
205
  return e > l ? l : 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;
206
206
  }
207
- const Ia = L(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = L(() => h.value.filter((e) => e.type === "bar"));
208
- function Ma() {
207
+ const Ma = L(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = L(() => h.value.filter((e) => e.type === "bar"));
208
+ function Ta() {
209
209
  if (!T.value)
210
210
  return;
211
- const e = le.value.offsetWidth, l = le.value.offsetHeight;
212
- T.value.width = e * G.value * 2, T.value.height = l * G.value * 2, y.value = e * G.value * 2, F.value = l * G.value * 2, n.value.scale(G.value, G.value), te();
211
+ const e = oe.value.offsetWidth, l = oe.value.offsetHeight;
212
+ T.value.width = e * j.value * 2, T.value.height = l * j.value * 2, y.value = e * j.value * 2, E.value = l * j.value * 2, n.value.scale(j.value, j.value), re();
213
213
  }
214
- function Ta() {
214
+ function Oa() {
215
215
  if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = a.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
216
216
  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) => {
217
217
  for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
@@ -260,7 +260,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
260
260
  { x: t.value.left, y: e.localYLabels[o + 1].y }
261
261
  ],
262
262
  {
263
- 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),
264
264
  strokeColor: "transparent"
265
265
  }
266
266
  );
@@ -311,7 +311,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
311
311
  }
312
312
  );
313
313
  }), h.value.forEach((e) => {
314
- R(
314
+ P(
315
315
  n.value,
316
316
  e.name,
317
317
  y.value / 35,
@@ -359,7 +359,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
359
359
  { x: t.value.left, y: m.value.yLabels[l + 1].y }
360
360
  ],
361
361
  {
362
- fillColor: l % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
362
+ fillColor: l % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
363
363
  strokeColor: "transparent"
364
364
  }
365
365
  );
@@ -406,7 +406,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
406
406
  }
407
407
  );
408
408
  }
409
- a.value.style.chart.grid.y.axisName && R(
409
+ a.value.style.chart.grid.y.axisName && P(
410
410
  n.value,
411
411
  a.value.style.chart.grid.y.axisName,
412
412
  y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
@@ -417,11 +417,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
417
417
  align: "center",
418
418
  rotation: 90
419
419
  }
420
- ), a.value.style.chart.grid.x.axisName && R(
420
+ ), a.value.style.chart.grid.x.axisName && P(
421
421
  n.value,
422
422
  a.value.style.chart.grid.x.axisName,
423
423
  y.value / 2,
424
- F.value,
424
+ E.value,
425
425
  {
426
426
  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}`,
427
427
  color: a.value.style.chart.color,
@@ -429,10 +429,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
429
429
  }
430
430
  );
431
431
  }
432
- function Oa(e) {
432
+ function Ra(e) {
433
433
  for (let l = 0; l < e.coordinatesLine.length; l += 1) {
434
434
  const o = (c.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
435
- ca(
435
+ da(
436
436
  n.value,
437
437
  { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
438
438
  o,
@@ -443,23 +443,23 @@ const Sl = ["id"], zl = ["onClick"], $l = {
443
443
  );
444
444
  }
445
445
  }
446
- function Ra() {
446
+ function Pa() {
447
447
  h.value.forEach((e) => {
448
- e.showYMarker && oe(e) && R(
448
+ e.showYMarker && ue(e) && P(
449
449
  n.value,
450
- ee(
450
+ le(
451
451
  a.value.style.chart.dataLabels.formatter,
452
- oe(e).value,
453
- ae({
452
+ ue(e).value,
453
+ te({
454
454
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
455
- v: oe(e).value,
455
+ v: ue(e).value,
456
456
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
457
457
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
458
458
  }),
459
- { datapoint: oe(e), seriesIndex: null }
459
+ { datapoint: ue(e), seriesIndex: null }
460
460
  ),
461
461
  t.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
462
- oe(e).y,
462
+ ue(e).y,
463
463
  {
464
464
  align: "right",
465
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}`,
@@ -468,15 +468,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
468
468
  );
469
469
  });
470
470
  }
471
- function Pa() {
471
+ function Fa() {
472
472
  a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
473
473
  e.localYLabels.forEach((l, o) => {
474
- R(
474
+ P(
475
475
  n.value,
476
- ee(
476
+ le(
477
477
  a.value.style.chart.dataLabels.formatter,
478
478
  l.value,
479
- ae({
479
+ te({
480
480
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
481
481
  v: l.value,
482
482
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -495,12 +495,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
495
495
  );
496
496
  });
497
497
  }) : m.value.yLabels.forEach((e, l) => {
498
- R(
498
+ P(
499
499
  n.value,
500
- ee(
500
+ le(
501
501
  a.value.style.chart.dataLabels.formatter,
502
502
  e.value,
503
- ae({
503
+ te({
504
504
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
505
505
  v: e.value,
506
506
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -519,14 +519,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
519
519
  );
520
520
  }));
521
521
  }
522
- function Fa(e) {
522
+ function Ea(e) {
523
523
  for (let l = 0; l < e.coordinatesLine.length; l += 1)
524
- R(
524
+ P(
525
525
  n.value,
526
- ee(
526
+ le(
527
527
  a.value.style.chart.dataLabels.formatter,
528
528
  e.coordinatesLine[l].value,
529
- ae({
529
+ te({
530
530
  p: e.prefix || "",
531
531
  v: e.coordinatesLine[l].value,
532
532
  s: e.suffix || "",
@@ -543,29 +543,29 @@ const Sl = ["id"], zl = ["onClick"], $l = {
543
543
  }
544
544
  );
545
545
  }
546
- const Y = L(() => kl({
546
+ const U = L(() => wl({
547
547
  values: a.value.style.chart.grid.y.timeLabels.values,
548
548
  maxDatapoints: I.value,
549
549
  formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
550
550
  start: 0,
551
551
  end: a.value.style.chart.grid.y.timeLabels.values.length
552
552
  }));
553
- function Ea() {
553
+ function Aa() {
554
554
  for (let e = r.value.start; e < r.value.end; e += 1)
555
- (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 === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
555
+ (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 === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && P(
556
556
  n.value,
557
- Y.value[e] ? Y.value[e].text : e + 1,
557
+ U.value[e] ? U.value[e].text : e + 1,
558
558
  t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
559
559
  t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
560
560
  {
561
561
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
562
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}`,
563
- color: a.value.style.chart.grid.y.timeLabels.showMarker ? ie(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.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 + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
564
564
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
565
565
  }
566
566
  );
567
567
  }
568
- function Je() {
568
+ function Ke() {
569
569
  C(
570
570
  n.value,
571
571
  [
@@ -579,7 +579,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
579
579
  }
580
580
  );
581
581
  }
582
- function Aa() {
582
+ function Da() {
583
583
  M.value && C(
584
584
  n.value,
585
585
  [
@@ -593,7 +593,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
593
593
  }
594
594
  );
595
595
  }
596
- function Da() {
596
+ function Na() {
597
597
  w.value.forEach((e, l) => {
598
598
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
599
599
  Ie(
@@ -630,16 +630,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
630
630
  },
631
631
  stops: [
632
632
  { offset: 0, color: e.color },
633
- { offset: 1, color: a.value.style.chart.bar.gradient.show ? cl(e.color, 0.5) : e.color }
633
+ { offset: 1, color: a.value.style.chart.bar.gradient.show ? hl(e.color, 0.5) : e.color }
634
634
  ]
635
635
  }
636
636
  }
637
- ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
637
+ ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
638
638
  n.value,
639
- ee(
639
+ le(
640
640
  a.value.style.chart.dataLabels.formatter,
641
641
  e.coordinatesLine[o].value,
642
- ae({
642
+ te({
643
643
  p: e.prefix || "",
644
644
  v: e.coordinatesLine[o].value,
645
645
  s: e.suffix || "",
@@ -659,19 +659,19 @@ const Sl = ["id"], zl = ["onClick"], $l = {
659
659
  );
660
660
  });
661
661
  }
662
- function Na(e) {
663
- e.useArea ? u.value.stacked ? da(
662
+ function Ha(e) {
663
+ e.useArea ? u.value.stacked ? ha(
664
664
  n.value,
665
665
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
666
666
  {
667
- fillColor: ie(e.color, a.value.style.chart.area.opacity),
667
+ fillColor: ve(e.color, a.value.style.chart.area.opacity),
668
668
  strokeColor: "transparent"
669
669
  }
670
- ) : da(
670
+ ) : ha(
671
671
  n.value,
672
672
  [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
673
673
  {
674
- fillColor: ie(e.color, a.value.style.chart.area.opacity),
674
+ fillColor: ve(e.color, a.value.style.chart.area.opacity),
675
675
  strokeColor: "transparent"
676
676
  }
677
677
  ) : C(n.value, e.coordinatesLine, {
@@ -679,7 +679,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
679
679
  lineWidth: 3
680
680
  });
681
681
  }
682
- function Ha() {
682
+ function Ya() {
683
683
  h.value.forEach((e, l) => {
684
684
  C(
685
685
  n.value,
@@ -694,13 +694,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
694
694
  );
695
695
  });
696
696
  }
697
- function te() {
698
- Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
699
- (e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
700
- }), me.value = fl(T.value)) : (me.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(me.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
697
+ function re() {
698
+ Oa(), _.value ? (c.value !== null && a.value.style.chart.selector.show && Ke(), Na(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ya(), Ma.value.forEach((e) => {
699
+ (e.type === "line" || !e.type) && Ha(e), q.value && (Ra(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
700
+ }), me.value = pl(T.value)) : (me.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(me.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Ke(), c.value !== null && h.value.forEach((e) => {
701
701
  if (e.type === "line" || !e.type || e.type === "plot") {
702
702
  if (!e.coordinatesLine[c.value]) return;
703
- e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && ca(
703
+ e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && da(
704
704
  n.value,
705
705
  {
706
706
  x: e.coordinatesLine[c.value].x,
@@ -713,104 +713,104 @@ const Sl = ["id"], zl = ["onClick"], $l = {
713
713
  }
714
714
  );
715
715
  }
716
- })), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
716
+ })), a.value.style.chart.grid.y.timeLabels.show && Aa(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Da(), Fa(), Pa(), _.value = !1;
717
717
  }
718
- const he = dl(() => {
719
- Z.value = !0, Ma();
720
- }, I.value > 200 ? 10 : 1, !Z.value);
721
- function oe(e) {
718
+ const ye = yl(() => {
719
+ q.value = !0, Ta();
720
+ }, I.value > 200 ? 10 : 1, !q.value);
721
+ function ue(e) {
722
722
  if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
723
723
  const { y: l, value: o } = e.coordinatesLine[c.value];
724
724
  return { y: l, value: o };
725
725
  }
726
- function Ya(e) {
726
+ function _a(e) {
727
727
  const { left: l, top: o } = T.value.getBoundingClientRect(), s = e.clientX - l;
728
728
  if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), s * 2 < t.value.left || s * 2 > t.value.right) {
729
- ve.value = !1, c.value = null;
729
+ ce.value = !1, c.value = null;
730
730
  return;
731
731
  }
732
732
  const i = s * 2 - t.value.left;
733
- if (c.value = Math.floor(i / t.value.slot), ve.value = !0, !Z.value) return;
733
+ if (c.value = Math.floor(i / t.value.slot), ce.value = !0, !q.value) return;
734
734
  let b = "";
735
735
  const v = a.value.style.chart.tooltip.customFormat;
736
- va(v) && vl(() => v({
736
+ ca(v) && dl(() => v({
737
737
  seriesIndex: c.value,
738
738
  datapoint: h.value.map((f) => ({
739
739
  shape: f.shape || null,
740
740
  name: f.name,
741
741
  color: f.color,
742
742
  type: f.type || "line",
743
- value: f.series.find((U, z) => z === c.value)
743
+ value: f.series.find((W, z) => z === c.value)
744
744
  })),
745
745
  series: h.value,
746
746
  config: a.value
747
- })) ? ce.value = v({
747
+ })) ? de.value = v({
748
748
  seriesIndex: c.value,
749
749
  datapoint: h.value.map((f) => ({
750
750
  shape: f.shape || null,
751
751
  name: f.name,
752
752
  color: f.color,
753
753
  type: f.type || "line",
754
- value: f.series.find((U, z) => z === c.value)
754
+ value: f.series.find((W, z) => z === c.value)
755
755
  })),
756
756
  series: h.value,
757
757
  config: a.value
758
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${Y.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += za.value.join(""), ce.value = b), Z.value = !1;
758
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${U.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += $a.value.join(""), de.value = b), q.value = !1;
759
759
  }
760
- D(() => c.value, (e) => {
761
- he();
762
- }), D(() => r.value, (e) => {
763
- H.value = !0, te();
760
+ N(() => c.value, (e) => {
761
+ ye();
762
+ }), N(() => r.value, (e) => {
763
+ _.value = !0, re();
764
764
  }, {
765
765
  deep: !0
766
- }), D(() => u.value.showDataLabels, (e) => {
767
- H.value = !0, te();
768
- }), D(() => M.value, (e) => {
769
- e && te();
770
- }), D(() => u.value.stacked, (e) => {
771
- H.value = !0, Z.value = !0, he();
766
+ }), N(() => u.value.showDataLabels, (e) => {
767
+ _.value = !0, re();
768
+ }), N(() => M.value, (e) => {
769
+ e && re();
770
+ }), N(() => u.value.stacked, (e) => {
771
+ _.value = !0, q.value = !0, ye();
772
772
  });
773
773
  function Ua() {
774
- ve.value = !1, c.value = null, ce.value = "", M.value = null, te();
774
+ ce.value = !1, c.value = null, de.value = "", M.value = null, re();
775
775
  }
776
- const E = ze(null), q = ze(null), J = ze(null);
777
- ua(() => {
778
- we();
776
+ const A = ze(null), K = ze(null), Q = ze(null);
777
+ sa(() => {
778
+ De.value = !0, we();
779
779
  });
780
780
  function we() {
781
- if (ul(g.dataset) ? sl({
781
+ if (nl(g.dataset) ? il({
782
782
  componentName: "VueUiXyCanvas",
783
783
  type: "dataset"
784
784
  }) : T.value && (n.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
785
- const e = hl(() => {
786
- const { width: l, height: o } = yl({
787
- chart: P.value,
785
+ const e = fl(() => {
786
+ const { width: l, height: o } = gl({
787
+ chart: F.value,
788
788
  title: a.value.style.chart.title.text ? Pe.value : null,
789
789
  legend: a.value.style.chart.legend.show ? Fe.value : null,
790
790
  slicer: a.value.style.chart.zoom.show && I.value > 1 ? Ee.value : null,
791
791
  source: Ae.value
792
792
  });
793
793
  requestAnimationFrame(() => {
794
- Ye.value = `${l} / ${o}`;
794
+ _e.value = `${l} / ${o}`;
795
795
  });
796
796
  });
797
- E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(e), q.value = P.value.parentNode, E.value.observe(q.value);
797
+ A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect()), A.value = new ResizeObserver(e), K.value = F.value.parentNode, A.value.observe(K.value);
798
798
  }
799
- J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
799
+ Q.value && Q.value.disconnect(), Q.value = new ResizeObserver((e) => {
800
800
  for (const l of e)
801
- l.contentBoxSize && le.value && (H.value = !0, he());
802
- }), J.value.observe(le.value), qe();
801
+ l.contentBoxSize && oe.value && (_.value = !0, ye());
802
+ }), Q.value.observe(oe.value), Je();
803
803
  }
804
- Ga(() => {
805
- J.value && J.value.disconnect(), E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
804
+ Za(() => {
805
+ Q.value && Q.value.disconnect(), A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect());
806
806
  });
807
- function Ke(e) {
808
- Ca("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), H.value = !0, he();
807
+ function Qe(e) {
808
+ wa("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), _.value = !0, ye();
809
809
  }
810
- const Qe = L(() => j.value.map((e, l) => ({
810
+ const ea = L(() => J.value.map((e, l) => ({
811
811
  ...e,
812
812
  name: e.name,
813
- color: ia(e.color) || Ve.value[l] || V[l] || V[l % V.length],
813
+ color: va(e.color) || Ge.value[l] || Z[l] || Z[l % Z.length],
814
814
  shape: e.shape || "circle",
815
815
  prefix: e.prefix || "",
816
816
  suffix: e.suffix || "",
@@ -818,7 +818,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
818
818
  })).map((e) => ({
819
819
  ...e,
820
820
  opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
821
- segregate: () => Ke(e.absoluteIndex),
821
+ segregate: () => Qe(e.absoluteIndex),
822
822
  isSegregated: $.value.includes(e.absoluteIndex)
823
823
  }))), Wa = L(() => ({
824
824
  cy: "donut-div-legend",
@@ -827,12 +827,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
827
827
  fontSize: a.value.style.chart.legend.fontSize,
828
828
  paddingBottom: 12,
829
829
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
830
- })), ye = L(() => {
830
+ })), fe = L(() => {
831
831
  const e = [""].concat(h.value.map((i) => i.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>');
832
832
  let l = [];
833
833
  for (let i = 0; i < I.value; i += 1) {
834
834
  const b = h.value.map((v) => v.series[i] ?? 0).reduce((v, f) => v + f, 0);
835
- l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[i] ? Y.value.slice(r.value.start, r.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(a.value.table.rounding))).concat((b ?? 0).toFixed(a.value.table.rounding)));
835
+ l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[i] ? U.value.slice(r.value.start, r.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(a.value.table.rounding))).concat((b ?? 0).toFixed(a.value.table.rounding)));
836
836
  }
837
837
  const o = {
838
838
  th: {
@@ -848,7 +848,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
848
848
  breakpoint: a.value.table.responsiveBreakpoint
849
849
  }, s = [a.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(a.value.table.columnNames.total);
850
850
  return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: s };
851
- }), ea = L(() => {
851
+ }), aa = L(() => {
852
852
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
853
853
  const e = h.value.map((o) => ({
854
854
  label: o.name,
@@ -856,39 +856,39 @@ const Sl = ["id"], zl = ["onClick"], $l = {
856
856
  type: o.type
857
857
  })), l = [];
858
858
  for (let o = r.value.start; o < r.value.end; o += 1) {
859
- const s = [a.value.style.chart.grid.y.timeLabels.values[o] ? Y.value[o].text : o + 1];
859
+ const s = [a.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
860
860
  h.value.forEach((i) => {
861
861
  s.push(Number((i.series[o] || 0).toFixed(a.value.table.rounding)));
862
862
  }), l.push(s);
863
863
  }
864
864
  return { head: e, body: l };
865
865
  });
866
- function aa(e = null) {
867
- const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((v) => v.label)], s = ea.value.body, i = l.concat([o]).concat(s), b = nl(i);
868
- e ? e(b) : il({ csvContent: b, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
866
+ function la(e = null) {
867
+ const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...aa.value.head.map((v) => v.label)], s = aa.value.body, i = l.concat([o]).concat(s), b = vl(i);
868
+ e ? e(b) : cl({ csvContent: b, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
869
869
  }
870
870
  function Xa() {
871
871
  return h.value;
872
872
  }
873
- function la() {
873
+ function ta() {
874
874
  u.value.showTable = !u.value.showTable;
875
875
  }
876
- function ta() {
876
+ function oa() {
877
877
  u.value.showDataLabels = !u.value.showDataLabels;
878
878
  }
879
- function oa() {
879
+ function ra() {
880
880
  u.value.stacked = !u.value.stacked;
881
881
  }
882
- function ra() {
882
+ function ua() {
883
883
  u.value.showTooltip = !u.value.showTooltip;
884
884
  }
885
- const fe = d(!1);
885
+ const ge = d(!1);
886
886
  function Se() {
887
- fe.value = !fe.value;
887
+ ge.value = !ge.value;
888
888
  }
889
889
  async function Ba({ scale: e = 2 } = {}) {
890
- if (!P.value) return;
891
- const { width: l, height: o } = P.value.getBoundingClientRect(), s = l / o, { imageUri: i, base64: b } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: e });
890
+ if (!F.value) return;
891
+ const { width: l, height: o } = F.value.getBoundingClientRect(), s = l / o, { imageUri: i, base64: b } = await Sl({ domElement: F.value, base64: !0, img: !0, scale: e });
892
892
  return {
893
893
  imageUri: i,
894
894
  base64: b,
@@ -898,34 +898,34 @@ const Sl = ["id"], zl = ["onClick"], $l = {
898
898
  aspectRatio: s
899
899
  };
900
900
  }
901
- return ya({
901
+ return fa({
902
902
  getData: Xa,
903
903
  getImage: Ba,
904
- generateCsv: aa,
904
+ generateCsv: la,
905
905
  generatePdf: Xe,
906
906
  generateImage: Be,
907
- toggleTable: la,
908
- toggleLabels: ta,
909
- toggleStack: oa,
910
- toggleTooltip: ra,
907
+ toggleTable: ta,
908
+ toggleLabels: oa,
909
+ toggleStack: ra,
910
+ toggleTooltip: ua,
911
911
  toggleAnnotator: Se,
912
- toggleFullscreen: _e
913
- }), (e, l) => (S(), se("div", {
914
- style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
912
+ toggleFullscreen: Ve
913
+ }), (e, l) => (S(), ie("div", {
914
+ style: ae(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
915
915
  ref_key: "xy",
916
- ref: P,
917
- id: `xy_canvas_${pe.value}`,
918
- class: Za(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
919
- onMouseenter: l[5] || (l[5] = () => p(De)(!0)),
920
- onMouseleave: l[6] || (l[6] = () => p(De)(!1))
916
+ ref: F,
917
+ id: `xy_canvas_${Y.value}`,
918
+ class: ja(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
919
+ onMouseenter: l[5] || (l[5] = () => p(Ne)(!0)),
920
+ onMouseleave: l[6] || (l[6] = () => p(Ne)(!1))
921
921
  }, [
922
- a.value.style.chart.title.text ? (S(), se("div", {
922
+ a.value.style.chart.title.text ? (S(), ie("div", {
923
923
  key: 0,
924
924
  ref_key: "chartTitle",
925
925
  ref: Pe,
926
- style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
926
+ style: ae(`width:100%;background:${a.value.style.chart.backgroundColor};`)
927
927
  }, [
928
- (S(), N(xl, {
928
+ (S(), R(kl, {
929
929
  key: `title_${be.value}`,
930
930
  config: {
931
931
  title: {
@@ -938,15 +938,18 @@ const Sl = ["id"], zl = ["onClick"], $l = {
938
938
  }
939
939
  }
940
940
  }, null, 8, ["config"]))
941
- ], 4)) : X("", !0),
942
- a.value.userOptions.show && ke.value && (p(Ne) || p(Ce)) ? (S(), N(p(La), {
941
+ ], 4)) : H("", !0),
942
+ B("div", {
943
+ id: `legend-top-${Y.value}`
944
+ }, null, 8, Il),
945
+ a.value.userOptions.show && ke.value && (p(He) || p(Ce)) ? (S(), R(p(ka), {
943
946
  ref: "details",
944
947
  key: `user_option_${Re.value}`,
945
948
  backgroundColor: a.value.style.chart.backgroundColor,
946
949
  color: a.value.style.chart.color,
947
950
  isPrinting: p(Ue),
948
951
  isImaging: p(We),
949
- uid: pe.value,
952
+ uid: Y.value,
950
953
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
951
954
  hasPdf: a.value.userOptions.buttons.pdf,
952
955
  hasImg: a.value.userOptions.buttons.img,
@@ -955,33 +958,33 @@ const Sl = ["id"], zl = ["onClick"], $l = {
955
958
  hasStack: Me.dataset.length > 1 && a.value.userOptions.buttons.stack,
956
959
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
957
960
  hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
958
- isFullscreen: de.value,
961
+ isFullscreen: he.value,
959
962
  isTooltip: u.value.showTooltip,
960
963
  isStacked: u.value.stacked,
961
964
  titles: { ...a.value.userOptions.buttonTitles },
962
- chartElement: P.value,
965
+ chartElement: F.value,
963
966
  position: a.value.userOptions.position,
964
967
  hasAnnotator: a.value.userOptions.buttons.annotator,
965
- isAnnotation: fe.value,
968
+ isAnnotation: ge.value,
966
969
  callbacks: a.value.userOptions.callbacks,
967
970
  printScale: a.value.userOptions.print.scale,
968
- onToggleFullscreen: _e,
971
+ onToggleFullscreen: Ve,
969
972
  onGeneratePdf: p(Xe),
970
- onGenerateCsv: aa,
973
+ onGenerateCsv: la,
971
974
  onGenerateImage: p(Be),
972
- onToggleTable: la,
973
- onToggleLabels: ta,
974
- onToggleStack: oa,
975
- onToggleTooltip: ra,
975
+ onToggleTable: ta,
976
+ onToggleLabels: oa,
977
+ onToggleStack: ra,
978
+ onToggleTooltip: ua,
976
979
  onToggleAnnotator: Se,
977
- style: Q({
978
- visibility: p(Ne) ? p(Ce) ? "visible" : "hidden" : "visible"
980
+ style: ae({
981
+ visibility: p(He) ? p(Ce) ? "visible" : "hidden" : "visible"
979
982
  })
980
- }, ja({ _: 2 }, [
983
+ }, qa({ _: 2 }, [
981
984
  e.$slots.menuIcon ? {
982
985
  name: "menuIcon",
983
986
  fn: x(({ isOpen: o, color: s }) => [
984
- k(e.$slots, "menuIcon", B(_({ isOpen: o, color: s })), void 0, !0)
987
+ k(e.$slots, "menuIcon", V(G({ isOpen: o, color: s })), void 0, !0)
985
988
  ]),
986
989
  key: "0"
987
990
  } : void 0,
@@ -1037,32 +1040,32 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1037
1040
  e.$slots.optionFullscreen ? {
1038
1041
  name: "optionFullscreen",
1039
1042
  fn: x(({ toggleFullscreen: o, isFullscreen: s }) => [
1040
- k(e.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
1043
+ k(e.$slots, "optionFullscreen", V(G({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
1041
1044
  ]),
1042
1045
  key: "8"
1043
1046
  } : void 0,
1044
1047
  e.$slots.optionAnnotator ? {
1045
1048
  name: "optionAnnotator",
1046
1049
  fn: x(({ toggleAnnotator: o, isAnnotator: s }) => [
1047
- k(e.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
1050
+ k(e.$slots, "optionAnnotator", V(G({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
1048
1051
  ]),
1049
1052
  key: "9"
1050
1053
  } : void 0
1051
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : X("", !0),
1052
- ne("div", {
1054
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : H("", !0),
1055
+ B("div", {
1053
1056
  class: "vue-ui-xy-canvas",
1054
- style: Q(`position: relative; aspect-ratio: ${Ye.value}`),
1057
+ style: ae(`position: relative; aspect-ratio: ${_e.value}`),
1055
1058
  ref_key: "container",
1056
- ref: le
1059
+ ref: oe
1057
1060
  }, [
1058
- ke.value ? (S(), se("canvas", {
1061
+ ke.value ? (S(), ie("canvas", {
1059
1062
  key: 0,
1060
1063
  ref_key: "canvas",
1061
1064
  ref: T,
1062
1065
  style: { width: "100%", height: "100%" },
1063
- onMousemove: l[0] || (l[0] = (o) => Ya(o)),
1066
+ onMousemove: l[0] || (l[0] = (o) => _a(o)),
1064
1067
  onMouseleave: Ua
1065
- }, null, 544)) : (S(), N(p(ba), {
1068
+ }, null, 544)) : (S(), R(p(xa), {
1066
1069
  key: 1,
1067
1070
  config: {
1068
1071
  type: "line",
@@ -1080,8 +1083,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1080
1083
  }
1081
1084
  }
1082
1085
  }, null, 8, ["config"])),
1083
- qa(p(xa), {
1084
- show: u.value.showTooltip && ve.value,
1086
+ Ja(p(La), {
1087
+ show: u.value.showTooltip && ce.value,
1085
1088
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1086
1089
  color: a.value.style.chart.tooltip.color,
1087
1090
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -1091,38 +1094,38 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1091
1094
  position: a.value.style.chart.tooltip.position,
1092
1095
  offsetY: a.value.style.chart.tooltip.offsetY,
1093
1096
  parent: p(T),
1094
- content: ce.value,
1095
- isFullscreen: de.value,
1097
+ content: de.value,
1098
+ isFullscreen: he.value,
1096
1099
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1097
- isCustom: p(va)(a.value.style.chart.tooltip.customFormat),
1100
+ isCustom: p(ca)(a.value.style.chart.tooltip.customFormat),
1098
1101
  smooth: a.value.style.chart.tooltip.smooth,
1099
1102
  backdropFilter: a.value.style.chart.tooltip.backdropFilter
1100
1103
  }, {
1101
1104
  "tooltip-before": x(() => [
1102
- k(e.$slots, "tooltip-before", B(_({ ...Te.value })), void 0, !0)
1105
+ k(e.$slots, "tooltip-before", V(G({ ...Te.value })), void 0, !0)
1103
1106
  ]),
1104
1107
  "tooltip-after": x(() => [
1105
- k(e.$slots, "tooltip-after", B(_({ ...Te.value })), void 0, !0)
1108
+ k(e.$slots, "tooltip-after", V(G({ ...Te.value })), void 0, !0)
1106
1109
  ]),
1107
1110
  _: 3
1108
1111
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter"])
1109
1112
  ], 4),
1110
- ne("div", {
1113
+ B("div", {
1111
1114
  ref_key: "chartSlicer",
1112
1115
  ref: Ee,
1113
- style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1116
+ style: ae(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1114
1117
  "data-dom-to-png-ignore": ""
1115
1118
  }, [
1116
- a.value.style.chart.zoom.show && I.value > 1 ? (S(), N(Ll, {
1119
+ a.value.style.chart.zoom.show && I.value > 1 ? (S(), R(Cl, {
1117
1120
  ref_key: "slicerComponent",
1118
- ref: je,
1121
+ ref: qe,
1119
1122
  key: `slicer_${Oe.value}`,
1120
1123
  background: a.value.style.chart.zoom.color,
1121
1124
  borderColor: a.value.style.chart.backgroundColor,
1122
1125
  fontSize: a.value.style.chart.zoom.fontSize,
1123
1126
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
1124
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? Y.value[r.value.start].text : "",
1125
- labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? Y.value[r.value.end - 1].text : "",
1127
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? U.value[r.value.start].text : "",
1128
+ labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? U.value[r.value.end - 1].text : "",
1126
1129
  textColor: a.value.style.chart.color,
1127
1130
  inputColor: a.value.style.chart.zoom.color,
1128
1131
  selectColor: a.value.style.chart.zoom.highlightColor,
@@ -1138,49 +1141,57 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1138
1141
  refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
1139
1142
  enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
1140
1143
  enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
1141
- onReset: Ze
1144
+ onReset: je
1142
1145
  }, {
1143
1146
  "reset-action": x(({ reset: o }) => [
1144
- k(e.$slots, "reset-action", B(_({ reset: o })), void 0, !0)
1147
+ k(e.$slots, "reset-action", V(G({ reset: o })), void 0, !0)
1145
1148
  ]),
1146
1149
  _: 3
1147
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : X("", !0)
1150
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : H("", !0)
1148
1151
  ], 4),
1149
- ne("div", {
1150
- ref_key: "chartLegend",
1151
- ref: Fe
1152
+ B("div", {
1153
+ id: `legend-bottom-${Y.value}`
1154
+ }, null, 8, Ml),
1155
+ De.value ? (S(), R(Ka, {
1156
+ key: 2,
1157
+ to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
1152
1158
  }, [
1153
- a.value.style.chart.legend.show && ke.value ? (S(), N(bl, {
1154
- legendSet: Qe.value,
1155
- config: Wa.value,
1156
- key: `legend_${Le.value}`,
1157
- onClickMarker: l[3] || (l[3] = ({ i: o }) => Ke(o))
1158
- }, {
1159
- item: x(({ legend: o, index: s }) => [
1160
- ne("div", {
1161
- onClick: (i) => o.segregate(),
1162
- style: Q(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
1163
- }, na(o.name), 13, zl)
1164
- ]),
1165
- _: 1
1166
- }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1167
- key: 1,
1168
- legend: Qe.value
1169
- }, void 0, !0)
1170
- ], 512),
1171
- e.$slots.watermark ? (S(), se("div", $l, [
1172
- k(e.$slots, "watermark", B(_({ isPrinting: p(Ue) || p(We) })), void 0, !0)
1173
- ])) : X("", !0),
1174
- e.$slots.source ? (S(), se("div", {
1175
- key: 3,
1159
+ B("div", {
1160
+ ref_key: "chartLegend",
1161
+ ref: Fe
1162
+ }, [
1163
+ a.value.style.chart.legend.show && ke.value ? (S(), R(Ll, {
1164
+ legendSet: ea.value,
1165
+ config: Wa.value,
1166
+ key: `legend_${Le.value}`,
1167
+ onClickMarker: l[3] || (l[3] = ({ i: o }) => Qe(o))
1168
+ }, {
1169
+ item: x(({ legend: o, index: s }) => [
1170
+ B("div", {
1171
+ onClick: (i) => o.segregate(),
1172
+ style: ae(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
1173
+ }, ia(o.name), 13, Tl)
1174
+ ]),
1175
+ _: 1
1176
+ }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1177
+ key: 1,
1178
+ legend: ea.value
1179
+ }, void 0, !0)
1180
+ ], 512)
1181
+ ], 8, ["to"])) : H("", !0),
1182
+ e.$slots.watermark ? (S(), ie("div", Ol, [
1183
+ k(e.$slots, "watermark", V(G({ isPrinting: p(Ue) || p(We) })), void 0, !0)
1184
+ ])) : H("", !0),
1185
+ e.$slots.source ? (S(), ie("div", {
1186
+ key: 4,
1176
1187
  ref_key: "source",
1177
1188
  ref: Ae,
1178
1189
  dir: "auto"
1179
1190
  }, [
1180
1191
  k(e.$slots, "source", {}, void 0, !0)
1181
- ], 512)) : X("", !0),
1182
- r.value.end - r.value.start < 200 ? (S(), N(p(ga), {
1183
- key: 4,
1192
+ ], 512)) : H("", !0),
1193
+ r.value.end - r.value.start < 200 ? (S(), R(p(pa), {
1194
+ key: 5,
1184
1195
  hideDetails: "",
1185
1196
  config: {
1186
1197
  open: u.value.showTable,
@@ -1196,37 +1207,37 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1196
1207
  }
1197
1208
  }, {
1198
1209
  content: x(() => [
1199
- (S(), N(p(pa), {
1210
+ (S(), R(p(ma), {
1200
1211
  key: `table_${xe.value}`,
1201
- colNames: ye.value.colNames,
1202
- head: ye.value.head,
1203
- body: ye.value.body,
1204
- config: ye.value.config,
1212
+ colNames: fe.value.colNames,
1213
+ head: fe.value.head,
1214
+ body: fe.value.body,
1215
+ config: fe.value.config,
1205
1216
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1206
1217
  onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1207
1218
  }, {
1208
1219
  th: x(({ th: o }) => [
1209
- ne("div", { innerHTML: o }, null, 8, Il)
1220
+ B("div", { innerHTML: o }, null, 8, Rl)
1210
1221
  ]),
1211
1222
  td: x(({ td: o }) => [
1212
- Ja(na(o), 1)
1223
+ Qa(ia(o), 1)
1213
1224
  ]),
1214
1225
  _: 1
1215
1226
  }, 8, ["colNames", "head", "body", "config", "title"]))
1216
1227
  ]),
1217
1228
  _: 1
1218
- }, 8, ["config"])) : X("", !0),
1219
- a.value.userOptions.buttons.annotator && h.value.length ? (S(), N(p(ma), {
1220
- key: 5,
1221
- parent: P.value,
1229
+ }, 8, ["config"])) : H("", !0),
1230
+ a.value.userOptions.buttons.annotator && h.value.length ? (S(), R(p(ba), {
1231
+ key: 6,
1232
+ parent: F.value,
1222
1233
  backgroundColor: a.value.style.chart.backgroundColor,
1223
1234
  color: a.value.style.chart.color,
1224
- active: fe.value,
1235
+ active: ge.value,
1225
1236
  onClose: Se
1226
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : X("", !0)
1227
- ], 46, Sl));
1237
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
1238
+ ], 46, $l));
1228
1239
  }
1229
- }, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-69531ac6"]]);
1240
+ }, Gl = /* @__PURE__ */ zl(Pl, [["__scopeId", "data-v-da2b809f"]]);
1230
1241
  export {
1231
- Xl as default
1242
+ Gl as default
1232
1243
  };