vue-data-ui 3.0.0-next.33 → 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 (92) hide show
  1. package/dist/{Arrow-VgHimrRb.js → Arrow-9U-UjNas.js} +1 -1
  2. package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-CdaQDDs0.js} +2 -2
  3. package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-DB8UP3sU.js} +1 -1
  4. package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-Cb3SgjWM.js} +2 -2
  5. package/dist/{DataTable-CQqQt3fP.js → DataTable-BvgiQ2JE.js} +2 -2
  6. package/dist/{Legend-DAN5L1lo.js → Legend-DBh56vdD.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-fHaJC-dl.js} +3 -3
  8. package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-Bhohtzrj.js} +1 -1
  9. package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-vCj1-UEY.js} +3 -3
  10. package/dist/{Shape-CjeprST6.js → Shape-D2E4CMoi.js} +1 -1
  11. package/dist/{Slicer-8WIL9Cfq.js → Slicer-1-SaJZ80.js} +2 -2
  12. package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-CE4BUH-_.js} +1 -1
  13. package/dist/{Title-Bo-MVYcn.js → Title-8eeSFss9.js} +1 -1
  14. package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-C7HgI7vF.js} +1 -1
  15. package/dist/{UserOptions-dJLhbxrH.js → UserOptions-Cxr0ZsfM.js} +2 -2
  16. package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-DDW5fRWT.js} +1 -1
  17. package/dist/{img-59KgIaXp.js → img-czwmJka_.js} +1 -1
  18. package/dist/{index-h6tbqLot.js → index-Cy_OHCLi.js} +700 -660
  19. package/dist/{pdf-CVKcemYx.js → pdf-BLIP6Yoc.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +46 -8
  22. package/dist/types/vue-data-ui.d.ts +46 -8
  23. package/dist/{useNestedProp-D059IOwh.js → useNestedProp-Di0uuVL6.js} +1 -1
  24. package/dist/{usePrinter-BuJDNOzF.js → usePrinter-B3aBnAXo.js} +2 -2
  25. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  26. package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-C8hTMkHA.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-2BDo53CG.js → vue-ui-3d-bar-BybaBB_P.js} +6 -6
  29. package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-DJ7Cgx6-.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-DPuw31_r.js} +6 -6
  31. package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BRVlhEK2.js} +2 -2
  32. package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-4NYyyaH9.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-DEYGVnYY.js} +230 -222
  34. package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-DBV6s3lm.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-EngIIDHp.js} +5 -5
  36. package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-B0lIgdaA.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-D2_7Q03M.js} +6 -6
  38. package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-B8W8SBMh.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-R18RfpNq.js} +62 -62
  40. package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-lDDMeEMg.js} +2 -2
  41. package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-C0QxZHSs.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DMuOgr00.js} +307 -304
  43. package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-BoehGkow.js} +7 -7
  44. package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-CMpJ4VNW.js} +7 -7
  45. package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-V-ep0uRk.js} +6 -6
  46. package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-5_UI4rRC.js} +5 -5
  47. package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-DuPPfpX8.js} +6 -6
  48. package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-DC0_MhU8.js} +3 -3
  49. package/dist/vue-ui-heatmap-Du7CgmK0.js +1084 -0
  50. package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-DUAojY09.js} +7 -7
  51. package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-DFqD1V27.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-Dhx_wzdm.js} +2 -2
  53. package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-F69F6eYS.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-Bx-4k7jY.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-BVeoZkgI.js} +9 -9
  56. package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-DHYlAXM7.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-N5KtznHX.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-BsQ8O9e6.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-Bocy5d7r.js} +6 -6
  60. package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-ByUt1ys9.js} +7 -7
  61. package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-C1KpOoZF.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-Bw-A49Ol.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-g9JYjIcs.js} +11 -9
  64. package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-D4-dAblw.js} +8 -8
  65. package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-Ese_ubEo.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-DGCSWS6R.js} +3 -3
  67. package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-D-2kksbm.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-x900EpiA.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-t47Lq5jH.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-T8iByZV1.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-D_ZvA5DH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-DQExYN7j.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-9ywYLwLc.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-Cpf9GA_9.js} +455 -446
  75. package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-Dd31-kf1.js} +7 -7
  76. package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-ChP6rjYz.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-sp_8-q-v.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-D04Usdos.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-tp3Zjpbn.js} +6 -6
  80. package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-xVlYHzJH.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-CkUbhFx0.js} +6 -6
  82. package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-BpkTja9I.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-CQ2y_LEJ.js} +9 -9
  84. package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-BzBS5B9r.js} +8 -8
  85. package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-CEiRdkDJ.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-h7iNtGpT.js} +6 -6
  87. package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-D6iHt4w8.js} +6 -6
  88. package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-BtOdpKQf.js} +58 -55
  89. package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-BvrKpXv1.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/useTimeLabelCollider-V7AOiPLB.js +0 -71
  92. package/dist/vue-ui-heatmap-D_8NEANa.js +0 -881
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as te, useSlots as ga, computed as k, ref as b, onMounted as Lt, toRefs as ba, watch as Fe, shallowRef as zt, onBeforeUnmount as Ct, watchEffect as St, nextTick as _t, createElementBlock as o, openBlock as s, unref as v, normalizeStyle as Z, normalizeClass as ae, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as we, createSlots as $t, withCtx as C, normalizeProps as U, guardReactiveProps as H, Fragment as g, renderList as m, mergeProps as De, toDisplayString as M, createTextVNode as fa } from "vue";
2
- import { u as ma, c as Tt, A as pa, t as xa, p as Le, a as ka, C as le, b as wa, o as Mt, e as At, g as La, d as za, an as ze, ac as Nt, D as It, X as Ca, l as Sa, aa as Ce, F as Rt, i as Se, f as j, I as _a, a0 as $a, x as Ot, q as Ta, r as Ma, y as Aa } from "./index-h6tbqLot.js";
3
- import { u as Pt } from "./useNestedProp-D059IOwh.js";
4
- import { t as Ue, u as Na } from "./useResponsive-DfdjqQps.js";
5
- import { u as Ia } from "./usePrinter-BuJDNOzF.js";
6
- import { u as Ra } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as Pa } from "./useTimeLabelCollider-V7AOiPLB.js";
9
- import Va from "./Legend-DAN5L1lo.js";
10
- import { S as Ea } from "./Slicer-8WIL9Cfq.js";
11
- import Fa from "./Title-Bo-MVYcn.js";
12
- import { _ as Da } from "./Shape-CjeprST6.js";
13
- import { u as Ua } from "./useTimeLabels-DkzmKfZn.js";
14
- import Ha from "./img-59KgIaXp.js";
15
- import { u as Ba, B as Wa } from "./BaseScanner-DIK2NTdp.js";
16
- import { _ as Ya } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"], qa = { key: 1 }, Za = ["id"], Ka = ["stop-color"], Qa = ["stop-color"], ja = ["stop-color"], el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = { key: 0 }, sl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ol = { key: 0 }, il = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], nl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ul = { key: 0 }, cl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["x", "y", "font-size", "fill", "font-weight"], yl = ["transform", "font-size", "fill", "font-weight"], gl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["x", "y", "font-size", "font-weight", "fill"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["x", "y", "font-size", "font-weight", "fill"], pl = ["x1", "x2", "y1", "y2", "stroke"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x1", "x2", "y1", "y2", "stroke"], wl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ll = { key: 0 }, zl = { key: 1 }, Cl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Sl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], _l = { key: 0 }, $l = { key: 1 }, Tl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ml = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Al = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Il = {
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
- }, Rl = ["onClick"], Ol = ["innerHTML"], Pl = {
20
+ }, El = ["onClick"], Dl = ["innerHTML"], Fl = {
21
21
  __name: "vue-ui-stackbar",
22
22
  props: {
23
23
  config: {
@@ -34,20 +34,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
34
34
  }
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
- setup(_e, { expose: Vt, emit: Et }) {
38
- const Ft = te(() => import("./vue-ui-accordion-DyBJ-mad.js")), Dt = te(() => import("./DataTable-CQqQt3fP.js")), Ut = te(() => import("./PackageVersion-DGlLBQOn.js")), Ht = te(() => import("./PenAndPaper-hAK7vneq.js")), Bt = te(() => import("./Tooltip-DD9Ly0Pw.js")), Wt = te(() => import("./UserOptions-dJLhbxrH.js")), { vue_ui_stackbar: Yt } = ma(), Xt = ga(), f = _e, $e = Et, ie = k({
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()), ne = b(!1), Te = b(null), Me = b(""), _ = b([]), He = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ue = 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: ce, FINAL_DATASET: he, manualLoading: ve } = Ba({
50
- ...ba(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 Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
67
67
  color: "#CACACA"
68
68
  }
69
69
  ],
70
- skeletonConfig: pa({
70
+ skeletonConfig: La({
71
71
  defaultConfig: e.value,
72
72
  userConfig: {
73
73
  userOptions: { show: !1 },
@@ -116,25 +116,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
116
116
  }
117
117
  }
118
118
  })
119
- }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ra({ config: e.value }), { svgRef: je } = Oa({ 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 r = {};
126
- return a.theme ? r = {
127
- ...Pt({
128
- userConfig: ka.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: xa[a.theme] || Le
132
- } : r = a, f.config && le(f.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, f.config && le(f.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, f.config && le(f.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, f.config && le(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, f.config && le(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
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
- const et = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = k(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
- Fe(() => f.config, (a) => {
136
- ce.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) => {
134
+ const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
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
138
  Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
139
139
  }, { deep: !0 });
140
140
  const z = b({
@@ -144,7 +144,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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,11 +153,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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: rt, generateImage: st } = Ia({
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
160
- }), de = b({
160
+ }), ee = b({
161
161
  width: e.value.style.chart.width,
162
162
  height: e.value.style.chart.height,
163
163
  paddingRatio: {
@@ -166,124 +166,124 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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 = k(() => wa(e.value.customPalette)), E = zt(null), ee = 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
- const Oe = k(() => !!e.value.debug);
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
- }), ve.value = !0) : f.dataset.forEach((a, r) => {
180
- La({
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
- ie.value = !1, At({
184
+ ie.value = !1, It({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
188
- index: r,
188
+ index: l,
189
189
  debug: Oe.value
190
190
  }), ve.value = !0;
191
191
  });
192
- }), Mt(f.dataset) || (ve.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
- const a = Ue(() => {
195
+ const a = He(() => {
196
196
  B.value = !1;
197
- const { width: r, height: t } = Na({
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
- de.value.width = r, de.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
  });
209
209
  });
210
- E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(a), ee.value = P.value.parentNode, E.value.observe(ee.value);
210
+ E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect()), E.value = new ResizeObserver(a), te.value = P.value.parentNode, E.value.observe(te.value);
211
211
  }
212
212
  Ve();
213
213
  }
214
- Ct(() => {
215
- E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
214
+ St(() => {
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 r = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
- return a + r + (r ? 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 = Ue((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 r = e.value.orientation === "vertical" ? Y.value : W.value;
234
- if (!r) 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(r), a(() => t.disconnect());
238
+ t.observe(l), a(() => t.disconnect());
239
239
  });
240
- const jt = Ue((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 r = Ze.value;
246
- if (!r) 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(r), 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
- const it = k(() => {
254
+ const it = x(() => {
255
255
  let a = 0;
256
256
  Ae.value && (a = Ae.value.getBBox().height);
257
- let r = 0;
258
- return e.value.orientation === "vertical" && Y.value && (r = ye.value), e.value.orientation === "horizontal" && W.value && (r = ye.value), a + r;
259
- }), n = k(() => {
260
- const { height: a, width: r } = de.value, { right: t } = de.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 = r - r * t - ge.value, X = a - e.value.style.chart.padding.bottom - it.value - l, G = e.value.style.chart.padding.left + c, J = r - G - r * t - ge.value, R = a - u - e.value.style.chart.padding.bottom - it.value - l;
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
+ }), n = x(() => {
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: r,
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 = k(() => he.value.map((a, r) => {
275
- const t = za(a.color) || Zt.value[r] || Le[r] || Le[r % 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: r,
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 = k(() => 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
288
  end: Math.max(...he.value.map((a) => a.series.length))
289
289
  });
@@ -291,89 +291,89 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
291
291
  Ve();
292
292
  }
293
293
  async function Ve() {
294
- await _t(), await _t();
295
- const { startIndex: a, endIndex: r } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...he.value.map((c) => c.series.length));
296
- (a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ea(r + 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 r = Math.max(...he.value.map((t) => t.series.length));
300
- return a > r ? r : 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
- const d = k(() => {
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
- }), se = k(() => ze(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = k(() => 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((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
308
- }))).slice(h.value.start, h.value.end)), be = k(() => {
309
- const a = F.value.filter((r) => !_.value.includes(r.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((r) => ({
312
- ...r,
313
- series: r.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((r) => ({
316
- ...r,
317
- series: r.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
- }), I = k(() => {
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), r = 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(r) ? 0 : r, 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))),
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(...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
- }), $ = k(() => Ua({
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
- })), w = k(() => {
337
+ })), w = x(() => {
338
338
  if (!ie.value && !ce.value) return [];
339
- let a = Array(D.value).fill(0), r = 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((oe) => !_.value.includes(oe.id)).map((oe) => {
342
- const O = oe.series.slice(h.value.start, h.value.end), ia = oe.signedSeries.slice(h.value.start, h.value.end), na = O.map((p, x) => n.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), ua = O.map((p, x) => n.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), ca = O.map((p, x) => {
343
- const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
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[x], a[x] += N) : (N = T * A, q = kt + t[x], t[x] += Math.abs(N)), q;
346
- }), ha = O.map((p, x) => {
347
- const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (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 + r[x], r[x] += N) : (N = ke * A, q = wt - Math.abs(N) - l[x], l[x] += Math.abs(N)), q;
350
- }), va = O.map((p, x) => {
351
- const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (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
- }), da = O.map((p, x) => {
354
- const A = e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / R;
355
- return p > 0 ? ke * A : ke * Math.abs(A);
356
- }), ya = O.map((p) => Math.abs(p)).reduce((p, x) => p + x, 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
358
  ...oe,
359
- proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / ya),
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: ia,
362
- x: na,
363
- y: ca,
364
- height: va,
365
- horizontal_width: da,
366
- horizontal_y: ua,
367
- horizontal_x: ha
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 = k(() => ta.value.map((a, r) => ({
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, r, 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 Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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: r, seriesIndex: t, datapointIndex: l }
385
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
386
386
  );
387
387
  }
388
- function ct(a, r, 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 Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
394
394
  s: "%",
395
395
  r: e.value.style.chart.bars.dataLabels.rounding
396
396
  }),
397
- { datapoint: r, seriesIndex: t, datapointIndex: l }
397
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
398
398
  );
399
399
  }
400
400
  function ht(a) {
401
- const r = 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: r, 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, ne.value = !0;
412
- const r = 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(r) && Aa(() => r({
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 = r({
443
+ Me.value = l({
434
444
  seriesIndex: a,
435
445
  datapoint: t,
436
446
  series: w.value,
@@ -440,12 +450,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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 Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["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,53 +480,56 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
470
480
  }), Me.value = `<div>${J}</div>`;
471
481
  }
472
482
  }
473
- Pa({
483
+ const sa = x(() => ee.value.width), ra = x(() => ee.value.height);
484
+ Fa({
474
485
  timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
475
486
  timeLabels: $,
476
487
  slicer: h,
477
488
  configRef: e,
478
489
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
479
490
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
480
- isAutoSize: !1
491
+ isAutoSize: !1,
492
+ width: sa,
493
+ height: ra
481
494
  });
482
- function dt(a) {
483
- ue.value = a, He.value += 1;
495
+ function gt(a) {
496
+ ne.value = a, Ue.value += 1;
484
497
  }
485
- function yt() {
498
+ function bt() {
486
499
  z.value.showTable = !z.value.showTable;
487
500
  }
488
- function gt() {
501
+ function ft() {
489
502
  z.value.dataLabels.show = !z.value.dataLabels.show;
490
503
  }
491
- function bt() {
504
+ function mt() {
492
505
  z.value.showTooltip = !z.value.showTooltip;
493
506
  }
494
- function aa() {
507
+ function oa() {
495
508
  return w.value;
496
509
  }
497
- const ft = k(() => {
510
+ const pt = x(() => {
498
511
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
499
- const a = w.value.map(({ name: t, color: l }) => ({
512
+ const a = w.value.map(({ name: t, color: s }) => ({
500
513
  label: t,
501
- color: l
502
- })), r = [];
514
+ color: s
515
+ })), l = [];
503
516
  return $.value.forEach((t) => {
504
- const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
505
- F.value.forEach((c) => {
506
- l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
507
- }), r.push(l);
508
- }), { head: a, body: r };
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 };
509
522
  });
510
- function mt(a = null) {
511
- const r = [[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 = r.concat([t]).concat(l), u = Ta(c);
512
- a ? a(u) : Ma({ 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" });
513
526
  }
514
- const me = k(() => {
527
+ const fe = x(() => {
515
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>');
516
- let r = [];
517
- for (let c = 0; c < D.value; c += 1) {
518
- const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, X) => S + X, 0);
519
- r.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)));
520
533
  }
521
534
  const t = {
522
535
  th: {
@@ -530,102 +543,102 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
530
543
  outline: e.value.table.td.outline
531
544
  },
532
545
  breakpoint: e.value.table.responsiveBreakpoint
533
- }, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
534
- return { head: a, body: r.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 };
535
548
  });
536
- function la(a, r) {
537
- if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(r.id))
538
- _.value = _.value.filter((t) => t !== r.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);
539
552
  else {
540
- if (_.value.length === F.value.length - 1) return;
541
- _.value.push(r.id);
553
+ if (S.value.length === D.value.length - 1) return;
554
+ S.value.push(l.id);
542
555
  }
543
556
  }
544
- const pt = k(() => F.value.map((a, r) => ({
557
+ const kt = x(() => D.value.map((a, l) => ({
545
558
  ...a,
546
559
  shape: "square"
547
560
  })).map((a) => ({
548
561
  ...a,
549
- opacity: _.value.includes(a.id) ? 0.5 : 1,
550
- segregate: () => la(a.absoluteIndex, a),
551
- isSegregated: _.value.includes(a.id)
552
- }))), ra = k(() => ({
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(() => ({
553
566
  cy: "stackbar-legend",
554
567
  backgroundColor: e.value.style.chart.legend.backgroundColor,
555
568
  color: e.value.style.chart.legend.color,
556
569
  fontSize: e.value.style.chart.legend.fontSize,
557
570
  paddingBottom: 12,
558
571
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
559
- })), pe = b(!1);
572
+ })), me = b(!1);
560
573
  function Ee() {
561
- pe.value = !pe.value;
574
+ me.value = !me.value;
562
575
  }
563
- function xe(a, r) {
564
- const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
565
- name: l.name,
566
- value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
567
- proportion: l.proportions[r] || null,
568
- color: l.color,
569
- 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
570
583
  }));
571
- $e("selectTimeLabel", {
584
+ Se("selectTimeLabel", {
572
585
  datapoint: t,
573
586
  absoluteIndex: a.absoluteIndex,
574
587
  label: a.text
575
588
  });
576
589
  }
577
- const sa = k(() => Math.max(...w.value.flatMap((a) => a.series)));
578
- function xt(a, r) {
579
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 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 > sa.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;
580
593
  }
581
- async function oa({ scale: a = 2 } = {}) {
594
+ async function ca({ scale: a = 2 } = {}) {
582
595
  if (!P.value) return;
583
- const { width: r, height: t } = P.value.getBoundingClientRect(), l = r / t, { imageUri: c, base64: u } = await Ha({ 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 });
584
597
  return {
585
598
  imageUri: c,
586
599
  base64: u,
587
600
  title: e.value.style.chart.title.text,
588
- width: r,
601
+ width: l,
589
602
  height: t,
590
- aspectRatio: l
603
+ aspectRatio: s
591
604
  };
592
605
  }
593
- return Vt({
594
- getData: aa,
595
- getImage: oa,
596
- generatePdf: rt,
597
- generateCsv: mt,
598
- generateImage: st,
599
- toggleTable: yt,
600
- toggleLabels: gt,
601
- toggleTooltip: bt,
606
+ return Dt({
607
+ getData: oa,
608
+ getImage: ca,
609
+ generatePdf: st,
610
+ generateCsv: xt,
611
+ generateImage: rt,
612
+ toggleTable: bt,
613
+ toggleLabels: ft,
614
+ toggleTooltip: mt,
602
615
  toggleAnnotator: Ee,
603
- toggleFullscreen: dt
604
- }), (a, r) => (s(), o("div", {
616
+ toggleFullscreen: gt
617
+ }), (a, l) => (r(), o("div", {
605
618
  id: `stackbar_${V.value}`,
606
619
  ref_key: "stackbarChart",
607
620
  ref: P,
608
- class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
621
+ class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
609
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%" : ""}`),
610
- onMouseenter: r[6] || (r[6] = () => v(Ke)(!0)),
611
- onMouseleave: r[7] || (r[7] = () => v(Ke)(!1))
623
+ onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
624
+ onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
612
625
  }, [
613
- e.value.userOptions.buttons.annotator ? (s(), K(v(Ht), {
626
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
614
627
  key: 0,
615
628
  svgRef: v(je),
616
629
  backgroundColor: e.value.style.chart.backgroundColor,
617
630
  color: e.value.style.chart.color,
618
- active: pe.value,
631
+ active: me.value,
619
632
  onClose: Ee
620
633
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
621
634
  L(a.$slots, "userConfig", {}, void 0, !0),
622
- e.value.style.chart.title.text ? (s(), o("div", {
635
+ e.value.style.chart.title.text ? (r(), o("div", {
623
636
  key: 1,
624
637
  ref_key: "chartTitle",
625
638
  ref: Be,
626
639
  style: "width:100%;background:transparent;padding-bottom:24px"
627
640
  }, [
628
- (s(), K(Fa, {
641
+ (r(), K(Ba, {
629
642
  key: `title_${Je.value}`,
630
643
  config: {
631
644
  title: {
@@ -639,9 +652,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
639
652
  }
640
653
  }, null, 8, ["config"]))
641
654
  ], 512)) : y("", !0),
642
- e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (s(), K(v(Wt), {
655
+ e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (r(), K(v(Xt), {
643
656
  ref: "details",
644
- key: `user_option_${He.value}`,
657
+ key: `user_option_${Ue.value}`,
645
658
  backgroundColor: e.value.style.chart.backgroundColor,
646
659
  color: e.value.style.chart.color,
647
660
  isPrinting: v(at),
@@ -654,31 +667,31 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
654
667
  hasTable: e.value.userOptions.buttons.table,
655
668
  hasLabel: e.value.userOptions.buttons.labels,
656
669
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
657
- isFullscreen: ue.value,
670
+ isFullscreen: ne.value,
658
671
  chartElement: P.value,
659
672
  position: e.value.userOptions.position,
660
673
  isTooltip: z.value.showTooltip,
661
674
  titles: { ...e.value.userOptions.buttonTitles },
662
675
  hasAnnotator: e.value.userOptions.buttons.annotator,
663
- isAnnotation: pe.value,
676
+ isAnnotation: me.value,
664
677
  callbacks: e.value.userOptions.callbacks,
665
678
  printScale: e.value.userOptions.print.scale,
666
- onToggleFullscreen: dt,
667
- onGeneratePdf: v(rt),
668
- onGenerateCsv: mt,
669
- onGenerateImage: v(st),
670
- onToggleTable: yt,
671
- onToggleLabels: gt,
672
- onToggleTooltip: bt,
679
+ onToggleFullscreen: gt,
680
+ onGeneratePdf: v(st),
681
+ onGenerateCsv: xt,
682
+ onGenerateImage: v(rt),
683
+ onToggleTable: bt,
684
+ onToggleLabels: ft,
685
+ onToggleTooltip: mt,
673
686
  onToggleAnnotator: Ee,
674
687
  style: Z({
675
688
  visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
676
689
  })
677
- }, $t({ _: 2 }, [
690
+ }, Mt({ _: 2 }, [
678
691
  a.$slots.menuIcon ? {
679
692
  name: "menuIcon",
680
- fn: C(({ isOpen: t, color: l }) => [
681
- L(a.$slots, "menuIcon", U(H({ 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)
682
695
  ]),
683
696
  key: "0"
684
697
  } : void 0,
@@ -726,29 +739,29 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
726
739
  } : void 0,
727
740
  a.$slots.optionFullscreen ? {
728
741
  name: "optionFullscreen",
729
- fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
730
- L(a.$slots, "optionFullscreen", U(H({ 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)
731
744
  ]),
732
745
  key: "7"
733
746
  } : void 0,
734
747
  a.$slots.optionAnnotator ? {
735
748
  name: "optionAnnotator",
736
- fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
737
- L(a.$slots, "optionAnnotator", U(H({ 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)
738
751
  ]),
739
752
  key: "8"
740
753
  } : void 0
741
754
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
742
- (s(), o("svg", {
755
+ (r(), o("svg", {
743
756
  ref_key: "svgRef",
744
757
  ref: je,
745
- xmlns: v(Ca),
758
+ xmlns: v(Ta),
746
759
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
747
- class: ae({ "vue-data-ui-loading": v(ce) }),
760
+ class: le({ "vue-data-ui-loading": v(ce) }),
748
761
  style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
749
762
  }, [
750
- we(v(Ut)),
751
- a.$slots["chart-background"] ? (s(), o("foreignObject", {
763
+ ke(v(Bt)),
764
+ a.$slots["chart-background"] ? (r(), o("foreignObject", {
752
765
  key: 0,
753
766
  x: n.value.left,
754
767
  y: n.value.top,
@@ -759,9 +772,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
759
772
  }
760
773
  }, [
761
774
  L(a.$slots, "chart-background", {}, void 0, !0)
762
- ], 8, Ja)) : y("", !0),
763
- e.value.style.chart.bars.gradient.show ? (s(), o("defs", qa, [
764
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), 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", {
765
778
  id: `gradient_${t.id}`,
766
779
  x1: "0%",
767
780
  y1: "0%",
@@ -771,18 +784,18 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
771
784
  Q("stop", {
772
785
  offset: "0%",
773
786
  "stop-color": t.color
774
- }, null, 8, Ka),
787
+ }, null, 8, tl),
775
788
  Q("stop", {
776
789
  offset: "61.8%",
777
- "stop-color": v(Sa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
778
- }, null, 8, Qa),
790
+ "stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
791
+ }, null, 8, al),
779
792
  Q("stop", {
780
793
  offset: "100%",
781
794
  "stop-color": t.color
782
- }, null, 8, ja)
783
- ], 8, Za))), 256))
795
+ }, null, 8, ll)
796
+ ], 8, el))), 256))
784
797
  ])) : y("", !0),
785
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 2 }, m(I.value, (t, l) => (s(), 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", {
786
799
  x1: n.value.left,
787
800
  x2: n.value.right,
788
801
  y1: t.y,
@@ -791,28 +804,28 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
791
804
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
792
805
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
793
806
  "stroke-linecap": "round"
794
- }, null, 8, el))), 256)) : y("", !0),
795
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, l) => (s(), 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", {
796
809
  x1: n.value.left,
797
810
  x2: n.value.right,
798
- y1: n.value.top + d.value * l,
799
- y2: n.value.top + d.value * l,
811
+ y1: n.value.top + d.value * s,
812
+ y2: n.value.top + d.value * s,
800
813
  stroke: e.value.style.chart.grid.x.linesColor,
801
814
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
802
815
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
803
816
  "stroke-linecap": "round"
804
- }, null, 8, tl))), 256)) : y("", !0),
805
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, l) => (s(), o("line", {
806
- x1: n.value.left + d.value * l,
807
- 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,
808
821
  y1: n.value.top,
809
822
  y2: n.value.bottom,
810
823
  stroke: e.value.style.chart.grid.y.linesColor,
811
824
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
812
825
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
813
826
  "stroke-linecap": "round"
814
- }, null, 8, al))), 256)) : y("", !0),
815
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 5 }, m(I.value, (t, l) => (s(), 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", {
816
829
  x1: t.horizontal_x,
817
830
  x2: t.horizontal_x,
818
831
  y1: n.value.top,
@@ -821,13 +834,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
821
834
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
822
835
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
823
836
  "stroke-linecap": "round"
824
- }, null, 8, ll))), 256)) : y("", !0),
825
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
826
- a.$slots.pattern ? (s(), o("defs", rl, [
827
- 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)
828
841
  ])) : y("", !0),
829
- e.value.orientation === "vertical" ? (s(), o(g, { key: 1 }, [
830
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
842
+ e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
843
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
831
844
  x: c,
832
845
  y: t.y[u] < 0 ? 0 : t.y[u],
833
846
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -838,10 +851,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
838
851
  "stroke-width": e.value.style.chart.bars.strokeWidth,
839
852
  "stroke-linecap": "round",
840
853
  "stroke-linejoin": "round",
841
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
842
- }, null, 10, sl))), 256)),
843
- a.$slots.pattern ? (s(), o("g", ol, [
844
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
854
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
855
+ }, null, 10, ul))), 256)),
856
+ a.$slots.pattern ? (r(), o("g", cl, [
857
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
845
858
  x: c,
846
859
  y: t.y[u] < 0 ? 0 : t.y[u],
847
860
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -852,14 +865,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
852
865
  "stroke-width": e.value.style.chart.bars.strokeWidth,
853
866
  "stroke-linecap": "round",
854
867
  "stroke-linejoin": "round",
855
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
856
- }, null, 10, il))), 256))
868
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
869
+ }, null, 10, hl))), 256))
857
870
  ])) : y("", !0)
858
- ], 64)) : (s(), o(g, { key: 2 }, [
859
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
860
- x: v(Ce)(c, n.value.left),
871
+ ], 64)) : (r(), o(g, { key: 2 }, [
872
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
873
+ x: v(ze)(c, n.value.left),
861
874
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
862
- 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]),
863
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,
864
877
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
865
878
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -867,13 +880,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
867
880
  "stroke-width": e.value.style.chart.bars.strokeWidth,
868
881
  "stroke-linecap": "round",
869
882
  "stroke-linejoin": "round",
870
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
871
- }, null, 10, nl))), 256)),
872
- a.$slots.pattern ? (s(), o("g", ul, [
873
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
874
- x: v(Ce)(c, n.value.left),
883
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
884
+ }, null, 10, vl))), 256)),
885
+ a.$slots.pattern ? (r(), o("g", dl, [
886
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
887
+ x: v(ze)(c, n.value.left),
875
888
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
876
- 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]),
877
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,
878
891
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
879
892
  fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
@@ -881,12 +894,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
881
894
  "stroke-width": e.value.style.chart.bars.strokeWidth,
882
895
  "stroke-linecap": "round",
883
896
  "stroke-linejoin": "round",
884
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
885
- }, null, 10, cl))), 256))
897
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
898
+ }, null, 10, yl))), 256))
886
899
  ])) : y("", !0)
887
900
  ], 64))
888
901
  ]))), 256)),
