vue-data-ui 2.15.3 → 2.15.5

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-CzzsKX8z.js → Arrow-CI_Chty0.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DCJi-1yP.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
  3. package/dist/{BaseIcon-DhFdv5GX.js → BaseIcon-DTTmgKBX.js} +1 -1
  4. package/dist/{ColorPicker-DVErVt1a.js → ColorPicker-BySm_2Gi.js} +6 -6
  5. package/dist/{DataTable-C1m1pLCZ.js → DataTable-CLeYfh93.js} +2 -2
  6. package/dist/{Legend-Bv4X-1rt.js → Legend-B949nNP9.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DSnwu1Ay.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
  8. package/dist/{PackageVersion-Bto74qGz.js → PackageVersion-Djh3oJFs.js} +1 -1
  9. package/dist/{PenAndPaper-Ch0HBNVZ.js → PenAndPaper-BlF1d4XE.js} +3 -3
  10. package/dist/{Shape-G58fHOyr.js → Shape-DmDw1mpi.js} +1 -1
  11. package/dist/{Slicer-B31lD5Se.js → Slicer-mINKiN6T.js} +13 -13
  12. package/dist/{SparkTooltip-CT5F0yPg.js → SparkTooltip-B888Ijov.js} +1 -1
  13. package/dist/{Title-HKMJNA2t.js → Title-CPvPrwF4.js} +1 -1
  14. package/dist/{Tooltip-C3Dnr3zM.js → Tooltip-BiWfcBQk.js} +1 -1
  15. package/dist/{UserOptions-BnD3w_M-.js → UserOptions-CFllUVQ4.js} +2 -2
  16. package/dist/{dom-to-png-DvtSOm-q.js → dom-to-png-DeajhH5Z.js} +1 -1
  17. package/dist/{img-PRKpmCrJ.js → img-4TaH43jS.js} +1 -1
  18. package/dist/{index-pz3uy0bj.js → index-CBhz79Be.js} +12 -6
  19. package/dist/{pdf-NCZXhCbT.js → pdf-BlK5aBh-.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +8 -0
  22. package/dist/types/vue-data-ui.d.ts +8 -0
  23. package/dist/{useNestedProp-BTwRpxJ6.js → useNestedProp-Cg9K3ISG.js} +1 -1
  24. package/dist/{usePrinter-CpYwk8Nl.js → usePrinter-DNC_9y1d.js} +2 -2
  25. package/dist/{vue-data-ui-edDJqWqp.js → vue-data-ui-DcP8arpr.js} +63 -63
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-Cj4MAAl3.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
  28. package/dist/{vue-ui-accordion-DVMQOCog.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-B9-mIJoM.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
  30. package/dist/{vue-ui-annotator-BelwH44r.js → vue-ui-annotator-_31h_MMe.js} +2 -2
  31. package/dist/{vue-ui-bullet-7voYFUyR.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
  32. package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
  33. package/dist/{vue-ui-carousel-table-CCu7pOvx.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
  34. package/dist/{vue-ui-chestnut-DaIhjU0E.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
  35. package/dist/{vue-ui-chord-ol8it32M.js → vue-ui-chord-C8hE1GXD.js} +47 -47
  36. package/dist/{vue-ui-circle-pack-4dYH7oFz.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
  37. package/dist/{vue-ui-cursor-BWo0SND4.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
  38. package/dist/{vue-ui-dashboard-DLP5BjC2.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
  39. package/dist/{vue-ui-digits-vLYOgwYN.js → vue-ui-digits-D4Du84P3.js} +2 -2
  40. package/dist/{vue-ui-donut-DA1mt39C.js → vue-ui-donut-C0dqyYUE.js} +7 -7
  41. package/dist/{vue-ui-donut-evolution-Y5NvWAOf.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
  42. package/dist/{vue-ui-dumbbell-DHGaUXgf.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
  43. package/dist/{vue-ui-flow-CPRwtkW7.js → vue-ui-flow-DalrAEmv.js} +24 -24
  44. package/dist/{vue-ui-funnel-Cdaj7JLP.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
  45. package/dist/{vue-ui-galaxy-Bml38eED.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
  46. package/dist/{vue-ui-gauge-DIKUWHow.js → vue-ui-gauge-D71TDx5z.js} +17 -17
  47. package/dist/{vue-ui-gizmo-CDGfldQ2.js → vue-ui-gizmo-CJChusop.js} +3 -3
  48. package/dist/{vue-ui-heatmap-Cvz3HWSo.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
  49. package/dist/{vue-ui-history-plot-CEw6Ijds.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
  50. package/dist/{vue-ui-kpi-BOU7jfII.js → vue-ui-kpi-CJut0fnk.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-B0QHAAN0.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
  52. package/dist/{vue-ui-molecule-DpZAl654.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
  53. package/dist/{vue-ui-mood-radar-DVTDXHkP.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
  54. package/dist/{vue-ui-nested-donuts-Cs_jOkZf.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
  55. package/dist/{vue-ui-onion-BNm4LDqz.js → vue-ui-onion-DVtreg0e.js} +6 -6
  56. package/dist/{vue-ui-parallel-coordinate-plot-DF8yQwqD.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
  57. package/dist/{vue-ui-quadrant-CsT_YtVJ.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
  58. package/dist/{vue-ui-quick-chart-BQ8LWKNh.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
  59. package/dist/{vue-ui-radar-BTXb1OpM.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
  60. package/dist/{vue-ui-rating-10ZP5oGv.js → vue-ui-rating-Drx2P4xK.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-BDY_mStf.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
  62. package/dist/{vue-ui-ridgeline-DiUQ9G50.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
  63. package/dist/{vue-ui-rings-uOzklelU.js → vue-ui-rings-DWMToWPQ.js} +21 -21
  64. package/dist/{vue-ui-scatter-o8fU3CPQ.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
  65. package/dist/{vue-ui-skeleton-DtyqxWGZ.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
  66. package/dist/{vue-ui-smiley-bleVUcTp.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-BSxc2AeN.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-BpGhOBfa.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-BGm17y7o.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-C8_9lU73.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
  71. package/dist/{vue-ui-sparkline-BEC-1ljx.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-BcDRG3Q4.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
  73. package/dist/{vue-ui-stackbar-B9rcNFMU.js → vue-ui-stackbar-DaaB_FjD.js} +220 -210
  74. package/dist/{vue-ui-strip-plot-DiU5qgNv.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
  75. package/dist/{vue-ui-table-CVciwbm2.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-Do0wz-jb.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
  77. package/dist/{vue-ui-table-sparkline-Manlzy4B.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
  78. package/dist/{vue-ui-thermometer-CAZrRTaM.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
  79. package/dist/{vue-ui-timer-DuOTyXM6.js → vue-ui-timer-C01Ipde6.js} +30 -30
  80. package/dist/{vue-ui-tiremarks-BCETzTS2.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
  81. package/dist/{vue-ui-treemap-DjINZD63.js → vue-ui-treemap-DJEl32W1.js} +75 -75
  82. package/dist/{vue-ui-vertical-bar-D9dKYc0V.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
  83. package/dist/{vue-ui-waffle-BMUnrWw9.js → vue-ui-waffle-rFSfHosn.js} +30 -30
  84. package/dist/{vue-ui-wheel-DEpzAPrw.js → vue-ui-wheel-B6md6ra7.js} +5 -5
  85. package/dist/{vue-ui-word-cloud-BBpm9VoF.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
  86. package/dist/{vue-ui-world-D4G5xytB.js → vue-ui-world-d09xOrf0.js} +5 -5
  87. package/dist/{vue-ui-xy-BXY4ixtF.js → vue-ui-xy-CuzhWfRK.js} +20 -20
  88. package/dist/{vue-ui-xy-canvas-BLOjFl9f.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
  89. package/package.json +1 -1
  90. package/dist/vue-ui-candlestick-BiAWi-oW.js +0 -768
@@ -1,17 +1,17 @@
1
- import { defineAsyncComponent as X, useSlots as Xt, computed as z, ref as p, onMounted as ot, watch as st, shallowRef as it, onBeforeUnmount as Gt, nextTick as be, createElementBlock as n, openBlock as o, unref as g, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as y, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as nt, withCtx as _, normalizeProps as E, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as $e, toDisplayString as T, createTextVNode as Jt } from "vue";
2
- import { u as qt, c as ut, t as Zt, p as fe, a as Kt, C as me, b as Qt, o as jt, e as ct, g as ea, d as ta, al as pe, ai as vt, D as ht, X as aa, l as la, a7 as xe, G as dt, f as q, I as ra, am as oa, x as yt, q as sa, r as ia, i as gt, y as na } from "./index-pz3uy0bj.js";
3
- import { u as bt } from "./useNestedProp-BTwRpxJ6.js";
1
+ import { defineAsyncComponent as X, useSlots as Xt, computed as z, ref as p, onMounted as st, watch as it, shallowRef as nt, onBeforeUnmount as Gt, nextTick as be, createElementBlock as n, openBlock as o, unref as y, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as g, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as ut, withCtx as L, normalizeProps as E, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as Me, toDisplayString as T, createTextVNode as Jt } from "vue";
2
+ import { u as qt, c as ct, t as Zt, p as fe, a as Kt, C as me, b as Qt, o as jt, e as vt, g as ea, d as ta, al as pe, ai as ht, D as dt, X as aa, l as la, a7 as xe, F as yt, i as ke, f as q, I as ra, am as oa, x as gt, q as sa, r as ia, y as na } from "./index-CBhz79Be.js";
3
+ import { u as bt } from "./useNestedProp-Cg9K3ISG.js";
4
4
  import { t as ua, u as ca } from "./useResponsive-DfdjqQps.js";
5
- import { u as va } from "./usePrinter-CpYwk8Nl.js";
5
+ import { u as va } from "./usePrinter-DNC_9y1d.js";
6
6
  import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as da } from "./useChartAccessibility-9icAAmYg.js";
8
- import ya from "./Legend-Bv4X-1rt.js";
9
- import { S as ga } from "./Slicer-B31lD5Se.js";
10
- import ba from "./Title-HKMJNA2t.js";
11
- import { _ as fa } from "./Shape-G58fHOyr.js";
8
+ import ya from "./Legend-B949nNP9.js";
9
+ import { S as ga } from "./Slicer-mINKiN6T.js";
10
+ import ba from "./Title-CPvPrwF4.js";
11
+ import { _ as fa } from "./Shape-DmDw1mpi.js";
12
12
  import { u as ma } from "./useTimeLabels-Mrr0jrpL.js";
13
13
  import { _ as pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], za = { key: 1 }, Ca = ["id"], La = ["stop-color"], _a = ["stop-color"], Sa = ["stop-color"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["x1", "x2", "y1", "y2", "stroke"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = { key: 0 }, Pa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Ba = ["transform", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ja = { key: 0 }, el = { key: 1 }, tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], al = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ll = { key: 0 }, rl = { key: 1 }, ol = ["font-size", "font-weight", "fill", "x", "y", "onClick"], sl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ul = {
14
+ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], za = { key: 1 }, Ca = ["id"], _a = ["stop-color"], La = ["stop-color"], Sa = ["stop-color"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["x1", "x2", "y1", "y2", "stroke"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = { key: 0 }, Pa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Ba = ["transform", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ja = { key: 0 }, el = { key: 1 }, tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], al = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ll = { key: 0 }, rl = { key: 1 }, ol = ["font-size", "font-weight", "fill", "x", "y", "onClick"], sl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ul = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
17
  }, cl = ["onClick"], vl = ["innerHTML"], hl = {
@@ -31,26 +31,26 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
34
- setup(ke, { expose: ft, emit: mt }) {
35
- const pt = X(() => import("./vue-ui-accordion-DVMQOCog.js")), xt = X(() => import("./DataTable-C1m1pLCZ.js")), kt = X(() => import("./PackageVersion-Bto74qGz.js")), wt = X(() => import("./PenAndPaper-Ch0HBNVZ.js")), zt = X(() => import("./vue-ui-skeleton-DtyqxWGZ.js")), Ct = X(() => import("./Tooltip-C3Dnr3zM.js")), Lt = X(() => import("./UserOptions-BnD3w_M-.js")), { vue_ui_stackbar: _t } = qt(), St = Xt(), f = ke, we = mt, Z = z({
34
+ setup(we, { expose: ft, emit: mt }) {
35
+ const pt = X(() => import("./vue-ui-accordion-BWiiOpGO.js")), xt = X(() => import("./DataTable-CLeYfh93.js")), kt = X(() => import("./PackageVersion-Djh3oJFs.js")), wt = X(() => import("./PenAndPaper-BlF1d4XE.js")), zt = X(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), Ct = X(() => import("./Tooltip-BiWfcBQk.js")), _t = X(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_stackbar: Lt } = qt(), St = Xt(), f = we, ze = mt, Z = z({
36
36
  get() {
37
37
  return !!f.dataset && f.dataset.length;
38
38
  },
39
39
  set(a) {
40
40
  return a;
41
41
  }
42
- }), ee = p(null), P = p(ut()), ie = p(!1), ze = p(null), Ce = p(""), S = p([]), Me = p(0), Te = p(null), Ne = p(null), Ie = p(null), Oe = p(null), Re = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
43
- ot(() => {
44
- _e();
42
+ }), ee = p(null), P = p(ct()), ie = p(!1), Ce = p(null), _e = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Oe = p(null), Re = p(null), Pe = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
43
+ st(() => {
44
+ Se();
45
45
  });
46
46
  const e = z({
47
- get: () => Fe(),
47
+ get: () => Ee(),
48
48
  set: (a) => a
49
- }), { userOptionsVisible: Le, setUserOptionsVisibility: Pe, keepUserOptionState: Ae } = ha({ config: e.value }), { svgRef: Ve } = da({ config: e.value.style.chart.title });
50
- function Fe() {
49
+ }), { userOptionsVisible: Le, setUserOptionsVisibility: Ae, keepUserOptionState: Ve } = ha({ config: e.value }), { svgRef: Fe } = da({ config: e.value.style.chart.title });
50
+ function Ee() {
51
51
  const a = bt({
52
52
  userConfig: f.config,
53
- defaultConfig: _t
53
+ defaultConfig: Lt
54
54
  });
55
55
  let r = {};
56
56
  return a.theme ? r = {
@@ -61,10 +61,10 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
61
61
  customPalette: Zt[a.theme] || fe
62
62
  } : r = a, f.config && me(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 && me(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 && me(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 && me(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
63
63
  }
64
- st(() => f.config, (a) => {
65
- e.value = Fe(), Le.value = !e.value.userOptions.showOnChartHover, _e(), $t.value += 1, Mt.value += 1, Tt.value += 1, C.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
66
- }, { deep: !0 }), st(() => f.dataset, (a) => {
67
- Ye();
64
+ it(() => f.config, (a) => {
65
+ e.value = Ee(), Le.value = !e.value.userOptions.showOnChartHover, Se(), $t.value += 1, Mt.value += 1, Tt.value += 1, C.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
66
+ }, { deep: !0 }), it(() => f.dataset, (a) => {
67
+ Ue();
68
68
  }, { deep: !0 });
69
69
  const C = p({
70
70
  dataLabels: {
@@ -72,7 +72,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
72
72
  },
73
73
  showTable: e.value.table.show,
74
74
  showTooltip: e.value.style.chart.tooltip.show
75
- }), { isPrinting: Ee, isImaging: De, generatePdf: He, generateImage: Be } = va({
75
+ }), { isPrinting: De, isImaging: He, generatePdf: Be, generateImage: We } = va({
76
76
  elementId: `stackbar_${P.value}`,
77
77
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
78
78
  options: e.value.userOptions.print
@@ -85,12 +85,12 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
85
85
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
86
86
  left: e.value.style.chart.padding.left / e.value.style.chart.width
87
87
  }
88
- }), Nt = z(() => Qt(e.value.customPalette)), A = it(null), Q = it(null), We = p(null);
89
- ot(() => {
90
- _e();
88
+ }), Nt = z(() => Qt(e.value.customPalette)), A = nt(null), Q = nt(null), Ye = p(null);
89
+ st(() => {
90
+ Se();
91
91
  });
92
- function _e() {
93
- if (jt(f.dataset) ? ct({
92
+ function Se() {
93
+ if (jt(f.dataset) ? vt({
94
94
  componentName: "VueUiStackbar",
95
95
  type: "dataset"
96
96
  }) : f.dataset.forEach((a, r) => {
@@ -98,7 +98,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
98
98
  datasetObject: a,
99
99
  requiredAttributes: ["name", "series"]
100
100
  }).forEach((t) => {
101
- Z.value = !1, ct({
101
+ Z.value = !1, vt({
102
102
  componentName: "VueUiStackbar",
103
103
  type: "datasetSerieAttribute",
104
104
  property: t,
@@ -112,33 +112,33 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
112
112
  H.value = !1;
113
113
  const { width: r, height: t } = ca({
114
114
  chart: ee.value,
115
- title: e.value.style.chart.title.text ? Te.value : null,
116
- legend: e.value.style.chart.legend.show ? Ne.value : null,
117
- slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ie.value : null,
118
- source: Oe.value
115
+ title: e.value.style.chart.title.text ? Ne.value : null,
116
+ legend: e.value.style.chart.legend.show ? Ie.value : null,
117
+ slicer: e.value.style.chart.zoom.show && F.value > 1 ? Oe.value : null,
118
+ source: Re.value
119
119
  });
120
120
  requestAnimationFrame(() => {
121
- ue.value.width = r, ue.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
121
+ ue.value.width = r, ue.value.height = t, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
122
122
  H.value = !0;
123
123
  }, 10);
124
124
  });
125
125
  });
126
126
  A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect()), A.value = new ResizeObserver(a), Q.value = ee.value.parentNode, A.value.observe(Q.value);
127
127
  }
128
- Ue();
128
+ Xe();
129
129
  }
130
130
  Gt(() => {
131
131
  A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect());
132
132
  });
133
133
  const s = z(() => {
134
- const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, L = e.value.style.chart.padding.left, B = r - L - r * t, W = a - l - e.value.style.chart.padding.bottom;
134
+ const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, B = r - _ - r * t, W = a - l - e.value.style.chart.padding.bottom;
135
135
  return {
136
136
  chartHeight: a,
137
137
  chartWidth: r,
138
138
  top: l,
139
139
  right: c,
140
140
  bottom: u,
141
- left: L,
141
+ left: _,
142
142
  width: B,
143
143
  height: W < 0 ? 0 : W
144
144
  };
@@ -151,21 +151,21 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
151
151
  // Store signs to manage display of neg values in distributed mode
152
152
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
153
153
  absoluteIndex: r,
154
- id: ut(),
154
+ id: ct(),
155
155
  color: t
156
156
  };
157
157
  })), F = z(() => Math.max(...V.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = p({
158
158
  start: 0,
159
159
  end: Math.max(...f.dataset.map((a) => a.series.length))
160
160
  });
161
- function Ye() {
162
- Ue();
161
+ function Ue() {
162
+ Xe();
163
163
  }
164
- async function Ue() {
164
+ async function Xe() {
165
165
  (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await be(), await be(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), K.value && K.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (v.value = {
166
166
  start: 0,
167
167
  end: Math.max(...f.dataset.map((a) => a.series.length))
168
- }, Re.value += 1);
168
+ }, Pe.value += 1);
169
169
  }
170
170
  function It(a) {
171
171
  const r = Math.max(...f.dataset.map((t) => t.series.length));
@@ -190,7 +190,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
190
190
  })))
191
191
  };
192
192
  }), O = z(() => {
193
- 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(...ce.value.positive), r = Math.min(...ce.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) ? vt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
193
+ 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(...ce.value.positive), r = Math.min(...ce.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) ? ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
194
194
  return l.ticks.map((c) => ({
195
195
  zero: s.value.bottom - s.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
196
196
  y: s.value.bottom - s.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -209,16 +209,16 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
209
209
  })), w = z(() => {
210
210
  if (!Z.value) return [];
211
211
  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);
212
- const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), L = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? vt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : L > 0 ? 0 : L, 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) : ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : L > 0 ? 0 : L, 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: W, max: le } = B, Y = le + (W >= 0 ? 0 : Math.abs(W)) || 1, M = s.value.height, ge = s.value.width, lt = O.value[0] ? O.value[0].zero : s.value.bottom, rt = O.value[0] ? O.value[0].horizontal_zero : s.value.left;
212
+ const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : dt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: W, max: le } = B, Y = le + (W >= 0 ? 0 : Math.abs(W)) || 1, M = s.value.height, ge = s.value.width, rt = O.value[0] ? O.value[0].zero : s.value.bottom, ot = O.value[0] ? O.value[0].horizontal_zero : s.value.left;
213
213
  return V.value.filter((re) => !S.value.includes(re.id)).map((re) => {
214
214
  const R = re.series.slice(v.value.start, v.value.end), Ft = re.signedSeries.slice(v.value.start, v.value.end), Et = R.map((m, x) => s.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Dt = R.map((m, x) => s.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Ht = R.map((m, x) => {
215
215
  const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
216
216
  let U, I;
217
- return m > 0 ? (I = M * N, U = lt - I - a[x], a[x] += I) : (I = M * N, U = lt + t[x], t[x] += Math.abs(I)), U;
217
+ return m > 0 ? (I = M * N, U = rt - I - a[x], a[x] += I) : (I = M * N, U = rt + t[x], t[x] += Math.abs(I)), U;
218
218
  }), Bt = R.map((m, x) => {
219
219
  const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
220
220
  let U, I;
221
- return m > 0 ? (I = ge * N, U = rt + r[x], r[x] += I) : (I = ge * N, U = rt - Math.abs(I) - l[x], l[x] += Math.abs(I)), U;
221
+ return m > 0 ? (I = ge * N, U = ot + r[x], r[x] += I) : (I = ge * N, U = ot - Math.abs(I) - l[x], l[x] += Math.abs(I)), U;
222
222
  }), Wt = R.map((m, x) => {
223
223
  const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
224
224
  return m > 0 ? M * N : M * Math.abs(N);
@@ -239,13 +239,13 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
239
239
  horizontal_x: Bt
240
240
  };
241
241
  });
242
- }), Xe = z(() => Ot.value.map((a, r) => ({
242
+ }), Ge = z(() => Ot.value.map((a, r) => ({
243
243
  value: a,
244
244
  sign: a >= 0 ? 1 : -1
245
245
  })));
246
246
  function ve(a, r, t, l, c) {
247
247
  const u = c === -1 && a >= 0 ? -a : a;
248
- return gt(
248
+ return ke(
249
249
  e.value.style.chart.bars.dataLabels.formatter,
250
250
  u,
251
251
  q({
@@ -257,8 +257,8 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
257
257
  { datapoint: r, seriesIndex: t, datapointIndex: l }
258
258
  );
259
259
  }
260
- function Ge(a, r, t, l) {
261
- return gt(
260
+ function Je(a, r, t, l) {
261
+ return ke(
262
262
  e.value.style.chart.bars.dataLabels.formatter,
263
263
  a,
264
264
  q({
@@ -269,7 +269,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
269
269
  { datapoint: r, seriesIndex: t, datapointIndex: l }
270
270
  );
271
271
  }
272
- function Je(a) {
272
+ function qe(a) {
273
273
  const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
274
274
  name: t.name,
275
275
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
@@ -277,9 +277,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
277
277
  color: t.color,
278
278
  id: t.id
279
279
  }));
280
- we("selectDatapoint", { datapoint: r, period: $.value[a] });
280
+ ze("selectDatapoint", { datapoint: r, period: $.value[a] });
281
281
  }
282
- function qe(a) {
282
+ function Ze(a) {
283
283
  te.value = a, ie.value = !0;
284
284
  const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
285
285
  name: c.name,
@@ -289,20 +289,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
289
289
  color: c.color,
290
290
  id: c.id
291
291
  }));
292
- ze.value = {
292
+ Ce.value = {
293
293
  datapoint: t,
294
294
  seriesIndex: a,
295
295
  config: e.value,
296
296
  series: w.value
297
297
  };
298
298
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
299
- if (yt(r) && na(() => r({
299
+ if (gt(r) && na(() => r({
300
300
  seriesIndex: a,
301
301
  datapoint: t,
302
302
  series: w.value,
303
303
  config: e.value
304
304
  })))
305
- Ce.value = r({
305
+ _e.value = r({
306
306
  seriesIndex: a,
307
307
  datapoint: t,
308
308
  series: w.value,
@@ -312,12 +312,12 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
312
312
  const {
313
313
  showValue: c,
314
314
  showPercentage: u,
315
- borderColor: L,
315
+ borderColor: _,
316
316
  roundingValue: B,
317
317
  roundingPercentage: W
318
318
  } = e.value.style.chart.tooltip;
319
319
  let le = "";
320
- $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (le += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
320
+ $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (le += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
321
321
  const Y = [
322
322
  c && u ? "(" : "",
323
323
  c && u ? ")" : ""
@@ -339,25 +339,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
339
339
  }) : ""}${Y[1]}
340
340
  </div>
341
341
  `;
342
- }), Ce.value = `<div>${le}</div>`;
342
+ }), _e.value = `<div>${le}</div>`;
343
343
  }
344
344
  }
345
345
  function Rt(a) {
346
- ne.value = a, Me.value += 1;
346
+ ne.value = a, Te.value += 1;
347
347
  }
348
- function Ze() {
348
+ function Ke() {
349
349
  C.value.showTable = !C.value.showTable;
350
350
  }
351
- function Ke() {
351
+ function Qe() {
352
352
  C.value.dataLabels.show = !C.value.dataLabels.show;
353
353
  }
354
- function Qe() {
354
+ function je() {
355
355
  C.value.showTooltip = !C.value.showTooltip;
356
356
  }
357
357
  function Pt() {
358
358
  return w.value;
359
359
  }
360
- const je = z(() => {
360
+ const et = z(() => {
361
361
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
362
362
  const a = w.value.map(({ name: t, color: l }) => ({
363
363
  label: t,
@@ -370,16 +370,16 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
370
370
  }), r.push(l);
371
371
  }), { head: a, body: r };
372
372
  });
373
- function et(a = null) {
374
- const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...je.value.head.map((L) => L.label)], l = je.value.body, c = r.concat([t]).concat(l), u = sa(c);
373
+ function tt(a = null) {
374
+ const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...et.value.head.map((_) => _.label)], l = et.value.body, c = r.concat([t]).concat(l), u = sa(c);
375
375
  a ? a(u) : ia({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
376
376
  }
377
377
  const he = z(() => {
378
378
  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>');
379
379
  let r = [];
380
380
  for (let c = 0; c < F.value; c += 1) {
381
- const u = w.value.map((L) => L.series[c] ?? 0).reduce((L, B) => L + B, 0);
382
- r.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((L) => (L.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
381
+ const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, B) => _ + B, 0);
382
+ r.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
383
383
  }
384
384
  const t = {
385
385
  th: {
@@ -397,14 +397,14 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
397
397
  return { head: a, body: r.slice(0, v.value.end - v.value.start), config: t, colNames: l };
398
398
  });
399
399
  function At(a, r) {
400
- if (we("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
400
+ if (ze("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
401
401
  S.value = S.value.filter((t) => t !== r.id);
402
402
  else {
403
403
  if (S.value.length === V.value.length - 1) return;
404
404
  S.value.push(r.id);
405
405
  }
406
406
  }
407
- const tt = z(() => V.value.map((a, r) => ({
407
+ const at = z(() => V.value.map((a, r) => ({
408
408
  ...a,
409
409
  shape: "square"
410
410
  })).map((a) => ({
@@ -420,7 +420,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
420
420
  paddingBottom: 12,
421
421
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
422
422
  })), de = p(!1);
423
- function Se() {
423
+ function $e() {
424
424
  de.value = !de.value;
425
425
  }
426
426
  function ye(a, r) {
@@ -431,46 +431,46 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
431
431
  color: l.color,
432
432
  id: l.id
433
433
  }));
434
- we("selectTimeLabel", {
434
+ ze("selectTimeLabel", {
435
435
  datapoint: t,
436
436
  absoluteIndex: a.absoluteIndex,
437
437
  label: a.text
438
438
  });
439
439
  }
440
- function at(a, r) {
440
+ function lt(a, r) {
441
441
  return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
442
442
  }
443
443
  return ft({
444
444
  getData: Pt,
445
- generatePdf: He,
446
- generateCsv: et,
447
- generateImage: Be,
448
- toggleTable: Ze,
449
- toggleLabels: Ke,
450
- toggleTooltip: Qe,
451
- toggleAnnotator: Se
445
+ generatePdf: Be,
446
+ generateCsv: tt,
447
+ generateImage: We,
448
+ toggleTable: Ke,
449
+ toggleLabels: Qe,
450
+ toggleTooltip: je,
451
+ toggleAnnotator: $e
452
452
  }), (a, r) => (o(), n("div", {
453
453
  id: `stackbar_${P.value}`,
454
454
  ref_key: "stackbarChart",
455
455
  ref: ee,
456
456
  class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
457
457
  style: G(`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%" : ""}`),
458
- onMouseenter: r[6] || (r[6] = () => g(Pe)(!0)),
459
- onMouseleave: r[7] || (r[7] = () => g(Pe)(!1))
458
+ onMouseenter: r[6] || (r[6] = () => y(Ae)(!0)),
459
+ onMouseleave: r[7] || (r[7] = () => y(Ae)(!1))
460
460
  }, [
461
- e.value.userOptions.buttons.annotator ? (o(), j(g(wt), {
461
+ e.value.userOptions.buttons.annotator ? (o(), j(y(wt), {
462
462
  key: 0,
463
- svgRef: g(Ve),
463
+ svgRef: y(Fe),
464
464
  backgroundColor: e.value.style.chart.backgroundColor,
465
465
  color: e.value.style.chart.color,
466
466
  active: de.value,
467
- onClose: Se
468
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
467
+ onClose: $e
468
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
469
469
  k(a.$slots, "userConfig", {}, void 0, !0),
470
470
  e.value.style.chart.title.text ? (o(), n("div", {
471
471
  key: 1,
472
472
  ref_key: "chartTitle",
473
- ref: Te,
473
+ ref: Ne,
474
474
  style: "width:100%;background:transparent;padding-bottom:24px"
475
475
  }, [
476
476
  se(ba, {
@@ -485,14 +485,14 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
485
485
  }
486
486
  }
487
487
  }, null, 8, ["config"])
488
- ], 512)) : y("", !0),
489
- e.value.userOptions.show && Z.value && (g(Ae) || g(Le)) ? (o(), j(g(Lt), {
488
+ ], 512)) : g("", !0),
489
+ e.value.userOptions.show && Z.value && (y(Ve) || y(Le)) ? (o(), j(y(_t), {
490
490
  ref: "details",
491
- key: `user_option_${Me.value}`,
491
+ key: `user_option_${Te.value}`,
492
492
  backgroundColor: e.value.style.chart.backgroundColor,
493
493
  color: e.value.style.chart.color,
494
- isPrinting: g(Ee),
495
- isImaging: g(De),
494
+ isPrinting: y(De),
495
+ isImaging: y(He),
496
496
  uid: P.value,
497
497
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
498
498
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -510,90 +510,90 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
510
510
  isAnnotation: de.value,
511
511
  callbacks: e.value.userOptions.callbacks,
512
512
  onToggleFullscreen: Rt,
513
- onGeneratePdf: g(He),
514
- onGenerateCsv: et,
515
- onGenerateImage: g(Be),
516
- onToggleTable: Ze,
517
- onToggleLabels: Ke,
518
- onToggleTooltip: Qe,
519
- onToggleAnnotator: Se,
513
+ onGeneratePdf: y(Be),
514
+ onGenerateCsv: tt,
515
+ onGenerateImage: y(We),
516
+ onToggleTable: Ke,
517
+ onToggleLabels: Qe,
518
+ onToggleTooltip: je,
519
+ onToggleAnnotator: $e,
520
520
  style: G({
521
- visibility: g(Ae) ? g(Le) ? "visible" : "hidden" : "visible"
521
+ visibility: y(Ve) ? y(Le) ? "visible" : "hidden" : "visible"
522
522
  })
523
- }, nt({ _: 2 }, [
523
+ }, ut({ _: 2 }, [
524
524
  a.$slots.menuIcon ? {
525
525
  name: "menuIcon",
526
- fn: _(({ isOpen: t, color: l }) => [
526
+ fn: L(({ isOpen: t, color: l }) => [
527
527
  k(a.$slots, "menuIcon", E(D({ isOpen: t, color: l })), void 0, !0)
528
528
  ]),
529
529
  key: "0"
530
530
  } : void 0,
531
531
  a.$slots.optionTooltip ? {
532
532
  name: "optionTooltip",
533
- fn: _(() => [
533
+ fn: L(() => [
534
534
  k(a.$slots, "optionTooltip", {}, void 0, !0)
535
535
  ]),
536
536
  key: "1"
537
537
  } : void 0,
538
538
  a.$slots.optionPdf ? {
539
539
  name: "optionPdf",
540
- fn: _(() => [
540
+ fn: L(() => [
541
541
  k(a.$slots, "optionPdf", {}, void 0, !0)
542
542
  ]),
543
543
  key: "2"
544
544
  } : void 0,
545
545
  a.$slots.optionCsv ? {
546
546
  name: "optionCsv",
547
- fn: _(() => [
547
+ fn: L(() => [
548
548
  k(a.$slots, "optionCsv", {}, void 0, !0)
549
549
  ]),
550
550
  key: "3"
551
551
  } : void 0,
552
552
  a.$slots.optionImg ? {
553
553
  name: "optionImg",
554
- fn: _(() => [
554
+ fn: L(() => [
555
555
  k(a.$slots, "optionImg", {}, void 0, !0)
556
556
  ]),
557
557
  key: "4"
558
558
  } : void 0,
559
559
  a.$slots.optionTable ? {
560
560
  name: "optionTable",
561
- fn: _(() => [
561
+ fn: L(() => [
562
562
  k(a.$slots, "optionTable", {}, void 0, !0)
563
563
  ]),
564
564
  key: "5"
565
565
  } : void 0,
566
566
  a.$slots.optionLabels ? {
567
567
  name: "optionLabels",
568
- fn: _(() => [
568
+ fn: L(() => [
569
569
  k(a.$slots, "optionLabels", {}, void 0, !0)
570
570
  ]),
571
571
  key: "6"
572
572
  } : void 0,
573
573
  a.$slots.optionFullscreen ? {
574
574
  name: "optionFullscreen",
575
- fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
575
+ fn: L(({ toggleFullscreen: t, isFullscreen: l }) => [
576
576
  k(a.$slots, "optionFullscreen", E(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
577
577
  ]),
578
578
  key: "7"
579
579
  } : void 0,
580
580
  a.$slots.optionAnnotator ? {
581
581
  name: "optionAnnotator",
582
- fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
582
+ fn: L(({ toggleAnnotator: t, isAnnotator: l }) => [
583
583
  k(a.$slots, "optionAnnotator", E(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
584
584
  ]),
585
585
  key: "8"
586
586
  } : void 0
587
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
587
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
588
588
  Z.value ? (o(), n("svg", {
589
589
  key: 3,
590
590
  ref_key: "svgRef",
591
- ref: Ve,
592
- xmlns: g(aa),
591
+ ref: Fe,
592
+ xmlns: y(aa),
593
593
  viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
594
594
  style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
595
595
  }, [
596
- se(g(kt)),
596
+ se(y(kt)),
597
597
  a.$slots["chart-background"] ? (o(), n("foreignObject", {
598
598
  key: 0,
599
599
  x: s.value.left,
@@ -605,7 +605,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
605
605
  }
606
606
  }, [
607
607
  k(a.$slots, "chart-background", {}, void 0, !0)
608
- ], 8, wa)) : y("", !0),
608
+ ], 8, wa)) : g("", !0),
609
609
  e.value.style.chart.bars.gradient.show ? (o(), n("defs", za, [
610
610
  (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("linearGradient", {
611
611
  id: `gradient_${t.id}`,
@@ -617,17 +617,17 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
617
617
  J("stop", {
618
618
  offset: "0%",
619
619
  "stop-color": t.color
620
- }, null, 8, La),
620
+ }, null, 8, _a),
621
621
  J("stop", {
622
622
  offset: "61.8%",
623
- "stop-color": g(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
624
- }, null, 8, _a),
623
+ "stop-color": y(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
624
+ }, null, 8, La),
625
625
  J("stop", {
626
626
  offset: "100%",
627
627
  "stop-color": t.color
628
628
  }, null, 8, Sa)
629
629
  ], 8, Ca))), 256))
630
- ])) : y("", !0),
630
+ ])) : g("", !0),
631
631
  e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 2 }, b(O.value, (t, l) => (o(), n("line", {
632
632
  x1: s.value.left,
633
633
  x2: s.value.right,
@@ -636,7 +636,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
636
636
  stroke: e.value.style.chart.grid.x.axisColor,
637
637
  "stroke-width": 1,
638
638
  "stroke-linecap": "round"
639
- }, null, 8, $a))), 256)) : y("", !0),
639
+ }, null, 8, $a))), 256)) : g("", !0),
640
640
  e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 3 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
641
641
  x1: s.value.left,
642
642
  x2: s.value.right,
@@ -645,7 +645,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
645
645
  stroke: e.value.style.chart.grid.y.axisColor,
646
646
  "stroke-width": 1,
647
647
  "stroke-linecap": "round"
648
- }, null, 8, Ma))), 256)) : y("", !0),
648
+ }, null, 8, Ma))), 256)) : g("", !0),
649
649
  e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 4 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
650
650
  x1: s.value.left + d.value * l,
651
651
  x2: s.value.left + d.value * l,
@@ -654,7 +654,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
654
654
  stroke: e.value.style.chart.grid.y.axisColor,
655
655
  "stroke-width": 1,
656
656
  "stroke-linecap": "round"
657
- }, null, 8, Ta))), 256)) : y("", !0),
657
+ }, null, 8, Ta))), 256)) : g("", !0),
658
658
  e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 5 }, b(O.value, (t, l) => (o(), n("line", {
659
659
  x1: t.horizontal_x,
660
660
  x2: t.horizontal_x,
@@ -663,11 +663,11 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
663
663
  stroke: e.value.style.chart.grid.x.axisColor,
664
664
  "stroke-width": 1,
665
665
  "stroke-linecap": "round"
666
- }, null, 8, Na))), 256)) : y("", !0),
666
+ }, null, 8, Na))), 256)) : g("", !0),
667
667
  (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
668
668
  a.$slots.pattern ? (o(), n("defs", Ia, [
669
- k(a.$slots, "pattern", $e({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
670
- ])) : y("", !0),
669
+ k(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
670
+ ])) : g("", !0),
671
671
  e.value.orientation === "vertical" ? (o(), n(h, { key: 1 }, [
672
672
  (o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
673
673
  x: c,
@@ -696,12 +696,12 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
696
696
  "stroke-linejoin": "round",
697
697
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
698
698
  }, null, 10, Pa))), 256))
699
- ])) : y("", !0)
699
+ ])) : g("", !0)
700
700
  ], 64)) : (o(), n(h, { key: 2 }, [
701
701
  (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
702
- x: g(xe)(c, s.value.left),
702
+ x: y(xe)(c, s.value.left),
703
703
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
704
- width: g(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
704
+ width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
705
705
  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,
706
706
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
707
707
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -713,9 +713,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
713
713
  }, null, 10, Aa))), 256)),
714
714
  a.$slots.pattern ? (o(), n("g", Va, [
715
715
  (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
716
- x: g(xe)(c, s.value.left),
716
+ x: y(xe)(c, s.value.left),
717
717
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
718
- width: g(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
718
+ width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
719
719
  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,
720
720
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
721
721
  fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
@@ -725,7 +725,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
725
725
  "stroke-linejoin": "round",
726
726
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
727
727
  }, null, 10, Fa))), 256))
728
- ])) : y("", !0)
728
+ ])) : g("", !0)
729
729
  ], 64))
730
730
  ]))), 256)),
731
731
  e.value.style.chart.grid.x.showAxis ? (o(), n("line", {
@@ -738,7 +738,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
738
738
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
739
739
  "stroke-linecap": "round",
740
740
  "stroke-linejoin": "round"
741
- }, null, 8, Ea)) : y("", !0),
741
+ }, null, 8, Ea)) : g("", !0),
742
742
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), n("line", {
743
743
  key: 7,
744
744
  x1: s.value.left,
@@ -749,7 +749,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
749
749
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
750
750
  "stroke-linecap": "round",
751
751
  "stroke-linejoin": "round"
752
- }, null, 8, Da)) : y("", !0),
752
+ }, null, 8, Da)) : g("", !0),
753
753
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), n("text", {
754
754
  key: 8,
755
755
  x: s.value.left + s.value.width / 2,
@@ -758,7 +758,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
758
758
  fill: e.value.style.chart.grid.x.axisName.color,
759
759
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
760
760
  "text-anchor": "middle"
761
- }, T(e.value.style.chart.grid.x.axisName.text), 9, Ha)) : y("", !0),
761
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Ha)) : g("", !0),
762
762
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), n("text", {
763
763
  key: 9,
764
764
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
@@ -766,23 +766,23 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
766
766
  fill: e.value.style.chart.grid.y.axisName.color,
767
767
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
768
768
  "text-anchor": "middle"
769
- }, T(e.value.style.chart.grid.y.axisName.text), 9, Ba)) : y("", !0),
769
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ba)) : g("", !0),
770
770
  C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 10 }, [
771
771
  (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
772
772
  (o(!0), n(h, null, b(t.x, (c, u) => (o(), n(h, null, [
773
- at(t.series[u], t.proportions[u]) ? (o(), n("text", {
773
+ lt(t.series[u], t.proportions[u]) ? (o(), n("text", {
774
774
  key: 0,
775
775
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
776
776
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
777
777
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
778
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
778
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
779
779
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
780
780
  "text-anchor": "middle"
781
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ge(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Wa)) : y("", !0)
781
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Wa)) : g("", !0)
782
782
  ], 64))), 256))
783
783
  ]))), 256)),
