vue-data-ui 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
  42. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
  88. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
  89. package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
  90. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as te, useSlots as pa, computed as x, ref as b, onMounted as Ct, toRefs as xa, watch as De, shallowRef as _t, onBeforeUnmount as St, watchEffect as $t, nextTick as Tt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as ae, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as le, createVNode as xe, createSlots as Mt, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as ka } from "vue";
2
- import { u as wa, c as At, t as La, a as za, p as ke, b as Ca, C as se, d as _a, o as Nt, f as It, g as Sa, e as $a, an as we, ac as Rt, D as Ot, X as Ta, l as Ma, a9 as Le, F as Pt, k as ze, i as Q, I as Aa, a0 as Na, y as Vt, v as Ia, w as Ra, z as Oa } from "./index-B9Ct1B_p.js";
3
- import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
4
- import { u as Va } from "./usePrinter-DcZXg1hH.js";
5
- import { u as Ea, B as Da } from "./useLoading-D7YHNtLX.js";
6
- import { u as Et } from "./useNestedProp-C0gKxLur.js";
7
- import { u as Fa } from "./useTimeLabels-DkzmKfZn.js";
8
- import { u as Ha } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Ua } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as Ba } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import Wa from "./img-Cv4nScI0.js";
12
- import Ya from "./Title-CntvKJss.js";
13
- import { _ as Xa } from "./Shape-0sW2StrO.js";
14
- import Ga from "./Legend-CQsASoei.js";
15
- import { S as Ja } from "./Slicer-52shR-Vu.js";
16
- import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"], ja = { key: 1 }, el = ["id"], tl = ["stop-color"], al = ["stop-color"], ll = ["stop-color"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = { key: 0 }, hl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["transform", "font-size", "fill", "font-weight"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], _l = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Sl = { key: 0 }, $l = { key: 1 }, Tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ml = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Al = { key: 0 }, Nl = { key: 1 }, Il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ol = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Pl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Vl = {
1
+ import { defineAsyncComponent as ae, useSlots as xa, computed as x, ref as g, onMounted as Ct, toRefs as ka, watch as De, shallowRef as St, onBeforeUnmount as $t, watchEffect as Tt, nextTick as Mt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Q, normalizeClass as le, createBlock as H, createCommentVNode as d, renderSlot as L, createElementVNode as U, createVNode as xe, createSlots as At, withCtx as _, normalizeProps as B, guardReactiveProps as W, Fragment as b, renderList as m, mergeProps as Fe, toDisplayString as A, Teleport as wa, createTextVNode as La } from "vue";
2
+ import { u as za, c as Nt, t as _a, a as Ca, p as ke, b as Sa, C as se, d as $a, o as It, f as Rt, g as Ta, e as Ma, an as we, ac as Ot, D as Pt, X as Aa, l as Na, a9 as Le, F as Vt, k as ze, i as j, I as Ia, a0 as Ra, y as Et, v as Oa, w as Pa, z as Va } from "./index-DrRiscPm.js";
3
+ import { t as He, u as Ea } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Da } from "./usePrinter-CZk2ISUm.js";
5
+ import { u as Fa, B as Ha } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Dt } from "./useNestedProp-BXhArS-K.js";
7
+ import { u as Ua } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { u as Ba } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Wa } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Ya } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Xa from "./img-CBdOMFyn.js";
12
+ import Ga from "./Title-CINHji0n.js";
13
+ import { _ as Ja } from "./Shape-BHVN6hj0.js";
14
+ import qa from "./Legend-CevCqVZ5.js";
15
+ import { S as Za } from "./Slicer-BBjJsLlJ.js";
16
+ import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Qa = ["id"], ja = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height"], al = { key: 1 }, ll = ["id"], sl = ["stop-color"], rl = ["stop-color"], ol = ["stop-color"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], hl = { key: 0 }, vl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], gl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], bl = { key: 0 }, fl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xl = ["x", "y", "font-size", "fill", "font-weight"], kl = ["transform", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "fill", "font-weight"], Ll = ["x", "y", "font-size", "font-weight", "fill"], zl = ["x", "y", "font-size", "fill", "font-weight"], _l = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["x", "y", "font-size", "font-weight", "fill"], $l = ["x1", "x2", "y1", "y2", "stroke"], Tl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ml = { key: 0 }, Al = { key: 1 }, Nl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Il = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Rl = { key: 0 }, Ol = { key: 1 }, Pl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Vl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], El = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Dl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Fl = {
18
18
  key: 3,
19
19
  class: "vue-data-ui-watermark"