889
- e.value.style.chart.grid.x.showAxis ? (s(), o("line", {
902
+ e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
890
903
  key: 6,
891
904
  x1: n.value.left,
892
905
  x2: n.value.right,
@@ -896,8 +909,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
896
909
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
897
910
  "stroke-linecap": "round",
898
911
  "stroke-linejoin": "round"
899
- }, null, 8, hl)) : y("", !0),
900
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), o("line", {
912
+ }, null, 8, gl)) : y("", !0),
913
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
901
914
  key: 7,
902
915
  x1: n.value.left,
903
916
  x2: n.value.left,
@@ -907,8 +920,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
907
920
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
908
921
  "stroke-linecap": "round",
909
922
  "stroke-linejoin": "round"
910
- }, null, 8, vl)) : y("", !0),
911
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), o("text", {
923
+ }, null, 8, bl)) : y("", !0),
924
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
912
925
  key: 8,
913
926
  ref_key: "xAxisLabel",
914
927
  ref: Ae,
@@ -918,8 +931,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
918
931
  fill: e.value.style.chart.grid.x.axisName.color,
919
932
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
920
933
  "text-anchor": "middle"
921
- }, M(e.value.style.chart.grid.x.axisName.text), 9, dl)) : y("", !0),
922
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), o("text", {
934
+ }, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
935
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
923
936
  key: 9,
924
937
  ref_key: "yAxisLabel",
925
938
  ref: Ne,
@@ -928,92 +941,92 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
928
941
  fill: e.value.style.chart.grid.y.axisName.color,
929
942
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
930
943
  "text-anchor": "middle"
931
- }, M(e.value.style.chart.grid.y.axisName.text), 9, yl)) : y("", !0),
932
- z.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), o(g, { key: 10 }, [
933
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
934
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o(g, null, [
935
- xt(t.series[u], t.proportions[u]) ? (s(), o("text", {
944
+ }, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
945
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
946
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
947
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
948
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
936
949
  key: 0,
937
950
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
938
951
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
939
952
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
940
- 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,
941
954
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
942
955
  "text-anchor": "middle"
943
- }, 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, gl)) : 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)
944
957
  ], 64))), 256))