784
784
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ya, [
785
- (o(!0), n(h, null, b(Xe.value, (t, l) => (o(), n(h, null, [
785
+ (o(!0), n(h, null, b(Ge.value, (t, l) => (o(), n(h, null, [
786
786
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
787
787
  key: 0,
788
788
  x: s.value.left + d.value * l + d.value / 2,
@@ -791,26 +791,26 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
791
791
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
792
792
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
793
793
  fill: e.value.style.chart.bars.totalValues.color
794
- }, T(ve(t.value, t, l, t.sign)), 9, Ua)) : y("", !0)
794
+ }, T(ve(t.value, t, l, t.sign)), 9, Ua)) : g("", !0)
795
795
  ], 64))), 256))
796
- ])) : y("", !0)
797
- ], 64)) : y("", !0),
796
+ ])) : g("", !0)
797
+ ], 64)) : g("", !0),
798
798
  C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 11 }, [
799
799
  (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
800
800
  (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n(h, null, [
801
- at(t.series[u], t.proportions[u]) ? (o(), n("text", {
801
+ lt(t.series[u], t.proportions[u]) ? (o(), n("text", {
802
802
  key: 0,
803
803
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
804
804
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
805
805
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
806
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(t.color) : e.value.style.chart.bars.dataLabels.color,
806
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
807
807
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
808
808
  "text-anchor": "middle"
809
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ge(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : y("", !0)
809
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : g("", !0)
810
810
  ], 64))), 256))
811
811
  ]))), 256)),
