vue-data-ui 3.0.0-next.34 → 3.0.0-next.35

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 (89) hide show
  1. package/dist/{Arrow-7o1zcGGd.js → Arrow-9U-UjNas.js} +1 -1
  2. package/dist/{BaseDraggableDialog-fZ1Z5U4d.js → BaseDraggableDialog-CdaQDDs0.js} +2 -2
  3. package/dist/{BaseIcon-Cq9SmUOT.js → BaseIcon-DB8UP3sU.js} +1 -1
  4. package/dist/{ColorPicker-BNmC5tPY.js → ColorPicker-Cb3SgjWM.js} +2 -2
  5. package/dist/{DataTable-DonNp9Tn.js → DataTable-BvgiQ2JE.js} +2 -2
  6. package/dist/{Legend-De_LcU2x.js → Legend-DBh56vdD.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DCCmvppN.js → NonSvgPenAndPaper-fHaJC-dl.js} +3 -3
  8. package/dist/{PackageVersion-F_KOshQ5.js → PackageVersion-Bhohtzrj.js} +1 -1
  9. package/dist/{PenAndPaper-BzsPyqiU.js → PenAndPaper-vCj1-UEY.js} +3 -3
  10. package/dist/{Shape-CJI8rA0G.js → Shape-D2E4CMoi.js} +1 -1
  11. package/dist/{Slicer-BCCGJwNV.js → Slicer-1-SaJZ80.js} +2 -2
  12. package/dist/{SparkTooltip-ZSo6Sdhj.js → SparkTooltip-CE4BUH-_.js} +1 -1
  13. package/dist/{Title-CbfJu3Bz.js → Title-8eeSFss9.js} +1 -1
  14. package/dist/{Tooltip-BuuVsO8D.js → Tooltip-C7HgI7vF.js} +1 -1
  15. package/dist/{UserOptions-32osgWD2.js → UserOptions-Cxr0ZsfM.js} +2 -2
  16. package/dist/{dom-to-png-B4iPnzPd.js → dom-to-png-DDW5fRWT.js} +1 -1
  17. package/dist/{img-Domj-5hZ.js → img-czwmJka_.js} +1 -1
  18. package/dist/{index-BeBasrrG.js → index-Cy_OHCLi.js} +29 -1
  19. package/dist/{pdf-KclgkN6e.js → pdf-BLIP6Yoc.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +34 -1
  22. package/dist/types/vue-data-ui.d.ts +34 -1
  23. package/dist/{useNestedProp-BI69cynt.js → useNestedProp-Di0uuVL6.js} +1 -1
  24. package/dist/{usePrinter-DpTBVYGM.js → usePrinter-B3aBnAXo.js} +2 -2
  25. package/dist/{vue-data-ui-DfOSI-cw.js → vue-data-ui-C8hTMkHA.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-BFUcEqAl.js → vue-ui-3d-bar-BybaBB_P.js} +6 -6
  28. package/dist/{vue-ui-accordion-BBZQktvS.js → vue-ui-accordion-DJ7Cgx6-.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-C1fCszkG.js → vue-ui-age-pyramid-DPuw31_r.js} +6 -6
  30. package/dist/{vue-ui-annotator-BThZoiBl.js → vue-ui-annotator-BRVlhEK2.js} +2 -2
  31. package/dist/{vue-ui-bullet-D0-jL6aT.js → vue-ui-bullet-4NYyyaH9.js} +7 -7
  32. package/dist/{vue-ui-candlestick-BKY_1NxQ.js → vue-ui-candlestick-DEYGVnYY.js} +170 -165
  33. package/dist/{vue-ui-carousel-table-RqYXqUym.js → vue-ui-carousel-table-DBV6s3lm.js} +4 -4
  34. package/dist/{vue-ui-chestnut-QLx875w4.js → vue-ui-chestnut-EngIIDHp.js} +5 -5
  35. package/dist/{vue-ui-chord-rUYoYkRO.js → vue-ui-chord-B0lIgdaA.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-DX5resGr.js → vue-ui-circle-pack-D2_7Q03M.js} +6 -6
  37. package/dist/{vue-ui-cursor-Day-0aL1.js → vue-ui-cursor-B8W8SBMh.js} +2 -2
  38. package/dist/{vue-ui-dashboard-G0W4wq1U.js → vue-ui-dashboard-R18RfpNq.js} +62 -62
  39. package/dist/{vue-ui-digits-DFREi_Ky.js → vue-ui-digits-lDDMeEMg.js} +2 -2
  40. package/dist/{vue-ui-donut-BdxnEUCr.js → vue-ui-donut-C0QxZHSs.js} +8 -8
  41. package/dist/{vue-ui-donut-evolution-DYeMgZMU.js → vue-ui-donut-evolution-DMuOgr00.js} +176 -176
  42. package/dist/{vue-ui-dumbbell-ajhNYekO.js → vue-ui-dumbbell-BoehGkow.js} +7 -7
  43. package/dist/{vue-ui-flow-BOq3_apj.js → vue-ui-flow-CMpJ4VNW.js} +7 -7
  44. package/dist/{vue-ui-funnel-1Tc-WWAK.js → vue-ui-funnel-V-ep0uRk.js} +6 -6
  45. package/dist/{vue-ui-galaxy-DRdIquCv.js → vue-ui-galaxy-5_UI4rRC.js} +5 -5
  46. package/dist/{vue-ui-gauge-B0a3J_d1.js → vue-ui-gauge-DuPPfpX8.js} +6 -6
  47. package/dist/{vue-ui-gizmo-5G0uR26C.js → vue-ui-gizmo-DC0_MhU8.js} +3 -3
  48. package/dist/{vue-ui-heatmap-BGYSmKC-.js → vue-ui-heatmap-Du7CgmK0.js} +7 -7
  49. package/dist/{vue-ui-history-plot-kHo6293P.js → vue-ui-history-plot-DUAojY09.js} +7 -7
  50. package/dist/{vue-ui-kpi-6zONwNMN.js → vue-ui-kpi-DFqD1V27.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-XyVfmLch.js → vue-ui-mini-loader-Dhx_wzdm.js} +2 -2
  52. package/dist/{vue-ui-molecule-BoQKd6NP.js → vue-ui-molecule-F69F6eYS.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-DncLIzjX.js → vue-ui-mood-radar-Bx-4k7jY.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-DXMadqNK.js → vue-ui-nested-donuts-BVeoZkgI.js} +9 -9
  55. package/dist/{vue-ui-onion-CbtXXJHJ.js → vue-ui-onion-DHYlAXM7.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-D-zLAqYN.js → vue-ui-parallel-coordinate-plot-N5KtznHX.js} +8 -8
  57. package/dist/{vue-ui-quadrant-DqN9de-E.js → vue-ui-quadrant-BsQ8O9e6.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-fAHV8BFQ.js → vue-ui-quick-chart-Bocy5d7r.js} +6 -6
  59. package/dist/{vue-ui-radar-Dcr4Y35J.js → vue-ui-radar-ByUt1ys9.js} +7 -7
  60. package/dist/{vue-ui-rating-Y_X6wrM8.js → vue-ui-rating-C1KpOoZF.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-CsjfP4w3.js → vue-ui-relation-circle-Bw-A49Ol.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-COQZjWXD.js → vue-ui-ridgeline-g9JYjIcs.js} +11 -9
  63. package/dist/{vue-ui-rings-IWHU4YHR.js → vue-ui-rings-D4-dAblw.js} +8 -8
  64. package/dist/{vue-ui-scatter-zG4nPspJ.js → vue-ui-scatter-Ese_ubEo.js} +8 -8
  65. package/dist/{vue-ui-skeleton-BLCAe0aL.js → vue-ui-skeleton-DGCSWS6R.js} +3 -3
  66. package/dist/{vue-ui-smiley-CgMyaK6w.js → vue-ui-smiley-D-2kksbm.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-Dn2iTtuB.js → vue-ui-spark-trend-x900EpiA.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-BA_s34xX.js → vue-ui-sparkbar-t47Lq5jH.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-CGoeUY4p.js → vue-ui-sparkgauge-T8iByZV1.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-BuSn8iJi.js → vue-ui-sparkhistogram-D_ZvA5DH.js} +4 -4
  71. package/dist/{vue-ui-sparkline-CYJUhGaJ.js → vue-ui-sparkline-DQExYN7j.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-BDQWVxNP.js → vue-ui-sparkstackbar-9ywYLwLc.js} +3 -3
  73. package/dist/{vue-ui-stackbar-B92-pzwh.js → vue-ui-stackbar-Cpf9GA_9.js} +406 -400
  74. package/dist/{vue-ui-strip-plot-BLTjzATL.js → vue-ui-strip-plot-Dd31-kf1.js} +7 -7
  75. package/dist/{vue-ui-table-Ba7Z_7OX.js → vue-ui-table-ChP6rjYz.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-C29u3mfg.js → vue-ui-table-heatmap-sp_8-q-v.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-BLR9glHo.js → vue-ui-table-sparkline-D04Usdos.js} +4 -4
  78. package/dist/{vue-ui-thermometer-BAm6l97t.js → vue-ui-thermometer-tp3Zjpbn.js} +6 -6
  79. package/dist/{vue-ui-timer-CqbbNnBk.js → vue-ui-timer-xVlYHzJH.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-BnZr2Vrp.js → vue-ui-tiremarks-CkUbhFx0.js} +6 -6
  81. package/dist/{vue-ui-treemap-J8OANLCg.js → vue-ui-treemap-BpkTja9I.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-DdR3STYF.js → vue-ui-vertical-bar-CQ2y_LEJ.js} +9 -9
  83. package/dist/{vue-ui-waffle-w5VJA7gR.js → vue-ui-waffle-BzBS5B9r.js} +8 -8
  84. package/dist/{vue-ui-wheel-D5yea4oH.js → vue-ui-wheel-CEiRdkDJ.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-OugLGxgB.js → vue-ui-word-cloud-h7iNtGpT.js} +6 -6
  86. package/dist/{vue-ui-world-BSptBo4h.js → vue-ui-world-D6iHt4w8.js} +6 -6
  87. package/dist/{vue-ui-xy-DnYo2K58.js → vue-ui-xy-BtOdpKQf.js} +12 -11
  88. package/dist/{vue-ui-xy-canvas-Cmn0RWbG.js → vue-ui-xy-canvas-BvrKpXv1.js} +8 -8
  89. package/package.json +1 -1
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as ae, useSlots as fa, computed as x, ref as b, onMounted as Lt, toRefs as ma, watch as Fe, shallowRef as zt, onBeforeUnmount as Ct, watchEffect as St, nextTick as _t, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as le, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as we, createSlots as $t, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as De, toDisplayString as M, createTextVNode as pa } from "vue";
2
- import { u as xa, c as Tt, A as ka, t as wa, p as Le, a as La, C as se, b as za, o as Mt, e as At, g as Ca, d as Sa, an as ze, ac as Nt, D as It, X as _a, l as $a, aa as Ce, F as Rt, i as Se, f as j, I as Ta, a0 as Ma, x as Ot, q as Aa, r as Na, y as Ia } from "./index-BeBasrrG.js";
3
- import { u as Pt } from "./useNestedProp-BI69cynt.js";
4
- import { t as He, u as Ra } from "./useResponsive-DfdjqQps.js";
5
- import { u as Oa } from "./usePrinter-DpTBVYGM.js";
6
- import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Va } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as Ea } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Fa from "./Legend-De_LcU2x.js";
10
- import { S as Da } from "./Slicer-BCCGJwNV.js";
11
- import Ha from "./Title-CbfJu3Bz.js";
12
- import { _ as Ua } from "./Shape-CJI8rA0G.js";
13
- import { u as Ba } from "./useTimeLabels-DkzmKfZn.js";
14
- import Wa from "./img-Domj-5hZ.js";
15
- import { u as Ya, B as Xa } from "./BaseScanner-DIK2NTdp.js";
16
- import { _ as Ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"], Ka = { key: 1 }, Qa = ["id"], ja = ["stop-color"], el = ["stop-color"], tl = ["stop-color"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = { key: 0 }, il = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], hl = { key: 0 }, vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["transform", "font-size", "fill", "font-weight"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["x", "y", "font-size", "font-weight", "fill"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x1", "x2", "y1", "y2", "stroke"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Cl = { key: 0 }, Sl = { key: 1 }, _l = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], $l = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Tl = { key: 0 }, Ml = { key: 1 }, Al = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Nl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Rl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ol = {
1
+ import { defineAsyncComponent as ae, 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 le, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as ke, 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, A as La, t as za, p as we, a as Ca, C as se, b as _a, o as Nt, e as It, g as Sa, d as $a, an as Le, ac as Rt, D as Ot, X as Ta, l as Ma, aa as ze, F as Pt, i as Ce, f as j, I as Aa, a0 as Na, x as Vt, q as Ia, r as Ra, y as Oa } from "./index-Cy_OHCLi.js";
3
+ import { u as Et } from "./useNestedProp-Di0uuVL6.js";
4
+ import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Va } from "./usePrinter-B3aBnAXo.js";
6
+ import { u as Ea } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Da } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as Fa } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import Ha from "./Legend-DBh56vdD.js";
10
+ import { S as Ua } from "./Slicer-1-SaJZ80.js";
11
+ import Ba from "./Title-8eeSFss9.js";
12
+ import { _ as Wa } from "./Shape-D2E4CMoi.js";
13
+ import { u as Ya } from "./useTimeLabels-DkzmKfZn.js";
14
+ import Xa from "./img-czwmJka_.js";
15
+ import { u as Ga, B as Ja } from "./BaseScanner-DIK2NTdp.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 = {
18
18
  key: 3,
