vue-data-ui 3.0.0-next.26 → 3.0.0-next.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{Arrow-CsNgq2ZF.js → Arrow-RGDVmFSH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-yqJAu5Cf.js → BaseDraggableDialog-2MH5hxMc.js} +2 -2
  3. package/dist/{BaseIcon-CIPCGWyZ.js → BaseIcon-DLJ5Lzvf.js} +1 -1
  4. package/dist/{ColorPicker-CzNlpUdq.js → ColorPicker-uH4pBeoc.js} +2 -2
  5. package/dist/{DataTable-6ZKiedr4.js → DataTable-DWXGn13M.js} +2 -2
  6. package/dist/{Legend-B0mt4iJx.js → Legend-XvLWu-U4.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DLef79mr.js → NonSvgPenAndPaper-DY6-8nWM.js} +3 -3
  8. package/dist/{PackageVersion-DF_M_33r.js → PackageVersion-CcyOrmqr.js} +1 -1
  9. package/dist/{PenAndPaper-i2SC47RS.js → PenAndPaper-S1h1sM_v.js} +3 -3
  10. package/dist/{Shape-XBUldhbb.js → Shape-B2NNkVEU.js} +1 -1
  11. package/dist/{Slicer-CoD6AOHL.js → Slicer-C2128jWm.js} +2 -2
  12. package/dist/{SparkTooltip-BgBRqkPH.js → SparkTooltip-B0IgrAiC.js} +1 -1
  13. package/dist/{Title-IaxR8U-N.js → Title-BT7bS0eb.js} +1 -1
  14. package/dist/{Tooltip-DCh0ZmS5.js → Tooltip-CbaafXw_.js} +1 -1
  15. package/dist/{UserOptions-J_zxxPnc.js → UserOptions-C9lB05jb.js} +2 -2
  16. package/dist/{dom-to-png-Bm-vMd2x.js → dom-to-png-B5f_cRVB.js} +1 -1
  17. package/dist/{img-B3U0-8wy.js → img-BScthXJW.js} +1 -1
  18. package/dist/{index-gToq10k7.js → index-DTJkgcxh.js} +341 -337
  19. package/dist/{pdf-BdjzkOlO.js → pdf-DEfty6-G.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +3 -2
  22. package/dist/types/vue-data-ui.d.ts +3 -2
  23. package/dist/{useNestedProp-gmapANmc.js → useNestedProp-DvwKj8Zn.js} +1 -1
  24. package/dist/{usePrinter-CbZEI2_c.js → usePrinter-CbokYjoB.js} +2 -2
  25. package/dist/{vue-data-ui-CZVJfC0E.js → vue-data-ui-BubXK-EN.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-MTNEP9CL.js → vue-ui-3d-bar-BgbiwMsJ.js} +6 -6
  28. package/dist/{vue-ui-accordion-DLihDfed.js → vue-ui-accordion-BDuLBbkX.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-IY3QdXfK.js → vue-ui-age-pyramid-B8esFXAj.js} +6 -6
  30. package/dist/{vue-ui-annotator-CJeQgt2n.js → vue-ui-annotator-BM2Fxwyn.js} +2 -2
  31. package/dist/{vue-ui-bullet-DGldX5sC.js → vue-ui-bullet-C5r2tlAw.js} +7 -7
  32. package/dist/{vue-ui-candlestick-C-HIjwPy.js → vue-ui-candlestick-DEqKEVdy.js} +149 -150
  33. package/dist/{vue-ui-carousel-table-BmiJoBXA.js → vue-ui-carousel-table-CHABZSa7.js} +4 -4
  34. package/dist/{vue-ui-chestnut-CZlbhQrJ.js → vue-ui-chestnut-CKmXKQ61.js} +5 -5
  35. package/dist/{vue-ui-chord-Dq4rskRf.js → vue-ui-chord-DW2ndivp.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-DW9-8rGV.js → vue-ui-circle-pack-BKlgiMRS.js} +6 -6
  37. package/dist/{vue-ui-cursor-D0tCtX4f.js → vue-ui-cursor-BpctNjDR.js} +2 -2
  38. package/dist/{vue-ui-dashboard-Bk_MJlYy.js → vue-ui-dashboard-C304-EeY.js} +62 -62
  39. package/dist/{vue-ui-digits-BA_tNRkj.js → vue-ui-digits-anpApSWe.js} +2 -2
  40. package/dist/{vue-ui-donut-DzAeK2TE.js → vue-ui-donut-JzjQTiDx.js} +8 -8
  41. package/dist/vue-ui-donut-evolution-nQbgWXs5.js +1072 -0
  42. package/dist/{vue-ui-dumbbell-_YZFjBH6.js → vue-ui-dumbbell-BgnmrlkA.js} +7 -7
  43. package/dist/{vue-ui-flow-C7aLXJTA.js → vue-ui-flow-DEPrQA-w.js} +7 -7
  44. package/dist/{vue-ui-funnel-B_3QpOUU.js → vue-ui-funnel-ojf0srk6.js} +6 -6
  45. package/dist/{vue-ui-galaxy-DuU1fS4U.js → vue-ui-galaxy-CYP_NOuc.js} +5 -5
  46. package/dist/{vue-ui-gauge-_cAQb9Hn.js → vue-ui-gauge-PZkGA3xT.js} +6 -6
  47. package/dist/{vue-ui-gizmo-DqYMjhpX.js → vue-ui-gizmo-BVEf1l02.js} +3 -3
  48. package/dist/{vue-ui-heatmap-BkU3wZkK.js → vue-ui-heatmap-C0QKWdB2.js} +7 -7
  49. package/dist/{vue-ui-history-plot-C83pTqnc.js → vue-ui-history-plot-DL6znOA2.js} +7 -7
  50. package/dist/{vue-ui-kpi-CWu4hx68.js → vue-ui-kpi-k901VoIN.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-Cw48lkNp.js → vue-ui-mini-loader-dO16jdj9.js} +2 -2
  52. package/dist/{vue-ui-molecule-CWNMsooa.js → vue-ui-molecule-CgBLfrXa.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-hxw5vhXc.js → vue-ui-mood-radar-BxwR2Ez7.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-SCEIJRnl.js → vue-ui-nested-donuts-BIjRulQt.js} +9 -9
  55. package/dist/{vue-ui-onion-xkpaiVLl.js → vue-ui-onion-CkoPdA0-.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-DP8c7Zy2.js → vue-ui-parallel-coordinate-plot-CHQ4Brih.js} +8 -8
  57. package/dist/{vue-ui-quadrant-YoAP5U9i.js → vue-ui-quadrant-CEQTH_Vf.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-QQd0jAgp.js → vue-ui-quick-chart-DIoqKBCM.js} +265 -263
  59. package/dist/{vue-ui-radar-2aBWeu33.js → vue-ui-radar-Cft9wyK8.js} +7 -7
  60. package/dist/{vue-ui-rating-cevrLC7m.js → vue-ui-rating-OARiI9ot.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-pfHEqPqz.js → vue-ui-relation-circle-B-Zb1LQY.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-8Fi_HR1k.js → vue-ui-ridgeline-v7NEDfRs.js} +8 -8
  63. package/dist/{vue-ui-rings-CqBfRCcH.js → vue-ui-rings-BQwfTTzr.js} +8 -8
  64. package/dist/{vue-ui-scatter-BslmJ4rg.js → vue-ui-scatter-CHQCbV8M.js} +8 -8
  65. package/dist/{vue-ui-skeleton-DXITY4Wb.js → vue-ui-skeleton-CHJxsFpK.js} +3 -3
  66. package/dist/{vue-ui-smiley-2m2GnNUB.js → vue-ui-smiley-CsWC9IZ1.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-Bpp-odIP.js → vue-ui-spark-trend-BuamubwE.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-Dqen9icZ.js → vue-ui-sparkbar-BHGRAUXV.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-C9Dlt6iV.js → vue-ui-sparkgauge-DUnltuDi.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-D-MlMk-Q.js → vue-ui-sparkhistogram-BMedlapo.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BZA1s4pf.js → vue-ui-sparkline-BHNwaMiS.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-BB-tBLQd.js → vue-ui-sparkstackbar-vRQz_uQJ.js} +3 -3
  73. package/dist/{vue-ui-stackbar-DEcZ471x.js → vue-ui-stackbar-CQ6dTUhn.js} +328 -329
  74. package/dist/{vue-ui-strip-plot-BNPYL2hl.js → vue-ui-strip-plot-CO2CPtr7.js} +7 -7
  75. package/dist/{vue-ui-table-BDn61l1T.js → vue-ui-table-BLsZesaa.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-DcVDM0D7.js → vue-ui-table-heatmap-CGDBekDd.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-CpF2AiH0.js → vue-ui-table-sparkline-DDBnNFfS.js} +4 -4
  78. package/dist/{vue-ui-thermometer-DW90pE_h.js → vue-ui-thermometer-DCgjIlYn.js} +6 -6
  79. package/dist/{vue-ui-timer-DnzpNY0x.js → vue-ui-timer-BUTGgiXL.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-CNHI4MuH.js → vue-ui-tiremarks-Dbwy0DLv.js} +6 -6
  81. package/dist/{vue-ui-treemap-CWWLDBEO.js → vue-ui-treemap-fZnaJFLV.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-B2GiFfDO.js → vue-ui-vertical-bar-CC1RSDNH.js} +9 -9
  83. package/dist/{vue-ui-waffle-CsyXZFOd.js → vue-ui-waffle-yCHIWPVz.js} +8 -8
  84. package/dist/{vue-ui-wheel-DOrEgq2T.js → vue-ui-wheel-BgCEnXux.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-CUEMogkJ.js → vue-ui-word-cloud-DdYN7hGc.js} +6 -6
  86. package/dist/{vue-ui-world-C2xiB-yS.js → vue-ui-world-Drt14jLg.js} +6 -6
  87. package/dist/{vue-ui-xy-cahWUi-P.js → vue-ui-xy-E2hScHc-.js} +274 -268
  88. package/dist/{vue-ui-xy-canvas-BzTkP8HC.js → vue-ui-xy-canvas-DYaSIflg.js} +251 -252
  89. package/package.json +1 -1
  90. package/dist/vue-ui-donut-evolution-CZ2mtt3z.js +0 -1034
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as ae, useSlots as ga, computed as k, ref as b, onMounted as zt, toRefs as ba, watch as Ue, shallowRef as Ct, onBeforeUnmount as St, watchEffect as _t, nextTick as Le, createElementBlock as o, openBlock as s, unref as v, normalizeStyle as Z, normalizeClass as le, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as Q, createVNode as ze, createSlots as $t, withCtx as C, normalizeProps as U, guardReactiveProps as H, Fragment as g, renderList as m, mergeProps as He, toDisplayString as M, createTextVNode as fa } from "vue";
2
- import { u as ma, c as Tt, A as pa, t as xa, p as Ce, a as ka, C as re, b as wa, o as Mt, e as At, g as La, d as za, am as Se, ab as Nt, D as It, X as Ca, l as Sa, aa as _e, F as Rt, i as $e, f as j, I as _a, a0 as $a, x as Ot, q as Ta, r as Ma, y as Aa } from "./index-gToq10k7.js";
3
- import { u as Pt } from "./useNestedProp-gmapANmc.js";
4
- import { t as Be, u as Na } from "./useResponsive-DfdjqQps.js";
5
- import { u as Ia } from "./usePrinter-CbZEI2_c.js";
1
+ import { defineAsyncComponent as te, useSlots as ga, computed as k, ref as b, onMounted as Lt, toRefs as ba, watch as De, 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 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 Fe, 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, am as ze, ab 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-DTJkgcxh.js";
3
+ import { u as Pt } from "./useNestedProp-DvwKj8Zn.js";
4
+ import { t as Ue, u as Na } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Ia } from "./usePrinter-CbokYjoB.js";
6
6
  import { u as Ra } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