945
958
  ]))), 256)),
946
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
959
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
947
960
  key: 0,
948
961
  ref_key: "sumTop",
949
- ref: qt
962
+ ref: Kt
950
963
  }, [
951
- (s(!0), o(g, null, m(ut.value, (t, l) => (s(), o(g, null, [
952
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
964
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
965
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
953
966
  key: 0,
954
- x: n.value.left + d.value * l + d.value / 2,
967
+ x: n.value.left + d.value * s + d.value / 2,
955
968
  y: e.value.style.chart.bars.totalValues.fontSize,
956
969
  "text-anchor": "middle",
957
970
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
958
971
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
959
972
  fill: e.value.style.chart.bars.totalValues.color
960
- }, M(fe(t.value, t, l, t.sign)), 9, bl)) : y("", !0)
973
+ }, M(be(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
961
974
  ], 64))), 256))
962
975
  ], 512)) : y("", !0)
963
976
  ], 64)) : y("", !0),
964
- z.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), o(g, { key: 11 }, [
965
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
966
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o(g, null, [
967
- xt(t.series[u], t.proportions[u]) ? (s(), o("text", {
977
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
978
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
979
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
980
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
968
981
  key: 0,
969
982
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
970
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,
971
984
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
972
- 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,
973
986
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
974
987
  "text-anchor": "middle"
975
- }, 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)
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)
976
989
  ], 64))), 256))