19
19
  class: "vue-data-ui-watermark"
20
- }, Pl = ["onClick"], Vl = ["innerHTML"], El = {
20
+ }, El = ["onClick"], Dl = ["innerHTML"], Fl = {
21
21
  __name: "vue-ui-stackbar",
22
22
  props: {
23
23
  config: {
@@ -34,20 +34,20 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
34
34
  }
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
- setup(_e, { expose: Vt, emit: Et }) {
38
- const Ft = ae(() => import("./vue-ui-accordion-BBZQktvS.js")), Dt = ae(() => import("./DataTable-DonNp9Tn.js")), Ht = ae(() => import("./PackageVersion-F_KOshQ5.js")), Ut = ae(() => import("./PenAndPaper-BzsPyqiU.js")), Bt = ae(() => import("./Tooltip-BuuVsO8D.js")), Wt = ae(() => import("./UserOptions-32osgWD2.js")), { vue_ui_stackbar: Yt } = xa(), Xt = fa(), f = _e, $e = Et, ne = x({
37
+ setup(_e, { expose: Dt, emit: Ft }) {
38
+ const Ht = ae(() => import("./vue-ui-accordion-DJ7Cgx6-.js")), Ut = ae(() => import("./DataTable-BvgiQ2JE.js")), Bt = ae(() => import("./PackageVersion-Bhohtzrj.js")), Wt = ae(() => import("./PenAndPaper-vCj1-UEY.js")), Yt = ae(() => import("./Tooltip-C7HgI7vF.js")), Xt = ae(() => import("./UserOptions-Cxr0ZsfM.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = _e, Se = Ft, ie = 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(Tt()), ue = b(!1), Te = b(null), Me = b(""), _ = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ce = b(!1), re = b(null), B = b(!1), Je = b(0), Gt = b(0), Jt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), qt = b(null), Ze = b(null);
46
- Lt(() => {
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);
46
+ Ct(() => {
47
47
  Pe();
48
48
  });
49
- const e = b(Re()), { loading: he, FINAL_DATASET: ve, manualLoading: de } = Ya({
50
- ...ma(f),
49
+ const e = b(Re()), { loading: ce, FINAL_DATASET: he, manualLoading: ve } = Ga({
50
+ ...xa(f),
51
51
  FINAL_CONFIG: e,
52
52
  prepareConfig: Re,
53
53
  callback: () => {
@@ -67,7 +67,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
67
67
  color: "#CACACA"
68
68
  }
69
69
  ],
70
- skeletonConfig: ka({
70
+ skeletonConfig: La({
71
71
  defaultConfig: e.value,
72
72
  userConfig: {
73
73
  userOptions: { show: !1 },
@@ -116,26 +116,26 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
116
116
  }
117
117
  }
118
118
  })
119
- }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Pa({ config: e.value }), { svgRef: je } = Va({ config: e.value.style.chart.title });
119
+ }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ea({ config: e.value }), { svgRef: je } = Da({ config: e.value.style.chart.title });
120
120
  function Re() {
121
- const a = Pt({
121
+ const a = Et({
122
122
  userConfig: f.config,
123
- defaultConfig: Yt
123
+ defaultConfig: Gt
124
124
  });
125
- let s = {};
126
- return a.theme ? s = {
127
- ...Pt({
128
- userConfig: La.vue_ui_stackbar[a.theme] || f.config,
125
+ let l = {};
126
+ return a.theme ? l = {
127
+ ...Et({
128
+ userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
129
129
  defaultConfig: a
130
130
  }),
131
- customPalette: wa[a.theme] || Le
132
- } : s = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? s.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : s.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? s.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : s.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? s.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : s.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? s.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : s.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? s.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : s.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? s.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : s.style.chart.bars.dataLabels.hideUnderPercentage = null, s;
131
+ customPalette: za[a.theme] || we
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
134
  const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
- Fe(() => f.config, (a) => {
136
- he.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, Gt.value += 1, Jt.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
- }, { deep: !0 }), Fe(() => f.dataset, (a) => {
138
- Array.isArray(a) && a.length > 0 && (de.value = !1), nt();
135
+ De(() => f.config, (a) => {
136
+ ce.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;
137
+ }, { deep: !0 }), De(() => f.dataset, (a) => {
138
+ Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
139
139
  }, { deep: !0 });
140
140
  const z = b({
141
141
  dataLabels: {
@@ -144,7 +144,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
144
144
  showTable: e.value.table.show,
145
145
  showTooltip: e.value.style.chart.tooltip.show
146
146
  });
147
- Fe(e, () => {
147
+ De(e, () => {
148
148
  z.value = {
149
149
  dataLabels: {
150
150
  show: e.value.style.chart.bars.dataLabels.show
@@ -153,7 +153,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["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 } = Oa({
156
+ const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Va({
157
157
  elementId: `stackbar_${V.value}`,
158
158
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
159
159
  options: e.value.userOptions.print
@@ -166,43 +166,43 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["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
- }), Zt = x(() => za(e.value.customPalette)), E = zt(null), te = zt(null), ot = b(null);
170
- Lt(() => {
169
+ }), Qt = x(() => _a(e.value.customPalette)), E = _t(null), te = _t(null), ot = b(null);
170
+ Ct(() => {
171
171
  Pe();
172
172
  });
173
173
  const Oe = x(() => !!e.value.debug);
174
174
  function Pe() {
175
- if (Mt(f.dataset) ? (At({
175
+ if (Nt(f.dataset) ? (It({
176
176
  componentName: "VueUiStackbar",
177
177
  type: "dataset",
178
178
  debug: Oe.value
179
- }), de.value = !0) : f.dataset.forEach((a, s) => {
180
- Ca({
179
+ }), ve.value = !0) : f.dataset.forEach((a, l) => {
180
+ Sa({
181
181
  datasetObject: a,
182
182
  requiredAttributes: ["name", "series"]
183
183
  }).forEach((t) => {
184
- ne.value = !1, At({
184
+ ie.value = !1, It({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
188
- index: s,
188
+ index: l,
189
189
  debug: Oe.value
190
- }), de.value = !0;
190
+ }), ve.value = !0;
191
191
  });
192
- }), Mt(f.dataset) || (de.value = e.value.loading), setTimeout(() => {
192
+ }), Nt(f.dataset) || (ve.value = e.value.loading), setTimeout(() => {
193
193
  B.value = !0;
194
194
  }, 10), e.value.responsive) {
195
195
  const a = He(() => {
196
196
  B.value = !1;
197
- const { width: s, height: t } = Ra({
197
+ const { width: l, height: t } = Pa({
198
198
  chart: P.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
- slicer: e.value.style.chart.zoom.show && D.value > 1 ? Ye.value : null,
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
- ee.value.width = s, ee.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
205
+ ee.value.width = l, ee.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
206
206
  B.value = !0;
207
207
  }, 10);
208
208
  });
@@ -211,169 +211,169 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
211
211
  }
212
212
  Ve();
213
213
  }
214
- Ct(() => {
214
+ St(() => {
215
215
  E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
216
216
  });
217
- function Kt() {
217
+ function jt() {
218
218
  let a = 0;
219
- e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((l, c) => {
219
+ e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((s, c) => {
220
220
  const u = c.getComputedTextLength();
221
- return u > l ? u : l;
222
- }, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((l, c) => {
221
+ return u > s ? u : s;
222
+ }, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((s, c) => {
223
223
  const u = c.getComputedTextLength();
224
- return u > l ? u : l;
224
+ return u > s ? u : s;
225
225
  }, 0));
226
- const s = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
- return a + s + (s ? 24 : 0);
226
+ const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
+ return a + l + (l ? 24 : 0);
228
228
  }
229
- const ye = b(0), ge = b(0), Qt = He((a) => {
230
- ye.value = a;
229
+ const de = b(0), ye = b(0), ea = He((a) => {
230
+ de.value = a;
231
231
  }, 100);
232
- St((a) => {
233
- const s = e.value.orientation === "vertical" ? Y.value : W.value;
234
- if (!s) return;
235
- const t = new ResizeObserver((l) => {
236
- Qt(l[0].contentRect.height);
232
+ $t((a) => {
233
+ const l = e.value.orientation === "vertical" ? Y.value : W.value;
234
+ if (!l) return;
235
+ const t = new ResizeObserver((s) => {
236
+ ea(s[0].contentRect.height);
237
237
  });
238
- t.observe(s), a(() => t.disconnect());
238
+ t.observe(l), a(() => t.disconnect());
239
239
  });
240
- const jt = He((a) => {
241
- ge.value = a + e.value.style.chart.bars.totalValues.fontSize;
240
+ const ta = He((a) => {
241
+ ye.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
242
  }, 100);
243
- St((a) => {
243
+ $t((a) => {
244
244
  if (e.value.orientation === "vertical") return;
245
- const s = Ze.value;
246
- if (!s) return;
247
- const t = new ResizeObserver((l) => {
248
- jt(l[0].contentRect.width);
245
+ const l = Ze.value;
246
+ if (!l) return;
247
+ const t = new ResizeObserver((s) => {
248
+ ta(s[0].contentRect.width);
249
249
  });
250
- t.observe(s), a(() => t.disconnect());
251
- }), Ct(() => {
252
- ye.value = 0, ge.value = 0;
250
+ t.observe(l), a(() => t.disconnect());
251
+ }), St(() => {
252
+ de.value = 0, ye.value = 0;
253
253
  });
254
254
  const it = x(() => {
255
255
  let a = 0;
256
256
  Ae.value && (a = Ae.value.getBBox().height);
257
- let s = 0;
258
- return e.value.orientation === "vertical" && Y.value && (s = ye.value), e.value.orientation === "horizontal" && W.value && (s = ye.value), a + s;
257
+ let l = 0;
258
+ return e.value.orientation === "vertical" && Y.value && (l = de.value), e.value.orientation === "horizontal" && W.value && (l = de.value), a + l;
259
259
  }), n = x(() => {
260
- const { height: a, width: s } = ee.value, { right: t } = ee.value.paddingRatio;
261
- let l = 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 = Kt());
263
- const u = e.value.style.chart.padding.top + l, S = s - s * t - ge.value, X = a - e.value.style.chart.padding.bottom - it.value - l, G = e.value.style.chart.padding.left + c, J = s - G - s * t - ge.value, R = a - u - e.value.style.chart.padding.bottom - it.value - l;
260
+ const { height: a, width: l } = ee.value, { right: t } = ee.value.paddingRatio;
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 - ye.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 - ye.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
264
264
  return {
265
265
  chartHeight: a,
266
- chartWidth: s,
266
+ chartWidth: l,
267
267
  top: u,
268
- right: S,
268
+ right: _,
269
269
  bottom: X,
270
270
  left: G,
271
271
  width: Math.max(0, J),
272
272
  height: Math.max(0, R)
273
273
  };
274
- }), F = x(() => ve.value.map((a, s) => {
275
- const t = Sa(a.color) || Zt.value[s] || Le[s] || Le[s % Le.length];
274
+ }), D = x(() => he.value.map((a, l) => {
275
+ const t = $a(a.color) || Qt.value[l] || we[l] || we[l % we.length];
276
276
  return {
277
277
  ...a,
278
278
  // In distributed mode, all values are converted to positive
279
- series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
279
+ series: JSON.parse(JSON.stringify(a.series)).map((s) => e.value.style.chart.bars.distributed ? Math.abs(s) : s),
280
280
  // Store signs to manage display of neg values in distributed mode
281
- signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
282
- absoluteIndex: s,
283
- id: Tt(),
281
+ signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
282
+ absoluteIndex: l,
283
+ id: At(),
284
284
  color: t
285
285
  };
286
- })), D = x(() => Math.max(...F.value.filter((a) => !_.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 = b({
287
287
  start: 0,
288
- end: Math.max(...ve.value.map((a) => a.series.length))
288
+ end: Math.max(...he.value.map((a) => a.series.length))
289
289
  });
290
290
  function nt() {
291
291
  Ve();
292
292
  }
293
293
  async function Ve() {
294
- await _t(), await _t();
295
- const { startIndex: a, endIndex: s } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...ve.value.map((c) => c.series.length));
296
- (a != null || s != null) && t ? (a != null && t.setStartValue(a), s != null && t.setEndValue(ea(s + 1))) : (h.value = { start: 0, end: l }, Ge.value += 1);
294
+ await Tt(), await Tt();
295
+ const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...he.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);
297
297
  }
298
- function ea(a) {
299
- const s = Math.max(...ve.value.map((t) => t.series.length));
300
- return a > s ? s : 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;
298
+ function aa(a) {
299
+ const l = Math.max(...he.value.map((t) => t.series.length));
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
302
  const d = 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(() => ze(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = x(() => ze(F.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
305
+ }), re = x(() => Le(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => Le(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
306
306
  ...a,
307
- series: a.series.map((s, t) => a.signedSeries[t] === -1 && s >= 0 ? -s : s)
308
- }))).slice(h.value.start, h.value.end)), be = x(() => {
309
- const a = F.value.filter((s) => !_.value.includes(s.id));
307
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
308
+ }))).slice(h.value.start, h.value.end)), ge = x(() => {
309
+ const a = D.value.filter((l) => !S.value.includes(l.id));
310
310
  return {
311
- positive: ze(a.map((s) => ({
312
- ...s,
313
- series: s.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
311
+ positive: Le(a.map((l) => ({
312
+ ...l,
313
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
314
314
  }))),
315
- negative: ze(a.map((s) => ({
316
- ...s,
317
- series: s.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
315
+ negative: Le(a.map((l) => ({
316
+ ...l,
317
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
318
318
  })))
319
319
  };
320
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(...be.value.positive), s = Math.min(...be.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(s) ? 0 : s, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Nt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : It(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
- return l.ticks.map((c) => ({
323
- zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
324
- y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
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(...ge.value.positive), l = Math.min(...ge.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);
322
+ return s.ticks.map((c) => ({
323
+ zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
324
+ y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
325
325
  x: n.value.left - 8,
326
- horizontal_zero: n.value.left + n.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
327
- horizontal_x: n.value.left + n.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
326
+ horizontal_zero: n.value.left + n.value.width * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
327
+ horizontal_x: n.value.left + n.value.width * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
328
328
  horizontal_y: n.value.bottom - 8,
329
329
  value: c
330
330
  }));
331
- }), $ = x(() => Ba({
331
+ }), $ = x(() => Ya({
332
332
  values: e.value.style.chart.grid.x.timeLabels.values,
333
- maxDatapoints: D.value,
333
+ maxDatapoints: F.value,
334
334
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
335
335
  start: h.value.start,
336
336
  end: h.value.end
337
337
  })), w = x(() => {
338
- if (!ne.value && !he.value) return [];
339
- let a = Array(D.value).fill(0), s = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
340
- const c = Math.max(...be.value.positive) || 0, u = Math.min(...be.value.negative), S = [-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) ? Nt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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) : It(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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, ke = n.value.width, kt = I.value[0] ? I.value[0].zero : n.value.bottom, wt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
341
- return F.value.filter((ie) => !_.value.includes(ie.id)).map((ie) => {
342
- const O = ie.series.slice(h.value.start, h.value.end), ua = ie.signedSeries.slice(h.value.start, h.value.end), ca = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ha = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), va = O.map((p, k) => {
343
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
338
+ if (!ie.value && !ce.value) return [];
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(...ge.value.positive) || 0, u = Math.min(...ge.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, xe = 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;
341
+ return D.value.filter((oe) => !S.value.includes(oe.id)).map((oe) => {
342
+ const O = oe.series.slice(h.value.start, h.value.end), ha = oe.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) / re.value[k] : (p || 0) / R;
344
344
  let q, N;
345
- return p > 0 ? (N = T * A, q = kt - N - a[k], a[k] += N) : (N = T * A, q = kt + t[k], t[k] += Math.abs(N)), q;
346
- }), da = O.map((p, k) => {
347
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
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) / re.value[k] : (p || 0) / R;
348
348
  let q, N;
349
- return p > 0 ? (N = ke * A, q = wt + s[k], s[k] += N) : (N = ke * A, q = wt - Math.abs(N) - l[k], l[k] += Math.abs(N)), q;
350
- }), ya = O.map((p, k) => {
351
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
349
+ return p > 0 ? (N = xe * A, q = zt + l[k], l[k] += N) : (N = xe * 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) / re.value[k] : (p || 0) / R;
352
352
  return p > 0 ? T * A : T * Math.abs(A);
353
- }), ga = 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 ? ke * A : ke * Math.abs(A);
356
- }), ba = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
353
+ }), fa = O.map((p, k) => {
354
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / R;
355
+ return p > 0 ? xe * A : xe * Math.abs(A);
356
+ }), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
357
357
  return {
358
- ...ie,
359
- proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ba),
358
+ ...oe,
359
+ proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / re.value[k] : (p || 0) / ma),
360
360
  series: O,
361
- signedSeries: ua,
362
- x: ca,
363
- y: va,
364
- height: ya,
365
- horizontal_width: ga,
366
- horizontal_y: ha,
367
- horizontal_x: da
361
+ signedSeries: ha,
362
+ x: va,
363
+ y: ya,
364
+ height: ba,
365
+ horizontal_width: fa,
366
+ horizontal_y: da,
367
+ horizontal_x: ga
368
368
  };
369
369
  });
370
- }), ut = x(() => ta.value.map((a, s) => ({
370
+ }), ut = x(() => la.value.map((a, l) => ({
371
371
  value: a,
372
372
  sign: a >= 0 ? 1 : -1
373
373
  })));
374
- function fe(a, s, t, l, c) {
374
+ function be(a, l, t, s, c) {
375
375
  const u = c === -1 && a >= 0 ? -a : a;
376
- return Se(
376
+ return Ce(
377
377
  e.value.style.chart.bars.dataLabels.formatter,
378
378
  u,
379
379
  j({
@@ -382,11 +382,11 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
382
382
  s: e.value.style.chart.bars.dataLabels.suffix,
383
383
  r: e.value.style.chart.bars.dataLabels.rounding
384
384
  }),
385
- { datapoint: s, seriesIndex: t, datapointIndex: l }
385
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
386
386
  );
387
387
  }
388
- function ct(a, s, t, l) {
389
- return Se(
388
+ function ct(a, l, t, s) {
389
+ return Ce(
390
390
  e.value.style.chart.bars.dataLabels.formatter,
391
391
  a,
392
392
  j({
@@ -394,43 +394,53 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
394
394
  s: "%",
395
395
  r: e.value.style.chart.bars.dataLabels.rounding
396
396
  }),
397
- { datapoint: s, seriesIndex: t, datapointIndex: l }
397
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
398
398
  );
399
399
  }
400
400
  function ht(a) {
401
- const s = JSON.parse(JSON.stringify(w.value)).map((t) => ({
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,
404
404
  proportion: t.proportions[a] || null,
405
405
  color: t.color,
406
406
  id: t.id
407
407
  }));
408
- $e("selectDatapoint", { datapoint: s, period: $.value[a] });
408
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Se("selectDatapoint", { datapoint: l, period: $.value[a] });
409
409
  }
410
410
  function vt(a) {
411
- re.value = a, ue.value = !0;
412
- const s = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
413
- name: c.name,
414
- absoluteIndex: c.absoluteIndex,
415
- value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
416
- proportion: c.proportions[a] || null,
417
- color: c.color,
418
- id: c.id
411
+ return JSON.parse(JSON.stringify(w.value)).map((l) => ({
412
+ name: l.name,
413
+ absoluteIndex: l.absoluteIndex,
414
+ value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
415
+ proportion: l.proportions[a] || null,
416
+ color: l.color,
417
+ id: l.id
419
418
  }));
420
- Te.value = {
419
+ }
420
+ function dt(a) {
421
+ if (e.value.events.datapointLeave) {
422
+ const l = vt(a);
423
+ e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
424
+ }
425
+ $e.value = null, ue.value = null;
426
+ }
427
+ function yt(a) {
428
+ ue.value = a, $e.value = !0;
429
+ const l = e.value.style.chart.tooltip.customFormat, t = vt(a);
430
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
421
431
  datapoint: t,
422
432
  seriesIndex: a,
423
433
  config: e.value,
424
434
  series: w.value
425
435
  };
426
- const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
427
- if (Ot(s) && Ia(() => s({
436
+ const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
437
+ if (Vt(l) && Oa(() => l({
428
438
  seriesIndex: a,
429
439
  datapoint: t,
430
440
  series: w.value,
431
441
  config: e.value
432
442
  })))
433
- Me.value = s({
443
+ Me.value = l({
434
444
  seriesIndex: a,
435
445
  datapoint: t,
436
446
  series: w.value,
@@ -440,12 +450,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
440
450
  const {
441
451
  showValue: c,
442
452
  showPercentage: u,
443
- borderColor: S,
453
+ borderColor: _,
444
454
  roundingValue: X,
445
455
  roundingPercentage: G
446
456
  } = e.value.style.chart.tooltip;
447
457
  let J = "";
448
- $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${S};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
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>`);
449
459
  const R = [
450
460
  c && u ? "(" : "",
451
461
  c && u ? ")" : ""
@@ -453,14 +463,14 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
453
463
  t.reverse().forEach((T) => {
454
464
  J += `
455
465
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
456
- <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}"/>${Xt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
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>
457
467
  ${T.name}${c || u ? ":" : ""} ${c ? j({
458
468
  p: e.value.style.chart.bars.dataLabels.prefix,
459
469
  v: T.value,
460
470
  s: e.value.style.chart.bars.dataLabels.suffix,
461
471
  r: X
462
472
  }) : ""} ${R[0]}${u ? j({
463
- v: isNaN(T.value / l) ? 0 : Math.abs(T.value) / l * 100,
473
+ v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
464
474
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
465
475
  s: "%",
466
476
  r: G
@@ -470,8 +480,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
470
480
  }), Me.value = `<div>${J}</div>`;
471
481
  }
472
482
  }
473
- const aa = x(() => ee.value.width), la = x(() => ee.value.height);
474
- Ea({
483
+ const sa = x(() => ee.value.width), ra = x(() => ee.value.height);
484
+ Fa({
475
485
  timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
476
486
  timeLabels: $,
477
487
  slicer: h,
@@ -479,47 +489,47 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
479
489
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
480
490
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
481
491
  isAutoSize: !1,
482
- width: aa,
483
- height: la
492
+ width: sa,
493
+ height: ra
484
494
  });
485
- function dt(a) {
486
- ce.value = a, Ue.value += 1;
495
+ function gt(a) {
496
+ ne.value = a, Ue.value += 1;
487
497
  }
488
- function yt() {
498
+ function bt() {
489
499
  z.value.showTable = !z.value.showTable;
490
500
  }
491
- function gt() {
501
+ function ft() {
492
502
  z.value.dataLabels.show = !z.value.dataLabels.show;
493
503
  }
494
- function bt() {
504
+ function mt() {
495
505
  z.value.showTooltip = !z.value.showTooltip;
496
506
  }
497
- function sa() {
507
+ function oa() {
498
508
  return w.value;
499
509
  }
500
- const ft = x(() => {
510
+ const pt = x(() => {
501
511
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
502
- const a = w.value.map(({ name: t, color: l }) => ({
512
+ const a = w.value.map(({ name: t, color: s }) => ({
503
513
  label: t,
504
- color: l
505
- })), s = [];
514
+ color: s
515
+ })), l = [];
506
516
  return $.value.forEach((t) => {
507
- const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
508
- F.value.forEach((c) => {
509
- l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
510
- }), s.push(l);
511
- }), { head: a, body: s };
517
+ const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
518
+ D.value.forEach((c) => {
519
+ s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
520
+ }), l.push(s);
521
+ }), { head: a, body: l };
512
522
  });
513
- function mt(a = null) {
514
- const s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...ft.value.head.map((S) => S.label)], l = ft.value.body, c = s.concat([t]).concat(l), u = Aa(c);
515
- a ? a(u) : Na({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
523
+ function xt(a = null) {
524
+ 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);
525
+ a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
516
526
  }
517
- const me = x(() => {
527
+ const fe = x(() => {
518
528
  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>');
519
- let s = [];
520
- for (let c = 0; c < D.value; c += 1) {
521
- const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, X) => S + X, 0);
522
- s.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((S) => (S.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
529
+ let l = [];
530
+ for (let c = 0; c < F.value; c += 1) {
531
+ const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, X) => _ + X, 0);
532
+ 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)));
523
533
  }
524
534
  const t = {
525
535
  th: {
@@ -533,92 +543,92 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
533
543
  outline: e.value.table.td.outline
534
544
  },
535
545
  breakpoint: e.value.table.responsiveBreakpoint
536
- }, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
537
- return { head: a, body: s.slice(0, h.value.end - h.value.start), config: t, colNames: l };
546
+ }, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
547
+ return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
538
548
  });
539
- function ra(a, s) {
540
- if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(s.id))
541
- _.value = _.value.filter((t) => t !== s.id);
549
+ function ia(a, l) {
550
+ if (Se("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
551
+ S.value = S.value.filter((t) => t !== l.id);
542
552
  else {
543
- if (_.value.length === F.value.length - 1) return;
544
- _.value.push(s.id);
553
+ if (S.value.length === D.value.length - 1) return;
554
+ S.value.push(l.id);
545
555
  }
546
556
  }
547
- const pt = x(() => F.value.map((a, s) => ({
557
+ const kt = x(() => D.value.map((a, l) => ({
548
558
  ...a,
549
559
  shape: "square"
550
560
  })).map((a) => ({
551
561
  ...a,
552
- opacity: _.value.includes(a.id) ? 0.5 : 1,
553
- segregate: () => ra(a.absoluteIndex, a),
554
- isSegregated: _.value.includes(a.id)
555
- }))), oa = x(() => ({
562
+ opacity: S.value.includes(a.id) ? 0.5 : 1,
563
+ segregate: () => ia(a.absoluteIndex, a),
564
+ isSegregated: S.value.includes(a.id)
565
+ }))), na = x(() => ({
556
566
  cy: "stackbar-legend",
557
567
  backgroundColor: e.value.style.chart.legend.backgroundColor,
558
568
  color: e.value.style.chart.legend.color,
559
569
  fontSize: e.value.style.chart.legend.fontSize,
560
570
  paddingBottom: 12,
561
571
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
562
- })), pe = b(!1);
572
+ })), me = b(!1);
563
573
  function Ee() {
564
- pe.value = !pe.value;
574
+ me.value = !me.value;
565
575
  }
566
- function xe(a, s) {
567
- const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
568
- name: l.name,
569
- value: l.series[s] === 0 ? 0 : (l.signedSeries[s] === -1 && l.series[s] >= 0 ? -l.series[s] : l.series[s]) || null,
570
- proportion: l.proportions[s] || null,
571
- color: l.color,
572
- id: l.id
576
+ function pe(a, l) {
577
+ const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
578
+ name: s.name,
579
+ value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
580
+ proportion: s.proportions[l] || null,
581
+ color: s.color,
582
+ id: s.id
573
583
  }));
574
- $e("selectTimeLabel", {
584
+ Se("selectTimeLabel", {
575
585
  datapoint: t,
576
586
  absoluteIndex: a.absoluteIndex,
577
587
  label: a.text
578
588
  });
579
589
  }
580
- const ia = x(() => Math.max(...w.value.flatMap((a) => a.series)));
581
- function xt(a, s) {
582
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? s * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? s > 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 > ia.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;
590
+ const ua = x(() => Math.max(...w.value.flatMap((a) => a.series)));
591
+ function wt(a, l) {
592
+ 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;
583
593
  }
584
- async function na({ scale: a = 2 } = {}) {
594
+ async function ca({ scale: a = 2 } = {}) {
585
595
  if (!P.value) return;
586
- const { width: s, height: t } = P.value.getBoundingClientRect(), l = s / t, { imageUri: c, base64: u } = await Wa({ domElement: P.value, base64: !0, img: !0, scale: a });
596
+ const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Xa({ domElement: P.value, base64: !0, img: !0, scale: a });
587
597
  return {
588
598
  imageUri: c,
589
599
  base64: u,
590
600
  title: e.value.style.chart.title.text,
591
- width: s,
601
+ width: l,
592
602
  height: t,
593
- aspectRatio: l
603
+ aspectRatio: s
594
604
  };
595
605
  }
596
- return Vt({
597
- getData: sa,
598
- getImage: na,
606
+ return Dt({
607
+ getData: oa,
608
+ getImage: ca,
599
609
  generatePdf: st,
600
- generateCsv: mt,
610
+ generateCsv: xt,
601
611
  generateImage: rt,
602
- toggleTable: yt,
603
- toggleLabels: gt,
604
- toggleTooltip: bt,
612
+ toggleTable: bt,
613
+ toggleLabels: ft,
614
+ toggleTooltip: mt,
605
615
  toggleAnnotator: Ee,
606
- toggleFullscreen: dt
607
- }), (a, s) => (r(), o("div", {
616
+ toggleFullscreen: gt
617
+ }), (a, l) => (r(), o("div", {
608
618
  id: `stackbar_${V.value}`,
609
619
  ref_key: "stackbarChart",
610
620
  ref: P,
611
- class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ce.value }),
621
+ class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
612
622
  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%" : ""}`),
613
- onMouseenter: s[6] || (s[6] = () => v(Ke)(!0)),
614
- onMouseleave: s[7] || (s[7] = () => v(Ke)(!1))
623
+ onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
624
+ onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
615
625
  }, [
616
- e.value.userOptions.buttons.annotator ? (r(), K(v(Ut), {
626
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
617
627
  key: 0,
618
628
  svgRef: v(je),
619
629
  backgroundColor: e.value.style.chart.backgroundColor,
620
630
  color: e.value.style.chart.color,
621
- active: pe.value,
631
+ active: me.value,
622
632
  onClose: Ee
623
633
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
624
634
  L(a.$slots, "userConfig", {}, void 0, !0),
@@ -628,7 +638,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
628
638
  ref: Be,
629
639
  style: "width:100%;background:transparent;padding-bottom:24px"
630
640
  }, [
631
- (r(), K(Ha, {
641
+ (r(), K(Ba, {
632
642
  key: `title_${Je.value}`,
633
643
  config: {
634
644
  title: {
@@ -642,7 +652,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
642
652
  }
643
653
  }, null, 8, ["config"]))
644
654
  ], 512)) : y("", !0),
645
- e.value.userOptions.show && ne.value && (v(Qe) || v(Ie)) ? (r(), K(v(Wt), {
655
+ e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (r(), K(v(Xt), {
646
656
  ref: "details",
647
657
  key: `user_option_${Ue.value}`,
648
658
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -657,31 +667,31 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
657
667
  hasTable: e.value.userOptions.buttons.table,
658
668
  hasLabel: e.value.userOptions.buttons.labels,
659
669
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
660
- isFullscreen: ce.value,
670
+ isFullscreen: ne.value,
661
671
  chartElement: P.value,
662
672
  position: e.value.userOptions.position,
663
673
  isTooltip: z.value.showTooltip,
664
674
  titles: { ...e.value.userOptions.buttonTitles },
665
675
  hasAnnotator: e.value.userOptions.buttons.annotator,
666
- isAnnotation: pe.value,
676
+ isAnnotation: me.value,
667
677
  callbacks: e.value.userOptions.callbacks,
668
678
  printScale: e.value.userOptions.print.scale,
669
- onToggleFullscreen: dt,
679
+ onToggleFullscreen: gt,
670
680
  onGeneratePdf: v(st),
671
- onGenerateCsv: mt,
681
+ onGenerateCsv: xt,
672
682
  onGenerateImage: v(rt),
673
- onToggleTable: yt,
674
- onToggleLabels: gt,
675
- onToggleTooltip: bt,
683
+ onToggleTable: bt,
684
+ onToggleLabels: ft,
685
+ onToggleTooltip: mt,
676
686
  onToggleAnnotator: Ee,
677
687
  style: Z({
678
688
  visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
679
689
  })
680
- }, $t({ _: 2 }, [
690
+ }, Mt({ _: 2 }, [
681
691
  a.$slots.menuIcon ? {
682
692
  name: "menuIcon",
683
- fn: C(({ isOpen: t, color: l }) => [
684
- L(a.$slots, "menuIcon", H(U({ isOpen: t, color: l })), void 0, !0)
693
+ fn: C(({ isOpen: t, color: s }) => [
694
+ L(a.$slots, "menuIcon", H(U({ isOpen: t, color: s })), void 0, !0)
685
695
  ]),
686
696
  key: "0"
687
697
  } : void 0,
@@ -729,15 +739,15 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
729
739
  } : void 0,
730
740
  a.$slots.optionFullscreen ? {
731
741
  name: "optionFullscreen",
732
- fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
733
- L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
742
+ fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
743
+ L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
734
744
  ]),
735
745
  key: "7"
736
746
  } : void 0,
737
747
  a.$slots.optionAnnotator ? {
738
748
  name: "optionAnnotator",
739
- fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
740
- L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
749
+ fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
750
+ L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
741
751
  ]),
742
752
  key: "8"
743
753
  } : void 0
@@ -745,12 +755,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
745
755
  (r(), o("svg", {
746
756
  ref_key: "svgRef",
747
757
  ref: je,
748
- xmlns: v(_a),
758
+ xmlns: v(Ta),
749
759
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
750
- class: le({ "vue-data-ui-loading": v(he) }),
760
+ class: le({ "vue-data-ui-loading": v(ce) }),
751
761
  style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
752
762
  }, [
753
- we(v(Ht)),
763
+ ke(v(Bt)),
754
764
  a.$slots["chart-background"] ? (r(), o("foreignObject", {
755
765
  key: 0,
756
766
  x: n.value.left,
@@ -762,9 +772,9 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
762
772
  }
763
773
  }, [
764
774
  L(a.$slots, "chart-background", {}, void 0, !0)
765
- ], 8, Za)) : y("", !0),
766
- e.value.style.chart.bars.gradient.show ? (r(), o("defs", Ka, [
767
- (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("linearGradient", {
775
+ ], 8, Qa)) : y("", !0),
776
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", ja, [
777
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("linearGradient", {
768
778
  id: `gradient_${t.id}`,
769
779
  x1: "0%",
770
780
  y1: "0%",
@@ -774,18 +784,18 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
774
784
  Q("stop", {
775
785
  offset: "0%",
776
786
  "stop-color": t.color
777
- }, null, 8, ja),
787
+ }, null, 8, tl),
778
788
  Q("stop", {
779
789
  offset: "61.8%",
780
- "stop-color": v($a)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
781
- }, null, 8, el),
790
+ "stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
791
+ }, null, 8, al),
782
792
  Q("stop", {
783
793
  offset: "100%",
784
794
  "stop-color": t.color
785
- }, null, 8, tl)
786
- ], 8, Qa))), 256))
795
+ }, null, 8, ll)
796
+ ], 8, el))), 256))
787
797
  ])) : y("", !0),
788
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, l) => (r(), o("line", {
798
+ 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", {
789
799
  x1: n.value.left,
790
800
  x2: n.value.right,
791
801
  y1: t.y,
@@ -794,28 +804,28 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
794
804
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
795
805
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
796
806
  "stroke-linecap": "round"
797
- }, null, 8, al))), 256)) : y("", !0),
798
- 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, l) => (r(), o("line", {
807
+ }, null, 8, sl))), 256)) : y("", !0),
808
+ 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", {
799
809
  x1: n.value.left,
800
810
  x2: n.value.right,
801
- y1: n.value.top + d.value * l,
802
- y2: n.value.top + d.value * l,
811
+ y1: n.value.top + d.value * s,
812
+ y2: n.value.top + d.value * s,
803
813
  stroke: e.value.style.chart.grid.x.linesColor,
804
814
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
805
815
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
806
816
  "stroke-linecap": "round"
807
- }, null, 8, ll))), 256)) : y("", !0),
808
- 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, l) => (r(), o("line", {
809
- x1: n.value.left + d.value * l,
810
- x2: n.value.left + d.value * l,
817
+ }, null, 8, rl))), 256)) : y("", !0),
818
+ 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", {
819
+ x1: n.value.left + d.value * s,
820
+ x2: n.value.left + d.value * s,
811
821
  y1: n.value.top,
812
822
  y2: n.value.bottom,
813
823
  stroke: e.value.style.chart.grid.y.linesColor,
814
824
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
815
825
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
816
826
  "stroke-linecap": "round"
817
- }, null, 8, sl))), 256)) : y("", !0),
818
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, l) => (r(), o("line", {
827
+ }, null, 8, ol))), 256)) : y("", !0),
828
+ 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", {
819
829
  x1: t.horizontal_x,
820
830
  x2: t.horizontal_x,
821
831
  y1: n.value.top,
@@ -824,10 +834,10 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
824
834
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
825
835
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
826
836
  "stroke-linecap": "round"
827
- }, null, 8, rl))), 256)) : y("", !0),
828
- (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
829
- a.$slots.pattern ? (r(), o("defs", ol, [
830
- L(a.$slots, "pattern", De({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
837
+ }, null, 8, il))), 256)) : y("", !0),
838
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
839
+ a.$slots.pattern ? (r(), o("defs", nl, [
840
+ L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
831
841
  ])) : y("", !0),
832
842
  e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
833
843
  (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
@@ -842,8 +852,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
842
852
  "stroke-linecap": "round",
843
853
  "stroke-linejoin": "round",
844
854
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
845
- }, null, 10, il))), 256)),
846
- a.$slots.pattern ? (r(), o("g", nl, [
855
+ }, null, 10, ul))), 256)),
856
+ a.$slots.pattern ? (r(), o("g", cl, [
847
857
  (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
848
858
  x: c,
849
859
  y: t.y[u] < 0 ? 0 : t.y[u],
@@ -856,13 +866,13 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
856
866
  "stroke-linecap": "round",
857
867
  "stroke-linejoin": "round",
858
868
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
859
- }, null, 10, ul))), 256))
869
+ }, null, 10, hl))), 256))
860
870
  ])) : y("", !0)
861
871
  ], 64)) : (r(), o(g, { key: 2 }, [
862
872
  (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
863
- x: v(Ce)(c, n.value.left),
873
+ x: v(ze)(c, n.value.left),
864
874
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
865
- width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
875
+ width: v(ze)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
866
876
  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,
867
877
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
868
878
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -871,12 +881,12 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
871
881
  "stroke-linecap": "round",
872
882
  "stroke-linejoin": "round",
873
883
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
874
- }, null, 10, cl))), 256)),
875
- a.$slots.pattern ? (r(), o("g", hl, [
884
+ }, null, 10, vl))), 256)),
885
+ a.$slots.pattern ? (r(), o("g", dl, [
876
886
  (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
877
- x: v(Ce)(c, n.value.left),
887
+ x: v(ze)(c, n.value.left),
878
888
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
879
- width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
889
+ width: v(ze)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
880
890
  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,
881
891
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
882
892
  fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
@@ -885,7 +895,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
885
895
  "stroke-linecap": "round",
886
896
  "stroke-linejoin": "round",
887
897
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
888
- }, null, 10, vl))), 256))
898
+ }, null, 10, yl))), 256))
889
899
  ])) : y("", !0)
890
900
  ], 64))
891
901
  ]))), 256)),
@@ -899,7 +909,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
899
909
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
900
910
  "stroke-linecap": "round",
901
911
  "stroke-linejoin": "round"
902
- }, null, 8, dl)) : y("", !0),
912
+ }, null, 8, gl)) : y("", !0),
903
913
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
904
914
  key: 7,
