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

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-7o1zcGGd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-S80pCP_z.js → BaseDraggableDialog-fZ1Z5U4d.js} +2 -2
  3. package/dist/{BaseIcon-CVvwtj-w.js → BaseIcon-Cq9SmUOT.js} +1 -1
  4. package/dist/{ColorPicker-DhGMsdlx.js → ColorPicker-BNmC5tPY.js} +2 -2
  5. package/dist/{DataTable-CQqQt3fP.js → DataTable-DonNp9Tn.js} +2 -2
  6. package/dist/{Legend-DAN5L1lo.js → Legend-De_LcU2x.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-s0PFQNll.js → NonSvgPenAndPaper-DCCmvppN.js} +3 -3
  8. package/dist/{PackageVersion-DGlLBQOn.js → PackageVersion-F_KOshQ5.js} +1 -1
  9. package/dist/{PenAndPaper-hAK7vneq.js → PenAndPaper-BzsPyqiU.js} +3 -3
  10. package/dist/{Shape-CjeprST6.js → Shape-CJI8rA0G.js} +1 -1
  11. package/dist/{Slicer-8WIL9Cfq.js → Slicer-BCCGJwNV.js} +2 -2
  12. package/dist/{SparkTooltip-DeTWOnTg.js → SparkTooltip-ZSo6Sdhj.js} +1 -1
  13. package/dist/{Title-Bo-MVYcn.js → Title-CbfJu3Bz.js} +1 -1
  14. package/dist/{Tooltip-DD9Ly0Pw.js → Tooltip-BuuVsO8D.js} +1 -1
  15. package/dist/{UserOptions-dJLhbxrH.js → UserOptions-32osgWD2.js} +2 -2
  16. package/dist/{dom-to-png-CjNOdM-6.js → dom-to-png-B4iPnzPd.js} +1 -1
  17. package/dist/{img-59KgIaXp.js → img-Domj-5hZ.js} +1 -1
  18. package/dist/{index-h6tbqLot.js → index-BeBasrrG.js} +672 -660
  19. package/dist/{pdf-CVKcemYx.js → pdf-KclgkN6e.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +12 -7
  22. package/dist/types/vue-data-ui.d.ts +12 -7
  23. package/dist/{useNestedProp-D059IOwh.js → useNestedProp-BI69cynt.js} +1 -1
  24. package/dist/{usePrinter-BuJDNOzF.js → usePrinter-DpTBVYGM.js} +2 -2
  25. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  26. package/dist/{vue-data-ui-CnP-8qvV.js → vue-data-ui-DfOSI-cw.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-BFUcEqAl.js} +6 -6
  29. package/dist/{vue-ui-accordion-DyBJ-mad.js → vue-ui-accordion-BBZQktvS.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DlD9Y8xr.js → vue-ui-age-pyramid-C1fCszkG.js} +6 -6
  31. package/dist/{vue-ui-annotator-BoWAUlmS.js → vue-ui-annotator-BThZoiBl.js} +2 -2
  32. package/dist/{vue-ui-bullet-CfUFHtlX.js → vue-ui-bullet-D0-jL6aT.js} +7 -7
  33. package/dist/{vue-ui-candlestick-DDS8WYxh.js → vue-ui-candlestick-BKY_1NxQ.js} +163 -160
  34. package/dist/{vue-ui-carousel-table-D2xngvtB.js → vue-ui-carousel-table-RqYXqUym.js} +4 -4
  35. package/dist/{vue-ui-chestnut-D1pWQozg.js → vue-ui-chestnut-QLx875w4.js} +5 -5
  36. package/dist/{vue-ui-chord-DEK-Wk7B.js → vue-ui-chord-rUYoYkRO.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-CeykLpx8.js → vue-ui-circle-pack-DX5resGr.js} +6 -6
  38. package/dist/{vue-ui-cursor-D86Y-gg1.js → vue-ui-cursor-Day-0aL1.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CwWcub4O.js → vue-ui-dashboard-G0W4wq1U.js} +62 -62
  40. package/dist/{vue-ui-digits-CBD1fasp.js → vue-ui-digits-DFREi_Ky.js} +2 -2
  41. package/dist/{vue-ui-donut-DzM857Mw.js → vue-ui-donut-BdxnEUCr.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-BPTk5wKW.js → vue-ui-donut-evolution-DYeMgZMU.js} +215 -212
  43. package/dist/{vue-ui-dumbbell-Dqm2btrM.js → vue-ui-dumbbell-ajhNYekO.js} +7 -7
  44. package/dist/{vue-ui-flow-C-JgLHsh.js → vue-ui-flow-BOq3_apj.js} +7 -7
  45. package/dist/{vue-ui-funnel-Dm3aCwVL.js → vue-ui-funnel-1Tc-WWAK.js} +6 -6
  46. package/dist/{vue-ui-galaxy-siSx2yn6.js → vue-ui-galaxy-DRdIquCv.js} +5 -5
  47. package/dist/{vue-ui-gauge-BgIR1PlQ.js → vue-ui-gauge-B0a3J_d1.js} +6 -6
  48. package/dist/{vue-ui-gizmo-CPIlfu1s.js → vue-ui-gizmo-5G0uR26C.js} +3 -3
  49. package/dist/vue-ui-heatmap-BGYSmKC-.js +1084 -0
  50. package/dist/{vue-ui-history-plot-DOWu_0wY.js → vue-ui-history-plot-kHo6293P.js} +7 -7
  51. package/dist/{vue-ui-kpi-BqGvPVuE.js → vue-ui-kpi-6zONwNMN.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-C3RV5-mc.js → vue-ui-mini-loader-XyVfmLch.js} +2 -2
  53. package/dist/{vue-ui-molecule-DsMfjmG0.js → vue-ui-molecule-BoQKd6NP.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CRWVJjIb.js → vue-ui-mood-radar-DncLIzjX.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-D5gnJmVK.js → vue-ui-nested-donuts-DXMadqNK.js} +9 -9
  56. package/dist/{vue-ui-onion-D1qHQTBl.js → vue-ui-onion-CbtXXJHJ.js} +7 -7
  57. package/dist/{vue-ui-parallel-coordinate-plot-BnAveZOI.js → vue-ui-parallel-coordinate-plot-D-zLAqYN.js} +8 -8
  58. package/dist/{vue-ui-quadrant-B7Lqriri.js → vue-ui-quadrant-DqN9de-E.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-CvQRgbKq.js → vue-ui-quick-chart-fAHV8BFQ.js} +6 -6
  60. package/dist/{vue-ui-radar-D494eivm.js → vue-ui-radar-Dcr4Y35J.js} +7 -7
  61. package/dist/{vue-ui-rating-CTHYICJA.js → vue-ui-rating-Y_X6wrM8.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DMtH5ofd.js → vue-ui-relation-circle-CsjfP4w3.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-BiDnGLX5.js → vue-ui-ridgeline-COQZjWXD.js} +8 -8
  64. package/dist/{vue-ui-rings-DXGyAl3y.js → vue-ui-rings-IWHU4YHR.js} +8 -8
  65. package/dist/{vue-ui-scatter-Ds7sncxR.js → vue-ui-scatter-zG4nPspJ.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DIJ5u0HF.js → vue-ui-skeleton-BLCAe0aL.js} +3 -3
  67. package/dist/{vue-ui-smiley-Dyhet6zb.js → vue-ui-smiley-CgMyaK6w.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-rhXFuApA.js → vue-ui-spark-trend-Dn2iTtuB.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-COfmi6KI.js → vue-ui-sparkbar-BA_s34xX.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DJOsuPG-.js → vue-ui-sparkgauge-CGoeUY4p.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-DV3KR-q5.js → vue-ui-sparkhistogram-BuSn8iJi.js} +4 -4
  72. package/dist/{vue-ui-sparkline-kf86uahK.js → vue-ui-sparkline-CYJUhGaJ.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DPpQkxUm.js → vue-ui-sparkstackbar-BDQWVxNP.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CASe4O-t.js → vue-ui-stackbar-B92-pzwh.js} +301 -298
  75. package/dist/{vue-ui-strip-plot-DRfNBQ9A.js → vue-ui-strip-plot-BLTjzATL.js} +7 -7
  76. package/dist/{vue-ui-table-Cg422ltc.js → vue-ui-table-Ba7Z_7OX.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BCDOpShn.js → vue-ui-table-heatmap-C29u3mfg.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-MtUkhn2K.js → vue-ui-table-sparkline-BLR9glHo.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Bz4qJzLC.js → vue-ui-thermometer-BAm6l97t.js} +6 -6
  80. package/dist/{vue-ui-timer-Da3hWBUk.js → vue-ui-timer-CqbbNnBk.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-Bafaf_gE.js → vue-ui-tiremarks-BnZr2Vrp.js} +6 -6
  82. package/dist/{vue-ui-treemap-CSQjMeIP.js → vue-ui-treemap-J8OANLCg.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-tLYgt_Pg.js → vue-ui-vertical-bar-DdR3STYF.js} +9 -9
  84. package/dist/{vue-ui-waffle-ir_3LGj_.js → vue-ui-waffle-w5VJA7gR.js} +8 -8
  85. package/dist/{vue-ui-wheel-bDEJ_vBc.js → vue-ui-wheel-D5yea4oH.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BLQ-MfCc.js → vue-ui-word-cloud-OugLGxgB.js} +6 -6
  87. package/dist/{vue-ui-world-_IoWGh3p.js → vue-ui-world-BSptBo4h.js} +6 -6
  88. package/dist/{vue-ui-xy-dnlLx-v4.js → vue-ui-xy-DnYo2K58.js} +56 -54
  89. package/dist/{vue-ui-xy-canvas-DDRJMmPT.js → vue-ui-xy-canvas-Cmn0RWbG.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 fa, computed as x, ref as b, onMounted as Lt, toRefs as ma, watch as Fe, shallowRef as zt, onBeforeUnmount as Ct, watchEffect as St, nextTick as _t, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as le, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as we, createSlots as $t, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as De, toDisplayString as M, createTextVNode as pa } from "vue";
2
+ import { u as xa, c as Tt, A as ka, t as wa, p as Le, a as La, C as se, b as za, o as Mt, e as At, g as Ca, d as Sa, an as ze, ac as Nt, D as It, X as _a, l as $a, aa as Ce, F as Rt, i as Se, f as j, I as Ta, a0 as Ma, x as Ot, q as Aa, r as Na, y as Ia } from "./index-BeBasrrG.js";
3
+ import { u as Pt } from "./useNestedProp-BI69cynt.js";
4
+ import { t as He, u as Ra } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Oa } from "./usePrinter-DpTBVYGM.js";
6
+ import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Va } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as Ea } from "./useTimeLabelCollider-CIsgDrl9.js";
9
+ import Fa from "./Legend-De_LcU2x.js";
10
+ import { S as Da } from "./Slicer-BCCGJwNV.js";
11
+ import Ha from "./Title-CbfJu3Bz.js";
12
+ import { _ as Ua } from "./Shape-CJI8rA0G.js";
13
+ import { u as Ba } from "./useTimeLabels-DkzmKfZn.js";
14
+ import Wa from "./img-Domj-5hZ.js";
15
+ import { u as Ya, B as Xa } from "./BaseScanner-DIK2NTdp.js";
16
+ import { _ as Ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Ja = ["id"], qa = ["xmlns", "viewBox"], Za = ["x", "y", "width", "height"], Ka = { key: 1 }, Qa = ["id"], ja = ["stop-color"], el = ["stop-color"], tl = ["stop-color"], al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = { key: 0 }, il = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], hl = { key: 0 }, vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["transform", "font-size", "fill", "font-weight"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["x", "y", "font-size", "font-weight", "fill"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x1", "x2", "y1", "y2", "stroke"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Cl = { key: 0 }, Sl = { key: 1 }, _l = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], $l = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Tl = { key: 0 }, Ml = { key: 1 }, Al = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Nl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Rl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ol = {
18
18
  key: 3,
19
19
  class: "vue-data-ui-watermark"
20
- }, Rl = ["onClick"], Ol = ["innerHTML"], Pl = {
20
+ }, Pl = ["onClick"], Vl = ["innerHTML"], El = {
21
21
  __name: "vue-ui-stackbar",
22
22
  props: {
23
23
  config: {
@@ -35,19 +35,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
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({
38
+ const Ft = ae(() => import("./vue-ui-accordion-BBZQktvS.js")), Dt = ae(() => import("./DataTable-DonNp9Tn.js")), Ht = ae(() => import("./PackageVersion-F_KOshQ5.js")), Ut = ae(() => import("./PenAndPaper-BzsPyqiU.js")), Bt = ae(() => import("./Tooltip-BuuVsO8D.js")), Wt = ae(() => import("./UserOptions-32osgWD2.js")), { vue_ui_stackbar: Yt } = xa(), Xt = fa(), f = _e, $e = Et, ne = x({
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);
45
+ }), P = b(null), V = b(Tt()), ue = b(!1), Te = b(null), Me = b(""), _ = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ce = b(!1), re = b(null), B = b(!1), Je = b(0), Gt = b(0), Jt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), qt = b(null), Ze = b(null);
46
46
  Lt(() => {
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: he, FINAL_DATASET: ve, manualLoading: de } = Ya({
50
+ ...ma(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: ka({
71
71
  defaultConfig: e.value,
72
72
  userConfig: {
73
73
  userOptions: { show: !1 },
@@ -116,26 +116,26 @@ 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 } = Pa({ config: e.value }), { svgRef: je } = Va({ config: e.value.style.chart.title });
120
120
  function Re() {
121
121
  const a = Pt({
122
122
  userConfig: f.config,
123
123
  defaultConfig: Yt
124
124
  });
125
- let r = {};
126
- return a.theme ? r = {
125
+ let s = {};
126
+ return a.theme ? s = {
127
127
  ...Pt({
128
- userConfig: ka.vue_ui_stackbar[a.theme] || f.config,
128
+ userConfig: La.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: wa[a.theme] || Le
132
+ } : s = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? s.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : s.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? s.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : s.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? s.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : s.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? s.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : s.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? s.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : s.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? s.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : s.style.chart.bars.dataLabels.hideUnderPercentage = null, s;
133
133
  }
134
- const et = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = k(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
134
+ const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
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;
136
+ he.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, Gt.value += 1, Jt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
137
137
  }, { deep: !0 }), Fe(() => f.dataset, (a) => {
138
- Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
138
+ Array.isArray(a) && a.length > 0 && (de.value = !1), nt();
139
139
  }, { deep: !0 });
140
140
  const z = b({
141
141
  dataLabels: {
@@ -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 } = Oa({
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,35 +166,35 @@ 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);
169
+ }), Zt = x(() => za(e.value.customPalette)), E = zt(null), te = zt(null), ot = b(null);
170
170
  Lt(() => {
171
171
  Pe();
172
172
  });
173
- const Oe = k(() => !!e.value.debug);
173
+ const Oe = x(() => !!e.value.debug);
174
174
  function Pe() {
175
175
  if (Mt(f.dataset) ? (At({
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
+ }), de.value = !0) : f.dataset.forEach((a, s) => {
180
+ Ca({
181
181
  datasetObject: a,
182
182
  requiredAttributes: ["name", "series"]
183
183
  }).forEach((t) => {
184
- ie.value = !1, At({
184
+ ne.value = !1, At({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
188
- index: r,
188
+ index: s,
189
189
  debug: Oe.value
190
- }), ve.value = !0;
190
+ }), de.value = !0;
191
191
  });
192
- }), Mt(f.dataset) || (ve.value = e.value.loading), setTimeout(() => {
192
+ }), Mt(f.dataset) || (de.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: s, height: t } = Ra({
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,
@@ -202,17 +202,17 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
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 = s, 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
214
  Ct(() => {
215
- E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
215
+ E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
216
216
  });
217
217
  function Kt() {
218
218
  let a = 0;
@@ -223,47 +223,47 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
223
223
  const u = c.getComputedTextLength();
224
224
  return u > l ? u : l;
225
225
  }, 0));
226
- const r = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
- return a + r + (r ? 24 : 0);
226
+ const s = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
+ return a + s + (s ? 24 : 0);
228
228
  }
229
- const ye = b(0), ge = b(0), Qt = Ue((a) => {
229
+ const ye = b(0), ge = b(0), Qt = He((a) => {
230
230
  ye.value = a;
231
231
  }, 100);
232
232
  St((a) => {
233
- const r = e.value.orientation === "vertical" ? Y.value : W.value;
234
- if (!r) return;
233
+ const s = e.value.orientation === "vertical" ? Y.value : W.value;
234
+ if (!s) return;
235
235
  const t = new ResizeObserver((l) => {
236
236
  Qt(l[0].contentRect.height);
237
237
  });
238
- t.observe(r), a(() => t.disconnect());
238
+ t.observe(s), a(() => t.disconnect());
239
239
  });
240
- const jt = Ue((a) => {
240
+ const jt = He((a) => {
241
241
  ge.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
242
  }, 100);
243
243
  St((a) => {
244
244
  if (e.value.orientation === "vertical") return;
245
- const r = Ze.value;
246
- if (!r) return;
245
+ const s = Ze.value;
246
+ if (!s) return;
247
247
  const t = new ResizeObserver((l) => {
248
248
  jt(l[0].contentRect.width);
249
249
  });
250
- t.observe(r), a(() => t.disconnect());
250
+ t.observe(s), a(() => t.disconnect());
251
251
  }), Ct(() => {
252
252
  ye.value = 0, ge.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;
257
+ let s = 0;
258
+ return e.value.orientation === "vertical" && Y.value && (s = ye.value), e.value.orientation === "horizontal" && W.value && (s = ye.value), a + s;
259
+ }), n = x(() => {
260
+ const { height: a, width: s } = ee.value, { right: t } = ee.value.paddingRatio;
261
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
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;
263
+ const u = e.value.style.chart.padding.top + l, S = s - s * t - ge.value, X = a - e.value.style.chart.padding.bottom - it.value - l, G = e.value.style.chart.padding.left + c, J = s - G - s * t - ge.value, R = a - u - e.value.style.chart.padding.bottom - it.value - l;
264
264
  return {
265
265
  chartHeight: a,
266
- chartWidth: r,
266
+ chartWidth: s,
267
267
  top: u,
268
268
  right: S,
269
269
  bottom: X,
@@ -271,54 +271,54 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
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
+ }), F = x(() => ve.value.map((a, s) => {
275
+ const t = Sa(a.color) || Zt.value[s] || Le[s] || Le[s % Le.length];
276
276
  return {
277
277
  ...a,
278
278
  // In distributed mode, all values are converted to positive
279
279
  series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
280
280
  // Store signs to manage display of neg values in distributed mode
281
281
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
282
- absoluteIndex: r,
282
+ absoluteIndex: s,
283
283
  id: Tt(),
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
+ })), D = x(() => Math.max(...F.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = b({
287
287
  start: 0,
288
- end: Math.max(...he.value.map((a) => a.series.length))
288
+ end: Math.max(...ve.value.map((a) => a.series.length))
289
289
  });
290
290
  function nt() {
291
291
  Ve();
292
292
  }
293
293
  async function Ve() {
294
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);
295
+ const { startIndex: a, endIndex: s } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...ve.value.map((c) => c.series.length));
296
+ (a != null || s != null) && t ? (a != null && t.setStartValue(a), s != null && t.setEndValue(ea(s + 1))) : (h.value = { start: 0, end: l }, Ge.value += 1);
297
297
  }
298
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;
299
+ const s = Math.max(...ve.value.map((t) => t.series.length));
300
+ return a > s ? s : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
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
+ }), oe = x(() => ze(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = x(() => ze(F.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
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((s, t) => a.signedSeries[t] === -1 && s >= 0 ? -s : s)
308
+ }))).slice(h.value.start, h.value.end)), be = x(() => {
309
+ const a = F.value.filter((s) => !_.value.includes(s.id));
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: ze(a.map((s) => ({
312
+ ...s,
313
+ series: s.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: ze(a.map((s) => ({
316
+ ...s,
317
+ series: s.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);
320
+ }), I = x(() => {
321
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...be.value.positive), s = Math.min(...be.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(s) ? 0 : s, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Nt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : It(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
322
  return l.ticks.map((c) => ({
323
323
  zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
324
324
  y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -328,50 +328,50 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
328
328
  horizontal_y: n.value.bottom - 8,
329
329
  value: c
330
330
  }));
331
- }), $ = k(() => Ua({
331
+ }), $ = x(() => Ba({
332
332
  values: e.value.style.chart.grid.x.timeLabels.values,
333
333
  maxDatapoints: D.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(() => {
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);
337
+ })), w = x(() => {
338
+ if (!ne.value && !he.value) return [];
339
+ let a = Array(D.value).fill(0), s = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
340
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;
341
+ return F.value.filter((ie) => !_.value.includes(ie.id)).map((ie) => {
342
+ const O = ie.series.slice(h.value.start, h.value.end), ua = ie.signedSeries.slice(h.value.start, h.value.end), ca = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ha = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), va = O.map((p, k) => {
343
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
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 = kt - N - a[k], a[k] += N) : (N = T * A, q = kt + t[k], t[k] += Math.abs(N)), q;
346
+ }), da = O.map((p, k) => {
347
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
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 = ke * A, q = wt + s[k], s[k] += N) : (N = ke * A, q = wt - Math.abs(N) - l[k], l[k] += Math.abs(N)), q;
350
+ }), ya = O.map((p, k) => {
351
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
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;
353
+ }), ga = O.map((p, k) => {
354
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
355
355
  return p > 0 ? ke * A : ke * Math.abs(A);
356
- }), ya = O.map((p) => Math.abs(p)).reduce((p, x) => p + x, 0);
356
+ }), ba = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
357
357
  return {
358
- ...oe,
359
- proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / se.value[x] : (p || 0) / ya),
358
+ ...ie,
359
+ proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ba),
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: ua,
362
+ x: ca,
363
+ y: va,
364
+ height: ya,
365
+ horizontal_width: ga,
366
+ horizontal_y: ha,
367
+ horizontal_x: da
368
368
  };
369
369
  });
370
- }), ut = k(() => ta.value.map((a, r) => ({
370
+ }), ut = x(() => ta.value.map((a, s) => ({
371
371
  value: a,
372
372
  sign: a >= 0 ? 1 : -1
373
373
  })));
374
- function fe(a, r, t, l, c) {
374
+ function fe(a, s, t, l, c) {
375
375
  const u = c === -1 && a >= 0 ? -a : a;
376
376
  return Se(
377
377
  e.value.style.chart.bars.dataLabels.formatter,
@@ -382,10 +382,10 @@ 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: s, seriesIndex: t, datapointIndex: l }
386
386
  );
387
387
  }
388
- function ct(a, r, t, l) {
388
+ function ct(a, s, t, l) {
389
389
  return Se(
390
390
  e.value.style.chart.bars.dataLabels.formatter,
391
391
  a,
@@ -394,22 +394,22 @@ 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: s, seriesIndex: t, datapointIndex: l }
398
398
  );
399
399
  }
400
400
  function ht(a) {
401
- const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
401
+ const s = 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("selectDatapoint", { datapoint: s, 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) => ({
411
+ re.value = a, ue.value = !0;
412
+ const s = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
413
413
  name: c.name,
414
414
  absoluteIndex: c.absoluteIndex,
415
415
  value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
@@ -424,13 +424,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
424
424
  series: w.value
425
425
  };
426
426
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
427
- if (Ot(r) && Aa(() => r({
427
+ if (Ot(s) && Ia(() => s({
428
428
  seriesIndex: a,
429
429
  datapoint: t,
430
430
  series: w.value,
431
431
  config: e.value
432
432
  })))
433
- Me.value = r({
433
+ Me.value = s({
434
434
  seriesIndex: a,
435
435
  datapoint: t,
436
436
  series: w.value,
@@ -470,17 +470,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
470
470
  }), Me.value = `<div>${J}</div>`;
471
471
  }
472
472
  }
473
- Pa({
473
+ const aa = x(() => ee.value.width), la = x(() => ee.value.height);
474
+ Ea({
474
475
  timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
475
476
  timeLabels: $,
476
477
  slicer: h,
477
478
  configRef: e,
478
479
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
479
480
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
480
- isAutoSize: !1
481
+ isAutoSize: !1,
482
+ width: aa,
483
+ height: la
481
484
  });
482
485
  function dt(a) {
483
- ue.value = a, He.value += 1;
486
+ ce.value = a, Ue.value += 1;
484
487
  }
485
488
  function yt() {
486
489
  z.value.showTable = !z.value.showTable;
@@ -491,32 +494,32 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
491
494
  function bt() {
492
495
  z.value.showTooltip = !z.value.showTooltip;
493
496
  }
494
- function aa() {
497
+ function sa() {
495
498
  return w.value;
496
499
  }
497
- const ft = k(() => {
500
+ const ft = x(() => {
498
501
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
499
502
  const a = w.value.map(({ name: t, color: l }) => ({
500
503
  label: t,
501
504
  color: l
502
- })), r = [];
505
+ })), s = [];
503
506
  return $.value.forEach((t) => {
504
507
  const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
505
508
  F.value.forEach((c) => {
506
509
  l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
507
- }), r.push(l);
508
- }), { head: a, body: r };
510
+ }), s.push(l);
511
+ }), { head: a, body: s };
509
512
  });
510
513
  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" });
514
+ const s = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...ft.value.head.map((S) => S.label)], l = ft.value.body, c = s.concat([t]).concat(l), u = Aa(c);
515
+ a ? a(u) : Na({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
513
516
  }
514
- const me = k(() => {
517
+ const me = x(() => {
515
518
  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 = [];
519
+ let s = [];
517
520
  for (let c = 0; c < D.value; c += 1) {
518
521
  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)));
522
+ s.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((S) => (S.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
520
523
  }
521
524
  const t = {
522
525
  th: {
@@ -531,25 +534,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
531
534
  },
532
535
  breakpoint: e.value.table.responsiveBreakpoint
533
536
  }, 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 };
537
+ return { head: a, body: s.slice(0, h.value.end - h.value.start), config: t, colNames: l };
535
538
  });
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);
539
+ function ra(a, s) {
540
+ if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(s.id))
541
+ _.value = _.value.filter((t) => t !== s.id);
539
542
  else {
540
543
  if (_.value.length === F.value.length - 1) return;
541
- _.value.push(r.id);
544
+ _.value.push(s.id);
542
545
  }
543
546
  }
544
- const pt = k(() => F.value.map((a, r) => ({
547
+ const pt = x(() => F.value.map((a, s) => ({
545
548
  ...a,
546
549
  shape: "square"
547
550
  })).map((a) => ({
548
551
  ...a,
549
552
  opacity: _.value.includes(a.id) ? 0.5 : 1,
550
- segregate: () => la(a.absoluteIndex, a),
553
+ segregate: () => ra(a.absoluteIndex, a),
551
554
  isSegregated: _.value.includes(a.id)
552
- }))), ra = k(() => ({
555
+ }))), oa = x(() => ({
553
556
  cy: "stackbar-legend",
554
557
  backgroundColor: e.value.style.chart.legend.backgroundColor,
555
558
  color: e.value.style.chart.legend.color,
@@ -560,11 +563,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
560
563
  function Ee() {
561
564
  pe.value = !pe.value;
562
565
  }
563
- function xe(a, r) {
566
+ function xe(a, s) {
564
567
  const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
565
568
  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,
569
+ value: l.series[s] === 0 ? 0 : (l.signedSeries[s] === -1 && l.series[s] >= 0 ? -l.series[s] : l.series[s]) || null,
570
+ proportion: l.proportions[s] || null,
568
571
  color: l.color,
569
572
  id: l.id
570
573
  }));
@@ -574,43 +577,43 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
574
577
  label: a.text
575
578
  });
576
579
  }
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;
580
+ const ia = x(() => Math.max(...w.value.flatMap((a) => a.series)));
581
+ function xt(a, s) {
582
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? s * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? s > 0 : !0 : tt.value ? (et.value && Oe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > ia.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
580
583
  }
581
- async function oa({ scale: a = 2 } = {}) {
584
+ async function na({ scale: a = 2 } = {}) {
582
585
  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 });
586
+ const { width: s, height: t } = P.value.getBoundingClientRect(), l = s / t, { imageUri: c, base64: u } = await Wa({ domElement: P.value, base64: !0, img: !0, scale: a });
584
587
  return {
585
588
  imageUri: c,
586
589
  base64: u,
587
590
  title: e.value.style.chart.title.text,
588
- width: r,
591
+ width: s,
589
592
  height: t,
590
593
  aspectRatio: l
591
594
  };
592
595
  }
593
596
  return Vt({
594
- getData: aa,
595
- getImage: oa,
596
- generatePdf: rt,
597
+ getData: sa,
598
+ getImage: na,
599
+ generatePdf: st,
597
600
  generateCsv: mt,
598
- generateImage: st,
601
+ generateImage: rt,
599
602
  toggleTable: yt,
600
603
  toggleLabels: gt,
601
604
  toggleTooltip: bt,
602
605
  toggleAnnotator: Ee,
603
606
  toggleFullscreen: dt
604
- }), (a, r) => (s(), o("div", {
607
+ }), (a, s) => (r(), o("div", {
605
608
  id: `stackbar_${V.value}`,
606
609
  ref_key: "stackbarChart",
607
610
  ref: P,
608
- class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
611
+ class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ce.value }),
609
612
  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))
613
+ onMouseenter: s[6] || (s[6] = () => v(Ke)(!0)),
614
+ onMouseleave: s[7] || (s[7] = () => v(Ke)(!1))
612
615
  }, [
613
- e.value.userOptions.buttons.annotator ? (s(), K(v(Ht), {
616
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Ut), {
614
617
  key: 0,
615
618
  svgRef: v(je),
616
619
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -619,13 +622,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
619
622
  onClose: Ee
620
623
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
621
624
  L(a.$slots, "userConfig", {}, void 0, !0),
622
- e.value.style.chart.title.text ? (s(), o("div", {
625
+ e.value.style.chart.title.text ? (r(), o("div", {
623
626
  key: 1,
624
627
  ref_key: "chartTitle",
625
628
  ref: Be,
626
629
  style: "width:100%;background:transparent;padding-bottom:24px"
627
630
  }, [
628
- (s(), K(Fa, {
631
+ (r(), K(Ha, {
629
632
  key: `title_${Je.value}`,
630
633
  config: {
631
634
  title: {
@@ -639,9 +642,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
639
642
  }
640
643
  }, null, 8, ["config"]))
641
644
  ], 512)) : y("", !0),
642
- e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (s(), K(v(Wt), {
645
+ e.value.userOptions.show && ne.value && (v(Qe) || v(Ie)) ? (r(), K(v(Wt), {
643
646
  ref: "details",
644
- key: `user_option_${He.value}`,
647
+ key: `user_option_${Ue.value}`,
645
648
  backgroundColor: e.value.style.chart.backgroundColor,
646
649
  color: e.value.style.chart.color,
647
650
  isPrinting: v(at),
@@ -654,7 +657,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
654
657
  hasTable: e.value.userOptions.buttons.table,
655
658
  hasLabel: e.value.userOptions.buttons.labels,
656
659
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
657
- isFullscreen: ue.value,
660
+ isFullscreen: ce.value,
658
661
  chartElement: P.value,
659
662
  position: e.value.userOptions.position,
660
663
  isTooltip: z.value.showTooltip,
@@ -664,9 +667,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
664
667
  callbacks: e.value.userOptions.callbacks,
665
668
  printScale: e.value.userOptions.print.scale,
666
669
  onToggleFullscreen: dt,
667
- onGeneratePdf: v(rt),
670
+ onGeneratePdf: v(st),
668
671
  onGenerateCsv: mt,
669
- onGenerateImage: v(st),
672
+ onGenerateImage: v(rt),
670
673
  onToggleTable: yt,
671
674
  onToggleLabels: gt,
672
675
  onToggleTooltip: bt,
@@ -678,7 +681,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
678
681
  a.$slots.menuIcon ? {
679
682
  name: "menuIcon",
680
683
  fn: C(({ isOpen: t, color: l }) => [
681
- L(a.$slots, "menuIcon", U(H({ isOpen: t, color: l })), void 0, !0)
684
+ L(a.$slots, "menuIcon", H(U({ isOpen: t, color: l })), void 0, !0)
682
685
  ]),
683
686
  key: "0"
684
687
  } : void 0,
@@ -727,28 +730,28 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
727
730
  a.$slots.optionFullscreen ? {
728
731
  name: "optionFullscreen",
729
732
  fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
730
- L(a.$slots, "optionFullscreen", U(H({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
733
+ L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
731
734
  ]),
732
735
  key: "7"
733
736
  } : void 0,
734
737
  a.$slots.optionAnnotator ? {
735
738
  name: "optionAnnotator",
736
739
  fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
737
- L(a.$slots, "optionAnnotator", U(H({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
740
+ L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
738
741
  ]),
739
742
  key: "8"
740
743
  } : void 0
741
744
  ]), 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", {
745
+ (r(), o("svg", {
743
746
  ref_key: "svgRef",
744
747
  ref: je,
745
- xmlns: v(Ca),
748
+ xmlns: v(_a),
746
749
  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) }),
750
+ class: le({ "vue-data-ui-loading": v(he) }),
748
751
  style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
749
752
  }, [
750
- we(v(Ut)),
751
- a.$slots["chart-background"] ? (s(), o("foreignObject", {
753
+ we(v(Ht)),
754
+ a.$slots["chart-background"] ? (r(), o("foreignObject", {
752
755
  key: 0,
753
756
  x: n.value.left,
754
757
  y: n.value.top,
@@ -759,9 +762,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
759
762
  }
760
763
  }, [
761
764
  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", {
765
+ ], 8, Za)) : y("", !0),
766
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", Ka, [
767
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("linearGradient", {
765
768
  id: `gradient_${t.id}`,
766
769
  x1: "0%",
767
770
  y1: "0%",
@@ -771,18 +774,18 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
771
774
  Q("stop", {
772
775
  offset: "0%",
773
776
  "stop-color": t.color
774
- }, null, 8, Ka),
777
+ }, null, 8, ja),
775
778
  Q("stop", {
776
779
  offset: "61.8%",
777
- "stop-color": v(Sa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
778
- }, null, 8, Qa),
780
+ "stop-color": v($a)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
781
+ }, null, 8, el),
779
782
  Q("stop", {
780
783
  offset: "100%",
781
784
  "stop-color": t.color
782
- }, null, 8, ja)
783
- ], 8, Za))), 256))
785
+ }, null, 8, tl)
786
+ ], 8, Qa))), 256))
784
787
  ])) : 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", {
788
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, l) => (r(), o("line", {
786
789
  x1: n.value.left,
787
790
  x2: n.value.right,
788
791
  y1: t.y,
@@ -791,8 +794,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
791
794
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
792
795
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
793
796
  "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", {
797
+ }, null, 8, al))), 256)) : y("", !0),
798
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, l) => (r(), o("line", {
796
799
  x1: n.value.left,
797
800
  x2: n.value.right,
798
801
  y1: n.value.top + d.value * l,
@@ -801,8 +804,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
801
804
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
802
805
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
803
806
  "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", {
807
+ }, null, 8, ll))), 256)) : y("", !0),
808
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, l) => (r(), o("line", {
806
809
  x1: n.value.left + d.value * l,
807
810
  x2: n.value.left + d.value * l,
808
811
  y1: n.value.top,
@@ -811,8 +814,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
811
814
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
812
815
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
813
816
  "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", {
817
+ }, null, 8, sl))), 256)) : y("", !0),
818
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, l) => (r(), o("line", {
816
819
  x1: t.horizontal_x,
817
820
  x2: t.horizontal_x,
818
821
  y1: n.value.top,
@@ -821,13 +824,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
821
824
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
822
825
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
823
826
  "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
+ }, null, 8, rl))), 256)) : y("", !0),
828
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
829
+ a.$slots.pattern ? (r(), o("defs", ol, [
827
830
  L(a.$slots, "pattern", De({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
828
831
  ])) : 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", {
832
+ e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
833
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
831
834
  x: c,
832
835
  y: t.y[u] < 0 ? 0 : t.y[u],
833
836
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -838,10 +841,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
838
841
  "stroke-width": e.value.style.chart.bars.strokeWidth,
839
842
  "stroke-linecap": "round",
840
843
  "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", {
844
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
845
+ }, null, 10, il))), 256)),
846
+ a.$slots.pattern ? (r(), o("g", nl, [
847
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
845
848
  x: c,
846
849
  y: t.y[u] < 0 ? 0 : t.y[u],
847
850
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -852,11 +855,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
852
855
  "stroke-width": e.value.style.chart.bars.strokeWidth,
853
856
  "stroke-linecap": "round",
854
857
  "stroke-linejoin": "round",
855
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
856
- }, null, 10, il))), 256))
858
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
859
+ }, null, 10, ul))), 256))
857
860
  ])) : y("", !0)
858
- ], 64)) : (s(), o(g, { key: 2 }, [
859
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
861
+ ], 64)) : (r(), o(g, { key: 2 }, [
862
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
860
863
  x: v(Ce)(c, n.value.left),
861
864
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
862
865
  width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
@@ -867,10 +870,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
867
870
  "stroke-width": e.value.style.chart.bars.strokeWidth,
868
871
  "stroke-linecap": "round",
869
872
  "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", {
873
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
874
+ }, null, 10, cl))), 256)),
875
+ a.$slots.pattern ? (r(), o("g", hl, [
876
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
874
877
  x: v(Ce)(c, n.value.left),
875
878
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
876
879
  width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
@@ -881,12 +884,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
881
884
  "stroke-width": e.value.style.chart.bars.strokeWidth,
882
885
  "stroke-linecap": "round",
883
886
  "stroke-linejoin": "round",
884
- class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
885
- }, null, 10, cl))), 256))
887
+ class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
888
+ }, null, 10, vl))), 256))
886
889
  ])) : y("", !0)