977
990
  ]))), 256)),
978
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
991
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
979
992
  key: 0,
980
993
  ref_key: "sumRight",
981
994
  ref: Ze
982
995
  }, [
983
- (s(!0), o(g, null, m(ut.value, (t, l) => (s(), o(g, null, [
984
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
996
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
997
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
985
998
  key: 0,
986
999
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
987
- y: n.value.top + d.value * l + d.value / 2,
1000
+ y: n.value.top + d.value * s + d.value / 2,
988
1001
  "text-anchor": "start",
989
1002
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
990
1003
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
991
1004
  fill: e.value.style.chart.bars.totalValues.color
992
- }, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
1005
+ }, M(be(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
993
1006
  ], 64))), 256))
994
1007
  ], 512)) : y("", !0)
995
1008
  ], 64)) : y("", !0),
996
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), o("g", {
1009
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
997
1010
  key: 12,
998
1011
  ref_key: "scaleLabels",
999
1012
  ref: W
1000
1013
  }, [
1001
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1014
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1002
1015
  x1: n.value.left,
1003
1016
  x2: n.value.left - 6,
1004
1017
  y1: t.y,
1005
1018
  y2: t.y,
1006
1019
  stroke: e.value.style.chart.grid.x.axisColor,
1007
1020
  "stroke-width": 1
1008
- }, null, 8, pl))), 256)),
1009
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1021
+ }, null, 8, Ll))), 256)),
1022
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1010
1023
  x: t.x,
