vue-data-ui 3.16.0 → 3.16.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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  3. package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
  4. package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-C4NWSOC8.js} +1 -1
  5. package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  6. package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-age-pyramid.js +1 -1
  9. package/dist/components/vue-ui-annotator.js +1 -1
  10. package/dist/components/vue-ui-bullet.js +1 -1
  11. package/dist/components/vue-ui-bump.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dag.js +1 -1
  19. package/dist/components/vue-ui-dashboard.js +1 -1
  20. package/dist/components/vue-ui-digits.js +1 -1
  21. package/dist/components/vue-ui-donut-evolution.js +1 -1
  22. package/dist/components/vue-ui-donut.js +1 -1
  23. package/dist/components/vue-ui-dumbbell.js +1 -1
  24. package/dist/components/vue-ui-flow.js +1 -1
  25. package/dist/components/vue-ui-funnel.js +1 -1
  26. package/dist/components/vue-ui-galaxy.js +1 -1
  27. package/dist/components/vue-ui-gauge.js +1 -1
  28. package/dist/components/vue-ui-geo.js +1 -1
  29. package/dist/components/vue-ui-gizmo.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-history-plot.js +1 -1
  32. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  33. package/dist/components/vue-ui-kpi.js +1 -1
  34. package/dist/components/vue-ui-molecule.js +1 -1
  35. package/dist/components/vue-ui-mood-radar.js +1 -1
  36. package/dist/components/vue-ui-nested-donuts.js +1 -1
  37. package/dist/components/vue-ui-onion.js +1 -1
  38. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +1 -0
  72. package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DFEJxVok.js} +63 -63
  73. package/dist/vue-data-ui.js +63 -63
  74. package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-TFhzm8cr.js} +1 -1
  75. package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-C67ZVh2l.js} +342 -341
  76. package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
  77. package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-LoAIeIFd.js} +1 -1
  78. package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-BCarORO1.js} +1 -1
  79. package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DJdFQLah.js} +240 -239
  80. package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-ChXrvtSj.js} +1 -1
  81. package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-DPYfcD5f.js} +1 -1
  82. package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-COQHkRXy.js} +1 -1
  83. package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-DT50sM_h.js} +1 -1
  84. package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-KgnoG_o8.js} +1 -1
  85. package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-BNET87VV.js} +1 -1
  86. package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-Di_HG3jq.js} +62 -62
  87. package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-CybP0Vom.js} +1 -1
  88. package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Ba-5TQ3a.js} +395 -394
  89. package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-64u0LX-J.js} +265 -264
  90. package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-Qy_lKcLT.js} +1 -1
  91. package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-HoOfjAv9.js} +1 -1
  92. package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-DByHtveP.js} +1 -1
  93. package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-DbD8-S5s.js} +1 -1
  94. package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-C9F0Fva2.js} +1 -1
  95. package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-Bn-_i_L8.js} +1 -1
  96. package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-D2mUKXiE.js} +1 -1
  97. package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-gLY-fZmR.js} +494 -482
  98. package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-JWCz3Dsa.js} +1 -1
  99. package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-B58pqRYq.js} +438 -437
  100. package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-CXeBMtyK.js} +1 -1
  101. package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-CbadY7E8.js} +1 -1
  102. package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-3bJn1U3y.js} +1 -1
  103. package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-BbuQH4SB.js} +284 -283
  104. package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-78rfipI0.js} +1 -1
  105. package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-BW8kfcgB.js} +1 -1
  106. package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-Cq1Ij3or.js} +556 -555
  107. package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DDq7LxP3.js} +360 -359
  108. package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-CL5dq6Ph.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-ZsHgSA93.js} +1 -1
  110. package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CnRlC_w1.js} +1 -1
  111. package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-pMBjF5ps.js} +1 -1
  112. package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-D_1tBt3O.js} +479 -466
  113. package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-Ber3eG5N.js} +1 -1
  114. package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-DUz9LWxF.js} +1 -1
  115. package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-DRjnVH0Z.js} +1 -1
  116. package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DHinf-33.js} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-D-jZIHxA.js} +1 -1
  118. package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-CtRskCcH.js} +439 -438
  119. package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-gslNTicq.js} +1 -1
  120. package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-D5JI4liZ.js} +212 -211
  121. package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-BWvPiDVJ.js} +363 -362
  122. package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-BW1hOsyh.js} +1 -1
  123. package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DOE47Jpg.js} +2 -2
  124. package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-DwIOn22D.js} +1 -1
  126. package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-Dk8PXXJX.js} +1 -1
  127. package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-CcYyxhEU.js} +1 -1
  128. package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-Ch-cO4qI.js} +1 -1
  129. package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-Cflb1VOc.js} +388 -387
  130. package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-JuTN5MhL.js} +1 -1
  131. package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-BzXCA7Wf.js} +1 -1
  132. package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-C4k5LTYe.js} +1 -1
  133. package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-_1e3qZ-5.js} +1 -1
  134. package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-DF2i7jxF.js} +956 -955
  135. package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
  136. package/package.json +1 -1
  137. package/dist/ColorPicker-DQ5sdRrl.js +0 -244
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent as re, useSlots as no, computed as g, ref as h, shallowRef as Tt, onMounted as io, toRefs as uo, watch as Ie, onBeforeUnmount as je, watchEffect as Re, nextTick as At, openBlock as s, createElementBlock as u, normalizeStyle as q, normalizeClass as ke, createElementVNode as Z, toDisplayString as E, createBlock as ee, createCommentVNode as f, unref as b, withCtx as C, renderSlot as L, normalizeProps as V, guardReactiveProps as B, createSlots as $t, createVNode as Oe, Fragment as x, renderList as S, mergeProps as De, Teleport as co, resolveDynamicComponent as vo, createTextVNode as Pa } from "vue";
1
+ import { defineAsyncComponent as re, useSlots as no, computed as g, ref as h, shallowRef as Tt, onMounted as io, toRefs as uo, watch as Ie, onBeforeUnmount as je, watchEffect as Re, nextTick as At, openBlock as s, createElementBlock as u, normalizeStyle as q, normalizeClass as ke, createElementVNode as Z, toDisplayString as E, createBlock as ee, createCommentVNode as f, unref as b, withCtx as C, renderSlot as L, normalizeProps as V, guardReactiveProps as B, createSlots as $t, createVNode as Oe, Fragment as w, renderList as S, mergeProps as De, Teleport as co, resolveDynamicComponent as vo, createTextVNode as Pa } from "vue";
2
2
  import { u as ho } from "./useConfig-DO94Aj5s.js";
3
3
  import { j as Na, t as Fa, m as yo, p as et, n as fo, o as Ia, q as Ra, r as go, s as mo, ar as Ee, E as Oa, D as Da, I as bo, X as po, x as xo, G as de, W as Ea, k as we, l as ne, Z as ko, as as wo, T as Va, a0 as Lo, a1 as Co, U as So, a3 as zo } from "./lib-DBptbyyI.js";
4
4
  import { t as Ba, u as Mo } from "./useResponsive-DfdjqQps.js";
@@ -51,14 +51,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
51
51
  },
