vue-data-ui 2.16.6 → 2.17.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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -1,20 +1,21 @@
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 = {
1
+ import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as ut, watch as ct, shallowRef as ht, onBeforeUnmount as Kt, nextTick as fe, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as J, normalizeClass as oe, createBlock as ee, createCommentVNode as g, renderSlot as z, createElementVNode as q, createVNode as ie, createSlots as vt, withCtx as _, normalizeProps as F, guardReactiveProps as E, Fragment as v, renderList as f, mergeProps as Me, toDisplayString as T, createTextVNode as Qt } from "vue";
2
+ import { u as jt, c as dt, t as ea, p as me, a as ta, C as te, b as aa, o as la, e as yt, g as ra, d as sa, al as pe, ai as gt, D as bt, X as oa, l as ia, a7 as xe, F as ft, i as ke, f as Z, I as na, am as ua, x as mt, q as ca, r as ha, y as va } from "./index-CobsZUkv.js";
3
+ import { u as pt } from "./useNestedProp-BwL5wmVa.js";
4
+ import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
5
+ import { u as ga } from "./usePrinter-DPh6U_Qk.js";
6
+ import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ma from "./Legend-3LNqqLDg.js";
9
+ import { S as pa } from "./Slicer-CpSu7plp.js";
10
+ import xa from "./Title-DpERl1yr.js";
11
+ import { _ as ka } from "./Shape-C75836Jl.js";
12
+ import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
13
+ import za from "./img-utitT2Gd.js";
14
+ import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Ca = ["id"], _a = ["xmlns", "viewBox"], Sa = ["x", "y", "width", "height"], $a = { key: 1 }, Ma = ["id"], Ta = ["stop-color"], Na = ["stop-color"], Ia = ["stop-color"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Aa = { key: 0 }, Ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Da = { key: 0 }, Fa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ea = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ha = { key: 0 }, Ba = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = ["transform", "font-size", "fill", "font-weight"], Ja = ["x", "y", "font-size", "fill", "font-weight"], qa = { key: 0 }, Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x", "y", "font-size", "fill", "font-weight"], Qa = { key: 0 }, ja = ["x", "y", "font-size", "font-weight", "fill"], el = ["x1", "x2", "y1", "y2", "stroke"], tl = ["x", "y", "font-size", "font-weight", "fill"], al = ["x1", "x2", "y1", "y2", "stroke"], ll = ["font-size", "font-weight", "fill", "text-anchor", "transform"], rl = { key: 0 }, sl = { key: 1 }, ol = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], il = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], nl = { key: 0 }, ul = { key: 1 }, cl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], hl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], vl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], dl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], yl = {
15
16
  key: 4,
16
17
  class: "vue-data-ui-watermark"
17
- }, dl = ["onClick"], yl = ["innerHTML"], gl = {
18
+ }, gl = ["onClick"], bl = ["innerHTML"], fl = {
18
19
  __name: "vue-ui-stackbar",
19
20
  props: {
20
21
  config: {
@@ -31,40 +32,40 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
31
32
  }
32
33
  },
33
34
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
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({
35
+ setup(we, { expose: xt, emit: kt }) {
36
+ const wt = G(() => import("./vue-ui-accordion-UewqY6OI.js")), zt = G(() => import("./DataTable-Dt-TIOyY.js")), Lt = G(() => import("./PackageVersion-C-4Ee8BQ.js")), Ct = G(() => import("./PenAndPaper-Cde-wJ3N.js")), _t = G(() => import("./vue-ui-skeleton-8s4xts8z.js")), St = G(() => import("./Tooltip-DA0bYKFG.js")), $t = G(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_stackbar: Mt } = jt(), Tt = Zt(), b = we, ze = kt, K = w({
36
37
  get() {
37
38
  return !!b.dataset && b.dataset.length;
38
39
  },
39
40
  set(a) {
40
41
  return a;
41
42
  }
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(() => {
43
+ }), R = p(null), V = p(dt()), 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), Re = p(0), ue = p(!1), ae = p(null), H = p(!1), Nt = p(0), It = p(0), Pt = p(0), Q = p(null);
44
+ ut(() => {
44
45
  Se();
45
46
  });
46
47
  const e = w({
47
- get: () => Fe(),
48
+ get: () => De(),
48
49
  set: (a) => a
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({
50
+ }), { userOptionsVisible: _e, setUserOptionsVisibility: Ve, keepUserOptionState: Ae } = ba({ config: e.value }), { svgRef: Ue } = fa({ config: e.value.style.chart.title });
51
+ function De() {
52
+ const a = pt({
52
53
  userConfig: b.config,
53
- defaultConfig: $t
54
+ defaultConfig: Mt
54
55
  });
55
56
  let r = {};
56
57
  return a.theme ? r = {
57
- ...mt({
58
- userConfig: ea.vue_ui_stackbar[a.theme] || b.config,
58
+ ...pt({
59
+ userConfig: ta.vue_ui_stackbar[a.theme] || b.config,
59
60
  defaultConfig: a
60
61
  }),
61
- customPalette: jt[a.theme] || me
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;
62
+ customPalette: ea[a.theme] || me
63
+ } : r = a, b.config && te(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 && te(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 && te(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 && te(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 && te(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 && te(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
64
  }
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) => {
65
+ const Fe = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
66
+ ct(() => b.config, (a) => {
67
+ e.value = De(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Nt.value += 1, It.value += 1, Pt.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;
68
+ }, { deep: !0 }), ct(() => b.dataset, (a) => {
68
69
  Ge();
69
70
  }, { deep: !0 });
70
71
  const L = p({
@@ -73,7 +74,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
73
74
  },
74
75
  showTable: e.value.table.show,
75
76
  showTooltip: e.value.style.chart.tooltip.show
76
- }), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } = ya({
77
+ }), { isPrinting: He, isImaging: Be, generatePdf: We, generateImage: Ye } = ga({
77
78
  elementId: `stackbar_${V.value}`,
78
79
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
79
80
  options: e.value.userOptions.print
@@ -86,20 +87,20 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
86
87
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
88
  left: e.value.style.chart.padding.left / e.value.style.chart.width
88
89
  }
89
- }), Pt = w(() => ta(e.value.customPalette)), R = ct(null), Q = ct(null), Xe = p(null);
90
- nt(() => {
90
+ }), Ot = w(() => aa(e.value.customPalette)), A = ht(null), j = ht(null), Xe = p(null);
91
+ ut(() => {
91
92
  Se();
92
93
  });
93
94
  function Se() {
94
- if (aa(b.dataset) ? dt({
95
+ if (la(b.dataset) ? yt({
95
96
  componentName: "VueUiStackbar",
96
97
  type: "dataset"
97
98
  }) : b.dataset.forEach((a, r) => {
98
- la({
99
+ ra({
99
100
  datasetObject: a,
100
101
  requiredAttributes: ["name", "series"]
101
102
  }).forEach((t) => {
102
- Z.value = !1, dt({
103
+ K.value = !1, yt({
103
104
  componentName: "VueUiStackbar",
104
105
  type: "datasetSerieAttribute",
105
106
  property: t,
@@ -107,12 +108,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
107
108
  });
108
109
  });
109
110
  }), setTimeout(() => {
110
- E.value = !0;
111
+ H.value = !0;
111
112
  }, 10), e.value.responsive) {
112
- const a = va(() => {
113
- E.value = !1;
114
- const { width: r, height: t } = da({
115
- chart: te.value,
113
+ const a = da(() => {
114
+ H.value = !1;
115
+ const { width: r, height: t } = ya({
116
+ chart: R.value,
116
117
  title: e.value.style.chart.title.text ? Ne.value : null,
117
118
  legend: e.value.style.chart.legend.show ? Ie.value : null,
118
119
  slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
@@ -120,19 +121,19 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
120
121
  });
121
122
  requestAnimationFrame(() => {
122
123
  ce.value.width = r, ce.value.height = t, clearTimeout(Xe.value), Xe.value = setTimeout(() => {
123
- E.value = !0;
124
+ H.value = !0;
124
125
  }, 10);
125
126
  });
126
127
  });
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
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(a), j.value = R.value.parentNode, A.value.observe(j.value);
128
129
  }
129
130
  Je();
130
131
  }
131
- Zt(() => {
132
- R.value && (Q.value && R.value.unobserve(Q.value), R.value.disconnect());
132
+ Kt(() => {
133
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
133
134
  });
134
135
  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
+ 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, B = r - C - r * t, W = a - l - e.value.style.chart.padding.bottom;
136
137
  return {
137
138
  chartHeight: a,
138
139
  chartWidth: r,
@@ -140,11 +141,11 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
140
141
  right: c,
141
142
  bottom: u,
142
143
  left: C,
143
- width: H,
144
- height: B < 0 ? 0 : B
144
+ width: B,
145
+ height: W < 0 ? 0 : W
145
146
  };
146
- }), A = w(() => b.dataset.map((a, r) => {
147
- const t = ra(a.color) || Pt.value[r] || me[r] || me[r % me.length];
147
+ }), U = w(() => b.dataset.map((a, r) => {
148
+ const t = sa(a.color) || Ot.value[r] || me[r] || me[r % me.length];
148
149
  return {
149
150
  ...a,
150
151
  // In distributed mode, all values are converted to positive
@@ -152,10 +153,10 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
152
153
  // Store signs to manage display of neg values in distributed mode
153
154
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
154
155
  absoluteIndex: r,
155
- id: vt(),
156
+ id: dt(),
156
157
  color: t
157
158
  };
158
- })), D = w(() => Math.max(...A.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
159
+ })), D = w(() => Math.max(...U.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
159
160
  start: 0,
160
161
  end: Math.max(...b.dataset.map((a) => a.series.length))
161
162
  });
@@ -163,23 +164,23 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
163
164
  Je();
164
165
  }
165
166
  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
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Q.value ? (e.value.style.chart.zoom.startIndex !== null && (await fe(), await fe(), Q.value && Q.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await fe(), await fe(), Q.value && Q.value.setEndValue(Rt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
167
168
  start: 0,
168
169
  end: Math.max(...b.dataset.map((a) => a.series.length))
169
- }, Ve.value += 1);
170
+ }, Re.value += 1);
170
171
  }
171
- function Ot(a) {
172
+ function Rt(a) {
172
173
  const r = Math.max(...b.dataset.map((t) => t.series.length));
173
174
  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
175
  }
175
176
  const d = w(() => {
176
177
  let a;
177
178
  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 = 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
+ }), le = w(() => pe(U.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Vt = w(() => pe(U.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
179
180
  ...a,
180
181
  series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
181
182
  }))).slice(h.value.start, h.value.end)), he = w(() => {
182
- const a = A.value.filter((r) => !S.value.includes(r.id));
183
+ const a = U.value.filter((r) => !S.value.includes(r.id));
183
184
  return {
184
185
  positive: pe(a.map((r) => ({
185
186
  ...r,
@@ -191,7 +192,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
191
192
  })))
192
193
  };
193
194
  }), 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
+ 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) ? gt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
195
196
  return l.ticks.map((c) => ({
196
197
  zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
197
198
  y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -201,43 +202,43 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
201
202
  horizontal_y: o.value.bottom - 8,
202
203
  value: c
203
204
  }));
204
- }), $ = w(() => ka({
205
+ }), $ = w(() => wa({
205
206
  values: e.value.style.chart.grid.x.timeLabels.values,
206
207
  maxDatapoints: D.value,
207
208
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
208
209
  start: h.value.start,
209
210
  end: h.value.end
210
211
  })), k = w(() => {
211
- if (!Z.value) return [];
212
+ if (!K.value) return [];
212
213
  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
- return A.value.filter((se) => !S.value.includes(se.id)).map((se) => {
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
- const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
217
- let Y, I;
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
- const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
221
- let Y, I;
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;
214
+ 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, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? 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) : bt(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: W, max: re } = B, Y = re + (W >= 0 ? 0 : Math.abs(W)) || 1, M = o.value.height, be = o.value.width, it = P.value[0] ? P.value[0].zero : o.value.bottom, nt = P.value[0] ? P.value[0].horizontal_zero : o.value.left;
215
+ return U.value.filter((se) => !S.value.includes(se.id)).map((se) => {
216
+ const O = se.series.slice(h.value.start, h.value.end), Ht = se.signedSeries.slice(h.value.start, h.value.end), Bt = O.map((m, x) => o.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Wt = O.map((m, x) => o.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Yt = O.map((m, x) => {
217
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
218
+ let X, I;
219
+ return m > 0 ? (I = M * N, X = it - I - a[x], a[x] += I) : (I = M * N, X = it + t[x], t[x] += Math.abs(I)), X;
223
220
  }), Xt = O.map((m, x) => {
224
- const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
225
- return m > 0 ? M * N : M * Math.abs(N);
221
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
222
+ let X, I;
223
+ return m > 0 ? (I = be * N, X = nt + r[x], r[x] += I) : (I = be * N, X = nt - Math.abs(I) - l[x], l[x] += Math.abs(I)), X;
226
224
  }), Gt = O.map((m, x) => {
227
- const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / W;
225
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
226
+ return m > 0 ? M * N : M * Math.abs(N);
227
+ }), Jt = O.map((m, x) => {
228
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
228
229
  return m > 0 ? be * N : be * Math.abs(N);
229
- }), Jt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
230
+ }), qt = O.map((m) => Math.abs(m)).reduce((m, x) => m + x, 0);
230
231
  return {
231
232
  ...se,
232
- proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Jt),
233
+ proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / qt),
233
234
  series: O,
234
- signedSeries: Et,
235
- x: Ht,
236
- y: Wt,
237
- height: Xt,
238
- horizontal_width: Gt,
239
- horizontal_y: Bt,
240
- horizontal_x: Yt
235
+ signedSeries: Ht,
236
+ x: Bt,
237
+ y: Yt,
238
+ height: Gt,
239
+ horizontal_width: Jt,
240
+ horizontal_y: Wt,
241
+ horizontal_x: Xt
241
242
  };
242
243
  });
243
244
  }), qe = w(() => Vt.value.map((a, r) => ({
@@ -249,7 +250,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
249
250
  return ke(
250
251
  e.value.style.chart.bars.dataLabels.formatter,
251
252
  u,
252
- q({
253
+ Z({
253
254
  p: e.value.style.chart.bars.dataLabels.prefix,
254
255
  v: u,
255
256
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -262,7 +263,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
262
263
  return ke(
263
264
  e.value.style.chart.bars.dataLabels.formatter,
264
265
  a,
265
- q({
266
+ Z({
266
267
  v: isNaN(a) ? 0 : a,
267
268
  s: "%",
268
269
  r: e.value.style.chart.bars.dataLabels.rounding
@@ -297,7 +298,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
297
298
  series: k.value
298
299
  };
299
300
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
300
- if (ft(r) && ha(() => r({
301
+ if (mt(r) && va(() => r({
301
302
  seriesIndex: a,
302
303
  datapoint: t,
303
304
  series: k.value,
@@ -314,51 +315,51 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
314
315
  showValue: c,
315
316
  showPercentage: u,
316
317
  borderColor: C,
317
- roundingValue: H,
318
- roundingPercentage: B
318
+ roundingValue: B,
319
+ roundingPercentage: W
319
320
  } = e.value.style.chart.tooltip;
320
321
  let re = "";
321
322
  $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (re += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
322
- const W = [
323
+ const Y = [
323
324
  c && u ? "(" : "",
324
325
  c && u ? ")" : ""
325
326
  ];
326
327
  t.reverse().forEach((M) => {
327
328
  re += `
328
329
  <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_${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({
330
+ <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}"/>${Tt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${M.absoluteIndex})"/>` : ""}</svg>
331
+ ${M.name}${c || u ? ":" : ""} ${c ? Z({
331
332
  p: e.value.style.chart.bars.dataLabels.prefix,
332
333
  v: M.value,
333
334
  s: e.value.style.chart.bars.dataLabels.suffix,
334
- r: H
335
- }) : ""} ${W[0]}${u ? q({
335
+ r: B
336
+ }) : ""} ${Y[0]}${u ? Z({
336
337
  v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
337
338
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
338
339
  s: "%",
339
- r: B
340
- }) : ""}${W[1]}
340
+ r: W
341
+ }) : ""}${Y[1]}
341
342
  </div>
342
343
  `;
343
344
  }), Ce.value = `<div>${re}</div>`;
344
345
  }
345
346
  }
346
- function Rt(a) {
347
+ function je(a) {
347
348
  ue.value = a, Te.value += 1;
348
349
  }
349
- function je() {
350
+ function et() {
350
351
  L.value.showTable = !L.value.showTable;
351
352
  }
352
- function et() {
353
+ function tt() {
353
354
  L.value.dataLabels.show = !L.value.dataLabels.show;
354
355
  }
355
- function tt() {
356
+ function at() {
356
357
  L.value.showTooltip = !L.value.showTooltip;
357
358
  }
358
359
  function At() {
359
360
  return k.value;
360
361
  }
361
- const at = w(() => {
362
+ const lt = w(() => {
362
363
  if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
363
364
  const a = k.value.map(({ name: t, color: l }) => ({
364
365
  label: t,
@@ -366,20 +367,20 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
366
367
  })), r = [];
367
368
  return $.value.forEach((t) => {
368
369
  const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
369
- A.value.forEach((c) => {
370
+ U.value.forEach((c) => {
370
371
  l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
371
372
  }), r.push(l);
372
373
  }), { head: a, body: r };
373
374
  });
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" });
375
+ function rt(a = null) {
376
+ const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...lt.value.head.map((C) => C.label)], l = lt.value.body, c = r.concat([t]).concat(l), u = ca(c);
377
+ a ? a(u) : ha({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
377
378
  }
378
379
  const de = w(() => {
379
380
  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
381
  let r = [];
381
382
  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
+ const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, B) => C + B, 0);
383
384
  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
385
  }
385
386
  const t = {
@@ -397,23 +398,23 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
397
398
  }, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
398
399
  return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
399
400
  });
400
- function Dt(a, r) {
401
+ function Ut(a, r) {
401
402
  if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
402
403
  S.value = S.value.filter((t) => t !== r.id);
403
404
  else {
404
- if (S.value.length === A.value.length - 1) return;
405
+ if (S.value.length === U.value.length - 1) return;
405
406
  S.value.push(r.id);
406
407
  }
407
408
  }
408
- const rt = w(() => A.value.map((a, r) => ({
409
+ const st = w(() => U.value.map((a, r) => ({
409
410
  ...a,
410
411
  shape: "square"
411
412
  })).map((a) => ({
412
413
  ...a,
413
414
  opacity: S.value.includes(a.id) ? 0.5 : 1,
414
- segregate: () => Dt(a.absoluteIndex, a),
415
+ segregate: () => Ut(a.absoluteIndex, a),
415
416
  isSegregated: S.value.includes(a.id)
416
- }))), Ft = w(() => ({
417
+ }))), Dt = w(() => ({
417
418
  cy: "stackbar-legend",
418
419
  backgroundColor: e.value.style.chart.legend.backgroundColor,
419
420
  color: e.value.style.chart.legend.color,
@@ -438,31 +439,45 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
438
439
  label: a.text
439
440
  });
440
441
  }
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;
442
+ const Ft = w(() => Math.max(...k.value.flatMap((a) => a.series)));
443
+ function ot(a, r) {
444
+ 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 ? (Fe.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 > Ft.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : Fe.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
444
445
  }
445
- return pt({
446
+ async function Et({ scale: a = 2 } = {}) {
447
+ if (!R.value) return;
448
+ const { width: r, height: t } = R.value.getBoundingClientRect(), l = r / t, { imageUri: c, base64: u } = await za({ domElement: R.value, base64: !0, img: !0, scale: a });
449
+ return {
450
+ imageUri: c,
451
+ base64: u,
452
+ title: e.value.style.chart.title.text,
453
+ width: r,
454
+ height: t,
455
+ aspectRatio: l
456
+ };
457
+ }
458
+ return xt({
446
459
  getData: At,
460
+ getImage: Et,
447
461
  generatePdf: We,
448
- generateCsv: lt,
462
+ generateCsv: rt,
449
463
  generateImage: Ye,
450
- toggleTable: je,
451
- toggleLabels: et,
452
- toggleTooltip: tt,
453
- toggleAnnotator: $e
464
+ toggleTable: et,
465
+ toggleLabels: tt,
466
+ toggleTooltip: at,
467
+ toggleAnnotator: $e,
468
+ toggleFullscreen: je
454
469
  }), (a, r) => (s(), n("div", {
455
470
  id: `stackbar_${V.value}`,
456
471
  ref_key: "stackbarChart",
457
- ref: te,
472
+ ref: R,
458
473
  class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ue.value }),
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%" : ""}`),
460
- onMouseenter: r[6] || (r[6] = () => y(Re)(!0)),
461
- onMouseleave: r[7] || (r[7] = () => y(Re)(!1))
474
+ style: J(`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%" : ""}`),
475
+ onMouseenter: r[6] || (r[6] = () => y(Ve)(!0)),
476
+ onMouseleave: r[7] || (r[7] = () => y(Ve)(!1))
462
477
  }, [
463
- e.value.userOptions.buttons.annotator ? (s(), j(y(Lt), {
478
+ e.value.userOptions.buttons.annotator ? (s(), ee(y(Ct), {
464
479
  key: 0,
465
- svgRef: y(De),
480
+ svgRef: y(Ue),
466
481
  backgroundColor: e.value.style.chart.backgroundColor,
467
482
  color: e.value.style.chart.color,
468
483
  active: ye.value,
@@ -475,7 +490,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
475
490
  ref: Ne,
476
491
  style: "width:100%;background:transparent;padding-bottom:24px"
477
492
  }, [
478
- ie(pa, {
493
+ ie(xa, {
479
494
  config: {
480
495
  title: {
481
496
  cy: "stackbar-title",
@@ -488,7 +503,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
488
503
  }
489
504
  }, null, 8, ["config"])
490
505
  ], 512)) : g("", !0),
491
- e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(St), {
506
+ e.value.userOptions.show && K.value && (y(Ae) || y(_e)) ? (s(), ee(y($t), {
492
507
  ref: "details",
493
508
  key: `user_option_${Te.value}`,
494
509
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -504,7 +519,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
504
519
  hasLabel: e.value.userOptions.buttons.labels,
505
520
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
506
521
  isFullscreen: ue.value,
507
- chartElement: te.value,
522
+ chartElement: R.value,
508
523
  position: e.value.userOptions.position,
509
524
  isTooltip: L.value.showTooltip,
510
525
  titles: { ...e.value.userOptions.buttonTitles },
@@ -512,22 +527,22 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
512
527
  isAnnotation: ye.value,
513
528
  callbacks: e.value.userOptions.callbacks,
514
529
  printScale: e.value.userOptions.print.scale,
515
- onToggleFullscreen: Rt,
530
+ onToggleFullscreen: je,
516
531
  onGeneratePdf: y(We),
517
- onGenerateCsv: lt,
532
+ onGenerateCsv: rt,
518
533
  onGenerateImage: y(Ye),
519
- onToggleTable: je,
520
- onToggleLabels: et,
521
- onToggleTooltip: tt,
534
+ onToggleTable: et,
535
+ onToggleLabels: tt,
536
+ onToggleTooltip: at,
522
537
  onToggleAnnotator: $e,
523
- style: G({
538
+ style: J({
524
539
  visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
525
540
  })
526
- }, ht({ _: 2 }, [
541
+ }, vt({ _: 2 }, [
527
542
  a.$slots.menuIcon ? {
528
543
  name: "menuIcon",
529
544
  fn: _(({ isOpen: t, color: l }) => [
530
- z(a.$slots, "menuIcon", F(U({ isOpen: t, color: l })), void 0, !0)
545
+ z(a.$slots, "menuIcon", F(E({ isOpen: t, color: l })), void 0, !0)
531
546
  ]),
532
547
  key: "0"
533
548
  } : void 0,
@@ -576,27 +591,27 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
576
591
  a.$slots.optionFullscreen ? {
577
592
  name: "optionFullscreen",
578
593
  fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
579
- z(a.$slots, "optionFullscreen", F(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
594
+ z(a.$slots, "optionFullscreen", F(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
580
595
  ]),
581
596
  key: "7"
582
597
  } : void 0,
583
598
  a.$slots.optionAnnotator ? {
584
599
  name: "optionAnnotator",
585
600
  fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
586
- z(a.$slots, "optionAnnotator", F(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
601
+ z(a.$slots, "optionAnnotator", F(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
587
602
  ]),
588
603
  key: "8"
589
604
  } : void 0
590
605
  ]), 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),
591
- Z.value ? (s(), n("svg", {
606
+ K.value ? (s(), n("svg", {
592
607
  key: 3,
593
608
  ref_key: "svgRef",
594
- ref: De,
595
- xmlns: y(sa),
609
+ ref: Ue,
610
+ xmlns: y(oa),
596
611
  viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
597
- style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
612
+ style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
598
613
  }, [
599
- ie(y(zt)),
614
+ ie(y(Lt)),
600
615
  a.$slots["chart-background"] ? (s(), n("foreignObject", {
601
616
  key: 0,
602
617
  x: o.value.left,
@@ -608,8 +623,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
608
623
  }
609
624
  }, [
610
625
  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, [
626
+ ], 8, Sa)) : g("", !0),
627
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", $a, [
613
628
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
614
629
  id: `gradient_${t.id}`,
615
630
  x1: "0%",
@@ -617,19 +632,19 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
617
632
  x2: "0%",
618
633
  y2: "100%"
619
634
  }, [
620
- J("stop", {
635
+ q("stop", {
621
636
  offset: "0%",
622
637
  "stop-color": t.color
623
- }, null, 8, $a),
624
- J("stop", {
638
+ }, null, 8, Ta),
639
+ q("stop", {
625
640
  offset: "61.8%",
626
- "stop-color": y(oa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
627
- }, null, 8, Ma),
628
- J("stop", {
641
+ "stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
642
+ }, null, 8, Na),
643
+ q("stop", {
629
644
  offset: "100%",
630
645
  "stop-color": t.color
631
- }, null, 8, Ta)
632
- ], 8, Sa))), 256))
646
+ }, null, 8, Ia)
647
+ ], 8, Ma))), 256))
633
648
  ])) : g("", !0),
634
649
  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", {
635
650
  x1: o.value.left,
@@ -640,7 +655,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
640
655
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
641
656
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
642
657
  "stroke-linecap": "round"
643
- }, null, 8, Na))), 256)) : g("", !0),
658
+ }, null, 8, Pa))), 256)) : g("", !0),
644
659
  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", {
645
660
  x1: o.value.left,
646
661
  x2: o.value.right,
@@ -650,7 +665,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
650
665
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
651
666
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
652
667
  "stroke-linecap": "round"
653
- }, null, 8, Ia))), 256)) : g("", !0),
668
+ }, null, 8, Oa))), 256)) : g("", !0),
654
669
  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", {
655
670
  x1: o.value.left + d.value * l,
656
671
  x2: o.value.left + d.value * l,
@@ -660,7 +675,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
660
675
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
661
676
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
662
677
  "stroke-linecap": "round"
663
- }, null, 8, Pa))), 256)) : g("", !0),
678
+ }, null, 8, Ra))), 256)) : g("", !0),
664
679
  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", {
665
680
  x1: t.horizontal_x,
666
681
  x2: t.horizontal_x,
@@ -670,9 +685,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
670
685
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
671
686
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
672
687
  "stroke-linecap": "round"
673
- }, null, 8, Oa))), 256)) : g("", !0),
688
+ }, null, 8, Va))), 256)) : g("", !0),
674
689
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
675
- a.$slots.pattern ? (s(), n("defs", Va, [
690
+ a.$slots.pattern ? (s(), n("defs", Aa, [
676
691
  z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
677
692
  ])) : g("", !0),
678
693
  e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
@@ -687,9 +702,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
687
702
  "stroke-width": e.value.style.chart.bars.strokeWidth,
688
703
  "stroke-linecap": "round",
689
704
  "stroke-linejoin": "round",
690
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
691
- }, null, 10, Ra))), 256)),
692
- a.$slots.pattern ? (s(), n("g", Aa, [
705
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
706
+ }, null, 10, Ua))), 256)),
707
+ a.$slots.pattern ? (s(), n("g", Da, [
693
708
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
694
709
  x: c,
695
710
  y: t.y[u] < 0 ? 0 : t.y[u],
@@ -701,8 +716,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
701
716
  "stroke-width": e.value.style.chart.bars.strokeWidth,
702
717
  "stroke-linecap": "round",
703
718
  "stroke-linejoin": "round",
704
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
705
- }, null, 10, Da))), 256))
719
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
720
+ }, null, 10, Fa))), 256))
706
721
  ])) : g("", !0)