20
- }, El = ["onClick"], Dl = ["innerHTML"], Fl = {
20
+ }, Hl = ["id"], Ul = ["onClick"], Bl = ["innerHTML"], Wl = {
21
21
  __name: "vue-ui-stackbar",
22
22
  props: {
23
23
  config: {
@@ -34,20 +34,20 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
34
34
  }
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
- setup(Ce, { expose: Dt, emit: Ft }) {
38
- const Ht = te(() => import("./Tooltip-DF8e4iB9.js")), Ut = te(() => import("./vue-ui-accordion-B31QK9Hj.js")), Bt = te(() => import("./DataTable-osx68WLA.js")), Wt = te(() => import("./PenAndPaper-CdXspg5R.js")), Yt = te(() => import("./UserOptions-DQyIO0ts.js")), Xt = te(() => import("./PackageVersion-DZGrOKw5.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = Ce, _e = Ft, Se = x({
37
+ setup(_e, { expose: Ft, emit: Ht }) {
38
+ const Ut = ae(() => import("./Tooltip-hfdFRoLp.js")), Bt = ae(() => import("./vue-ui-accordion-s_m_NJzJ.js")), Wt = ae(() => import("./DataTable-CWzb1j8d.js")), Yt = ae(() => import("./PenAndPaper-C_R9vJkU.js")), Xt = ae(() => import("./UserOptions-r0epwyXR.js")), Gt = ae(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_stackbar: Jt } = za(), qt = xa(), f = _e, Ce = Ht, Se = x({
39
39
  get() {
40
40
  return !!f.dataset && f.dataset.length;
41
41
  },
42
42
  set(a) {
43
43
  return a;
44
44
  }
45
- }), P = b(null), V = b(At()), $e = b(!1), Te = b(null), Me = b(""), S = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ne = b(!1), ue = b(null), B = b(!1), Je = b(0), qt = b(0), Zt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), Kt = b(null), Ze = b(null);
45
+ }), V = g(null), T = g(Nt()), $e = g(!1), Te = g(null), Me = g(""), S = g([]), Ue = g(0), Be = g(null), We = g(null), Ye = g(null), Xe = g(null), Ge = g(0), ne = g(!1), ue = g(null), Y = g(!1), Je = g(0), Zt = g(0), Kt = g(0), qe = g(null), Ze = g(!1), Ae = g(null), Ne = g(null), X = g(null), G = g(null), Qt = g(null), Ke = g(null);
46
46
  Ct(() => {
47
- Pe();
47
+ Ze.value = !0, Pe();
48
48
  });
49
- const e = b(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Ea({
50
- ...xa(f),
49
+ const e = g(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Fa({
50
+ ...ka(f),
51
51
  FINAL_CONFIG: e,
52
52
  prepareConfig: Re,
53
53
  callback: () => {
@@ -67,7 +67,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
67
67
  color: "#CACACA"
68
68
  }
69
69
  ],
70
- skeletonConfig: La({
70
+ skeletonConfig: _a({
71
71
  defaultConfig: e.value,
72
72
  userConfig: {
73
73
  userOptions: { show: !1 },
@@ -116,28 +116,28 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
116
116
  }
117
117
  }
118
118
  })
119
- }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ha({ config: e.value }), { svgRef: je } = Ua({ config: e.value.style.chart.title });
119
+ }), { userOptionsVisible: Ie, setUserOptionsVisibility: Qe, keepUserOptionState: je } = Ba({ config: e.value }), { svgRef: et } = Wa({ config: e.value.style.chart.title });
120
120
  function Re() {
121
- const a = Et({
121
+ const a = Dt({
122
122
  userConfig: f.config,
123
- defaultConfig: Gt
123
+ defaultConfig: Jt
124
124
  });
125
125
  let l = {};
126
126
  return a.theme ? l = {
127
- ...Et({
128
- userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
127
+ ...Dt({
128
+ userConfig: Sa.vue_ui_stackbar[a.theme] || f.config,
129
129
  defaultConfig: a
130
130
  }),
131
- customPalette: za[a.theme] || ke
131
+ customPalette: Ca[a.theme] || ke
132
132
  } : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
133
133
  }
134
- const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
134
+ const tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), at = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
135
  De(() => f.config, (a) => {
136
- re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, qt.value += 1, Zt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
136
+ re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, Zt.value += 1, Kt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
137
137
  }, { deep: !0 }), De(() => f.dataset, (a) => {
138
- Array.isArray(a) && a.length > 0 && (he.value = !1), nt();
138
+ Array.isArray(a) && a.length > 0 && (he.value = !1), ut();
139
139
  }, { deep: !0 });
140
- const z = b({
140
+ const z = g({
141
141
  dataLabels: {
142
142
  show: e.value.style.chart.bars.dataLabels.show
143
143
  },
@@ -153,11 +153,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
153
153
  showTooltip: e.value.style.chart.tooltip.show
154
154
  };
155
155
  }, { immediate: !0 });
156
- const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Va({
157
- elementId: `stackbar_${V.value}`,
156
+ const { isPrinting: lt, isImaging: st, generatePdf: rt, generateImage: ot } = Da({
157
+ elementId: `stackbar_${T.value}`,
158
158
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
159
159
  options: e.value.userOptions.print
160
- }), j = b({
160
+ }), ee = g({
161
161
  width: e.value.style.chart.width,
162
162
  height: e.value.style.chart.height,
163
163
  paddingRatio: {
@@ -166,22 +166,22 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
166
166
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
167
167
  left: e.value.style.chart.padding.left / e.value.style.chart.width
168
168
  }
169
- }), Qt = x(() => _a(e.value.customPalette)), E = _t(null), ee = _t(null), ot = b(null);
169
+ }), jt = x(() => $a(e.value.customPalette)), E = St(null), te = St(null), it = g(null);
170
170
  Ct(() => {
171
171
  Pe();
172
172
  });
173
173
  const Oe = x(() => !!e.value.debug);
174
174
  function Pe() {
175
- if (Nt(f.dataset) ? (It({
175
+ if (It(f.dataset) ? (Rt({
176
176
  componentName: "VueUiStackbar",
177
177
  type: "dataset",
178
178
  debug: Oe.value
179
179
  }), he.value = !0) : f.dataset.forEach((a, l) => {
180
- Sa({
180
+ Ta({
181
181
  datasetObject: a,
182
182
  requiredAttributes: ["name", "series"]
183
183
  }).forEach((t) => {
184
- Se.value = !1, It({
184
+ Se.value = !1, Rt({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
@@ -189,90 +189,90 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
189
189
  debug: Oe.value
190
190
  }), he.value = !0;
191
191
  });
192
- }), Nt(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
193
- B.value = !0;
192
+ }), It(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
193
+ Y.value = !0;
194
194
  }, 10), e.value.responsive) {
195
195
  const a = He(() => {
196
- B.value = !1;
197
- const { width: l, height: t } = Pa({
198
- chart: P.value,
196
+ Y.value = !1;
197
+ const { width: l, height: t } = Ea({
198
+ chart: V.value,
199
199
  title: e.value.style.chart.title.text ? Be.value : null,
200
200
  legend: e.value.style.chart.legend.show ? We.value : null,
201
201
  slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
202
202
  source: Xe.value
203
203
  });
204
204
  requestAnimationFrame(() => {
205
- j.value.width = l, j.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
206
- B.value = !0;
205
+ ee.value.width = l, ee.value.height = t - 12, clearTimeout(it.value), it.value = setTimeout(() => {
206
+ Y.value = !0;
207
207
  }, 10);
208
208
  });
209
209
  });
210
- E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(a), ee.value = P.value.parentNode, E.value.observe(ee.value);
210
+ E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect()), E.value = new ResizeObserver(a), te.value = V.value.parentNode, E.value.observe(te.value);
211
211
  }
212
212
  Ve();
213
213
  }
214
- St(() => {
215
- E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
214
+ $t(() => {
215
+ E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
216
216
  });
217
- function jt() {
217
+ function ea() {
218
218
  let a = 0;
219
- e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((s, c) => {
219
+ e.value.orientation === "vertical" && X.value && (a = Array.from(X.value.querySelectorAll("text")).reduce((s, c) => {
220
220
  const u = c.getComputedTextLength();
221
221
  return u > s ? u : s;
222
- }, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((s, c) => {
222
+ }, 0)), e.value.orientation === "horizontal" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
223
223
  const u = c.getComputedTextLength();
224
224
  return u > s ? u : s;
225
225
  }, 0));
226
226
  const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
227
  return a + l + (l ? 24 : 0);
228
228
  }
229
- const ve = b(0), de = b(0), ea = He((a) => {
229
+ const ve = g(0), de = g(0), ta = He((a) => {
230
230
  ve.value = a;
231
231
  }, 100);
232
- $t((a) => {
233
- const l = e.value.orientation === "vertical" ? Y.value : W.value;
232
+ Tt((a) => {
233
+ const l = e.value.orientation === "vertical" ? G.value : X.value;
234
234
  if (!l) return;
235
235
  const t = new ResizeObserver((s) => {
236
- ea(s[0].contentRect.height);
236
+ ta(s[0].contentRect.height);
237
237
  });
238
238
  t.observe(l), a(() => t.disconnect());
239
239
  });
240
- const ta = He((a) => {
240
+ const aa = He((a) => {
241
241
  de.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
242
  }, 100);
243
- $t((a) => {
243
+ Tt((a) => {
244
244
  if (e.value.orientation === "vertical") return;
245
- const l = Ze.value;
245
+ const l = Ke.value;
246
246
  if (!l) return;
247
247
  const t = new ResizeObserver((s) => {
248
- ta(s[0].contentRect.width);
248
+ aa(s[0].contentRect.width);
249
249
  });
250
250
  t.observe(l), a(() => t.disconnect());
251
- }), St(() => {
251
+ }), $t(() => {
252
252
  ve.value = 0, de.value = 0;
253
253
  });
254
- const it = x(() => {
254
+ const nt = x(() => {
255
255
  let a = 0;
256
256
  Ae.value && (a = Ae.value.getBBox().height);
257
257
  let l = 0;
258
- return e.value.orientation === "vertical" && Y.value && (l = ve.value), e.value.orientation === "horizontal" && W.value && (l = ve.value), a + l;
258
+ return e.value.orientation === "vertical" && G.value && (l = ve.value), e.value.orientation === "horizontal" && X.value && (l = ve.value), a + l;
259
259
  }), n = x(() => {
260
- const { height: a, width: l } = j.value, { right: t } = j.value.paddingRatio;
260
+ const { height: a, width: l } = ee.value, { right: t } = ee.value.paddingRatio;
261
261
  let s = 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;
262
- e.value.style.chart.grid.y.axisLabels.show && (c = jt());
263
- const u = e.value.style.chart.padding.top + s, _ = l - l * t - de.value, X = a - e.value.style.chart.padding.bottom - it.value - s, G = e.value.style.chart.padding.left + c, J = l - G - l * t - de.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
262
+ e.value.style.chart.grid.y.axisLabels.show && (c = ea());
263
+ const u = e.value.style.chart.padding.top + s, C = l - l * t - de.value, J = a - e.value.style.chart.padding.bottom - nt.value - s, q = e.value.style.chart.padding.left + c, Z = l - q - l * t - de.value, O = a - u - e.value.style.chart.padding.bottom - nt.value - s;
264
264
  return {
265
265
  chartHeight: a,
266
266
  chartWidth: l,
267
267
  top: u,
268
- right: _,
269
- bottom: X,
270
- left: G,
271
- width: Math.max(0, J),
272
- height: Math.max(0, R)
268
+ right: C,
269
+ bottom: J,
270
+ left: q,
271
+ width: Math.max(0, Z),
272
+ height: Math.max(0, O)
273
273
  };
274
274
  }), D = x(() => ce.value.map((a, l) => {
275
- const t = $a(a.color) || Qt.value[l] || ke[l] || ke[l % ke.length];
275
+ const t = Ma(a.color) || jt.value[l] || ke[l] || ke[l % ke.length];
276
276
  return {
277
277
  ...a,
278
278
  // In distributed mode, all values are converted to positive
@@ -280,29 +280,29 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
280
280
  // Store signs to manage display of neg values in distributed mode
281
281
  signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
282
282
  absoluteIndex: l,
283
- id: At(),
283
+ id: Nt(),
284
284
  color: t
285
285
  };
286
- })), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = b({
286
+ })), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = g({
287
287
  start: 0,
288
288
  end: Math.max(...ce.value.map((a) => a.series.length))
289
289
  });
290
- function nt() {
290
+ function ut() {
291
291
  Ve();
292
292
  }
293
293
  async function Ve() {
294
- await Tt(), await Tt();
294
+ await Mt(), await Mt();
295
295
  const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...ce.value.map((c) => c.series.length));
296
- (a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(aa(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
296
+ (a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(la(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
297
297
  }
298
- function aa(a) {
298
+ function la(a) {
299
299
  const l = Math.max(...ce.value.map((t) => t.series.length));
300
300
  return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
301
301
  }
302
- const d = x(() => {
302
+ const y = x(() => {
303
303
  let a;
304
304
  return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
305
- }), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
305
+ }), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), sa = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
306
306
  ...a,
307
307
  series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
308
308
  }))).slice(h.value.start, h.value.end)), ye = x(() => {
@@ -317,8 +317,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
317
317
  series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
318
318
  })))
319
319
  };
320
- }), I = x(() => {
321
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...ye.value.positive), l = Math.min(...ye.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
320
+ }), R = x(() => {
321
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...ye.value.positive), l = Math.min(...ye.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Pt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
322
  return s.ticks.map((c) => ({
323
323
  zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
324
324
  y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
@@ -328,7 +328,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
328
328
  horizontal_y: n.value.bottom - 8,
329
329
  value: c
330
330
  }));
331
- }), $ = x(() => Fa({
331
+ }), $ = x(() => Ua({
332
332
  values: e.value.style.chart.grid.x.timeLabels.values,
333
333
  maxDatapoints: F.value,
334
334
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
@@ -337,37 +337,37 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
337
337
  })), w = x(() => {
338
338
  if (!Se.value && !re.value) return [];
339
339
  let a = Array(F.value).fill(0), l = Array(F.value).fill(0), t = Array(F.value).fill(0), s = Array(F.value).fill(0);
340
- const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, X = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, 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) : Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, 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: G, max: J } = X, R = J + (G >= 0 ? 0 : Math.abs(G)) || 1, T = n.value.height, pe = n.value.width, Lt = I.value[0] ? I.value[0].zero : n.value.bottom, zt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
340
+ const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, J = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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) : Pt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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: q, max: Z } = J, O = Z + (q >= 0 ? 0 : Math.abs(q)) || 1, M = n.value.height, pe = n.value.width, zt = R.value[0] ? R.value[0].zero : n.value.bottom, _t = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
341
341
  return D.value.filter((ie) => !S.value.includes(ie.id)).map((ie) => {
342
- const O = ie.series.slice(h.value.start, h.value.end), ha = ie.signedSeries.slice(h.value.start, h.value.end), va = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), da = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ya = O.map((p, k) => {
343
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
344
- let q, N;
345
- return p > 0 ? (N = T * A, q = Lt - N - a[k], a[k] += N) : (N = T * A, q = Lt + t[k], t[k] += Math.abs(N)), q;
346
- }), ga = O.map((p, k) => {
347
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
348
- let q, N;
349
- return p > 0 ? (N = pe * A, q = zt + l[k], l[k] += N) : (N = pe * A, q = zt - Math.abs(N) - s[k], s[k] += Math.abs(N)), q;
350
- }), ba = O.map((p, k) => {
351
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
352
- return p > 0 ? T * A : T * Math.abs(A);
353
- }), fa = O.map((p, k) => {
354
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
355
- return p > 0 ? pe * A : pe * Math.abs(A);
356
- }), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
342
+ const P = ie.series.slice(h.value.start, h.value.end), va = ie.signedSeries.slice(h.value.start, h.value.end), da = P.map((p, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ya = P.map((p, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ga = P.map((p, k) => {
343
+ const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
344
+ let K, I;
345
+ return p > 0 ? (I = M * N, K = zt - I - a[k], a[k] += I) : (I = M * N, K = zt + t[k], t[k] += Math.abs(I)), K;
346
+ }), ba = P.map((p, k) => {
347
+ const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
348
+ let K, I;
349
+ return p > 0 ? (I = pe * N, K = _t + l[k], l[k] += I) : (I = pe * N, K = _t - Math.abs(I) - s[k], s[k] += Math.abs(I)), K;
350
+ }), fa = P.map((p, k) => {
351
+ const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
352
+ return p > 0 ? M * N : M * Math.abs(N);
353
+ }), ma = P.map((p, k) => {
354
+ const N = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / O;
355
+ return p > 0 ? pe * N : pe * Math.abs(N);
356
+ }), pa = P.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
357
357
  return {
358
358
  ...ie,
359
- proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ma),
360
- series: O,
361
- signedSeries: ha,
362
- x: va,
363
- y: ya,
364
- height: ba,
365
- horizontal_width: fa,
366
- horizontal_y: da,
367
- horizontal_x: ga
359
+ proportions: P.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / pa),
360
+ series: P,
361
+ signedSeries: va,
362
+ x: da,
363
+ y: ga,
364
+ height: fa,
365
+ horizontal_width: ma,
366
+ horizontal_y: ya,
367
+ horizontal_x: ba
368
368
  };
369
369
  });
370
- }), ut = x(() => la.value.map((a, l) => ({
370
+ }), ct = x(() => sa.value.map((a, l) => ({
371
371
  value: a,
372
372
  sign: a >= 0 ? 1 : -1
373
373
  })));
@@ -376,7 +376,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
376
376
  return ze(
377
377
  e.value.style.chart.bars.dataLabels.formatter,
378
378
  u,
379
- Q({
379
+ j({
380
380
  p: e.value.style.chart.bars.dataLabels.prefix,
381
381
  v: u,
382
382
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -385,11 +385,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
385
385
  { datapoint: l, seriesIndex: t, datapointIndex: s }
386
386
  );
387
387
  }
388
- function ct(a, l, t, s) {
388
+ function ht(a, l, t, s) {
389
389
  return ze(
390
390
  e.value.style.chart.bars.dataLabels.formatter,
391
391
  a,
392
- Q({
392
+ j({
393
393
  v: isNaN(a) ? 0 : a,
394
394
  s: "%",
395
395
  r: e.value.style.chart.bars.dataLabels.rounding
@@ -397,7 +397,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
397
397
  { datapoint: l, seriesIndex: t, datapointIndex: s }
398
398
  );
399
399
  }
400
- function ht(a) {
400
+ function vt(a) {
401
401
  const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
402
402
  name: t.name,
403
403
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
@@ -405,9 +405,9 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
405
405
  color: t.color,
406
406
  id: t.id
407
407
  }));
408
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), _e("selectDatapoint", { datapoint: l, period: $.value[a] });
408
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ce("selectDatapoint", { datapoint: l, period: $.value[a] });
409
409
  }
410
- function vt(a) {
410
+ function dt(a) {
411
411
  return JSON.parse(JSON.stringify(w.value)).map((l) => ({
412
412
  name: l.name,
413
413
  absoluteIndex: l.absoluteIndex,
@@ -417,16 +417,16 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
417
417
  id: l.id
418
418
  }));
419
419
  }
420
- function dt(a) {
420
+ function yt(a) {
421
421
  if (e.value.events.datapointLeave) {
422
- const l = vt(a);
422
+ const l = dt(a);
423
423
  e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
424
424
  }
425
425
  $e.value = null, ue.value = null;
426
426
  }
427
- function yt(a) {
427
+ function gt(a) {
428
428
  ue.value = a, $e.value = !0;
429
- const l = e.value.style.chart.tooltip.customFormat, t = vt(a);
429
+ const l = e.value.style.chart.tooltip.customFormat, t = dt(a);
430
430
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
431
431
  datapoint: t,
432
432
  seriesIndex: a,
@@ -434,7 +434,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
434
434
  series: w.value
435
435
  };
436
436
  const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
437
- if (Vt(l) && Oa(() => l({
437
+ if (Et(l) && Va(() => l({
438
438
  seriesIndex: a,
439
439
  datapoint: t,
440
440
  series: w.value,
@@ -450,65 +450,65 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
450
450
  const {
451
451
  showValue: c,
452
452
  showPercentage: u,
453
- borderColor: _,
454
- roundingValue: X,
455
- roundingPercentage: G
453
+ borderColor: C,
454
+ roundingValue: J,
455
+ roundingPercentage: q
456
456
  } = e.value.style.chart.tooltip;
457
- let J = "";
458
- $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
459
- const R = [
457
+ let Z = "";
458
+ $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Z += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
459
+ const O = [
460
460
  c && u ? "(" : "",
461
461
  c && u ? ")" : ""
462
462
  ];
463
- t.reverse().forEach((T) => {
464
- J += `
463
+ t.reverse().forEach((M) => {
464
+ Z += `
465
465
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
466
- <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_${T.id})` : T.color}"/>${Jt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
467
- ${T.name}${c || u ? ":" : ""} ${c ? Q({
466
+ <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_${M.id})` : M.color}"/>${qt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${T.value}_${M.absoluteIndex})"/>` : ""}</svg>
467
+ ${M.name}${c || u ? ":" : ""} ${c ? j({
468
468
  p: e.value.style.chart.bars.dataLabels.prefix,
469
- v: T.value,
469
+ v: M.value,
470
470
  s: e.value.style.chart.bars.dataLabels.suffix,
471
- r: X
472
- }) : ""} ${R[0]}${u ? Q({
473
- v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
471
+ r: J
472
+ }) : ""} ${O[0]}${u ? j({
473
+ v: isNaN(M.value / s) ? 0 : Math.abs(M.value) / s * 100,
474
474
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
475
475
  s: "%",
476
- r: G
477
- }) : ""}${R[1]}
476
+ r: q
477
+ }) : ""}${O[1]}
478
478
  </div>
479
479
  `;
480
- }), Me.value = `<div>${J}</div>`;
480
+ }), Me.value = `<div>${Z}</div>`;
481
481
  }
482
482
  }
483
- const sa = x(() => j.value.width), ra = x(() => j.value.height);
484
- Ba({
485
- timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
483
+ const ra = x(() => ee.value.width), oa = x(() => ee.value.height);
484
+ Ya({
485
+ timeLabelsEls: e.value.orientation === "vertical" ? G : X,
486
486
  timeLabels: $,
487
487
  slicer: h,
488
488
  configRef: e,
489
489
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
490
490
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
491
491
  isAutoSize: !1,
492
- width: sa,
493
- height: ra,
492
+ width: ra,
493
+ height: oa,
494
494
  rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
495
495
  });
496
- function gt(a) {
496
+ function bt(a) {
497
497
  ne.value = a, Ue.value += 1;
498
498
  }
499
- function bt() {
499
+ function ft() {
500
500
  z.value.showTable = !z.value.showTable;
501
501
  }
502
- function ft() {
502
+ function mt() {
503
503
  z.value.dataLabels.show = !z.value.dataLabels.show;
504
504
  }
505
- function mt() {
505
+ function pt() {
506
506
  z.value.showTooltip = !z.value.showTooltip;
507
507
  }
508
- function oa() {
508
+ function ia() {
509
509
  return w.value;
510
510
  }
511
- const pt = x(() => {
511
+ const xt = x(() => {
512
512
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
513
513
  const a = w.value.map(({ name: t, color: s }) => ({
514
514
  label: t,
@@ -521,16 +521,16 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
521
521
  }), l.push(s);
522
522
  }), { head: a, body: l };
523
523
  });
524
- function xt(a = null) {
525
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...pt.value.head.map((_) => _.label)], s = pt.value.body, c = l.concat([t]).concat(s), u = Ia(c);
526
- a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
524
+ function kt(a = null) {
525
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...xt.value.head.map((C) => C.label)], s = xt.value.body, c = l.concat([t]).concat(s), u = Oa(c);
526
+ a ? a(u) : Pa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
527
527
  }
528
528
  const be = x(() => {
529
529
  const a = [""].concat(w.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>');
530
530
  let l = [];
531
531
  for (let c = 0; c < F.value; c += 1) {
532
- const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, X) => _ + X, 0);
533
- l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
532
+ const u = w.value.map((C) => C.series[c] ?? 0).reduce((C, J) => C + J, 0);
533
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
534
534
  }
535
535
  const t = {
536
536
  th: {
@@ -547,30 +547,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
547
547
  }, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
548
548
  return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
549
549
  });
550
- function ia(a, l) {
551
- if (_e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
550
+ function na(a, l) {
551
+ if (Ce("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
552
552
  S.value = S.value.filter((t) => t !== l.id);
553
553
  else {
554
554
  if (S.value.length === D.value.length - 1) return;
555
555
  S.value.push(l.id);
556
556
  }
557
557
  }
558
- const kt = x(() => D.value.map((a, l) => ({
558
+ const wt = x(() => D.value.map((a, l) => ({
559
559
  ...a,
560
560
  shape: "square"
561
561
  })).map((a) => ({
562
562
  ...a,
563
563
  opacity: S.value.includes(a.id) ? 0.5 : 1,
564
- segregate: () => ia(a.absoluteIndex, a),
564
+ segregate: () => na(a.absoluteIndex, a),
565
565
  isSegregated: S.value.includes(a.id)
566
- }))), na = x(() => ({
566
+ }))), ua = x(() => ({
567
567
  cy: "stackbar-legend",
568
568
  backgroundColor: e.value.style.chart.legend.backgroundColor,
569
569
  color: e.value.style.chart.legend.color,
570
570
  fontSize: e.value.style.chart.legend.fontSize,
571
571
  paddingBottom: 12,
572
572
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
573
- })), fe = b(!1);
573
+ })), fe = g(!1);
574
574
  function Ee() {
575
575
  fe.value = !fe.value;
576
576
  }
@@ -582,19 +582,19 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
582
582
  color: s.color,
583
583
  id: s.id
584
584
  }));
585
- _e("selectTimeLabel", {
585
+ Ce("selectTimeLabel", {
586
586
  datapoint: t,
587
587
  absoluteIndex: a.absoluteIndex,
588
588
  label: a.text
589
589
  });
590
590
  }
591
- const ua = x(() => Math.max(...w.value.flatMap((a) => a.series)));
592
- function wt(a, l) {
593
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : tt.value ? (et.value && Oe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > ua.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
591
+ const ca = x(() => Math.max(...w.value.flatMap((a) => a.series)));
592
+ function Lt(a, l) {
593
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? at.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : at.value ? (tt.value && Oe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > ca.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : tt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
594
594
  }
595
- async function ca({ scale: a = 2 } = {}) {
596
- if (!P.value) return;
597
- const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Wa({ domElement: P.value, base64: !0, img: !0, scale: a });
595
+ async function ha({ scale: a = 2 } = {}) {
596
+ if (!V.value) return;
597
+ const { width: l, height: t } = V.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Xa({ domElement: V.value, base64: !0, img: !0, scale: a });
598
598
  return {
599
599
  imageUri: c,
600
600
  base64: u,
@@ -604,34 +604,34 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
604
604
  aspectRatio: s
605
605
  };
606
606
  }
607
- return Dt({
608
- getData: oa,
609
- getImage: ca,
610
- generatePdf: st,
611
- generateCsv: xt,
612
- generateImage: rt,
613
- toggleTable: bt,
614
- toggleLabels: ft,
615
- toggleTooltip: mt,
607
+ return Ft({
608
+ getData: ia,
609
+ getImage: ha,
610
+ generatePdf: rt,
611
+ generateCsv: kt,
612
+ generateImage: ot,
613
+ toggleTable: ft,
614
+ toggleLabels: mt,
615
+ toggleTooltip: pt,
616
616
  toggleAnnotator: Ee,
617
- toggleFullscreen: gt
617
+ toggleFullscreen: bt
618
618
  }), (a, l) => (r(), o("div", {
619
- id: `stackbar_${V.value}`,
619
+ id: `stackbar_${T.value}`,
620
620
  ref_key: "stackbarChart",
621
- ref: P,
622
- class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
623
- style: Z(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
624
- onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
625
- onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
621
+ ref: V,
622
+ class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
623
+ style: Q(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
624
+ onMouseenter: l[4] || (l[4] = () => v(Qe)(!0)),
625
+ onMouseleave: l[5] || (l[5] = () => v(Qe)(!1))
626
626
  }, [
627
- e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
627
+ e.value.userOptions.buttons.annotator ? (r(), H(v(Yt), {
628
628
  key: 0,
629
- svgRef: v(je),
629
+ svgRef: v(et),
630
630
  backgroundColor: e.value.style.chart.backgroundColor,
631
631
  color: e.value.style.chart.color,
632
632
  active: fe.value,
633
633
  onClose: Ee
634
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
634
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
635
635
  L(a.$slots, "userConfig", {}, void 0, !0),
636
636
  e.value.style.chart.title.text ? (r(), o("div", {
637
637
  key: 1,
@@ -639,7 +639,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
639
639
  ref: Be,
640
640
  style: "width:100%;background:transparent;padding-bottom:24px"
641
641
  }, [
642
- (r(), K(Ya, {
642
+ (r(), H(Ga, {
643
643
  key: `title_${Je.value}`,
644
644
  config: {
645
645
  title: {
@@ -652,15 +652,18 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
652
652
  }
653
653
  }
654
654
  }, null, 8, ["config"]))
655
- ], 512)) : y("", !0),
656
- e.value.userOptions.show && Se.value && (v(Qe) || v(Ie)) ? (r(), K(v(Yt), {
655
+ ], 512)) : d("", !0),
656
+ U("div", {
657
+ id: `legend-top-${T.value}`
658
+ }, null, 8, ja),
659
+ e.value.userOptions.show && Se.value && (v(je) || v(Ie)) ? (r(), H(v(Xt), {
657
660
  ref: "details",
658
661
  key: `user_option_${Ue.value}`,
659
662
  backgroundColor: e.value.style.chart.backgroundColor,
660
663
  color: e.value.style.chart.color,
661
- isPrinting: v(at),
662
- isImaging: v(lt),
663
- uid: V.value,
664
+ isPrinting: v(lt),
665
+ isImaging: v(st),
666
+ uid: T.value,
664
667
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
665
668
  hasPdf: e.value.userOptions.buttons.pdf,
666
669
  hasImg: e.value.userOptions.buttons.img,
@@ -669,7 +672,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
669
672
  hasLabel: e.value.userOptions.buttons.labels,
670
673
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
671
674
  isFullscreen: ne.value,
672
- chartElement: P.value,
675
+ chartElement: V.value,
673
676
  position: e.value.userOptions.position,
674
677
  isTooltip: z.value.showTooltip,
675
678
  titles: { ...e.value.userOptions.buttonTitles },
@@ -677,91 +680,91 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
677
680
  isAnnotation: fe.value,
678
681
  callbacks: e.value.userOptions.callbacks,
679
682
  printScale: e.value.userOptions.print.scale,
680
- onToggleFullscreen: gt,
681
- onGeneratePdf: v(st),
682
- onGenerateCsv: xt,
683
- onGenerateImage: v(rt),
684
- onToggleTable: bt,
685
- onToggleLabels: ft,
686
- onToggleTooltip: mt,
683
+ onToggleFullscreen: bt,
684
+ onGeneratePdf: v(rt),
685
+ onGenerateCsv: kt,
686
+ onGenerateImage: v(ot),
687
+ onToggleTable: ft,
688
+ onToggleLabels: mt,
689
+ onToggleTooltip: pt,
687
690
  onToggleAnnotator: Ee,
688
- style: Z({
689
- visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
691
+ style: Q({
692
+ visibility: v(je) ? v(Ie) ? "visible" : "hidden" : "visible"
690
693
  })
691
- }, Mt({ _: 2 }, [
694
+ }, At({ _: 2 }, [
692
695
  a.$slots.menuIcon ? {
693
696
  name: "menuIcon",
694
- fn: C(({ isOpen: t, color: s }) => [
695
- L(a.$slots, "menuIcon", H(U({ isOpen: t, color: s })), void 0, !0)
697
+ fn: _(({ isOpen: t, color: s }) => [
698
+ L(a.$slots, "menuIcon", B(W({ isOpen: t, color: s })), void 0, !0)
696
699
  ]),
697
700
  key: "0"
698
701
  } : void 0,
699
702
  a.$slots.optionTooltip ? {
700
703
  name: "optionTooltip",
701
- fn: C(() => [
704
+ fn: _(() => [
702
705
  L(a.$slots, "optionTooltip", {}, void 0, !0)
703
706
  ]),
704
707
  key: "1"
705
708
  } : void 0,
706
709
  a.$slots.optionPdf ? {
707
710
  name: "optionPdf",
708
- fn: C(() => [
711
+ fn: _(() => [
709
712
  L(a.$slots, "optionPdf", {}, void 0, !0)
710
713
  ]),
711
714
  key: "2"
712
715
  } : void 0,
713
716
  a.$slots.optionCsv ? {
714
717
  name: "optionCsv",
715
- fn: C(() => [
718
+ fn: _(() => [
716
719
  L(a.$slots, "optionCsv", {}, void 0, !0)
717
720
  ]),
718
721
  key: "3"
719
722
  } : void 0,
720
723
  a.$slots.optionImg ? {
721
724
  name: "optionImg",
722
- fn: C(() => [
725
+ fn: _(() => [
723
726
  L(a.$slots, "optionImg", {}, void 0, !0)
724
727
  ]),
725
728
  key: "4"
726
729
  } : void 0,
727
730
  a.$slots.optionTable ? {
728
731
  name: "optionTable",
729
- fn: C(() => [
732
+ fn: _(() => [
730
733
  L(a.$slots, "optionTable", {}, void 0, !0)
731
734
  ]),
732
735
  key: "5"
733
736
  } : void 0,
734
737
  a.$slots.optionLabels ? {
735
738
  name: "optionLabels",
736
- fn: C(() => [
739
+ fn: _(() => [
737
740
  L(a.$slots, "optionLabels", {}, void 0, !0)
738
741
  ]),
739
742
  key: "6"
740
743
  } : void 0,
741
744
  a.$slots.optionFullscreen ? {
742
745
  name: "optionFullscreen",
743
- fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
744
- L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
746
+ fn: _(({ toggleFullscreen: t, isFullscreen: s }) => [
747
+ L(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
745
748
  ]),
746
749
  key: "7"
747
750
  } : void 0,
748
751
  a.$slots.optionAnnotator ? {
749
752
  name: "optionAnnotator",
750
- fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
751
- L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
753
+ fn: _(({ toggleAnnotator: t, isAnnotator: s }) => [
754
+ L(a.$slots, "optionAnnotator", B(W({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
752
755
  ]),
753
756
  key: "8"
754
757
  } : void 0
755
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
758
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
756
759
  (r(), o("svg", {
757
760
  ref_key: "svgRef",
758
- ref: je,
759
- xmlns: v(Ta),
761
+ ref: et,
762
+ xmlns: v(Aa),
760
763
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
761
- class: ae({ "vue-data-ui-loading": v(re) }),
762
- style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
764
+ class: le({ "vue-data-ui-loading": v(re) }),
765
+ style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
763
766
  }, [
764
- xe(v(Xt)),
767
+ xe(v(Gt)),
765
768
  a.$slots["chart-background"] ? (r(), o("foreignObject", {
766
769
  key: 0,
767
770
  x: n.value.left,
@@ -773,30 +776,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
773
776
  }
774
777
  }, [
775
778
  L(a.$slots, "chart-background", {}, void 0, !0)
776
- ], 8, Qa)) : y("", !0),
777
- e.value.style.chart.bars.gradient.show ? (r(), o("defs", ja, [
778
- (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("linearGradient", {
779
+ ], 8, tl)) : d("", !0),
780
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", al, [
781
+ (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("linearGradient", {
779
782
  id: `gradient_${t.id}`,
780
783
  x1: "0%",
781
784
  y1: "0%",
782
785
  x2: "0%",
783
786
  y2: "100%"
784
787
  }, [
785
- le("stop", {
788
+ U("stop", {
786
789
  offset: "0%",
787
790
  "stop-color": t.color
788
- }, null, 8, tl),
789
- le("stop", {
791
+ }, null, 8, sl),
792
+ U("stop", {
790
793
  offset: "61.8%",
791
- "stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
792
- }, null, 8, al),
793
- le("stop", {
794
+ "stop-color": v(Na)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
795
+ }, null, 8, rl),
796
+ U("stop", {
794
797
  offset: "100%",
795
798
  "stop-color": t.color
796
- }, null, 8, ll)
797
- ], 8, el))), 256))
798
- ])) : y("", !0),
799
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, s) => (r(), o("line", {
799
+ }, null, 8, ol)
800
+ ], 8, ll))), 256))
801
+ ])) : d("", !0),
802
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(R.value, (t, s) => (r(), o("line", {
800
803
  x1: n.value.left,
801
804
  x2: n.value.right,
802
805
  y1: t.y,
@@ -805,28 +808,28 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
805
808
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
806
809
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
807
810
  "stroke-linecap": "round"
808
- }, null, 8, sl))), 256)) : y("", !0),
809
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
811
+ }, null, 8, il))), 256)) : d("", !0),
812
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
810
813
  x1: n.value.left,
811
814
  x2: n.value.right,
812
- y1: n.value.top + d.value * s,
813
- y2: n.value.top + d.value * s,
815
+ y1: n.value.top + y.value * s,
816
+ y2: n.value.top + y.value * s,
814
817
  stroke: e.value.style.chart.grid.x.linesColor,
815
818
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
816
819
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
817
820
  "stroke-linecap": "round"
818
- }, null, 8, rl))), 256)) : y("", !0),
819
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
820
- x1: n.value.left + d.value * s,
821
- x2: n.value.left + d.value * s,
821
+ }, null, 8, nl))), 256)) : d("", !0),
822
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
823
+ x1: n.value.left + y.value * s,
824
+ x2: n.value.left + y.value * s,
822
825
  y1: n.value.top,
823
826
  y2: n.value.bottom,
824
827
  stroke: e.value.style.chart.grid.y.linesColor,
825
828
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
826
829
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
827
830
  "stroke-linecap": "round"
828
- }, null, 8, ol))), 256)) : y("", !0),
829
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, s) => (r(), o("line", {
831
+ }, null, 8, ul))), 256)) : d("", !0),
832
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(R.value, (t, s) => (r(), o("line", {
830
833
  x1: t.horizontal_x,
831
834
  x2: t.horizontal_x,
832
835
  y1: n.value.top,
@@ -835,69 +838,69 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
835
838
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
836
839
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
837
840
  "stroke-linecap": "round"
838
- }, null, 8, il))), 256)) : y("", !0),
839
- (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
840
- a.$slots.pattern ? (r(), o("defs", nl, [
841
- L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
842
- ])) : y("", !0),
843
- e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
844
- (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
841
+ }, null, 8, cl))), 256)) : d("", !0),
842
+ (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
843
+ a.$slots.pattern ? (r(), o("defs", hl, [
844
+ L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${T.value}_${t.absoluteIndex}` }), void 0, !0)
845
+ ])) : d("", !0),
846
+ e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
847
+ (r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
845
848
  x: c,
846
849
  y: t.y[u] < 0 ? 0 : t.y[u],
847
850
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
848
851
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
849
- width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
852
+ width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
850
853
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
851
854
  stroke: e.value.style.chart.backgroundColor,
852
855
  "stroke-width": e.value.style.chart.bars.strokeWidth,
853
856
  "stroke-linecap": "round",
854
857
  "stroke-linejoin": "round",
855
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
856
- }, null, 10, ul))), 256)),
857
- a.$slots.pattern ? (r(), o("g", cl, [
858
- (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
858
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
859
+ }, null, 10, vl))), 256)),
860
+ a.$slots.pattern ? (r(), o("g", dl, [
861
+ (r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
859
862
  x: c,
860
863
  y: t.y[u] < 0 ? 0 : t.y[u],
861
864
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
862
865
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
863
- width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
864
- fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
866
+ width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
867
+ fill: `url(#pattern_${T.value}_${t.absoluteIndex})`,
865
868
  stroke: e.value.style.chart.backgroundColor,
866
869
  "stroke-width": e.value.style.chart.bars.strokeWidth,
867
870
  "stroke-linecap": "round",
868
871
  "stroke-linejoin": "round",
869
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
870
- }, null, 10, hl))), 256))
871
- ])) : y("", !0)
872
- ], 64)) : (r(), o(g, { key: 2 }, [
873
- (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
872
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
873
+ }, null, 10, yl))), 256))
874
+ ])) : d("", !0)
875
+ ], 64)) : (r(), o(b, { key: 2 }, [
876
+ (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
874
877
  x: v(Le)(c, n.value.left),
875
878
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
876
879
  width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
877
880
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
878
- height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
881
+ height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
879
882
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
880
883
  stroke: e.value.style.chart.backgroundColor,
881
884
  "stroke-width": e.value.style.chart.bars.strokeWidth,
882
885
  "stroke-linecap": "round",
883
886
  "stroke-linejoin": "round",
884
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
885
- }, null, 10, vl))), 256)),
886
- a.$slots.pattern ? (r(), o("g", dl, [
887
- (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
887
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
888
+ }, null, 10, gl))), 256)),
889
+ a.$slots.pattern ? (r(), o("g", bl, [
890
+ (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
888
891
  x: v(Le)(c, n.value.left),
889
892
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
890
893
  width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
891
894
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
892
- height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
893
- fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
895
+ height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
896
+ fill: `url(#pattern_${T.value}_${t.absoluteIndex})`,
894
897
  stroke: e.value.style.chart.backgroundColor,
895
898
  "stroke-width": e.value.style.chart.bars.strokeWidth,
896
899
  "stroke-linecap": "round",
897
900
  "stroke-linejoin": "round",
898
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
899
- }, null, 10, yl))), 256))
900
- ])) : y("", !0)
901
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
902
+ }, null, 10, fl))), 256))
903
+ ])) : d("", !0)
901
904
  ], 64))
902
905
  ]))), 256)),
903
906
  e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
@@ -910,7 +913,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
910
913
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
911
914
  "stroke-linecap": "round",
912
915
  "stroke-linejoin": "round"
913
- }, null, 8, gl)) : y("", !0),
916
+ }, null, 8, ml)) : d("", !0),
914
917
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
915
918
  key: 7,
