vue-data-ui 2.16.5 → 2.17.0

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 +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -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-CZNLCg7T.js";
3
- import { u as mt } from "./useNestedProp-BcPDA6Xr.js";
4
- import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
5
- import { u as ya } from "./usePrinter-ButWuZVm.js";
6
- import { u as ga } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as ba } from "./useChartAccessibility-9icAAmYg.js";
8
- import fa from "./Legend-DoxQwq_u.js";
9
- import { S as ma } from "./Slicer-Bd0AkciG.js";
10
- import pa from "./Title-BQLtfM0P.js";
11
- import { _ as xa } from "./Shape-CrstrfQ9.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 D, guardReactiveProps as F, 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-pPGk-uhD.js";
3
+ import { u as pt } from "./useNestedProp-DjACxgdZ.js";
4
+ import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
5
+ import { u as ga } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ma from "./Legend-Bxlv67uY.js";
9
+ import { S as pa } from "./Slicer-CL6-MRI6.js";
10
+ import xa from "./Title-B-2bV0SW.js";
11
+ import { _ as ka } from "./Shape-DtFT5EJa.js";
12
+ import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
13
+ import za from "./img-Y_hYz-ZC.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"], Va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ra = ["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-CO4hmfuX.js")), wt = X(() => import("./DataTable-B6MXw9cG.js")), zt = X(() => import("./PackageVersion-DCreTQN4.js")), Lt = X(() => import("./PenAndPaper-BS60tkQN.js")), Ct = X(() => import("./vue-ui-skeleton-D9B8DY_k.js")), _t = X(() => import("./Tooltip-5JmGL7sR.js")), St = X(() => import("./UserOptions-DMGkAAIO.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-CVnA550V.js")), zt = G(() => import("./DataTable-D0VYDhfx.js")), Lt = G(() => import("./PackageVersion-5TR4ocqp.js")), Ct = G(() => import("./PenAndPaper-D6AqipIO.js")), _t = G(() => import("./vue-ui-skeleton-DJPjyNYn.js")), St = G(() => import("./Tooltip-CoQnTnr-.js")), $t = G(() => import("./UserOptions-Dd34lEKb.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
+ }), E = 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), Ve = 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: Re, 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)), R = 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,32 +108,32 @@ 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: E.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
- slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
119
+ slicer: e.value.style.chart.zoom.show && U.value > 1 ? Pe.value : null,
119
120
  source: Oe.value
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
+ R.value && (j.value && R.value.unobserve(j.value), R.value.disconnect()), R.value = new ResizeObserver(a), j.value = E.value.parentNode, R.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
+ R.value && (j.value && R.value.unobserve(j.value), R.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
147
  }), A = w(() => b.dataset.map((a, r) => {
147
- const t = ra(a.color) || Pt.value[r] || me[r] || me[r % me.length];
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
+ })), U = w(() => Math.max(...A.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,19 +164,19 @@ 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(Vt(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
170
  }, Ve.value += 1);
170
171
  }
171
- function Ot(a) {
172
+ function Vt(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(A.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), Rt = w(() => pe(A.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(() => {
@@ -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,46 +202,46 @@ 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
- maxDatapoints: D.value,
207
+ maxDatapoints: U.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
- 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;
212
+ if (!K.value) return [];
213
+ let a = Array(U.value).fill(0), r = Array(U.value).fill(0), t = Array(U.value).fill(0), l = Array(U.value).fill(0);
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;
214
215
  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;
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
- }), qe = w(() => Vt.value.map((a, r) => ({
244
+ }), qe = w(() => Rt.value.map((a, r) => ({
244
245
  value: a,
245
246
  sign: a >= 0 ? 1 : -1
246
247
  })));
@@ -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,
@@ -371,15 +372,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
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
- 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);
382
+ for (let c = 0; c < U.value; c += 1) {
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,7 +398,7 @@ 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 {
@@ -405,15 +406,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
405
406
  S.value.push(r.id);
406
407
  }
407
408
  }
408
- const rt = w(() => A.value.map((a, r) => ({
409
+ const st = w(() => A.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,38 @@ 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 (!E.value) return;
448
+ const { imageUri: r, base64: t } = await za({ domElement: E.value, base64: !0, img: !0, scale: a });
449
+ return { imageUri: r, base64: t };
450
+ }
451
+ return xt({
446
452
  getData: At,
453
+ getImage: Et,
447
454
  generatePdf: We,
448
- generateCsv: lt,
455
+ generateCsv: rt,
449
456
  generateImage: Ye,
450
- toggleTable: je,
451
- toggleLabels: et,
452
- toggleTooltip: tt,
453
- toggleAnnotator: $e
457
+ toggleTable: et,
458
+ toggleLabels: tt,
459
+ toggleTooltip: at,
460
+ toggleAnnotator: $e,
461
+ toggleFullscreen: je
454
462
  }), (a, r) => (s(), n("div", {
455
463
  id: `stackbar_${V.value}`,
456
464
  ref_key: "stackbarChart",
457
- ref: te,
465
+ ref: E,
458
466
  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%" : ""}`),
467
+ 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%" : ""}`),
460
468
  onMouseenter: r[6] || (r[6] = () => y(Re)(!0)),
461
469
  onMouseleave: r[7] || (r[7] = () => y(Re)(!1))
462
470
  }, [
463
- e.value.userOptions.buttons.annotator ? (s(), j(y(Lt), {
471
+ e.value.userOptions.buttons.annotator ? (s(), ee(y(Ct), {
464
472
  key: 0,
465
- svgRef: y(De),
473
+ svgRef: y(Ue),
466
474
  backgroundColor: e.value.style.chart.backgroundColor,
467
475
  color: e.value.style.chart.color,
468
476
  active: ye.value,
@@ -475,7 +483,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
475
483
  ref: Ne,
476
484
  style: "width:100%;background:transparent;padding-bottom:24px"
477
485
  }, [
478
- ie(pa, {
486
+ ie(xa, {
479
487
  config: {
480
488
  title: {
481
489
  cy: "stackbar-title",
@@ -488,7 +496,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
488
496
  }
489
497
  }, null, 8, ["config"])
490
498
  ], 512)) : g("", !0),
491
- e.value.userOptions.show && Z.value && (y(Ae) || y(_e)) ? (s(), j(y(St), {
499
+ e.value.userOptions.show && K.value && (y(Ae) || y(_e)) ? (s(), ee(y($t), {
492
500
  ref: "details",
493
501
  key: `user_option_${Te.value}`,
494
502
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -504,29 +512,30 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
504
512
  hasLabel: e.value.userOptions.buttons.labels,
505
513
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
506
514
  isFullscreen: ue.value,
507
- chartElement: te.value,
515
+ chartElement: E.value,
508
516
  position: e.value.userOptions.position,
509
517
  isTooltip: L.value.showTooltip,
510
518
  titles: { ...e.value.userOptions.buttonTitles },
511
519
  hasAnnotator: e.value.userOptions.buttons.annotator,
512
520
  isAnnotation: ye.value,
513
521
  callbacks: e.value.userOptions.callbacks,
514
- onToggleFullscreen: Rt,
522
+ printScale: e.value.userOptions.print.scale,
523
+ onToggleFullscreen: je,
515
524
  onGeneratePdf: y(We),
516
- onGenerateCsv: lt,
525
+ onGenerateCsv: rt,
517
526
  onGenerateImage: y(Ye),
518
- onToggleTable: je,
519
- onToggleLabels: et,
520
- onToggleTooltip: tt,
527
+ onToggleTable: et,
528
+ onToggleLabels: tt,
529
+ onToggleTooltip: at,
521
530
  onToggleAnnotator: $e,
522
- style: G({
531
+ style: J({
523
532
  visibility: y(Ae) ? y(_e) ? "visible" : "hidden" : "visible"
524
533
  })
525
- }, ht({ _: 2 }, [
534
+ }, vt({ _: 2 }, [
526
535
  a.$slots.menuIcon ? {
527
536
  name: "menuIcon",
528
537
  fn: _(({ isOpen: t, color: l }) => [
529
- z(a.$slots, "menuIcon", F(U({ isOpen: t, color: l })), void 0, !0)
538
+ z(a.$slots, "menuIcon", D(F({ isOpen: t, color: l })), void 0, !0)
530
539
  ]),
531
540
  key: "0"
532
541
  } : void 0,
@@ -575,27 +584,27 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
575
584
  a.$slots.optionFullscreen ? {
576
585
  name: "optionFullscreen",
577
586
  fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
578
- z(a.$slots, "optionFullscreen", F(U({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
587
+ z(a.$slots, "optionFullscreen", D(F({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
579
588
  ]),
580
589
  key: "7"
581
590
  } : void 0,
582
591
  a.$slots.optionAnnotator ? {
583
592
  name: "optionAnnotator",
584
593
  fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
585
- z(a.$slots, "optionAnnotator", F(U({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
594
+ z(a.$slots, "optionAnnotator", D(F({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
586
595
  ]),
587
596
  key: "8"
588
597
  } : void 0
589
- ]), 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
- Z.value ? (s(), n("svg", {
598
+ ]), 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),
599
+ K.value ? (s(), n("svg", {
591
600
  key: 3,
592
601
  ref_key: "svgRef",
593
- ref: De,
594
- xmlns: y(sa),
602
+ ref: Ue,
603
+ xmlns: y(oa),
595
604
  viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
596
- style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
605
+ style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
597
606
  }, [
598
- ie(y(zt)),
607
+ ie(y(Lt)),
599
608
  a.$slots["chart-background"] ? (s(), n("foreignObject", {
600
609
  key: 0,
601
610
  x: o.value.left,
@@ -607,8 +616,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
607
616
  }
608
617
  }, [
609
618
  z(a.$slots, "chart-background", {}, void 0, !0)
610
- ], 8, Ca)) : g("", !0),
611
- e.value.style.chart.bars.gradient.show ? (s(), n("defs", _a, [
619
+ ], 8, Sa)) : g("", !0),
620
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", $a, [
612
621
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
613
622
  id: `gradient_${t.id}`,
614
623
  x1: "0%",
@@ -616,19 +625,19 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
616
625
  x2: "0%",
617
626
  y2: "100%"
618
627
  }, [
619
- J("stop", {
628
+ q("stop", {
620
629
  offset: "0%",
621
630
  "stop-color": t.color
622
- }, null, 8, $a),
623
- J("stop", {
631
+ }, null, 8, Ta),
632
+ q("stop", {
624
633
  offset: "61.8%",
625
- "stop-color": y(oa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
626
- }, null, 8, Ma),
627
- J("stop", {
634
+ "stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
635
+ }, null, 8, Na),
636
+ q("stop", {
628
637
  offset: "100%",
629
638
  "stop-color": t.color
630
- }, null, 8, Ta)
631
- ], 8, Sa))), 256))
639
+ }, null, 8, Ia)
640
+ ], 8, Ma))), 256))
632
641
  ])) : g("", !0),
633
642
  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", {
634
643
  x1: o.value.left,
@@ -639,7 +648,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
639
648
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
640
649
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
641
650
  "stroke-linecap": "round"
642
- }, null, 8, Na))), 256)) : g("", !0),
651
+ }, null, 8, Pa))), 256)) : g("", !0),
643
652
  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", {
644
653
  x1: o.value.left,
645
654
  x2: o.value.right,
@@ -649,7 +658,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
649
658
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
650
659
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
651
660
  "stroke-linecap": "round"
652
- }, null, 8, Ia))), 256)) : g("", !0),
661
+ }, null, 8, Oa))), 256)) : g("", !0),
653
662
  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", {
654
663
  x1: o.value.left + d.value * l,
655
664
  x2: o.value.left + d.value * l,
@@ -659,7 +668,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
659
668
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
660
669
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
661
670
  "stroke-linecap": "round"
662
- }, null, 8, Pa))), 256)) : g("", !0),
671
+ }, null, 8, Va))), 256)) : g("", !0),
663
672
  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", {