707
722
  ], 64)) : (s(), n(v, { key: 2 }, [
708
723
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
@@ -716,9 +731,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
716
731
  "stroke-width": e.value.style.chart.bars.strokeWidth,
717
732
  "stroke-linecap": "round",
718
733
  "stroke-linejoin": "round",
719
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
720
- }, null, 10, Fa))), 256)),
721
- a.$slots.pattern ? (s(), n("g", Ua, [
734
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
735
+ }, null, 10, Ea))), 256)),
736
+ a.$slots.pattern ? (s(), n("g", Ha, [
722
737
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
723
738
  x: y(xe)(c, o.value.left),
724
739
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
@@ -730,8 +745,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
730
745
  "stroke-width": e.value.style.chart.bars.strokeWidth,
731
746
  "stroke-linecap": "round",
732
747
  "stroke-linejoin": "round",
733
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
734
- }, null, 10, Ea))), 256))
748
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
749
+ }, null, 10, Ba))), 256))
735
750
  ])) : g("", !0)
736
751
  ], 64))
737
752
  ]))), 256)),
@@ -745,7 +760,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
745
760
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
746
761
  "stroke-linecap": "round",
747
762
  "stroke-linejoin": "round"
748
- }, null, 8, Ha)) : g("", !0),
763
+ }, null, 8, Wa)) : g("", !0),
749
764
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
750
765
  key: 7,