887
890
  ], 64))
888
891
  ]))), 256)),
889
- e.value.style.chart.grid.x.showAxis ? (s(), o("line", {
892
+ e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
890
893
  key: 6,
891
894
  x1: n.value.left,
892
895
  x2: n.value.right,
@@ -896,8 +899,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
896
899
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
897
900
  "stroke-linecap": "round",
898
901
  "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", {
902
+ }, null, 8, dl)) : y("", !0),
903
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
901
904
  key: 7,
902
905
  x1: n.value.left,
903
906
  x2: n.value.left,
@@ -907,8 +910,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
907
910
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
908
911
  "stroke-linecap": "round",
909
912
  "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", {
913
+ }, null, 8, yl)) : y("", !0),
914
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
912
915
  key: 8,
913
916
  ref_key: "xAxisLabel",
914
917
  ref: Ae,
@@ -918,8 +921,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
918
921
  fill: e.value.style.chart.grid.x.axisName.color,
919
922
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
920
923
  "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", {
924
+ }, M(e.value.style.chart.grid.x.axisName.text), 9, gl)) : y("", !0),
925
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
923
926
  key: 9,
924
927
  ref_key: "yAxisLabel",
925
928
  ref: Ne,
@@ -928,11 +931,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
928
931
  fill: e.value.style.chart.grid.y.axisName.color,