664
673
  x1: t.horizontal_x,
665
674
  x2: t.horizontal_x,
@@ -669,9 +678,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
669
678
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
670
679
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
671
680
  "stroke-linecap": "round"
672
- }, null, 8, Oa))), 256)) : g("", !0),
681
+ }, null, 8, Ra))), 256)) : g("", !0),
673
682
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
674
- a.$slots.pattern ? (s(), n("defs", Va, [
683
+ a.$slots.pattern ? (s(), n("defs", Aa, [
675
684
  z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
676
685
  ])) : g("", !0),
677
686
  e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
@@ -686,9 +695,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
686
695
  "stroke-width": e.value.style.chart.bars.strokeWidth,
687
696
  "stroke-linecap": "round",
688
697
  "stroke-linejoin": "round",
689
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
690
- }, null, 10, Ra))), 256)),
691
- a.$slots.pattern ? (s(), n("g", Aa, [
698
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
699
+ }, null, 10, Ua))), 256)),
700
+ a.$slots.pattern ? (s(), n("g", Da, [
692
701
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
693
702
  x: c,
694
703
  y: t.y[u] < 0 ? 0 : t.y[u],
@@ -700,8 +709,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
700
709
  "stroke-width": e.value.style.chart.bars.strokeWidth,
701
710
  "stroke-linecap": "round",
702
711
  "stroke-linejoin": "round",
703
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
704
- }, null, 10, Da))), 256))
712
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
713
+ }, null, 10, Fa))), 256))
705
714
  ])) : g("", !0)