905
915
  x1: n.value.left,
@@ -910,7 +920,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
910
920
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
911
921
  "stroke-linecap": "round",
912
922
  "stroke-linejoin": "round"
913
- }, null, 8, yl)) : y("", !0),
923
+ }, null, 8, bl)) : y("", !0),
914
924
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
915
925
  key: 8,
916
926
  ref_key: "xAxisLabel",
@@ -921,7 +931,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
921
931
  fill: e.value.style.chart.grid.x.axisName.color,
922
932
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
923
933
  "text-anchor": "middle"
924
- }, M(e.value.style.chart.grid.x.axisName.text), 9, gl)) : y("", !0),
934
+ }, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
925
935
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
926
936
  key: 9,
927
937
  ref_key: "yAxisLabel",
@@ -931,51 +941,51 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
931
941
  fill: e.value.style.chart.grid.y.axisName.color,
932
942
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
933
943
  "text-anchor": "middle"
934
- }, M(e.value.style.chart.grid.y.axisName.text), 9, bl)) : y("", !0),
944
+ }, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
935
945
  z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
936
- (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
946
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
937
947
  (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
938
- xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
948
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
939
949
  key: 0,
940
950
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
941
951
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
942
952
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
943
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
953
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
944
954
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
945
955
  "text-anchor": "middle"
946
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, fl)) : y("", !0)
956
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : be(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
947
957
  ], 64))), 256))
