vue-data-ui 2.16.4 → 2.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +2 -2
  2. package/dist/{Arrow-CQWVJ5sZ.js → Arrow-DCqxVwey.js} +1 -1
  3. package/dist/{BaseDraggableDialog-Fz8fA4VM.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
  4. package/dist/{BaseIcon-CfYrW3zO.js → BaseIcon-Bn996RXm.js} +1 -1
  5. package/dist/{ColorPicker-B2ITT7Lp.js → ColorPicker-OFfLkKNb.js} +2 -2
  6. package/dist/{DataTable-C6IBsdXI.js → DataTable-CHBLjKtZ.js} +2 -2
  7. package/dist/{Legend-bIoNrGWy.js → Legend-nBXoxXJH.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-BsSwoYpL.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
  9. package/dist/{PackageVersion-DfefmcMg.js → PackageVersion-Bg_9KCU-.js} +1 -1
  10. package/dist/{PenAndPaper-CixPm-N0.js → PenAndPaper-BPTpbnay.js} +3 -3
  11. package/dist/{Shape-dKMmmbg5.js → Shape-Bnf512BA.js} +1 -1
  12. package/dist/{Slicer-szgfOkiL.js → Slicer-BrqtJG2E.js} +2 -2
  13. package/dist/{SparkTooltip-D_NmtqzO.js → SparkTooltip-C-rLATAw.js} +1 -1
  14. package/dist/{Title-DTuTBtAe.js → Title-Gi81VwUM.js} +1 -1
  15. package/dist/{Tooltip-CVPiPR9d.js → Tooltip-CJxVw7-T.js} +1 -1
  16. package/dist/{UserOptions-D8SRavqE.js → UserOptions-CBEK6_jo.js} +137 -129
  17. package/dist/{dom-to-png-Br5bL5eX.js → dom-to-png-CRHNL8VU.js} +1 -1
  18. package/dist/img-BgOg8opa.js +27 -0
  19. package/dist/{index-BsirVW_m.js → index-DvIXJm6t.js} +1 -1
  20. package/dist/{pdf-BBk37REU.js → pdf-DhTxBrbJ.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +2 -2
  23. package/dist/types/vue-data-ui.d.ts +2 -2
  24. package/dist/{useNestedProp-Ej-oqNyf.js → useNestedProp-DrYHm61t.js} +1 -1
  25. package/dist/{usePrinter-Dpd-vZym.js → usePrinter-CWnXbGMb.js} +2 -2
  26. package/dist/{vue-data-ui-Bd_shukQ.js → vue-data-ui-B8EWlMIK.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Baaeejpi.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
  29. package/dist/{vue-ui-accordion-D2TcT2US.js → vue-ui-accordion-D55kCO5G.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BW2q5yMT.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
  31. package/dist/{vue-ui-annotator-DR6dXmoQ.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
  32. package/dist/{vue-ui-bullet-BYvOXGoO.js → vue-ui-bullet-FeScjj7q.js} +23 -22
  33. package/dist/{vue-ui-candlestick-DXGY7-1u.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
  34. package/dist/{vue-ui-carousel-table-DpRdTSdS.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
  35. package/dist/{vue-ui-chestnut--uqQw5gd.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
  36. package/dist/{vue-ui-chord-C6z1Oi8y.js → vue-ui-chord-BgLbFBT9.js} +87 -86
  37. package/dist/{vue-ui-circle-pack-BgtFPkv2.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
  38. package/dist/{vue-ui-cursor-C_KZ7SW0.js → vue-ui-cursor-DWmfnM25.js} +2 -2
  39. package/dist/{vue-ui-dashboard-YSzYS59X.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
  40. package/dist/{vue-ui-digits-B6Ej5XbC.js → vue-ui-digits-BgQch3Fc.js} +2 -2
  41. package/dist/{vue-ui-donut-BYouj_X8.js → vue-ui-donut-B59bCV5_.js} +74 -73
  42. package/dist/{vue-ui-donut-evolution-DHIMoo_a.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
  43. package/dist/{vue-ui-dumbbell-rHe7aWF7.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
  44. package/dist/{vue-ui-flow-hV-6uTPS.js → vue-ui-flow-DxF0ELtv.js} +9 -8
  45. package/dist/{vue-ui-funnel-45FdkG1w.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-yg-YRwYP.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
  47. package/dist/{vue-ui-gauge-Ccf__w06.js → vue-ui-gauge-D7arhDmb.js} +8 -7
  48. package/dist/{vue-ui-gizmo-CxSBWMgK.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cz1GzvLQ.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
  50. package/dist/{vue-ui-history-plot-DChEbCv0.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
  51. package/dist/{vue-ui-kpi-D1cHw1LD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-FxoEnicn.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
  53. package/dist/{vue-ui-molecule-BvGzvTQc.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-DomwWh69.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-BrC9S0cw.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
  56. package/dist/{vue-ui-onion-YvCPFGpJ.js → vue-ui-onion-Buu4VX3u.js} +40 -39
  57. package/dist/{vue-ui-parallel-coordinate-plot-D_ji0o1R.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
  58. package/dist/{vue-ui-quadrant-B1xa2r0Q.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
  59. package/dist/{vue-ui-quick-chart-ClCOLJ5y.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
  60. package/dist/{vue-ui-radar-B460wd0h.js → vue-ui-radar-68NMPxxQ.js} +26 -25
  61. package/dist/{vue-ui-rating-D1_WFLlk.js → vue-ui-rating-swH9kRr3.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-ECKEkE2-.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
  63. package/dist/{vue-ui-ridgeline-E-1Lcv1j.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
  64. package/dist/{vue-ui-rings-BsSwSht6.js → vue-ui-rings-M-9dPI5D.js} +45 -44
  65. package/dist/{vue-ui-scatter-CVEd6_m1.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
  66. package/dist/{vue-ui-skeleton-CchtfQiJ.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
  67. package/dist/{vue-ui-smiley-CkedzX6d.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-ByPzMHci.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DoVR95AR.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B9WEsmn8.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B5Ub1nsA.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BqHPNt6h.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BhL0IxK5.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CuSsigBj.js → vue-ui-stackbar-BDpMsTYe.js} +277 -275
  75. package/dist/{vue-ui-strip-plot-BTqp8p9u.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
  76. package/dist/{vue-ui-table-Du7un5Fm.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-YxGFfRC3.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-Bbt4GjUn.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
  79. package/dist/{vue-ui-thermometer-Cnc4zVKO.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
  80. package/dist/{vue-ui-timer-DgVQY-BQ.js → vue-ui-timer-Bes74INL.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BTHDxycu.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
  82. package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
  83. package/dist/{vue-ui-vertical-bar-C5aombcF.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
  84. package/dist/{vue-ui-waffle-DHDmy4xh.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
  85. package/dist/{vue-ui-wheel-DmPltDq0.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
  86. package/dist/{vue-ui-word-cloud-D15rS85A.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
  87. package/dist/{vue-ui-world-9lR_bov_.js → vue-ui-world-B9PxVO4n.js} +8 -7
  88. package/dist/{vue-ui-xy-DnEdi5Hn.js → vue-ui-xy-DtJ7qJib.js} +69 -68
  89. package/dist/{vue-ui-xy-canvas-BaZZ7r1e.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
  90. package/package.json +1 -1
  91. package/dist/img-BOi0vhPf.js +0 -20
  92. package/dist/vue-ui-treemap-B96LGRM_.js +0 -952
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as X, useSlots as Jt, computed as z, ref as p, onMounted as ot, watch as it, shallowRef as nt, onBeforeUnmount as qt, nextTick as fe, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as g, renderSlot as k, createElementVNode as J, createVNode as ie, createSlots as ut, withCtx as _, normalizeProps as D, guardReactiveProps as E, Fragment as v, renderList as f, mergeProps as Te, toDisplayString as M, createTextVNode as Zt } from "vue";
2
- import { u as Kt, c as ct, t as Qt, p as me, a as jt, C as ee, b as ea, o as ta, e as ht, g as aa, d as la, al as pe, ai as vt, D as dt, X as ra, l as sa, a7 as xe, F as yt, i as ke, f as q, I as oa, am as ia, x as gt, q as na, r as ua, y as ca } from "./index-BsirVW_m.js";
3
- import { u as bt } from "./useNestedProp-Ej-oqNyf.js";
4
- import { t as ha, u as va } from "./useResponsive-DfdjqQps.js";
5
- import { u as da } from "./usePrinter-Dpd-vZym.js";
6
- import { u as ya } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ga } from "./useChartAccessibility-9icAAmYg.js";
8
- import ba from "./Legend-bIoNrGWy.js";
9
- import { S as fa } from "./Slicer-szgfOkiL.js";
10
- import ma from "./Title-DTuTBtAe.js";
11
- import { _ as pa } from "./Shape-dKMmmbg5.js";
12
- import { u as xa } from "./useTimeLabels-Mrr0jrpL.js";
13
- import { _ as ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"], Ca = { key: 1 }, _a = ["id"], Sa = ["stop-color"], $a = ["stop-color"], Ta = ["stop-color"], Ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pa = { key: 0 }, Ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Aa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Da = { key: 0 }, Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x", "y", "font-size", "fill", "font-weight"], Wa = ["transform", "font-size", "fill", "font-weight"], Ya = ["x", "y", "font-size", "fill", "font-weight"], Xa = { key: 0 }, Ga = ["x", "y", "font-size", "font-weight", "fill"], Ja = ["x", "y", "font-size", "fill", "font-weight"], qa = { key: 0 }, Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["x", "y", "font-size", "font-weight", "fill"], ja = ["x1", "x2", "y1", "y2", "stroke"], el = ["font-size", "font-weight", "fill", "text-anchor", "transform"], tl = { key: 0 }, al = { key: 1 }, ll = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], rl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], sl = { key: 0 }, ol = { key: 1 }, il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], nl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], ul = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], cl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], hl = {
1
+ import { defineAsyncComponent as X, useSlots as qt, computed as w, ref as p, onMounted as nt, watch as ut, shallowRef as ct, onBeforeUnmount as Zt, nextTick as fe, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as g, renderSlot as z, createElementVNode as J, createVNode as ie, createSlots as ht, withCtx as _, normalizeProps as F, guardReactiveProps as U, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Kt } from "vue";
2
+ import { u as Qt, c as vt, t as jt, p as me, a as ea, C as ee, b as ta, o as aa, e as dt, g as la, d as ra, al as pe, ai as yt, D as gt, X as sa, l as oa, a7 as xe, F as bt, i as ke, f as q, I as ia, am as na, x as ft, q as ua, r as ca, y as ha } from "./index-DvIXJm6t.js";
3
+ import { u as mt } from "./useNestedProp-DrYHm61t.js";
4
+ import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
5
+ import { u as ya } from "./usePrinter-CWnXbGMb.js";
6
+ import { u as ga } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ba } from "./useChartAccessibility-9icAAmYg.js";
8
+ import fa from "./Legend-nBXoxXJH.js";
9
+ import { S as ma } from "./Slicer-BrqtJG2E.js";
10
+ import pa from "./Title-Gi81VwUM.js";
11
+ import { _ as xa } from "./Shape-Bnf512BA.js";
12
+ import { u as ka } from "./useTimeLabels-Mrr0jrpL.js";
13
+ import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"], _a = { key: 1 }, Sa = ["id"], $a = ["stop-color"], Ma = ["stop-color"], Ta = ["stop-color"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = { key: 0 }, Ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = { key: 0 }, Da = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ua = { key: 0 }, Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = ["transform", "font-size", "fill", "font-weight"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x", "y", "font-size", "fill", "font-weight"], Za = { key: 0 }, Ka = ["x", "y", "font-size", "font-weight", "fill"], Qa = ["x1", "x2", "y1", "y2", "stroke"], ja = ["x", "y", "font-size", "font-weight", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], al = { key: 0 }, ll = { key: 1 }, rl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], sl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ol = { key: 0 }, il = { key: 1 }, nl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], ul = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], cl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], hl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], vl = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, vl = ["onClick"], dl = ["innerHTML"], yl = {
17
+ }, dl = ["onClick"], yl = ["innerHTML"], gl = {
18
18
  __name: "vue-ui-stackbar",
19
19
  props: {
20
20
  config: {
@@ -31,41 +31,41 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
34
- setup(we, { expose: ft, emit: mt }) {
35
- const pt = X(() => import("./vue-ui-accordion-D2TcT2US.js")), xt = X(() => import("./DataTable-C6IBsdXI.js")), kt = X(() => import("./PackageVersion-DfefmcMg.js")), wt = X(() => import("./PenAndPaper-CixPm-N0.js")), zt = X(() => import("./vue-ui-skeleton-CchtfQiJ.js")), Lt = X(() => import("./Tooltip-CVPiPR9d.js")), Ct = X(() => import("./UserOptions-D8SRavqE.js")), { vue_ui_stackbar: _t } = Kt(), St = Jt(), b = we, ze = mt, Z = z({
34
+ setup(we, { expose: pt, emit: xt }) {
35
+ const kt = X(() => import("./vue-ui-accordion-D55kCO5G.js")), wt = X(() => import("./DataTable-CHBLjKtZ.js")), zt = X(() => import("./PackageVersion-Bg_9KCU-.js")), Lt = X(() => import("./PenAndPaper-BPTpbnay.js")), Ct = X(() => import("./vue-ui-skeleton-BAOt2neL.js")), _t = X(() => import("./Tooltip-CJxVw7-T.js")), St = X(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_stackbar: $t } = Qt(), Mt = qt(), b = we, ze = xt, Z = w({
36
36
  get() {
37
37
  return !!b.dataset && b.dataset.length;
38
38
  },
39
39
  set(a) {
40
40
  return a;
41
41
  }
42
- }), te = p(null), R = p(ct()), ne = p(!1), Le = p(null), Ce = p(""), S = p([]), Me = p(0), Ne = p(null), Ie = p(null), Oe = p(null), Pe = p(null), Re = p(0), ue = p(!1), ae = p(null), H = p(!1), $t = p(0), Tt = p(0), Mt = p(0), K = p(null);
43
- ot(() => {
42
+ }), te = p(null), V = p(vt()), ne = p(!1), Le = p(null), Ce = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Pe = p(null), Oe = p(null), Ve = p(0), ue = p(!1), ae = p(null), E = p(!1), Tt = p(0), Nt = p(0), It = p(0), K = p(null);
43
+ nt(() => {
44
44
  Se();
45
45
  });
46
- const e = z({
47
- get: () => De(),
46
+ const e = w({
47
+ get: () => Fe(),
48
48
  set: (a) => a
49
- }), { userOptionsVisible: _e, setUserOptionsVisibility: Ve, keepUserOptionState: Ae } = ya({ config: e.value }), { svgRef: Fe } = ga({ config: e.value.style.chart.title });
50
- function De() {
51
- const a = bt({
49
+ }), { userOptionsVisible: _e, setUserOptionsVisibility: Re, keepUserOptionState: Ae } = ga({ config: e.value }), { svgRef: De } = ba({ config: e.value.style.chart.title });
50
+ function Fe() {
51
+ const a = mt({
52
52
  userConfig: b.config,
53
- defaultConfig: _t
53
+ defaultConfig: $t
54
54
  });
55
55
  let r = {};
56
56
  return a.theme ? r = {
57
- ...bt({
58
- userConfig: jt.vue_ui_stackbar[a.theme] || b.config,
57
+ ...mt({
58
+ userConfig: ea.vue_ui_stackbar[a.theme] || b.config,
59
59
  defaultConfig: a
60
60
  }),
61
- customPalette: Qt[a.theme] || me
61
+ customPalette: jt[a.theme] || me
62
62
  } : r = a, b.config && ee(b.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = b.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, b.config && ee(b.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = b.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, b.config && ee(b.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = b.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, b.config && ee(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, b.config && ee(b.config, "style.chart.bars.dataLabels.hideUnderValue") ? r.style.chart.bars.dataLabels.hideUnderValue = b.config.style.chart.bars.dataLabels.hideUnderValue : r.style.chart.bars.dataLabels.hideUnderValue = null, b.config && ee(b.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? r.style.chart.bars.dataLabels.hideUnderPercentage = b.config.style.chart.bars.dataLabels.hideUnderPercentage : r.style.chart.bars.dataLabels.hideUnderPercentage = null, r;
63
63
  }
64
- const Nt = z(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), It = z(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
65
- it(() => b.config, (a) => {
66
- e.value = De(), _e.value = !e.value.userOptions.showOnChartHover, Se(), $t.value += 1, Tt.value += 1, Mt.value += 1, L.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show;
67
- }, { deep: !0 }), it(() => b.dataset, (a) => {
68
- Ye();
64
+ const Ue = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
65
+ ut(() => b.config, (a) => {
66
+ e.value = Fe(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Tt.value += 1, Nt.value += 1, It.value += 1, L.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show;
67
+ }, { deep: !0 }), ut(() => b.dataset, (a) => {
68
+ Ge();
69
69
  }, { deep: !0 });
70
70
  const L = p({
71
71
  dataLabels: {
@@ -73,8 +73,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
73
73
  },
74
74
  showTable: e.value.table.show,
75
75
  showTooltip: e.value.style.chart.tooltip.show
76
- }), { isPrinting: Ee, isImaging: He, generatePdf: Ue, generateImage: Be } = da({
77
- elementId: `stackbar_${R.value}`,
76
+ }), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } = ya({
77
+ elementId: `stackbar_${V.value}`,
78
78
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
79
79
  options: e.value.userOptions.print
80
80
  }), ce = p({
@@ -86,20 +86,20 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
86
86
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
87
  left: e.value.style.chart.padding.left / e.value.style.chart.width
88
88
  }
89
- }), Ot = z(() => ea(e.value.customPalette)), V = nt(null), Q = nt(null), We = p(null);
90
- ot(() => {
89
+ }), Pt = w(() => ta(e.value.customPalette)), R = ct(null), Q = ct(null), Xe = p(null);
90
+ nt(() => {
91
91
  Se();
92
92
  });
93
93
  function Se() {
94
- if (ta(b.dataset) ? ht({
94
+ if (aa(b.dataset) ? dt({
95
95
  componentName: "VueUiStackbar",
96
96
  type: "dataset"
97
97
  }) : b.dataset.forEach((a, r) => {
98
- aa({
98
+ la({
99
99
  datasetObject: a,
100
100
  requiredAttributes: ["name", "series"]
101
101
  }).forEach((t) => {
102
- Z.value = !1, ht({
102
+ Z.value = !1, dt({
103
103
  componentName: "VueUiStackbar",
104
104
  type: "datasetSerieAttribute",
105
105
  property: t,
@@ -107,32 +107,32 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
107
107
  });
108
108
  });
109
109
  }), setTimeout(() => {
110
- H.value = !0;
110
+ E.value = !0;
111
111
  }, 10), e.value.responsive) {
112
- const a = ha(() => {
113
- H.value = !1;
114
- const { width: r, height: t } = va({
112
+ const a = va(() => {
113
+ E.value = !1;
114
+ const { width: r, height: t } = da({
115
115
  chart: te.value,
116
116
  title: e.value.style.chart.title.text ? Ne.value : null,
117
117
  legend: e.value.style.chart.legend.show ? Ie.value : null,
118
- slicer: e.value.style.chart.zoom.show && F.value > 1 ? Oe.value : null,
119
- source: Pe.value
118
+ slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
119
+ source: Oe.value
120
120
  });
121
121
  requestAnimationFrame(() => {
122
- ce.value.width = r, ce.value.height = t, clearTimeout(We.value), We.value = setTimeout(() => {
123
- H.value = !0;
122
+ ce.value.width = r, ce.value.height = t, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
123
+ E.value = !0;
124
124
  }, 10);
125
125
  });
126
126
  });
127
- V.value && (Q.value && V.value.unobserve(Q.value), V.value.disconnect()), V.value = new ResizeObserver(a), Q.value = te.value.parentNode, V.value.observe(Q.value);
127
+ R.value && (Q.value && R.value.unobserve(Q.value), R.value.disconnect()), R.value = new ResizeObserver(a), Q.value = te.value.parentNode, R.value.observe(Q.value);
128
128
  }
129
- Xe();
129
+ Je();
130
130
  }
131
- qt(() => {
132
- V.value && (Q.value && V.value.unobserve(Q.value), V.value.disconnect());
131
+ Zt(() => {
132
+ R.value && (Q.value && R.value.unobserve(Q.value), R.value.disconnect());
133
133
  });
134
- const o = z(() => {
135
- const { height: a, width: r } = ce.value, { right: t } = ce.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, U = r - C - r * t, B = a - l - e.value.style.chart.padding.bottom;
134
+ const o = w(() => {
135
+ const { height: a, width: r } = ce.value, { right: t } = ce.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, H = r - C - r * t, B = a - l - e.value.style.chart.padding.bottom;
136
136
  return {
137
137
  chartHeight: a,
138
138
  chartWidth: r,
@@ -140,11 +140,11 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
140
140
  right: c,
141
141
  bottom: u,
142
142
  left: C,
143
- width: U,
143
+ width: H,
144
144
  height: B < 0 ? 0 : B
145
145
  };
146
- }), A = z(() => b.dataset.map((a, r) => {
147
- const t = la(a.color) || Ot.value[r] || me[r] || me[r % me.length];
146
+ }), A = w(() => b.dataset.map((a, r) => {
147
+ const t = ra(a.color) || Pt.value[r] || me[r] || me[r % me.length];
148
148
  return {
149
149
  ...a,
150
150
  // In distributed mode, all values are converted to positive
@@ -152,33 +152,33 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
152
152
  // Store signs to manage display of neg values in distributed mode
153
153
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
154
154
  absoluteIndex: r,
155
- id: ct(),
155
+ id: vt(),
156
156
  color: t
157
157
  };
158
- })), F = z(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
158
+ })), D = w(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
159
159
  start: 0,
160
160
  end: Math.max(...b.dataset.map((a) => a.series.length))
161
161
  });
162
- function Ye() {
163
- Xe();
162
+ function Ge() {
163
+ Je();
164
164
  }
165
- async function Xe() {
166
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await fe(), await fe(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await fe(), await fe(), K.value && K.value.setEndValue(Pt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
165
+ async function Je() {
166
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await fe(), await fe(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await fe(), await fe(), K.value && K.value.setEndValue(Ot(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
167
167
  start: 0,
168
168
  end: Math.max(...b.dataset.map((a) => a.series.length))
169
- }, Re.value += 1);
169
+ }, Ve.value += 1);
170
170
  }
171
- function Pt(a) {
171
+ function Ot(a) {
172
172
  const r = Math.max(...b.dataset.map((t) => t.series.length));
173
173
  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;
174
174
  }
175
- const d = z(() => {
175
+ const d = w(() => {
176
176
  let a;
177
177
  return e.value.orientation === "vertical" ? a = o.value.width / (h.value.end - h.value.start) : a = o.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
178
- }), le = z(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Rt = z(() => pe(A.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
178
+ }), le = w(() => pe(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Vt = w(() => pe(A.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
179
179
  ...a,
180
180
  series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
181
- }))).slice(h.value.start, h.value.end)), he = z(() => {
181
+ }))).slice(h.value.start, h.value.end)), he = w(() => {
182
182
  const a = A.value.filter((r) => !S.value.includes(r.id));
183
183
  return {
184
184
  positive: pe(a.map((r) => ({
@@ -190,8 +190,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
190
190
  series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
191
191
  })))
192
192
  };
193
- }), O = z(() => {
194
- 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(...he.value.positive), r = Math.min(...he.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) : dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
193
+ }), P = w(() => {
194
+ 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(...he.value.positive), r = Math.min(...he.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) ? yt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : gt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
195
195
  return l.ticks.map((c) => ({
196
196
  zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
197
197
  y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -201,46 +201,46 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
201
201
  horizontal_y: o.value.bottom - 8,
202
202
  value: c
203
203
  }));
204
- }), $ = z(() => xa({
204
+ }), $ = w(() => ka({
205
205
  values: e.value.style.chart.grid.x.timeLabels.values,
206
- maxDatapoints: F.value,
206
+ maxDatapoints: D.value,
207
207
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
208
208
  start: h.value.start,
209
209
  end: h.value.end
210
- })), w = z(() => {
210
+ })), k = w(() => {
211
211
  if (!Z.value) return [];
212
- 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);
213
- const c = Math.max(...he.value.positive) || 0, u = Math.min(...he.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, U = !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 : C > 0 ? 0 : C, 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 : C > 0 ? 0 : C, 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: re } = U, W = re + (B >= 0 ? 0 : Math.abs(B)) || 1, T = o.value.height, be = o.value.width, rt = O.value[0] ? O.value[0].zero : o.value.bottom, st = O.value[0] ? O.value[0].horizontal_zero : o.value.left;
212
+ let a = Array(D.value).fill(0), r = Array(D.value).fill(0), t = Array(D.value).fill(0), l = Array(D.value).fill(0);
213
+ const c = Math.max(...he.value.positive) || 0, u = Math.min(...he.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, H = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? yt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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) : gt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : C > 0 ? 0 : C, 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: re } = H, W = re + (B >= 0 ? 0 : Math.abs(B)) || 1, M = o.value.height, be = o.value.width, ot = P.value[0] ? P.value[0].zero : o.value.bottom, it = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
214
214
  return A.value.filter((se) => !S.value.includes(se.id)).map((se) => {
215
- const P = se.series.slice(h.value.start, h.value.end), Et = se.signedSeries.slice(h.value.start, h.value.end), Ht = P.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Ut = P.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Bt = P.map((m, x) => {
215
+ const O = se.series.slice(h.value.start, h.value.end), Et = se.signedSeries.slice(h.value.start, h.value.end), Ht = O.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Bt = O.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Wt = O.map((m, x) => {
216
216
  const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
217
217
  let Y, I;
218
- return m > 0 ? (I = T * N, Y = rt - I - a[x], a[x] += I) : (I = T * N, Y = rt + t[x], t[x] += Math.abs(I)), Y;
219
- }), Wt = P.map((m, x) => {
218
+ return m > 0 ? (I = M * N, Y = ot - I - a[x], a[x] += I) : (I = M * N, Y = ot + t[x], t[x] += Math.abs(I)), Y;
219
+ }), Yt = O.map((m, x) => {
220
220
  const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
221
221
  let Y, I;
222
- return m > 0 ? (I = be * N, Y = st + r[x], r[x] += I) : (I = be * N, Y = st - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
223
- }), Yt = P.map((m, x) => {
222
+ return m > 0 ? (I = be * N, Y = it + r[x], r[x] += I) : (I = be * N, Y = it - Math.abs(I) - l[x], l[x] += Math.abs(I)), Y;
223
+ }), Xt = O.map((m, x) => {
224
224
  const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
225
- return m > 0 ? T * N : T * Math.abs(N);
226
- }), Xt = P.map((m, x) => {
225
+ return m > 0 ? M * N : M * Math.abs(N);
226
+ }), Gt = O.map((m, x) => {
227
227
  const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
228
228
  return m > 0 ? be * N : be * Math.abs(N);
229
- }), Gt = P.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
229
+ }), Jt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
230
230
  return {
231
231
  ...se,
232
- proportions: P.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Gt),
233
- series: P,
232
+ proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Jt),
233
+ series: O,
234
234
  signedSeries: Et,
235
235
  x: Ht,
236
- y: Bt,
237
- height: Yt,
238
- horizontal_width: Xt,
239
- horizontal_y: Ut,
240
- horizontal_x: Wt
236
+ y: Wt,
237
+ height: Xt,
238
+ horizontal_width: Gt,
239
+ horizontal_y: Bt,
240
+ horizontal_x: Yt
241
241
  };
242
242
  });
243
- }), Ge = z(() => Rt.value.map((a, r) => ({
243
+ }), qe = w(() => Vt.value.map((a, r) => ({
244
244
  value: a,
245
245
  sign: a >= 0 ? 1 : -1
246
246
  })));
@@ -258,7 +258,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
258
258
  { datapoint: r, seriesIndex: t, datapointIndex: l }
259
259
  );
260
260
  }
261
- function Je(a, r, t, l) {
261
+ function Ze(a, r, t, l) {
262
262
  return ke(
263
263
  e.value.style.chart.bars.dataLabels.formatter,
264
264
  a,
@@ -270,8 +270,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
270
270
  { datapoint: r, seriesIndex: t, datapointIndex: l }
271
271
  );
272
272
  }
273
- function qe(a) {
274
- const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
273
+ function Ke(a) {
274
+ const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
275
275
  name: t.name,
276
276
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
277
277
  proportion: t.proportions[a] || null,
@@ -280,9 +280,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
280
280
  }));
281
281
  ze("selectDatapoint", { datapoint: r, period: $.value[a] });
282
282
  }
283
- function Ze(a) {
283
+ function Qe(a) {
284
284
  ae.value = a, ne.value = !0;
285
- const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
285
+ const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((c) => ({
286
286
  name: c.name,
287
287
  absoluteIndex: c.absoluteIndex,
288
288
  value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
@@ -294,19 +294,19 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
294
294
  datapoint: t,
295
295
  seriesIndex: a,
296
296
  config: e.value,
297
- series: w.value
297
+ series: k.value
298
298
  };
299
299
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
300
- if (gt(r) && ca(() => r({
300
+ if (ft(r) && ha(() => r({
301
301
  seriesIndex: a,
302
302
  datapoint: t,
303
- series: w.value,
303
+ series: k.value,
304
304
  config: e.value
305
305
  })))
306
306
  Ce.value = r({
307
307
  seriesIndex: a,
308
308
  datapoint: t,
309
- series: w.value,
309
+ series: k.value,
310
310
  config: e.value
311
311
  });
312
312
  else {
@@ -314,7 +314,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
314
314
  showValue: c,
315
315
  showPercentage: u,
316
316
  borderColor: C,
317
- roundingValue: U,
317
+ roundingValue: H,
318
318
  roundingPercentage: B
319
319
  } = e.value.style.chart.tooltip;
320
320
  let re = "";
@@ -323,17 +323,17 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
323
323
  c && u ? "(" : "",
324
324
  c && u ? ")" : ""
325
325
  ];
326
- t.reverse().forEach((T) => {
326
+ t.reverse().forEach((M) => {
327
327
  re += `
328
328
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
329
- <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${T.id})` : T.color}"/>${St.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${R.value}_${T.absoluteIndex})"/>` : ""}</svg>
330
- ${T.name}${c || u ? ":" : ""} ${c ? q({
329
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${M.id})` : M.color}"/>${Mt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${M.absoluteIndex})"/>` : ""}</svg>
330
+ ${M.name}${c || u ? ":" : ""} ${c ? q({
331
331
  p: e.value.style.chart.bars.dataLabels.prefix,
332
- v: T.value,
332
+ v: M.value,
333
333
  s: e.value.style.chart.bars.dataLabels.suffix,
334
- r: U
334
+ r: H
335
335
  }) : ""} ${W[0]}${u ? q({
336
- v: isNaN(T.value / l) ? 0 : Math.abs(T.value) / l * 100,
336
+ v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
337
337
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
338
338
  s: "%",
339
339
  r: B
@@ -343,24 +343,24 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
343
343
  }), Ce.value = `<div>${re}</div>`;
344
344
  }
345
345
  }
346
- function Vt(a) {
347
- ue.value = a, Me.value += 1;
346
+ function Rt(a) {
347
+ ue.value = a, Te.value += 1;
348
348
  }
349
- function Ke() {
349
+ function je() {
350
350
  L.value.showTable = !L.value.showTable;
351
351
  }
352
- function Qe() {
352
+ function et() {
353
353
  L.value.dataLabels.show = !L.value.dataLabels.show;
354
354
  }
355
- function je() {
355
+ function tt() {
356
356
  L.value.showTooltip = !L.value.showTooltip;
357
357
  }
358
358
  function At() {
359
- return w.value;
359
+ return k.value;
360
360
  }
361
- const et = z(() => {
362
- if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
363
- const a = w.value.map(({ name: t, color: l }) => ({
361
+ const at = w(() => {
362
+ if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
363
+ const a = k.value.map(({ name: t, color: l }) => ({
364
364
  label: t,
365
365
  color: l
366
366
  })), r = [];
@@ -371,16 +371,16 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
371
371
  }), r.push(l);
372
372
  }), { head: a, body: r };
373
373
  });
374
- function tt(a = null) {
375
- const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...et.value.head.map((C) => C.label)], l = et.value.body, c = r.concat([t]).concat(l), u = na(c);
376
- a ? a(u) : ua({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
374
+ function lt(a = null) {
375
+ const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...at.value.head.map((C) => C.label)], l = at.value.body, c = r.concat([t]).concat(l), u = ua(c);
376
+ a ? a(u) : ca({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
377
377
  }
378
- const de = z(() => {
379
- 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>');
378
+ const de = w(() => {
379
+ const a = [""].concat(k.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>');
380
380
  let r = [];
381
- for (let c = 0; c < F.value; c += 1) {
382
- const u = w.value.map((C) => C.series[c] ?? 0).reduce((C, U) => C + U, 0);
383
- r.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
381
+ for (let c = 0; c < D.value; c += 1) {
382
+ const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, H) => C + H, 0);
383
+ r.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(k.value.map((C) => (C.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
384
384
  }
385
385
  const t = {
386
386
  th: {
@@ -394,26 +394,26 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
394
394
  outline: e.value.table.td.outline
395
395
  },
396
396
  breakpoint: e.value.table.responsiveBreakpoint
397
- }, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
397
+ }, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
398
398
  return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
399
399
  });
400
- function Ft(a, r) {
401
- if (ze("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
400
+ function Dt(a, r) {
401
+ if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
402
402
  S.value = S.value.filter((t) => t !== r.id);
403
403
  else {
404
404
  if (S.value.length === A.value.length - 1) return;
405
405
  S.value.push(r.id);
406
406
  }
407
407
  }
408
- const at = z(() => A.value.map((a, r) => ({
408
+ const rt = w(() => A.value.map((a, r) => ({
409
409
  ...a,
410
410
  shape: "square"
411
411
  })).map((a) => ({
412
412
  ...a,
413
413
  opacity: S.value.includes(a.id) ? 0.5 : 1,
414
- segregate: () => Ft(a.absoluteIndex, a),
414
+ segregate: () => Dt(a.absoluteIndex, a),
415
415
  isSegregated: S.value.includes(a.id)
416
- }))), Dt = z(() => ({
416
+ }))), Ft = w(() => ({
417
417
  cy: "stackbar-legend",
418
418
  backgroundColor: e.value.style.chart.legend.backgroundColor,
419
419
  color: e.value.style.chart.legend.color,
@@ -425,7 +425,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
425
425
  ye.value = !ye.value;
426
426
  }
427
427
  function ge(a, r) {
428
- const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
428
+ const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
429
429
  name: l.name,
430
430
  value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
431
431
  proportion: l.proportions[r] || null,
@@ -438,43 +438,44 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
438
438
  label: a.text
439
439
  });
440
440
  }
441
- function lt(a, r) {
442
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? It.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Nt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
441
+ const Ut = w(() => Math.max(...k.value.flatMap((a) => a.series)));
442
+ function st(a, r) {
443
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ee.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : Ee.value ? (Ue.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > Ut.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Ue.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
443
444
  }
444
- return ft({
445
+ return pt({
445
446
  getData: At,
446
- generatePdf: Ue,
447
- generateCsv: tt,
448
- generateImage: Be,
449
- toggleTable: Ke,
450
- toggleLabels: Qe,
451
- toggleTooltip: je,
447
+ generatePdf: We,
448
+ generateCsv: lt,
449
+ generateImage: Ye,
450
+ toggleTable: je,
451
+ toggleLabels: et,
452
+ toggleTooltip: tt,
452
453
  toggleAnnotator: $e
453
454
  }), (a, r) => (s(), n("div", {
454
- id: `stackbar_${R.value}`,
455
+ id: `stackbar_${V.value}`,
455
456
  ref_key: "stackbarChart",
456
457
  ref: te,
457
458
  class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
458
459
  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%" : ""}`),
459
- onMouseenter: r[6] || (r[6] = () => y(Ve)(!0)),
460
- onMouseleave: r[7] || (r[7] = () => y(Ve)(!1))
460
+ onMouseenter: r[6] || (r[6] = () => y(Re)(!0)),
461
+ onMouseleave: r[7] || (r[7] = () => y(Re)(!1))
461
462
  }, [
462
- e.value.userOptions.buttons.annotator ? (s(), j(y(wt), {
463
+ e.value.userOptions.buttons.annotator ? (s(), j(y(Lt), {
463
464
  key: 0,
464
- svgRef: y(Fe),
465
+ svgRef: y(De),
465
466
  backgroundColor: e.value.style.chart.backgroundColor,
466
467
  color: e.value.style.chart.color,
467
468
  active: ye.value,
468
469
  onClose: $e
469
470
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
470
- k(a.$slots, "userConfig", {}, void 0, !0),
471
+ z(a.$slots, "userConfig", {}, void 0, !0),
471
472
  e.value.style.chart.title.text ? (s(), n("div", {
472
473
  key: 1,
473
474
  ref_key: "chartTitle",
474
475
  ref: Ne,
475
476
  style: "width:100%;background:transparent;padding-bottom:24px"
476
477
  }, [
477
- ie(ma, {
478
+ ie(pa, {
478
479
  config: {
479
480
  title: {
480
481
  cy: "stackbar-title",
@@ -487,14 +488,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
487
488
  }
488
489
  }, null, 8, ["config"])
489
490
  ], 512)) : g("", !0),
490
- e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(Ct), {
491
+ e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(St), {
491
492
  ref: "details",
492
- key: `user_option_${Me.value}`,
493
+ key: `user_option_${Te.value}`,
493
494
  backgroundColor: e.value.style.chart.backgroundColor,
494
495
  color: e.value.style.chart.color,
495
- isPrinting: y(Ee),
496
- isImaging: y(He),
497
- uid: R.value,
496
+ isPrinting: y(He),
497
+ isImaging: y(Be),
498
+ uid: V.value,
498
499
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
499
500
  hasPdf: e.value.userOptions.buttons.pdf,
500
501
  hasImg: e.value.userOptions.buttons.img,
@@ -510,91 +511,92 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
510
511
  hasAnnotator: e.value.userOptions.buttons.annotator,
511
512
  isAnnotation: ye.value,
512
513
  callbacks: e.value.userOptions.callbacks,
513
- onToggleFullscreen: Vt,
514
- onGeneratePdf: y(Ue),
515
- onGenerateCsv: tt,
516
- onGenerateImage: y(Be),
517
- onToggleTable: Ke,
518
- onToggleLabels: Qe,
519
- onToggleTooltip: je,
514
+ printScale: e.value.userOptions.print.scale,
515
+ onToggleFullscreen: Rt,
516
+ onGeneratePdf: y(We),
517
+ onGenerateCsv: lt,
518
+ onGenerateImage: y(Ye),
519
+ onToggleTable: je,
520
+ onToggleLabels: et,
521
+ onToggleTooltip: tt,
520
522
  onToggleAnnotator: $e,
521
523
  style: G({
522
524
  visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
523
525
  })
524
- }, ut({ _: 2 }, [
526
+ }, ht({ _: 2 }, [
525
527
  a.$slots.menuIcon ? {
526
528
  name: "menuIcon",
527
529
  fn: _(({ isOpen: t, color: l }) => [
528
- k(a.$slots, "menuIcon", D(E({ isOpen: t, color: l })), void 0, !0)
530
+ z(a.$slots, "menuIcon", F(U({ isOpen: t, color: l })), void 0, !0)
529
531
  ]),
530
532
  key: "0"
531
533
  } : void 0,
532
534
  a.$slots.optionTooltip ? {
533
535
  name: "optionTooltip",
534
536
  fn: _(() => [
535
- k(a.$slots, "optionTooltip", {}, void 0, !0)
537
+ z(a.$slots, "optionTooltip", {}, void 0, !0)
536
538
  ]),
537
539
  key: "1"
538
540
  } : void 0,
539
541
  a.$slots.optionPdf ? {
540
542
  name: "optionPdf",
541
543
  fn: _(() => [
542
- k(a.$slots, "optionPdf", {}, void 0, !0)
544
+ z(a.$slots, "optionPdf", {}, void 0, !0)
543
545
  ]),
544
546
  key: "2"
545
547
  } : void 0,
546
548
  a.$slots.optionCsv ? {
547
549
  name: "optionCsv",
548
550
  fn: _(() => [
549
- k(a.$slots, "optionCsv", {}, void 0, !0)
551
+ z(a.$slots, "optionCsv", {}, void 0, !0)
550
552
  ]),
551
553
  key: "3"
552
554
  } : void 0,
553
555
  a.$slots.optionImg ? {
554
556
  name: "optionImg",
555
557
  fn: _(() => [
556
- k(a.$slots, "optionImg", {}, void 0, !0)
558
+ z(a.$slots, "optionImg", {}, void 0, !0)
557
559
  ]),
558
560
  key: "4"
559
561
  } : void 0,
560
562
  a.$slots.optionTable ? {
561
563
  name: "optionTable",
562
564
  fn: _(() => [
563
- k(a.$slots, "optionTable", {}, void 0, !0)
565
+ z(a.$slots, "optionTable", {}, void 0, !0)
564
566
  ]),
565
567
  key: "5"
566
568
  } : void 0,
567
569
  a.$slots.optionLabels ? {
568
570
  name: "optionLabels",
569
571
  fn: _(() => [
570
- k(a.$slots, "optionLabels", {}, void 0, !0)
572
+ z(a.$slots, "optionLabels", {}, void 0, !0)
571
573
  ]),
572
574
  key: "6"
573
575
  } : void 0,
574
576
  a.$slots.optionFullscreen ? {
575
577
  name: "optionFullscreen",
576
578
  fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
577
- k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
579
+ z(a.$slots, "optionFullscreen", F(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
578
580
  ]),
579
581
  key: "7"
580
582
  } : void 0,
581
583
  a.$slots.optionAnnotator ? {
582
584
  name: "optionAnnotator",
583
585
  fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
584
- k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
586
+ z(a.$slots, "optionAnnotator", F(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
585
587
  ]),
586
588
  key: "8"
587
589
  } : void 0
588
- ]), 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),
590
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
589
591
  Z.value ? (s(), n("svg", {
590
592
  key: 3,
591
593
  ref_key: "svgRef",
592
- ref: Fe,
593
- xmlns: y(ra),
594
+ ref: De,
595
+ xmlns: y(sa),
594
596
  viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
595
597
  style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
596
598
  }, [
597
- ie(y(kt)),
599
+ ie(y(zt)),
598
600
  a.$slots["chart-background"] ? (s(), n("foreignObject", {
599
601
  key: 0,
600
602
  x: o.value.left,
@@ -605,10 +607,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
605
607
  pointerEvents: "none"
606
608
  }
607
609
  }, [
608
- k(a.$slots, "chart-background", {}, void 0, !0)
609
- ], 8, La)) : g("", !0),
610
- e.value.style.chart.bars.gradient.show ? (s(), n("defs", Ca, [
611
- (s(!0), n(v, null, f(w.value, (t, l) => (s(), n("linearGradient", {
610
+ z(a.$slots, "chart-background", {}, void 0, !0)
611
+ ], 8, Ca)) : g("", !0),
612
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", _a, [
613
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
612
614
  id: `gradient_${t.id}`,
613
615
  x1: "0%",
614
616
  y1: "0%",
@@ -618,18 +620,18 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
618
620
  J("stop", {
619
621
  offset: "0%",
620
622
  "stop-color": t.color
621
- }, null, 8, Sa),
623
+ }, null, 8, $a),
622
624
  J("stop", {
623
625
  offset: "61.8%",
624
- "stop-color": y(sa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
625
- }, null, 8, $a),
626
+ "stop-color": y(oa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
627
+ }, null, 8, Ma),
626
628
  J("stop", {
627
629
  offset: "100%",
628
630
  "stop-color": t.color
629
631
  }, null, 8, Ta)
630
- ], 8, _a))), 256))
632
+ ], 8, Sa))), 256))
631
633
  ])) : g("", !0),
632
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(O.value, (t, l) => (s(), n("line", {
634
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 2 }, f(P.value, (t, l) => (s(), n("line", {
633
635
  x1: o.value.left,
634
636
  x2: o.value.right,
635
637
  y1: t.y,
@@ -638,7 +640,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
638
640
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
639
641
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
640
642
  "stroke-linecap": "round"
641
- }, null, 8, Ma))), 256)) : g("", !0),
643
+ }, null, 8, Na))), 256)) : g("", !0),
642
644
  e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 3 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
643
645
  x1: o.value.left,
644
646
  x2: o.value.right,
@@ -648,7 +650,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
648
650
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
649
651
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
650
652
  "stroke-linecap": "round"
651
- }, null, 8, Na))), 256)) : g("", !0),
653
+ }, null, 8, Ia))), 256)) : g("", !0),
652
654
  e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 4 }, f(h.value.end - h.value.start + 1, (t, l) => (s(), n("line", {
653
655
  x1: o.value.left + d.value * l,
654
656
  x2: o.value.left + d.value * l,
@@ -658,8 +660,8 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
658
660
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
659
661
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
660
662
  "stroke-linecap": "round"
661
- }, null, 8, Ia))), 256)) : g("", !0),
662
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(O.value, (t, l) => (s(), n("line", {
663
+ }, null, 8, Pa))), 256)) : g("", !0),
664
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 5 }, f(P.value, (t, l) => (s(), n("line", {
663
665
  x1: t.horizontal_x,
664
666
  x2: t.horizontal_x,
665
667
  y1: o.value.top,
@@ -669,9 +671,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
669
671
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
670
672
  "stroke-linecap": "round"
671
673
  }, null, 8, Oa))), 256)) : g("", !0),
672
- (s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
673
- a.$slots.pattern ? (s(), n("defs", Pa, [
674
- k(a.$slots, "pattern", Te({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${R.value}_${t.absoluteIndex}` }), void 0, !0)
674
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
675
+ a.$slots.pattern ? (s(), n("defs", Va, [
676
+ z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
675
677
  ])) : g("", !0),
676
678
  e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
677
679
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
@@ -685,22 +687,22 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
685
687
  "stroke-width": e.value.style.chart.bars.strokeWidth,
686
688
  "stroke-linecap": "round",
687
689
  "stroke-linejoin": "round",
688
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
690
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
689
691
  }, null, 10, Ra))), 256)),
690
- a.$slots.pattern ? (s(), n("g", Va, [
692
+ a.$slots.pattern ? (s(), n("g", Aa, [
691
693
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
692
694
  x: c,
693
695
  y: t.y[u] < 0 ? 0 : t.y[u],
694
696
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
695
697
  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,
696
698
  width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
697
- fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
699
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
698
700
  stroke: e.value.style.chart.backgroundColor,
699
701
  "stroke-width": e.value.style.chart.bars.strokeWidth,
700
702
  "stroke-linecap": "round",
701
703
  "stroke-linejoin": "round",
702
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
703
- }, null, 10, Aa))), 256))
704
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
705
+ }, null, 10, Da))), 256))
704
706
  ])) : g("", !0)
705
707
  ], 64)) : (s(), n(v, { key: 2 }, [
706
708
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
@@ -714,21 +716,21 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
714
716
  "stroke-width": e.value.style.chart.bars.strokeWidth,
715
717
  "stroke-linecap": "round",
716
718
  "stroke-linejoin": "round",
717
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
719
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
718
720
  }, null, 10, Fa))), 256)),
719
- a.$slots.pattern ? (s(), n("g", Da, [
721
+ a.$slots.pattern ? (s(), n("g", Ua, [
720
722
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
721
723
  x: y(xe)(c, o.value.left),
722
724
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
723
725
  width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
724
726
  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,
725
727
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
726
- fill: `url(#pattern_${R.value}_${t.absoluteIndex})`,
728
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
727
729
  stroke: e.value.style.chart.backgroundColor,
728
730
  "stroke-width": e.value.style.chart.bars.strokeWidth,
729
731
  "stroke-linecap": "round",
730
732
  "stroke-linejoin": "round",
731
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
733
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
732
734
  }, null, 10, Ea))), 256))
733
735
  ])) : g("", !0)
734
736
  ], 64))
@@ -754,7 +756,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
754
756
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
755
757
  "stroke-linecap": "round",
756
758
  "stroke-linejoin": "round"
757
- }, null, 8, Ua)) : g("", !0),
759
+ }, null, 8, Ba)) : g("", !0),
758
760
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
759
761
  key: 8,
760
762
  x: o.value.left + o.value.width / 2,
@@ -763,7 +765,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
763
765
  fill: e.value.style.chart.grid.x.axisName.color,
764
766
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
765
767
  "text-anchor": "middle"
766
- }, M(e.value.style.chart.grid.x.axisName.text), 9, Ba)) : g("", !0),
768
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Wa)) : g("", !0),
767
769
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
768
770
  key: 9,
769
771
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
@@ -771,23 +773,23 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
771
773
  fill: e.value.style.chart.grid.y.axisName.color,
772
774
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
773
775
  "text-anchor": "middle"
774
- }, M(e.value.style.chart.grid.y.axisName.text), 9, Wa)) : g("", !0),
776
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ya)) : g("", !0),
775
777
  L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
776
- (s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
778
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
777
779
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
778
- lt(t.series[u], t.proportions[u]) ? (s(), n("text", {
780
+ st(t.series[u], t.proportions[u]) ? (s(), n("text", {
779
781
  key: 0,
780
782
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
781
783
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
782
784
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
783
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
785
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
784
786
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
785
787
  "text-anchor": "middle"
786
- }, M(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, Ya)) : g("", !0)
788
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : g("", !0)
787
789
  ], 64))), 256))
788
790
  ]))), 256)),
789
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), n("g", Xa, [
790
- (s(!0), n(v, null, f(Ge.value, (t, l) => (s(), n(v, null, [
791
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Ga, [
792
+ (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
791
793
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
792
794
  key: 0,
793
795
  x: o.value.left + d.value * l + d.value / 2,
@@ -796,26 +798,26 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
796
798
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
797
799
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
798
800
  fill: e.value.style.chart.bars.totalValues.color
799
- }, M(ve(t.value, t, l, t.sign)), 9, Ga)) : g("", !0)
801
+ }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
800
802
  ], 64))), 256))
801
803
  ])) : g("", !0)
802
804
  ], 64)) : g("", !0),
803
805
  L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
804
- (s(!0), n(v, null, f(w.value, (t, l) => (s(), n("g", null, [
806
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
805
807
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
806
- lt(t.series[u], t.proportions[u]) ? (s(), n("text", {
808
+ st(t.series[u], t.proportions[u]) ? (s(), n("text", {
807
809
  key: 0,
808
810
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
809
811
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
810
812
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
811
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
813
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
812
814
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
813
815
  "text-anchor": "middle"
814
- }, M(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, Ja)) : g("", !0)
816
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ze(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, qa)) : g("", !0)
815
817
  ], 64))), 256))
816
818
  ]))), 256)),