916
919
  x1: n.value.left,
@@ -921,7 +924,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
921
924
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
922
925
  "stroke-linecap": "round",
923
926
  "stroke-linejoin": "round"
924
- }, null, 8, bl)) : y("", !0),
927
+ }, null, 8, pl)) : d("", !0),
925
928
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
926
929
  key: 8,
927
930
  ref_key: "xAxisLabel",
@@ -932,7 +935,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
932
935
  fill: e.value.style.chart.grid.x.axisName.color,
933
936
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
934
937
  "text-anchor": "middle"
935
- }, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
938
+ }, A(e.value.style.chart.grid.x.axisName.text), 9, xl)) : d("", !0),
936
939
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
937
940
  key: 9,
938
941
  ref_key: "yAxisLabel",
@@ -942,109 +945,109 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
942
945
  fill: e.value.style.chart.grid.y.axisName.color,
943
946
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
944
947
  "text-anchor": "middle"
945
- }, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
946
- z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
947
- (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
948
- (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
949
- wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
948
+ }, A(e.value.style.chart.grid.y.axisName.text), 9, kl)) : d("", !0),
949
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
950
+ (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
951
+ (r(!0), o(b, null, m(t.x, (c, u) => (r(), o(b, null, [
952
+ Lt(t.series[u], t.proportions[u]) ? (r(), o("text", {
950
953
  key: 0,
951
- x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
954
+ x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
952
955
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
953
956
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
954
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
957
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Vt)(t.color) : e.value.style.chart.bars.dataLabels.color,
955
958
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
956
959
  "text-anchor": "middle"
957
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
960
+ }, A(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, wl)) : d("", !0)
958
961
  ], 64))), 256))
959
962
  ]))), 256)),