706
715
  ], 64)) : (s(), n(v, { key: 2 }, [
707
716
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
@@ -715,9 +724,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
715
724
  "stroke-width": e.value.style.chart.bars.strokeWidth,
716
725
  "stroke-linecap": "round",
717
726
  "stroke-linejoin": "round",
718
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
719
- }, null, 10, Fa))), 256)),
720
- a.$slots.pattern ? (s(), n("g", Ua, [
727
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
728
+ }, null, 10, Ea))), 256)),
729
+ a.$slots.pattern ? (s(), n("g", Ha, [
721
730
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
722
731
  x: y(xe)(c, o.value.left),
723
732
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
@@ -729,8 +738,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
729
738
  "stroke-width": e.value.style.chart.bars.strokeWidth,
730
739
  "stroke-linecap": "round",
731
740
  "stroke-linejoin": "round",
732
- class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": E.value })
733
- }, null, 10, Ea))), 256))
741
+ class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
742
+ }, null, 10, Ba))), 256))
734
743
  ])) : g("", !0)
735
744
  ], 64))
736
745
  ]))), 256)),
@@ -744,7 +753,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
744
753
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
745
754
  "stroke-linecap": "round",
746
755
  "stroke-linejoin": "round"
747
- }, null, 8, Ha)) : g("", !0),
756
+ }, null, 8, Wa)) : g("", !0),
748
757
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
749
758
  key: 7,