929
932
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
930
933
  "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", {
934
+ }, M(e.value.style.chart.grid.y.axisName.text), 9, bl)) : y("", !0),
935
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
936
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
937
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
938
+ xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
936
939
  key: 0,
937
940
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
938
941
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
@@ -940,16 +943,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
940
943
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
941
944
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
942
945
  "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)
946
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, fl)) : y("", !0)
944
947
  ], 64))), 256))
945
948
  ]))), 256)),
946
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
949
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
947
950
  key: 0,
948
951
  ref_key: "sumTop",
949
952
  ref: qt
950
953
  }, [
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", {
954
+ (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
955
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
953
956
  key: 0,
954
957
  x: n.value.left + d.value * l + d.value / 2,
955
958
  y: e.value.style.chart.bars.totalValues.fontSize,
@@ -957,14 +960,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
957
960
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
958
961
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
959
962
  fill: e.value.style.chart.bars.totalValues.color
960
- }, M(fe(t.value, t, l, t.sign)), 9, bl)) : y("", !0)
963
+ }, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
961
964
  ], 64))), 256))
962
965
  ], 512)) : y("", !0)
963
966
  ], 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", {
967
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
968
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
969
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
970
+ xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
968
971
  key: 0,
969
972
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
970
973
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
@@ -972,16 +975,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
972
975
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
973
976
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
974
977
  "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)