52
52
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX", "copyAlt"],
53
53
  setup(tt, { expose: Wa, emit: Xa }) {
54
- const Ya = re(() => import("./Tooltip-Bf-kM3_A.js")), qa = re(() => import("./BaseIcon-Cb3zzG6s.js")), Ga = re(() => import("./vue-ui-accordion-nvggWcGN.js")), Ja = re(() => import("./DataTable-DT2kIdQ6.js")), Ka = re(() => import("./PenAndPaper-DARlvvKW.js")), Za = re(() => import("./UserOptions-DWHf8jyO.js")), Qa = re(() => import("./PackageVersion-IIGK_e2C.js")), ja = re(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackbar: el } = ho(), { isThemeValid: tl, warnInvalidTheme: al } = No(), ll = no(), P = tt, ae = Xa, Le = g({
54
+ const Ya = re(() => import("./Tooltip-Bf-kM3_A.js")), qa = re(() => import("./BaseIcon-Cb3zzG6s.js")), Ga = re(() => import("./vue-ui-accordion-nvggWcGN.js")), Ja = re(() => import("./DataTable-DT2kIdQ6.js")), Ka = re(() => import("./PenAndPaper-Ct3qJ4lA.js")), Za = re(() => import("./UserOptions-rW2fRf3V.js")), Qa = re(() => import("./PackageVersion-C4NWSOC8.js")), ja = re(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackbar: el } = ho(), { isThemeValid: tl, warnInvalidTheme: al } = No(), ll = no(), F = tt, ae = Xa, Le = g({
55
55
  get() {
56
- return !!P.dataset && P.dataset.length;
56
+ return !!F.dataset && F.dataset.length;
57
57
  },
58
58
  set(t) {
59
59
  return t;
60
60
  }
61
- }), Q = h(null), I = h(Na()), ye = h(!1), at = h(null), lt = h(""), T = h([]), Nt = h(0), Ft = h(null), It = h(null), Ce = h(null), Rt = h(null), Se = h(!1), W = h(null), ie = h(!1), Ot = h(0), ol = h(0), sl = h(0), Dt = h(!1), ze = h(null), ot = h(null), Ve = h(!1), Be = h(!1), Ue = h(null), st = h(null), ue = h(null), ce = h(null), rl = h(null), rt = h(null), Et = Tt(null), Vt = h(!1), Bt = h(0), Ut = h(0), G = h(null), Ht = h({ x: 0, y: 0 }), Wt = h("pointer"), Xt = Io({
61
+ }), Q = h(null), R = h(Na()), ye = h(!1), at = h(null), lt = h(""), A = h([]), Nt = h(0), Ft = h(null), It = h(null), Ce = h(null), Rt = h(null), Se = h(!1), U = h(null), ie = h(!1), Ot = h(0), ol = h(0), sl = h(0), Dt = h(!1), ze = h(null), ot = h(null), Ve = h(!1), Be = h(!1), Ue = h(null), st = h(null), ue = h(null), ce = h(null), rl = h(null), rt = h(null), Et = Tt(null), Vt = h(!1), Bt = h(0), Ut = h(0), G = h(null), Ht = h({ x: 0, y: 0 }), Wt = h("pointer"), Xt = Io({
62
62
  elementRef: Et,
63
63
  minimumWidth: 2,
64
64
  minimumHeight: 2,
@@ -138,7 +138,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
138
138
  },
139
139
  userConfig: e.value.skeletonConfig ?? {}
140
140
  })), { loading: fe, FINAL_DATASET: ut, manualLoading: He } = Ao({
141
- ...uo(P),
141
+ ...uo(F),
142
142
  FINAL_CONFIG: e,
143
143
  prepareConfig: vt,
144
144
  callback: () => {
@@ -146,7 +146,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
146
146
  await Ke();
147
147
  });
148
148
  },
149
- skeletonDataset: P.config?.skeletonDataset ?? [
149
+ skeletonDataset: F.config?.skeletonDataset ?? [
150
150
  {
151
151
  name: "",
152
152
  series: [2, 3, 5, 8, 13, 21],
@@ -167,11 +167,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
167
167
  Gt(!0);
168
168
  }
169
169
  function ul() {
170
- Gt(!1), ae("selectX", { seriesIndex: null, datapoint: null }), W.value = null, G.value = null, ye.value = !1;
170
+ Gt(!1), ae("selectX", { seriesIndex: null, datapoint: null }), U.value = null, G.value = null, ye.value = !1;
171
171
  }
172
172
  function vt() {
173
173
  const t = Pt({
174
- userConfig: P.config,
174
+ userConfig: F.config,
175
175
  defaultConfig: el
176
176
  });
177
177
  let l = {};
@@ -181,12 +181,12 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
181
181
  al(t), l = t;
182
182
  else {
183
183
  const o = Pt({
184
- userConfig: Bo[a] || P.config,
184
+ userConfig: Bo[a] || F.config,
185
185
  defaultConfig: t
186
186
  });
187
187
  l = {
188
188
  ...Pt({
189
- userConfig: P.config,
189
+ userConfig: F.config,
190
190
  defaultConfig: o
191
191
  }),
192
192
  customPalette: t.customPalette.length ? t.customPalette : yo[a] || et
@@ -197,12 +197,12 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
197
197
  return l;
198
198
  }
199
199
  const Kt = g(() => e.value.style.chart.bars.dataLabels.hideUnderValue != null), Zt = g(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
200
- Ie(() => P.config, (t) => {
201
- fe.value || (e.value = vt()), ct.value = !e.value.userOptions.showOnChartHover, ta(), Ot.value += 1, ol.value += 1, sl.value += 1, A.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, A.value.showTable = e.value.table.show, A.value.showTooltip = e.value.style.chart.tooltip.show, nt(), Ye();
202
- }, { deep: !0 }), Ie(() => P.dataset, (t) => {
200
+ Ie(() => F.config, (t) => {
201
+ fe.value || (e.value = vt()), ct.value = !e.value.userOptions.showOnChartHover, ta(), Ot.value += 1, ol.value += 1, sl.value += 1, $.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, nt(), Ye();
202
+ }, { deep: !0 }), Ie(() => F.dataset, (t) => {
203
203
  Array.isArray(t) && t.length > 0 && (He.value = !1), nt(), sa();
204
204
  }, { deep: !0 });
205
- const A = h({
205
+ const $ = h({
206
206
  dataLabels: {
207
207
  show: e.value.style.chart.bars.dataLabels.show
208
208
  },
@@ -210,7 +210,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
210
210
  showTooltip: e.value.style.chart.tooltip.show
211
211
  });
212
212
  Ie(e, () => {
213
- A.value = {
213
+ $.value = {
214
214
  dataLabels: {
215
215
  show: e.value.style.chart.bars.dataLabels.show
216
216
  },
@@ -219,7 +219,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
219
219
  };
220
220
  }, { immediate: !0 });
221
221
  const { isPrinting: ht, isImaging: dt, generatePdf: Qt, generateImage: jt } = To({
222
- elementId: `stackbar_${I.value}`,
222
+ elementId: `stackbar_${R.value}`,
223
223
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
224
224
  options: e.value.userOptions.print
225
225
  }), le = h({
@@ -233,11 +233,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
233
233
  }
234
234
  }), cl = g(() => fo(e.value.customPalette)), oe = Tt(null), me = Tt(null), ea = h(null), yt = g(() => !!e.value.debug);
235
235
  function ta() {
236
- if (Ia(P.dataset) ? (Ra({
236
+ if (Ia(F.dataset) ? (Ra({
237
237
  componentName: "VueUiStackbar",
238
238
  type: "dataset",
239
239
  debug: yt.value
240
- }), He.value = !0) : P.dataset.forEach((t, l) => {
240
+ }), He.value = !0) : F.dataset.forEach((t, l) => {
241
241
  go({
242
242
  datasetObject: t,
243
243
  requiredAttributes: ["name", "series"]
@@ -250,7 +250,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
250
250
  debug: yt.value
251
251
  }), He.value = !0;
252
252
  });
253
- }), Ia(P.dataset) || (He.value = e.value.loading), setTimeout(() => {
253
+ }), Ia(F.dataset) || (He.value = e.value.loading), setTimeout(() => {
254
254
  ie.value = !0;
255
255
  }, 10), e.value.responsive) {
256
256
  const t = Ba(() => {
@@ -259,7 +259,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
259
259
  chart: Q.value,
260
260
  title: e.value.style.chart.title.text ? Ft.value : null,
261
261
  legend: e.value.style.chart.legend.show ? It.value : null,
262
- slicer: e.value.style.chart.zoom.show && N.value > 6 ? Ce.value.$el : null,
262
+ slicer: e.value.style.chart.zoom.show && I.value > 6 ? Ce.value.$el : null,
263
263
  source: Rt.value
264
264
  });
265
265
  requestAnimationFrame(() => {
@@ -360,21 +360,21 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
360
360
  }), n = g(() => {
361
361
  Bt.value;
362
362
  const { height: t, width: l } = le.value, { right: a } = le.value.paddingRatio;
363
- let o = e.value.style.chart.bars.totalValues.show && P.dataset && P.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
363
+ let o = e.value.style.chart.bars.totalValues.show && F.dataset && F.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
364
364
  e.value.style.chart.grid.y.axisLabels.show && (c = vl());
365
- const r = e.value.style.chart.padding.top + o, d = l - l * a - We.value, k = t - e.value.style.chart.padding.bottom - aa.value - o, w = e.value.style.chart.padding.left + c, $ = l - w - l * a - We.value, F = t - r - e.value.style.chart.padding.bottom - aa.value - o;
365
+ const r = e.value.style.chart.padding.top + o, d = l - l * a - We.value, x = t - e.value.style.chart.padding.bottom - aa.value - o, k = e.value.style.chart.padding.left + c, M = l - k - l * a - We.value, P = t - r - e.value.style.chart.padding.bottom - aa.value - o;
366
366
  return {
367
367
  chartHeight: t,
368
368
  chartWidth: l,
369
369
  top: r,
370
370
  right: d,
371
- bottom: k,
372
- left: w,
373
- width: Math.max(0, $),
374
- height: Math.max(0, F)
371
+ bottom: x,
372
+ left: k,
373
+ width: Math.max(0, M),
374
+ height: Math.max(0, P)
375
375
  };
376
376
  }), ml = g(() => {
377
- const { left: t, top: l, width: a, height: o } = n.value, c = v.value.start, r = v.value.end, d = Math.max(1, r - c), k = Math.max(0, Math.min(d, (H.value.start ?? c) - c)), w = Math.max(0, Math.min(d, (H.value.end ?? r) - c)), $ = Math.max(0, w - k), F = {
377
+ const { left: t, top: l, width: a, height: o } = n.value, c = v.value.start, r = v.value.end, d = Math.max(1, r - c), x = Math.max(0, Math.min(d, (W.value.start ?? c) - c)), k = Math.max(0, Math.min(d, (W.value.end ?? r) - c)), M = Math.max(0, k - x), P = {
378
378
  fill: e.value.style.chart.zoom.preview.fill,
379
379
  stroke: e.value.style.chart.zoom.preview.stroke,
380
380
  "stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
@@ -388,25 +388,25 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
388
388
  }
389
389
  };
390
390
  if (e.value.orientation === "horizontal") {
391
- const O = o / d;
391
+ const N = o / d;
392
392
  return {
393
393
  x: t,
394
- y: l + k * O,
394
+ y: l + x * N,
395
395
  width: a,
396
- height: $ * O,
397
- ...F
396
+ height: M * N,
397
+ ...P
398
398
  };
399
399
  } else {
400
- const O = a / d;
400
+ const N = a / d;
401
401
  return {
402
- x: t + k * O,
402
+ x: t + x * N,
403
403
  y: l,
404
- width: $ * O,
404
+ width: M * N,
405
405
  height: o,
406
- ...F
406
+ ...P
407
407
  };
408
408
  }
409
- }), U = g(() => ut.value.map((t, l) => {
409
+ }), H = g(() => ut.value.map((t, l) => {
410
410
  const a = mo(t.color) || cl.value[l] || et[l] || et[l % et.length];
411
411
  return {
412
412
  ...t,
@@ -418,9 +418,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
418
418
  id: Na(),
419
419
  color: a
420
420
  };
421
- })), N = g(() => {
422
- const t = Math.max(...U.value.filter((l) => !T.value.includes(l.id)).map((l) => l.series.length));
423
- return isFinite(t) ? t : Math.max(...U.value.map((l) => l.series.length));
421
+ })), I = g(() => {
422
+ const t = Math.max(...H.value.filter((l) => !A.value.includes(l.id)).map((l) => l.series.length));
423
+ return isFinite(t) ? t : Math.max(...H.value.map((l) => l.series.length));
424
424
  });
425
425
  function bl(t) {
426
426
  it.value = t;
@@ -428,14 +428,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
428
428
  const v = h({
429
429
  start: 0,
430
430
  end: Math.max(...ut.value.map((t) => t.series.length))
431
- }), H = h({ start: 0, end: Math.max(...ut.value.map((t) => t.series.length)) }), la = g(() => e.value.style.chart.zoom.preview.enable && (H.value.start !== v.value.start || H.value.end !== v.value.end));
431
+ }), W = h({ start: 0, end: Math.max(...ut.value.map((t) => t.series.length)) }), la = g(() => e.value.style.chart.zoom.preview.enable && (W.value.start !== v.value.start || W.value.end !== v.value.end));
432
432
  function oa(t, l) {
433
- H.value[t] = l;
433
+ W.value[t] = l;
434
434
  }
435
435
  function Ye() {
436
- const t = N.value;
436
+ const t = I.value;
437
437
  let l = Math.max(0, Math.min(v.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(v.value.end ?? t, t));
438
- (!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), v.value.start = l, v.value.end = a, H.value.start = l, H.value.end = a, Ce.value && (Ce.value.setStartValue(l), Ce.value.setEndValue(a));
438
+ (!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), v.value.start = l, v.value.end = a, W.value.start = l, W.value.end = a, Ce.value && (Ce.value.setStartValue(l), Ce.value.setEndValue(a));
439
439
  }
440
440
  const _e = h(null);
441
441
  function pl() {
@@ -454,19 +454,19 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
454
454
  const m = g(() => {
455
455
  let t;
456
456
  return e.value.orientation === "vertical" ? t = n.value.width / (v.value.end - v.value.start) : t = n.value.height / (v.value.end - v.value.start), t <= 0 ? 0 : t;
457
- }), Te = g(() => Ee(U.value.filter((t) => !T.value.includes(t.id))).slice(v.value.start, v.value.end)), ft = g(() => T.value.length === U.value.length), ve = g(() => e.value.style.chart.zoom.minimap.show ? Ee(U.value.map((t) => ({
457
+ }), Te = g(() => Ee(H.value.filter((t) => !A.value.includes(t.id))).slice(v.value.start, v.value.end)), ft = g(() => A.value.length === H.value.length), ve = g(() => e.value.style.chart.zoom.minimap.show ? Ee(H.value.map((t) => ({
458
458
  ...t,
459
459
  series: t.series.map((l) => l ?? 0)
460
- })).filter((t) => ft.value ? !0 : !T.value.includes(t.id))) : []), xl = g(() => e.value.style.chart.zoom.minimap.show ? [{
460
+ })).filter((t) => ft.value ? !0 : !A.value.includes(t.id))) : []), xl = g(() => e.value.style.chart.zoom.minimap.show ? [{
461
461
  name: "",
462
462
  series: ve.value,
463
463
  color: "#000000",
464
464
  isVisible: !0
465
- }] : []), kl = g(() => Ee(U.value.filter((t) => !T.value.includes(t.id)).map((t) => ({
465
+ }] : []), kl = g(() => Ee(H.value.filter((t) => !A.value.includes(t.id)).map((t) => ({
466
466
  ...t,
467
467
  series: t.series.map((l, a) => t.signedSeries[a] === -1 && l >= 0 ? -l : l)
468
468
  }))).slice(v.value.start, v.value.end)), qe = g(() => {
469
- const t = U.value.filter((l) => !T.value.includes(l.id));
469
+ const t = H.value.filter((l) => !A.value.includes(l.id));
470
470
  return {
471
471
  positive: Ee(t.map((l) => ({
472
472
  ...l,
@@ -488,19 +488,19 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
488
488
  horizontal_y: n.value.bottom - 8,
489
489
  value: c
490
490
  }));
491
- }), R = h([]), be = h([]);
491
+ }), O = h([]), be = h([]);
492
492
  let ra = 0;
493
493
  Re(() => {
494
494
  const t = ++ra;
495
495
  (async () => {
496
496
  const l = await Ua({
497
497
  values: e.value.style.chart.grid.x.timeLabels.values,
498
- maxDatapoints: N.value,
498
+ maxDatapoints: I.value,
499
499
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
500
500
  start: v.value.start,
501
501
  end: v.value.end
502
502
  });
503
- t === ra && (R.value = l);
503
+ t === ra && (O.value = l);
504
504
  })();
505
505
  });
506
506
  let na = 0;
@@ -509,25 +509,25 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
509
509
  (async () => {
510
510
  const l = await Ua({
511
511
  values: e.value.style.chart.grid.x.timeLabels.values,
512
- maxDatapoints: N.value,
512
+ maxDatapoints: I.value,
513
513
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
514
514
  start: 0,
515
- end: N.value
515
+ end: I.value
516
516
  });
517
517
  t === na && (be.value = l);
518
518
  })();
519
519
  });
520
520
  const wl = g(() => {
521
521
  const t = e.value.style.chart.grid.x.timeLabels.modulo;
522
- return R.value.length ? Math.min(t, [...new Set(R.value.map((l) => l.text))].length) : t;
522
+ return O.value.length ? Math.min(t, [...new Set(O.value.map((l) => l.text))].length) : t;
523
523
  }), gt = g(() => {
524
- const t = e.value.style.chart.grid.x.timeLabels, l = R.value || [], a = be.value || [], o = v.value.start ?? 0, c = W.value, r = N.value, d = l.map((w) => w?.text ?? ""), k = a.map((w) => w?.text ?? "");
524
+ const t = e.value.style.chart.grid.x.timeLabels, l = O.value || [], a = be.value || [], o = v.value.start ?? 0, c = U.value, r = I.value, d = l.map((k) => k?.text ?? ""), x = a.map((k) => k?.text ?? "");
525
525
  return bo(
526
526
  !!t.showOnlyFirstAndLast,
527
527
  !!t.showOnlyAtModulo,
528
528
  Math.max(1, wl.value || 1),
529
529
  d,
530
- k,
530
+ x,
531
531
  o,
532
532
  c,
533
533
  r
@@ -563,73 +563,73 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
563
563
  absoluteIndex: a
564
564
  }))), z = g(() => {
565
565
  if (!Le.value && !fe.value) return [];
566
- let t = Array(N.value).fill(0), l = Array(N.value).fill(0), a = Array(N.value).fill(0), o = Array(N.value).fill(0);
567
- const c = Math.max(...qe.value.positive) || 0, r = Math.min(...qe.value.negative), d = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, k = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Oa(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Da(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: w, max: $ } = k, F = $ + (w >= 0 ? 0 : Math.abs(w)) || 1, O = n.value.height, j = n.value.width, he = Y.value[0] ? Y.value[0].zero : n.value.bottom, Fe = Y.value[0] ? Y.value[0].horizontal_zero : n.value.left;
566
+ let t = Array(I.value).fill(0), l = Array(I.value).fill(0), a = Array(I.value).fill(0), o = Array(I.value).fill(0);
567
+ const c = Math.max(...qe.value.positive) || 0, r = Math.min(...qe.value.negative), d = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, x = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Oa(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Da(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : d > 0 ? 0 : d, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: k, max: M } = x, P = M + (k >= 0 ? 0 : Math.abs(k)) || 1, N = n.value.height, j = n.value.width, he = Y.value[0] ? Y.value[0].zero : n.value.bottom, Fe = Y.value[0] ? Y.value[0].horizontal_zero : n.value.left;
568
568
  let J = Array(ve.value.length).fill(0), _a = Array(ve.value.length).fill(0);
569
- return U.value.filter((xe) => !T.value.includes(xe.id)).map((xe) => {
569
+ return H.value.filter((xe) => !A.value.includes(xe.id)).map((xe) => {
570
570
  const se = xe.series.slice(), Ta = se.map((y, p) => J[p]), Gl = se.map((y, p) => _a[p]);
571
571
  se.forEach((y, p) => {
572
572
  (Number(y) || 0) >= 0 ? J[p] += Number(y) || 0 : _a[p] += Math.abs(Number(y) || 0);
573
573
  });
574
574
  const te = xe.series.slice(v.value.start, v.value.end), Jl = xe.signedSeries.slice(v.value.start, v.value.end), Kl = te.map((y, p) => n.value.left + m.value * p + m.value * e.value.style.chart.bars.gapRatio / 4), Qe = (ve.value || []).filter(Number.isFinite), zt = Qe.length ? Math.max(...Qe) : 0, Mt = Qe.length ? Math.min(...Qe) : 0;
575
575
  function Aa({ minimapH: y }) {
576
- const M = zt > 0, D = Mt < 0;
577
- if (M && D) {
576
+ const _ = zt > 0, D = Mt < 0;
577
+ if (_ && D) {
578
578
  const K = Math.max(zt, Math.abs(Mt)) || 1e-9;
579
579
  return {
580
580
  pxPerUnit: y / 2 / K,
581
581
  zero: y / 2
582
582
  };
583
583
  }
584
- if (M) {
584
+ if (_) {
585
585
  const K = Math.max(1e-9, zt);
586
586
  return {
587
587
  pxPerUnit: y / K,
588
588
  zero: y
589
589
  };
590
590
  }
591
- const _ = Math.max(1e-9, Math.abs(Mt));
591
+ const T = Math.max(1e-9, Math.abs(Mt));
592
592
  return {
593
- pxPerUnit: y / _,
593
+ pxPerUnit: y / T,
594
594
  zero: 0
595
595
  };
596
596
  }
597
597
  const Zl = ({ left: y, unitW: p }) => {
598
- const M = p * (e.value.style.chart.bars.gapRatio / 4);
599
- return se.map((D, _) => y + p * _ + M);
598
+ const _ = p * (e.value.style.chart.bars.gapRatio / 4);
599
+ return se.map((D, T) => y + p * T + _);
600
600
  }, Ql = te.map((y, p) => n.value.top + m.value * p + m.value * e.value.style.chart.bars.gapRatio / 4), jl = te.map((y, p) => {
601
- const M = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / F;
602
- let D, _;
603
- return y > 0 ? (_ = O * M, D = he - _ - t[p], t[p] += _) : (_ = O * M, D = he + a[p], a[p] += Math.abs(_)), D;
601
+ const _ = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / P;
602
+ let D, T;
603
+ return y > 0 ? (T = N * _, D = he - T - t[p], t[p] += T) : (T = N * _, D = he + a[p], a[p] += Math.abs(T)), D;
604
604
  }), eo = ({ minimapH: y }) => {
605
605
  if (e.value.style.chart.bars.distributed)
606
- return se.map((_, K) => {
607
- const _t = Math.abs(Number(_) || 0), $a = Math.abs(ve.value?.[K] || 0) || 1e-9, ro = (Ta[K] + _t) / $a;
606
+ return se.map((T, K) => {
607
+ const _t = Math.abs(Number(T) || 0), $a = Math.abs(ve.value?.[K] || 0) || 1e-9, ro = (Ta[K] + _t) / $a;
608
608
  return y - ro * y;
609
609
  });
610
- const { pxPerUnit: p, zero: M } = Aa({ minimapH: y });
611
- return se.map((D, _) => {
610
+ const { pxPerUnit: p, zero: _ } = Aa({ minimapH: y });
611
+ return se.map((D, T) => {
612
612
  const K = Number(D) || 0;
613
- return K >= 0 ? M - (Ta[_] + K) * p : M + Gl[_] * p;
613
+ return K >= 0 ? _ - (Ta[T] + K) * p : _ + Gl[T] * p;
614
614
  });
615
615
  }, to = te.map((y, p) => {
616
- const M = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / F;
617
- let D, _;
618
- return y > 0 ? (_ = j * M, D = Fe + l[p], l[p] += _) : (_ = j * M, D = Fe - Math.abs(_) - o[p], o[p] += Math.abs(_)), D;
616
+ const _ = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / P;
617
+ let D, T;
618
+ return y > 0 ? (T = j * _, D = Fe + l[p], l[p] += T) : (T = j * _, D = Fe - Math.abs(T) - o[p], o[p] += Math.abs(T)), D;
619
619
  }), ao = te.map((y, p) => {
620
- const M = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / F;
621
- return y > 0 ? O * M : O * Math.abs(M);
620
+ const _ = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / P;
621
+ return y > 0 ? N * _ : N * Math.abs(_);
622
622
  }), lo = ({ minimapH: y }) => {
623
623
  if (e.value.style.chart.bars.distributed)
624
- return se.map((D, _) => {
625
- const K = Math.abs(Number(D) || 0), _t = Math.abs(ve.value?.[_] || 0) || 1e-9;
624
+ return se.map((D, T) => {
625
+ const K = Math.abs(Number(D) || 0), _t = Math.abs(ve.value?.[T] || 0) || 1e-9;
626
626
  return K / _t * y;
627
627
  });
628
628
  const { pxPerUnit: p } = Aa({ minimapH: y });
629
- return se.map((M) => Math.abs(Number(M) || 0) * p);
629
+ return se.map((_) => Math.abs(Number(_) || 0) * p);
630
630
  }, oo = te.map((y, p) => {
631
- const M = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / F;
632
- return y > 0 ? j * M : j * Math.abs(M);
631
+ const _ = e.value.style.chart.bars.distributed ? (y || 0) / Te.value[p] : (y || 0) / P;
632
+ return y > 0 ? j * _ : j * Math.abs(_);
633
633
  }), so = te.map((y) => Math.abs(y)).reduce((y, p) => y + p, 0);
634
634
  return {
635
635
  ...xe,
@@ -685,7 +685,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
685
685
  color: a.color,
686
686
  id: a.id
687
687
  }));
688
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + v.value.start }), ae("selectDatapoint", { datapoint: l, period: R.value[t] });
688
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + v.value.start }), ae("selectDatapoint", { datapoint: l, period: O.value[t] });
689
689
  }
690
690
  function pt(t) {
691
691
  return JSON.parse(JSON.stringify(z.value)).map((l) => ({
@@ -703,20 +703,20 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
703
703
  const l = pt(t);
704
704
  e.value.events.datapointLeave({ datapoint: l, seriesIndex: t + v.value.start });
705
705
  }
706
- ye.value = !1, W.value = null, G.value === t && (G.value = null);
706
+ ye.value = !1, U.value = null, G.value === t && (G.value = null);
707
707
  }
708
- const Ll = g(() => Array(N.value).fill(0).map((t, l) => pt(l)));
709
- Ie(() => P.selectedXIndex, (t) => {
710
- if ([null, void 0].includes(P.selectedXIndex)) {
711
- W.value = null;
708
+ const Ll = g(() => Array(I.value).fill(0).map((t, l) => pt(l)));
709
+ Ie(() => F.selectedXIndex, (t) => {
710
+ if ([null, void 0].includes(F.selectedXIndex)) {
711
+ U.value = null;
712
712
  return;
713
713
  }
714
714
  const l = t - v.value.start;
715
- l < 0 || t >= v.value.end ? W.value = null : W.value = l ?? null;
715
+ l < 0 || t >= v.value.end ? U.value = null : U.value = l ?? null;
716
716
  }, { immediate: !0 });
717
717
  function xt(t, l = "pointer") {
718
718
  if (ft.value) return;
719
- Wt.value = l, G.value = t, W.value = t, ye.value = !0;
719
+ Wt.value = l, G.value = t, U.value = t, ye.value = !0;
720
720
  const a = e.value.style.chart.tooltip.customFormat, o = pt(t);
721
721
  Bl({ seriesIndex: t, datapoint: o }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t + v.value.start }), at.value = {
722
722
  datapoint: o,
@@ -724,7 +724,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
724
724
  config: e.value,
725
725
  series: z.value
726
726
  };
727
- const c = o.map((d) => Math.abs(d.value)).reduce((d, k) => d + k, 0), r = o.map((d) => de(d.value)).reduce((d, k) => d + k, 0);
727
+ const c = o.map((d) => Math.abs(d.value)).reduce((d, x) => d + x, 0), r = o.map((d) => de(d.value)).reduce((d, x) => d + x, 0);
728
728
  if (Va(a) && So(() => a({
729
729
  seriesIndex: t,
730
730
  datapoint: o,
@@ -740,16 +740,16 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
740
740
  else {
741
741
  const {
742
742
  showValue: d,
743
- showTotal: k,
744
- totalTranslation: w,
745
- showPercentage: $,
746
- borderColor: F,
747
- roundingValue: O,
743
+ showTotal: x,
744
+ totalTranslation: k,
745
+ showPercentage: M,
746
+ borderColor: P,
747
+ roundingValue: N,
748
748
  roundingPercentage: j
749
749
  } = e.value.style.chart.tooltip;
750
750
  let he = "";
751
- (R.value[t] && R.value[t].text || mt.value[t] && mt.value[t].text && e.value.style.chart.tooltip.showTimeLabel) && (he += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? R.value[t]?.text : mt.value[t]?.text || be.value[t]?.text || ""}</div>`), k && (he += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
752
- <span>${w}:</span>
751
+ (O.value[t] && O.value[t].text || mt.value[t] && mt.value[t].text && e.value.style.chart.tooltip.showTimeLabel) && (he += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? O.value[t]?.text : mt.value[t]?.text || be.value[t]?.text || ""}</div>`), x && (he += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
752
+ <span>${k}:</span>
753
753
  <span>
754
754
  ${we(
755
755
  e.value.style.chart.bars.dataLabels.formatter,
@@ -758,30 +758,30 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
758
758
  p: e.value.style.chart.bars.dataLabels.prefix,
759
759
  v: r,
760
760
  s: e.value.style.chart.bars.dataLabels.suffix,
761
- r: O
761
+ r: N
762
762
  }),
763
- { datapoint: { name: w, value: r } }
763
+ { datapoint: { name: k, value: r } }
764
764
  )}
765
765
  </span>
766
766
  </div>`);
767
767
  const Fe = [
768
- d && $ ? "(" : "",
769
- d && $ ? ")" : ""
768
+ d && M ? "(" : "",
769
+ d && M ? ")" : ""
770
770
  ];
771
771
  o.reverse().forEach((J) => {
772
772
  he += `
773
773
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
774
- <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${J.id})` : J.color}"/>${ll.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${I.value}_${J.absoluteIndex})"/>` : ""}</svg>
775
- ${J.name}${d || $ ? ":" : ""} ${d ? we(
774
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${J.id})` : J.color}"/>${ll.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${R.value}_${J.absoluteIndex})"/>` : ""}</svg>
775
+ ${J.name}${d || M ? ":" : ""} ${d ? we(
776
776
  e.value.style.chart.bars.dataLabels.formatter,
777
777
  J.value,
778
778
  ne({
779
779
  p: e.value.style.chart.bars.dataLabels.prefix,
780
780
  v: J.value,
781
781
  s: e.value.style.chart.bars.dataLabels.suffix,
782
- r: O
782
+ r: N
783
783
  })
784
- ) : ""} ${Fe[0]}${$ ? ne({
784
+ ) : ""} ${Fe[0]}${M ? ne({
785
785
  v: isNaN(J.value / c) ? 0 : Math.abs(J.value) / c * 100,
786
786
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
787
787
  s: "%",
@@ -795,7 +795,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
795
795
  const Cl = g(() => le.value.width), Sl = g(() => le.value.height);
796
796
  Oo({
797
797
  timeLabelsEls: e.value.orientation === "vertical" ? ce : ue,
798
- timeLabels: R,
798
+ timeLabels: O,
799
799
  slicer: v,
800
800
  configRef: e,
801
801
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
@@ -809,13 +809,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
809
809
  Se.value = t, Nt.value += 1;
810
810
  }
811
811
  function ga() {
812
- A.value.showTable = !A.value.showTable;
812
+ $.value.showTable = !$.value.showTable;
813
813
  }
814
814
  function ma() {
815
- A.value.dataLabels.show = !A.value.dataLabels.show;
815
+ $.value.dataLabels.show = !$.value.dataLabels.show;
816
816
  }
817
817
  function ba() {
818
- A.value.showTooltip = !A.value.showTooltip;
818
+ $.value.showTooltip = !$.value.showTooltip;
819
819
  }
820
820
  function zl() {
821
821
  return z.value;
@@ -826,9 +826,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
826
826
  label: a,
827
827
  color: o
828
828
  })), l = [];
829
- return R.value.forEach((a) => {
829
+ return O.value.forEach((a) => {
830
830
  const o = [e.value.style.chart.grid.x.timeLabels.values[a.absoluteIndex] ? a.text : i + 1];
831
- U.value.forEach((c) => {
831
+ H.value.forEach((c) => {
832
832
  o.push(Number((c.series[a.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
833
833
  }), l.push(o);
834
834
  }), { head: t, body: l };
@@ -840,9 +840,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
840
840
  const pe = g(() => {
841
841
  const t = [""].concat(z.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
842
842
  let l = [];
843
- for (let c = 0; c < N.value; c += 1) {
844
- const r = z.value.map((d) => d.series[c] ?? 0).reduce((d, k) => d + k, 0);
845
- l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? R.value[c]?.text : c + 1].concat(z.value.map((d) => (d.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((r ?? 0).toFixed(e.value.table.td.roundingValue)));
843
+ for (let c = 0; c < I.value; c += 1) {
844
+ const r = z.value.map((d) => d.series[c] ?? 0).reduce((d, x) => d + x, 0);
845
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? O.value[c]?.text : c + 1].concat(z.value.map((d) => (d.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((r ?? 0).toFixed(e.value.table.td.roundingValue)));
846
846
  }
847
847
  const a = {
848
848
  th: {
@@ -860,41 +860,41 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
860
860
  return { head: t, body: l.slice(0, v.value.end - v.value.start), config: a, colNames: o };
861
861
  });
862
862
  function Ml() {
863
- T.value.length ? T.value = [] : Ae.value.forEach((t) => {
864
- T.value.push(t.id);
863
+ A.value.length ? A.value = [] : Ae.value.forEach((t) => {
864
+ A.value.push(t.id);
865
865
  });
866
866
  }
867
867
  function wt(t) {
868
- if (T.value.includes(t.id))
869
- T.value = T.value.filter((l) => l !== t.id);
868
+ if (A.value.includes(t.id))
869
+ A.value = A.value.filter((l) => l !== t.id);
870
870
  else {
871
- if (T.value.length === U.value.length - 1) return;
872
- T.value.push(t.id);
871
+ if (A.value.length === H.value.length - 1) return;
872
+ A.value.push(t.id);
873
873
  }
874
874
  ae("selectLegend", z.value);
875
875
  }
876
876
  function xa(t) {
877
- if (!U.value.length)
877
+ if (!H.value.length)
878
878
  return e.value.debug && console.warn("VueUiStackbar - There are no series to show."), null;
879
- const l = U.value.find((a) => a.name === t);
879
+ const l = H.value.find((a) => a.name === t);
880
880
  return l || (e.value.debug && console.warn(`VueUiStackbar - Series name not found "${t}"`), null);
881
881
  }
882
882
  function _l(t) {
883
883
  const l = xa(t);
884
- l !== null && T.value.includes(l.id) && wt({ id: l.id });
884
+ l !== null && A.value.includes(l.id) && wt({ id: l.id });
885
885
  }
886
886
  function Tl(t) {
887
887
  const l = xa(t);
888
- l !== null && (T.value.includes(l.id) || wt({ id: l.id }));
888
+ l !== null && (A.value.includes(l.id) || wt({ id: l.id }));
889
889
  }
890
- const Ae = g(() => U.value.map((t, l) => ({
890
+ const Ae = g(() => H.value.map((t, l) => ({
891
891
  ...t,
892
892
  shape: "square"
893
893
  })).map((t) => ({
894
894
  ...t,
895
- opacity: T.value.includes(t.id) ? 0.5 : 1,
895
+ opacity: A.value.includes(t.id) ? 0.5 : 1,
896
896
  segregate: () => wt(t),
897
- isSegregated: T.value.includes(t.id)
897
+ isSegregated: A.value.includes(t.id)
898
898
  }))), Al = g(() => ({
899
899
  cy: "stackbar-legend",
900
900
  backgroundColor: e.value.style.chart.legend.backgroundColor,
@@ -937,7 +937,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
937
937
  };
938
938
  }
939
939
  const Pe = g(() => {
940
- const t = e.value.table.useDialog && !e.value.table.show, l = A.value.showTable;
940
+ const t = e.value.table.useDialog && !e.value.table.show, l = $.value.showTable;
941
941
  return {
942
942
  component: t ? ja : Ga,
943
943
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
@@ -967,11 +967,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
967
967
  }
968
968
  };
969
969
  });
970
- Ie(() => A.value.showTable, (t) => {
970
+ Ie(() => $.value.showTable, (t) => {
971
971
  e.value.table.show || (t && e.value.table.useDialog && ze.value ? ze.value.open() : "close" in ze.value && ze.value.close());
972
972
  });
973
973
  function wa() {
974
- A.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
974
+ $.value.showTable = !1, ot.value && ot.value.setTableIconState(!1);
975
975
  }
976
976
  const Nl = g(() => e.value.style.chart.backgroundColor), Fl = g(() => e.value.style.chart.legend), Il = g(() => e.value.style.chart.title), { exportSvg: Rl, getSvg: Ol } = Po({
977
977
  svg: ge,
@@ -1004,7 +1004,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1004
1004
  jt();
1005
1005
  }
1006
1006
  function Ca(t) {
1007
- const l = N.value;
1007
+ const l = I.value;
1008
1008
  return t > l ? l : t < 0 || t < v.value.start ? e.value.style.chart.zoom.startIndex !== null ? v.value.start + 1 : 1 : t;
1009
1009
  }
1010
1010
  const Ne = h(!1), Sa = h(!1);
@@ -1012,8 +1012,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1012
1012
  if (!Ne.value) {
1013
1013
  Ne.value = !0;
1014
1014
  try {
1015
- const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = N.value, o = t ?? 0, c = l != null ? Math.min(Ca(l + 1), a) : a;
1016
- Ze.value = !0, v.value.start = o, v.value.end = c, H.value.start = o, H.value.end = c, Ye(), Sa.value = !0;
1015
+ const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = I.value, o = t ?? 0, c = l != null ? Math.min(Ca(l + 1), a) : a;
1016
+ Ze.value = !0, v.value.start = o, v.value.end = c, W.value.start = o, W.value.end = c, Ye(), Sa.value = !0;
1017
1017
  } finally {
1018
1018
  queueMicrotask(() => {
1019
1019
  Ze.value = !1;
@@ -1023,12 +1023,12 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1023
1023
  }
1024
1024
  const Ze = h(!1);
1025
1025
  function El(t) {
1026
- Ne.value || Ze.value || t !== v.value.start && (v.value.start = t, H.value.start = t, Ye());
1026
+ Ne.value || Ze.value || t !== v.value.start && (v.value.start = t, W.value.start = t, Ye());
1027
1027
  }
1028
1028
  function Vl(t) {
1029
1029
  if (Ne.value || Ze.value) return;
1030
1030
  const l = Ca(t);
1031
- l !== v.value.end && (v.value.end = l, H.value.end = l, Ye());
1031
+ l !== v.value.end && (v.value.end = l, W.value.end = l, Ye());
1032
1032
  }
1033
1033
  function Bl({ seriesIndex: t, datapoint: l }) {
1034
1034
  const a = v.value.start + t;
@@ -1044,13 +1044,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1044
1044
  function Ul(t) {
1045
1045
  const { y0: l } = za(), a = e.value.style.chart.bars.totalValues, o = Math.max(2, a.fontSize * 0.3 + a.offsetY);
1046
1046
  let c = 1 / 0, r = !1;
1047
- for (const $ of z.value || []) {
1048
- const F = $?.series?.[t] ?? 0, O = $?.height?.[t] ?? 0, j = $?.y?.[t];
1049
- F > 0 && O > 0 && Number.isFinite(j) && (r = !0, j < c && (c = j));
1047
+ for (const M of z.value || []) {
1048
+ const P = M?.series?.[t] ?? 0, N = M?.height?.[t] ?? 0, j = M?.y?.[t];
1049
+ P > 0 && N > 0 && Number.isFinite(j) && (r = !0, j < c && (c = j));
1050
1050
  }
1051
- const k = (r && Number.isFinite(c) ? c : l) - o;
1051
+ const x = (r && Number.isFinite(c) ? c : l) - o;
1052
1052
  return Math.min(
1053
- Math.max(k, 0),
1053
+ Math.max(x, 0),
1054
1054
  n.value.bottom
1055
1055
  );
1056
1056
  }
@@ -1058,8 +1058,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1058
1058
  const { x0: l } = za(), a = Math.max(2, e.value.style.chart.bars.totalValues.fontSize * 0.3 + e.value.style.chart.bars.totalValues.offsetX);
1059
1059
  let o = -1 / 0, c = !1;
1060
1060
  for (const d of z.value || []) {
1061
- const k = d?.series?.[t] ?? 0, w = d?.horizontal_x?.[t], $ = d?.horizontal_width?.[t], F = Number.isFinite($) ? Math.max(0, $) : 0;
1062
- Number.isFinite(w) && k > 0 && F > 0 && (c = !0, o = Math.max(o, w + F));
1061
+ const x = d?.series?.[t] ?? 0, k = d?.horizontal_x?.[t], M = d?.horizontal_width?.[t], P = Number.isFinite(M) ? Math.max(0, M) : 0;
1062
+ Number.isFinite(k) && x > 0 && P > 0 && (c = !0, o = Math.max(o, k + P));
1063
1063
  }
1064
1064
  return (c && Number.isFinite(o) ? o : l) + a;
1065
1065
  }
@@ -1081,16 +1081,16 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1081
1081
  G.value = null, Ct.value = !0;
1082
1082
  }
1083
1083
  function Xl() {
1084
- G.value = null, ye.value = !1, W.value = null, ae("selectX", { seriesIndex: null, datapoint: null }), Ct.value = !1;
1084
+ G.value = null, ye.value = !1, U.value = null, ae("selectX", { seriesIndex: null, datapoint: null }), Ct.value = !1;
1085
1085
  }
1086
1086
  function Yl(t) {
1087
1087
  if (!ge.value || $e.value || document.activeElement !== ge.value || ft.value || !v.value.end && v.value.end !== 0) return;
1088
1088
  const l = e.value.orientation === "vertical", a = e.value.orientation === "horizontal", o = l && t.key === "ArrowLeft" || a && t.key === "ArrowUp", c = l && t.key === "ArrowRight" || a && t.key === "ArrowDown", r = t.key === "Enter" || t.key === " ", d = t.key === "Escape";
1089
1089
  if (!o && !c && !r && !d) return;
1090
- const k = v.value.end - v.value.start;
1091
- if (k <= 0) return;
1090
+ const x = v.value.end - v.value.start;
1091
+ if (x <= 0) return;
1092
1092
  if (t.preventDefault(), t.stopPropagation(), d) {
1093
- G.value = null, ye.value = !1, W.value = null, ae("selectX", { seriesIndex: null, datapoint: null });
1093
+ G.value = null, ye.value = !1, U.value = null, ae("selectX", { seriesIndex: null, datapoint: null });
1094
1094
  return;
1095
1095
  }
1096
1096
  if (r) {
@@ -1098,8 +1098,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1098
1098
  bt(G.value);
1099
1099
  return;
1100
1100
  }
1101
- let w = G.value;
1102
- w === null || w < 0 || w >= k ? c ? w = 0 : w = k - 1 : c ? (w += 1, w >= k && (w = 0)) : o && (w -= 1, w < 0 && (w = k - 1)), G.value = w, ql(w), xt(w, "keyboard");
1101
+ let k = G.value;
1102
+ const M = U.value, P = k !== null && k >= 0 && k < x, N = M !== null && M >= 0 && M < x;
1103
+ P ? c ? (k += 1, k >= x && (k = 0)) : o && (k -= 1, k < 0 && (k = x - 1)) : N ? (k = c ? M + 1 : M - 1, k >= x && (k = 0), k < 0 && (k = x - 1)) : c ? k = 0 : k = x - 1, G.value = k, ql(k), xt(k, "keyboard");
1103
1104
  }
1104
1105
  function ql(t) {
1105
1106
  if (!Number.isFinite(t)) return;
@@ -1128,7 +1129,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1128
1129
  toggleFullscreen: fa,
1129
1130
  copyAlt: Ma
1130
1131
  }), (t, l) => (s(), u("div", {
1131
- id: `stackbar_${I.value}`,
1132
+ id: `stackbar_${R.value}`,
1132
1133
  ref_key: "stackbarChart",
1133
1134
  ref: Q,
1134
1135
  class: ke({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": Se.value }),
@@ -1137,14 +1138,14 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1137
1138
  onMouseleave: ul
1138
1139
  }, [
1139
1140
  Z("div", {
1140
- id: `chart-instructions-${I.value}`,
1141
+ id: `chart-instructions-${R.value}`,
1141
1142
  class: "sr-only"
1142
1143
  }, [
1143
1144
  Z("p", null, E(e.value.a11y.translations.keyboardNavigation), 1)
1144
1145
  ], 8, Go),
1145
1146
  St.value?.rows?.length ? (s(), ee(Ho, {
1146
1147
  key: 0,
1147
- uid: I.value,
1148
+ uid: R.value,
1148
1149
  head: St.value.headers,
1149
1150
  body: St.value.rows,
1150
1151
  notice: e.value.a11y.translations.tableAvailable,
@@ -1201,7 +1202,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1201
1202
  }, null, 8, ["config"]))
1202
1203
  ], 512)) : f("", !0),
1203
1204
  Z("div", {
1204
- id: `legend-top-${I.value}`
1205
+ id: `legend-top-${R.value}`
1205
1206
  }, null, 8, Jo),
1206
1207
  e.value.userOptions.show && Le.value && (b(Jt) || b(ct)) ? (s(), ee(b(Za), {
1207
1208
  ref_key: "userOptionsRef",
@@ -1211,7 +1212,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1211
1212
  color: e.value.style.chart.color,
1212
1213
  isPrinting: b(ht),
1213
1214
  isImaging: b(dt),
1214
- uid: I.value,
1215
+ uid: R.value,
1215
1216
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1216
1217
  hasPdf: e.value.userOptions.buttons.pdf,
1217
1218
  hasImg: e.value.userOptions.buttons.img,
@@ -1224,7 +1225,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1224
1225
  isFullscreen: Se.value,
1225
1226
  chartElement: Q.value,
1226
1227
  position: e.value.userOptions.position,
1227
- isTooltip: A.value.showTooltip,
1228
+ isTooltip: $.value.showTooltip,
1228
1229
  titles: { ...e.value.userOptions.buttonTitles },
1229
1230
  hasAnnotator: e.value.userOptions.buttons.annotator,
1230
1231
  isAnnotation: $e.value,
@@ -1329,7 +1330,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1329
1330
  ref_key: "svgRef",
1330
1331
  ref: ge,
1331
1332
  xmlns: b(po),
1332
- "aria-describedby": `chart-instructions-${I.value}`,
1333
+ "aria-describedby": `chart-instructions-${R.value}`,
1333
1334
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
1334
1335
  class: ke({ "vue-data-ui-loading": b(fe) }),
1335
1336
  style: q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
@@ -1352,7 +1353,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1352
1353
  L(t.$slots, "chart-background", {}, void 0, !0)
1353
1354
  ], 8, Qo)) : f("", !0),
1354
1355
  e.value.style.chart.bars.gradient.show ? (s(), u("defs", jo, [
1355
- (s(!0), u(x, null, S(z.value, (a, o) => (s(), u("linearGradient", {
1356
+ (s(!0), u(w, null, S(z.value, (a, o) => (s(), u("linearGradient", {
1356
1357
  id: `gradient_${a.id}`,
1357
1358
  x1: "0%",
1358
1359
  y1: "0%",
@@ -1387,7 +1388,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1387
1388
  "stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
1388
1389
  "stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
1389
1390
  }, null, 8, os)) : f("", !0),
1390
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(x, { key: 3 }, S(Y.value, (a, o) => (s(), u("line", {
1391
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(w, { key: 3 }, S(Y.value, (a, o) => (s(), u("line", {
1391
1392
  x1: n.value.left,
1392
1393
  x2: n.value.right,
1393
1394
  y1: a.y,
@@ -1397,7 +1398,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1397
1398
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
1398
1399
  "stroke-linecap": "round"
1399
1400
  }, null, 8, ss))), 256)) : f("", !0),
1400
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(x, { key: 4 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
1401
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 4 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
1401
1402
  x1: n.value.left,
1402
1403
  x2: n.value.right,
1403
1404
  y1: n.value.top + m.value * o,
@@ -1407,7 +1408,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1407
1408
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
1408
1409
  "stroke-linecap": "round"
1409
1410
  }, null, 8, rs))), 256)) : f("", !0),
1410
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(x, { key: 5 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
1411
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(w, { key: 5 }, S(v.value.end - v.value.start + 1, (a, o) => (s(), u("line", {
1411
1412
  x1: n.value.left + m.value * o,
1412
1413
  x2: n.value.left + m.value * o,
1413
1414
  y1: n.value.top,
@@ -1417,7 +1418,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1417
1418
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
1418
1419
  "stroke-linecap": "round"
1419
1420
  }, null, 8, ns))), 256)) : f("", !0),
1420
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), u(x, { key: 6 }, S(Y.value, (a, o) => (s(), u("line", {
1421
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 6 }, S(Y.value, (a, o) => (s(), u("line", {
1421
1422
  x1: a.horizontal_x,
1422
1423
  x2: a.horizontal_x,
1423
1424
  y1: n.value.top,
@@ -1427,12 +1428,12 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1427
1428
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
1428
1429
  "stroke-linecap": "round"
1429
1430
  }, null, 8, is))), 256)) : f("", !0),
1430
- (s(!0), u(x, null, S(z.value, (a, o) => (s(), u("g", null, [
1431
+ (s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
1431
1432
  t.$slots.pattern ? (s(), u("defs", us, [
1432
- L(t.$slots, "pattern", De({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${I.value}_${a.absoluteIndex}` }), void 0, !0)
1433
+ L(t.$slots, "pattern", De({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${R.value}_${a.absoluteIndex}` }), void 0, !0)
1433
1434
  ])) : f("", !0),
1434
- e.value.orientation === "vertical" ? (s(), u(x, { key: 1 }, [
1435
- (s(!0), u(x, null, S(a.x, (c, r) => (s(), u("rect", {
1435
+ e.value.orientation === "vertical" ? (s(), u(w, { key: 1 }, [
1436
+ (s(!0), u(w, null, S(a.x, (c, r) => (s(), u("rect", {
1436
1437
  x: c,
1437
1438
  y: b(de)(a.y[r]),
1438
1439
  height: a.height[r] < 0 ? 1e-4 : a.height[r] || 0,
@@ -1446,13 +1447,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1446
1447
  class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
1447
1448
  }, null, 10, cs))), 256)),
1448
1449
  t.$slots.pattern ? (s(), u("g", vs, [
1449
- (s(!0), u(x, null, S(a.x, (c, r) => (s(), u("rect", {
1450
+ (s(!0), u(w, null, S(a.x, (c, r) => (s(), u("rect", {
1450
1451
  x: c,
1451
1452
  y: b(de)(a.y[r]),
1452
1453
  height: a.height[r] < 0 ? 1e-4 : a.height[r] || 0,
1453
1454
  rx: e.value.style.chart.bars.borderRadius > a.height[r] / 2 ? (a.height[r] < 0 ? 0 : a.height[r]) / 2 : e.value.style.chart.bars.borderRadius,
1454
1455
  width: m.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1455
- fill: `url(#pattern_${I.value}_${a.absoluteIndex})`,
1456
+ fill: `url(#pattern_${R.value}_${a.absoluteIndex})`,
1456
1457
  stroke: e.value.style.chart.backgroundColor,
1457
1458
  "stroke-width": e.value.style.chart.bars.strokeWidth,
1458
1459
  "stroke-linecap": "round",
@@ -1460,8 +1461,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1460
1461
  class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
1461
1462
  }, null, 10, hs))), 256))
1462
1463
  ])) : f("", !0)
1463
- ], 64)) : (s(), u(x, { key: 2 }, [
1464
- (s(!0), u(x, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
1464
+ ], 64)) : (s(), u(w, { key: 2 }, [
1465
+ (s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
1465
1466
  x: b(de)(c, n.value.left),
1466
1467
  y: a.horizontal_y[r] < 0 ? 0 : a.horizontal_y[r],
1467
1468
  width: b(de)(a.horizontal_width[r] < 0 ? 1e-4 : a.horizontal_width[r]),
@@ -1475,13 +1476,13 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1475
1476
  class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": ie.value })
1476
1477
  }, null, 10, ds))), 256)),
1477
1478
  t.$slots.pattern ? (s(), u("g", ys, [
1478
- (s(!0), u(x, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
1479
+ (s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u("rect", {
1479
1480
  x: b(de)(c, n.value.left),
1480
1481
  y: a.horizontal_y[r] < 0 ? 0 : a.horizontal_y[r],
1481
1482
  width: b(de)(a.horizontal_width[r] < 0 ? 1e-4 : a.horizontal_width[r]),
1482
1483
  rx: e.value.style.chart.bars.borderRadius > a.height[r] / 2 ? (a.height[r] < 0 ? 0 : a.height[r]) / 2 : e.value.style.chart.bars.borderRadius,
1483
1484
  height: m.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1484
- fill: `url(#pattern_${I.value}_${a.absoluteIndex})`,
1485
+ fill: `url(#pattern_${R.value}_${a.absoluteIndex})`,
1485
1486
  stroke: e.value.style.chart.backgroundColor,
1486
1487
  "stroke-width": e.value.style.chart.bars.strokeWidth,
1487
1488
  "stroke-linecap": "round",
@@ -1534,9 +1535,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1534
1535
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1535
1536
  "text-anchor": "middle"
1536
1537
  }, E(e.value.style.chart.grid.y.axisName.text), 9, ps)) : f("", !0),
1537
- A.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(x, { key: 11 }, [
1538
- (s(!0), u(x, null, S(z.value, (a, o) => (s(), u("g", null, [
1539
- (s(!0), u(x, null, S(a.x, (c, r) => (s(), u(x, null, [
1538
+ $.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(w, { key: 11 }, [
1539
+ (s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
1540
+ (s(!0), u(w, null, S(a.x, (c, r) => (s(), u(w, null, [
1540
1541
  ka(a.series[r], a.proportions[r]) ? (s(), u("text", {
1541
1542
  key: 0,
1542
1543
  x: c + m.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
@@ -1553,7 +1554,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1553
1554
  ref_key: "sumTop",
1554
1555
  ref: rl
1555
1556
  }, [
1556
- (s(!0), u(x, null, S(ha.value, (a, o) => (s(), u(x, null, [
1557
+ (s(!0), u(w, null, S(ha.value, (a, o) => (s(), u(w, null, [
1557
1558
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || a.value !== 0 ? (s(), u("text", {
1558
1559
  key: 0,
1559
1560
  x: n.value.left + m.value * o + m.value / 2,
@@ -1566,9 +1567,9 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1566
1567
  ], 64))), 256))
1567
1568
  ], 512)) : f("", !0)
1568
1569
  ], 64)) : f("", !0),
1569
- A.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(x, { key: 12 }, [
1570
- (s(!0), u(x, null, S(z.value, (a, o) => (s(), u("g", null, [
1571
- (s(!0), u(x, null, S(a.horizontal_x, (c, r) => (s(), u(x, null, [
1570
+ $.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(w, { key: 12 }, [
1571
+ (s(!0), u(w, null, S(z.value, (a, o) => (s(), u("g", null, [
1572
+ (s(!0), u(w, null, S(a.horizontal_x, (c, r) => (s(), u(w, null, [
1572
1573
  ka(a.series[r], a.proportions[r]) ? (s(), u("text", {
1573
1574
  key: 0,
1574
1575
  x: c + (a.horizontal_width[r] < 0 ? 1e-4 : a.horizontal_width[r]) / 2,
@@ -1585,7 +1586,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1585
1586
  ref_key: "sumRight",
1586
1587
  ref: rt
1587
1588
  }, [
1588
- (s(!0), u(x, null, S(ha.value, (a, o) => (s(), u(x, null, [
1589
+ (s(!0), u(w, null, S(ha.value, (a, o) => (s(), u(w, null, [
1589
1590
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || a.value !== 0 ? (s(), u("text", {
1590
1591
  key: 0,
1591
1592
  x: Hl(o),
@@ -1603,7 +1604,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1603
1604
  ref_key: "scaleLabels",
1604
1605
  ref: ue
1605
1606
  }, [
1606
- (s(!0), u(x, null, S(Y.value, (a, o) => (s(), u("line", {
1607
+ (s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("line", {
1607
1608
  x1: n.value.left,
1608
1609
  x2: n.value.left - 6,
1609
1610
  y1: a.y,
@@ -1611,7 +1612,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1611
1612
  stroke: e.value.style.chart.grid.x.axisColor,
1612
1613
  "stroke-width": 1
1613
1614
  }, null, 8, Cs))), 256)),
1614
- (s(!0), u(x, null, S(Y.value, (a, o) => (s(), u("text", {
1615
+ (s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("text", {
1615
1616
  x: a.x,
1616
1617
  y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1617
1618
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1635,7 +1636,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1635
1636
  ref_key: "scaleLabels",
1636
1637
  ref: ue
1637
1638
  }, [
1638
- (s(!0), u(x, null, S(Y.value, (a, o) => (s(), u("line", {
1639
+ (s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("line", {
1639
1640
  x1: a.horizontal_x,
1640
1641
  x2: a.horizontal_x,
1641
1642
  y1: n.value.bottom,
@@ -1644,7 +1645,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1644
1645
  "stroke-width": 1,
1645
1646
  "stroke-linecap": "round"
1646
1647
  }, null, 8, zs))), 256)),
1647
- (s(!0), u(x, null, S(Y.value, (a, o) => (s(), u("text", {
1648
+ (s(!0), u(w, null, S(Y.value, (a, o) => (s(), u("text", {
1648
1649
  class: "vue-data-ui-time-label",
1649
1650
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1650
1651
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -1669,7 +1670,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1669
1670
  ref: ce
1670
1671
  }, [
1671
1672
  t.$slots["time-label"] ? (s(), u("g", _s, [
1672
- (s(!0), u(x, null, S(gt.value, (a, o) => (s(), u("g", null, [
1673
+ (s(!0), u(w, null, S(gt.value, (a, o) => (s(), u("g", null, [
1673
1674
  L(t.$slots, "time-label", De({ ref_for: !0 }, {
1674
1675
  x: n.value.left + m.value * o + m.value / 2,
1675
1676
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
@@ -1683,7 +1684,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1683
1684
  }), void 0, !0)
1684
1685
  ]))), 256))
1685
1686
  ])) : (s(), u("g", Ts, [
1686
- (s(!0), u(x, null, S(gt.value, (a, o) => (s(), u("g", null, [
1687
+ (s(!0), u(w, null, S(gt.value, (a, o) => (s(), u("g", null, [
1687
1688
  String(a.text).includes(`
1688
1689
  `) ? (s(), u("text", {
1689
1690
  key: o + "-multi",
@@ -1726,7 +1727,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1726
1727
  ref: ce
1727
1728
  }, [
1728
1729
  t.$slots["time-label"] ? (s(), u("g", Ps, [
1729
- (s(!0), u(x, null, S(R.value, (a, o) => (s(), u("g", null, [
1730
+ (s(!0), u(w, null, S(O.value, (a, o) => (s(), u("g", null, [
1730
1731
  L(t.$slots, "time-label", De({ ref_for: !0 }, {
1731
1732
  x: n.value.left - 8,
1732
1733
  y: n.value.top + m.value * o + m.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -1740,7 +1741,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1740
1741
  }), void 0, !0)
1741
1742
  ]))), 256))
1742
1743
  ])) : (s(), u("g", Ns, [
1743
- (s(!0), u(x, null, S(R.value, (a, o) => (s(), u("g", null, [
1744
+ (s(!0), u(w, null, S(O.value, (a, o) => (s(), u("g", null, [
1744
1745
  String(a.text).includes(`
1745
1746
  `) ? (s(), u("text", {
1746
1747
  key: 1,
@@ -1775,7 +1776,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1775
1776
  ]))), 256))
1776
1777
  ]))
1777
1778
  ], 512)) : f("", !0),
1778
- A.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(x, { key: 17 }, S(v.value.end - v.value.start, (a, o) => (s(), u("rect", {
1779
+ $.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(w, { key: 17 }, S(v.value.end - v.value.start, (a, o) => (s(), u("rect", {
1779
1780
  x: n.value.left + o * m.value,
1780
1781
  y: n.value.top,
1781
1782
  width: m.value,
@@ -1783,10 +1784,10 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1783
1784
  onClick: () => bt(o),
1784
1785
  onMouseenter: () => xt(o, "pointer"),
1785
1786
  onMouseleave: () => ya(o),
1786
- fill: o === W.value || o === it.value ? e.value.style.chart.highlighter.color : "transparent",
1787
+ fill: o === U.value || o === it.value ? e.value.style.chart.highlighter.color : "transparent",
1787
1788
  style: q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1788
1789
  }, null, 44, Rs))), 256)) : f("", !0),
1789
- A.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(x, { key: 18 }, S(v.value.end - v.value.start, (a, o) => (s(), u("rect", {
1790
+ $.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(w, { key: 18 }, S(v.value.end - v.value.start, (a, o) => (s(), u("rect", {
1790
1791
  x: n.value.left,
1791
1792
  y: n.value.top + o * m.value,
1792
1793
  width: n.value.width < 0 ? 0 : n.value.width,
@@ -1794,7 +1795,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1794
1795
  onClick: () => bt(o),
1795
1796
  onMouseenter: () => xt(o, "pointer"),
1796
1797
  onMouseleave: () => ya(o),
1797
- fill: o === W.value || o === it.value ? e.value.style.chart.highlighter.color : "transparent",
1798
+ fill: o === U.value || o === it.value ? e.value.style.chart.highlighter.color : "transparent",
1798
1799
  style: q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1799
1800
  }, null, 44, Os))), 256)) : f("", !0),
1800
1801
  la.value ? (s(), u("rect", De({ key: 19 }, ml.value, {
@@ -1817,7 +1818,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1817
1818
  t.$slots.watermark ? (s(), u("div", Vs, [
1818
1819
  L(t.$slots, "watermark", V(B({ isPrinting: b(ht) || b(dt) || Ve.value || Be.value })), void 0, !0)
1819
1820
  ])) : f("", !0),
1820
- e.value.style.chart.zoom.show && Le.value && Sa.value && N.value > 6 ? (s(), ee(Wo, {
1821
+ e.value.style.chart.zoom.show && Le.value && Sa.value && I.value > 6 ? (s(), ee(Wo, {
1821
1822
  key: 5,
1822
1823
  ref_key: "chartSlicer",
1823
1824
  ref: Ce,
@@ -1836,8 +1837,8 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1836
1837
  immediate: !e.value.style.chart.zoom.preview.enable,
1837
1838
  inputColor: e.value.style.chart.zoom.color,
1838
1839
  isPreview: la.value,
1839
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? R.value?.[0]?.text ?? "" : "",
1840
- labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? R.value?.at(-1)?.text ?? "" : "",
1840
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? O.value?.[0]?.text ?? "" : "",
1841
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? O.value?.at(-1)?.text ?? "" : "",
1841
1842
  max: Math.max(...tt.dataset.map((a) => a.series.length)),
1842
1843
  min: 0,
1843
1844
  minimap: ve.value,
@@ -1847,7 +1848,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1847
1848
  minimapMerged: !1,
1848
1849
  minimapSelectedColor: e.value.style.chart.zoom.minimap.selectedColor,
1849
1850
  minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
1850
- minimapSelectedIndex: W.value,
1851
+ minimapSelectedIndex: U.value,
1851
1852
  minimapSelectionRadius: 1,
1852
1853
  preciseLabels: va.value.length ? va.value : be.value,
1853
1854
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...tt.dataset.map((a) => a.series.length)),
@@ -1882,15 +1883,15 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1882
1883
  L(t.$slots, "reset-action", V(B({ reset: a })), void 0, !0)
1883
1884
  ]),
1884
1885
  slotMap: C(({ width: a, height: o, unitW: c }) => [
1885
- (s(!0), u(x, null, S(z.value, (r) => (s(), u("g", {
1886
+ (s(!0), u(w, null, S(z.value, (r) => (s(), u("g", {
1886
1887
  key: r.id
1887
1888
  }, [
1888
- (s(!0), u(x, null, S(r.xMinimap({ left: 0, unitW: c }), (d, k) => (s(), u("rect", {
1889
- key: k,
1890
- x: k === 0 ? d - c * (e.value.style.chart.bars.gapRatio / 4) : d - c / 2,
1891
- y: Math.max(0, Math.min(o, r.yMinimap({ minimapH: o })[k])),
1892
- height: r.heightMinimap({ minimapH: o })[k],
1893
- width: [0, N.value - 1].includes(k) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
1889
+ (s(!0), u(w, null, S(r.xMinimap({ left: 0, unitW: c }), (d, x) => (s(), u("rect", {
1890
+ key: x,
1891
+ x: x === 0 ? d - c * (e.value.style.chart.bars.gapRatio / 4) : d - c / 2,
1892
+ y: Math.max(0, Math.min(o, r.yMinimap({ minimapH: o })[x])),
1893
+ height: r.heightMinimap({ minimapH: o })[x],
1894
+ width: [0, I.value - 1].includes(x) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
1894
1895
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${r.id})` : r.color,
1895
1896
  stroke: e.value.style.chart.backgroundColor,
1896
1897
  "stroke-width": 0.5,
@@ -1898,7 +1899,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1898
1899
  "stroke-linecap": "round",
1899
1900
  "stroke-linejoin": "round",
1900
1901
  style: q({
1901
- opacity: k >= H.value.start && k <= H.value.end ? 1 : 0.62
1902
+ opacity: x >= W.value.start && x <= W.value.end ? 1 : 0.62
1902
1903
  })
1903
1904
  }, null, 12, Bs))), 128))
1904
1905
  ]))), 128))
@@ -1907,7 +1908,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1907
1908
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "isCursorPointer", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : f("", !0),
1908
1909
  Oe(b(Ya), {
1909
1910
  teleportTo: e.value.style.chart.tooltip.teleportTo,
1910
- show: A.value.showTooltip && ye.value,
1911
+ show: $.value.showTooltip && ye.value,
1911
1912
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1912
1913
  color: e.value.style.chart.tooltip.color,
1913
1914
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1937,11 +1938,11 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1937
1938
  _: 3
1938
1939
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1939
1940
  Z("div", {
1940
- id: `legend-bottom-${I.value}`
1941
+ id: `legend-bottom-${R.value}`
1941
1942
  }, null, 8, Us),
1942
1943
  Dt.value ? (s(), ee(co, {
1943
1944
  key: 6,
1944
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
1945
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
1945
1946
  }, [
1946
1947
  Z("div", {
1947
1948
  ref_key: "chartLegend",
@@ -1958,7 +1959,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1958
1959
  b(fe) ? f("", !0) : (s(), u("div", {
1959
1960
  key: 0,
1960
1961
  onClick: (o) => a.segregate(),
1961
- style: q(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
1962
+ style: q(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
1962
1963
  }, E(a.name), 13, Hs))
1963
1964
  ]),
1964
1965
  legendToggle: C(() => [
@@ -1967,7 +1968,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1967
1968
  backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1968
1969
  color: e.value.style.chart.legend.selectAllToggle.color,
1969
1970
  fontSize: e.value.style.chart.legend.fontSize,
1970
- checked: T.value.length > 0,
1971
+ checked: A.value.length > 0,
1971
1972
  isCursorPointer: X.value,
1972
1973
  onToggle: Ml
1973
1974
  }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : f("", !0)
@@ -1982,7 +1983,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
1982
1983
  radius: 30,
1983
1984
  stroke: "none",
1984
1985
  plot: { x: 30, y: 30 },
1985
- fill: `url(#pattern_${I.value}_${o})`
1986
+ fill: `url(#pattern_${R.value}_${o})`
1986
1987
  }, null, 8, ["shape", "fill"])
1987
1988
  ]),
1988
1989
  key: "0"
@@ -2063,7 +2064,7 @@ const qo = ["id"], Go = ["id"], Jo = ["id"], Ko = { style: { position: "relative
2063
2064
  ], !0)
2064
2065
  ], 46, qo));
2065
2066
  }
2066
- }, gr = /* @__PURE__ */ Yo(Xs, [["__scopeId", "data-v-6cbfc0f3"]]);
2067
+ }, gr = /* @__PURE__ */ Yo(Xs, [["__scopeId", "data-v-c875bbb3"]]);
2067
2068
  export {
2068
2069
  gr as default
2069
2070
  };