751
766
  x1: o.value.left,
@@ -756,7 +771,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
756
771
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
757
772
  "stroke-linecap": "round",
758
773
  "stroke-linejoin": "round"
759
- }, null, 8, Ba)) : g("", !0),
774
+ }, null, 8, Ya)) : g("", !0),
760
775
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
761
776
  key: 8,
762
777
  x: o.value.left + o.value.width / 2,
@@ -765,7 +780,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
765
780
  fill: e.value.style.chart.grid.x.axisName.color,
766
781
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
767
782
  "text-anchor": "middle"
768
- }, T(e.value.style.chart.grid.x.axisName.text), 9, Wa)) : g("", !0),
783
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Xa)) : g("", !0),
769
784
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
770
785
  key: 9,
771
786
  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)`,
@@ -773,22 +788,22 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
773
788
  fill: e.value.style.chart.grid.y.axisName.color,
774
789
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
775
790
  "text-anchor": "middle"
776
- }, T(e.value.style.chart.grid.y.axisName.text), 9, Ya)) : g("", !0),
791
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ga)) : g("", !0),
777
792
  L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
778
793
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
779
794
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
780
- st(t.series[u], t.proportions[u]) ? (s(), n("text", {
795
+ ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
781
796
  key: 0,
782
797
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
783
798
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
784
799
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
785
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
800
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
786
801
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
787
802
  "text-anchor": "middle"
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)
803
+ }, 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, Ja)) : g("", !0)
789
804
  ], 64))), 256))
790
805
  ]))), 256)),
791
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Ga, [
806
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
792
807
  (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
793
808
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
794
809
  key: 0,
@@ -798,25 +813,25 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
798
813
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
799
814
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
800
815
  fill: e.value.style.chart.bars.totalValues.color
801
- }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
816
+ }, T(ve(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
802
817
  ], 64))), 256))
803
818
  ])) : g("", !0)
804
819
  ], 64)) : g("", !0),
805
820
  L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
806
821
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
807
822
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
808
- st(t.series[u], t.proportions[u]) ? (s(), n("text", {
823
+ ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
809
824
  key: 0,
810
825
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
811
826
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
812
827
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
813
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
828
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
814
829
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
815
830
  "text-anchor": "middle"
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)
831
+ }, 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, Ka)) : g("", !0)
817
832
  ], 64))), 256))
818
833
  ]))), 256)),
819
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Za, [
834
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
820
835
  (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
821
836
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
822
837
  key: 0,
@@ -826,7 +841,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
826
841
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
827
842
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
828
843
  fill: e.value.style.chart.bars.totalValues.color
829
- }, T(ve(t.value, t, l, t.sign)), 9, Ka)) : g("", !0)
844
+ }, T(ve(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
830
845
  ], 64))), 256))
831
846
  ])) : g("", !0)
832
847
  ], 64)) : g("", !0),
@@ -838,7 +853,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
838
853
  y2: t.y,
839
854
  stroke: e.value.style.chart.grid.x.axisColor,
840
855
  "stroke-width": 1
841
- }, null, 8, Qa))), 256)),
856
+ }, null, 8, el))), 256)),
842
857
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
843
858
  x: t.x,
844
859
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -849,14 +864,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
849
864
  }, T(y(ke)(
850
865
  e.value.style.chart.grid.y.axisLabels.formatter,
851
866
  t.value,
852
- y(q)({
867
+ y(Z)({
853
868
  p: e.value.style.chart.bars.dataLabels.prefix,
854
869
  v: t.value,
855
870
  s: e.value.style.chart.bars.dataLabels.suffix,
856
871
  r: e.value.style.chart.grid.y.axisLabels.rounding
857
872
  }),
858
873
  { datapoint: t }
859
- )), 9, ja))), 256))
874
+ )), 9, tl))), 256))
860
875
  ], 64)) : g("", !0),
861
876
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
862
877
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
@@ -867,7 +882,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
867
882
  stroke: e.value.style.chart.grid.x.axisColor,
868
883
  "stroke-width": 1,
869
884
  "stroke-linecap": "round"
870
- }, null, 8, el))), 256)),
885
+ }, null, 8, al))), 256)),
871
886
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
872
887
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
873
888
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -877,17 +892,17 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
877
892
  }, T(y(ke)(
878
893
  e.value.style.chart.grid.y.axisLabels.formatter,
879
894
  t.value,
880
- y(q)({
895
+ y(Z)({
881
896
  p: e.value.style.chart.bars.dataLabels.prefix,
882
897
  v: t.value,
883
898
  s: e.value.style.chart.bars.dataLabels.suffix,
884
899
  r: e.value.style.chart.grid.y.axisLabels.rounding
885
900
  }),
886
901
  { datapoint: t }
887
- )), 9, tl))), 256))
902
+ )), 9, ll))), 256))
888
903
  ], 64)) : g("", !0),
889
904
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
890
- a.$slots["time-label"] ? (s(), n("g", al, [
905
+ a.$slots["time-label"] ? (s(), n("g", rl, [
891
906
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
892
907
  z(a.$slots, "time-label", Me({ ref_for: !0 }, {
893
908
  x: o.value.left + d.value * l + d.value / 2,
@@ -901,7 +916,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
901
916
  show: !0
902
917
  }), void 0, !0)
903
918
  ]))), 256))
904
- ])) : (s(), n("g", ll, [
919
+ ])) : (s(), n("g", sl, [
905
920
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
906
921
  String(t.text).includes(`