960
963
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
961
964
  key: 0,
962
965
  ref_key: "sumTop",
963
- ref: Kt
966
+ ref: Qt
964
967
  }, [
965
- (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
968
+ (r(!0), o(b, null, m(ct.value, (t, s) => (r(), o(b, null, [
966
969
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
967
970
  key: 0,
968
- x: n.value.left + d.value * s + d.value / 2,
971
+ x: n.value.left + y.value * s + y.value / 2,
969
972
  y: e.value.style.chart.bars.totalValues.fontSize,
970
973
  "text-anchor": "middle",
971
974
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
972
975
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
973
976
  fill: e.value.style.chart.bars.totalValues.color
974
- }, M(ge(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
977
+ }, A(ge(t.value, t, s, t.sign)), 9, Ll)) : d("", !0)
975
978
  ], 64))), 256))
976
- ], 512)) : y("", !0)
977
- ], 64)) : y("", !0),
978
- z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
979
- (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
980
- (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
981
- wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
979
+ ], 512)) : d("", !0)
980
+ ], 64)) : d("", !0),
981
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
982
+ (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
983
+ (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o(b, null, [
984
+ Lt(t.series[u], t.proportions[u]) ? (r(), o("text", {
982
985
  key: 0,
983
986
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
984
- y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
987
+ y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
985
988
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
986
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
989
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Vt)(t.color) : e.value.style.chart.bars.dataLabels.color,
987
990
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
988
991
  "text-anchor": "middle"
989
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
992
+ }, A(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, zl)) : d("", !0)
990
993
  ], 64))), 256))