817
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (s(), n("g", qa, [
818
- (s(!0), n(v, null, f(Ge.value, (t, l) => (s(), n(v, null, [
819
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Za, [
820
+ (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
819
821
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
820
822
  key: 0,
821
823
  x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
@@ -824,27 +826,27 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
824
826
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
825
827
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
826
828
  fill: e.value.style.chart.bars.totalValues.color
827
- }, M(ve(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
829
+ }, T(ve(t.value, t, l, t.sign)), 9, Ka)) : g("", !0)
828
830
  ], 64))), 256))
829
831
  ])) : g("", !0)
830
832
  ], 64)) : g("", !0),
831
833
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(v, { key: 12 }, [
832
- (s(!0), n(v, null, f(O.value, (t, l) => (s(), n("line", {
834
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
833
835
  x1: o.value.left,
834
836
  x2: o.value.left - 6,
835
837
  y1: t.y,
836
838
  y2: t.y,
837
839
  stroke: e.value.style.chart.grid.x.axisColor,
838
840
  "stroke-width": 1
839
- }, null, 8, Ka))), 256)),
840
- (s(!0), n(v, null, f(O.value, (t, l) => (s(), n("text", {
841
+ }, null, 8, Qa))), 256)),
842
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
841
843
  x: t.x,
842
844
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
843
845
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
844
846
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
845
847
  fill: e.value.style.chart.grid.y.axisLabels.color,
846
848
  "text-anchor": "end"
847
- }, M(y(ke)(
849
+ }, T(y(ke)(
848
850
  e.value.style.chart.grid.y.axisLabels.formatter,
849
851
  t.value,
850
852
  y(q)({
@@ -854,10 +856,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
854
856
  r: e.value.style.chart.grid.y.axisLabels.rounding
855
857
  }),
856
858
  { datapoint: t }
857
- )), 9, Qa))), 256))
859
+ )), 9, ja))), 256))
858
860
  ], 64)) : g("", !0),