948
958
  ]))), 256)),
949
959
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
950
960
  key: 0,
951
961
  ref_key: "sumTop",
952
- ref: qt
962
+ ref: Kt
953
963
  }, [
954
- (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
964
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
955
965
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
956
966
  key: 0,
957
- x: n.value.left + d.value * l + d.value / 2,
967
+ x: n.value.left + d.value * s + d.value / 2,
958
968
  y: e.value.style.chart.bars.totalValues.fontSize,
959
969
  "text-anchor": "middle",
960
970
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
961
971
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
962
972
  fill: e.value.style.chart.bars.totalValues.color
963
- }, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
973
+ }, M(be(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
964
974
  ], 64))), 256))
965
975
  ], 512)) : y("", !0)
966
976
  ], 64)) : y("", !0),
967
977
  z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
968
- (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
978
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
969
979
  (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
970
- xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
980
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
971
981
  key: 0,
972
982
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
973
983
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
974
984
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
975
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
985
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
976
986
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
977
987
  "text-anchor": "middle"
978
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, pl)) : y("", !0)
988
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : be(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
979
989
  ], 64))), 256))
980
990
  ]))), 256)),
981
991
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
@@ -983,16 +993,16 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
983
993
  ref_key: "sumRight",
984
994
  ref: Ze
985
995
  }, [
986
- (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
996
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
987
997
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
988
998
  key: 0,
989
999
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
990
- y: n.value.top + d.value * l + d.value / 2,
1000
+ y: n.value.top + d.value * s + d.value / 2,
991
1001
  "text-anchor": "start",
992
1002
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
993
1003
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
994
1004
  fill: e.value.style.chart.bars.totalValues.color
995
- }, M(fe(t.value, t, l, t.sign)), 9, xl)) : y("", !0)
1005
+ }, M(be(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
996
1006
  ], 64))), 256))
