vue-data-ui 2.14.2 → 2.14.3-beta.1

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 (88) hide show
  1. package/README.md +17 -0
  2. package/dist/{Arrow-DNJvKMao.js → Arrow-CHiKXhrZ.js} +1 -1
  3. package/dist/{BaseDraggableDialog-XPll8ONG.js → BaseDraggableDialog-C_zNQi8p.js} +2 -2
  4. package/dist/{BaseIcon-D0Q4E4nY.js → BaseIcon-CjLVVFOF.js} +1 -1
  5. package/dist/{ColorPicker-CQl1kba_.js → ColorPicker-4qYqEUzw.js} +2 -2
  6. package/dist/{DataTable-DzCoab4C.js → DataTable-CQHjdD9t.js} +2 -2
  7. package/dist/{Legend-DLJ9I-cg.js → Legend-XakQeDJw.js} +4 -4
  8. package/dist/{NonSvgPenAndPaper-B0-XpttN.js → NonSvgPenAndPaper-BVSNCCsg.js} +3 -3
  9. package/dist/{PackageVersion-DrhYhyQR.js → PackageVersion-mH9eFSdi.js} +2 -2
  10. package/dist/{PenAndPaper-BdnVqpO9.js → PenAndPaper-C49A3fVl.js} +3 -3
  11. package/dist/{Shape-DdpwkHh8.js → Shape-D_nY-zV8.js} +1 -1
  12. package/dist/{Slicer-B6mk6VRe.js → Slicer-DAuA0E6E.js} +14 -14
  13. package/dist/{SparkTooltip-DvS7F_gk.js → SparkTooltip-BRAWFiKX.js} +1 -1
  14. package/dist/{Title-xtSGHclp.js → Title-Be-4IBib.js} +1 -1
  15. package/dist/{Tooltip-D8swCIay.js → Tooltip-B4lRAXc3.js} +1 -1
  16. package/dist/{UserOptions-BbJkNcCM.js → UserOptions-CZOjPjId.js} +2 -2
  17. package/dist/{dom-to-png-DrB0WHa5.js → dom-to-png-O95d2xYz.js} +1 -1
  18. package/dist/{img-CtqhCOnQ.js → img-B5QfWbFM.js} +1 -1
  19. package/dist/{index-DBYSSUsg.js → index-DpgjO9No.js} +409 -394
  20. package/dist/{pdf-Cq3bf6D0.js → pdf-C86OOuya.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-Cu77c3W4.js → useNestedProp-BS0-lsm3.js} +1 -1
  23. package/dist/{usePrinter-xF9W73YL.js → usePrinter-EqGRLYQ_.js} +2 -2
  24. package/dist/{vue-data-ui-BhsGEgCE.js → vue-data-ui-CkGWUdE5.js} +63 -63
  25. package/dist/vue-data-ui.js +21 -21
  26. package/dist/{vue-ui-3d-bar-BiehKQpG.js → vue-ui-3d-bar-BMy6RIsR.js} +5 -5
  27. package/dist/{vue-ui-accordion-CEZHj_of.js → vue-ui-accordion-B7SuIgFc.js} +3 -3
  28. package/dist/{vue-ui-age-pyramid-CV3X9UIL.js → vue-ui-age-pyramid-DWAc3Ofk.js} +5 -5
  29. package/dist/{vue-ui-annotator-C0tRqId7.js → vue-ui-annotator-BjW1IoFR.js} +2 -2
  30. package/dist/{vue-ui-bullet-Dnzzp7eQ.js → vue-ui-bullet-DfpzNl51.js} +6 -6
  31. package/dist/{vue-ui-candlestick-HP8z-e20.js → vue-ui-candlestick-BhWpJIxD.js} +6 -6
  32. package/dist/{vue-ui-carousel-table-CIytKGfB.js → vue-ui-carousel-table-DMSlJoWw.js} +4 -4
  33. package/dist/{vue-ui-chestnut-jJ5DocEt.js → vue-ui-chestnut-Dby5X8Oy.js} +4 -4
  34. package/dist/{vue-ui-chord-C2p48bdc.js → vue-ui-chord-BBjEiNoo.js} +7 -7
  35. package/dist/{vue-ui-circle-pack-Cm42Kre2.js → vue-ui-circle-pack-QR1HniAL.js} +5 -5
  36. package/dist/{vue-ui-cursor-DYOAowBf.js → vue-ui-cursor-D9HDDbAr.js} +2 -2
  37. package/dist/{vue-ui-dashboard-CqQ_erdb.js → vue-ui-dashboard-DMgkrLHs.js} +62 -62
  38. package/dist/{vue-ui-digits-Ckblhu11.js → vue-ui-digits-AxsWsoNG.js} +2 -2
  39. package/dist/{vue-ui-donut-6ioyEN3H.js → vue-ui-donut-B3cs-HjU.js} +111 -111
  40. package/dist/{vue-ui-donut-evolution-DcpDJ9Nx.js → vue-ui-donut-evolution-piOrh5of.js} +295 -279
  41. package/dist/{vue-ui-dumbbell-Bs6C9JZw.js → vue-ui-dumbbell-C_amhKRH.js} +6 -6
  42. package/dist/{vue-ui-flow-2PtX-g_5.js → vue-ui-flow-kgzJDBYW.js} +26 -26
  43. package/dist/{vue-ui-funnel-DnjXDXiD.js → vue-ui-funnel-D582UlDY.js} +5 -5
  44. package/dist/{vue-ui-galaxy-C15I7QgX.js → vue-ui-galaxy-BCPNqux7.js} +4 -4
  45. package/dist/{vue-ui-gauge-C4ukJ9LH.js → vue-ui-gauge-6YFYdXxG.js} +5 -5
  46. package/dist/{vue-ui-gizmo-CV03sWPz.js → vue-ui-gizmo-PN0sgIDN.js} +3 -3
  47. package/dist/{vue-ui-heatmap-C-9U8urH.js → vue-ui-heatmap-bWGrfPpu.js} +6 -6
  48. package/dist/{vue-ui-history-plot-CctIOnX8.js → vue-ui-history-plot-CNxerxJF.js} +234 -210
  49. package/dist/{vue-ui-kpi-D8DQ02cm.js → vue-ui-kpi-BXiiCP9f.js} +3 -3
  50. package/dist/{vue-ui-mini-loader-DpwNHrxl.js → vue-ui-mini-loader-LXae2ars.js} +2 -2
  51. package/dist/{vue-ui-molecule-je8BUEgl.js → vue-ui-molecule-B2dzn9rQ.js} +16 -16
  52. package/dist/{vue-ui-mood-radar-DUwpDrKf.js → vue-ui-mood-radar-DIJJhVIZ.js} +19 -19
  53. package/dist/{vue-ui-nested-donuts-CcIiH5y3.js → vue-ui-nested-donuts-4lqDDJmG.js} +46 -46
  54. package/dist/{vue-ui-onion-B3ciM-zx.js → vue-ui-onion-BIgfyn7z.js} +6 -6
  55. package/dist/{vue-ui-parallel-coordinate-plot-C4jC8sCn.js → vue-ui-parallel-coordinate-plot-COW7u6EQ.js} +192 -175
  56. package/dist/{vue-ui-quadrant--xMPLV7W.js → vue-ui-quadrant-B3HOf0aF.js} +243 -225
  57. package/dist/{vue-ui-quick-chart-Bce5gdOB.js → vue-ui-quick-chart-Cg7pNkb3.js} +459 -443
  58. package/dist/{vue-ui-radar-Bs4DRm4L.js → vue-ui-radar-DY7BOmEO.js} +45 -45
  59. package/dist/{vue-ui-rating-BjP1BHbM.js → vue-ui-rating-C8ubvpA2.js} +8 -8
  60. package/dist/{vue-ui-relation-circle-D9P-zdmr.js → vue-ui-relation-circle-BSUJrp9v.js} +5 -5
  61. package/dist/{vue-ui-ridgeline-DmNbKyms.js → vue-ui-ridgeline-CNNfP0Gl.js} +185 -165
  62. package/dist/{vue-ui-rings-BebupVaJ.js → vue-ui-rings-C0iQMvwp.js} +7 -7
  63. package/dist/{vue-ui-scatter-cQ-Eu6ff.js → vue-ui-scatter-BaXESoFU.js} +49 -49
  64. package/dist/{vue-ui-skeleton-BJy7bURO.js → vue-ui-skeleton-C-ca3jum.js} +3 -3
  65. package/dist/{vue-ui-smiley-D5QHdm68.js → vue-ui-smiley-BPSnI-sv.js} +2 -2
  66. package/dist/{vue-ui-spark-trend-CP5l6hCt.js → vue-ui-spark-trend-C2p4SwT6.js} +3 -3
  67. package/dist/{vue-ui-sparkbar-CW95uw6O.js → vue-ui-sparkbar-C_Z7se8R.js} +3 -3
  68. package/dist/{vue-ui-sparkgauge-a4VbU8l_.js → vue-ui-sparkgauge-BNQP-wru.js} +8 -8
  69. package/dist/{vue-ui-sparkhistogram-Bu2URfSJ.js → vue-ui-sparkhistogram-S7ZqAbMr.js} +4 -4
  70. package/dist/{vue-ui-sparkline-TItbUk-X.js → vue-ui-sparkline-BOUcxjBn.js} +11 -11
  71. package/dist/{vue-ui-sparkstackbar-B7hTZ5lP.js → vue-ui-sparkstackbar-Bcz6Tg5h.js} +3 -3
  72. package/dist/{vue-ui-stackbar-Dsdwa6lC.js → vue-ui-stackbar-BwY3L4k_.js} +417 -373
  73. package/dist/{vue-ui-strip-plot-8t8ozRzt.js → vue-ui-strip-plot-BQKMvJ_f.js} +202 -184
  74. package/dist/{vue-ui-table-CFn0ptr3.js → vue-ui-table-BMFeG4Ll.js} +3 -3
  75. package/dist/{vue-ui-table-heatmap-By7Epu_x.js → vue-ui-table-heatmap-BMcm8nz5.js} +18 -18
  76. package/dist/{vue-ui-table-sparkline-CXqoNu29.js → vue-ui-table-sparkline-DvbV5c0E.js} +4 -4
  77. package/dist/{vue-ui-thermometer-XTsctSeT.js → vue-ui-thermometer-DaUJKwlB.js} +5 -5
  78. package/dist/{vue-ui-timer-LsMK3baq.js → vue-ui-timer-2lttGgfU.js} +5 -5
  79. package/dist/{vue-ui-tiremarks-Dmqxy_za.js → vue-ui-tiremarks-Br-K5C0A.js} +5 -5
  80. package/dist/{vue-ui-treemap-CBK79HgE.js → vue-ui-treemap-BMcITB4q.js} +7 -7
  81. package/dist/{vue-ui-vertical-bar-s0W_ZvXa.js → vue-ui-vertical-bar-DyHNX6fM.js} +8 -8
  82. package/dist/{vue-ui-waffle-DYSvsk-v.js → vue-ui-waffle-D2O27EVK.js} +246 -242
  83. package/dist/{vue-ui-wheel-ffWrYzpO.js → vue-ui-wheel-BJ11Yo4p.js} +5 -5
  84. package/dist/{vue-ui-word-cloud-DMtRVU6x.js → vue-ui-word-cloud-DoiCiPEX.js} +15 -15
  85. package/dist/{vue-ui-world-DPT1WnyR.js → vue-ui-world-DnATnNkX.js} +5 -5
  86. package/dist/{vue-ui-xy-BhuRQnpn.js → vue-ui-xy-DRE6d6PA.js} +591 -570
  87. package/dist/{vue-ui-xy-canvas-BaqwCoBL.js → vue-ui-xy-canvas-CB8YSoKV.js} +7 -7
  88. package/package.json +1 -1