859
861
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
860
- (s(!0), n(v, null, f(O.value, (t, l) => (s(), n("line", {
862
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
861
863
  x1: t.horizontal_x,
862
864
  x2: t.horizontal_x,
863
865
  y1: o.value.bottom,
@@ -865,14 +867,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
865
867
  stroke: e.value.style.chart.grid.x.axisColor,
866
868
  "stroke-width": 1,
867
869
  "stroke-linecap": "round"
868
- }, null, 8, ja))), 256)),
869
- (s(!0), n(v, null, f(O.value, (t, l) => (s(), n("text", {
870
+ }, null, 8, el))), 256)),
871
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
870
872
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
871
873
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
872
874
  fill: e.value.style.chart.grid.y.axisLabels.color,
873
875
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
874
876
  transform: `translate(${t.horizontal_x}, ${o.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})`
875
- }, M(y(ke)(
877
+ }, T(y(ke)(
876
878
  e.value.style.chart.grid.y.axisLabels.formatter,
877
879
  t.value,
878
880
  y(q)({
@@ -882,12 +884,12 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
882
884
  r: e.value.style.chart.grid.y.axisLabels.rounding
883
885
  }),
884
886
  { datapoint: t }
885
- )), 9, el))), 256))
887
+ )), 9, tl))), 256))
886
888
  ], 64)) : g("", !0),