1011
1024
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1012
1025
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1013
1026
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1014
1027
  fill: e.value.style.chart.grid.y.axisLabels.color,
1015
1028
  "text-anchor": "end"
1016
- }, M(v(Se)(
1029
+ }, M(v(Ce)(
1017
1030
  e.value.style.chart.grid.y.axisLabels.formatter,
1018
1031
  t.value,
1019
1032
  v(j)({
@@ -1023,14 +1036,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1023
1036
  r: e.value.style.chart.grid.y.axisLabels.rounding
1024
1037
  }),
1025
1038
  { datapoint: t }
1026
- )), 9, xl))), 256))
1039
+ )), 9, zl))), 256))
1027
1040
  ], 512)) : y("", !0),
1028
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), o("g", {
1041
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1029
1042
  key: 13,
1030
1043
  ref_key: "scaleLabels",
1031
1044
  ref: W
1032
1045
  }, [
1033
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1046
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1034
1047
  x1: t.horizontal_x,
1035
1048
  x2: t.horizontal_x,
1036
1049
  y1: n.value.bottom,
@@ -1038,15 +1051,15 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1038
1051
  stroke: e.value.style.chart.grid.x.axisColor,
1039
1052
  "stroke-width": 1,
1040
1053
  "stroke-linecap": "round"
1041
- }, null, 8, kl))), 256)),
1042
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1054
+ }, null, 8, Cl))), 256)),
1055
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1043
1056
  class: "vue-data-ui-time-label",