@@ -1,20 +1,20 @@
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 ge, createElementBlock as s, openBlock as o, unref as g, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as d, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as nt, withCtx as L, normalizeProps as F, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as Se, toDisplayString as T, createTextVNode as Jt } from "vue";
2
- import { u as qt, c as ut, t as Zt, p as be, a as Kt, C as fe, b as Qt, o as jt, e as ct, g as ea, d as ta, ak as me, ah as vt, D as ht, X as aa, l as la, a6 as pe, G as dt, f as q, x as yt, q as ra, r as oa, i as gt, y as sa } from "./index-DBYSSUsg.js";
3
- import { u as bt } from "./useNestedProp-Cu77c3W4.js";
4
- import { t as ia, u as na } from "./useResponsive-JZ9xq-JV.js";
5
- import { u as ua } from "./usePrinter-xF9W73YL.js";
6
- import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as va } from "./useChartAccessibility-9icAAmYg.js";
8
- import ha from "./Legend-DLJ9I-cg.js";
9
- import { S as da } from "./Slicer-B6mk6VRe.js";
10
- import ya from "./Title-xtSGHclp.js";
11
- import { _ as ga } from "./Shape-DdpwkHh8.js";
12
- import { u as ba } from "./useTimeLabels-Mrr0jrpL.js";
13
- import { _ as fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"], ka = { key: 1 }, wa = ["id"], za = ["stop-color"], Ca = ["stop-color"], _a = ["stop-color"], La = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x1", "x2", "y1", "y2", "stroke"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = { key: 0 }, Na = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Pa = { key: 0 }, Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = ["transform", "font-size", "fill", "font-weight"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Wa = { key: 0 }, Ba = ["x", "y", "font-size", "font-weight", "fill"], Ua = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Xa = ["x", "y", "font-size", "font-weight", "fill"], Ga = ["x1", "x2", "y1", "y2", "stroke"], Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ka = { key: 0 }, Qa = { key: 1 }, ja = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], el = { key: 0 }, tl = { key: 1 }, al = ["font-size", "font-weight", "fill", "x", "y", "onClick"], ll = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], rl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ol = {
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-DpgjO9No.js";
3
+ import { u as bt } from "./useNestedProp-BS0-lsm3.js";
4
+ import { t as ua, u as ca } from "./useResponsive-JZ9xq-JV.js";
5
+ import { u as va } from "./usePrinter-EqGRLYQ_.js";
6
+ import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as da } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ya from "./Legend-XakQeDJw.js";
9
+ import { S as ga } from "./Slicer-DAuA0E6E.js";
10
+ import ba from "./Title-Be-4IBib.js";
11
+ import { _ as fa } from "./Shape-D_nY-zV8.js";
12
+ import { u as ma } from "./useTimeLabels-Mrr0jrpL.js";
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 = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, sl = ["onClick"], il = ["innerHTML"], nl = {
17
+ }, cl = ["onClick"], vl = ["innerHTML"], hl = {
18
18
  __name: "vue-ui-stackbar",
19
19
  props: {
20
20
  config: {
@@ -31,26 +31,26 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
34
- setup(xe, { expose: ft, emit: mt }) {
35
- const pt = X(() => import("./vue-ui-accordion-CEZHj_of.js")), xt = X(() => import("./DataTable-DzCoab4C.js")), kt = X(() => import("./PackageVersion-DrhYhyQR.js")), wt = X(() => import("./PenAndPaper-BdnVqpO9.js")), zt = X(() => import("./vue-ui-skeleton-BJy7bURO.js")), Ct = X(() => import("./Tooltip-D8swCIay.js")), _t = X(() => import("./UserOptions-BbJkNcCM.js")), { vue_ui_stackbar: Lt } = qt(), St = Xt(), f = xe, ke = mt, Z = z({
34
+ setup(ke, { expose: ft, emit: mt }) {
35
+ const pt = X(() => import("./vue-ui-accordion-B7SuIgFc.js")), xt = X(() => import("./DataTable-CQHjdD9t.js")), kt = X(() => import("./PackageVersion-mH9eFSdi.js")), wt = X(() => import("./PenAndPaper-C49A3fVl.js")), zt = X(() => import("./vue-ui-skeleton-C-ca3jum.js")), Ct = X(() => import("./Tooltip-B4lRAXc3.js")), Lt = X(() => import("./UserOptions-CZOjPjId.js")), { vue_ui_stackbar: _t } = qt(), St = Xt(), f = ke, we = 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), we = p(null), ze = p(""), S = p([]), $e = p(0), Me = p(null), Te = p(null), Ne = p(null), Ie = p(null), Oe = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
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
43
  ot(() => {
44
44
  _e();
45
45
  });
46
46
  const e = z({
47
- get: () => Ve(),
47
+ get: () => Fe(),
48
48
  set: (a) => a
49
- }), { userOptionsVisible: Ce, setUserOptionsVisibility: Re, keepUserOptionState: Pe } = ca({ config: e.value }), { svgRef: Ae } = va({ config: e.value.style.chart.title });
50
- function Ve() {
49
+ }), { userOptionsVisible: Le, setUserOptionsVisibility: Pe, keepUserOptionState: Ae } = ha({ config: e.value }), { svgRef: Ve } = da({ config: e.value.style.chart.title });
50
+ function Fe() {
51
51
  const a = bt({
52
52
  userConfig: f.config,
53
- defaultConfig: Lt
53
+ defaultConfig: _t
54
54
  });
55
55
  let r = {};
56
56
  return a.theme ? r = {
@@ -58,13 +58,13 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
58
58
  userConfig: Kt.vue_ui_stackbar[a.theme] || f.config,
59
59
  defaultConfig: a
60
60
  }),
61
- customPalette: Zt[a.theme] || be
62
- } : r = a, f.config && fe(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 && fe(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 && fe(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 && fe(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
61
+ customPalette: Zt[a.theme] || fe
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
64
  st(() => f.config, (a) => {
65
- e.value = Ve(), Ce.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;
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
66
  }, { deep: !0 }), st(() => f.dataset, (a) => {
67
- Be();
67
+ Ye();
68
68
  }, { deep: !0 });
69
69
  const C = p({
70
70
  dataLabels: {
@@ -72,7 +72,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["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: Fe, generatePdf: De, generateImage: He } = ua({
75
+ }), { isPrinting: Ee, isImaging: De, generatePdf: He, generateImage: Be } = 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
@@ -108,14 +108,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
108
108
  }), setTimeout(() => {
109
109
  H.value = !0;
110
110
  }, 10), e.value.responsive) {
111
- const a = ia(() => {
111
+ const a = ua(() => {
112
112
  H.value = !1;
113
- const { width: r, height: t } = na({
113
+ const { width: r, height: t } = ca({
114
114
  chart: ee.value,
115
- title: e.value.style.chart.title.text ? Me.value : null,
116
- legend: e.value.style.chart.legend.show ? Te.value : null,
117
- slicer: e.value.style.chart.zoom.show && E.value > 1 ? Ne.value : null,
118
- source: Ie.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
119
119
  });
120
120
  requestAnimationFrame(() => {
121
121
  ue.value.width = r, ue.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
@@ -130,20 +130,20 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
130
130
  Gt(() => {
131
131
  A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect());
132
132
  });
133
- const n = 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, _ = e.value.style.chart.padding.left, W = r - _ - r * t, B = a - l - e.value.style.chart.padding.bottom;
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;
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: _,
142
- width: W,
143
- height: B < 0 ? 0 : B
141
+ left: L,
142
+ width: B,
143
+ height: W < 0 ? 0 : W
144
144
  };
145
145
  }), V = z(() => f.dataset.map((a, r) => {
146
- const t = ta(a.color) || Nt.value[r] || be[r] || be[r % be.length];
146
+ const t = ta(a.color) || Nt.value[r] || fe[r] || fe[r % fe.length];
147
147
  return {
148
148
  ...a,
149
149
  // In distributed mode, all values are converted to positive
@@ -154,37 +154,37 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
154
154
  id: ut(),
155
155
  color: t
156
156
  };
157
- })), E = z(() => Math.max(...V.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = p({
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 Be() {
161
+ function Ye() {
162
162
  Ue();
163
163
  }
164
164
  async function Ue() {
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 ge(), await ge(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ge(), await ge(), K.value && K.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (v.value = {
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
- }, Oe.value += 1);
168
+ }, Re.value += 1);
169
169
  }
170
170
  function It(a) {
171
171
  const r = Math.max(...f.dataset.map((t) => t.series.length));
172
172
  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;
173
173
  }
174
- const y = z(() => {
174
+ const d = z(() => {
175
175
  let a;
176
- return e.value.orientation === "vertical" ? a = n.value.width / (v.value.end - v.value.start) : a = n.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
177
- }), ae = z(() => me(V.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), Ot = z(() => me(V.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
176
+ return e.value.orientation === "vertical" ? a = s.value.width / (v.value.end - v.value.start) : a = s.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
177
+ }), ae = z(() => pe(V.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), Ot = z(() => pe(V.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
178
178
  ...a,
179
179
  series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
180
180
  }))).slice(v.value.start, v.value.end)), ce = z(() => {
181
181
  const a = V.value.filter((r) => !S.value.includes(r.id));
182
182
  return {
183
- positive: me(a.map((r) => ({
183
+ positive: pe(a.map((r) => ({
184
184
  ...r,
185
185
  series: r.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
186
186
  }))),
187
- negative: me(a.map((r) => ({
187
+ negative: pe(a.map((r) => ({
188
188
  ...r,
189
189
  series: r.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
190
190
  })))
@@ -192,54 +192,54 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
192
192
  }), O = z(() => {
193
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);
194
194
  return l.ticks.map((c) => ({
195
- zero: n.value.bottom - n.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
196
- y: n.value.bottom - n.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
197
- x: n.value.left - 8,
198
- horizontal_zero: n.value.left + n.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
199
- horizontal_x: n.value.left + n.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
200
- horizontal_y: n.value.bottom - 8,
195
+ zero: s.value.bottom - s.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
196
+ y: s.value.bottom - s.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
197
+ x: s.value.left - 8,
198
+ horizontal_zero: s.value.left + s.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
199
+ horizontal_x: s.value.left + s.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
200
+ horizontal_y: s.value.bottom - 8,
201
201
  value: c
202
202
  }));
203
- }), $ = z(() => ba({
203
+ }), $ = z(() => ma({
204
204
  values: e.value.style.chart.grid.x.timeLabels.values,
205
- maxDatapoints: E.value,
205
+ maxDatapoints: F.value,
206
206
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
207
207
  start: v.value.start,
208
208
  end: v.value.end
209
209
  })), w = z(() => {
210
210
  if (!Z.value) return [];
211
- let a = Array(E.value).fill(0), r = Array(E.value).fill(0), t = Array(E.value).fill(0), l = Array(E.value).fill(0);
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, W = !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 : _ > 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) : 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), { min: B, max: le } = W, U = le + (B >= 0 ? 0 : Math.abs(B)) || 1, M = n.value.height, ye = n.value.width, lt = O.value[0] ? O.value[0].zero : n.value.bottom, rt = O.value[0] ? O.value[0].horizontal_zero : n.value.left;
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;
213
213
  return V.value.filter((re) => !S.value.includes(re.id)).map((re) => {
214
- const R = re.series.slice(v.value.start, v.value.end), Et = re.signedSeries.slice(v.value.start, v.value.end), Ft = R.map((m, x) => n.value.left + y.value * x + y.value * e.value.style.chart.bars.gapRatio / 4), Dt = R.map((m, x) => n.value.top + y.value * x + y.value * e.value.style.chart.bars.gapRatio / 4), Ht = R.map((m, x) => {
215
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
216
- let Y, I;
217
- return m > 0 ? (I = M * N, Y = lt - I - a[x], a[x] += I) : (I = M * N, Y = lt + t[x], t[x] += Math.abs(I)), Y;
218
- }), Wt = R.map((m, x) => {
219
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
220
- let Y, I;
221
- return m > 0 ? (I = ye * N, Y = rt + r[x], r[x] += I) : (I = ye * N, Y = rt - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
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
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
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;
222
218
  }), Bt = R.map((m, x) => {
223
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
219
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
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;
222
+ }), Wt = R.map((m, x) => {
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);
225
- }), Ut = R.map((m, x) => {
226
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / U;
227
- return m > 0 ? ye * N : ye * Math.abs(N);
228
- }), Yt = R.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
225
+ }), Yt = R.map((m, x) => {
226
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
227
+ return m > 0 ? ge * N : ge * Math.abs(N);
228
+ }), Ut = R.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
229
229
  return {
230
230
  ...re,
231
- proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Yt),
231
+ proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Ut),
232
232
  series: R,
233
- signedSeries: Et,
234
- x: Ft,
233
+ signedSeries: Ft,
234
+ x: Et,
235
235
  y: Ht,
236
- height: Bt,
237
- horizontal_width: Ut,
236
+ height: Wt,
237
+ horizontal_width: Yt,
238
238
  horizontal_y: Dt,
239
- horizontal_x: Wt
239
+ horizontal_x: Bt
240
240
  };
241
241
  });
242
- }), Ye = z(() => Ot.value.map((a, r) => ({
242
+ }), Xe = z(() => Ot.value.map((a, r) => ({
243
243
  value: a,
244
244
  sign: a >= 0 ? 1 : -1
245
245
  })));
@@ -257,7 +257,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
257
257
  { datapoint: r, seriesIndex: t, datapointIndex: l }
258
258
  );
259
259
  }
260
- function Xe(a, r, t, l) {
260
+ function Ge(a, r, t, l) {
261
261
  return gt(
262
262
  e.value.style.chart.bars.dataLabels.formatter,
263
263
  a,
@@ -269,7 +269,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
269
269
  { datapoint: r, seriesIndex: t, datapointIndex: l }
270
270
  );
271
271
  }
272
- function Ge(a) {
272
+ function Je(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 ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
277
277
  color: t.color,
278
278
  id: t.id
279
279
  }));
280
- ke("selectDatapoint", { datapoint: r, period: $.value[a] });
280
+ we("selectDatapoint", { datapoint: r, period: $.value[a] });
281
281
  }
282
- function Je(a) {
282
+ function qe(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 ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
289
289
  color: c.color,
290
290
  id: c.id
291
291
  }));
292
- we.value = {
292
+ ze.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) && sa(() => r({
299
+ if (yt(r) && na(() => r({
300
300
  seriesIndex: a,
301
301
  datapoint: t,
302
302
  series: w.value,
303
303
  config: e.value
304
304
  })))
305
- ze.value = r({
305
+ Ce.value = r({
306
306
  seriesIndex: a,
307
307
  datapoint: t,
308
308
  series: w.value,
@@ -312,13 +312,13 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
312
312
  const {
313
313
  showValue: c,
314
314
  showPercentage: u,
315
- borderColor: _,
316
- roundingValue: W,
317
- roundingPercentage: B
315
+ borderColor: L,
316
+ roundingValue: B,
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 ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
321
- const U = [
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>`);
321
+ const Y = [
322
322
  c && u ? "(" : "",
323
323
  c && u ? ")" : ""
324
324
  ];
@@ -330,34 +330,34 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
330
330
  p: e.value.style.chart.bars.dataLabels.prefix,
331
331
  v: M.value,
332
332
  s: e.value.style.chart.bars.dataLabels.suffix,
333
- r: W
334
- }) : ""} ${U[0]}${u ? q({
333
+ r: B
334
+ }) : ""} ${Y[0]}${u ? q({
335
335
  v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
336
336
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
337
337
  s: "%",
338
- r: B
339
- }) : ""}${U[1]}
338
+ r: W
339
+ }) : ""}${Y[1]}
340
340
  </div>
341
341
  `;
342
- }), ze.value = `<div>${le}</div>`;
342
+ }), Ce.value = `<div>${le}</div>`;
343
343
  }
344
344
  }
345
345
  function Rt(a) {
346
- ne.value = a, $e.value += 1;
346
+ ne.value = a, Me.value += 1;
347
347
  }
348
- function qe() {
348
+ function Ze() {
349
349
  C.value.showTable = !C.value.showTable;
350
350
  }
351
- function Ze() {
351
+ function Ke() {
352
352
  C.value.dataLabels.show = !C.value.dataLabels.show;
353
353
  }
354
- function Ke() {
354
+ function Qe() {
355
355
  C.value.showTooltip = !C.value.showTooltip;
356
356
  }
357
357
  function Pt() {
358
358
  return w.value;
359
359
  }
360
- const Qe = z(() => {
360
+ const je = 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 ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
370
370
  }), r.push(l);
371
371
  }), { head: a, body: r };
372
372
  });
373
- function je(a = null) {
374
- const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Qe.value.head.map((_) => _.label)], l = Qe.value.body, c = r.concat([t]).concat(l), u = ra(c);
375
- a ? a(u) : oa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
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);
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
- for (let c = 0; c < E.value; c += 1) {
381
- const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, W) => _ + W, 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)));
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)));
383
383
  }
384
384
  const t = {
385
385
  th: {
@@ -397,14 +397,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["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 (ke("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
400
+ if (we("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 et = z(() => V.value.map((a, r) => ({
407
+ const tt = z(() => V.value.map((a, r) => ({
408
408
  ...a,
409
409
  shape: "square"
410
410
  })).map((a) => ({
@@ -420,10 +420,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["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 Le() {
423
+ function Se() {
424
424
  de.value = !de.value;
425
425
  }
426
- function tt(a, r) {
426
+ function ye(a, r) {
427
427
  const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
428
428
  name: l.name,
429
429
  value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
@@ -431,7 +431,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
431
431
  color: l.color,
432
432
  id: l.id
433
433
  }));
434
- ke("selectTimeLabel", {
434
+ we("selectTimeLabel", {
435
435
  datapoint: t,
436
436
  absoluteIndex: a.absoluteIndex,
437
437
  label: a.text
@@ -442,38 +442,38 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
442
442
  }
443
443
  return ft({
444
444
  getData: Pt,
445
- generatePdf: De,
446
- generateCsv: je,
447
- generateImage: He,
448
- toggleTable: qe,
449
- toggleLabels: Ze,
450
- toggleTooltip: Ke,
451
- toggleAnnotator: Le
452
- }), (a, r) => (o(), s("div", {
445
+ generatePdf: He,
446
+ generateCsv: et,
447
+ generateImage: Be,
448
+ toggleTable: Ze,
449
+ toggleLabels: Ke,
450
+ toggleTooltip: Qe,
451
+ toggleAnnotator: Se
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(Re)(!0)),
459
- onMouseleave: r[7] || (r[7] = () => g(Re)(!1))
458
+ onMouseenter: r[6] || (r[6] = () => g(Pe)(!0)),
459
+ onMouseleave: r[7] || (r[7] = () => g(Pe)(!1))
460
460
  }, [
461
461
  e.value.userOptions.buttons.annotator ? (o(), j(g(wt), {
462
462
  key: 0,
463
- svgRef: g(Ae),
463
+ svgRef: g(Ve),
464
464
  backgroundColor: e.value.style.chart.backgroundColor,
465
465
  color: e.value.style.chart.color,
466
466
  active: de.value,
467
- onClose: Le
468
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
467
+ onClose: Se
468
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
469
469
  k(a.$slots, "userConfig", {}, void 0, !0),
470
- e.value.style.chart.title.text ? (o(), s("div", {
470
+ e.value.style.chart.title.text ? (o(), n("div", {
471
471
  key: 1,
472
472
  ref_key: "chartTitle",
473
- ref: Me,
473
+ ref: Te,
474
474
  style: "width:100%;background:transparent;padding-bottom:24px"
475
475
  }, [
476
- se(ya, {
476
+ se(ba, {
477
477
  config: {
478
478
  title: {
479
479
  cy: "stackbar-title",
@@ -485,14 +485,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
485
485
  }
486
486
  }
487
487
  }, null, 8, ["config"])
488
- ], 512)) : d("", !0),
489
- e.value.userOptions.show && Z.value && (g(Pe) || g(Ce)) ? (o(), j(g(_t), {
488
+ ], 512)) : y("", !0),
489
+ e.value.userOptions.show && Z.value && (g(Ae) || g(Le)) ? (o(), j(g(Lt), {
490
490
  ref: "details",
491
- key: `user_option_${$e.value}`,
491
+ key: `user_option_${Me.value}`,
492
492
  backgroundColor: e.value.style.chart.backgroundColor,
493
493
  color: e.value.style.chart.color,
494
494
  isPrinting: g(Ee),
495
- isImaging: g(Fe),
495
+ isImaging: g(De),
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,104 +510,104 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
510
510
  isAnnotation: de.value,
511
511
  callbacks: e.value.userOptions.callbacks,
512
512
  onToggleFullscreen: Rt,
513
- onGeneratePdf: g(De),
514
- onGenerateCsv: je,
515
- onGenerateImage: g(He),
516
- onToggleTable: qe,
517
- onToggleLabels: Ze,
518
- onToggleTooltip: Ke,
519
- onToggleAnnotator: Le,
513
+ onGeneratePdf: g(He),
514
+ onGenerateCsv: et,
515
+ onGenerateImage: g(Be),
516
+ onToggleTable: Ze,
517
+ onToggleLabels: Ke,
518
+ onToggleTooltip: Qe,
519
+ onToggleAnnotator: Se,
520
520
  style: G({
521
- visibility: g(Pe) ? g(Ce) ? "visible" : "hidden" : "visible"
521
+ visibility: g(Ae) ? g(Le) ? "visible" : "hidden" : "visible"
522
522
  })
523
523
  }, nt({ _: 2 }, [
524
524
  a.$slots.menuIcon ? {
525
525
  name: "menuIcon",
526
- fn: L(({ isOpen: t, color: l }) => [
527
- k(a.$slots, "menuIcon", F(D({ isOpen: t, color: l })), void 0, !0)
526
+ fn: _(({ isOpen: t, color: l }) => [
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: L(() => [
533
+ fn: _(() => [
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: L(() => [
540
+ fn: _(() => [
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: L(() => [
547
+ fn: _(() => [
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: L(() => [
554
+ fn: _(() => [
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: L(() => [
561
+ fn: _(() => [
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: L(() => [
568
+ fn: _(() => [
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: L(({ toggleFullscreen: t, isFullscreen: l }) => [
576
- k(a.$slots, "optionFullscreen", F(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
575
+ fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
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: L(({ toggleAnnotator: t, isAnnotator: l }) => [
583
- k(a.$slots, "optionAnnotator", F(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
582
+ fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
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"])) : d("", !0),
588
- Z.value ? (o(), s("svg", {
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),
588
+ Z.value ? (o(), n("svg", {
589
589
  key: 3,
590
590
  ref_key: "svgRef",
591
- ref: Ae,
591
+ ref: Ve,
592
592
  xmlns: g(aa),
593
- viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
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
596
  se(g(kt)),
597
- a.$slots["chart-background"] ? (o(), s("foreignObject", {
597
+ a.$slots["chart-background"] ? (o(), n("foreignObject", {
598
598
  key: 0,
599
- x: n.value.left,
600
- y: n.value.top,
601
- width: n.value.width <= 0 ? 10 : n.value.width,
602
- height: n.value.height <= 0 ? 10 : n.value.height,
599
+ x: s.value.left,
600
+ y: s.value.top,
601
+ width: s.value.width <= 0 ? 10 : s.value.width,
602
+ height: s.value.height <= 0 ? 10 : s.value.height,
603
603
  style: {
604
604
  pointerEvents: "none"
605
605
  }
606
606
  }, [
607
607
  k(a.$slots, "chart-background", {}, void 0, !0)
608
- ], 8, xa)) : d("", !0),
609
- e.value.style.chart.bars.gradient.show ? (o(), s("defs", ka, [
610
- (o(!0), s(h, null, b(w.value, (t, l) => (o(), s("linearGradient", {
608
+ ], 8, wa)) : y("", !0),
609
+ e.value.style.chart.bars.gradient.show ? (o(), n("defs", za, [
610
+ (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("linearGradient", {
611
611
  id: `gradient_${t.id}`,
612
612
  x1: "0%",
613
613
  y1: "0%",
@@ -617,222 +617,222 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
617
617
  J("stop", {
618
618
  offset: "0%",
619
619
  "stop-color": t.color
620
- }, null, 8, za),
620
+ }, null, 8, La),
621
621
  J("stop", {
622
622
  offset: "61.8%",
623
623
  "stop-color": g(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
624
- }, null, 8, Ca),
624
+ }, null, 8, _a),
625
625
  J("stop", {
626
626
  offset: "100%",
627
627
  "stop-color": t.color
628
- }, null, 8, _a)
629
- ], 8, wa))), 256))
630
- ])) : d("", !0),
631
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 2 }, b(O.value, (t, l) => (o(), s("line", {
632
- x1: n.value.left,
633
- x2: n.value.right,
628
+ }, null, 8, Sa)
629
+ ], 8, Ca))), 256))
630
+ ])) : y("", !0),
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
+ x1: s.value.left,
633
+ x2: s.value.right,
634
634
  y1: t.y,
635
635
  y2: t.y,
636
636
  stroke: e.value.style.chart.grid.x.axisColor,
637
637
  "stroke-width": 1,
638
638
  "stroke-linecap": "round"
639
- }, null, 8, La))), 256)) : d("", !0),
640
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 3 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), s("line", {
641
- x1: n.value.left,
642
- x2: n.value.right,
643
- y1: n.value.top + y.value * l,
644
- y2: n.value.top + y.value * l,
639
+ }, null, 8, $a))), 256)) : y("", !0),
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
+ x1: s.value.left,
642
+ x2: s.value.right,
643
+ y1: s.value.top + d.value * l,
644
+ y2: s.value.top + d.value * l,
645
645
  stroke: e.value.style.chart.grid.y.axisColor,
646
646
  "stroke-width": 1,
647
647
  "stroke-linecap": "round"
648
- }, null, 8, Sa))), 256)) : d("", !0),
649
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 4 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), s("line", {
650
- x1: n.value.left + y.value * l,
651
- x2: n.value.left + y.value * l,
652
- y1: n.value.top,
653
- y2: n.value.bottom,
648
+ }, null, 8, Ma))), 256)) : y("", !0),
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
+ x1: s.value.left + d.value * l,
651
+ x2: s.value.left + d.value * l,
652
+ y1: s.value.top,
653
+ y2: s.value.bottom,
654
654
  stroke: e.value.style.chart.grid.y.axisColor,
655
655
  "stroke-width": 1,
656
656
  "stroke-linecap": "round"
657
- }, null, 8, $a))), 256)) : d("", !0),
658
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 5 }, b(O.value, (t, l) => (o(), s("line", {
657
+ }, null, 8, Ta))), 256)) : y("", !0),
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,
661
- y1: n.value.top,
662
- y2: n.value.bottom,
661
+ y1: s.value.top,
662
+ y2: s.value.bottom,
663
663
  stroke: e.value.style.chart.grid.x.axisColor,
664
664
  "stroke-width": 1,
665
665
  "stroke-linecap": "round"
666
- }, null, 8, Ma))), 256)) : d("", !0),
667
- (o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
668
- a.$slots.pattern ? (o(), s("defs", Ta, [
669
- k(a.$slots, "pattern", Se({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
670
- ])) : d("", !0),
671
- e.value.orientation === "vertical" ? (o(), s(h, { key: 1 }, [
672
- (o(!0), s(h, null, b(t.x, (c, u) => (o(), s("rect", {
666
+ }, null, 8, Na))), 256)) : y("", !0),
667
+ (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
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),
671
+ e.value.orientation === "vertical" ? (o(), n(h, { key: 1 }, [
672
+ (o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
673
673
  x: c,
674
674
  y: t.y[u] < 0 ? 0 : t.y[u],
675
675
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
676
676
  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,
677
- width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
677
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
678
678
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
679
679
  stroke: e.value.style.chart.backgroundColor,
680
680
  "stroke-width": e.value.style.chart.bars.strokeWidth,
681
681
  "stroke-linecap": "round",
682
682
  "stroke-linejoin": "round",
683
683
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
684
- }, null, 10, Na))), 256)),
685
- a.$slots.pattern ? (o(), s("g", Ia, [
686
- (o(!0), s(h, null, b(t.x, (c, u) => (o(), s("rect", {
684
+ }, null, 10, Oa))), 256)),
685
+ a.$slots.pattern ? (o(), n("g", Ra, [
686
+ (o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
687
687
  x: c,
688
688
  y: t.y[u] < 0 ? 0 : t.y[u],
689
689
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
690
690
  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,
691
- width: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
691
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
692
692
  fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
693
693
  stroke: e.value.style.chart.backgroundColor,
694
694
  "stroke-width": e.value.style.chart.bars.strokeWidth,
695
695
  "stroke-linecap": "round",
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
- }, null, 10, Oa))), 256))
699
- ])) : d("", !0)
700
- ], 64)) : (o(), s(h, { key: 2 }, [
701
- (o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s("rect", {
702
- x: g(pe)(c, n.value.left),
698
+ }, null, 10, Pa))), 256))
699
+ ])) : y("", !0)
700
+ ], 64)) : (o(), n(h, { key: 2 }, [
701
+ (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
702
+ x: g(xe)(c, s.value.left),
703
703
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
704
- width: g(pe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
704
+ width: g(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
- height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
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,
708
708
  stroke: e.value.style.chart.backgroundColor,
709
709
  "stroke-width": e.value.style.chart.bars.strokeWidth,
710
710
  "stroke-linecap": "round",
711
711
  "stroke-linejoin": "round",
712
712
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
713
- }, null, 10, Ra))), 256)),
714
- a.$slots.pattern ? (o(), s("g", Pa, [
715
- (o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s("rect", {
716
- x: g(pe)(c, n.value.left),
713
+ }, null, 10, Aa))), 256)),
714
+ a.$slots.pattern ? (o(), n("g", Va, [
715
+ (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
716
+ x: g(xe)(c, s.value.left),
717
717
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
718
- width: g(pe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
718
+ width: g(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
- height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
720
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
721
721
  fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
722
722
  stroke: e.value.style.chart.backgroundColor,
723
723
  "stroke-width": e.value.style.chart.bars.strokeWidth,
724
724
  "stroke-linecap": "round",
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
- }, null, 10, Aa))), 256))
728
- ])) : d("", !0)
727
+ }, null, 10, Fa))), 256))
728
+ ])) : y("", !0)
729
729
  ], 64))
730
730
  ]))), 256)),
731
- e.value.style.chart.grid.x.showAxis ? (o(), s("line", {
731
+ e.value.style.chart.grid.x.showAxis ? (o(), n("line", {
732
732
  key: 6,
733
- x1: n.value.left,
734
- x2: n.value.right,
735
- y1: n.value.bottom,
736
- y2: n.value.bottom,
733
+ x1: s.value.left,
734
+ x2: s.value.right,
735
+ y1: s.value.bottom,
736
+ y2: s.value.bottom,
737
737
  stroke: e.value.style.chart.grid.x.axisColor,
738
738
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
739
739
  "stroke-linecap": "round",
740
740
  "stroke-linejoin": "round"
741
- }, null, 8, Va)) : d("", !0),
742
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), s("line", {
741
+ }, null, 8, Ea)) : y("", !0),
742
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), n("line", {
743
743
  key: 7,
744
- x1: n.value.left,
745
- x2: n.value.left,
746
- y1: n.value.top,
747
- y2: n.value.bottom,
744
+ x1: s.value.left,
745
+ x2: s.value.left,
746
+ y1: s.value.top,
747
+ y2: s.value.bottom,
748
748
  stroke: e.value.style.chart.grid.y.axisColor,
749
749
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
750
750
  "stroke-linecap": "round",
751
751
  "stroke-linejoin": "round"
752
- }, null, 8, Ea)) : d("", !0),
753
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), s("text", {
752
+ }, null, 8, Da)) : y("", !0),
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
- x: n.value.left + n.value.width / 2,
756
- y: n.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
755
+ x: s.value.left + s.value.width / 2,
756
+ y: s.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
757
757
  "font-size": e.value.style.chart.grid.x.axisName.fontSize,
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, Fa)) : d("", !0),
762
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), s("text", {
761
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Ha)) : y("", !0),
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
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
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)`,
765
765
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
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, Da)) : d("", !0),
770
- C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 10 }, [
771
- (o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
772
- (o(!0), s(h, null, b(t.x, (c, u) => (o(), s(h, null, [
773
- at(t.series[u], t.proportions[u]) ? (o(), s("text", {
769
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ba)) : y("", !0),
770
+ C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 10 }, [
771
+ (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
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", {
774
774
  key: 0,
775
- x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
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
778
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(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 ? Xe(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ha)) : d("", !0)
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)
782
782
  ], 64))), 256))
783
783
  ]))), 256)),
784
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), s("g", Wa, [
785
- (o(!0), s(h, null, b(Ye.value, (t, l) => (o(), s(h, null, [
786
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
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, [
786
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
787
787
  key: 0,
788
- x: n.value.left + y.value * l + y.value / 2,
789
- y: n.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
788
+ x: s.value.left + d.value * l + d.value / 2,
789
+ y: s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
790
790
  "text-anchor": "middle",
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, Ba)) : d("", !0)
794
+ }, T(ve(t.value, t, l, t.sign)), 9, Ua)) : y("", !0)
795
795
  ], 64))), 256))
796
- ])) : d("", !0)
797
- ], 64)) : d("", !0),
798
- C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 11 }, [
799
- (o(!0), s(h, null, b(w.value, (t, l) => (o(), s("g", null, [
800
- (o(!0), s(h, null, b(t.horizontal_x, (c, u) => (o(), s(h, null, [
801
- at(t.series[u], t.proportions[u]) ? (o(), s("text", {
796
+ ])) : y("", !0)
797
+ ], 64)) : y("", !0),
798
+ C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 11 }, [
799
+ (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
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", {
802
802
  key: 0,
803
803
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
804
- y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
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
806
  fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? g(dt)(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 ? Xe(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Ua)) : d("", !0)
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)
810
810
  ], 64))), 256))
811
811
  ]))), 256)),
812
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), s("g", Ya, [
813
- (o(!0), s(h, null, b(Ye.value, (t, l) => (o(), s(h, null, [
814
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
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, [
814
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
815
815
  key: 0,
816
- x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
817
- y: n.value.top + y.value * l + y.value / 2,
816
+ x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
817
+ y: s.value.top + d.value * l + d.value / 2,
818
818
  "text-anchor": "start",
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, Xa)) : d("", !0)
822
+ }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : y("", !0)
823
823
  ], 64))), 256))
824
- ])) : d("", !0)
825
- ], 64)) : d("", !0),
826
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(h, { key: 12 }, [
827
- (o(!0), s(h, null, b(O.value, (t, l) => (o(), s("line", {
828
- x1: n.value.left,
829
- x2: n.value.left - 6,
824
+ ])) : y("", !0)
825
+ ], 64)) : y("", !0),
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
+ (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
828
+ x1: s.value.left,
829
+ x2: s.value.left - 6,
830
830
  y1: t.y,
831
831
  y2: t.y,
832
832
  stroke: e.value.style.chart.grid.x.axisColor,
833
833
  "stroke-width": 1
834
- }, null, 8, Ga))), 256)),
835
- (o(!0), s(h, null, b(O.value, (t, l) => (o(), s("text", {
834
+ }, null, 8, qa))), 256)),
835
+ (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
836
836
  x: t.x,
837
837
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
838
838
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -844,66 +844,89 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
844
844
  v: t.value,
845
845
  s: e.value.style.chart.bars.dataLabels.suffix,
846
846
  r: e.value.style.chart.grid.y.axisLabels.rounding
847
- })), 9, Ja))), 256))
848
- ], 64)) : d("", !0),
849
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(h, { key: 13 }, [
850
- (o(!0), s(h, null, b(O.value, (t, l) => (o(), s("line", {
847
+ })), 9, Za))), 256))
848
+ ], 64)) : y("", !0),
849
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), n(h, { key: 13 }, [
850
+ (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
851
851
  x1: t.horizontal_x,
852
852
  x2: t.horizontal_x,
853
- y1: n.value.bottom,
854
- y2: n.value.bottom + 6,
853
+ y1: s.value.bottom,
854
+ y2: s.value.bottom + 6,
855
855
  stroke: e.value.style.chart.grid.x.axisColor,
856
856
  "stroke-width": 1,
857
857
  "stroke-linecap": "round"
858
- }, null, 8, qa))), 256)),
859
- (o(!0), s(h, null, b(O.value, (t, l) => (o(), s("text", {
858
+ }, null, 8, Ka))), 256)),
859
+ (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
860
860
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
861
861
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
862
862
  fill: e.value.style.chart.grid.y.axisLabels.color,
863
863
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
864
- 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})`
864
+ 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
865
  }, T(g(q)({
866
866
  p: e.value.style.chart.bars.dataLabels.prefix,
867
867
  v: t.value,
868
868
  s: e.value.style.chart.bars.dataLabels.suffix,
869
869
  r: e.value.style.chart.grid.y.axisLabels.rounding
870
- })), 9, Za))), 256))
871
- ], 64)) : d("", !0),
872
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 14 }, [
873
- a.$slots["time-label"] ? (o(), s("g", Ka, [
874
- (o(!0), s(h, null, b($.value, (t, l) => (o(), s("g", null, [
875
- k(a.$slots, "time-label", Se({ ref_for: !0 }, {
876
- x: n.value.left + y.value * l + y.value / 2,
877
- y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
870
+ })), 9, Qa))), 256))
871
+ ], 64)) : y("", !0),
872
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 14 }, [
873
+ a.$slots["time-label"] ? (o(), n("g", ja, [
874
+ (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
875
+ k(a.$slots, "time-label", $e({ ref_for: !0 }, {
876
+ x: s.value.left + d.value * l + d.value / 2,
877
+ y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
878
878
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
879
879
  fill: e.value.style.chart.grid.x.timeLabels.color,
880
- transform: `translate(${n.value.left + y.value * l + y.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})`,
880
+ transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${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})`,
881
881
  absoluteIndex: t.absoluteIndex,
882
882
  content: t.text,
883
883
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
884
884
  show: !0
885
885
  }), void 0, !0)
886
886
  ]))), 256))
887
- ])) : (o(), s("g", Qa, [
888
- (o(!0), s(h, null, b($.value, (t, l) => (o(), s("text", {
889
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
890
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
891
- "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
892
- fill: e.value.style.chart.grid.x.timeLabels.color,
893
- transform: `translate(${n.value.left + y.value * l + y.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})`,
894
- style: {
895
- cursor: "pointer"
896
- },
897
- onClick: () => tt(t, l)
898
- }, T(t.text), 9, ja))), 256))
887
+ ])) : (o(), n("g", el, [
888
+ (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
889
+ String(t.text).includes(`
890
+ `) ? (o(), n("text", {
891
+ key: l + "-multi",
892
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
893
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
894
+ fill: e.value.style.chart.grid.x.timeLabels.color,
895
+ transform: `
896
+ translate(
897
+ ${s.value.left + d.value * l + d.value / 2},
898
+ ${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
899
+ ),
900
+ rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
901
+ `,
902
+ style: { cursor: "pointer" },
903
+ innerHTML: g(ra)({
904
+ content: String(t.text),
905
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
906
+ fill: e.value.style.chart.grid.x.timeLabels.color,
907
+ x: 0,
908
+ y: 0
909
+ }),
910
+ onClick: () => ye(t, l)
911
+ }, null, 8, al)) : (o(), n("text", {
912
+ key: l,
913
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
914
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
915
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
916
+ fill: e.value.style.chart.grid.x.timeLabels.color,
917
+ transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${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})`,
918
+ style: { cursor: "pointer" },
919
+ onClick: () => ye(t, l)
920
+ }, T(t.text), 9, tl))
921
+ ]))), 256))
899
922
  ]))