750
759
  x1: o.value.left,
@@ -755,7 +764,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
755
764
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
756
765
  "stroke-linecap": "round",
757
766
  "stroke-linejoin": "round"
758
- }, null, 8, Ba)) : g("", !0),
767
+ }, null, 8, Ya)) : g("", !0),
759
768
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
760
769
  key: 8,
761
770
  x: o.value.left + o.value.width / 2,
@@ -764,7 +773,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
764
773
  fill: e.value.style.chart.grid.x.axisName.color,
765
774
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
766
775
  "text-anchor": "middle"
767
- }, T(e.value.style.chart.grid.x.axisName.text), 9, Wa)) : g("", !0),
776
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Xa)) : g("", !0),
768
777
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
769
778
  key: 9,
770
779
  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)`,
@@ -772,22 +781,22 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
772
781
  fill: e.value.style.chart.grid.y.axisName.color,
773
782
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
774
783
  "text-anchor": "middle"
775
- }, T(e.value.style.chart.grid.y.axisName.text), 9, Ya)) : g("", !0),
784
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ga)) : g("", !0),
776
785
  L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
777
786
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
778
787
  (s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
779
- st(t.series[u], t.proportions[u]) ? (s(), n("text", {
788
+ ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
780
789
  key: 0,
781
790
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
782
791
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
783
792
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
784
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
793
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
785
794
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
786
795
  "text-anchor": "middle"
787
- }, 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)
796
+ }, 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)
788
797
  ], 64))), 256))
789
798
  ]))), 256)),
790
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Ga, [
799
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
791
800
  (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
792
801
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
793
802
  key: 0,
@@ -797,25 +806,25 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
797
806
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
798
807
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
799
808
  fill: e.value.style.chart.bars.totalValues.color
800
- }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
809
+ }, T(ve(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
801
810
  ], 64))), 256))
802
811
  ])) : g("", !0)
803
812
  ], 64)) : g("", !0),
804
813
  L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
805
814
  (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
806
815
  (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
807
- st(t.series[u], t.proportions[u]) ? (s(), n("text", {
816
+ ot(t.series[u], t.proportions[u]) ? (s(), n("text", {
808
817
  key: 0,
809
818
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
810
819
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
811
820
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
812
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
821
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
813
822
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
814
823
  "text-anchor": "middle"
815
- }, 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)
824
+ }, 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)
816
825
  ], 64))), 256))
817
826
  ]))), 256)),
818
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Za, [
827
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
819
828
  (s(!0), n(v, null, f(qe.value, (t, l) => (s(), n(v, null, [
820
829
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
821
830
  key: 0,
@@ -825,7 +834,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
825
834
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
826
835
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
827
836
  fill: e.value.style.chart.bars.totalValues.color
828
- }, T(ve(t.value, t, l, t.sign)), 9, Ka)) : g("", !0)
837
+ }, T(ve(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
829
838
  ], 64))), 256))
830
839
  ])) : g("", !0)
831
840
  ], 64)) : g("", !0),
@@ -837,7 +846,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
837
846
  y2: t.y,
838
847
  stroke: e.value.style.chart.grid.x.axisColor,
839
848
  "stroke-width": 1
840
- }, null, 8, Qa))), 256)),
849
+ }, null, 8, el))), 256)),
841
850
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
842
851
  x: t.x,
843
852
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -848,14 +857,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
848
857
  }, T(y(ke)(
849
858
  e.value.style.chart.grid.y.axisLabels.formatter,
850
859
  t.value,
851
- y(q)({
860
+ y(Z)({
852
861
  p: e.value.style.chart.bars.dataLabels.prefix,
853
862
  v: t.value,
854
863
  s: e.value.style.chart.bars.dataLabels.suffix,
855
864
  r: e.value.style.chart.grid.y.axisLabels.rounding
856
865
  }),
857
866
  { datapoint: t }
858
- )), 9, ja))), 256))
867
+ )), 9, tl))), 256))
859
868
  ], 64)) : g("", !0),
860
869
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
861
870
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
@@ -866,7 +875,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
866
875
  stroke: e.value.style.chart.grid.x.axisColor,
867
876
  "stroke-width": 1,
868
877
  "stroke-linecap": "round"
869
- }, null, 8, el))), 256)),
878
+ }, null, 8, al))), 256)),
870
879
  (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
871
880
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
872
881
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -876,17 +885,17 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
876
885
  }, T(y(ke)(
877
886
  e.value.style.chart.grid.y.axisLabels.formatter,
878
887
  t.value,
879
- y(q)({
888
+ y(Z)({
880
889
  p: e.value.style.chart.bars.dataLabels.prefix,
881
890
  v: t.value,
882
891
  s: e.value.style.chart.bars.dataLabels.suffix,
883
892
  r: e.value.style.chart.grid.y.axisLabels.rounding
884
893
  }),
885
894
  { datapoint: t }
886
- )), 9, tl))), 256))
895
+ )), 9, ll))), 256))
887
896
  ], 64)) : g("", !0),
888
897
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
889
- a.$slots["time-label"] ? (s(), n("g", al, [
898
+ a.$slots["time-label"] ? (s(), n("g", rl, [
890
899
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
891
900
  z(a.$slots, "time-label", Me({ ref_for: !0 }, {
892
901
  x: o.value.left + d.value * l + d.value / 2,
@@ -900,7 +909,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
900
909
  show: !0
901
910
  }), void 0, !0)
902
911
  ]))), 256))
903
- ])) : (s(), n("g", ll, [
912
+ ])) : (s(), n("g", sl, [
904
913
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
905
914
  String(t.text).includes(`