8
8
  import { u as Pa } from "./useTimeLabelCollider-V7AOiPLB.js";
9
- import Va from "./Legend-B0mt4iJx.js";
10
- import { S as Ea } from "./Slicer-CoD6AOHL.js";
11
- import Da from "./Title-IaxR8U-N.js";
12
- import { _ as Fa } from "./Shape-XBUldhbb.js";
9
+ import Va from "./Legend-XvLWu-U4.js";
10
+ import { S as Ea } from "./Slicer-C2128jWm.js";
11
+ import Da from "./Title-BT7bS0eb.js";
12
+ import { _ as Fa } from "./Shape-B2NNkVEU.js";
13
13
  import { u as Ua } from "./useTimeLabels-DFkUfjfs.js";
14
- import Ha from "./img-B3U0-8wy.js";
14
+ import Ha from "./img-BScthXJW.js";
15
15
  import { u as Ba, B as Wa } from "./BaseScanner-DIK2NTdp.js";
16
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 = {
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"], sl = { key: 0 }, rl = ["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 = {
18
18
  key: 3,
19
19
  class: "vue-data-ui-watermark"
20
20
  }, Rl = ["onClick"], Ol = ["innerHTML"], Pl = {
@@ -34,25 +34,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
34
34
  }
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
- setup(Te, { expose: Vt, emit: Et }) {
38
- const Dt = ae(() => import("./vue-ui-accordion-DLihDfed.js")), Ft = ae(() => import("./DataTable-6ZKiedr4.js")), Ut = ae(() => import("./PackageVersion-DF_M_33r.js")), Ht = ae(() => import("./PenAndPaper-i2SC47RS.js")), Bt = ae(() => import("./Tooltip-DCh0ZmS5.js")), Wt = ae(() => import("./UserOptions-J_zxxPnc.js")), { vue_ui_stackbar: Yt } = ma(), Xt = ga(), f = Te, Me = Et, ne = k({
37
+ setup(_e, { expose: Vt, emit: Et }) {
38
+ const Dt = te(() => import("./vue-ui-accordion-BDuLBbkX.js")), Ft = te(() => import("./DataTable-DWXGn13M.js")), Ut = te(() => import("./PackageVersion-CcyOrmqr.js")), Ht = te(() => import("./PenAndPaper-S1h1sM_v.js")), Bt = te(() => import("./Tooltip-CbaafXw_.js")), Wt = te(() => import("./UserOptions-C9lB05jb.js")), { vue_ui_stackbar: Yt } = ma(), Xt = ga(), f = _e, $e = Et, ie = k({
39
39
  get() {
40
40
  return !!f.dataset && f.dataset.length;
41
41
  },
42
42
  set(a) {
43
43
  return a;
44
44
  }
45
- }), P = b(null), V = b(Tt()), ue = b(!1), Ae = b(null), Ne = b(""), _ = b([]), We = b(0), Ye = b(null), Xe = b(null), Ge = b(null), Je = b(null), qe = b(0), ce = b(!1), se = b(null), B = b(!1), Ze = b(0), Gt = b(0), Jt = b(0), ee = b(null), Ie = b(null), Re = b(null), W = b(null), Y = b(null), qt = b(null), Ke = b(null);
46
- zt(() => {
47
- Ee();
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), se = 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(() => {
47
+ Pe();
48
48
  });
49
- const e = b(Pe()), { loading: he, FINAL_DATASET: ve, manualLoading: de } = Ba({
49
+ const e = b(Re()), { loading: ce, FINAL_DATASET: he, manualLoading: ve } = Ba({
50
50
  ...ba(f),
51
51
  FINAL_CONFIG: e,
52
- prepareConfig: Pe,
52
+ prepareConfig: Re,
53
53
  callback: () => {
54
54
  Promise.resolve().then(async () => {
55
- await De();
55
+ await Ve();
56
56
  });
57
57
  },
58
58
  skeletonDataset: [
@@ -116,26 +116,26 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
116
116
  }
117
117
  }
118
118
  })
119
- }), { userOptionsVisible: Oe, setUserOptionsVisibility: Qe, keepUserOptionState: je } = Ra({ config: e.value }), { svgRef: et } = Oa({ config: e.value.style.chart.title });
120
- function Pe() {
119
+ }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ra({ config: e.value }), { svgRef: je } = Oa({ config: e.value.style.chart.title });
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
128
  userConfig: ka.vue_ui_stackbar[a.theme] || f.config,
129
129
  defaultConfig: a
130
130
  }),
131
- customPalette: xa[a.theme] || Ce
132
- } : r = a, f.config && re(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 && re(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 && re(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 && re(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 && re(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 && re(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: xa[a.theme] || Le
132
+ } : s = a, f.config && le(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 && le(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 && le(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 && le(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 && le(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 && le(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 tt = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), at = k(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
- Ue(() => f.config, (a) => {
136
- he.value || (e.value = Pe()), Oe.value = !e.value.userOptions.showOnChartHover, Ee(), Ze.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 }), Ue(() => f.dataset, (a) => {
138
- Array.isArray(a) && a.length > 0 && (de.value = !1), ut();
134
+ const et = k(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = k(() => 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, 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 }), De(() => f.dataset, (a) => {
138
+ Array.isArray(a) && a.length > 0 && (ve.value = !1), nt();
139
139
  }, { deep: !0 });
140
140
  const z = b({
141
141
  dataLabels: {
@@ -144,7 +144,7 @@ const 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
- Ue(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: lt, isImaging: rt, generatePdf: st, generateImage: ot } = Ia({
156
+ const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Ia({
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
- }), ye = b({
160
+ }), de = b({
161
161
  width: e.value.style.chart.width,
162
162
  height: e.value.style.chart.height,
163
163
  paddingRatio: {
@@ -166,53 +166,53 @@ 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 = Ct(null), te = Ct(null), it = b(null);
170
- zt(() => {
171
- Ee();
169
+ }), Zt = k(() => wa(e.value.customPalette)), E = zt(null), ee = zt(null), ot = b(null);
170
+ Lt(() => {
171
+ Pe();
172
172
  });
173
- const Ve = k(() => !!e.value.debug);
174
- function Ee() {
173
+ const Oe = k(() => !!e.value.debug);
174
+ function Pe() {
175
175
  if (Mt(f.dataset) ? (At({
176
176
  componentName: "VueUiStackbar",
177
177
  type: "dataset",
178
- debug: Ve.value
179
- }), de.value = !0) : f.dataset.forEach((a, r) => {
178
+ debug: Oe.value
179
+ }), ve.value = !0) : f.dataset.forEach((a, s) => {
180
180
  La({
181
181
  datasetObject: a,
182
182
  requiredAttributes: ["name", "series"]
183
183
  }).forEach((t) => {
184
- ne.value = !1, At({
184
+ ie.value = !1, At({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
188
- index: r,
189
- debug: Ve.value
190
- }), de.value = !0;
188
+ index: s,
189
+ debug: Oe.value
190
+ }), ve.value = !0;
191
191
  });
192
- }), Mt(f.dataset) || (de.value = e.value.loading), setTimeout(() => {
192
+ }), Mt(f.dataset) || (ve.value = e.value.loading), setTimeout(() => {
193
193
  B.value = !0;
194
194
  }, 10), e.value.responsive) {
195
- const a = Be(() => {
195
+ const a = Ue(() => {
196
196
  B.value = !1;
197
- const { width: r, height: t } = Na({
197
+ const { width: s, height: t } = Na({
198
198
  chart: P.value,
199
- title: e.value.style.chart.title.text ? Ye.value : null,
200
- legend: e.value.style.chart.legend.show ? Xe.value : null,
201
- slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ge.value : null,
202
- source: Je.value
199
+ title: e.value.style.chart.title.text ? Be.value : null,
200
+ legend: e.value.style.chart.legend.show ? We.value : null,
201
+ slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
202
+ source: Xe.value
203
203
  });
204
204
  requestAnimationFrame(() => {
205
- ye.value.width = r, ye.value.height = t - 12, clearTimeout(it.value), it.value = setTimeout(() => {
205
+ de.value.width = s, de.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 && (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);
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);
211
211
  }
212
- De();
212
+ Ve();
213
213
  }
214
- St(() => {
215
- E.value && (te.value && E.value.unobserve(te.value), E.value.disconnect());
214
+ Ct(() => {
215
+ E.value && (ee.value && E.value.unobserve(ee.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 = Re.value ? Re.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 ge = b(0), be = b(0), Qt = Be((a) => {
230
- ge.value = a;
229
+ const ye = b(0), ge = b(0), Qt = Ue((a) => {
230
+ ye.value = a;
231
231
  }, 100);
232
- _t((a) => {
233
- const r = e.value.orientation === "vertical" ? Y.value : W.value;
234
- if (!r) return;
232
+ St((a) => {
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 = Be((a) => {
241
- be.value = a + e.value.style.chart.bars.totalValues.fontSize;
240
+ const jt = Ue((a) => {
241
+ ge.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
242
  }, 100);
243
- _t((a) => {
243
+ St((a) => {
244
244
  if (e.value.orientation === "vertical") return;
245
- const r = Ke.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());
251
- }), St(() => {
252
- ge.value = 0, be.value = 0;
250
+ t.observe(s), a(() => t.disconnect());
251
+ }), Ct(() => {
252
+ ye.value = 0, ge.value = 0;
253
253
  });
254
- const nt = k(() => {
254
+ const it = k(() => {
255
255
  let a = 0;
256
- Ie.value && (a = Ie.value.getBBox().height);
257
- let r = 0;
258
- return e.value.orientation === "vertical" && Y.value && (r = ge.value), e.value.orientation === "horizontal" && W.value && (r = ge.value), a + r;
256
+ Ae.value && (a = Ae.value.getBBox().height);
257
+ let s = 0;
258
+ return e.value.orientation === "vertical" && Y.value && (s = ye.value), e.value.orientation === "horizontal" && W.value && (s = ye.value), a + s;
259
259
  }), n = k(() => {
260
- const { height: a, width: r } = ye.value, { right: t } = ye.value.paddingRatio;
260
+ const { height: a, width: s } = de.value, { right: t } = de.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 - be.value, X = a - e.value.style.chart.padding.bottom - nt.value - l, G = e.value.style.chart.padding.left + c, J = r - G - r * t - be.value, R = a - u - e.value.style.chart.padding.bottom - nt.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,55 +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
- }), D = k(() => ve.value.map((a, r) => {
275
- const t = za(a.color) || Zt.value[r] || Ce[r] || Ce[r % Ce.length];
274
+ }), D = k(() => he.value.map((a, s) => {
275
+ const t = za(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
286
  })), F = k(() => Math.max(...D.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = b({
287
287
  start: 0,
288
- end: Math.max(...ve.value.map((a) => a.series.length))
288
+ end: Math.max(...he.value.map((a) => a.series.length))
289
289
  });
290
- function ut() {
291
- De();
290
+ function nt() {
291
+ Ve();
292
292
  }
293
- async function De() {
294
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && ee.value ? (e.value.style.chart.zoom.startIndex !== null && (await Le(), await Le(), ee.value && ee.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await Le(), await Le(), ee.value && ee.value.setEndValue(ea(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
295
- start: 0,
296
- end: Math.max(...ve.value.map((a) => a.series.length))
297
- }, qe.value += 1);
293
+ async function Ve() {
294
+ await _t(), await _t();
295
+ const { startIndex: a, endIndex: s } = e.value.style.chart.zoom, t = qe.value, l = Math.max(...he.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);
298
297
  }
299
298
  function ea(a) {
300
- const r = Math.max(...ve.value.map((t) => t.series.length));
301
- 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(...he.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;
302
301
  }
303
302
  const d = k(() => {
304
303
  let a;
305
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;
306
- }), oe = k(() => Se(D.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = k(() => Se(D.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
305
+ }), re = k(() => ze(D.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), ta = k(() => ze(D.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
307
306
  ...a,
308
- series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
309
- }))).slice(h.value.start, h.value.end)), fe = k(() => {
310
- const a = D.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 = k(() => {
309
+ const a = D.value.filter((s) => !_.value.includes(s.id));
311
310
  return {
312
- positive: Se(a.map((r) => ({
313
- ...r,
314
- 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)
315
314
  }))),
316
- negative: Se(a.map((r) => ({
317
- ...r,
318
- 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)
319
318
  })))
320
319
  };
321
320
  }), I = k(() => {
322
- 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(...fe.value.positive), r = Math.min(...fe.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);
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);
323
322
  return l.ticks.map((c) => ({
324
323
  zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
325
324
  y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -336,28 +335,28 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
336
335
  start: h.value.start,
337
336
  end: h.value.end
338
337
  })), w = k(() => {
339
- if (!ne.value && !he.value) return [];
340
- let a = Array(F.value).fill(0), r = Array(F.value).fill(0), t = Array(F.value).fill(0), l = Array(F.value).fill(0);
341
- const c = Math.max(...fe.value.positive) || 0, u = Math.min(...fe.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, we = n.value.width, wt = I.value[0] ? I.value[0].zero : n.value.bottom, Lt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
342
- return D.value.filter((ie) => !_.value.includes(ie.id)).map((ie) => {
343
- const O = ie.series.slice(h.value.start, h.value.end), ia = ie.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) => {
344
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[x] : (p || 0) / R;
338
+ if (!ie.value && !ce.value) return [];
339
+ let a = Array(F.value).fill(0), s = Array(F.value).fill(0), t = Array(F.value).fill(0), l = Array(F.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 D.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) / re.value[x] : (p || 0) / R;
345
344
  let q, N;
346
- return p > 0 ? (N = T * A, q = wt - N - a[x], a[x] += N) : (N = T * A, q = wt + t[x], t[x] += Math.abs(N)), q;
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;
347
346
  }), ha = O.map((p, x) => {
348
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[x] : (p || 0) / R;
347
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
349
348
  let q, N;
350
- return p > 0 ? (N = we * A, q = Lt + r[x], r[x] += N) : (N = we * A, q = Lt - Math.abs(N) - l[x], l[x] += Math.abs(N)), q;
349
+ return p > 0 ? (N = ke * A, q = wt + s[x], s[x] += N) : (N = ke * A, q = wt - Math.abs(N) - l[x], l[x] += Math.abs(N)), q;
351
350
  }), va = O.map((p, x) => {
352
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[x] : (p || 0) / R;
351
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
353
352
  return p > 0 ? T * A : T * Math.abs(A);
354
353
  }), da = O.map((p, x) => {
355
- const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[x] : (p || 0) / R;
356
- return p > 0 ? we * A : we * Math.abs(A);
354
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / R;
355
+ return p > 0 ? ke * A : ke * Math.abs(A);
357
356
  }), ya = O.map((p) => Math.abs(p)).reduce((p, x) => p + x, 0);
358
357
  return {
359
- ...ie,
360
- proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[x] : (p || 0) / ya),
358
+ ...oe,
359
+ proportions: O.map((p, x) => e.value.style.chart.bars.distributed ? (p || 0) / re.value[x] : (p || 0) / ya),
361
360
  series: O,
362
361
  signedSeries: ia,
363
362
  x: na,
@@ -368,13 +367,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
368
367
  horizontal_x: ha
369
368
  };
370
369
  });
371
- }), ct = k(() => ta.value.map((a, r) => ({
370
+ }), ut = k(() => ta.value.map((a, s) => ({
372
371
  value: a,
373
372
  sign: a >= 0 ? 1 : -1
374
373
  })));
375
- function me(a, r, t, l, c) {
374
+ function fe(a, s, t, l, c) {
376
375
  const u = c === -1 && a >= 0 ? -a : a;
377
- return $e(
376
+ return Se(
378
377
  e.value.style.chart.bars.dataLabels.formatter,
379
378
  u,
380
379
  j({
@@ -383,11 +382,11 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
383
382
  s: e.value.style.chart.bars.dataLabels.suffix,
384
383
  r: e.value.style.chart.bars.dataLabels.rounding
385
384
  }),
386
- { datapoint: r, seriesIndex: t, datapointIndex: l }
385
+ { datapoint: s, seriesIndex: t, datapointIndex: l }
387
386
  );
388
387
  }
389
- function ht(a, r, t, l) {
390
- return $e(
388
+ function ct(a, s, t, l) {
389
+ return Se(
391
390
  e.value.style.chart.bars.dataLabels.formatter,
392
391
  a,
393
392
  j({
@@ -395,22 +394,22 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
395
394
  s: "%",
396
395
  r: e.value.style.chart.bars.dataLabels.rounding
397
396
  }),
398
- { datapoint: r, seriesIndex: t, datapointIndex: l }
397
+ { datapoint: s, seriesIndex: t, datapointIndex: l }
399
398
  );
400
399
  }
401
- function vt(a) {
402
- const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
400
+ function ht(a) {
401
+ const s = JSON.parse(JSON.stringify(w.value)).map((t) => ({
403
402
  name: t.name,
404
403
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
405
404
  proportion: t.proportions[a] || null,
406
405
  color: t.color,
407
406
  id: t.id
408
407
  }));
409
- Me("selectDatapoint", { datapoint: r, period: $.value[a] });
408
+ $e("selectDatapoint", { datapoint: s, period: $.value[a] });
410
409
  }
411
- function dt(a) {
412
- se.value = a, ue.value = !0;
413
- const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
410
+ function vt(a) {
411
+ se.value = a, ne.value = !0;
412
+ const s = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
414
413
  name: c.name,
415
414
  absoluteIndex: c.absoluteIndex,
416
415
  value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
@@ -418,20 +417,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
418
417
  color: c.color,
419
418
  id: c.id
420
419
  }));
421
- Ae.value = {
420
+ Te.value = {
422
421
  datapoint: t,
423
422
  seriesIndex: a,
424
423
  config: e.value,
425
424
  series: w.value
426
425
  };
427
426
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
428
- if (Ot(r) && Aa(() => r({
427
+ if (Ot(s) && Aa(() => s({
429
428
  seriesIndex: a,
430
429
  datapoint: t,
431
430
  series: w.value,
432
431
  config: e.value
433
432
  })))
434
- Ne.value = r({
433
+ Me.value = s({
435
434
  seriesIndex: a,
436
435
  datapoint: t,
437
436
  series: w.value,
@@ -468,7 +467,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
468
467
  }) : ""}${R[1]}
469
468
  </div>
470
469
  `;
471
- }), Ne.value = `<div>${J}</div>`;
470
+ }), Me.value = `<div>${J}</div>`;
472
471
  }
473
472
  }
474
473
  Pa({
@@ -480,44 +479,44 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
480
479
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
481
480
  isAutoSize: !1
482
481
  });
483
- function yt(a) {
484
- ce.value = a, We.value += 1;
482
+ function dt(a) {
483
+ ue.value = a, He.value += 1;
485
484
  }
486
- function gt() {
485
+ function yt() {
487
486
  z.value.showTable = !z.value.showTable;
488
487
  }
489
- function bt() {
488
+ function gt() {
490
489
  z.value.dataLabels.show = !z.value.dataLabels.show;
491
490
  }
492
- function ft() {
491
+ function bt() {
493
492
  z.value.showTooltip = !z.value.showTooltip;
494
493
  }
495
494
  function aa() {
496
495
  return w.value;
497
496
  }
498
- const mt = k(() => {
497
+ const ft = k(() => {
499
498
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
500
499
  const a = w.value.map(({ name: t, color: l }) => ({
501
500
  label: t,
502
501
  color: l
503
- })), r = [];
502
+ })), s = [];
504
503
  return $.value.forEach((t) => {
505
504
  const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
506
505
  D.value.forEach((c) => {
507
506
  l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
508
- }), r.push(l);
509
- }), { head: a, body: r };
507
+ }), s.push(l);
508
+ }), { head: a, body: s };
510
509
  });
511
- function pt(a = null) {
512
- const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...mt.value.head.map((S) => S.label)], l = mt.value.body, c = r.concat([t]).concat(l), u = Ta(c);
510
+ function mt(a = null) {
511
+ 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 = Ta(c);
513
512
  a ? a(u) : Ma({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
514
513
  }
515
- const pe = k(() => {
514
+ const me = k(() => {
516
515
  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>');
517
- let r = [];
516
+ let s = [];
518
517
  for (let c = 0; c < F.value; c += 1) {
519
518
  const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, X) => S + X, 0);
520
- 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)));
519
+ 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)));
521
520
  }
522
521
  const t = {
523
522
  th: {
@@ -532,17 +531,17 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
532
531
  },
533
532
  breakpoint: e.value.table.responsiveBreakpoint
534
533
  }, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
535
- return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
534
+ return { head: a, body: s.slice(0, h.value.end - h.value.start), config: t, colNames: l };
536
535
  });
537
- function la(a, r) {
538
- if (Me("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(r.id))
539
- _.value = _.value.filter((t) => t !== r.id);
536
+ function la(a, s) {
537
+ if ($e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(s.id))
538
+ _.value = _.value.filter((t) => t !== s.id);
540
539
  else {
541
540
  if (_.value.length === D.value.length - 1) return;
542
- _.value.push(r.id);
541
+ _.value.push(s.id);
543
542
  }
544
543
  }
545
- const xt = k(() => D.value.map((a, r) => ({
544
+ const pt = k(() => D.value.map((a, s) => ({
546
545
  ...a,
547
546
  shape: "square"
548
547
  })).map((a) => ({
@@ -550,43 +549,43 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
550
549
  opacity: _.value.includes(a.id) ? 0.5 : 1,
551
550
  segregate: () => la(a.absoluteIndex, a),
552
551
  isSegregated: _.value.includes(a.id)
553
- }))), ra = k(() => ({
552
+ }))), sa = k(() => ({
554
553
  cy: "stackbar-legend",
555
554
  backgroundColor: e.value.style.chart.legend.backgroundColor,
556
555
  color: e.value.style.chart.legend.color,
557
556
  fontSize: e.value.style.chart.legend.fontSize,
558
557
  paddingBottom: 12,
559
558
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
560
- })), xe = b(!1);
561
- function Fe() {
562
- xe.value = !xe.value;
559
+ })), pe = b(!1);
560
+ function Ee() {
561
+ pe.value = !pe.value;
563
562
  }
564
- function ke(a, r) {
563
+ function xe(a, s) {
565
564
  const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
566
565
  name: l.name,
567
- value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
568
- proportion: l.proportions[r] || null,
566
+ value: l.series[s] === 0 ? 0 : (l.signedSeries[s] === -1 && l.series[s] >= 0 ? -l.series[s] : l.series[s]) || null,
567
+ proportion: l.proportions[s] || null,
569
568
  color: l.color,
570
569
  id: l.id
571
570
  }));
572
- Me("selectTimeLabel", {
571
+ $e("selectTimeLabel", {
573
572
  datapoint: t,
574
573
  absoluteIndex: a.absoluteIndex,
575
574
  label: a.text
576
575
  });
577
576
  }
578
- const sa = k(() => Math.max(...w.value.flatMap((a) => a.series)));
579
- function kt(a, r) {
580
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? at.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : at.value ? (tt.value && Ve.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) : tt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
577
+ const ra = k(() => Math.max(...w.value.flatMap((a) => a.series)));
578
+ function xt(a, s) {
579
+ 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 > ra.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;
581
580
  }
582
581
  async function oa({ scale: a = 2 } = {}) {
583
582
  if (!P.value) return;
584
- 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 });
583
+ const { width: s, height: t } = P.value.getBoundingClientRect(), l = s / t, { imageUri: c, base64: u } = await Ha({ domElement: P.value, base64: !0, img: !0, scale: a });
585
584
  return {
586
585
  imageUri: c,
587
586
  base64: u,
588
587
  title: e.value.style.chart.title.text,
589
- width: r,
588
+ width: s,
590
589
  height: t,
591
590
  aspectRatio: l
592
591
  };
@@ -595,39 +594,39 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
595
594
  getData: aa,
596
595
  getImage: oa,
597
596
  generatePdf: st,
598
- generateCsv: pt,
599
- generateImage: ot,
600
- toggleTable: gt,
601
- toggleLabels: bt,
602
- toggleTooltip: ft,
603
- toggleAnnotator: Fe,
604
- toggleFullscreen: yt
605
- }), (a, r) => (s(), o("div", {
597
+ generateCsv: mt,
598
+ generateImage: rt,
599
+ toggleTable: yt,
600
+ toggleLabels: gt,
601
+ toggleTooltip: bt,
602
+ toggleAnnotator: Ee,
603
+ toggleFullscreen: dt
604
+ }), (a, s) => (r(), o("div", {
606
605
  id: `stackbar_${V.value}`,
607
606
  ref_key: "stackbarChart",
608
607
  ref: P,
609
- class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ce.value }),
608
+ class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
610
609
  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%" : ""}`),
611
- onMouseenter: r[6] || (r[6] = () => v(Qe)(!0)),
612
- onMouseleave: r[7] || (r[7] = () => v(Qe)(!1))
610
+ onMouseenter: s[6] || (s[6] = () => v(Ke)(!0)),
611
+ onMouseleave: s[7] || (s[7] = () => v(Ke)(!1))
613
612
  }, [
614
- e.value.userOptions.buttons.annotator ? (s(), K(v(Ht), {
613
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Ht), {
615
614
  key: 0,
616
- svgRef: v(et),
615
+ svgRef: v(je),
617
616
  backgroundColor: e.value.style.chart.backgroundColor,
618
617
  color: e.value.style.chart.color,
619
- active: xe.value,
620
- onClose: Fe
618
+ active: pe.value,
619
+ onClose: Ee
621
620
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
622
621
  L(a.$slots, "userConfig", {}, void 0, !0),
623
- e.value.style.chart.title.text ? (s(), o("div", {
622
+ e.value.style.chart.title.text ? (r(), o("div", {
624
623
  key: 1,
625
624
  ref_key: "chartTitle",
626
- ref: Ye,
625
+ ref: Be,
627
626
  style: "width:100%;background:transparent;padding-bottom:24px"
628
627
  }, [
629
- (s(), K(Da, {
630
- key: `title_${Ze.value}`,
628
+ (r(), K(Da, {
629
+ key: `title_${Je.value}`,
631
630
  config: {
632
631
  title: {
633
632
  cy: "stackbar-title",
@@ -640,13 +639,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
640
639
  }
641
640
  }, null, 8, ["config"]))
642
641
  ], 512)) : y("", !0),
643
- e.value.userOptions.show && ne.value && (v(je) || v(Oe)) ? (s(), K(v(Wt), {
642
+ e.value.userOptions.show && ie.value && (v(Qe) || v(Ie)) ? (r(), K(v(Wt), {
644
643
  ref: "details",
645
- key: `user_option_${We.value}`,
644
+ key: `user_option_${He.value}`,
646
645
  backgroundColor: e.value.style.chart.backgroundColor,
647
646
  color: e.value.style.chart.color,
648
- isPrinting: v(lt),
649
- isImaging: v(rt),
647
+ isPrinting: v(at),
648
+ isImaging: v(lt),
650
649
  uid: V.value,
651
650
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
652
651
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -655,25 +654,25 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
655
654
  hasTable: e.value.userOptions.buttons.table,
656
655
  hasLabel: e.value.userOptions.buttons.labels,
657
656
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
658
- isFullscreen: ce.value,
657
+ isFullscreen: ue.value,
659
658
  chartElement: P.value,
660
659
  position: e.value.userOptions.position,
661
660
  isTooltip: z.value.showTooltip,
662
661
  titles: { ...e.value.userOptions.buttonTitles },
663
662
  hasAnnotator: e.value.userOptions.buttons.annotator,
664
- isAnnotation: xe.value,
663
+ isAnnotation: pe.value,
665
664
  callbacks: e.value.userOptions.callbacks,
666
665
  printScale: e.value.userOptions.print.scale,
667
- onToggleFullscreen: yt,
666
+ onToggleFullscreen: dt,
668
667
  onGeneratePdf: v(st),
669
- onGenerateCsv: pt,
670
- onGenerateImage: v(ot),
671
- onToggleTable: gt,
672
- onToggleLabels: bt,
673
- onToggleTooltip: ft,
674
- onToggleAnnotator: Fe,
668
+ onGenerateCsv: mt,
669
+ onGenerateImage: v(rt),
670
+ onToggleTable: yt,
671
+ onToggleLabels: gt,
672
+ onToggleTooltip: bt,
673
+ onToggleAnnotator: Ee,
675
674
  style: Z({
676
- visibility: v(je) ? v(Oe) ? "visible" : "hidden" : "visible"
675
+ visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
677
676
  })
678
677
  }, $t({ _: 2 }, [
679
678
  a.$slots.menuIcon ? {
@@ -740,16 +739,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
740
739
  key: "8"
741
740
  } : void 0
742
741
  ]), 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),
743
- (s(), o("svg", {
742
+ (r(), o("svg", {
744
743
  ref_key: "svgRef",
745
- ref: et,
744
+ ref: je,
746
745
  xmlns: v(Ca),
747
746
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
748
- class: le({ "vue-data-ui-loading": v(he) }),
747
+ class: ae({ "vue-data-ui-loading": v(ce) }),
749
748
  style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
750
749
  }, [
751
- ze(v(Ut)),
752
- a.$slots["chart-background"] ? (s(), o("foreignObject", {
750
+ we(v(Ut)),
751
+ a.$slots["chart-background"] ? (r(), o("foreignObject", {
753
752
  key: 0,
754
753
  x: n.value.left,
755
754
  y: n.value.top,
@@ -761,8 +760,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
761
760
  }, [
762
761
  L(a.$slots, "chart-background", {}, void 0, !0)
763
762
  ], 8, Ja)) : y("", !0),
764
- e.value.style.chart.bars.gradient.show ? (s(), o("defs", qa, [
765
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("linearGradient", {
763
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", qa, [
764
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("linearGradient", {
766
765
  id: `gradient_${t.id}`,
767
766
  x1: "0%",
768
767
  y1: "0%",
@@ -783,7 +782,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
783
782
  }, null, 8, ja)
784
783
  ], 8, Za))), 256))
785
784
  ])) : y("", !0),
786
- 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", {
785
+ 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", {
787
786
  x1: n.value.left,
788
787
  x2: n.value.right,
789
788
  y1: t.y,
@@ -793,7 +792,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
793
792
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
794
793
  "stroke-linecap": "round"
795
794
  }, null, 8, el))), 256)) : y("", !0),
796
- 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", {
795
+ 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", {
797
796
  x1: n.value.left,
798
797
  x2: n.value.right,
799
798
  y1: n.value.top + d.value * l,
@@ -803,7 +802,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
803
802
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
804
803
  "stroke-linecap": "round"
805
804
  }, null, 8, tl))), 256)) : y("", !0),
806
- 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", {
805
+ 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", {
807
806
  x1: n.value.left + d.value * l,
808
807
  x2: n.value.left + d.value * l,
809
808
  y1: n.value.top,
@@ -813,7 +812,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
813
812
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
814
813
  "stroke-linecap": "round"
815
814
  }, null, 8, al))), 256)) : y("", !0),
816
- 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", {
815
+ 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", {
817
816
  x1: t.horizontal_x,
818
817
  x2: t.horizontal_x,
819
818
  y1: n.value.top,
@@ -823,12 +822,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
823
822
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
824
823
  "stroke-linecap": "round"
825
824
  }, null, 8, ll))), 256)) : y("", !0),
826
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
827
- a.$slots.pattern ? (s(), o("defs", rl, [
828
- L(a.$slots, "pattern", He({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
825
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
826
+ a.$slots.pattern ? (r(), o("defs", sl, [
827
+ L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
829
828
  ])) : y("", !0),
830
- e.value.orientation === "vertical" ? (s(), o(g, { key: 1 }, [
831
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
829
+ e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
830
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
832
831
  x: c,
833
832
  y: t.y[u] < 0 ? 0 : t.y[u],
834
833
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -839,10 +838,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
839
838
  "stroke-width": e.value.style.chart.bars.strokeWidth,
840
839
  "stroke-linecap": "round",
841
840
  "stroke-linejoin": "round",
842
- class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
843
- }, null, 10, sl))), 256)),
844
- a.$slots.pattern ? (s(), o("g", ol, [
845
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o("rect", {
841
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
842
+ }, null, 10, rl))), 256)),
843
+ a.$slots.pattern ? (r(), o("g", ol, [
844
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
846
845
  x: c,
847
846
  y: t.y[u] < 0 ? 0 : t.y[u],
848
847
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -853,14 +852,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
853
852
  "stroke-width": e.value.style.chart.bars.strokeWidth,
854
853
  "stroke-linecap": "round",
855
854
  "stroke-linejoin": "round",
856
- class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
855
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
857
856
  }, null, 10, il))), 256))
858
857
  ])) : y("", !0)
859
- ], 64)) : (s(), o(g, { key: 2 }, [
860
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
861
- x: v(_e)(c, n.value.left),
858
+ ], 64)) : (r(), o(g, { key: 2 }, [
859
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
860
+ x: v(Ce)(c, n.value.left),
862
861
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
863
- width: v(_e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
862
+ width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
864
863
  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,
865
864
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
866
865
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -868,13 +867,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
868
867
  "stroke-width": e.value.style.chart.bars.strokeWidth,
869
868
  "stroke-linecap": "round",
870
869
  "stroke-linejoin": "round",
871
- class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
870
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
872
871
  }, null, 10, nl))), 256)),
873
- a.$slots.pattern ? (s(), o("g", ul, [
874
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o("rect", {
875
- x: v(_e)(c, n.value.left),
872
+ a.$slots.pattern ? (r(), o("g", ul, [
873
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
874
+ x: v(Ce)(c, n.value.left),
876
875
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
877
- width: v(_e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
876
+ width: v(Ce)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
878
877
  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,
879
878
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
880
879
  fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
@@ -882,12 +881,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
882
881
  "stroke-width": e.value.style.chart.bars.strokeWidth,
883
882
  "stroke-linecap": "round",
884
883
  "stroke-linejoin": "round",
885
- class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
884
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
886
885
  }, null, 10, cl))), 256))
887
886
  ])) : y("", !0)
888
887
  ], 64))
889
888
  ]))), 256)),
890
- e.value.style.chart.grid.x.showAxis ? (s(), o("line", {
889
+ e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
891
890
  key: 6,
892
891
  x1: n.value.left,
893
892
  x2: n.value.right,
@@ -898,7 +897,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
898
897
  "stroke-linecap": "round",
899
898
  "stroke-linejoin": "round"
900
899
  }, null, 8, hl)) : y("", !0),
901
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), o("line", {
900
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
902
901
  key: 7,
903
902
  x1: n.value.left,
904
903
  x2: n.value.left,
@@ -909,10 +908,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
909
908
  "stroke-linecap": "round",
910
909
  "stroke-linejoin": "round"
911
910
  }, null, 8, vl)) : y("", !0),
912
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), o("text", {
911
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
913
912
  key: 8,
914
913
  ref_key: "xAxisLabel",
915
- ref: Ie,
914
+ ref: Ae,
916
915
  x: n.value.left + n.value.width / 2,
917
916
  y: n.value.chartHeight - 3,
918
917
  "font-size": e.value.style.chart.grid.x.axisName.fontSize,
@@ -920,20 +919,20 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
920
919
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
921
920
  "text-anchor": "middle"
922
921
  }, M(e.value.style.chart.grid.x.axisName.text), 9, dl)) : y("", !0),
923
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), o("text", {
922
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
924
923
  key: 9,
925
924
  ref_key: "yAxisLabel",
926
- ref: Re,
925
+ ref: Ne,
927
926
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
928
927
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
929
928
  fill: e.value.style.chart.grid.y.axisName.color,
930
929
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
931
930
  "text-anchor": "middle"
932
931
  }, M(e.value.style.chart.grid.y.axisName.text), 9, yl)) : y("", !0),
933
- z.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), o(g, { key: 10 }, [
934
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
935
- (s(!0), o(g, null, m(t.x, (c, u) => (s(), o(g, null, [
936
- kt(t.series[u], t.proportions[u]) ? (s(), o("text", {
932
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
933
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
934
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
935
+ xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
937
936
  key: 0,
938
937
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
939
938
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
@@ -941,16 +940,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
941
940
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
942
941
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
943
942
  "text-anchor": "middle"
944
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, l, u) : me(t.series[u], t, l, u, t.signedSeries[u])), 9, gl)) : y("", !0)
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)
945
944
  ], 64))), 256))
946
945
  ]))), 256)),
947
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
946
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
948
947
  key: 0,
949
948
  ref_key: "sumTop",
950
949
  ref: qt
951
950
  }, [
952
- (s(!0), o(g, null, m(ct.value, (t, l) => (s(), o(g, null, [
953
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
951
+ (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
952
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
954
953
  key: 0,
955
954
  x: n.value.left + d.value * l + d.value / 2,
956
955
  y: e.value.style.chart.bars.totalValues.fontSize,
@@ -958,14 +957,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
958
957
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
959
958
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
960
959
  fill: e.value.style.chart.bars.totalValues.color
961
- }, M(me(t.value, t, l, t.sign)), 9, bl)) : y("", !0)
960
+ }, M(fe(t.value, t, l, t.sign)), 9, bl)) : y("", !0)
962
961
  ], 64))), 256))
963
962
  ], 512)) : y("", !0)
964
963
  ], 64)) : y("", !0),
965
- z.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), o(g, { key: 11 }, [
966
- (s(!0), o(g, null, m(w.value, (t, l) => (s(), o("g", null, [
967
- (s(!0), o(g, null, m(t.horizontal_x, (c, u) => (s(), o(g, null, [
968
- kt(t.series[u], t.proportions[u]) ? (s(), o("text", {
964
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
965
+ (r(!0), o(g, null, m(w.value, (t, l) => (r(), o("g", null, [
966
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
967
+ xt(t.series[u], t.proportions[u]) ? (r(), o("text", {
969
968
  key: 0,
970
969
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
971
970
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
@@ -973,16 +972,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
973
972
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Rt)(t.color) : e.value.style.chart.bars.dataLabels.color,
974
973
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
975
974
  "text-anchor": "middle"
976
- }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ht(t.proportions[u] * 100, t, l, u) : me(t.series[u], t, l, u, t.signedSeries[u])), 9, fl)) : y("", !0)
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)
977
976
  ], 64))), 256))
978
977
  ]))), 256)),
979
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), o("g", {
978
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
980
979
  key: 0,
981
980
  ref_key: "sumRight",
982
- ref: Ke
981
+ ref: Ze
983
982
  }, [
984
- (s(!0), o(g, null, m(ct.value, (t, l) => (s(), o(g, null, [
985
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), o("text", {
983
+ (r(!0), o(g, null, m(ut.value, (t, l) => (r(), o(g, null, [
984
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
986
985
  key: 0,
987
986
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
988
987
  y: n.value.top + d.value * l + d.value / 2,
@@ -990,16 +989,16 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
990
989
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
991
990
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
992
991
  fill: e.value.style.chart.bars.totalValues.color
993
- }, M(me(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
992
+ }, M(fe(t.value, t, l, t.sign)), 9, ml)) : y("", !0)
994
993
  ], 64))), 256))
995
994
  ], 512)) : y("", !0)
996
995
  ], 64)) : y("", !0),
997
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), o("g", {
996
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
998
997
  key: 12,
999
998
  ref_key: "scaleLabels",
1000
999
  ref: W
1001
1000
  }, [
1002
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1001
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1003
1002
  x1: n.value.left,
1004
1003
  x2: n.value.left - 6,
1005
1004
  y1: t.y,
@@ -1007,14 +1006,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1007
1006
  stroke: e.value.style.chart.grid.x.axisColor,
1008
1007
  "stroke-width": 1
1009
1008
  }, null, 8, pl))), 256)),
1010
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1009
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1011
1010
  x: t.x,
1012
1011
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1013
1012
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1014
1013
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1015
1014
  fill: e.value.style.chart.grid.y.axisLabels.color,
1016
1015
  "text-anchor": "end"
1017
- }, M(v($e)(
1016
+ }, M(v(Se)(
1018
1017
  e.value.style.chart.grid.y.axisLabels.formatter,
1019
1018
  t.value,
1020
1019
  v(j)({
@@ -1026,12 +1025,12 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1026
1025
  { datapoint: t }
1027
1026
  )), 9, xl))), 256))
1028
1027
  ], 512)) : y("", !0),
1029
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), o("g", {
1028
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1030
1029
  key: 13,
1031
1030
  ref_key: "scaleLabels",
1032
1031
  ref: W
1033
1032
  }, [
1034
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("line", {
1033
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("line", {
1035
1034
  x1: t.horizontal_x,
1036
1035
  x2: t.horizontal_x,
1037
1036
  y1: n.value.bottom,
@@ -1040,14 +1039,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1040
1039
  "stroke-width": 1,
1041
1040
  "stroke-linecap": "round"
1042
1041
  }, null, 8, kl))), 256)),
1043
- (s(!0), o(g, null, m(I.value, (t, l) => (s(), o("text", {
1042
+ (r(!0), o(g, null, m(I.value, (t, l) => (r(), o("text", {
1044
1043
  class: "vue-data-ui-time-label",
1045
1044
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1046
1045
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1047
1046
  fill: e.value.style.chart.grid.y.axisLabels.color,
1048
1047
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1049
1048
  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})`
1050
- }, M(v($e)(
1049
+ }, M(v(Se)(
1051
1050
  e.value.style.chart.grid.y.axisLabels.formatter,
1052
1051
  t.value,
1053
1052
  v(j)({
@@ -1059,14 +1058,14 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1059
1058
  { datapoint: t }
1060
1059
  )), 9, wl))), 256))
1061
1060
  ], 512)) : y("", !0),
1062
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), o("g", {
1061
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1063
1062
  key: 14,
1064
1063
  ref_key: "timeLabelsEls",
1065
1064
  ref: Y
1066
1065
  }, [
1067
- a.$slots["time-label"] ? (s(), o("g", Ll, [
1068
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1069
- L(a.$slots, "time-label", He({ ref_for: !0 }, {
1066
+ a.$slots["time-label"] ? (r(), o("g", Ll, [
1067
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1068
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1070
1069
  x: n.value.left + d.value * l + d.value / 2,
1071
1070
  y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1072
1071
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1078,10 +1077,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1078
1077
  show: !0
1079
1078
  }), void 0, !0)
1080
1079
  ]))), 256))
1081
- ])) : (s(), o("g", zl, [
1082
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1080
+ ])) : (r(), o("g", zl, [
1081
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1083
1082
  String(t.text).includes(`
1084
- `) ? (s(), o("text", {
1083
+ `) ? (r(), o("text", {
1085
1084
  key: l + "-multi",
1086
1085
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1087
1086
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1101,8 +1100,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1101
1100
  x: 0,
1102
1101
  y: 0
1103
1102
  }),
1104
- onClick: () => ke(t, l)
1105
- }, null, 8, Sl)) : (s(), o("text", {
1103
+ onClick: () => xe(t, l)
1104
+ }, null, 8, Sl)) : (r(), o("text", {
1106
1105
  class: "vue-data-ui-time-label",
1107
1106
  key: l,
1108
1107
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1111,19 +1110,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1111
1110
  fill: e.value.style.chart.grid.x.timeLabels.color,
1112
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})`,
1113
1112
  style: { cursor: "pointer" },
1114
- onClick: () => ke(t, l)
1113
+ onClick: () => xe(t, l)
1115
1114
  }, M(t.text), 9, Cl))
1116
1115
  ]))), 256))
1117
1116
  ]))
1118
1117
  ], 512)) : y("", !0),
1119
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), o("g", {
1118
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1120
1119
  key: 15,
1121
1120
  ref_key: "timeLabelsEls",
1122
1121
  ref: Y
1123
1122
  }, [
1124
- a.$slots["time-label"] ? (s(), o("g", _l, [
1125
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1126
- L(a.$slots, "time-label", He({ ref_for: !0 }, {
1123
+ a.$slots["time-label"] ? (r(), o("g", _l, [
1124
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1125
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1127
1126
  x: n.value.left - 8,
1128
1127
  y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1129
1128
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1135,10 +1134,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1135
1134
  show: !0
1136
1135
  }), void 0, !0)
1137
1136
  ]))), 256))
1138
- ])) : (s(), o("g", $l, [
1139
- (s(!0), o(g, null, m($.value, (t, l) => (s(), o("g", null, [
1137
+ ])) : (r(), o("g", $l, [
1138
+ (r(!0), o(g, null, m($.value, (t, l) => (r(), o("g", null, [
1140
1139
  String(t.text).includes(`
1141
- `) ? (s(), o("text", {
1140
+ `) ? (r(), o("text", {
1142
1141
  key: 1,
1143
1142
  "text-anchor": "end",
1144
1143
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1147,7 +1146,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1147
1146
  x: n.value.left - 8,
1148
1147
  y: n.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1149
1148
  style: { cursor: "pointer" },
1150
- onClick: () => ke(t, l),
1149
+ onClick: () => xe(t, l),
1151
1150
  innerHTML: v($a)({
1152
1151
  content: String(t.text),
1153
1152
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1155,7 +1154,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1155
1154
  x: n.value.left - 8,
1156
1155
  y: 0
1157
1156
  })
1158
- }, null, 8, Ml)) : (s(), o("text", {
1157
+ }, null, 8, Ml)) : (r(), o("text", {
1159
1158
  key: 0,
1160
1159
  "text-anchor": "end",
1161
1160
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1166,52 +1165,52 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1166
1165
  style: {
1167
1166
  cursor: "pointer"
1168
1167
  },
1169
- onClick: () => ke(t, l)
1168
+ onClick: () => xe(t, l)
1170
1169
  }, M(t.text), 9, Tl))
1171
1170
  ]))), 256))
1172
1171
  ]))
1173
1172
  ], 512)) : y("", !0),
1174
- 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", {
1173
+ 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", {
1175
1174
  x: n.value.left + l * d.value,
1176
1175
  y: n.value.top,
1177
1176
  width: d.value,
1178
1177
  height: n.value.height < 0 ? 0 : n.value.height,
1179
- onClick: (c) => vt(l),
1180
- onMouseenter: (c) => dt(l),
1181
- onMouseleave: r[0] || (r[0] = (c) => {
1182
- se.value = null, ue.value = !1;
1178
+ onClick: (c) => ht(l),
1179
+ onMouseenter: (c) => vt(l),
1180
+ onMouseleave: s[0] || (s[0] = (c) => {
1181
+ se.value = null, ne.value = !1;
1183
1182
  }),
1184
1183
  fill: l === se.value ? e.value.style.chart.highlighter.color : "transparent",
1185
1184
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1186
1185
  }, null, 44, Al))), 256)) : y("", !0),
1187
- 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", {
1186
+ 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", {
1188
1187
  x: n.value.left,
1189
1188
  y: n.value.top + l * d.value,
1190
1189
  width: n.value.width < 0 ? 0 : n.value.width,
1191
1190
  height: d.value,
1192
- onClick: (c) => vt(l),
1193
- onMouseenter: (c) => dt(l),
1194
- onMouseleave: r[1] || (r[1] = (c) => {
1195
- se.value = null, ue.value = !1;
1191
+ onClick: (c) => ht(l),
1192
+ onMouseenter: (c) => vt(l),
1193
+ onMouseleave: s[1] || (s[1] = (c) => {
1194
+ se.value = null, ne.value = !1;
1196
1195
  }),
1197
1196
  fill: l === se.value ? e.value.style.chart.highlighter.color : "transparent",
1198
1197
  style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1199
1198
  }, null, 44, Nl))), 256)) : y("", !0),
1200
1199
  L(a.$slots, "svg", U(H({ ...n.value })), void 0, !0)
1201
1200
  ], 14, Ga)),