887
889
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
888
- a.$slots["time-label"] ? (s(), n("g", tl, [
890
+ a.$slots["time-label"] ? (s(), n("g", al, [
889
891
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
890
- k(a.$slots, "time-label", Te({ ref_for: !0 }, {
892
+ z(a.$slots, "time-label", Me({ ref_for: !0 }, {
891
893
  x: o.value.left + d.value * l + d.value / 2,
892
894
  y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
893
895
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -899,7 +901,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
899
901
  show: !0
900
902
  }), void 0, !0)
901
903
  ]))), 256))
902
- ])) : (s(), n("g", al, [
904
+ ])) : (s(), n("g", ll, [
903
905
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
904
906
  String(t.text).includes(`
905
907
  `) ? (s(), n("text", {
@@ -915,7 +917,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
915
917
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
916
918
  `,
917
919
  style: { cursor: "pointer" },
918
- innerHTML: y(oa)({
920
+ innerHTML: y(ia)({
919
921
  content: String(t.text),
920
922
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
921
923
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -923,7 +925,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
923
925
  y: 0
924
926
  }),
925
927
  onClick: () => ge(t, l)
926
- }, null, 8, rl)) : (s(), n("text", {
928
+ }, null, 8, sl)) : (s(), n("text", {
927
929
  key: l,
928
930
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
929
931
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -932,14 +934,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
932
934
  transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.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})`,
933
935
  style: { cursor: "pointer" },
934
936
  onClick: () => ge(t, l)
935
- }, M(t.text), 9, ll))
937
+ }, T(t.text), 9, rl))
936
938
  ]))), 256))