900
- ], 64)) : d("", !0),
901
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 15 }, [
902
- a.$slots["time-label"] ? (o(), s("g", el, [
903
- (o(!0), s(h, null, b($.value, (t, l) => (o(), s("g", null, [
904
- k(a.$slots, "time-label", Se({ ref_for: !0 }, {
905
- x: n.value.left - 8,
906
- y: n.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
923
+ ], 64)) : y("", !0),
924
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 15 }, [
925
+ a.$slots["time-label"] ? (o(), n("g", ll, [
926
+ (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
927
+ k(a.$slots, "time-label", $e({ ref_for: !0 }, {
928
+ x: s.value.left - 8,
929
+ y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
907
930
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
908
931
  fill: e.value.style.chart.grid.x.timeLabels.color,
909
932
  transform: null,
@@ -913,53 +936,74 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
913
936
  show: !0
914
937
  }), void 0, !0)
915
938
  ]))), 256))
916
- ])) : (o(), s("g", tl, [
917
- (o(!0), s(h, null, b($.value, (t, l) => (o(), s("text", {
918
- "text-anchor": "end",
919
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
920
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
921
- fill: e.value.style.chart.grid.y.axisLabels.color,
922
- x: n.value.left - 8,
923
- y: n.value.top + y.value * l + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
924
- style: {
925
- cursor: "pointer"
926
- },
927
- onClick: () => tt(t, l)
928
- }, T(t.text), 9, al))), 256))
939
+ ])) : (o(), n("g", rl, [
940
+ (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
941
+ String(t.text).includes(`
942
+ `) ? (o(), n("text", {
943
+ key: 1,
944
+ "text-anchor": "end",
945
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
946
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
947
+ fill: e.value.style.chart.grid.y.axisLabels.color,
948
+ x: s.value.left - 8,
949
+ y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
950
+ style: { cursor: "pointer" },
951
+ onClick: () => ye(t, l),
952
+ innerHTML: g(oa)({
953
+ content: String(t.text),
954
+ fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
955
+ fill: e.value.style.chart.grid.y.axisLabels.color,
956
+ x: s.value.left - 8,
957
+ y: 0
958
+ })
959
+ }, null, 8, sl)) : (o(), n("text", {
960
+ key: 0,
961
+ "text-anchor": "end",
962
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
963
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
964
+ fill: e.value.style.chart.grid.y.axisLabels.color,
965
+ x: s.value.left - 8,
966
+ y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
967
+ style: {
968
+ cursor: "pointer"
969
+ },
970
+ onClick: () => ye(t, l)
971
+ }, T(t.text), 9, ol))
972
+ ]))), 256))
929
973
  ]))