1202
- a.$slots.watermark ? (s(), o("div", Il, [
1203
- L(a.$slots, "watermark", U(H({ isPrinting: v(lt) || v(rt) })), void 0, !0)
1201
+ a.$slots.watermark ? (r(), o("div", Il, [
1202
+ L(a.$slots, "watermark", U(H({ isPrinting: v(at) || v(lt) })), void 0, !0)
1204
1203
  ])) : y("", !0),
1205
1204
  Q("div", {
1206
1205
  ref_key: "chartSlicer",
1207
- ref: Ge,
1206
+ ref: Ye,
1208
1207
  style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1209
1208
  "data-dom-to-png-ignore": ""
1210
1209
  }, [
1211
- e.value.style.chart.zoom.show && F.value > 1 ? (s(), K(Ea, {
1210
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ea, {
1212
1211
  ref_key: "slicerComponent",
1213
- ref: ee,
1214
- key: `slicer_${qe.value}`,
1212
+ ref: qe,
1213
+ key: `slicer_${Ge.value}`,
1215
1214
  background: e.value.style.chart.zoom.color,
1216
1215
  borderColor: e.value.style.chart.backgroundColor,
1217
1216
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -1221,19 +1220,19 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1221
1220
  textColor: e.value.style.chart.color,
1222
1221
  inputColor: e.value.style.chart.zoom.color,
1223
1222
  selectColor: e.value.style.chart.zoom.highlightColor,
1224
- max: Math.max(...Te.dataset.map((t) => t.series.length)),
1223
+ max: Math.max(..._e.dataset.map((t) => t.series.length)),
1225
1224
  min: 0,
1226
1225
  valueStart: h.value.start,
1227
1226
  valueEnd: h.value.end,
1228
1227
  start: h.value.start,
1229
- "onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
1228
+ "onUpdate:start": s[2] || (s[2] = (t) => h.value.start = t),
1230
1229
  end: h.value.end,
1231
- "onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
1230
+ "onUpdate:end": s[3] || (s[3] = (t) => h.value.end = t),
1232
1231
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1233
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Te.dataset.map((t) => t.series.length)),
1232
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(..._e.dataset.map((t) => t.series.length)),
1234
1233
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1235
1234
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1236
- onReset: ut
1235
+ onReset: nt
1237
1236
  }, {
1238
1237
  "reset-action": C(({ reset: t }) => [
1239
1238
  L(a.$slots, "reset-action", U(H({ reset: t })), void 0, !0)
@@ -1241,8 +1240,8 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1241
1240
  _: 3
1242
1241
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1243
1242
  ], 4),
1244
- ze(v(Bt), {
1245
- show: z.value.showTooltip && ue.value,
1243
+ we(v(Bt), {
1244
+ show: z.value.showTooltip && ne.value,
1246
1245
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1247
1246
  color: e.value.style.chart.tooltip.color,
1248
1247
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1253,27 +1252,27 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1253
1252
  position: e.value.style.chart.tooltip.position,
1254
1253
  offsetY: e.value.style.chart.tooltip.offsetY,
1255
1254
  parent: P.value,
1256
- content: Ne.value,
1257
- isFullscreen: ce.value,
1255
+ content: Me.value,
1256
+ isFullscreen: ue.value,
1258
1257
  isCustom: v(Ot)(e.value.style.chart.tooltip.customFormat)
1259
1258
  }, {
1260
1259
  "tooltip-before": C(() => [
1261
- L(a.$slots, "tooltip-before", U(H({ ...Ae.value })), void 0, !0)
1260
+ L(a.$slots, "tooltip-before", U(H({ ...Te.value })), void 0, !0)
1262
1261
  ]),
1263
1262
  "tooltip-after": C(() => [
1264
- L(a.$slots, "tooltip-after", U(H({ ...Ae.value })), void 0, !0)
1263
+ L(a.$slots, "tooltip-after", U(H({ ...Te.value })), void 0, !0)
1265
1264
  ]),
1266
1265
  _: 3
1267
1266
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1268
1267
  Q("div", {
1269
1268
  ref_key: "chartLegend",
1270
- ref: Xe
1269
+ ref: We
1271
1270
  }, [
1272
- e.value.style.chart.legend.show && ne.value ? (s(), K(Va, {
1271
+ e.value.style.chart.legend.show && ie.value ? (r(), K(Va, {
1273
1272
  key: 0,
1274
- legendSet: xt.value,
1275
- config: ra.value,
1276
- onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1273
+ legendSet: pt.value,
1274
+ config: sa.value,
1275
+ onClickMarker: s[4] || (s[4] = ({ legend: t }) => t.segregate())
1277
1276
  }, $t({
1278
1277
  item: C(({ legend: t }) => [
1279
1278
  Q("div", {
@@ -1286,7 +1285,7 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1286
1285
  a.$slots.pattern ? {
1287
1286
  name: "legend-pattern",
1288
1287
  fn: C(({ legend: t, index: l }) => [
1289
- ze(Fa, {
1288
+ we(Fa, {
1290
1289
  shape: t.shape,
1291
1290
  radius: 30,
1292
1291
  stroke: "none",
@@ -1298,18 +1297,18 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1298
1297
  } : void 0
1299
1298
  ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1300
1299
  key: 1,
1301
- legend: xt.value
1300
+ legend: pt.value
1302
1301
  }, void 0, !0)
1303
1302
  ], 512),
1304
- a.$slots.source ? (s(), o("div", {
1303
+ a.$slots.source ? (r(), o("div", {
1305
1304
  key: 4,
1306
1305
  ref_key: "source",
1307
- ref: Je,
1306
+ ref: Xe,
1308
1307
  dir: "auto"
1309
1308
  }, [
1310
1309
  L(a.$slots, "source", {}, void 0, !0)
1311
1310
  ], 512)) : y("", !0),
1312
- h.value.end - h.value.start < 200 ? (s(), K(v(Dt), {
1311
+ h.value.end - h.value.start < 200 ? (r(), K(v(Dt), {
1313
1312
  key: 5,
1314
1313
  hideDetails: "",
1315
1314
  config: {
@@ -1326,13 +1325,13 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1326
1325
  }
1327
1326
  }, {
1328
1327
  content: C(() => [
1329
- ze(v(Ft), {
1330
- colNames: pe.value.colNames,
1331
- head: pe.value.head,
1332
- body: pe.value.body,
1333
- config: pe.value.config,
1328
+ we(v(Ft), {
1329
+ colNames: me.value.colNames,
1330
+ head: me.value.head,
1331
+ body: me.value.body,
1332
+ config: me.value.config,
1334
1333
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1335
- onClose: r[5] || (r[5] = (t) => z.value.showTable = !1)
1334
+ onClose: s[5] || (s[5] = (t) => z.value.showTable = !1)
1336
1335
  }, {
1337
1336
  th: C(({ th: t }) => [
1338
1337
  Q("div", { innerHTML: t }, null, 8, Ol)
@@ -1350,10 +1349,10 @@ const Xa = ["id"], Ga = ["xmlns", "viewBox"], Ja = ["x", "y", "width", "height"]
1350
1349
  ]),
1351
1350
  _: 1
1352
1351
  }, 8, ["config"])) : y("", !0),
1353
- v(he) ? (s(), K(Wa, { key: 6 })) : y("", !0)
1352
+ v(ce) ? (r(), K(Wa, { key: 6 })) : y("", !0)
1354
1353
  ], 46, Xa));
1355
1354
  }
1356
- }, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-349384d6"]]);
1355
+ }, jl = /* @__PURE__ */ Ya(Pl, [["__scopeId", "data-v-e76ba3f8"]]);
1357
1356
  export {
1358
1357
  jl as default
1359
1358
  };