812
812
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ga, [
813
- (o(!0), n(h, null, b(Xe.value, (t, l) => (o(), n(h, null, [
813
+ (o(!0), n(h, null, b(Ge.value, (t, l) => (o(), n(h, null, [
814
814
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
815
815
  key: 0,
816
816
  x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
@@ -819,10 +819,10 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
819
819
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
820
820
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
821
821
  fill: e.value.style.chart.bars.totalValues.color
822
- }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : y("", !0)
822
+ }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
823
823
  ], 64))), 256))
824
- ])) : y("", !0)
825
- ], 64)) : y("", !0),
824
+ ])) : g("", !0)
825
+ ], 64)) : g("", !0),
826
826
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), n(h, { key: 12 }, [
827
827
  (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
828
828
  x1: s.value.left,
@@ -839,13 +839,18 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
839
839
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
840
840
  fill: e.value.style.chart.grid.y.axisLabels.color,
841
841
  "text-anchor": "end"
842
- }, T(g(q)({
843
- p: e.value.style.chart.bars.dataLabels.prefix,
844
- v: t.value,
845
- s: e.value.style.chart.bars.dataLabels.suffix,
846
- r: e.value.style.chart.grid.y.axisLabels.rounding
847
- })), 9, Za))), 256))
848
- ], 64)) : y("", !0),
842
+ }, T(y(ke)(
843
+ e.value.style.chart.grid.y.axisLabels.formatter,
844
+ t.value,
845
+ y(q)({
846
+ p: e.value.style.chart.bars.dataLabels.prefix,
847
+ v: t.value,
848
+ s: e.value.style.chart.bars.dataLabels.suffix,
849
+ r: e.value.style.chart.grid.y.axisLabels.rounding
850
+ }),
851
+ { datapoint: t }
852
+ )), 9, Za))), 256))
853
+ ], 64)) : g("", !0),
849
854
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), n(h, { key: 13 }, [
850
855
  (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
851
856
  x1: t.horizontal_x,
@@ -862,17 +867,22 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
862
867
  fill: e.value.style.chart.grid.y.axisLabels.color,
863
868
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
864
869
  transform: `translate(${t.horizontal_x}, ${s.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})`
865
- }, T(g(q)({
866
- p: e.value.style.chart.bars.dataLabels.prefix,
867
- v: t.value,
868
- s: e.value.style.chart.bars.dataLabels.suffix,
869
- r: e.value.style.chart.grid.y.axisLabels.rounding
870
- })), 9, Qa))), 256))
871
- ], 64)) : y("", !0),
870
+ }, T(y(ke)(
871
+ e.value.style.chart.grid.y.axisLabels.formatter,
872
+ t.value,
873
+ y(q)({
874
+ p: e.value.style.chart.bars.dataLabels.prefix,
875
+ v: t.value,
876
+ s: e.value.style.chart.bars.dataLabels.suffix,
877
+ r: e.value.style.chart.grid.y.axisLabels.rounding
878
+ }),
879
+ { datapoint: t }
880
+ )), 9, Qa))), 256))
881
+ ], 64)) : g("", !0),
872
882
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 14 }, [
873
883
  a.$slots["time-label"] ? (o(), n("g", ja, [
874
884
  (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
875
- k(a.$slots, "time-label", $e({ ref_for: !0 }, {
885
+ k(a.$slots, "time-label", Me({ ref_for: !0 }, {
876
886
  x: s.value.left + d.value * l + d.value / 2,
877
887
  y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
878
888
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -900,7 +910,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
900
910
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
901
911
  `,
902
912
  style: { cursor: "pointer" },
903
- innerHTML: g(ra)({
913
+ innerHTML: y(ra)({
904
914
  content: String(t.text),
905
915
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
906
916
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -920,11 +930,11 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
920
930
  }, T(t.text), 9, tl))
921
931
  ]))), 256))
922
932
  ]))
923
- ], 64)) : y("", !0),
933
+ ], 64)) : g("", !0),
924
934
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 15 }, [
925
935
  a.$slots["time-label"] ? (o(), n("g", ll, [
926
936
  (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
927
- k(a.$slots, "time-label", $e({ ref_for: !0 }, {
937
+ k(a.$slots, "time-label", Me({ ref_for: !0 }, {
928
938
  x: s.value.left - 8,
929
939
  y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
930
940
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -949,7 +959,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
949
959
  y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
950
960
  style: { cursor: "pointer" },
951
961
  onClick: () => ye(t, l),
952
- innerHTML: g(oa)({
962
+ innerHTML: y(oa)({
953
963
  content: String(t.text),
954
964
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
955
965
  fill: e.value.style.chart.grid.y.axisLabels.color,
@@ -971,39 +981,39 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
971
981
  }, T(t.text), 9, ol))
972
982
  ]))), 256))
973
983
  ]))
974
- ], 64)) : y("", !0),
984
+ ], 64)) : g("", !0),
975
985
  C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 16 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
976
986
  x: s.value.left + l * d.value,
977
987
  y: s.value.top,
978
988
  width: d.value,
979
989
  height: s.value.height < 0 ? 0 : s.value.height,
980
- onClick: (c) => Je(l),
981
- onMouseenter: (c) => qe(l),
990
+ onClick: (c) => qe(l),
991
+ onMouseenter: (c) => Ze(l),
982
992
  onMouseleave: r[0] || (r[0] = (c) => {
983
993
  te.value = null, ie.value = !1;
984
994
  }),
985
995
  fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
986
996
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
987
- }, null, 44, il))), 256)) : y("", !0),
997
+ }, null, 44, il))), 256)) : g("", !0),
988
998
  C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 17 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
989
999
  x: s.value.left,
990
1000
  y: s.value.top + l * d.value,
991
1001
  width: s.value.width < 0 ? 0 : s.value.width,
992
1002
  height: d.value,
993
- onClick: (c) => Je(l),
994
- onMouseenter: (c) => qe(l),
1003
+ onClick: (c) => qe(l),
1004
+ onMouseenter: (c) => Ze(l),
995
1005
  onMouseleave: r[1] || (r[1] = (c) => {
996
1006
  te.value = null, ie.value = !1;
997
1007
  }),
998
1008
  fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
999
1009
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1000
- }, null, 44, nl))), 256)) : y("", !0),
1010
+ }, null, 44, nl))), 256)) : g("", !0),
1001
1011
  k(a.$slots, "svg", E(D({ ...s.value })), void 0, !0)
1002
- ], 12, ka)) : y("", !0),
1012
+ ], 12, ka)) : g("", !0),
1003
1013
  a.$slots.watermark ? (o(), n("div", ul, [
1004
- k(a.$slots, "watermark", E(D({ isPrinting: g(Ee) || g(De) })), void 0, !0)
1005
- ])) : y("", !0),
1006
- Z.value ? y("", !0) : (o(), j(g(zt), {
1014
+ k(a.$slots, "watermark", E(D({ isPrinting: y(De) || y(He) })), void 0, !0)
1015
+ ])) : g("", !0),
1016
+ Z.value ? g("", !0) : (o(), j(y(zt), {
1007
1017
  key: 5,
1008
1018
  config: {
1009
1019
  type: "bar",
@@ -1020,14 +1030,14 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1020
1030
  }, null, 8, ["config"])),
1021
1031
  J("div", {
1022
1032
  ref_key: "chartSlicer",
1023
- ref: Ie,
1033
+ ref: Oe,
1024
1034
  style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1025
1035
  "data-dom-to-png-ignore": ""
1026
1036
  }, [
1027
1037
  e.value.style.chart.zoom.show && F.value > 1 ? (o(), j(ga, {
1028
1038
  ref_key: "slicerComponent",
1029
1039
  ref: K,
1030
- key: `slicer_${Re.value}`,
1040
+ key: `slicer_${Pe.value}`,
1031
1041
  background: e.value.style.chart.zoom.color,
1032
1042
  borderColor: e.value.style.chart.backgroundColor,
1033
1043
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -1037,7 +1047,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1037
1047
  textColor: e.value.style.chart.color,
1038
1048
  inputColor: e.value.style.chart.zoom.color,
1039
1049
  selectColor: e.value.style.chart.zoom.highlightColor,
1040
- max: Math.max(...ke.dataset.map((t) => t.series.length)),
1050
+ max: Math.max(...we.dataset.map((t) => t.series.length)),
1041
1051
  min: 0,
1042
1052
  valueStart: v.value.start,
1043
1053
  valueEnd: v.value.end,
@@ -1046,18 +1056,18 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1046
1056
  end: v.value.end,
1047
1057
  "onUpdate:end": r[3] || (r[3] = (t) => v.value.end = t),
1048
1058
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1049
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...ke.dataset.map((t) => t.series.length)),
1059
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
1050
1060
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1051
1061
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1052
- onReset: Ye
1062
+ onReset: Ue
1053
1063
  }, {
1054
- "reset-action": _(({ reset: t }) => [
1064
+ "reset-action": L(({ reset: t }) => [
1055
1065
  k(a.$slots, "reset-action", E(D({ reset: t })), void 0, !0)
1056
1066
  ]),
1057
1067
  _: 3
1058
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1068
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
1059
1069
  ], 4),
1060
- se(g(Ct), {
1070
+ se(y(Ct), {
1061
1071
  show: C.value.showTooltip && ie.value,
1062
1072
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1063
1073
  color: e.value.style.chart.tooltip.color,
@@ -1069,29 +1079,29 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1069
1079
  position: e.value.style.chart.tooltip.position,
1070
1080
  offsetY: e.value.style.chart.tooltip.offsetY,
1071
1081
  parent: ee.value,
1072
- content: Ce.value,
1082
+ content: _e.value,
1073
1083
  isFullscreen: ne.value,
1074
- isCustom: g(yt)(e.value.style.chart.tooltip.customFormat)
1084
+ isCustom: y(gt)(e.value.style.chart.tooltip.customFormat)
1075
1085
  }, {
1076
- "tooltip-before": _(() => [
1077
- k(a.$slots, "tooltip-before", E(D({ ...ze.value })), void 0, !0)
1086
+ "tooltip-before": L(() => [
1087
+ k(a.$slots, "tooltip-before", E(D({ ...Ce.value })), void 0, !0)
1078
1088
  ]),
1079
- "tooltip-after": _(() => [
1080
- k(a.$slots, "tooltip-after", E(D({ ...ze.value })), void 0, !0)
1089
+ "tooltip-after": L(() => [
1090
+ k(a.$slots, "tooltip-after", E(D({ ...Ce.value })), void 0, !0)
1081
1091
  ]),
1082
1092
  _: 3
1083
1093
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1084
1094
  J("div", {
1085
1095
  ref_key: "chartLegend",
1086
- ref: Ne
1096
+ ref: Ie
1087
1097
  }, [
1088
1098
  e.value.style.chart.legend.show && Z.value ? (o(), j(ya, {
1089
1099
  key: 0,
1090
- legendSet: tt.value,
1100
+ legendSet: at.value,
1091
1101
  config: Vt.value,
1092
1102
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1093
- }, nt({
1094
- item: _(({ legend: t }) => [
1103
+ }, ut({
1104
+ item: L(({ legend: t }) => [
1095
1105
  J("div", {
1096
1106
  onClick: (l) => t.segregate(),
1097
1107
  style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
@@ -1101,7 +1111,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1101
1111
  }, [
1102
1112
  a.$slots.pattern ? {
1103
1113
  name: "legend-pattern",
1104
- fn: _(({ legend: t, index: l }) => [
1114
+ fn: L(({ legend: t, index: l }) => [
1105
1115
  se(fa, {
1106
1116
  shape: t.shape,
1107
1117
  radius: 30,
@@ -1114,18 +1124,18 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1114
1124
  } : void 0
1115
1125
  ]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
1116
1126
  key: 1,
1117
- legend: tt.value
1127
+ legend: at.value
1118
1128
  }, void 0, !0)
1119
1129
  ], 512),
1120
1130
  a.$slots.source ? (o(), n("div", {
1121
1131
  key: 6,
1122
1132
  ref_key: "source",
1123
- ref: Oe,
1133
+ ref: Re,
1124
1134
  dir: "auto"
1125
1135
  }, [
1126
1136
  k(a.$slots, "source", {}, void 0, !0)
1127
- ], 512)) : y("", !0),
1128
- v.value.end - v.value.start < 200 ? (o(), j(g(pt), {
1137
+ ], 512)) : g("", !0),
1138
+ v.value.end - v.value.start < 200 ? (o(), j(y(pt), {
1129
1139
  key: 7,
1130
1140
  hideDetails: "",
1131
1141
  config: {
@@ -1141,8 +1151,8 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1141
1151
  }
1142
1152
  }
1143
1153
  }, {
1144
- content: _(() => [
1145
- se(g(xt), {
1154
+ content: L(() => [
1155
+ se(y(xt), {
1146
1156
  colNames: he.value.colNames,
1147
1157
  head: he.value.head,
1148
1158
  body: he.value.body,
@@ -1150,11 +1160,11 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1150
1160
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1151
1161
  onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
1152
1162
  }, {
1153
- th: _(({ th: t }) => [
1163
+ th: L(({ th: t }) => [
1154
1164
  J("div", { innerHTML: t }, null, 8, vl)
1155
1165
  ]),
1156
- td: _(({ td: t }) => [
1157
- Jt(T(isNaN(Number(t)) ? t : g(q)({
1166
+ td: L(({ td: t }) => [
1167
+ Jt(T(isNaN(Number(t)) ? t : y(q)({
1158
1168
  p: e.value.style.chart.bars.dataLabels.prefix,
1159
1169
  v: t,
1160
1170
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1165,10 +1175,10 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1165
1175
  }, 8, ["colNames", "head", "body", "config", "title"])
1166
1176
  ]),
1167
1177
  _: 1
1168
- }, 8, ["config"])) : y("", !0)
1178
+ }, 8, ["config"])) : g("", !0)
1169
1179
  ], 46, xa));
1170
1180
  }
1171
- }, _l = /* @__PURE__ */ pa(hl, [["__scopeId", "data-v-f4c2410e"]]);
1181
+ }, Ll = /* @__PURE__ */ pa(hl, [["__scopeId", "data-v-ef86a71b"]]);
1172
1182
  export {
1173
- _l as default
1183
+ Ll as default
1174
1184
  };