1044
1057
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1045
1058
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1046
1059
  fill: e.value.style.chart.grid.y.axisLabels.color,
1047
1060
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1048
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})`
1049
- }, M(v(Se)(
1062
+ }, M(v(Ce)(
1050
1063
  e.value.style.chart.grid.y.axisLabels.formatter,
1051
1064
  t.value,
1052
1065
  v(j)({
@@ -1056,75 +1069,75 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1056
1069
  r: e.value.style.chart.grid.y.axisLabels.rounding
1057
1070
  }),
1058
1071
  { datapoint: t }
1059
- )), 9, wl))), 256))
1072
+ )), 9, _l))), 256))
1060
1073
  ], 512)) : y("", !0),
1061
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), o("g", {
1074
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1062
1075
  key: 14,
1063
1076
  ref_key: "timeLabelsEls",
1064
1077
  ref: Y
1065
1078
  }, [
1066
- a.$slots["time-label"] ? (s(), o("g", Ll, [
1067
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1068
- L(a.$slots, "time-label", De({ ref_for: !0 }, {
1069
- 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,
1070
1083
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1071
1084
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1072
1085
  fill: e.value.style.chart.grid.x.timeLabels.color,
1073
- 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})`,
1074
1087
  absoluteIndex: t.absoluteIndex,
1075
1088
  content: t.text,