937
939
  ]))
938
940
  ], 64)) : g("", !0),
939
941
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
940
- a.$slots["time-label"] ? (s(), n("g", sl, [
942
+ a.$slots["time-label"] ? (s(), n("g", ol, [
941
943
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
942
- k(a.$slots, "time-label", Te({ ref_for: !0 }, {
944
+ z(a.$slots, "time-label", Me({ ref_for: !0 }, {
943
945
  x: o.value.left - 8,
944
946
  y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
945
947
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -951,7 +953,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
951
953
  show: !0
952
954
  }), void 0, !0)
953
955
  ]))), 256))
954
- ])) : (s(), n("g", ol, [
956
+ ])) : (s(), n("g", il, [
955
957
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
956
958
  String(t.text).includes(`
957
959
  `) ? (s(), n("text", {
@@ -964,14 +966,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
964
966
  y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
965
967
  style: { cursor: "pointer" },
966
968
  onClick: () => ge(t, l),
967
- innerHTML: y(ia)({
969
+ innerHTML: y(na)({
968
970
  content: String(t.text),
969
971
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
970
972
  fill: e.value.style.chart.grid.y.axisLabels.color,
971
973
  x: o.value.left - 8,
972
974
  y: 0
973
975
  })
974
- }, null, 8, nl)) : (s(), n("text", {
976
+ }, null, 8, ul)) : (s(), n("text", {
975
977
  key: 0,
976
978
  "text-anchor": "end",
977
979
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -983,7 +985,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
983
985
  cursor: "pointer"
984
986
  },
985
987
  onClick: () => ge(t, l)
986
- }, M(t.text), 9, il))
988
+ }, T(t.text), 9, nl))
987
989
  ]))), 256))