907
922
  `) ? (s(), n("text", {
@@ -917,7 +932,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
917
932
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
918
933
  `,
919
934
  style: { cursor: "pointer" },
920
- innerHTML: y(ia)({
935
+ innerHTML: y(na)({
921
936
  content: String(t.text),
922
937
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
923
938
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -925,7 +940,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
925
940
  y: 0
926
941
  }),
927
942
  onClick: () => ge(t, l)
928
- }, null, 8, sl)) : (s(), n("text", {
943
+ }, null, 8, il)) : (s(), n("text", {
929
944
  key: l,
930
945
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
931
946
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -934,12 +949,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
934
949
  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})`,
935
950
  style: { cursor: "pointer" },
936
951
  onClick: () => ge(t, l)
937
- }, T(t.text), 9, rl))
952
+ }, T(t.text), 9, ol))
938
953
  ]))), 256))
939
954
  ]))
940
955
  ], 64)) : g("", !0),
941
956
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
942
- a.$slots["time-label"] ? (s(), n("g", ol, [
957
+ a.$slots["time-label"] ? (s(), n("g", nl, [
943
958
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
944
959
  z(a.$slots, "time-label", Me({ ref_for: !0 }, {
945
960
  x: o.value.left - 8,
@@ -953,7 +968,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
953
968
  show: !0
954
969
  }), void 0, !0)
955
970
  ]))), 256))
956
- ])) : (s(), n("g", il, [
971
+ ])) : (s(), n("g", ul, [
957
972
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
958
973
  String(t.text).includes(`
959
974
  `) ? (s(), n("text", {
@@ -966,14 +981,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
966
981
  y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
967
982
  style: { cursor: "pointer" },
968
983
  onClick: () => ge(t, l),
969
- innerHTML: y(na)({
984
+ innerHTML: y(ua)({
970
985
  content: String(t.text),
971
986
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
972
987
  fill: e.value.style.chart.grid.y.axisLabels.color,
973
988
  x: o.value.left - 8,
974
989
  y: 0
975
990
  })
976
- }, null, 8, ul)) : (s(), n("text", {
991
+ }, null, 8, hl)) : (s(), n("text", {
977
992
  key: 0,
978
993
  "text-anchor": "end",
979
994
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -985,7 +1000,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
985
1000
  cursor: "pointer"
986
1001
  },
987
1002
  onClick: () => ge(t, l)
988
- }, T(t.text), 9, nl))
1003
+ }, T(t.text), 9, cl))
989
1004
  ]))), 256))
990
1005
  ]))
991
1006
  ], 64)) : g("", !0),
@@ -1000,8 +1015,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1000
1015
  ae.value = null, ne.value = !1;
1001
1016
  }),
1002
1017
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1003
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1004
- }, null, 44, cl))), 256)) : g("", !0),
1018
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1019
+ }, null, 44, vl))), 256)) : g("", !0),
1005
1020
  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", {
1006
1021
  x: o.value.left,
1007
1022
  y: o.value.top + l * d.value,
@@ -1013,14 +1028,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1013
1028
  ae.value = null, ne.value = !1;
1014
1029
  }),
1015
1030
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1016
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
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)
1031
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1032
+ }, null, 44, dl))), 256)) : g("", !0),
1033
+ z(a.$slots, "svg", F(E({ ...o.value })), void 0, !0)
1034
+ ], 12, _a)) : g("", !0),
1035
+ a.$slots.watermark ? (s(), n("div", yl, [
1036
+ z(a.$slots, "watermark", F(E({ isPrinting: y(He) || y(Be) })), void 0, !0)
1022
1037
  ])) : g("", !0),
1023
- Z.value ? g("", !0) : (s(), j(y(Ct), {
1038
+ K.value ? g("", !0) : (s(), ee(y(_t), {
1024
1039
  key: 5,
1025
1040
  config: {
1026
1041
  type: "bar",
@@ -1035,16 +1050,16 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1035
1050
  }
1036
1051
  }
1037
1052
  }, null, 8, ["config"])),
1038
- J("div", {
1053
+ q("div", {
1039
1054
  ref_key: "chartSlicer",
1040
1055
  ref: Pe,
1041
- style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1056
+ style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1042
1057
  "data-dom-to-png-ignore": ""
1043
1058
  }, [
1044
- e.value.style.chart.zoom.show && D.value > 1 ? (s(), j(ma, {
1059
+ e.value.style.chart.zoom.show && D.value > 1 ? (s(), ee(pa, {
1045
1060
  ref_key: "slicerComponent",
1046
- ref: K,
1047
- key: `slicer_${Ve.value}`,
1061
+ ref: Q,
1062
+ key: `slicer_${Re.value}`,
1048
1063
  background: e.value.style.chart.zoom.color,
1049
1064
  borderColor: e.value.style.chart.backgroundColor,
1050
1065
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -1069,12 +1084,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1069
1084
  onReset: Ge
1070
1085
  }, {
1071
1086
  "reset-action": _(({ reset: t }) => [
1072
- z(a.$slots, "reset-action", F(U({ reset: t })), void 0, !0)
1087
+ z(a.$slots, "reset-action", F(E({ reset: t })), void 0, !0)
1073
1088
  ]),
1074
1089
  _: 3
1075
1090
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
1076
1091
  ], 4),
1077
- ie(y(_t), {
1092
+ ie(y(St), {
1078
1093
  show: L.value.showTooltip && ne.value,
1079
1094
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1080
1095
  color: e.value.style.chart.tooltip.color,
@@ -1085,41 +1100,41 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1085
1100
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1086
1101
  position: e.value.style.chart.tooltip.position,
1087
1102
  offsetY: e.value.style.chart.tooltip.offsetY,
1088
- parent: te.value,
1103
+ parent: R.value,
1089
1104
  content: Ce.value,
1090
1105
  isFullscreen: ue.value,
1091
- isCustom: y(ft)(e.value.style.chart.tooltip.customFormat)
1106
+ isCustom: y(mt)(e.value.style.chart.tooltip.customFormat)
1092
1107
  }, {
1093
1108
  "tooltip-before": _(() => [
1094
- z(a.$slots, "tooltip-before", F(U({ ...Le.value })), void 0, !0)
1109
+ z(a.$slots, "tooltip-before", F(E({ ...Le.value })), void 0, !0)
1095
1110
  ]),
1096
1111
  "tooltip-after": _(() => [
1097
- z(a.$slots, "tooltip-after", F(U({ ...Le.value })), void 0, !0)
1112
+ z(a.$slots, "tooltip-after", F(E({ ...Le.value })), void 0, !0)
1098
1113
  ]),
1099
1114
  _: 3
1100
1115
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1101
- J("div", {
1116
+ q("div", {
1102
1117
  ref_key: "chartLegend",
1103
1118
  ref: Ie
1104
1119
  }, [
1105
- e.value.style.chart.legend.show && Z.value ? (s(), j(fa, {
1120
+ e.value.style.chart.legend.show && K.value ? (s(), ee(ma, {
1106
1121
  key: 0,
1107
- legendSet: rt.value,
1108
- config: Ft.value,
1122
+ legendSet: st.value,
1123
+ config: Dt.value,
1109
1124
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1110
- }, ht({
1125
+ }, vt({
1111
1126
  item: _(({ legend: t }) => [
1112
- J("div", {
1127
+ q("div", {
1113
1128
  onClick: (l) => t.segregate(),
1114
- style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1115
- }, T(t.name), 13, dl)
1129
+ style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1130
+ }, T(t.name), 13, gl)
1116
1131
  ]),
1117
1132
  _: 2
1118
1133
  }, [
1119
1134
  a.$slots.pattern ? {
1120
1135
  name: "legend-pattern",
1121
1136
  fn: _(({ legend: t, index: l }) => [
1122
- ie(xa, {
1137
+ ie(ka, {
1123
1138
  shape: t.shape,
1124
1139
  radius: 30,
1125
1140
  stroke: "none",
@@ -1131,7 +1146,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1131
1146
  } : void 0
1132
1147
  ]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
1133
1148
  key: 1,
1134
- legend: rt.value
1149
+ legend: st.value
1135
1150
  }, void 0, !0)
1136
1151
  ], 512),
1137
1152
  a.$slots.source ? (s(), n("div", {
@@ -1142,7 +1157,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1142
1157
  }, [
1143
1158
  z(a.$slots, "source", {}, void 0, !0)
1144
1159
  ], 512)) : g("", !0),
1145
- h.value.end - h.value.start < 200 ? (s(), j(y(kt), {
1160
+ h.value.end - h.value.start < 200 ? (s(), ee(y(wt), {
1146
1161
  key: 7,
1147
1162
  hideDetails: "",
1148
1163
  config: {
@@ -1159,7 +1174,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1159
1174
  }
1160
1175
  }, {
1161
1176
  content: _(() => [
1162
- ie(y(wt), {
1177
+ ie(y(zt), {
1163
1178
  colNames: de.value.colNames,
1164
1179
  head: de.value.head,
1165
1180
  body: de.value.body,
@@ -1168,10 +1183,10 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1168
1183
  onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
1169
1184
  }, {
1170
1185
  th: _(({ th: t }) => [
1171
- J("div", { innerHTML: t }, null, 8, yl)
1186
+ q("div", { innerHTML: t }, null, 8, bl)
1172
1187
  ]),
1173
1188
  td: _(({ td: t }) => [
1174
- Kt(T(isNaN(Number(t)) ? t : y(q)({
1189
+ Qt(T(isNaN(Number(t)) ? t : y(Z)({
1175
1190
  p: e.value.style.chart.bars.dataLabels.prefix,
1176
1191
  v: t,
1177
1192
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1183,9 +1198,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1183
1198
  ]),
1184
1199
  _: 1
1185
1200
  }, 8, ["config"])) : g("", !0)
1186
- ], 46, za));
1201
+ ], 46, Ca));
1187
1202
  }
1188
- }, Ml = /* @__PURE__ */ wa(gl, [["__scopeId", "data-v-fe98ccf8"]]);
1203
+ }, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-0ba585b2"]]);
1189
1204
  export {
1190
- Ml as default
1205
+ Il as default
1191
1206
  };