1076
1089
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1077
1090
  show: !0
1078
1091
  }), void 0, !0)
1079
1092
  ]))), 256))
1080
- ])) : (s(), o("g", zl, [
1081
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1093
+ ])) : (r(), o("g", $l, [
1094
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1082
1095
  String(t.text).includes(`
1083
- `) ? (s(), o("text", {
1084
- key: l + "-multi",
1096
+ `) ? (r(), o("text", {
1097
+ key: s + "-multi",
1085
1098
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1086
1099
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1087
1100
  fill: e.value.style.chart.grid.x.timeLabels.color,
1088
1101
  transform: `
1089
1102
  translate(
1090
- ${n.value.left + d.value * l + d.value / 2},
1103
+ ${n.value.left + d.value * s + d.value / 2},
1091
1104
  ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1092
1105
  ),
1093
1106
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1094
1107
  `,
1095
1108
  style: { cursor: "pointer" },
1096
- innerHTML: v(_a)({
1109
+ innerHTML: v(Aa)({
1097
1110
  content: String(t.text),
1098
1111
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1099
1112
  fill: e.value.style.chart.grid.x.timeLabels.color,
1100
1113
  x: 0,
1101
1114
  y: 0
1102
1115
  }),
1103
- onClick: () => xe(t, l)
1104
- }, null, 8, Sl)) : (s(), o("text", {
1116
+ onClick: () => pe(t, s)
1117
+ }, null, 8, Ml)) : (r(), o("text", {
1105
1118
  class: "vue-data-ui-time-label",
1106
- key: l,
1119
+ key: s,
1107
1120
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1108
1121
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1109
1122
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1110
1123
  fill: e.value.style.chart.grid.x.timeLabels.color,
1111
- 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})`,
1112
1125
  style: { cursor: "pointer" },
1113
- onClick: () => xe(t, l)
1114
- }, M(t.text), 9, Cl))
1126
+ onClick: () => pe(t, s)
1127
+ }, M(t.text), 9, Tl))
1115
1128
  ]))), 256))
1116
1129
  ]))
1117
1130
  ], 512)) : y("", !0),
1118
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), o("g", {
1131
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1119
1132
  key: 15,
1120
1133
  ref_key: "timeLabelsEls",
1121
1134
  ref: Y
1122
1135
  }, [
1123
- a.$slots["time-label"] ? (s(), o("g", _l, [
1124
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1125
- 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 }, {
1126
1139
  x: n.value.left - 8,
1127
- 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,
1128
1141
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1129
1142
  fill: e.value.style.chart.grid.x.timeLabels.color,
1130
1143
  transform: null,
@@ -1134,72 +1147,68 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1134
1147
  show: !0
1135
1148
  }), void 0, !0)
1136
1149
  ]))), 256))