988
990
  ]))
989
991
  ], 64)) : g("", !0),
@@ -992,33 +994,33 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
992
994
  y: o.value.top,
993
995
  width: d.value,
994
996
  height: o.value.height < 0 ? 0 : o.value.height,
995
- onClick: (c) => qe(l),
996
- onMouseenter: (c) => Ze(l),
997
+ onClick: (c) => Ke(l),
998
+ onMouseenter: (c) => Qe(l),
997
999
  onMouseleave: r[0] || (r[0] = (c) => {
998
1000
  ae.value = null, ne.value = !1;
999
1001
  }),
1000
1002
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1001
1003
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1002
- }, null, 44, ul))), 256)) : g("", !0),
1004
+ }, null, 44, cl))), 256)) : g("", !0),
1003
1005
  L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(v, { key: 17 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
1004
1006
  x: o.value.left,
1005
1007
  y: o.value.top + l * d.value,
1006
1008
  width: o.value.width < 0 ? 0 : o.value.width,
1007
1009
  height: d.value,
1008
- onClick: (c) => qe(l),
1009
- onMouseenter: (c) => Ze(l),
1010
+ onClick: (c) => Ke(l),
1011
+ onMouseenter: (c) => Qe(l),
1010
1012
  onMouseleave: r[1] || (r[1] = (c) => {
1011
1013
  ae.value = null, ne.value = !1;
1012
1014
  }),
1013
1015
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1014
1016
  style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1015
- }, null, 44, cl))), 256)) : g("", !0),
1016
- k(a.$slots, "svg", D(E({ ...o.value })), void 0, !0)
1017
- ], 12, za)) : g("", !0),
1018
- a.$slots.watermark ? (s(), n("div", hl, [
1019
- k(a.$slots, "watermark", D(E({ isPrinting: y(Ee) || y(He) })), void 0, !0)
1017
+ }, null, 44, hl))), 256)) : g("", !0),
1018
+ z(a.$slots, "svg", F(U({ ...o.value })), void 0, !0)
1019
+ ], 12, La)) : g("", !0),
1020
+ a.$slots.watermark ? (s(), n("div", vl, [
1021
+ z(a.$slots, "watermark", F(U({ isPrinting: y(He) || y(Be) })), void 0, !0)
1020
1022
  ])) : g("", !0),