978
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, l, u) : fe(t.series[u], t, l, u, t.signedSeries[u])), 9, pl)) : y("", !0)
976
979
  ], 64))), 256))
977
980
  ]))), 256)),
978
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
981
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
979
982
  key: 0,
980
983
  ref_key: "sumRight",
981
984
  ref: Ze
982
985
  }, [
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", {
986
+ (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
987
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
985
988
  key: 0,
986
989
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
987
990
  y: n.value.top + d.value * l + d.value / 2,
@@ -989,24 +992,24 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
989
992
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
990
993
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
991
994
  fill: e.value.style.chart.bars.totalValues.color
992
- }, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
995
+ }, M(fe(t.value, t, l, t.sign)), 9, xl)) : y("", !0)
993
996
  ], 64))), 256))
994
997
  ], 512)) : y("", !0)
995
998
  ], 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", {
999
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
997
1000
  key: 12,
998
1001
  ref_key: "scaleLabels",
999
1002
  ref: W
1000
1003
  }, [
1001
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1004
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1002
1005
  x1: n.value.left,
1003
1006
  x2: n.value.left - 6,
1004
1007
  y1: t.y,
1005
1008
  y2: t.y,
1006
1009
  stroke: e.value.style.chart.grid.x.axisColor,
1007
1010
  "stroke-width": 1
1008
- }, null, 8, pl))), 256)),
1009
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1011
+ }, null, 8, kl))), 256)),
1012
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1010
1013
  x: t.x,