997
1007
  ], 512)) : y("", !0)
998
1008
  ], 64)) : y("", !0),
@@ -1001,22 +1011,22 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1001
1011
  ref_key: "scaleLabels",
1002
1012
  ref: W
1003
1013
  }, [
1004
- (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1014
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1005
1015
  x1: n.value.left,
1006
1016
  x2: n.value.left - 6,
1007
1017
  y1: t.y,
1008
1018
  y2: t.y,
1009
1019
  stroke: e.value.style.chart.grid.x.axisColor,
1010
1020
  "stroke-width": 1
1011
- }, null, 8, kl))), 256)),
1012
- (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1021
+ }, null, 8, Ll))), 256)),
1022
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1013
1023
  x: t.x,
1014
1024
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1015
1025
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1016
1026
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1017
1027
  fill: e.value.style.chart.grid.y.axisLabels.color,
1018
1028
  "text-anchor": "end"
1019
- }, M(v(Se)(
1029
+ }, M(v(Ce)(
1020
1030
  e.value.style.chart.grid.y.axisLabels.formatter,
1021
1031
  t.value,
1022
1032
  v(j)({
@@ -1026,14 +1036,14 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1026
1036
  r: e.value.style.chart.grid.y.axisLabels.rounding
1027
1037
  }),
1028
1038
  { datapoint: t }
1029
- )), 9, wl))), 256))
1039
+ )), 9, zl))), 256))
1030
1040
  ], 512)) : y("", !0),