1021
- Z.value ? g("", !0) : (s(), j(y(zt), {
1023
+ Z.value ? g("", !0) : (s(), j(y(Ct), {
1022
1024
  key: 5,
1023
1025
  config: {
1024
1026
  type: "bar",
@@ -1035,14 +1037,14 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1035
1037
  }, null, 8, ["config"])),
1036
1038
  J("div", {
1037
1039
  ref_key: "chartSlicer",
1038
- ref: Oe,
1040
+ ref: Pe,
1039
1041
  style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1040
1042
  "data-dom-to-png-ignore": ""
1041
1043
  }, [
1042
- e.value.style.chart.zoom.show && F.value > 1 ? (s(), j(fa, {
1044
+ e.value.style.chart.zoom.show && D.value > 1 ? (s(), j(ma, {
1043
1045
  ref_key: "slicerComponent",
1044
1046
  ref: K,
1045
- key: `slicer_${Re.value}`,
1047
+ key: `slicer_${Ve.value}`,
1046
1048
  background: e.value.style.chart.zoom.color,
1047
1049
  borderColor: e.value.style.chart.backgroundColor,
1048
1050
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -1064,15 +1066,15 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1064
1066
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
1065
1067
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1066
1068
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1067
- onReset: Ye
1069
+ onReset: Ge
1068
1070
  }, {
1069
1071
  "reset-action": _(({ reset: t }) => [
1070
- k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
1072
+ z(a.$slots, "reset-action", F(U({ reset: t })), void 0, !0)
1071
1073
  ]),
1072
1074
  _: 3
1073
1075
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
1074
1076
  ], 4),
1075
- ie(y(Lt), {
1077
+ ie(y(_t), {
1076
1078
  show: L.value.showTooltip && ne.value,
1077
1079
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1078
1080
  color: e.value.style.chart.tooltip.color,
@@ -1086,13 +1088,13 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1086
1088
  parent: te.value,
1087
1089
  content: Ce.value,
1088
1090
  isFullscreen: ue.value,
1089
- isCustom: y(gt)(e.value.style.chart.tooltip.customFormat)
1091
+ isCustom: y(ft)(e.value.style.chart.tooltip.customFormat)
1090
1092
  }, {
1091
1093
  "tooltip-before": _(() => [
1092
- k(a.$slots, "tooltip-before", D(E({ ...Le.value })), void 0, !0)
1094
+ z(a.$slots, "tooltip-before", F(U({ ...Le.value })), void 0, !0)
1093
1095
  ]),
1094
1096
  "tooltip-after": _(() => [
1095
- k(a.$slots, "tooltip-after", D(E({ ...Le.value })), void 0, !0)
1097
+ z(a.$slots, "tooltip-after", F(U({ ...Le.value })), void 0, !0)
1096
1098
  ]),
1097
1099
  _: 3
1098
1100
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -1100,47 +1102,47 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1100
1102
  ref_key: "chartLegend",
1101
1103
  ref: Ie
1102
1104
  }, [
1103
- e.value.style.chart.legend.show && Z.value ? (s(), j(ba, {
1105
+ e.value.style.chart.legend.show && Z.value ? (s(), j(fa, {
1104
1106
  key: 0,
1105
- legendSet: at.value,
1106
- config: Dt.value,
1107
+ legendSet: rt.value,
1108
+ config: Ft.value,
1107
1109
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1108
- }, ut({
1110
+ }, ht({
1109
1111
  item: _(({ legend: t }) => [
1110
1112
  J("div", {
1111
1113
  onClick: (l) => t.segregate(),
1112
1114
  style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1113
- }, M(t.name), 13, vl)
1115
+ }, T(t.name), 13, dl)
1114
1116
  ]),
1115
1117
  _: 2
1116
1118
  }, [
1117
1119
  a.$slots.pattern ? {
1118
1120
  name: "legend-pattern",
1119
1121
  fn: _(({ legend: t, index: l }) => [
1120
- ie(pa, {
1122
+ ie(xa, {
1121
1123
  shape: t.shape,
1122
1124
  radius: 30,
1123
1125
  stroke: "none",
1124
1126
  plot: { x: 30, y: 30 },
1125
- fill: `url(#pattern_${R.value}_${l})`
1127
+ fill: `url(#pattern_${V.value}_${l})`
1126
1128
  }, null, 8, ["shape", "fill"])
1127
1129
  ]),
1128
1130
  key: "0"
1129
1131
  } : void 0
1130
- ]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
1132
+ ]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
1131
1133
  key: 1,
1132
- legend: at.value
1134
+ legend: rt.value
1133
1135
  }, void 0, !0)
1134
1136
  ], 512),
1135
1137
  a.$slots.source ? (s(), n("div", {
1136
1138
  key: 6,
1137
1139
  ref_key: "source",
1138
- ref: Pe,
1140
+ ref: Oe,
1139
1141
  dir: "auto"
1140
1142
  }, [
1141
- k(a.$slots, "source", {}, void 0, !0)
1143
+ z(a.$slots, "source", {}, void 0, !0)
1142
1144
  ], 512)) : g("", !0),
1143
- h.value.end - h.value.start < 200 ? (s(), j(y(pt), {
1145
+ h.value.end - h.value.start < 200 ? (s(), j(y(kt), {
1144
1146
  key: 7,
1145
1147
  hideDetails: "",
1146
1148
  config: {
@@ -1157,7 +1159,7 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1157
1159
  }
1158
1160
  }, {
1159
1161
  content: _(() => [
1160
- ie(y(xt), {
1162
+ ie(y(wt), {
1161
1163
  colNames: de.value.colNames,
1162
1164
  head: de.value.head,
1163
1165
  body: de.value.body,
@@ -1166,10 +1168,10 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1166
1168
  onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
1167
1169
  }, {
1168
1170
  th: _(({ th: t }) => [
1169
- J("div", { innerHTML: t }, null, 8, dl)
1171
+ J("div", { innerHTML: t }, null, 8, yl)
1170
1172
  ]),
1171
1173
  td: _(({ td: t }) => [
1172
- Zt(M(isNaN(Number(t)) ? t : y(q)({
1174
+ Kt(T(isNaN(Number(t)) ? t : y(q)({
1173
1175
  p: e.value.style.chart.bars.dataLabels.prefix,
1174
1176
  v: t,
1175
1177
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1181,9 +1183,9 @@ const wa = ["id"], za = ["xmlns", "viewBox"], La = ["x", "y", "width", "height"]
1181
1183
  ]),
1182
1184
  _: 1
1183
1185
  }, 8, ["config"])) : g("", !0)
1184
- ], 46, wa));
1186
+ ], 46, za));
1185
1187
  }
1186
- }, $l = /* @__PURE__ */ ka(yl, [["__scopeId", "data-v-c7f93a61"]]);
1188
+ }, Ml = /* @__PURE__ */ wa(gl, [["__scopeId", "data-v-fe98ccf8"]]);
1187
1189
  export {
1188
- $l as default
1190
+ Ml as default
1189
1191
  };