1011
1014
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1012
1015
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1023,14 +1026,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1023
1026
  r: e.value.style.chart.grid.y.axisLabels.rounding
1024
1027
  }),
1025
1028
  { datapoint: t }
1026
- )), 9, xl))), 256))
1029
+ )), 9, wl))), 256))
1027
1030
  ], 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", {
1031
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1029
1032
  key: 13,
1030
1033
  ref_key: "scaleLabels",
1031
1034
  ref: W
1032
1035
  }, [
1033
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1036
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1034
1037
  x1: t.horizontal_x,
1035
1038
  x2: t.horizontal_x,
1036
1039
  y1: n.value.bottom,
@@ -1038,8 +1041,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1038
1041
  stroke: e.value.style.chart.grid.x.axisColor,
1039
1042
  "stroke-width": 1,
1040
1043
  "stroke-linecap": "round"
1041
- }, null, 8, kl))), 256)),
1042
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1044
+ }, null, 8, Ll))), 256)),
1045
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1043
1046
  class: "vue-data-ui-time-label",
1044
1047
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1045
1048
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -1056,15 +1059,15 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1056
1059
  r: e.value.style.chart.grid.y.axisLabels.rounding
1057
1060
  }),
1058
1061
  { datapoint: t }
1059
- )), 9, wl))), 256))
1062
+ )), 9, zl))), 256))
1060
1063
  ], 512)) : y("", !0),