1031
1041
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1032
1042
  key: 13,
1033
1043
  ref_key: "scaleLabels",
1034
1044
  ref: W
1035
1045
  }, [
1036
- (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1046
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1037
1047
  x1: t.horizontal_x,
1038
1048
  x2: t.horizontal_x,
1039
1049
  y1: n.value.bottom,
@@ -1041,15 +1051,15 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1041
1051
  stroke: e.value.style.chart.grid.x.axisColor,
1042
1052
  "stroke-width": 1,
1043
1053
  "stroke-linecap": "round"
1044
- }, null, 8, Ll))), 256)),
1045
- (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1054
+ }, null, 8, Cl))), 256)),
1055
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1046
1056
  class: "vue-data-ui-time-label",
1047
1057
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1048
1058
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1049
1059
  fill: e.value.style.chart.grid.y.axisLabels.color,
1050
1060
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1051
1061
  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})`
1052
- }, M(v(Se)(
1062
+ }, M(v(Ce)(
1053
1063
  e.value.style.chart.grid.y.axisLabels.formatter,
1054
1064
  t.value,
1055
1065
  v(j)({
@@ -1059,62 +1069,62 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1059
1069
  r: e.value.style.chart.grid.y.axisLabels.rounding
1060
1070
  }),
1061
1071
  { datapoint: t }
1062
- )), 9, zl))), 256))
1072
+ )), 9, _l))), 256))
1063
1073
  ], 512)) : y("", !0),
1064
1074
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1065
1075
  key: 14,
1066
1076
  ref_key: "timeLabelsEls",
1067
1077
  ref: Y
1068
1078
  }, [
1069
- a.$slots["time-label"] ? (r(), o("g", Cl, [
1070
- (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1071
- L(a.$slots, "time-label", De({ ref_for: !0 }, {
1072
- x: n.value.left + d.value * l + d.value / 2,
1079
+ a.$slots["time-label"] ? (r(), o("g", Sl, [
1080
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1081
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1082
+ x: n.value.left + d.value * s + d.value / 2,
1073
1083
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1074
1084
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1075
1085
  fill: e.value.style.chart.grid.x.timeLabels.color,
1076
- transform: `translate(${n.value.left + d.value * l + 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})`,
1086
+ 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})`,
1077
1087
  absoluteIndex: t.absoluteIndex,