991
994
  ]))), 256)),
992
995
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
993
996
  key: 0,
994
997
  ref_key: "sumRight",
995
- ref: Ze
998
+ ref: Ke
996
999
  }, [
997
- (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
1000
+ (r(!0), o(b, null, m(ct.value, (t, s) => (r(), o(b, null, [
998
1001
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
999
1002
  key: 0,
1000
1003
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
1001
- y: n.value.top + d.value * s + d.value / 2,
1004
+ y: n.value.top + y.value * s + y.value / 2,
1002
1005
  "text-anchor": "start",
1003
1006
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
1004
1007
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1005
1008
  fill: e.value.style.chart.bars.totalValues.color
1006
- }, M(ge(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
1009
+ }, A(ge(t.value, t, s, t.sign)), 9, _l)) : d("", !0)
1007
1010
  ], 64))), 256))
1008
- ], 512)) : y("", !0)
1009
- ], 64)) : y("", !0),
1011
+ ], 512)) : d("", !0)
1012
+ ], 64)) : d("", !0),
1010
1013
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
1011
1014
  key: 12,
1012
1015
  ref_key: "scaleLabels",
1013
- ref: W
1016
+ ref: X
1014
1017
  }, [
1015
- (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1018
+ (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
1016
1019
  x1: n.value.left,
1017
1020
  x2: n.value.left - 6,
1018
1021
  y1: t.y,
1019
1022
  y2: t.y,
1020
1023
  stroke: e.value.style.chart.grid.x.axisColor,
1021
1024
  "stroke-width": 1
1022
- }, null, 8, Ll))), 256)),
1023
- (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1025
+ }, null, 8, Cl))), 256)),
1026
+ (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
1024
1027
  x: t.x,
1025
1028
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1026
1029
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1027
1030
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1028
1031
  fill: e.value.style.chart.grid.y.axisLabels.color,
1029
1032
  "text-anchor": "end"
1030
- }, M(v(ze)(
1033
+ }, A(v(ze)(
1031
1034
  e.value.style.chart.grid.y.axisLabels.formatter,
1032
1035
  t.value,
1033
- v(Q)({
1036
+ v(j)({
1034
1037
  p: e.value.style.chart.bars.dataLabels.prefix,
1035
1038
  v: t.value,
1036
1039
  s: e.value.style.chart.bars.dataLabels.suffix,
1037
1040
  r: e.value.style.chart.grid.y.axisLabels.rounding
1038
1041
  }),
1039
1042
  { datapoint: t }
1040
- )), 9, zl))), 256))
1041
- ], 512)) : y("", !0),
1043
+ )), 9, Sl))), 256))
1044
+ ], 512)) : d("", !0),
1042
1045
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1043
1046
  key: 13,