1061
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), o("g", {
1064
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1062
1065
  key: 14,
1063
1066
  ref_key: "timeLabelsEls",
1064
1067
  ref: Y
1065
1068
  }, [
1066
- a.$slots["time-label"] ? (s(), o("g", Ll, [
1067
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1069
+ a.$slots["time-label"] ? (r(), o("g", Cl, [
1070
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1068
1071
  L(a.$slots, "time-label", De({ ref_for: !0 }, {
1069
1072
  x: n.value.left + d.value * l + d.value / 2,
1070
1073
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
@@ -1077,10 +1080,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1077
1080
  show: !0
1078
1081
  }), void 0, !0)
1079
1082
  ]))), 256))
1080
- ])) : (s(), o("g", zl, [
1081
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1083
+ ])) : (r(), o("g", Sl, [
1084
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1082
1085
  String(t.text).includes(`
1083
- `) ? (s(), o("text", {
1086
+ `) ? (r(), o("text", {
1084
1087
  key: l + "-multi",
1085
1088
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1086
1089
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1093,7 +1096,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1093
1096
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1094
1097
  `,
1095
1098
  style: { cursor: "pointer" },
1096
- innerHTML: v(_a)({
1099
+ innerHTML: v(Ta)({
1097
1100
  content: String(t.text),
1098
1101
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1099
1102
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -1101,7 +1104,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1101
1104
  y: 0
1102
1105
  }),
1103
1106
  onClick: () => xe(t, l)
1104
- }, null, 8, Sl)) : (s(), o("text", {
1107
+ }, null, 8, $l)) : (r(), o("text", {
1105
1108
  class: "vue-data-ui-time-label",
1106
1109
  key: l,
1107
1110
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1111,17 +1114,17 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1111
1114
  transform: `translate(${n.value.left + d.value * l + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1112
1115
  style: { cursor: "pointer" },
1113
1116
  onClick: () => xe(t, l)
1114
- }, M(t.text), 9, Cl))
1117
+ }, M(t.text), 9, _l))
1115
1118
  ]))), 256))
1116
1119
  ]))
1117
1120
  ], 512)) : y("", !0),
1118
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), o("g", {
1121
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1119
1122
  key: 15,
1120
1123
  ref_key: "timeLabelsEls",
1121
1124
  ref: Y
1122
1125
  }, [
1123
- a.$slots["time-label"] ? (s(), o("g", _l, [
1124
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1126
+ a.$slots["time-label"] ? (r(), o("g", Tl, [
1127
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1125
1128
  L(a.$slots, "time-label", De({ ref_for: !0 }, {
1126
1129
  x: n.value.left - 8,
1127
1130
  y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -1134,10 +1137,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1134
1137
  show: !0
1135
1138
  }), void 0, !0)
1136
1139
  ]))), 256))
1137
- ])) : (s(), o("g", $l, [
1138
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1140
+ ])) : (r(), o("g", Ml, [
1141
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1139
1142
  String(t.text).includes(`
1140
- `) ? (s(), o("text", {
1143
+ `) ? (r(), o("text", {
1141
1144
  key: 1,
1142
1145
  "text-anchor": "end",
1143
1146
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1147,14 +1150,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1147
1150
  y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1148
1151
  style: { cursor: "pointer" },
1149
1152
  onClick: () => xe(t, l),
1150
- innerHTML: v($a)({
1153
+ innerHTML: v(Ma)({
1151
1154
  content: String(t.text),
1152
1155
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1153
1156
  fill: e.value.style.chart.grid.y.axisLabels.color,
1154
1157
  x: n.value.left - 8,
1155
1158
  y: 0
1156
1159
  })
1157
- }, null, 8, Ml)) : (s(), o("text", {
1160
+ }, null, 8, Nl)) : (r(), o("text", {
1158
1161
  key: 0,
1159
1162
  "text-anchor": "end",
1160
1163
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1166,40 +1169,40 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1166
1169
  cursor: "pointer"
1167
1170
  },
1168
1171
  onClick: () => xe(t, l)
1169
- }, M(t.text), 9, Tl))
1172
+ }, M(t.text), 9, Al))
1170
1173
  ]))), 256))