1078
1088
  content: t.text,
1079
1089
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1080
1090
  show: !0
1081
1091
  }), void 0, !0)
1082
1092
  ]))), 256))
1083
- ])) : (r(), o("g", Sl, [
1084
- (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1093
+ ])) : (r(), o("g", $l, [
1094
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1085
1095
  String(t.text).includes(`
1086
1096
  `) ? (r(), o("text", {
1087
- key: l + "-multi",
1097
+ key: s + "-multi",
1088
1098
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1089
1099
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1090
1100
  fill: e.value.style.chart.grid.x.timeLabels.color,
1091
1101
  transform: `
1092
1102
  translate(
1093
- ${n.value.left + d.value * l + d.value / 2},
1103
+ ${n.value.left + d.value * s + d.value / 2},
1094
1104
  ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1095
1105
  ),
1096
1106
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1097
1107
  `,
1098
1108
  style: { cursor: "pointer" },
1099
- innerHTML: v(Ta)({
1109
+ innerHTML: v(Aa)({
1100
1110
  content: String(t.text),
1101
1111
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1102
1112
  fill: e.value.style.chart.grid.x.timeLabels.color,
1103
1113
  x: 0,
1104
1114
  y: 0
1105
1115
  }),
1106
- onClick: () => xe(t, l)
1107
- }, null, 8, $l)) : (r(), o("text", {
1116
+ onClick: () => pe(t, s)
1117
+ }, null, 8, Ml)) : (r(), o("text", {
1108
1118
  class: "vue-data-ui-time-label",
1109
- key: l,
1119
+ key: s,
1110
1120
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1111
1121
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1112
1122
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1113
1123
  fill: e.value.style.chart.grid.x.timeLabels.color,
1114
- transform: `translate(${n.value.left + d.value * l + 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})`,
1124
+ 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})`,
1115
1125
  style: { cursor: "pointer" },
1116
- onClick: () => xe(t, l)
1117
- }, M(t.text), 9, _l))
1126
+ onClick: () => pe(t, s)
1127
+ }, M(t.text), 9, Tl))
1118
1128
  ]))), 256))
1119
1129
  ]))
1120
1130
  ], 512)) : y("", !0),
@@ -1123,11 +1133,11 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1123
1133
  ref_key: "timeLabelsEls",
1124
1134
  ref: Y
1125
1135
  }, [
1126
- a.$slots["time-label"] ? (r(), o("g", Tl, [
1127
- (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1128
- L(a.$slots, "time-label", De({ ref_for: !0 }, {
1136
+ a.$slots["time-label"] ? (r(), o("g", Al, [
1137
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1138
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1129
1139
  x: n.value.left - 8,
1130
- y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1140
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1131
1141
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1132
1142
  fill: e.value.style.chart.grid.x.timeLabels.color,
1133
1143
  transform: null,
@@ -1137,8 +1147,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1137
1147
  show: !0
1138
1148
  }), void 0, !0)
1139
1149
  ]))), 256))
1140
- ])) : (r(), o("g", Ml, [
1141
- (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1150
+ ])) : (r(), o("g", Nl, [
1151
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1142
1152
  String(t.text).includes(`
1143
1153
  `) ? (r(), o("text", {
1144
1154
  key: 1,
@@ -1147,61 +1157,57 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1147
1157
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1148
1158
  fill: e.value.style.chart.grid.y.axisLabels.color,
1149
1159
  x: n.value.left - 8,
1150
- y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1160
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1151
1161
  style: { cursor: "pointer" },
1152
- onClick: () => xe(t, l),
1153
- innerHTML: v(Ma)({
1162
+ onClick: () => pe(t, s),
1163
+ innerHTML: v(Na)({
1154
1164
  content: String(t.text),
1155
1165
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1156
1166
  fill: e.value.style.chart.grid.y.axisLabels.color,
1157
1167
  x: n.value.left - 8,
1158
1168
  y: 0
1159
1169
  })
1160
- }, null, 8, Nl)) : (r(), o("text", {
1170
+ }, null, 8, Rl)) : (r(), o("text", {
1161
1171
  key: 0,
1162
1172
  "text-anchor": "end",
1163
1173
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1164
1174
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1165
1175
  fill: e.value.style.chart.grid.y.axisLabels.color,
1166
1176
  x: n.value.left - 8,
1167
- y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1177
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1168
1178
  style: {
1169
1179
  cursor: "pointer"
1170
1180
  },
1171
- onClick: () => xe(t, l)
1172
- }, M(t.text), 9, Al))
1181
+ onClick: () => pe(t, s)
1182
+ }, M(t.text), 9, Il))
1173
1183
  ]))), 256))
1174
1184
  ]))
1175
1185
  ], 512)) : y("", !0),
1176
- z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
1177
- x: n.value.left + l * d.value,
1186
+ 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", {
1187
+ x: n.value.left + s * d.value,
1178
1188
  y: n.value.top,
1179
1189
  width: d.value,
1180
1190
  height: n.value.height < 0 ? 0 : n.value.height,
1181
- onClick: (c) => ht(l),
1182
- onMouseenter: (c) => vt(l),
1183
- onMouseleave: s[0] || (s[0] = (c) => {
1184
- re.value = null, ue.value = !1;
1185
- }),
1186
- fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
1191
+ onClick: () => ht(s),
1192
+ onMouseenter: () => yt(s),
1193
+ onMouseleave: () => dt(s),
1194
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1187
1195
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1188
- }, null, 44, Il))), 256)) : y("", !0),
1189
- z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
1196
+ }, null, 44, Ol))), 256)) : y("", !0),
1197
+ 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", {
1190
1198
  x: n.value.left,
1191
- y: n.value.top + l * d.value,
1199
+ y: n.value.top + s * d.value,
1192
1200
  width: n.value.width < 0 ? 0 : n.value.width,
1193
1201
  height: d.value,
1194
- onClick: (c) => ht(l),
1195
- onMouseenter: (c) => vt(l),
1196
- onMouseleave: s[1] || (s[1] = (c) => {
1197
- re.value = null, ue.value = !1;
1198
- }),
1199
- fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
1202
+ onClick: () => ht(s),
1203
+ onMouseenter: () => yt(s),
1204
+ onMouseleave: () => dt(s),
1205
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1200
1206
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1201
- }, null, 44, Rl))), 256)) : y("", !0),
1207
+ }, null, 44, Pl))), 256)) : y("", !0),
1202
1208
  L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1203
- ], 14, qa)),
1204
- a.$slots.watermark ? (r(), o("div", Ol, [
1209
+ ], 14, Ka)),
1210
+ a.$slots.watermark ? (r(), o("div", Vl, [
1205
1211
  L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1206
1212
  ])) : y("", !0),
1207
1213
  Q("div", {
@@ -1210,7 +1216,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1210
1216
  style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1211
1217
  "data-dom-to-png-ignore": ""
1212
1218
  }, [
1213
- e.value.style.chart.zoom.show && D.value > 1 ? (r(), K(Da, {
1219
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ua, {
1214
1220
  ref_key: "slicerComponent",
1215
1221
  ref: qe,
1216
1222
  key: `slicer_${Ge.value}`,
@@ -1228,9 +1234,9 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1228
1234
  valueStart: h.value.start,
1229
1235
  valueEnd: h.value.end,
1230
1236
  start: h.value.start,
1231
- "onUpdate:start": s[2] || (s[2] = (t) => h.value.start = t),
1237
+ "onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
1232
1238
  end: h.value.end,
1233
- "onUpdate:end": s[3] || (s[3] = (t) => h.value.end = t),
1239
+ "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1234
1240
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1235
1241
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
1236
1242
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
@@ -1243,8 +1249,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1243
1249
  _: 3
1244
1250
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1245
1251
  ], 4),
1246
- we(v(Bt), {
1247
- show: z.value.showTooltip && ue.value,
1252
+ ke(v(Yt), {
1253
+ show: z.value.showTooltip && $e.value,
1248
1254
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1249
1255
  color: e.value.style.chart.tooltip.color,
1250
1256
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1256,8 +1262,8 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1256
1262
  offsetY: e.value.style.chart.tooltip.offsetY,
1257
1263
  parent: P.value,
1258
1264
  content: Me.value,
1259
- isFullscreen: ce.value,
1260
- isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat),
1265
+ isFullscreen: ne.value,
1266
+ isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
1261
1267
  smooth: e.value.style.chart.tooltip.smooth,
1262
1268
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1263
1269
  }, {
@@ -1273,36 +1279,36 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1273
1279
  ref_key: "chartLegend",
1274
1280
  ref: We
1275
1281
  }, [
1276
- e.value.style.chart.legend.show && ne.value ? (r(), K(Fa, {
1282
+ e.value.style.chart.legend.show && ie.value ? (r(), K(Ha, {
1277
1283
  key: 0,
1278
- legendSet: pt.value,
1279
- config: oa.value,
1280
- onClickMarker: s[4] || (s[4] = ({ legend: t }) => t.segregate())
1281
- }, $t({
1284
+ legendSet: kt.value,
1285
+ config: na.value,
1286
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1287
+ }, Mt({
1282
1288
  item: C(({ legend: t }) => [
1283
1289
  Q("div", {
1284
- onClick: (l) => t.segregate(),
1285
- style: Z(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
1286
- }, M(t.name), 13, Pl)
1290
+ onClick: (s) => t.segregate(),
1291
+ style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1292
+ }, M(t.name), 13, El)
1287
1293
  ]),
1288
1294
  _: 2
1289
1295
  }, [
1290
1296
  a.$slots.pattern ? {
1291
1297
  name: "legend-pattern",
1292
- fn: C(({ legend: t, index: l }) => [
1293
- we(Ua, {
1298
+ fn: C(({ legend: t, index: s }) => [
1299
+ ke(Wa, {
1294
1300
  shape: t.shape,
1295
1301
  radius: 30,
1296
1302
  stroke: "none",
1297
1303
  plot: { x: 30, y: 30 },
1298
- fill: `url(#pattern_${V.value}_${l})`
1304
+ fill: `url(#pattern_${V.value}_${s})`
1299
1305
  }, null, 8, ["shape", "fill"])
1300
1306
  ]),
1301
1307
  key: "0"
1302
1308
  } : void 0
1303
1309
  ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1304
1310
  key: 1,
1305
- legend: pt.value
1311
+ legend: kt.value
1306
1312
  }, void 0, !0)
1307
1313
  ], 512),