1044
1047
  ref_key: "scaleLabels",
1045
- ref: W
1048
+ ref: X
1046
1049
  }, [
1047
- (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1050
+ (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("line", {
1048
1051
  x1: t.horizontal_x,
1049
1052
  x2: t.horizontal_x,
1050
1053
  y1: n.value.bottom,
@@ -1052,47 +1055,47 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1052
1055
  stroke: e.value.style.chart.grid.x.axisColor,
1053
1056
  "stroke-width": 1,
1054
1057
  "stroke-linecap": "round"
1055
- }, null, 8, Cl))), 256)),
1056
- (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1058
+ }, null, 8, $l))), 256)),
1059
+ (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
1057
1060
  class: "vue-data-ui-time-label",
1058
1061
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1059
1062
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1060
1063
  fill: e.value.style.chart.grid.y.axisLabels.color,
1061
1064
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1062
1065
  transform: `translate(${t.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
1063
- }, M(v(ze)(
1066
+ }, A(v(ze)(
1064
1067
  e.value.style.chart.grid.y.axisLabels.formatter,
1065
1068
  t.value,
1066
- v(Q)({
1069
+ v(j)({
1067
1070
  p: e.value.style.chart.bars.dataLabels.prefix,
1068
1071
  v: t.value,
1069
1072
  s: e.value.style.chart.bars.dataLabels.suffix,
1070
1073
  r: e.value.style.chart.grid.y.axisLabels.rounding
1071
1074
  }),
1072
1075
  { datapoint: t }
1073
- )), 9, _l))), 256))
1074
- ], 512)) : y("", !0),
1076
+ )), 9, Tl))), 256))
1077
+ ], 512)) : d("", !0),
1075
1078
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1076
1079
  key: 14,
1077
1080
  ref_key: "timeLabelsEls",
1078
- ref: Y
1081
+ ref: G
1079
1082
  }, [
1080
- a.$slots["time-label"] ? (r(), o("g", Sl, [
1081
- (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1083
+ a.$slots["time-label"] ? (r(), o("g", Ml, [
1084
+ (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1082
1085
  L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1083
- x: n.value.left + d.value * s + d.value / 2,
1086
+ x: n.value.left + y.value * s + y.value / 2,
1084
1087
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1085
1088
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1086
1089
  fill: e.value.style.chart.grid.x.timeLabels.color,
1087
- transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1090
+ transform: `translate(${n.value.left + y.value * s + y.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1088
1091
  absoluteIndex: t.absoluteIndex,
1089
1092
  content: t.text,
1090
1093
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1091
1094
  show: !0
1092
1095
  }), void 0, !0)