1171
1174
  ]))
1172
1175
  ], 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", {
1176
+ z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
1174
1177
  x: n.value.left + l * d.value,
1175
1178
  y: n.value.top,
1176
1179
  width: d.value,
1177
1180
  height: n.value.height < 0 ? 0 : n.value.height,
1178
1181
  onClick: (c) => ht(l),
1179
1182
  onMouseenter: (c) => vt(l),
1180
- onMouseleave: r[0] || (r[0] = (c) => {
1181
- re.value = null, ne.value = !1;
1183
+ onMouseleave: s[0] || (s[0] = (c) => {
1184
+ re.value = null, ue.value = !1;
1182
1185
  }),
1183
1186
  fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
1184
1187
  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", {
1188
+ }, null, 44, Il))), 256)) : y("", !0),
1189
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, l) => (r(), o("rect", {
1187
1190
  x: n.value.left,
1188
1191
  y: n.value.top + l * d.value,
1189
1192
  width: n.value.width < 0 ? 0 : n.value.width,
1190
1193
  height: d.value,
1191
1194
  onClick: (c) => ht(l),
1192
1195
  onMouseenter: (c) => vt(l),
1193
- onMouseleave: r[1] || (r[1] = (c) => {
1194
- re.value = null, ne.value = !1;
1196
+ onMouseleave: s[1] || (s[1] = (c) => {
1197
+ re.value = null, ue.value = !1;
1195
1198
  }),
1196
1199
  fill: l === re.value ? e.value.style.chart.highlighter.color : "transparent",
1197
1200
  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)
1201
+ }, null, 44, Rl))), 256)) : y("", !0),
1202
+ L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1203
+ ], 14, qa)),
1204
+ a.$slots.watermark ? (r(), o("div", Ol, [
1205
+ L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1203
1206
  ])) : y("", !0),