1308
1314
  a.$slots.source ? (r(), o("div", {
@@ -1313,7 +1319,7 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1313
1319
  }, [
1314
1320
  L(a.$slots, "source", {}, void 0, !0)
1315
1321
  ], 512)) : y("", !0),
1316
- h.value.end - h.value.start < 200 ? (r(), K(v(Ft), {
1322
+ h.value.end - h.value.start < 200 ? (r(), K(v(Ht), {
1317
1323
  key: 5,
1318
1324
  hideDetails: "",
1319
1325
  config: {
@@ -1330,19 +1336,19 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1330
1336
  }
1331
1337
  }, {
1332
1338
  content: C(() => [
1333
- we(v(Dt), {
1334
- colNames: me.value.colNames,
1335
- head: me.value.head,
1336
- body: me.value.body,
1337
- config: me.value.config,
1339
+ ke(v(Ut), {
1340
+ colNames: fe.value.colNames,
1341
+ head: fe.value.head,
1342
+ body: fe.value.body,
1343
+ config: fe.value.config,
1338
1344
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1339
- onClose: s[5] || (s[5] = (t) => z.value.showTable = !1)
1345
+ onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
1340
1346
  }, {
1341
1347
  th: C(({ th: t }) => [
1342
- Q("div", { innerHTML: t }, null, 8, Vl)
1348
+ Q("div", { innerHTML: t }, null, 8, Dl)
1343
1349
  ]),
1344
1350
  td: C(({ td: t }) => [
1345
- pa(M(isNaN(Number(t)) ? t : v(j)({
1351
+ ka(M(isNaN(Number(t)) ? t : v(j)({
1346
1352
  p: e.value.style.chart.bars.dataLabels.prefix,
1347
1353
  v: t,
1348
1354
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1354,10 +1360,10 @@ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"]
1354
1360
  ]),
1355
1361
  _: 1
1356
1362
  }, 8, ["config"])) : y("", !0),
1357
- v(he) ? (r(), K(Xa, { key: 6 })) : y("", !0)
1358
- ], 46, Ja));
1363
+ v(ce) ? (r(), K(Ja, { key: 6 })) : y("", !0)
1364
+ ], 46, Za));
1359
1365
  }
1360
- }, ts = /* @__PURE__ */ Ga(El, [["__scopeId", "data-v-61d04b54"]]);
1366
+ }, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-e430a869"]]);
1361
1367
  export {
1362
- ts as default
1368
+ ls as default
1363
1369
  };