930
- ], 64)) : d("", !0),
931
- C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 16 }, b(v.value.end - v.value.start, (t, l) => (o(), s("rect", {
932
- x: n.value.left + l * y.value,
933
- y: n.value.top,
934
- width: y.value,
935
- height: n.value.height < 0 ? 0 : n.value.height,
936
- onClick: (c) => Ge(l),
937
- onMouseenter: (c) => Je(l),
974
+ ], 64)) : y("", !0),
975
+ 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
+ x: s.value.left + l * d.value,
977
+ y: s.value.top,
978
+ width: d.value,
979
+ height: s.value.height < 0 ? 0 : s.value.height,
980
+ onClick: (c) => Je(l),
981
+ onMouseenter: (c) => qe(l),
938
982
  onMouseleave: r[0] || (r[0] = (c) => {
939
983
  te.value = null, ie.value = !1;
940
984
  }),
941
985
  fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
942
986
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
943
- }, null, 44, ll))), 256)) : d("", !0),
944
- C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 17 }, b(v.value.end - v.value.start, (t, l) => (o(), s("rect", {
945
- x: n.value.left,
946
- y: n.value.top + l * y.value,
947
- width: n.value.width < 0 ? 0 : n.value.width,
948
- height: y.value,
949
- onClick: (c) => Ge(l),
950
- onMouseenter: (c) => Je(l),
987
+ }, null, 44, il))), 256)) : y("", !0),
988
+ 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
+ x: s.value.left,
990
+ y: s.value.top + l * d.value,
991
+ width: s.value.width < 0 ? 0 : s.value.width,
992
+ height: d.value,
993
+ onClick: (c) => Je(l),
994
+ onMouseenter: (c) => qe(l),
951
995
  onMouseleave: r[1] || (r[1] = (c) => {
952
996
  te.value = null, ie.value = !1;
953
997
  }),