1204
1207
  Q("div", {
1205
1208
  ref_key: "chartSlicer",
@@ -1207,7 +1210,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1207
1210
  style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1208
1211
  "data-dom-to-png-ignore": ""
1209
1212
  }, [
1210
- e.value.style.chart.zoom.show && D.value > 1 ? (s(), K(Ea, {
1213
+ e.value.style.chart.zoom.show && D.value > 1 ? (r(), K(Da, {
1211
1214
  ref_key: "slicerComponent",
1212
1215
  ref: qe,
1213
1216
  key: `slicer_${Ge.value}`,
@@ -1225,9 +1228,9 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1225
1228
  valueStart: h.value.start,
1226
1229
  valueEnd: h.value.end,
1227
1230
  start: h.value.start,
1228
- "onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
1231
+ "onUpdate:start": s[2] || (s[2] = (t) => h.value.start = t),
1229
1232
  end: h.value.end,
1230
- "onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
1233
+ "onUpdate:end": s[3] || (s[3] = (t) => h.value.end = t),
1231
1234
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1232
1235
  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
1236
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
@@ -1235,13 +1238,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1235
1238
  onReset: nt
1236
1239
  }, {
1237
1240
  "reset-action": C(({ reset: t }) => [
1238
- L(a.$slots, "reset-action", U(H({ reset: t })), void 0, !0)
1241
+ L(a.$slots, "reset-action", H(U({ reset: t })), void 0, !0)
1239
1242
  ]),
1240
1243
  _: 3
1241
1244
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1242
1245
  ], 4),
1243
1246
  we(v(Bt), {
1244
- show: z.value.showTooltip && ne.value,
1247
+ show: z.value.showTooltip && ue.value,
1245
1248
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1246
1249
  color: e.value.style.chart.tooltip.color,
1247
1250
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1253,16 +1256,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1253
1256
  offsetY: e.value.style.chart.tooltip.offsetY,
1254
1257
  parent: P.value,
1255
1258
  content: Me.value,
1256
- isFullscreen: ue.value,
1259
+ isFullscreen: ce.value,
1257
1260
  isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat),
1258
1261
  smooth: e.value.style.chart.tooltip.smooth,
1259
1262
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1260
1263
  }, {
1261
1264
  "tooltip-before": C(() => [
1262
- L(a.$slots, "tooltip-before", U(H({ ...Te.value })), void 0, !0)
1265
+ L(a.$slots, "tooltip-before", H(U({ ...Te.value })), void 0, !0)
1263
1266
  ]),
1264
1267
  "tooltip-after": C(() => [
1265
- L(a.$slots, "tooltip-after", U(H({ ...Te.value })), void 0, !0)
1268
+ L(a.$slots, "tooltip-after", H(U({ ...Te.value })), void 0, !0)
1266
1269
  ]),
1267
1270
  _: 3
1268
1271
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
@@ -1270,24 +1273,24 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1270
1273
  ref_key: "chartLegend",
1271
1274
  ref: We
1272
1275
  }, [
1273
- e.value.style.chart.legend.show && ie.value ? (s(), K(Va, {
1276
+ e.value.style.chart.legend.show && ne.value ? (r(), K(Fa, {
1274
1277
  key: 0,
1275
1278
  legendSet: pt.value,
1276
- config: ra.value,
1277
- onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1279
+ config: oa.value,
1280
+ onClickMarker: s[4] || (s[4] = ({ legend: t }) => t.segregate())
1278
1281
  }, $t({
1279
1282
  item: C(({ legend: t }) => [
1280
1283
  Q("div", {
1281
1284
  onClick: (l) => t.segregate(),
1282
1285
  style: Z(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
1283
- }, M(t.name), 13, Rl)
1286
+ }, M(t.name), 13, Pl)
1284
1287
  ]),
1285
1288
  _: 2
1286
1289
  }, [
1287
1290
  a.$slots.pattern ? {
1288
1291
  name: "legend-pattern",
1289
1292
  fn: C(({ legend: t, index: l }) => [
1290
- we(Da, {
1293
+ we(Ua, {
1291
1294
  shape: t.shape,
1292
1295
  radius: 30,
1293
1296
  stroke: "none",
@@ -1302,7 +1305,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1302
1305
  legend: pt.value
1303
1306
  }, void 0, !0)
1304
1307
  ], 512),
1305
- a.$slots.source ? (s(), o("div", {
1308
+ a.$slots.source ? (r(), o("div", {
1306
1309
  key: 4,
1307
1310
  ref_key: "source",
1308
1311
  ref: Xe,
@@ -1310,7 +1313,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1310
1313
  }, [
1311
1314
  L(a.$slots, "source", {}, void 0, !0)
1312
1315
  ], 512)) : y("", !0),
1313
- h.value.end - h.value.start < 200 ? (s(), K(v(Ft), {
1316
+ h.value.end - h.value.start < 200 ? (r(), K(v(Ft), {
1314
1317
  key: 5,
1315
1318
  hideDetails: "",
1316
1319
  config: {
@@ -1333,13 +1336,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1333
1336
  body: me.value.body,
1334
1337
  config: me.value.config,
1335
1338
  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)
1339
+ onClose: s[5] || (s[5] = (t) => z.value.showTable = !1)
1337
1340
  }, {
1338
1341
  th: C(({ th: t }) => [
1339
- Q("div", { innerHTML: t }, null, 8, Ol)
1342
+ Q("div", { innerHTML: t }, null, 8, Vl)
1340
1343
  ]),
1341
1344
  td: C(({ td: t }) => [
1342
- fa(M(isNaN(Number(t)) ? t : v(j)({
1345
+ pa(M(isNaN(Number(t)) ? t : v(j)({
1343
1346
  p: e.value.style.chart.bars.dataLabels.prefix,
1344
1347
  v: t,
1345
1348
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1351,10 +1354,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1351
1354
  ]),
1352
1355
  _: 1
1353
1356
  }, 8, ["config"])) : y("", !0),
1354
- v(ce) ? (s(), K(Wa, { key: 6 })) : y("", !0)
1355
- ], 46, Xa));
1357
+ v(he) ? (r(), K(Xa, { key: 6 })) : y("", !0)
1358
+ ], 46, Ja));
1356
1359
  }
1357
- }, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-eeccc9b1"]]);
1360
+ }, ts = /* @__PURE__ */ Ga(El, [["__scopeId", "data-v-61d04b54"]]);
1358
1361
  export {
1359
- jl as default
1362
+ ts as default
1360
1363
  };