1137
- ])) : (s(), o("g", $l, [
1138
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1150
+ ])) : (r(), o("g", Nl, [
1151
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1139
1152
  String(t.text).includes(`
1140
- `) ? (s(), o("text", {
1153
+ `) ? (r(), o("text", {
1141
1154
  key: 1,
1142
1155
  "text-anchor": "end",
1143
1156
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1144
1157
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1145
1158
  fill: e.value.style.chart.grid.y.axisLabels.color,
1146
1159
  x: n.value.left - 8,
1147
- 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,
1148
1161
  style: { cursor: "pointer" },
1149
- onClick: () => xe(t, l),
1150
- innerHTML: v($a)({
1162
+ onClick: () => pe(t, s),
1163
+ innerHTML: v(Na)({
1151
1164
  content: String(t.text),
1152
1165
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1153
1166
  fill: e.value.style.chart.grid.y.axisLabels.color,
1154
1167
  x: n.value.left - 8,
1155
1168
  y: 0
1156
1169
  })
1157
- }, null, 8, Ml)) : (s(), o("text", {
1170
+ }, null, 8, Rl)) : (r(), o("text", {
1158
1171
  key: 0,
1159
1172
  "text-anchor": "end",
1160
1173
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1161
1174
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1162
1175
  fill: e.value.style.chart.grid.y.axisLabels.color,
1163
1176
  x: n.value.left - 8,
1164
- 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,
1165
1178
  style: {
1166
1179
  cursor: "pointer"
1167
1180
  },
1168
- onClick: () => xe(t, l)
1169
- }, M(t.text), 9, Tl))
1181
+ onClick: () => pe(t, s)
1182
+ }, M(t.text), 9, Il))
1170
1183
  ]))), 256))
1171
1184
  ]))
1172
1185
  ], 512)) : y("", !0),
1173
- z.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, l) => (s(), o("rect", {
1174
- 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,
1175
1188
  y: n.value.top,
1176
1189
  width: d.value,
1177
1190
  height: n.value.height < 0 ? 0 : n.value.height,
1178
- onClick: (c) => ht(l),
1179
- onMouseenter: (c) => vt(l),
1180
- onMouseleave: r[0] || (r[0] = (c) => {
1181
- re.value = null, ne.value = !1;
1182
- }),
1183
- 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",
1184
1195
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1185
- }, null, 44, Al))), 256)) : y("", !0),
1186
- z.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, l) => (s(), 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", {
1187
1198
  x: n.value.left,
1188
- y: n.value.top + l * d.value,
1199
+ y: n.value.top + s * d.value,
1189
1200
  width: n.value.width < 0 ? 0 : n.value.width,
1190
1201
  height: d.value,
1191
- onClick: (c) => ht(l),
1192
- onMouseenter: (c) => vt(l),
1193
- onMouseleave: r[1] || (r[1] = (c) => {
1194
- re.value = null, ne.value = !1;
1195
- }),
1196
- 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",
1197
1206
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1198
- }, null, 44, Nl))), 256)) : y("", !0),
1199
- L(a.$slots, "svg", U(H({ ...n.value })), void 0, !0)
1200
- ], 14, Ga)),
1201
- a.$slots.watermark ? (s(), o("div", Il, [
1202
- L(a.$slots, "watermark", U(H({ isPrinting: v(at) || v(lt) })), void 0, !0)
1207
+ }, null, 44, Pl))), 256)) : y("", !0),
1208
+ L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1209
+ ], 14, Ka)),
1210
+ a.$slots.watermark ? (r(), o("div", Vl, [
1211
+ L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1203
1212
  ])) : y("", !0),
1204
1213
  Q("div", {
1205
1214
  ref_key: "chartSlicer",
@@ -1207,7 +1216,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1207
1216
  style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1208
1217
  "data-dom-to-png-ignore": ""
1209
1218
  }, [
1210
- e.value.style.chart.zoom.show && D.value > 1 ? (s(), K(Ea, {
1219
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ua, {
1211
1220
  ref_key: "slicerComponent",
1212
1221
  ref: qe,
1213
1222
  key: `slicer_${Ge.value}`,
@@ -1225,9 +1234,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1225
1234
  valueStart: h.value.start,
1226
1235
  valueEnd: h.value.end,
1227
1236
  start: h.value.start,
1228
- "onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
1237
+ "onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
1229
1238
  end: h.value.end,
1230
- "onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
1239
+ "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1231
1240
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1232
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)),
1233
1242
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
@@ -1235,13 +1244,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1235
1244
  onReset: nt
1236
1245
  }, {
1237
1246
  "reset-action": C(({ reset: t }) => [
1238
- L(a.$slots, "reset-action", U(H({ reset: t })), void 0, !0)
1247
+ L(a.$slots, "reset-action", H(U({ reset: t })), void 0, !0)
1239
1248
  ]),
1240
1249
  _: 3
1241
1250
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1242
1251
  ], 4),
1243
- we(v(Bt), {
1244
- show: z.value.showTooltip && ne.value,
1252
+ ke(v(Yt), {
1253
+ show: z.value.showTooltip && $e.value,
1245
1254
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1246
1255
  color: e.value.style.chart.tooltip.color,
1247
1256
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1253,16 +1262,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1253
1262
  offsetY: e.value.style.chart.tooltip.offsetY,
1254
1263
  parent: P.value,
1255
1264
  content: Me.value,
1256
- isFullscreen: ue.value,
1257
- isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat),
1265
+ isFullscreen: ne.value,
1266
+ isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
1258
1267
  smooth: e.value.style.chart.tooltip.smooth,
1259
1268
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1260
1269
  }, {
1261
1270
  "tooltip-before": C(() => [
1262
- L(a.$slots, "tooltip-before", U(H({ ...Te.value })), void 0, !0)
1271
+ L(a.$slots, "tooltip-before", H(U({ ...Te.value })), void 0, !0)
1263
1272
  ]),
1264
1273
  "tooltip-after": C(() => [
1265
- L(a.$slots, "tooltip-after", U(H({ ...Te.value })), void 0, !0)
1274
+ L(a.$slots, "tooltip-after", H(U({ ...Te.value })), void 0, !0)
1266
1275
  ]),
1267
1276
  _: 3
1268
1277
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
@@ -1270,39 +1279,39 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1270
1279
  ref_key: "chartLegend",
1271
1280
  ref: We
1272
1281
  }, [
1273
- e.value.style.chart.legend.show && ie.value ? (s(), K(Va, {
1282
+ e.value.style.chart.legend.show && ie.value ? (r(), K(Ha, {
1274
1283
  key: 0,
1275
- legendSet: pt.value,
1276
- config: ra.value,
1277
- onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1278
- }, $t({
1284
+ legendSet: kt.value,
1285
+ config: na.value,
1286
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1287
+ }, Mt({
1279
1288
  item: C(({ legend: t }) => [
1280
1289
  Q("div", {
1281
- onClick: (l) => t.segregate(),
1282
- style: Z(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
1283
- }, M(t.name), 13, Rl)
1290
+ onClick: (s) => t.segregate(),
1291
+ style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1292
+ }, M(t.name), 13, El)
1284
1293
  ]),
1285
1294
  _: 2
1286
1295
  }, [
1287
1296
  a.$slots.pattern ? {
1288
1297
  name: "legend-pattern",
1289
- fn: C(({ legend: t, index: l }) => [
1290
- we(Da, {
1298
+ fn: C(({ legend: t, index: s }) => [
1299
+ ke(Wa, {
1291
1300
  shape: t.shape,
1292
1301
  radius: 30,
1293
1302
  stroke: "none",
1294
1303
  plot: { x: 30, y: 30 },
1295
- fill: `url(#pattern_${V.value}_${l})`
1304
+ fill: `url(#pattern_${V.value}_${s})`
1296
1305
  }, null, 8, ["shape", "fill"])
1297
1306
  ]),
1298
1307
  key: "0"
1299
1308
  } : void 0
1300
1309
  ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1301
1310
  key: 1,
1302
- legend: pt.value
1311
+ legend: kt.value
1303
1312
  }, void 0, !0)
1304
1313
  ], 512),
1305
- a.$slots.source ? (s(), o("div", {
1314
+ a.$slots.source ? (r(), o("div", {
1306
1315
  key: 4,
1307
1316
  ref_key: "source",
1308
1317
  ref: Xe,
@@ -1310,7 +1319,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1310
1319
  }, [
1311
1320
  L(a.$slots, "source", {}, void 0, !0)
1312
1321
  ], 512)) : y("", !0),
1313
- h.value.end - h.value.start < 200 ? (s(), K(v(Ft), {
1322
+ h.value.end - h.value.start < 200 ? (r(), K(v(Ht), {
1314
1323
  key: 5,
1315
1324
  hideDetails: "",
1316
1325
  config: {
@@ -1327,19 +1336,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1327
1336
  }
1328
1337
  }, {
1329
1338
  content: C(() => [
1330
- we(v(Dt), {
1331
- colNames: me.value.colNames,
1332
- head: me.value.head,
1333
- body: me.value.body,
1334
- 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,
1335
1344
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1336
- onClose: r[5] || (r[5] = (t) => z.value.showTable = !1)
1345
+ onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
1337
1346
  }, {
1338
1347
  th: C(({ th: t }) => [
1339
- Q("div", { innerHTML: t }, null, 8, Ol)
1348
+ Q("div", { innerHTML: t }, null, 8, Dl)
1340
1349
  ]),
1341
1350
  td: C(({ td: t }) => [
1342
- fa(M(isNaN(Number(t)) ? t : v(j)({
1351
+ ka(M(isNaN(Number(t)) ? t : v(j)({
1343
1352
  p: e.value.style.chart.bars.dataLabels.prefix,
1344
1353
  v: t,
1345
1354
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1351,10 +1360,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1351
1360
  ]),
1352
1361
  _: 1
1353
1362
  }, 8, ["config"])) : y("", !0),
1354
- v(ce) ? (s(), K(Wa, { key: 6 })) : y("", !0)
1355
- ], 46, Xa));
1363
+ v(ce) ? (r(), K(Ja, { key: 6 })) : y("", !0)
1364
+ ], 46, Za));
1356
1365
  }
1357
- }, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-eeccc9b1"]]);
1366
+ }, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-e430a869"]]);
1358
1367
  export {
1359
- jl as default
1368
+ ls as default
1360
1369
  };