954
998
  fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
955
999
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
956
- }, null, 44, rl))), 256)) : d("", !0),
957
- k(a.$slots, "svg", F(D({ ...n.value })), void 0, !0)
958
- ], 12, pa)) : d("", !0),
959
- a.$slots.watermark ? (o(), s("div", ol, [
960
- k(a.$slots, "watermark", F(D({ isPrinting: g(Ee) || g(Fe) })), void 0, !0)
961
- ])) : d("", !0),
962
- Z.value ? d("", !0) : (o(), j(g(zt), {
1000
+ }, null, 44, nl))), 256)) : y("", !0),
1001
+ k(a.$slots, "svg", E(D({ ...s.value })), void 0, !0)
1002
+ ], 12, ka)) : y("", !0),
1003
+ 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), {
963
1007
  key: 5,
964
1008
  config: {
965
1009
  type: "bar",
@@ -976,14 +1020,14 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
976
1020
  }, null, 8, ["config"])),
977
1021
  J("div", {
978
1022
  ref_key: "chartSlicer",
979
- ref: Ne,
1023
+ ref: Ie,
980
1024
  style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
981
1025
  "data-dom-to-png-ignore": ""
982
1026
  }, [
983
- e.value.style.chart.zoom.show && E.value > 1 ? (o(), j(da, {
1027
+ e.value.style.chart.zoom.show && F.value > 1 ? (o(), j(ga, {
984
1028
  ref_key: "slicerComponent",
985
1029
  ref: K,
986
- key: `slicer_${Oe.value}`,
1030
+ key: `slicer_${Re.value}`,
987
1031
  background: e.value.style.chart.zoom.color,
988
1032
  borderColor: e.value.style.chart.backgroundColor,
989
1033
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -993,7 +1037,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
993
1037
  textColor: e.value.style.chart.color,
994
1038
  inputColor: e.value.style.chart.zoom.color,
995
1039
  selectColor: e.value.style.chart.zoom.highlightColor,
996
- max: Math.max(...xe.dataset.map((t) => t.series.length)),
1040
+ max: Math.max(...ke.dataset.map((t) => t.series.length)),
997
1041
  min: 0,
998
1042
  valueStart: v.value.start,
999
1043
  valueEnd: v.value.end,
@@ -1002,16 +1046,16 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1002
1046
  end: v.value.end,
1003
1047
  "onUpdate:end": r[3] || (r[3] = (t) => v.value.end = t),
1004
1048
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1005
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...xe.dataset.map((t) => t.series.length)),
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)),
1006
1050
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1007
1051
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1008
- onReset: Be
1052
+ onReset: Ye
1009
1053
  }, {
1010
- "reset-action": L(({ reset: t }) => [
1011
- k(a.$slots, "reset-action", F(D({ reset: t })), void 0, !0)
1054
+ "reset-action": _(({ reset: t }) => [
1055
+ k(a.$slots, "reset-action", E(D({ reset: t })), void 0, !0)
1012
1056
  ]),
1013
1057
  _: 3
1014
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
1058
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1015
1059
  ], 4),
1016
1060
  se(g(Ct), {
1017
1061
  show: C.value.showTooltip && ie.value,
@@ -1025,40 +1069,40 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1025
1069
  position: e.value.style.chart.tooltip.position,
1026
1070
  offsetY: e.value.style.chart.tooltip.offsetY,
1027
1071
  parent: ee.value,
1028
- content: ze.value,
1072
+ content: Ce.value,
1029
1073
  isFullscreen: ne.value,
1030
1074
  isCustom: g(yt)(e.value.style.chart.tooltip.customFormat)
1031
1075
  }, {
1032
- "tooltip-before": L(() => [
1033
- k(a.$slots, "tooltip-before", F(D({ ...we.value })), void 0, !0)
1076
+ "tooltip-before": _(() => [
1077
+ k(a.$slots, "tooltip-before", E(D({ ...ze.value })), void 0, !0)
1034
1078
  ]),
1035
- "tooltip-after": L(() => [
1036
- k(a.$slots, "tooltip-after", F(D({ ...we.value })), void 0, !0)
1079
+ "tooltip-after": _(() => [
1080
+ k(a.$slots, "tooltip-after", E(D({ ...ze.value })), void 0, !0)
1037
1081
  ]),
1038
1082
  _: 3
1039
1083
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1040
1084
  J("div", {
1041
1085
  ref_key: "chartLegend",
1042
- ref: Te
1086
+ ref: Ne
1043
1087
  }, [
1044
- e.value.style.chart.legend.show && Z.value ? (o(), j(ha, {
1088
+ e.value.style.chart.legend.show && Z.value ? (o(), j(ya, {
1045
1089
  key: 0,
1046
- legendSet: et.value,
1090
+ legendSet: tt.value,
1047
1091
  config: Vt.value,
1048
1092
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1049
1093
  }, nt({
1050
- item: L(({ legend: t }) => [
1094
+ item: _(({ legend: t }) => [
1051
1095
  J("div", {
1052
1096
  onClick: (l) => t.segregate(),
1053
1097
  style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1054
- }, T(t.name), 13, sl)
1098
+ }, T(t.name), 13, cl)
1055
1099
  ]),
1056
1100
  _: 2
1057
1101
  }, [
1058
1102
  a.$slots.pattern ? {
1059
1103
  name: "legend-pattern",
1060
- fn: L(({ legend: t, index: l }) => [
1061
- se(ga, {
1104
+ fn: _(({ legend: t, index: l }) => [
1105
+ se(fa, {
1062
1106
  shape: t.shape,
1063
1107
  radius: 30,
1064
1108
  stroke: "none",
@@ -1070,17 +1114,17 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1070
1114
  } : void 0
1071
1115
  ]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
1072
1116
  key: 1,
1073
- legend: et.value
1117
+ legend: tt.value
1074
1118
  }, void 0, !0)
1075
1119
  ], 512),
1076
- a.$slots.source ? (o(), s("div", {
1120
+ a.$slots.source ? (o(), n("div", {
1077
1121
  key: 6,
1078
1122
  ref_key: "source",
1079
- ref: Ie,
1123
+ ref: Oe,
1080
1124
  dir: "auto"
1081
1125
  }, [
1082
1126
  k(a.$slots, "source", {}, void 0, !0)
1083
- ], 512)) : d("", !0),
1127
+ ], 512)) : y("", !0),
1084
1128
  v.value.end - v.value.start < 200 ? (o(), j(g(pt), {
1085
1129
  key: 7,
1086
1130
  hideDetails: "",
@@ -1097,7 +1141,7 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1097
1141
  }
1098
1142
  }
1099
1143
  }, {
1100
- content: L(() => [
1144
+ content: _(() => [
1101
1145
  se(g(xt), {
1102
1146
  colNames: he.value.colNames,
1103
1147
  head: he.value.head,
@@ -1106,10 +1150,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1106
1150
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1107
1151
  onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
1108
1152
  }, {
1109
- th: L(({ th: t }) => [
1110
- J("div", { innerHTML: t }, null, 8, il)
1153
+ th: _(({ th: t }) => [
1154
+ J("div", { innerHTML: t }, null, 8, vl)
1111
1155
  ]),
1112
- td: L(({ td: t }) => [
1156
+ td: _(({ td: t }) => [
1113
1157
  Jt(T(isNaN(Number(t)) ? t : g(q)({
1114
1158
  p: e.value.style.chart.bars.dataLabels.prefix,
1115
1159
  v: t,
@@ -1121,10 +1165,10 @@ const ma = ["id"], pa = ["xmlns", "viewBox"], xa = ["x", "y", "width", "height"]
1121
1165
  }, 8, ["colNames", "head", "body", "config", "title"])
1122
1166
  ]),
1123
1167
  _: 1
1124
- }, 8, ["config"])) : d("", !0)
1125
- ], 46, ma));
1168
+ }, 8, ["config"])) : y("", !0)
1169
+ ], 46, xa));
1126
1170
  }
1127
- }, wl = /* @__PURE__ */ fa(nl, [["__scopeId", "data-v-7ee2b419"]]);
1171
+ }, _l = /* @__PURE__ */ pa(hl, [["__scopeId", "data-v-f4c2410e"]]);
1128
1172
  export {
1129
- wl as default
1173
+ _l as default
1130
1174
  };