1093
1096
  ]))), 256))
1094
- ])) : (r(), o("g", $l, [
1095
- (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1097
+ ])) : (r(), o("g", Al, [
1098
+ (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1096
1099
  String(t.text).includes(`
1097
1100
  `) ? (r(), o("text", {
1098
1101
  key: s + "-multi",
@@ -1101,13 +1104,13 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1101
1104
  fill: e.value.style.chart.grid.x.timeLabels.color,
1102
1105
  transform: `
1103
1106
  translate(
1104
- ${n.value.left + d.value * s + d.value / 2},
1107
+ ${n.value.left + y.value * s + y.value / 2},
1105
1108
  ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1106
1109
  ),
1107
1110
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1108
1111
  `,
1109
1112
  style: { cursor: "pointer" },
1110
- innerHTML: v(Aa)({
1113
+ innerHTML: v(Ia)({
1111
1114
  content: String(t.text),
1112
1115
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1113
1116
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -1115,30 +1118,30 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1115
1118
  y: 0
1116
1119
  }),
1117
1120
  onClick: () => me(t, s)
1118
- }, null, 8, Ml)) : (r(), o("text", {
1121
+ }, null, 8, Il)) : (r(), o("text", {
1119
1122
  class: "vue-data-ui-time-label",
1120
1123
  key: s,
1121
1124
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1122
1125
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1123
1126
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1124
1127
  fill: e.value.style.chart.grid.x.timeLabels.color,
1125
- transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1128
+ transform: `translate(${n.value.left + y.value * s + y.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1126
1129
  style: { cursor: "pointer" },
1127
1130
  onClick: () => me(t, s)
1128
- }, M(t.text), 9, Tl))
1131
+ }, A(t.text), 9, Nl))
1129
1132
  ]))), 256))
1130
1133
  ]))
1131
- ], 512)) : y("", !0),
1134
+ ], 512)) : d("", !0),
1132
1135
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1133
1136
  key: 15,
1134
1137
  ref_key: "timeLabelsEls",
1135
- ref: Y
1138
+ ref: G
1136
1139
  }, [
1137
- a.$slots["time-label"] ? (r(), o("g", Al, [
1138
- (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1140
+ a.$slots["time-label"] ? (r(), o("g", Rl, [
1141
+ (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1139
1142
  L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1140
1143
  x: n.value.left - 8,
1141
- y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1144
+ y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1142
1145
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1143
1146
  fill: e.value.style.chart.grid.x.timeLabels.color,
1144
1147
  transform: null,
@@ -1148,8 +1151,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1148
1151
  show: !0
1149
1152
  }), void 0, !0)
1150
1153
  ]))), 256))
1151
- ])) : (r(), o("g", Nl, [
1152
- (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1154
+ ])) : (r(), o("g", Ol, [
1155
+ (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1153
1156
  String(t.text).includes(`
1154
1157
  `) ? (r(), o("text", {
1155
1158
  key: 1,
@@ -1158,66 +1161,66 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1158
1161
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1159
1162
  fill: e.value.style.chart.grid.y.axisLabels.color,
1160
1163
  x: n.value.left - 8,
1161
- y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1164
+ y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1162
1165
  style: { cursor: "pointer" },
1163
1166
  onClick: () => me(t, s),
1164
- innerHTML: v(Na)({
1167
+ innerHTML: v(Ra)({
1165
1168
  content: String(t.text),
1166
1169
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1167
1170
  fill: e.value.style.chart.grid.y.axisLabels.color,
1168
1171
  x: n.value.left - 8,
1169
1172
  y: 0
1170
1173
  })
1171
- }, null, 8, Rl)) : (r(), o("text", {
1174
+ }, null, 8, Vl)) : (r(), o("text", {
1172
1175
  key: 0,
1173
1176
  "text-anchor": "end",
1174
1177
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1175
1178
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1176
1179
  fill: e.value.style.chart.grid.y.axisLabels.color,
1177
1180
  x: n.value.left - 8,
1178
- y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1181
+ y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1179
1182
  style: {
1180
1183
  cursor: "pointer"
1181
1184
  },
1182
1185
  onClick: () => me(t, s)
1183
- }, M(t.text), 9, Il))
1186
+ }, A(t.text), 9, Pl))
1184
1187
  ]))), 256))
1185
1188
  ]))
1186
- ], 512)) : y("", !0),
1187
- z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1188
- x: n.value.left + s * d.value,
1189
+ ], 512)) : d("", !0),
1190
+ z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1191
+ x: n.value.left + s * y.value,
1189
1192
  y: n.value.top,
1190
- width: d.value,
1193
+ width: y.value,
1191
1194
  height: n.value.height < 0 ? 0 : n.value.height,
1192
- onClick: () => ht(s),
1193
- onMouseenter: () => yt(s),
1194
- onMouseleave: () => dt(s),
1195
+ onClick: () => vt(s),
1196
+ onMouseenter: () => gt(s),
1197
+ onMouseleave: () => yt(s),
1195
1198
  fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1196
- style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1197
- }, null, 44, Ol))), 256)) : y("", !0),
1198
- z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1199
+ style: Q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1200
+ }, null, 44, El))), 256)) : d("", !0),
1201
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1199
1202
  x: n.value.left,
1200
- y: n.value.top + s * d.value,
1203
+ y: n.value.top + s * y.value,
1201
1204
  width: n.value.width < 0 ? 0 : n.value.width,
1202
- height: d.value,
1203
- onClick: () => ht(s),
1204
- onMouseenter: () => yt(s),
1205
- onMouseleave: () => dt(s),
1205
+ height: y.value,
1206
+ onClick: () => vt(s),
1207
+ onMouseenter: () => gt(s),
1208
+ onMouseleave: () => yt(s),
1206
1209
  fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1207
- style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1208
- }, null, 44, Pl))), 256)) : y("", !0),
1209
- L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1210
- ], 14, Ka)),
1211
- a.$slots.watermark ? (r(), o("div", Vl, [
1212
- L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1213
- ])) : y("", !0),
1214
- le("div", {
1210
+ style: Q({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1211
+ }, null, 44, Dl))), 256)) : d("", !0),
1212
+ L(a.$slots, "svg", B(W({ ...n.value })), void 0, !0)
1213
+ ], 14, el)),
1214
+ a.$slots.watermark ? (r(), o("div", Fl, [
1215
+ L(a.$slots, "watermark", B(W({ isPrinting: v(lt) || v(st) })), void 0, !0)
1216
+ ])) : d("", !0),
1217
+ U("div", {
1215
1218
  ref_key: "chartSlicer",
1216
1219
  ref: Ye,
1217
- style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1220
+ style: Q(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1218
1221
  "data-dom-to-png-ignore": ""
1219
1222
  }, [
1220
- e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ja, {
1223
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), H(Za, {
1221
1224
  ref_key: "slicerComponent",
1222
1225
  ref: qe,
1223
1226
  key: `slicer_${Ge.value}`,
@@ -1230,7 +1233,7 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1230
1233
  textColor: e.value.style.chart.color,
1231
1234
  inputColor: e.value.style.chart.zoom.color,
1232
1235
  selectColor: e.value.style.chart.zoom.highlightColor,
1233
- max: Math.max(...Ce.dataset.map((t) => t.series.length)),
1236
+ max: Math.max(..._e.dataset.map((t) => t.series.length)),
1234
1237
  min: 0,
1235
1238
  valueStart: h.value.start,
1236
1239
  valueEnd: h.value.end,
@@ -1239,18 +1242,18 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1239
1242
  end: h.value.end,
1240
1243
  "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1241
1244
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1242
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Ce.dataset.map((t) => t.series.length)),
1245
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
1243
1246
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1244
1247
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1245
- onReset: nt
1248
+ onReset: ut
1246
1249
  }, {
1247
- "reset-action": C(({ reset: t }) => [
1248
- L(a.$slots, "reset-action", H(U({ reset: t })), void 0, !0)
1250
+ "reset-action": _(({ reset: t }) => [
1251
+ L(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
1249
1252
  ]),
1250
1253
  _: 3
1251
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1254
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
1252
1255
  ], 4),
1253
- xe(v(Ht), {
1256
+ xe(v(Ut), {
1254
1257
  show: z.value.showTooltip && $e.value,
1255
1258
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1256
1259
  color: e.value.style.chart.tooltip.color,
@@ -1261,68 +1264,76 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1261
1264
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1262
1265
  position: e.value.style.chart.tooltip.position,
1263
1266
  offsetY: e.value.style.chart.tooltip.offsetY,
1264
- parent: P.value,
1267
+ parent: V.value,
1265
1268
  content: Me.value,
1266
1269
  isFullscreen: ne.value,
1267
- isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
1270
+ isCustom: v(Et)(e.value.style.chart.tooltip.customFormat),
1268
1271
  smooth: e.value.style.chart.tooltip.smooth,
1269
1272
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1270
1273
  }, {
1271
- "tooltip-before": C(() => [
1272
- L(a.$slots, "tooltip-before", H(U({ ...Te.value })), void 0, !0)
1274
+ "tooltip-before": _(() => [
1275
+ L(a.$slots, "tooltip-before", B(W({ ...Te.value })), void 0, !0)
1273
1276
  ]),
1274
- "tooltip-after": C(() => [
1275
- L(a.$slots, "tooltip-after", H(U({ ...Te.value })), void 0, !0)
1277
+ "tooltip-after": _(() => [
1278
+ L(a.$slots, "tooltip-after", B(W({ ...Te.value })), void 0, !0)
1276
1279
  ]),
1277
1280
  _: 3
1278
1281
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1279
- le("div", {
1280
- ref_key: "chartLegend",
1281
- ref: We
1282
+ U("div", {
1283
+ id: `legend-bottom-${T.value}`
1284
+ }, null, 8, Hl),
1285
+ Ze.value ? (r(), H(wa, {
1286
+ key: 4,
1287
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${T.value}` : `#legend-bottom-${T.value}`
1282
1288
  }, [
1283
- e.value.style.chart.legend.show ? (r(), K(Ga, {
1284
- key: 0,
1285
- legendSet: kt.value,
1286
- config: na.value,
1287
- onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1288
- }, Mt({
1289
- item: C(({ legend: t }) => [
1290
- v(re) ? y("", !0) : (r(), o("div", {
1291
- key: 0,
1292
- onClick: (s) => t.segregate(),
1293
- style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1294
- }, M(t.name), 13, El))
1295
- ]),
1296
- _: 2
1289
+ U("div", {
1290
+ ref_key: "chartLegend",
1291
+ ref: We
1297
1292
  }, [
1298
- a.$slots.pattern ? {
1299
- name: "legend-pattern",
1300
- fn: C(({ legend: t, index: s }) => [
1301
- xe(Xa, {
1302
- shape: t.shape,
1303
- radius: 30,
1304
- stroke: "none",
1305
- plot: { x: 30, y: 30 },
1306
- fill: `url(#pattern_${V.value}_${s})`
1307
- }, null, 8, ["shape", "fill"])
1293
+ e.value.style.chart.legend.show ? (r(), H(qa, {
1294
+ key: 0,
1295
+ legendSet: wt.value,
1296
+ config: ua.value,
1297
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1298
+ }, At({
1299
+ item: _(({ legend: t }) => [
1300
+ v(re) ? d("", !0) : (r(), o("div", {
1301
+ key: 0,
1302
+ onClick: (s) => t.segregate(),
1303
+ style: Q(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1304
+ }, A(t.name), 13, Ul))
1308
1305
  ]),
1309
- key: "0"
1310
- } : void 0
1311
- ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1312
- key: 1,
1313
- legend: kt.value
1314
- }, void 0, !0)
1315
- ], 512),
1306
+ _: 2
1307
+ }, [
1308
+ a.$slots.pattern ? {
1309
+ name: "legend-pattern",
1310
+ fn: _(({ legend: t, index: s }) => [
1311
+ xe(Ja, {
1312
+ shape: t.shape,
1313
+ radius: 30,
1314
+ stroke: "none",
1315
+ plot: { x: 30, y: 30 },
1316
+ fill: `url(#pattern_${T.value}_${s})`
1317
+ }, null, 8, ["shape", "fill"])
1318
+ ]),
1319
+ key: "0"
1320
+ } : void 0
1321
+ ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1322
+ key: 1,
1323
+ legend: wt.value
1324
+ }, void 0, !0)
1325
+ ], 512)
1326
+ ], 8, ["to"])) : d("", !0),
1316
1327
  a.$slots.source ? (r(), o("div", {
1317
- key: 4,
1328
+ key: 5,
1318
1329
  ref_key: "source",
1319
1330
  ref: Xe,
1320
1331
  dir: "auto"
1321
1332
  }, [
1322
1333
  L(a.$slots, "source", {}, void 0, !0)
1323
- ], 512)) : y("", !0),
1324
- h.value.end - h.value.start < 200 ? (r(), K(v(Ut), {
1325
- key: 5,
1334
+ ], 512)) : d("", !0),
1335
+ h.value.end - h.value.start < 200 ? (r(), H(v(Bt), {
1336
+ key: 6,
1326
1337
  hideDetails: "",
1327
1338
  config: {
1328
1339
  open: z.value.showTable,
@@ -1337,8 +1348,8 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1337
1348
  }
1338
1349
  }
1339
1350
  }, {
1340
- content: C(() => [
1341
- xe(v(Bt), {
1351
+ content: _(() => [
1352
+ xe(v(Wt), {
1342
1353
  colNames: be.value.colNames,
1343
1354
  head: be.value.head,
1344
1355
  body: be.value.body,
@@ -1346,11 +1357,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1346
1357
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1347
1358
  onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
1348
1359
  }, {
1349
- th: C(({ th: t }) => [
1350
- le("div", { innerHTML: t }, null, 8, Dl)
1360
+ th: _(({ th: t }) => [
1361
+ U("div", { innerHTML: t }, null, 8, Bl)
1351
1362
  ]),
1352
- td: C(({ td: t }) => [
1353
- ka(M(isNaN(Number(t)) ? t : v(Q)({
1363
+ td: _(({ td: t }) => [
1364
+ La(A(isNaN(Number(t)) ? t : v(j)({
1354
1365
  p: e.value.style.chart.bars.dataLabels.prefix,
1355
1366
  v: t,
1356
1367
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1361,11 +1372,11 @@ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"]
1361
1372
  }, 8, ["colNames", "head", "body", "config", "title"])
1362
1373
  ]),
1363
1374
  _: 1
1364
- }, 8, ["config"])) : y("", !0),
1365
- v(re) ? (r(), K(Da, { key: 6 })) : y("", !0)
1366
- ], 46, Za));
1375
+ }, 8, ["config"])) : d("", !0),
1376
+ v(re) ? (r(), H(Ha, { key: 7 })) : d("", !0)
1377
+ ], 46, Qa));
1367
1378
  }
1368
- }, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-57c1b273"]]);
1379
+ }, is = /* @__PURE__ */ Ka(Wl, [["__scopeId", "data-v-2399f36e"]]);
1369
1380
  export {
1370
- ls as default
1381
+ is as default
1371
1382
  };