vue-data-ui 3.1.1 → 3.1.2

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 (93) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
  6. package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
  13. package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
  19. package/dist/pdf-Bdf65IBz.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +25 -2
  22. package/dist/types/vue-data-ui.d.ts +25 -2
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
  39. package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
  76. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
  77. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
  86. package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/pdf-Cjsn5GEE.js +0 -61
  92. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  93. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,22 +1,22 @@
1
- import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as Kl, onMounted as vl, watch as P, nextTick as cl, shallowRef as Ie, onBeforeUnmount as Ql, createElementBlock as de, openBlock as S, unref as p, normalizeClass as ea, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as D, createSlots as dl, withCtx as b, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as hl, Teleport as la, toDisplayString as Me, resolveDynamicComponent as aa, mergeProps as ta, createTextVNode as yl } from "vue";
2
- import { u as oa, c as ua, a as ra, p as Z, b as sa, C as xe, d as na, D as Oe, k as ae, i as te, e as fl, a4 as ia, G as va, ae as ca, o as da, f as ha, y as gl, v as ya, w as fa, z as ga, s as he, l as pa } from "./index-BKQqb9lF.js";
3
- import { d as ba, t as ma, u as xa, c as La, a as pl, l as C, r as Re, b as F, p as bl } from "./useResponsive-DfdjqQps.js";
4
- import { u as ml } from "./useNestedProp-aBOhgs4U.js";
5
- import { u as ka } from "./usePrinter-BzuXiubT.js";
6
- import { u as Ca } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as wa } from "./useChartAccessibility-9icAAmYg.js";
8
- import Sa from "./Legend-8_V5egWW.js";
9
- import za from "./Title-Dz-j6ERs.js";
10
- import { S as $a } from "./Slicer-6w3K8gAc.js";
11
- import Ta from "./vue-ui-accordion-B5QeV3BK.js";
12
- import { u as Ia } from "./useTimeLabels-BGFjWgrv.js";
13
- import Ma from "./img-gBDz7xQQ.js";
14
- import Oa from "./BaseIcon-DLesaZpW.js";
15
- import { _ as Ra } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1
+ import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as ea, onMounted as dl, watch as D, nextTick as hl, shallowRef as Me, onBeforeUnmount as la, createElementBlock as de, openBlock as S, unref as p, normalizeClass as aa, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as P, createSlots as yl, withCtx as b, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as fl, Teleport as ta, toDisplayString as Oe, resolveDynamicComponent as oa, mergeProps as ua, createTextVNode as gl } from "vue";
2
+ import { u as ra, c as sa, a as na, p as Z, b as ia, C as xe, d as va, D as Re, k as ae, i as te, e as pl, a4 as ca, G as da, ae as ha, o as ya, f as fa, y as bl, v as ga, w as pa, z as ba, s as he, l as ma } from "./index-BFqW8WA0.js";
3
+ import { d as xa, t as La, u as ka, c as Ca, a as ml, l as C, r as De, b as F, p as xl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ll } from "./useNestedProp-BSZCnuGl.js";
5
+ import { u as wa } from "./usePrinter-DDIKRiOp.js";
6
+ import { u as Sa } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as za } from "./useChartAccessibility-9icAAmYg.js";
8
+ import $a from "./Legend-DLzeDl3-.js";
9
+ import Ta from "./Title-AGmmsSi_.js";
10
+ import { S as Ia } from "./Slicer-DeWHn8zH.js";
11
+ import Ma from "./vue-ui-accordion-Cv747Pg6.js";
12
+ import { u as Oa } from "./useTimeLabels-BGFjWgrv.js";
13
+ import Ra from "./img-DvuphHeJ.js";
14
+ import Da from "./BaseIcon-BLg8FaQ2.js";
15
+ import { _ as Pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Fa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
17
17
  key: 3,
18
18
  class: "vue-data-ui-watermark"
19
- }, Na = ["innerHTML"], Ha = {
19
+ }, Ya = ["innerHTML"], _a = {
20
20
  __name: "vue-ui-xy-canvas",
21
21
  props: {
22
22
  dataset: {
@@ -33,36 +33,36 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
33
33
  }
34
34
  },
35
35
  emits: ["selectLegend"],
36
- setup(Pe, { expose: xl, emit: Ll }) {
37
- const kl = ee(() => import("./DataTable-BAf4Obr9.js")), Cl = ee(() => import("./NonSvgPenAndPaper-Cq4fHmA0.js")), wl = ee(() => import("./vue-ui-skeleton--twnjS2t.js")), Sl = ee(() => import("./Tooltip-BTGOEC7w.js")), zl = ee(() => import("./UserOptions-CsDlFB0L.js")), $l = ee(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_xy_canvas: Tl } = oa(), g = Pe, B = c(ua()), I = c(null), oe = c(null), n = c(null), y = c(1), E = c(1), ye = c(!1), d = c(null), fe = c(""), De = c(null), $ = c([]), j = c(1), U = c(!0), q = c(!0), Le = c(null), Fe = c(0), Ee = c(0), ue = c(!1), Ae = c(null), Ne = c(null), He = c(null), Ye = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Be = c(!1), re = c(null), ge = L(() => !!g.dataset && g.dataset.length), Il = Ll, Ml = Kl();
38
- vl(() => {
39
- Ml["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
36
+ setup(Pe, { expose: kl, emit: Cl }) {
37
+ const wl = ee(() => import("./DataTable-BRN1-1ob.js")), Sl = ee(() => import("./NonSvgPenAndPaper-Dp53d2re.js")), zl = ee(() => import("./vue-ui-skeleton-CeyaKpZd.js")), $l = ee(() => import("./Tooltip-le0yZk_t.js")), Tl = ee(() => import("./UserOptions-DEFwuQIo.js")), Il = ee(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_xy_canvas: Ml } = ra(), g = Pe, _ = c(sa()), I = c(null), oe = c(null), n = c(null), y = c(1), E = c(1), ye = c(!1), d = c(null), fe = c(""), Fe = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ee = c(0), Ae = c(0), ue = c(!1), Ne = c(null), He = c(null), Ye = c(null), _e = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Be = c(!1), re = c(null), Se = c(null), ge = L(() => !!g.dataset && g.dataset.length), Ol = Cl, Rl = ea();
38
+ dl(() => {
39
+ Rl["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
40
40
  });
41
41
  const l = L({
42
42
  get: () => Xe(),
43
43
  set: (e) => e
44
- }), { userOptionsVisible: Se, setUserOptionsVisibility: Ue, keepUserOptionState: We } = Ca({ config: l.value }), { svgRef: O } = wa({ config: l.value.style.chart.title });
44
+ }), { userOptionsVisible: ze, setUserOptionsVisibility: Ue, keepUserOptionState: We } = Sa({ config: l.value }), { svgRef: O } = za({ config: l.value.style.chart.title });
45
45
  function Xe() {
46
- const e = ml({
46
+ const e = Ll({
47
47
  userConfig: g.config,
48
- defaultConfig: Tl
48
+ defaultConfig: Ml
49
49
  });
50
50
  let a = {};
51
51
  return e.theme ? a = {
52
- ...ml({
53
- userConfig: sa.vue_ui_xy_canvas[e.theme] || g.config,
52
+ ...Ll({
53
+ userConfig: ia.vue_ui_xy_canvas[e.theme] || g.config,
54
54
  defaultConfig: e
55
55
  }),
56
- customPalette: ra[e.theme] || Z
56
+ customPalette: na[e.theme] || Z
57
57
  } : a = e, g.config && xe(g.config, "style.chart.scale.min") ? a.style.chart.scale.min = g.config.style.chart.scale.min : a.style.chart.scale.min = null, g.config && xe(g.config, "style.chart.scale.max") ? a.style.chart.scale.max = g.config.style.chart.scale.max : a.style.chart.scale.max = null, g.config && xe(g.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, g.config && xe(g.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
58
58
  }
59
- P(() => g.config, (e) => {
60
- l.value = Xe(), Se.value = !l.value.userOptions.showOnChartHover, ze(), ke.value += 1, Ce.value += 1, we.value += 1, r.value.showTable = l.value.table.show, r.value.showDataLabels = l.value.style.chart.dataLabels.show, r.value.stacked = l.value.style.chart.stacked, r.value.showTooltip = l.value.style.chart.tooltip.show;
61
- }, { deep: !0 }), P(() => g.dataset, () => {
62
- ze(), ke.value += 1, Ce.value += 1, we.value += 1;
59
+ D(() => g.config, (e) => {
60
+ l.value = Xe(), ze.value = !l.value.userOptions.showOnChartHover, $e(), ke.value += 1, Ce.value += 1, we.value += 1, r.value.showTable = l.value.table.show, r.value.showDataLabels = l.value.style.chart.dataLabels.show, r.value.stacked = l.value.style.chart.stacked, r.value.showTooltip = l.value.style.chart.tooltip.show;
61
+ }, { deep: !0 }), D(() => g.dataset, () => {
62
+ $e(), ke.value += 1, Ce.value += 1, we.value += 1;
63
63
  }, { deep: !0 });
64
- const _e = c(l.value.style.chart.aspectRatio), { isPrinting: Ve, isImaging: Ge, generatePdf: Ze, generateImage: je } = ka({
65
- elementId: `xy_canvas_${B.value}`,
64
+ const Ve = c(l.value.style.chart.aspectRatio), { isPrinting: Ge, isImaging: Ze, generatePdf: je, generateImage: qe } = wa({
65
+ elementId: `xy_canvas_${_.value}`,
66
66
  fileName: l.value.style.chart.title.text || "vue-ui-xy-canvas",
67
67
  options: l.value.userOptions.print
68
68
  }), r = c({
@@ -71,10 +71,10 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
71
71
  stacked: l.value.style.chart.stacked,
72
72
  showTooltip: l.value.style.chart.tooltip.show
73
73
  });
74
- function qe(e) {
75
- ue.value = e, Ee.value += 1;
74
+ function Je(e) {
75
+ ue.value = e, Ae.value += 1;
76
76
  }
77
- const Je = L(() => na(l.value.customPalette)), T = L(() => J.value ? Math.max(...J.value.filter((e, a) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
77
+ const Ke = L(() => va(l.value.customPalette)), T = L(() => J.value ? Math.max(...J.value.filter((e, a) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
78
78
  const e = y.value - y.value * (l.value.style.chart.paddingProportions.left + l.value.style.chart.paddingProportions.right);
79
79
  return {
80
80
  canvasWidth: y.value,
@@ -88,24 +88,24 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
88
88
  slot: e / (u.value.end - u.value.start)
89
89
  };
90
90
  });
91
- function Ke(e, a) {
91
+ function Qe(e, a) {
92
92
  return e / a;
93
93
  }
94
- function Ol({ hasAutoScale: e, series: a, min: o, max: s, scale: i, yOffset: x, individualHeight: v, stackIndex: f = null }) {
95
- return a.map((X, z) => {
96
- const N = i.min < 0 ? Math.abs(i.min) : 0, _ = Ke(X + N, N + i.max);
94
+ function Dl({ hasAutoScale: e, series: a, min: o, max: s, scale: i, yOffset: x, individualHeight: v, stackIndex: f = null }) {
95
+ return a.map((W, z) => {
96
+ const N = i.min < 0 ? Math.abs(i.min) : 0, X = Qe(W + N, N + i.max);
97
97
  let ve, ce;
98
- e && (ve = i.min, ce = Ke(X - ve, i.max - ve));
98
+ e && (ve = i.min, ce = Qe(W - ve, i.max - ve));
99
99
  let R = 0;
100
- return f === null ? R = t.value.bottom - t.value.height * (e ? ce : _) : R = t.value.bottom - x - v * (e ? ce : _), {
100
+ return f === null ? R = t.value.bottom - t.value.height * (e ? ce : X) : R = t.value.bottom - x - v * (e ? ce : X), {
101
101
  x: t.value.left + t.value.slot * z + t.value.slot / 2,
102
102
  y: R,
103
- value: X
103
+ value: W
104
104
  };
105
105
  });
106
106
  }
107
107
  const m = L(() => {
108
- const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), a = l.value.style.chart.scale.max !== null ? l.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), o = Oe(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, l.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)), x = o.ticks.map((v) => ({
108
+ const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), a = l.value.style.chart.scale.max !== null ? l.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), o = Re(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, l.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)), x = o.ticks.map((v) => ({
109
109
  y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
110
110
  x: t.value.left - 8,
111
111
  value: v
@@ -118,7 +118,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
118
118
  yLabels: x,
119
119
  zero: i
120
120
  };
121
- }), Rl = L(() => h.value.map((e) => `
121
+ }), Pl = L(() => h.value.map((e) => `
122
122
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
123
123
  <svg viewBox="0 0 10 10" height="12" width="12">
124
124
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -138,17 +138,17 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
138
138
  </div>
139
139
  `)), J = L(() => g.dataset.map((e, a) => ({
140
140
  ...e,
141
- series: ia({
142
- data: va(e.series),
141
+ series: ca({
142
+ data: da(e.series),
143
143
  threshold: l.value.downsample.threshold
144
144
  }),
145
145
  absoluteIndex: a,
146
- color: fl(e.color || Je.value[a] || Z[a] || Z[a % Z.length])
146
+ color: pl(e.color || Ke.value[a] || Z[a] || Z[a % Z.length])
147
147
  })));
148
- P(T, (e) => {
149
- e && Qe();
148
+ D(T, (e) => {
149
+ e && el();
150
150
  });
151
- const h = L(() => ca(J.value.filter((e, a) => !$.value.includes(e.absoluteIndex))).map((e, a) => ({
151
+ const h = L(() => ha(J.value.filter((e, a) => !$.value.includes(e.absoluteIndex))).map((e, a) => ({
152
152
  ...e,
153
153
  series: e.series.slice(u.value.start, u.value.end)
154
154
  })).map((e, a) => {
@@ -159,15 +159,15 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
159
159
  valueMax: s
160
160
  }, x = e.scaleSteps || l.value.style.chart.scale.ticks;
161
161
  let v;
162
- e.autoScaling ? v = Oe(i.valueMin, i.valueMax, x) : v = Oe(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, x);
163
- const f = r.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, X = r.value.stacked ? t.value.height / l.value.style.chart.stackGap : 0, z = r.value.stacked ? t.value.height * e.stackRatio - X : t.value.height, N = v.min < 0 ? Math.abs(v.min) : 0;
164
- let _;
165
- e.autoScaling && r.value.stacked && s <= 0 ? _ = t.value.bottom - f - z : _ = t.value.bottom - f - z * (N / (v.max + N));
166
- const ve = v.ticks.map((R, Jl) => ({
167
- y: t.value.bottom - f - z * (Jl / (v.ticks.length - 1)),
162
+ e.autoScaling ? v = Re(i.valueMin, i.valueMax, x) : v = Re(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, x);
163
+ const f = r.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = r.value.stacked ? t.value.height / l.value.style.chart.stackGap : 0, z = r.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, N = v.min < 0 ? Math.abs(v.min) : 0;
164
+ let X;
165
+ e.autoScaling && r.value.stacked && s <= 0 ? X = t.value.bottom - f - z : X = t.value.bottom - f - z * (N / (v.max + N));
166
+ const ve = v.ticks.map((R, Ql) => ({
167
+ y: t.value.bottom - f - z * (Ql / (v.ticks.length - 1)),
168
168
  x: t.value.left - 8,
169
169
  value: R
170
- })), ce = Ol({
170
+ })), ce = Dl({
171
171
  hasAutoScale: r.value.stacked && e.autoScaling,
172
172
  series: e.series,
173
173
  min: r.value.stacked ? o : m.value.min,
@@ -183,7 +183,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
183
183
  min: o,
184
184
  max: s,
185
185
  localScale: v,
186
- localZero: _,
186
+ localZero: X,
187
187
  localMin: N,
188
188
  localYLabels: ve,
189
189
  yOffset: f,
@@ -193,27 +193,27 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
193
193
  start: 0,
194
194
  end: T.value
195
195
  });
196
- function Qe() {
197
- ll();
196
+ function el() {
197
+ al();
198
198
  }
199
- const el = c(null);
200
- async function ll() {
201
- await cl(), await cl();
202
- const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = el.value, s = T.value;
203
- u.value = { start: 0, end: s }, (e != null || a != null) && o ? (e != null ? o.setStartValue(e) : (u.value.start = 0, o.setStartValue(0)), a != null ? o.setEndValue(Pl(a + 1)) : (u.value.end = s, o.setEndValue(s))) : (u.value = { start: 0, end: s }, Fe.value += 1);
199
+ const ll = c(null);
200
+ async function al() {
201
+ await hl(), await hl();
202
+ const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = ll.value, s = T.value;
203
+ u.value = { start: 0, end: s }, (e != null || a != null) && o ? (e != null ? o.setStartValue(e) : (u.value.start = 0, o.setStartValue(0)), a != null ? o.setEndValue(Fl(a + 1)) : (u.value.end = s, o.setEndValue(s))) : (u.value = { start: 0, end: s }, Ee.value += 1);
204
204
  }
205
- function Pl(e) {
205
+ function Fl(e) {
206
206
  const a = T.value;
207
207
  return e > a ? a : e < 0 || l.value.style.chart.zoom.startIndex !== null && e < l.value.style.chart.zoom.startIndex ? l.value.style.chart.zoom.startIndex !== null ? l.value.style.chart.zoom.startIndex + 1 : 1 : e;
208
208
  }
209
- const Dl = L(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = L(() => h.value.filter((e) => e.type === "bar"));
210
- function Fl() {
209
+ const El = L(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = L(() => h.value.filter((e) => e.type === "bar"));
210
+ function Al() {
211
211
  if (!O.value)
212
212
  return;
213
213
  const e = oe.value.offsetWidth, a = oe.value.offsetHeight;
214
214
  O.value.width = e * j.value * 2, O.value.height = a * j.value * 2, y.value = e * j.value * 2, E.value = a * j.value * 2, n.value.scale(j.value, j.value), se();
215
215
  }
216
- function El() {
216
+ function Nl() {
217
217
  if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = l.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), r.value.stacked)
218
218
  l.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < l.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
219
219
  for (let a = 0; a < u.value.end - u.value.start + 1; a += 1)
@@ -253,7 +253,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
253
253
  );
254
254
  }), l.value.style.chart.grid.x.horizontalLines.show && (l.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
255
255
  e.localYLabels.forEach((a, o) => {
256
- o < e.localYLabels.length - 1 && Re(
256
+ o < e.localYLabels.length - 1 && De(
257
257
  n.value,
258
258
  [
259
259
  { x: t.value.left, y: a.y },
@@ -352,7 +352,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
352
352
  }
353
353
  );
354
354
  l.value.style.chart.grid.x.horizontalLines.show && (l.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, a) => {
355
- a < m.value.yLabels.length - 1 && Re(
355
+ a < m.value.yLabels.length - 1 && De(
356
356
  n.value,
357
357
  [
358
358
  { x: t.value.left, y: e.y },
@@ -431,10 +431,10 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
431
431
  }
432
432
  );
433
433
  }
434
- function Al(e) {
434
+ function Hl(e) {
435
435
  for (let a = 0; a < e.coordinatesLine.length; a += 1) {
436
436
  const o = (d.value === a ? y.value / 150 : l.value.style.chart.line.plots.show ? y.value / 200 : 0) * l.value.style.chart.line.plots.radiusRatio;
437
- pl(
437
+ ml(
438
438
  n.value,
439
439
  { x: e.coordinatesLine[a].x, y: e.coordinatesLine[a].y },
440
440
  o,
@@ -445,7 +445,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
445
445
  );
446
446
  }
447
447
  }
448
- function Nl() {
448
+ function Yl() {
449
449
  h.value.forEach((e) => {
450
450
  e.showYMarker && ne(e) && F(
451
451
  n.value,
@@ -470,7 +470,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
470
470
  );
471
471
  });
472
472
  }
473
- function Hl() {
473
+ function _l() {
474
474
  l.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
475
475
  e.localYLabels.forEach((a, o) => {
476
476
  F(
@@ -521,7 +521,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
521
521
  );
522
522
  }));
523
523
  }
524
- function Yl(e) {
524
+ function Bl(e) {
525
525
  for (let a = 0; a < e.coordinatesLine.length; a += 1)
526
526
  F(
527
527
  n.value,
@@ -545,18 +545,18 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
545
545
  }
546
546
  );
547
547
  }
548
- const W = L(() => Ia({
548
+ const U = L(() => Oa({
549
549
  values: l.value.style.chart.grid.y.timeLabels.values,
550
550
  maxDatapoints: T.value,
551
551
  formatter: l.value.style.chart.grid.y.timeLabels.datetimeFormatter,
552
552
  start: 0,
553
553
  end: l.value.style.chart.grid.y.timeLabels.values.length
554
554
  }));
555
- function Bl() {
555
+ function Ul() {
556
556
  for (let e = u.value.start; e < u.value.end; e += 1)
557
557
  (u.value.end - u.value.start < l.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= l.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / l.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + u.value.start && l.value.style.chart.grid.y.timeLabels.showMarker)) && F(
558
558
  n.value,
559
- W.value[e] ? W.value[e].text : e + 1,
559
+ U.value[e] ? U.value[e].text : e + 1,
560
560
  t.value.left + t.value.slot * (e - u.value.start) + t.value.slot / 2,
561
561
  t.value.bottom + y.value / l.value.style.chart.grid.y.timeLabels.offsetY,
562
562
  {
@@ -567,7 +567,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
567
567
  }
568
568
  );
569
569
  }
570
- function al() {
570
+ function tl() {
571
571
  C(
572
572
  n.value,
573
573
  [
@@ -581,7 +581,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
581
581
  }
582
582
  );
583
583
  }
584
- function Ul() {
584
+ function Wl() {
585
585
  M.value && C(
586
586
  n.value,
587
587
  [
@@ -595,10 +595,10 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
595
595
  }
596
596
  );
597
597
  }
598
- function Wl() {
598
+ function Xl() {
599
599
  w.value.forEach((e, a) => {
600
600
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
601
- Re(
601
+ De(
602
602
  n.value,
603
603
  [
604
604
  {
@@ -632,7 +632,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
632
632
  },
633
633
  stops: [
634
634
  { offset: 0, color: e.color },
635
- { offset: 1, color: l.value.style.chart.bar.gradient.show ? pa(e.color, 0.5) : e.color }
635
+ { offset: 1, color: l.value.style.chart.bar.gradient.show ? ma(e.color, 0.5) : e.color }
636
636
  ]
637
637
  }
638
638
  }
@@ -661,15 +661,15 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
661
661
  );
662
662
  });
663
663
  }
664
- function Xl(e) {
665
- e.useArea ? r.value.stacked ? bl(
664
+ function Vl(e) {
665
+ e.useArea ? r.value.stacked ? xl(
666
666
  n.value,
667
667
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
668
668
  {
669
669
  fillColor: he(e.color, l.value.style.chart.area.opacity),
670
670
  strokeColor: "transparent"
671
671
  }
672
- ) : bl(
672
+ ) : xl(
673
673
  n.value,
674
674
  [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
675
675
  {
@@ -681,7 +681,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
681
681
  lineWidth: 3
682
682
  });
683
683
  }
684
- function _l() {
684
+ function Gl() {
685
685
  h.value.forEach((e, a) => {
686
686
  C(
687
687
  n.value,
@@ -697,12 +697,12 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
697
697
  });
698
698
  }
699
699
  function se() {
700
- El(), U.value ? (d.value !== null && l.value.style.chart.selector.show && al(), Wl(), r.value.stacked && l.value.style.chart.grid.x.showAxis && _l(), Dl.value.forEach((e) => {
701
- (e.type === "line" || !e.type) && Xl(e), q.value && (Al(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Yl(e));
702
- }), Le.value = La(O.value)) : (Le.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(Le.value, 0, 0)), d.value !== null && l.value.style.chart.selector.show && al(), d.value !== null && h.value.forEach((e) => {
700
+ Nl(), B.value ? (d.value !== null && l.value.style.chart.selector.show && tl(), Xl(), r.value.stacked && l.value.style.chart.grid.x.showAxis && Gl(), El.value.forEach((e) => {
701
+ (e.type === "line" || !e.type) && Vl(e), q.value && (Hl(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Bl(e));
702
+ }), Le.value = Ca(O.value)) : (Le.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(Le.value, 0, 0)), d.value !== null && l.value.style.chart.selector.show && tl(), d.value !== null && h.value.forEach((e) => {
703
703
  if (e.type === "line" || !e.type || e.type === "plot") {
704
704
  if (!e.coordinatesLine[d.value]) return;
705
- e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && pl(
705
+ e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && ml(
706
706
  n.value,
707
707
  {
708
708
  x: e.coordinatesLine[d.value].x,
@@ -715,17 +715,17 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
715
715
  }
716
716
  );
717
717
  }
718
- })), l.value.style.chart.grid.y.timeLabels.show && Bl(), l.value.style.chart.selector.show && l.value.style.chart.selector.showHorizontalSelector && Ul(), Hl(), Nl(), U.value = !1;
718
+ })), l.value.style.chart.grid.y.timeLabels.show && Ul(), l.value.style.chart.selector.show && l.value.style.chart.selector.showHorizontalSelector && Wl(), _l(), Yl(), B.value = !1;
719
719
  }
720
- const pe = ba(() => {
721
- q.value = !0, Fl();
720
+ const pe = xa(() => {
721
+ q.value = !0, Al();
722
722
  }, T.value > 200 ? 10 : 1, !q.value);
723
723
  function ne(e) {
724
724
  if ([null, void 0].includes(d.value) || !e.coordinatesLine[d.value]) return !1;
725
725
  const { y: a, value: o } = e.coordinatesLine[d.value];
726
726
  return { y: a, value: o };
727
727
  }
728
- function Vl(e) {
728
+ function Zl(e) {
729
729
  const { left: a, top: o } = O.value.getBoundingClientRect(), s = e.clientX - a;
730
730
  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) {
731
731
  ye.value = !1, d.value = null;
@@ -735,14 +735,14 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
735
735
  if (d.value = Math.floor(i / t.value.slot), ye.value = !0, !q.value) return;
736
736
  let x = "";
737
737
  const v = l.value.style.chart.tooltip.customFormat;
738
- gl(v) && ga(() => v({
738
+ bl(v) && ba(() => v({
739
739
  seriesIndex: d.value,
740
740
  datapoint: h.value.map((f) => ({
741
741
  shape: f.shape || null,
742
742
  name: f.name,
743
743
  color: f.color,
744
744
  type: f.type || "line",
745
- value: f.series.find((X, z) => z === d.value)
745
+ value: f.series.find((W, z) => z === d.value)
746
746
  })),
747
747
  series: h.value,
748
748
  config: l.value
@@ -753,66 +753,66 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
753
753
  name: f.name,
754
754
  color: f.color,
755
755
  type: f.type || "line",
756
- value: f.series.find((X, z) => z === d.value)
756
+ value: f.series.find((W, z) => z === d.value)
757
757
  })),
758
758
  series: h.value,
759
759
  config: l.value
760
- }) : (l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (x += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.style.chart.tooltip.borderColor}; width:100%">${W.value.slice(u.value.start, u.value.end)[d.value].text}</div>`), x += Rl.value.join(""), fe.value = x), q.value = !1;
760
+ }) : (l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (x += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.style.chart.tooltip.borderColor}; width:100%">${U.value.slice(u.value.start, u.value.end)[d.value].text}</div>`), x += Pl.value.join(""), fe.value = x), q.value = !1;
761
761
  }
762
- P(() => d.value, (e) => {
762
+ D(() => d.value, (e) => {
763
763
  pe();
764
- }), P(() => u.value, (e) => {
765
- U.value = !0, se();
764
+ }), D(() => u.value, (e) => {
765
+ B.value = !0, se();
766
766
  }, {
767
767
  deep: !0
768
- }), P(() => r.value.showDataLabels, (e) => {
769
- U.value = !0, se();
770
- }), P(() => M.value, (e) => {
768
+ }), D(() => r.value.showDataLabels, (e) => {
769
+ B.value = !0, se();
770
+ }), D(() => M.value, (e) => {
771
771
  e && se();
772
- }), P(() => r.value.stacked, (e) => {
773
- U.value = !0, q.value = !0, pe();
772
+ }), D(() => r.value.stacked, (e) => {
773
+ B.value = !0, q.value = !0, pe();
774
774
  });
775
- function Gl() {
775
+ function jl() {
776
776
  ye.value = !1, d.value = null, fe.value = "", M.value = null, se();
777
777
  }
778
- const A = Ie(null), K = Ie(null), Q = Ie(null);
779
- vl(() => {
780
- Be.value = !0, ze();
778
+ const A = Me(null), K = Me(null), Q = Me(null);
779
+ dl(() => {
780
+ Be.value = !0, $e();
781
781
  });
782
- function ze() {
783
- if (da(g.dataset) ? ha({
782
+ function $e() {
783
+ if (ya(g.dataset) ? fa({
784
784
  componentName: "VueUiXyCanvas",
785
785
  type: "dataset"
786
786
  }) : O.value && (n.value = O.value.getContext("2d", { willReadFrequently: !0 })), l.value.responsive) {
787
- const e = ma(() => {
788
- const { width: a, height: o } = xa({
787
+ const e = La(() => {
788
+ const { width: a, height: o } = ka({
789
789
  chart: I.value,
790
- title: l.value.style.chart.title.text ? Ae.value : null,
791
- legend: l.value.style.chart.legend.show ? Ne.value : null,
792
- slicer: l.value.style.chart.zoom.show && T.value > 1 ? He.value : null,
793
- source: Ye.value
790
+ title: l.value.style.chart.title.text ? Ne.value : null,
791
+ legend: l.value.style.chart.legend.show ? He.value : null,
792
+ slicer: l.value.style.chart.zoom.show && T.value > 1 ? Ye.value : null,
793
+ source: _e.value
794
794
  });
795
795
  requestAnimationFrame(() => {
796
- _e.value = `${a} / ${o}`;
796
+ Ve.value = `${a} / ${o}`;
797
797
  });
798
798
  });
799
799
  A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect()), A.value = new ResizeObserver(e), K.value = I.value.parentNode, A.value.observe(K.value);
800
800
  }
801
801
  Q.value && Q.value.disconnect(), Q.value = new ResizeObserver((e) => {
802
802
  for (const a of e)
803
- a.contentBoxSize && oe.value && (U.value = !0, pe());
804
- }), Q.value.observe(oe.value), ll();
803
+ a.contentBoxSize && oe.value && (B.value = !0, pe());
804
+ }), Q.value.observe(oe.value), al();
805
805
  }
806
- Ql(() => {
806
+ la(() => {
807
807
  Q.value && Q.value.disconnect(), A.value && (K.value && A.value.unobserve(K.value), A.value.disconnect());
808
808
  });
809
- function tl(e) {
810
- Il("selectLegend", h.value.find((a) => a.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((a) => a !== e) : $.value.push(e), U.value = !0, pe();
809
+ function ol(e) {
810
+ Ol("selectLegend", h.value.find((a) => a.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((a) => a !== e) : $.value.push(e), B.value = !0, pe();
811
811
  }
812
- const ol = L(() => J.value.map((e, a) => ({
812
+ const ul = L(() => J.value.map((e, a) => ({
813
813
  ...e,
814
814
  name: e.name,
815
- color: fl(e.color) || Je.value[a] || Z[a] || Z[a % Z.length],
815
+ color: pl(e.color) || Ke.value[a] || Z[a] || Z[a % Z.length],
816
816
  shape: e.shape || "circle",
817
817
  prefix: e.prefix || "",
818
818
  suffix: e.suffix || "",
@@ -820,9 +820,9 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
820
820
  })).map((e) => ({
821
821
  ...e,
822
822
  opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
823
- segregate: () => tl(e.absoluteIndex),
823
+ segregate: () => ol(e.absoluteIndex),
824
824
  isSegregated: $.value.includes(e.absoluteIndex)
825
- }))), Zl = L(() => ({
825
+ }))), ql = L(() => ({
826
826
  cy: "donut-div-legend",
827
827
  backgroundColor: l.value.style.chart.legend.backgroundColor,
828
828
  color: l.value.style.chart.legend.color,
@@ -834,7 +834,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
834
834
  let a = [];
835
835
  for (let i = 0; i < T.value; i += 1) {
836
836
  const x = h.value.map((v) => v.series[i] ?? 0).reduce((v, f) => v + f, 0);
837
- a.push([l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[i] ? W.value.slice(u.value.start, u.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(l.value.table.rounding))).concat((x ?? 0).toFixed(l.value.table.rounding)));
837
+ a.push([l.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[i] ? U.value.slice(u.value.start, u.value.end)[i].text : i + 1].concat(h.value.map((v) => (v.series[i] ?? 0).toFixed(l.value.table.rounding))).concat((x ?? 0).toFixed(l.value.table.rounding)));
838
838
  }
839
839
  const o = {
840
840
  th: {
@@ -850,7 +850,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
850
850
  breakpoint: l.value.table.responsiveBreakpoint
851
851
  }, s = [l.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
852
852
  return { head: e, body: a.slice(0, u.value.end - u.value.start), config: o, colNames: s };
853
- }), ul = L(() => {
853
+ }), rl = L(() => {
854
854
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
855
855
  const e = h.value.map((o) => ({
856
856
  label: o.name,
@@ -858,39 +858,39 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
858
858
  type: o.type
859
859
  })), a = [];
860
860
  for (let o = u.value.start; o < u.value.end; o += 1) {
861
- const s = [l.value.style.chart.grid.y.timeLabels.values[o] ? W.value[o].text : o + 1];
861
+ const s = [l.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
862
862
  h.value.forEach((i) => {
863
863
  s.push(Number((i.series[o] || 0).toFixed(l.value.table.rounding)));
864
864
  }), a.push(s);
865
865
  }
866
866
  return { head: e, body: a };
867
867
  });
868
- function $e(e = null) {
869
- const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...ul.value.head.map((v) => v.label)], s = ul.value.body, i = a.concat([o]).concat(s), x = ya(i);
870
- e ? e(x) : fa({ csvContent: x, title: l.value.style.chart.title.text || "vue-ui-xy-canvas" });
868
+ function Te(e = null) {
869
+ const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...rl.value.head.map((v) => v.label)], s = rl.value.body, i = a.concat([o]).concat(s), x = ga(i);
870
+ e ? e(x) : pa({ csvContent: x, title: l.value.style.chart.title.text || "vue-ui-xy-canvas" });
871
871
  }
872
- function jl() {
872
+ function Jl() {
873
873
  return h.value;
874
874
  }
875
- function rl() {
875
+ function sl() {
876
876
  r.value.showTable = !r.value.showTable;
877
877
  }
878
- function sl() {
878
+ function nl() {
879
879
  r.value.showDataLabels = !r.value.showDataLabels;
880
880
  }
881
- function nl() {
881
+ function il() {
882
882
  r.value.stacked = !r.value.stacked;
883
883
  }
884
- function il() {
884
+ function vl() {
885
885
  r.value.showTooltip = !r.value.showTooltip;
886
886
  }
887
887
  const me = c(!1);
888
- function Te() {
888
+ function Ie() {
889
889
  me.value = !me.value;
890
890
  }
891
- async function ql({ scale: e = 2 } = {}) {
891
+ async function Kl({ scale: e = 2 } = {}) {
892
892
  if (!I.value) return;
893
- const { width: a, height: o } = I.value.getBoundingClientRect(), s = a / o, { imageUri: i, base64: x } = await Ma({ domElement: I.value, base64: !0, img: !0, scale: e });
893
+ const { width: a, height: o } = I.value.getBoundingClientRect(), s = a / o, { imageUri: i, base64: x } = await Ra({ domElement: I.value, base64: !0, img: !0, scale: e });
894
894
  return {
895
895
  imageUri: i,
896
896
  base64: x,
@@ -903,7 +903,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
903
903
  const ie = L(() => {
904
904
  const e = l.value.table.useDialog && !l.value.table.show, a = r.value.showTable;
905
905
  return {
906
- component: e ? $l : Ta,
906
+ component: e ? Il : Ma,
907
907
  title: `${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text ? `: ${l.value.style.chart.title.subtitle.text}` : ""}`,
908
908
  props: e ? {
909
909
  backgroundColor: l.value.table.th.backgroundColor,
@@ -930,36 +930,40 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
930
930
  }
931
931
  };
932
932
  });
933
- return P(() => r.value.showTable, (e) => {
933
+ D(() => r.value.showTable, (e) => {
934
934
  l.value.table.show || (e && l.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
935
- }), xl({
936
- getData: jl,
937
- getImage: ql,
938
- generateCsv: $e,
939
- generatePdf: Ze,
940
- generateImage: je,
941
- toggleTable: rl,
942
- toggleLabels: sl,
943
- toggleStack: nl,
944
- toggleTooltip: il,
945
- toggleAnnotator: Te,
946
- toggleFullscreen: qe
935
+ });
936
+ function cl() {
937
+ r.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
938
+ }
939
+ return kl({
940
+ getData: Jl,
941
+ getImage: Kl,
942
+ generateCsv: Te,
943
+ generatePdf: je,
944
+ generateImage: qe,
945
+ toggleTable: sl,
946
+ toggleLabels: nl,
947
+ toggleStack: il,
948
+ toggleTooltip: vl,
949
+ toggleAnnotator: Ie,
950
+ toggleFullscreen: Je
947
951
  }), (e, a) => (S(), de("div", {
948
952
  style: le(`width:100%; position:relative; ${l.value.responsive ? "height: 100%" : ""}`),
949
953
  ref_key: "xy",
950
954
  ref: I,
951
- id: `xy_canvas_${B.value}`,
952
- class: ea(`vue-ui-donut ${ue.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
953
- onMouseenter: a[7] || (a[7] = () => p(Ue)(!0)),
954
- onMouseleave: a[8] || (a[8] = () => p(Ue)(!1))
955
+ id: `xy_canvas_${_.value}`,
956
+ class: aa(`vue-ui-donut ${ue.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
957
+ onMouseenter: a[5] || (a[5] = () => p(Ue)(!0)),
958
+ onMouseleave: a[6] || (a[6] = () => p(Ue)(!1))
955
959
  }, [
956
960
  l.value.style.chart.title.text ? (S(), de("div", {
957
961
  key: 0,
958
962
  ref_key: "chartTitle",
959
- ref: Ae,
963
+ ref: Ne,
960
964
  style: le(`width:100%;background:${l.value.style.chart.backgroundColor};`)
961
965
  }, [
962
- (S(), D(za, {
966
+ (S(), P(Ta, {
963
967
  key: `title_${ke.value}`,
964
968
  config: {
965
969
  title: {
@@ -974,16 +978,17 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
974
978
  }, null, 8, ["config"]))
975
979
  ], 4)) : H("", !0),
976
980
  Y("div", {
977
- id: `legend-top-${B.value}`
978
- }, null, 8, Da),
979
- l.value.userOptions.show && ge.value && (p(We) || p(Se)) ? (S(), D(p(zl), {
980
- ref: "details",
981
- key: `user_option_${Ee.value}`,
981
+ id: `legend-top-${_.value}`
982
+ }, null, 8, Ea),
983
+ l.value.userOptions.show && ge.value && (p(We) || p(ze)) ? (S(), P(p(Tl), {
984
+ ref_key: "userOptionsRef",
985
+ ref: Se,
986
+ key: `user_option_${Ae.value}`,
982
987
  backgroundColor: l.value.style.chart.backgroundColor,
983
988
  color: l.value.style.chart.color,
984
- isPrinting: p(Ve),
985
- isImaging: p(Ge),
986
- uid: B.value,
989
+ isPrinting: p(Ge),
990
+ isImaging: p(Ze),
991
+ uid: _.value,
987
992
  hasTooltip: l.value.userOptions.buttons.tooltip && l.value.style.chart.tooltip.show,
988
993
  hasPdf: l.value.userOptions.buttons.pdf,
989
994
  hasImg: l.value.userOptions.buttons.img,
@@ -1002,19 +1007,20 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1002
1007
  isAnnotation: me.value,
1003
1008
  callbacks: l.value.userOptions.callbacks,
1004
1009
  printScale: l.value.userOptions.print.scale,
1005
- onToggleFullscreen: qe,
1006
- onGeneratePdf: p(Ze),
1007
- onGenerateCsv: $e,
1008
- onGenerateImage: p(je),
1009
- onToggleTable: rl,
1010
- onToggleLabels: sl,
1011
- onToggleStack: nl,
1012
- onToggleTooltip: il,
1013
- onToggleAnnotator: Te,
1010
+ tableDialog: l.value.table.useDialog,
1011
+ onToggleFullscreen: Je,
1012
+ onGeneratePdf: p(je),
1013
+ onGenerateCsv: Te,
1014
+ onGenerateImage: p(qe),
1015
+ onToggleTable: sl,
1016
+ onToggleLabels: nl,
1017
+ onToggleStack: il,
1018
+ onToggleTooltip: vl,
1019
+ onToggleAnnotator: Ie,
1014
1020
  style: le({
1015
- visibility: p(We) ? p(Se) ? "visible" : "hidden" : "visible"
1021
+ visibility: p(We) ? p(ze) ? "visible" : "hidden" : "visible"
1016
1022
  })
1017
- }, dl({ _: 2 }, [
1023
+ }, yl({ _: 2 }, [
1018
1024
  e.$slots.menuIcon ? {
1019
1025
  name: "menuIcon",
1020
1026
  fn: b(({ isOpen: o, color: s }) => [
@@ -1085,10 +1091,10 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1085
1091
  ]),
1086
1092
  key: "9"
1087
1093
  } : void 0
1088
- ]), 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),
1094
+ ]), 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"])) : H("", !0),
1089
1095
  Y("div", {
1090
1096
  class: "vue-ui-xy-canvas",
1091
- style: le(`position: relative; aspect-ratio: ${_e.value}`),
1097
+ style: le(`position: relative; aspect-ratio: ${Ve.value}`),
1092
1098
  ref_key: "container",
1093
1099
  ref: oe
1094
1100
  }, [
@@ -1097,9 +1103,9 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1097
1103
  ref_key: "canvas",
1098
1104
  ref: O,
1099
1105
  style: { width: "100%", height: "100%" },
1100
- onMousemove: a[0] || (a[0] = (o) => Vl(o)),
1101
- onMouseleave: Gl
1102
- }, null, 544)) : (S(), D(p(wl), {
1106
+ onMousemove: a[0] || (a[0] = (o) => Zl(o)),
1107
+ onMouseleave: jl
1108
+ }, null, 544)) : (S(), P(p(zl), {
1103
1109
  key: 1,
1104
1110
  config: {
1105
1111
  type: "line",
@@ -1117,7 +1123,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1117
1123
  }
1118
1124
  }
1119
1125
  }, null, 8, ["config"])),
1120
- hl(p(Sl), {
1126
+ fl(p($l), {
1121
1127
  show: r.value.showTooltip && ye.value,
1122
1128
  backgroundColor: l.value.style.chart.tooltip.backgroundColor,
1123
1129
  color: l.value.style.chart.tooltip.color,
@@ -1131,35 +1137,35 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1131
1137
  content: fe.value,
1132
1138
  isFullscreen: ue.value,
1133
1139
  backgroundOpacity: l.value.style.chart.tooltip.backgroundOpacity,
1134
- isCustom: p(gl)(l.value.style.chart.tooltip.customFormat),
1140
+ isCustom: p(bl)(l.value.style.chart.tooltip.customFormat),
1135
1141
  smooth: l.value.style.chart.tooltip.smooth,
1136
1142
  backdropFilter: l.value.style.chart.tooltip.backdropFilter
1137
1143
  }, {
1138
1144
  "tooltip-before": b(() => [
1139
- k(e.$slots, "tooltip-before", V(G({ ...De.value })), void 0, !0)
1145
+ k(e.$slots, "tooltip-before", V(G({ ...Fe.value })), void 0, !0)
1140
1146
  ]),
1141
1147
  "tooltip-after": b(() => [
1142
- k(e.$slots, "tooltip-after", V(G({ ...De.value })), void 0, !0)
1148
+ k(e.$slots, "tooltip-after", V(G({ ...Fe.value })), void 0, !0)
1143
1149
  ]),
1144
1150
  _: 3
1145
1151
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter"])
1146
1152
  ], 4),
1147
1153
  Y("div", {
1148
1154
  ref_key: "chartSlicer",
1149
- ref: He,
1155
+ ref: Ye,
1150
1156
  style: le(`width:100%;background:${l.value.style.chart.backgroundColor}`),
1151
1157
  "data-dom-to-png-ignore": ""
1152
1158
  }, [
1153
- l.value.style.chart.zoom.show && T.value > 1 ? (S(), D($a, {
1159
+ l.value.style.chart.zoom.show && T.value > 1 ? (S(), P(Ia, {
1154
1160
  ref_key: "slicerComponent",
1155
- ref: el,
1156
- key: `slicer_${Fe.value}`,
1161
+ ref: ll,
1162
+ key: `slicer_${Ee.value}`,
1157
1163
  background: l.value.style.chart.zoom.color,
1158
1164
  borderColor: l.value.style.chart.backgroundColor,
1159
1165
  fontSize: l.value.style.chart.zoom.fontSize,
1160
1166
  useResetSlot: l.value.style.chart.zoom.useResetSlot,
1161
- labelLeft: l.value.style.chart.grid.y.timeLabels.values[u.value.start] ? W.value[u.value.start].text : "",
1162
- labelRight: l.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? W.value[u.value.end - 1].text : "",
1167
+ labelLeft: l.value.style.chart.grid.y.timeLabels.values[u.value.start] ? U.value[u.value.start].text : "",
1168
+ labelRight: l.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? U.value[u.value.end - 1].text : "",
1163
1169
  textColor: l.value.style.chart.color,
1164
1170
  inputColor: l.value.style.chart.zoom.color,
1165
1171
  selectColor: l.value.style.chart.zoom.highlightColor,
@@ -1175,7 +1181,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1175
1181
  refreshEndPoint: l.value.style.chart.zoom.endIndex !== null ? l.value.style.chart.zoom.endIndex + 1 : T.value,
1176
1182
  enableRangeHandles: l.value.style.chart.zoom.enableRangeHandles,
1177
1183
  enableSelectionDrag: l.value.style.chart.zoom.enableSelectionDrag,
1178
- onReset: Qe
1184
+ onReset: el
1179
1185
  }, {
1180
1186
  "reset-action": b(({ reset: o }) => [
1181
1187
  k(e.$slots, "reset-action", V(G({ reset: o })), void 0, !0)
@@ -1184,53 +1190,53 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1184
1190
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : H("", !0)
1185
1191
  ], 4),
1186
1192
  Y("div", {
1187
- id: `legend-bottom-${B.value}`
1188
- }, null, 8, Fa),
1189
- Be.value ? (S(), D(la, {
1193
+ id: `legend-bottom-${_.value}`
1194
+ }, null, 8, Aa),
1195
+ Be.value ? (S(), P(ta, {
1190
1196
  key: 2,
1191
- to: l.value.style.chart.legend.position === "top" ? `#legend-top-${B.value}` : `#legend-bottom-${B.value}`
1197
+ to: l.value.style.chart.legend.position === "top" ? `#legend-top-${_.value}` : `#legend-bottom-${_.value}`
1192
1198
  }, [
1193
1199
  Y("div", {
1194
1200
  ref_key: "chartLegend",
1195
- ref: Ne
1201
+ ref: He
1196
1202
  }, [
1197
- l.value.style.chart.legend.show && ge.value ? (S(), D(Sa, {
1198
- legendSet: ol.value,
1199
- config: Zl.value,
1203
+ l.value.style.chart.legend.show && ge.value ? (S(), P($a, {
1204
+ legendSet: ul.value,
1205
+ config: ql.value,
1200
1206
  key: `legend_${we.value}`,
1201
- onClickMarker: a[3] || (a[3] = ({ i: o }) => tl(o))
1207
+ onClickMarker: a[3] || (a[3] = ({ i: o }) => ol(o))
1202
1208
  }, {
1203
1209
  item: b(({ legend: o, index: s }) => [
1204
1210
  Y("div", {
1205
1211
  onClick: (i) => o.segregate(),
1206
1212
  style: le(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
1207
- }, Me(o.name), 13, Ea)
1213
+ }, Oe(o.name), 13, Na)
1208
1214
  ]),
1209
1215
  _: 1
1210
1216
  }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1211
1217
  key: 1,
1212
- legend: ol.value
1218
+ legend: ul.value
1213
1219
  }, void 0, !0)
1214
1220
  ], 512)
1215
1221
  ], 8, ["to"])) : H("", !0),
1216
- e.$slots.watermark ? (S(), de("div", Aa, [
1217
- k(e.$slots, "watermark", V(G({ isPrinting: p(Ve) || p(Ge) })), void 0, !0)
1222
+ e.$slots.watermark ? (S(), de("div", Ha, [
1223
+ k(e.$slots, "watermark", V(G({ isPrinting: p(Ge) || p(Ze) })), void 0, !0)
1218
1224
  ])) : H("", !0),
1219
1225
  e.$slots.source ? (S(), de("div", {
1220
1226
  key: 4,
1221
1227
  ref_key: "source",
1222
- ref: Ye,
1228
+ ref: _e,
1223
1229
  dir: "auto"
1224
1230
  }, [
1225
1231
  k(e.$slots, "source", {}, void 0, !0)
1226
1232
  ], 512)) : H("", !0),
1227
- ge.value ? (S(), D(aa(ie.value.component), ta({ key: 5 }, ie.value.props, {
1233
+ ge.value ? (S(), P(oa(ie.value.component), ua({ key: 5 }, ie.value.props, {
1228
1234
  ref_key: "tableUnit",
1229
1235
  ref: re,
1230
- onClose: a[6] || (a[6] = (o) => r.value.showTable = !1)
1231
- }), dl({
1236
+ onClose: cl
1237
+ }), yl({
1232
1238
  content: b(() => [
1233
- (S(), D(p(kl), {
1239
+ (S(), P(p(wl), {
1234
1240
  key: `table_${Ce.value}`,
1235
1241
  colNames: be.value.colNames,
1236
1242
  head: be.value.head,
@@ -1238,13 +1244,13 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1238
1244
  config: be.value.config,
1239
1245
  title: l.value.table.useDialog ? "" : ie.value.title,
1240
1246
  withCloseButton: !l.value.table.useDialog,
1241
- onClose: a[5] || (a[5] = (o) => r.value.showTable = !1)
1247
+ onClose: cl
1242
1248
  }, {
1243
1249
  th: b(({ th: o }) => [
1244
- Y("div", { innerHTML: o }, null, 8, Na)
1250
+ Y("div", { innerHTML: o }, null, 8, Ya)
1245
1251
  ]),
1246
1252
  td: b(({ td: o }) => [
1247
- yl(Me(o), 1)
1253
+ gl(Oe(o), 1)
1248
1254
  ]),
1249
1255
  _: 1
1250
1256
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1254,7 +1260,7 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1254
1260
  l.value.table.useDialog ? {
1255
1261
  name: "title",
1256
1262
  fn: b(() => [
1257
- yl(Me(ie.value.title), 1)
1263
+ gl(Oe(ie.value.title), 1)
1258
1264
  ]),
1259
1265
  key: "0"
1260
1266
  } : void 0,
@@ -1264,9 +1270,9 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1264
1270
  Y("button", {
1265
1271
  tabindex: "0",
1266
1272
  class: "vue-ui-user-options-button",
1267
- onClick: a[4] || (a[4] = (o) => $e(l.value.userOptions.callbacks.csv))
1273
+ onClick: a[4] || (a[4] = (o) => Te(l.value.userOptions.callbacks.csv))
1268
1274
  }, [
1269
- hl(Oa, {
1275
+ fl(Da, {
1270
1276
  name: "excel",
1271
1277
  stroke: ie.value.props.color
1272
1278
  }, null, 8, ["stroke"])
@@ -1275,17 +1281,17 @@ const Pa = ["id"], Da = ["id"], Fa = ["id"], Ea = ["onClick"], Aa = {
1275
1281
  key: "1"
1276
1282
  } : void 0
1277
1283
  ]), 1040)) : H("", !0),
1278
- l.value.userOptions.buttons.annotator && h.value.length ? (S(), D(p(Cl), {
1284
+ l.value.userOptions.buttons.annotator && h.value.length ? (S(), P(p(Sl), {
1279
1285
  key: 6,
1280
1286
  parent: I.value,
1281
1287
  backgroundColor: l.value.style.chart.backgroundColor,
1282
1288
  color: l.value.style.chart.color,
1283
1289
  active: me.value,
1284
- onClose: Te
1290
+ onClose: Ie
1285
1291
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
1286
- ], 46, Pa));
1292
+ ], 46, Fa));
1287
1293
  }
1288
- }, lt = /* @__PURE__ */ Ra(Ha, [["__scopeId", "data-v-7eb0be8b"]]);
1294
+ }, tt = /* @__PURE__ */ Pa(_a, [["__scopeId", "data-v-5ac4ec5c"]]);
1289
1295
  export {
1290
- lt as default
1296
+ tt as default
1291
1297
  };