906
915
  `) ? (s(), n("text", {
@@ -916,7 +925,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
916
925
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
917
926
  `,
918
927
  style: { cursor: "pointer" },
919
- innerHTML: y(ia)({
928
+ innerHTML: y(na)({
920
929
  content: String(t.text),
921
930
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
922
931
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -924,7 +933,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
924
933
  y: 0
925
934
  }),
926
935
  onClick: () => ge(t, l)
927
- }, null, 8, sl)) : (s(), n("text", {
936
+ }, null, 8, il)) : (s(), n("text", {
928
937
  key: l,
929
938
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
930
939
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -933,12 +942,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
933
942
  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})`,
934
943
  style: { cursor: "pointer" },
935
944
  onClick: () => ge(t, l)
936
- }, T(t.text), 9, rl))
945
+ }, T(t.text), 9, ol))
937
946
  ]))), 256))
938
947
  ]))
939
948
  ], 64)) : g("", !0),
940
949
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
941
- a.$slots["time-label"] ? (s(), n("g", ol, [
950
+ a.$slots["time-label"] ? (s(), n("g", nl, [
942
951
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
943
952
  z(a.$slots, "time-label", Me({ ref_for: !0 }, {
944
953
  x: o.value.left - 8,
@@ -952,7 +961,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
952
961
  show: !0
953
962
  }), void 0, !0)
954
963
  ]))), 256))
955
- ])) : (s(), n("g", il, [
964
+ ])) : (s(), n("g", ul, [
956
965
  (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
957
966
  String(t.text).includes(`
958
967
  `) ? (s(), n("text", {
@@ -965,14 +974,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
965
974
  y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
966
975
  style: { cursor: "pointer" },
967
976
  onClick: () => ge(t, l),
968
- innerHTML: y(na)({
977
+ innerHTML: y(ua)({
969
978
  content: String(t.text),
970
979
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
971
980
  fill: e.value.style.chart.grid.y.axisLabels.color,
972
981
  x: o.value.left - 8,
973
982
  y: 0
974
983
  })
975
- }, null, 8, ul)) : (s(), n("text", {
984
+ }, null, 8, hl)) : (s(), n("text", {
976
985
  key: 0,
977
986
  "text-anchor": "end",
978
987
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -984,7 +993,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
984
993
  cursor: "pointer"
985
994
  },
986
995
  onClick: () => ge(t, l)
987
- }, T(t.text), 9, nl))
996
+ }, T(t.text), 9, cl))
988
997
  ]))), 256))
989
998
  ]))
990
999
  ], 64)) : g("", !0),
@@ -999,8 +1008,8 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
999
1008
  ae.value = null, ne.value = !1;
1000
1009
  }),
1001
1010
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1002
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1003
- }, null, 44, cl))), 256)) : g("", !0),
1011
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1012
+ }, null, 44, vl))), 256)) : g("", !0),
1004
1013
  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", {
1005
1014
  x: o.value.left,
1006
1015
  y: o.value.top + l * d.value,
@@ -1012,14 +1021,14 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1012
1021
  ae.value = null, ne.value = !1;
1013
1022
  }),
1014
1023
  fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1015
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1016
- }, null, 44, hl))), 256)) : g("", !0),
1017
- z(a.$slots, "svg", F(U({ ...o.value })), void 0, !0)
1018
- ], 12, La)) : g("", !0),
1019
- a.$slots.watermark ? (s(), n("div", vl, [
1020
- z(a.$slots, "watermark", F(U({ isPrinting: y(He) || y(Be) })), void 0, !0)
1024
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1025
+ }, null, 44, dl))), 256)) : g("", !0),
1026
+ z(a.$slots, "svg", D(F({ ...o.value })), void 0, !0)
1027
+ ], 12, _a)) : g("", !0),
1028
+ a.$slots.watermark ? (s(), n("div", yl, [
1029
+ z(a.$slots, "watermark", D(F({ isPrinting: y(He) || y(Be) })), void 0, !0)
1021
1030
  ])) : g("", !0),
1022
- Z.value ? g("", !0) : (s(), j(y(Ct), {
1031
+ K.value ? g("", !0) : (s(), ee(y(_t), {
1023
1032
  key: 5,
1024
1033
  config: {
1025
1034
  type: "bar",
@@ -1034,15 +1043,15 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1034
1043
  }
1035
1044
  }
1036
1045
  }, null, 8, ["config"])),
1037
- J("div", {
1046
+ q("div", {
1038
1047
  ref_key: "chartSlicer",
1039
1048
  ref: Pe,
1040
- style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1049
+ style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1041
1050
  "data-dom-to-png-ignore": ""
1042
1051
  }, [
1043
- e.value.style.chart.zoom.show && D.value > 1 ? (s(), j(ma, {
1052
+ e.value.style.chart.zoom.show && U.value > 1 ? (s(), ee(pa, {
1044
1053
  ref_key: "slicerComponent",
1045
- ref: K,
1054
+ ref: Q,
1046
1055
  key: `slicer_${Ve.value}`,
1047
1056
  background: e.value.style.chart.zoom.color,
1048
1057
  borderColor: e.value.style.chart.backgroundColor,
@@ -1068,12 +1077,12 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1068
1077
  onReset: Ge
1069
1078
  }, {
1070
1079
  "reset-action": _(({ reset: t }) => [
1071
- z(a.$slots, "reset-action", F(U({ reset: t })), void 0, !0)
1080
+ z(a.$slots, "reset-action", D(F({ reset: t })), void 0, !0)
1072
1081
  ]),
1073
1082
  _: 3
1074
1083
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
1075
1084
  ], 4),
1076
- ie(y(_t), {
1085
+ ie(y(St), {
1077
1086
  show: L.value.showTooltip && ne.value,
1078
1087
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1079
1088
  color: e.value.style.chart.tooltip.color,
@@ -1084,41 +1093,41 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1084
1093
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1085
1094
  position: e.value.style.chart.tooltip.position,
1086
1095
  offsetY: e.value.style.chart.tooltip.offsetY,
1087
- parent: te.value,
1096
+ parent: E.value,
1088
1097
  content: Ce.value,
1089
1098
  isFullscreen: ue.value,
1090
- isCustom: y(ft)(e.value.style.chart.tooltip.customFormat)
1099
+ isCustom: y(mt)(e.value.style.chart.tooltip.customFormat)
1091
1100
  }, {
1092
1101
  "tooltip-before": _(() => [
1093
- z(a.$slots, "tooltip-before", F(U({ ...Le.value })), void 0, !0)
1102
+ z(a.$slots, "tooltip-before", D(F({ ...Le.value })), void 0, !0)
1094
1103
  ]),
1095
1104
  "tooltip-after": _(() => [
1096
- z(a.$slots, "tooltip-after", F(U({ ...Le.value })), void 0, !0)
1105
+ z(a.$slots, "tooltip-after", D(F({ ...Le.value })), void 0, !0)
1097
1106
  ]),
1098
1107
  _: 3
1099
1108
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1100
- J("div", {
1109
+ q("div", {
1101
1110
  ref_key: "chartLegend",
1102
1111
  ref: Ie
1103
1112
  }, [
1104
- e.value.style.chart.legend.show && Z.value ? (s(), j(fa, {
1113
+ e.value.style.chart.legend.show && K.value ? (s(), ee(ma, {
1105
1114
  key: 0,
1106
- legendSet: rt.value,
1107
- config: Ft.value,
1115
+ legendSet: st.value,
1116
+ config: Dt.value,
1108
1117
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1109
- }, ht({
1118
+ }, vt({
1110
1119
  item: _(({ legend: t }) => [
1111
- J("div", {
1120
+ q("div", {
1112
1121
  onClick: (l) => t.segregate(),
1113
- style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1114
- }, T(t.name), 13, dl)
1122
+ style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1123
+ }, T(t.name), 13, gl)
1115
1124
  ]),
1116
1125
  _: 2
1117
1126
  }, [
1118
1127
  a.$slots.pattern ? {
1119
1128
  name: "legend-pattern",
1120
1129
  fn: _(({ legend: t, index: l }) => [
1121
- ie(xa, {
1130
+ ie(ka, {
1122
1131
  shape: t.shape,
1123
1132
  radius: 30,
1124
1133
  stroke: "none",
@@ -1130,7 +1139,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1130
1139
  } : void 0
1131
1140
  ]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
1132
1141
  key: 1,
1133
- legend: rt.value
1142
+ legend: st.value
1134
1143
  }, void 0, !0)
1135
1144
  ], 512),
1136
1145
  a.$slots.source ? (s(), n("div", {
@@ -1141,7 +1150,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1141
1150
  }, [
1142
1151
  z(a.$slots, "source", {}, void 0, !0)
1143
1152
  ], 512)) : g("", !0),
1144
- h.value.end - h.value.start < 200 ? (s(), j(y(kt), {
1153
+ h.value.end - h.value.start < 200 ? (s(), ee(y(wt), {
1145
1154
  key: 7,
1146
1155
  hideDetails: "",
1147
1156
  config: {
@@ -1158,7 +1167,7 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1158
1167
  }
1159
1168
  }, {
1160
1169
  content: _(() => [
1161
- ie(y(wt), {
1170
+ ie(y(zt), {
1162
1171
  colNames: de.value.colNames,
1163
1172
  head: de.value.head,
1164
1173
  body: de.value.body,
@@ -1167,10 +1176,10 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1167
1176
  onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
1168
1177
  }, {
1169
1178
  th: _(({ th: t }) => [
1170
- J("div", { innerHTML: t }, null, 8, yl)
1179
+ q("div", { innerHTML: t }, null, 8, bl)
1171
1180
  ]),
1172
1181
  td: _(({ td: t }) => [
1173
- Kt(T(isNaN(Number(t)) ? t : y(q)({
1182
+ Qt(T(isNaN(Number(t)) ? t : y(Z)({
1174
1183
  p: e.value.style.chart.bars.dataLabels.prefix,
1175
1184
  v: t,
1176
1185
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1182,9 +1191,9 @@ const za = ["id"], La = ["xmlns", "viewBox"], Ca = ["x", "y", "width", "height"]
1182
1191
  ]),
1183
1192
  _: 1
1184
1193
  }, 8, ["config"])) : g("", !0)
1185
- ], 46, za));
1194
+ ], 46, Ca));
1186
1195
  }
1187
- }, Ml = /* @__PURE__ */ wa(gl, [["__scopeId", "data-v-03f7efdc"]]);
1196
+ }, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-b9780259"]]);
1188
1197
  export {
1189
- Ml as default
1198
+ Il as default
1190
1199
  };