vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

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 (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,20 +1,21 @@
1
- import { defineAsyncComponent as X, useSlots as Xt, computed as z, ref as p, onMounted as st, watch as it, shallowRef as nt, onBeforeUnmount as Gt, nextTick as be, createElementBlock as n, openBlock as o, unref as y, normalizeStyle as G, normalizeClass as oe, createBlock as j, createCommentVNode as g, renderSlot as k, createElementVNode as J, createVNode as se, createSlots as ut, withCtx as L, normalizeProps as E, guardReactiveProps as D, Fragment as h, renderList as b, mergeProps as Me, toDisplayString as T, createTextVNode as Jt } from "vue";
2
- import { u as qt, c as ct, t as Zt, p as fe, a as Kt, C as me, b as Qt, o as jt, e as vt, g as ea, d as ta, al as pe, ai as ht, D as dt, X as aa, l as la, a7 as xe, F as yt, i as ke, f as q, I as ra, am as oa, x as gt, q as sa, r as ia, y as na } from "./index-DMqAxz7R.js";
3
- import { u as bt } from "./useNestedProp-YgN3FV_8.js";
4
- import { t as ua, u as ca } from "./useResponsive-DfdjqQps.js";
5
- import { u as va } from "./usePrinter-COkTjv6C.js";
6
- import { u as ha } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as da } from "./useChartAccessibility-9icAAmYg.js";
8
- import ya from "./Legend-Q4bOb-Nf.js";
9
- import { S as ga } from "./Slicer-DZEFp2GU.js";
10
- import ba from "./Title-D29apS4l.js";
11
- import { _ as fa } from "./Shape-DbsLJ-SE.js";
12
- import { u as ma } from "./useTimeLabels-Mrr0jrpL.js";
13
- import { _ as pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], za = { key: 1 }, Ca = ["id"], _a = ["stop-color"], La = ["stop-color"], Sa = ["stop-color"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x1", "x2", "y1", "y2", "stroke"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["x1", "x2", "y1", "y2", "stroke"], Ia = { key: 0 }, Oa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ra = { key: 0 }, Pa = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Va = { key: 0 }, Fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ha = ["x", "y", "font-size", "fill", "font-weight"], Ba = ["transform", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ya = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Xa = ["x", "y", "font-size", "fill", "font-weight"], Ga = { key: 0 }, Ja = ["x", "y", "font-size", "font-weight", "fill"], qa = ["x1", "x2", "y1", "y2", "stroke"], Za = ["x", "y", "font-size", "font-weight", "fill"], Ka = ["x1", "x2", "y1", "y2", "stroke"], Qa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ja = { key: 0 }, el = { key: 1 }, tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], al = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], ll = { key: 0 }, rl = { key: 1 }, ol = ["font-size", "font-weight", "fill", "x", "y", "onClick"], sl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], il = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], nl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ul = {
1
+ import { defineAsyncComponent as G, useSlots as Zt, computed as w, ref as p, onMounted as ct, watch as ht, shallowRef as vt, onBeforeUnmount as Kt, nextTick as be, createElementBlock as n, openBlock as s, unref as y, normalizeStyle as J, normalizeClass as oe, createBlock as q, createCommentVNode as g, renderSlot as z, createElementVNode as Z, createVNode as fe, createSlots as dt, 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 yt, t as ea, p as me, a as ta, C as te, b as aa, o as la, e as gt, g as ra, d as sa, am as pe, ab as bt, D as ft, X as oa, l as ia, aa as xe, F as mt, i as ke, f as K, I as na, a0 as ua, x as pt, q as ca, r as ha, y as va } from "./index-BzfnuLnw.js";
3
+ import { u as xt } from "./useNestedProp-DorElw91.js";
4
+ import { t as da, u as ya } from "./useResponsive-DfdjqQps.js";
5
+ import { u as ga } from "./usePrinter-C9qkgv0r.js";
6
+ import { u as ba } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as fa } from "./useChartAccessibility-9icAAmYg.js";
8
+ import ma from "./Legend-CYbP3Kfg.js";
9
+ import { S as pa } from "./Slicer-nrMi5hzj.js";
10
+ import xa from "./Title-pVYRzQXY.js";
11
+ import { _ as ka } from "./Shape-DBXkGxKt.js";
12
+ import { u as wa } from "./useTimeLabels-Mrr0jrpL.js";
13
+ import za from "./img-ku4zevVD.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
- }, cl = ["onClick"], vl = ["innerHTML"], hl = {
18
+ }, gl = ["onClick"], bl = ["innerHTML"], fl = {
18
19
  __name: "vue-ui-stackbar",
19
20
  props: {
20
21
  config: {
@@ -31,49 +32,50 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
31
32
  }
32
33
  },
33
34
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
34
- setup(we, { expose: ft, emit: mt }) {
35
- const pt = X(() => import("./vue-ui-accordion-P6eFHGQp.js")), xt = X(() => import("./DataTable-BBbOgI-a.js")), kt = X(() => import("./PackageVersion-D0VPY8-5.js")), wt = X(() => import("./PenAndPaper-DhBJsnob.js")), zt = X(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), Ct = X(() => import("./Tooltip-hVZUY_s5.js")), _t = X(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_stackbar: Lt } = qt(), St = Xt(), f = we, ze = mt, Z = z({
35
+ setup(we, { expose: kt, emit: wt }) {
36
+ const zt = G(() => import("./vue-ui-accordion-DgZK-qDz.js")), Lt = G(() => import("./DataTable-CgL0Rz0x.js")), Ct = G(() => import("./PackageVersion-CAkNkiIG.js")), _t = G(() => import("./PenAndPaper-Cx1-5zdD.js")), St = G(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), $t = G(() => import("./Tooltip-NwATo4ZJ.js")), Mt = G(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_stackbar: Tt } = jt(), Nt = Zt(), b = we, ze = wt, Q = w({
36
37
  get() {
37
- return !!f.dataset && f.dataset.length;
38
+ return !!b.dataset && b.dataset.length;
38
39
  },
39
40
  set(a) {
40
41
  return a;
41
42
  }
42
- }), ee = p(null), P = p(ct()), ie = p(!1), Ce = p(null), _e = p(""), S = p([]), Te = p(0), Ne = p(null), Ie = p(null), Oe = p(null), Re = p(null), Pe = p(0), ne = p(!1), te = p(null), H = p(!1), $t = p(0), Mt = p(0), Tt = p(0), K = p(null);
43
- st(() => {
43
+ }), R = p(null), V = p(yt()), ie = 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), ne = p(!1), ae = p(null), H = p(!1), Ve = p(0), It = p(0), Pt = p(0), j = p(null);
44
+ ct(() => {
44
45
  Se();
45
46
  });
46
- const e = z({
47
- get: () => Ee(),
47
+ const e = w({
48
+ get: () => Fe(),
48
49
  set: (a) => a
49
- }), { userOptionsVisible: Le, setUserOptionsVisibility: Ae, keepUserOptionState: Ve } = ha({ config: e.value }), { svgRef: Fe } = da({ config: e.value.style.chart.title });
50
- function Ee() {
51
- const a = bt({
52
- userConfig: f.config,
53
- defaultConfig: Lt
50
+ }), { userOptionsVisible: _e, setUserOptionsVisibility: Ae, keepUserOptionState: Ue } = ba({ config: e.value }), { svgRef: De } = fa({ config: e.value.style.chart.title });
51
+ function Fe() {
52
+ const a = xt({
53
+ userConfig: b.config,
54
+ defaultConfig: Tt
54
55
  });
55
56
  let r = {};
56
57
  return a.theme ? r = {
57
- ...bt({
58
- userConfig: Kt.vue_ui_stackbar[a.theme] || f.config,
58
+ ...xt({
59
+ userConfig: ta.vue_ui_stackbar[a.theme] || b.config,
59
60
  defaultConfig: a
60
61
  }),
61
- customPalette: Zt[a.theme] || fe
62
- } : r = a, f.config && me(f.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, f.config && me(f.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, f.config && me(f.config, "style.chart.zoom.startIndex") ? r.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : r.style.chart.zoom.startIndex = null, f.config && me(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
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
- it(() => f.config, (a) => {
65
- e.value = Ee(), Le.value = !e.value.userOptions.showOnChartHover, Se(), $t.value += 1, Mt.value += 1, Tt.value += 1, C.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
66
- }, { deep: !0 }), it(() => f.dataset, (a) => {
67
- Ue();
65
+ const Ee = w(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), He = w(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
66
+ ht(() => b.config, (a) => {
67
+ e.value = Fe(), _e.value = !e.value.userOptions.showOnChartHover, Se(), Ve.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 }), ht(() => b.dataset, (a) => {
69
+ Je();
68
70
  }, { deep: !0 });
69
- const C = p({
71
+ const L = p({
70
72
  dataLabels: {
71
73
  show: e.value.style.chart.bars.dataLabels.show
72
74
  },
73
75
  showTable: e.value.table.show,
74
76
  showTooltip: e.value.style.chart.tooltip.show
75
- }), { isPrinting: De, isImaging: He, generatePdf: Be, generateImage: We } = va({
76
- elementId: `stackbar_${P.value}`,
77
+ }), { isPrinting: Be, isImaging: We, generatePdf: Ye, generateImage: Xe } = ga({
78
+ elementId: `stackbar_${V.value}`,
77
79
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
78
80
  options: e.value.userOptions.print
79
81
  }), ue = p({
@@ -85,20 +87,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
85
87
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
86
88
  left: e.value.style.chart.padding.left / e.value.style.chart.width
87
89
  }
88
- }), Nt = z(() => Qt(e.value.customPalette)), A = nt(null), Q = nt(null), Ye = p(null);
89
- st(() => {
90
+ }), Ot = w(() => aa(e.value.customPalette)), A = vt(null), ee = vt(null), Ge = p(null);
91
+ ct(() => {
90
92
  Se();
91
93
  });
92
94
  function Se() {
93
- if (jt(f.dataset) ? vt({
95
+ if (la(b.dataset) ? gt({
94
96
  componentName: "VueUiStackbar",
95
97
  type: "dataset"
96
- }) : f.dataset.forEach((a, r) => {
97
- ea({
98
+ }) : b.dataset.forEach((a, r) => {
99
+ ra({
98
100
  datasetObject: a,
99
101
  requiredAttributes: ["name", "series"]
100
102
  }).forEach((t) => {
101
- Z.value = !1, vt({
103
+ Q.value = !1, gt({
102
104
  componentName: "VueUiStackbar",
103
105
  type: "datasetSerieAttribute",
104
106
  property: t,
@@ -108,42 +110,42 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
108
110
  }), setTimeout(() => {
109
111
  H.value = !0;
110
112
  }, 10), e.value.responsive) {
111
- const a = ua(() => {
113
+ const a = da(() => {
112
114
  H.value = !1;
113
- const { width: r, height: t } = ca({
114
- chart: ee.value,
115
+ const { width: r, height: t } = ya({
116
+ chart: R.value,
115
117
  title: e.value.style.chart.title.text ? Ne.value : null,
116
118
  legend: e.value.style.chart.legend.show ? Ie.value : null,
117
- slicer: e.value.style.chart.zoom.show && F.value > 1 ? Oe.value : null,
118
- source: Re.value
119
+ slicer: e.value.style.chart.zoom.show && D.value > 1 ? Pe.value : null,
120
+ source: Oe.value
119
121
  });
120
122
  requestAnimationFrame(() => {
121
- ue.value.width = r, ue.value.height = t, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
123
+ ue.value.width = r, ue.value.height = t, clearTimeout(Ge.value), Ge.value = setTimeout(() => {
122
124
  H.value = !0;
123
125
  }, 10);
124
126
  });
125
127
  });
126
- A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect()), A.value = new ResizeObserver(a), Q.value = ee.value.parentNode, A.value.observe(Q.value);
128
+ A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect()), A.value = new ResizeObserver(a), ee.value = R.value.parentNode, A.value.observe(ee.value);
127
129
  }
128
- Xe();
130
+ qe();
129
131
  }
130
- Gt(() => {
131
- A.value && (Q.value && A.value.unobserve(Q.value), A.value.disconnect());
132
+ Kt(() => {
133
+ A.value && (ee.value && A.value.unobserve(ee.value), A.value.disconnect());
132
134
  });
133
- const s = z(() => {
134
- const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, B = r - _ - r * t, W = a - l - e.value.style.chart.padding.bottom;
135
+ const o = w(() => {
136
+ const { height: a, width: r } = ue.value, { right: t } = ue.value.paddingRatio, l = e.value.style.chart.padding.top, c = r - r * t, u = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, B = r - C - r * t, W = a - l - e.value.style.chart.padding.bottom;
135
137
  return {
136
138
  chartHeight: a,
137
139
  chartWidth: r,
138
140
  top: l,
139
141
  right: c,
140
142
  bottom: u,
141
- left: _,
143
+ left: C,
142
144
  width: B,
143
145
  height: W < 0 ? 0 : W
144
146
  };
145
- }), V = z(() => f.dataset.map((a, r) => {
146
- const t = ta(a.color) || Nt.value[r] || fe[r] || fe[r % fe.length];
147
+ }), U = w(() => b.dataset.map((a, r) => {
148
+ const t = sa(a.color) || Ot.value[r] || me[r] || me[r % me.length];
147
149
  return {
148
150
  ...a,
149
151
  // In distributed mode, all values are converted to positive
@@ -151,104 +153,104 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
151
153
  // Store signs to manage display of neg values in distributed mode
152
154
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
153
155
  absoluteIndex: r,
154
- id: ct(),
156
+ id: yt(),
155
157
  color: t
156
158
  };
157
- })), F = z(() => Math.max(...V.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = p({
159
+ })), D = w(() => Math.max(...U.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = p({
158
160
  start: 0,
159
- end: Math.max(...f.dataset.map((a) => a.series.length))
161
+ end: Math.max(...b.dataset.map((a) => a.series.length))
160
162
  });
161
- function Ue() {
162
- Xe();
163
+ function Je() {
164
+ qe();
163
165
  }
164
- async function Xe() {
165
- (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && K.value ? (e.value.style.chart.zoom.startIndex !== null && (await be(), await be(), K.value && K.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), K.value && K.value.setEndValue(It(e.value.style.chart.zoom.endIndex + 1)))) : (v.value = {
166
+ async function qe() {
167
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && j.value ? (e.value.style.chart.zoom.startIndex !== null && (await be(), await be(), j.value && j.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await be(), await be(), j.value && j.value.setEndValue(Rt(e.value.style.chart.zoom.endIndex + 1)))) : (h.value = {
166
168
  start: 0,
167
- end: Math.max(...f.dataset.map((a) => a.series.length))
168
- }, Pe.value += 1);
169
+ end: Math.max(...b.dataset.map((a) => a.series.length))
170
+ }, Re.value += 1);
169
171
  }
170
- function It(a) {
171
- const r = Math.max(...f.dataset.map((t) => t.series.length));
172
+ function Rt(a) {
173
+ const r = Math.max(...b.dataset.map((t) => t.series.length));
172
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;
173
175
  }
174
- const d = z(() => {
176
+ const d = w(() => {
175
177
  let a;
176
- return e.value.orientation === "vertical" ? a = s.value.width / (v.value.end - v.value.start) : a = s.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
177
- }), ae = z(() => pe(V.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), Ot = z(() => pe(V.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
178
+ 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;
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) => ({
178
180
  ...a,
179
181
  series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
180
- }))).slice(v.value.start, v.value.end)), ce = z(() => {
181
- const a = V.value.filter((r) => !S.value.includes(r.id));
182
+ }))).slice(h.value.start, h.value.end)), ce = w(() => {
183
+ const a = U.value.filter((r) => !S.value.includes(r.id));
182
184
  return {
183
185
  positive: pe(a.map((r) => ({
184
186
  ...r,
185
- series: r.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
187
+ series: r.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
186
188
  }))),
187
189
  negative: pe(a.map((r) => ({
188
190
  ...r,
189
- series: r.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
191
+ series: r.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
190
192
  })))
191
193
  };
192
- }), O = z(() => {
193
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...ce.value.positive), r = Math.min(...ce.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
194
+ }), P = w(() => {
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(...ce.value.positive), r = Math.min(...ce.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : ft(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
194
196
  return l.ticks.map((c) => ({
195
- zero: s.value.bottom - s.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
196
- y: s.value.bottom - s.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
197
- x: s.value.left - 8,
198
- horizontal_zero: s.value.left + s.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
199
- horizontal_x: s.value.left + s.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
200
- horizontal_y: s.value.bottom - 8,
197
+ zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
198
+ y: o.value.bottom - o.value.height * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
199
+ x: o.value.left - 8,
200
+ horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
201
+ horizontal_x: o.value.left + o.value.width * ((c + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
202
+ horizontal_y: o.value.bottom - 8,
201
203
  value: c
202
204
  }));
203
- }), $ = z(() => ma({
205
+ }), $ = w(() => wa({
204
206
  values: e.value.style.chart.grid.x.timeLabels.values,
205
- maxDatapoints: F.value,
207
+ maxDatapoints: D.value,
206
208
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
207
- start: v.value.start,
208
- end: v.value.end
209
- })), w = z(() => {
210
- if (!Z.value) return [];
211
- let a = Array(F.value).fill(0), r = Array(F.value).fill(0), t = Array(F.value).fill(0), l = Array(F.value).fill(0);
212
- const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, B = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : dt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: W, max: le } = B, Y = le + (W >= 0 ? 0 : Math.abs(W)) || 1, M = s.value.height, ge = s.value.width, rt = O.value[0] ? O.value[0].zero : s.value.bottom, ot = O.value[0] ? O.value[0].horizontal_zero : s.value.left;
213
- return V.value.filter((re) => !S.value.includes(re.id)).map((re) => {
214
- const R = re.series.slice(v.value.start, v.value.end), Ft = re.signedSeries.slice(v.value.start, v.value.end), Et = R.map((m, x) => s.value.left + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Dt = R.map((m, x) => s.value.top + d.value * x + d.value * e.value.style.chart.bars.gapRatio / 4), Ht = R.map((m, x) => {
215
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
216
- let U, I;
217
- return m > 0 ? (I = M * N, U = rt - I - a[x], a[x] += I) : (I = M * N, U = rt + t[x], t[x] += Math.abs(I)), U;
218
- }), Bt = R.map((m, x) => {
219
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
220
- let U, I;
221
- return m > 0 ? (I = ge * N, U = ot + r[x], r[x] += I) : (I = ge * N, U = ot - Math.abs(I) - l[x], l[x] += Math.abs(I)), U;
222
- }), Wt = R.map((m, x) => {
223
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
209
+ start: h.value.start,
210
+ end: h.value.end
211
+ })), k = w(() => {
212
+ if (!Q.value) return [];
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);
214
+ const c = Math.max(...ce.value.positive) || 0, u = Math.min(...ce.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) ? 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) : ft(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, ge = o.value.width, nt = P.value[0] ? P.value[0].zero : o.value.bottom, ut = 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 = nt - I - a[x], a[x] += I) : (I = M * N, X = nt + t[x], t[x] += Math.abs(I)), X;
220
+ }), Xt = O.map((m, x) => {
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 = ge * N, X = ut + r[x], r[x] += I) : (I = ge * N, X = ut - Math.abs(I) - l[x], l[x] += Math.abs(I)), X;
224
+ }), Gt = O.map((m, x) => {
225
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
224
226
  return m > 0 ? M * N : M * Math.abs(N);
225
- }), Yt = R.map((m, x) => {
226
- const N = e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Y;
227
+ }), Jt = O.map((m, x) => {
228
+ const N = e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / Y;
227
229
  return m > 0 ? ge * N : ge * Math.abs(N);
228
- }), Ut = R.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);
229
231
  return {
230
- ...re,
231
- proportions: R.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / ae.value[x] : (m || 0) / Ut),
232
- series: R,
233
- signedSeries: Ft,
234
- x: Et,
235
- y: Ht,
236
- height: Wt,
237
- horizontal_width: Yt,
238
- horizontal_y: Dt,
239
- horizontal_x: Bt
232
+ ...se,
233
+ proportions: O.map((m, x) => e.value.style.chart.bars.distributed ? (m || 0) / le.value[x] : (m || 0) / qt),
234
+ series: O,
235
+ signedSeries: Ht,
236
+ x: Bt,
237
+ y: Yt,
238
+ height: Gt,
239
+ horizontal_width: Jt,
240
+ horizontal_y: Wt,
241
+ horizontal_x: Xt
240
242
  };
241
243
  });
242
- }), Ge = z(() => Ot.value.map((a, r) => ({
244
+ }), Ze = w(() => Vt.value.map((a, r) => ({
243
245
  value: a,
244
246
  sign: a >= 0 ? 1 : -1
245
247
  })));
246
- function ve(a, r, t, l, c) {
248
+ function he(a, r, t, l, c) {
247
249
  const u = c === -1 && a >= 0 ? -a : a;
248
250
  return ke(
249
251
  e.value.style.chart.bars.dataLabels.formatter,
250
252
  u,
251
- q({
253
+ K({
252
254
  p: e.value.style.chart.bars.dataLabels.prefix,
253
255
  v: u,
254
256
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -257,11 +259,11 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
257
259
  { datapoint: r, seriesIndex: t, datapointIndex: l }
258
260
  );
259
261
  }
260
- function Je(a, r, t, l) {
262
+ function Ke(a, r, t, l) {
261
263
  return ke(
262
264
  e.value.style.chart.bars.dataLabels.formatter,
263
265
  a,
264
- q({
266
+ K({
265
267
  v: isNaN(a) ? 0 : a,
266
268
  s: "%",
267
269
  r: e.value.style.chart.bars.dataLabels.rounding
@@ -269,8 +271,8 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
269
271
  { datapoint: r, seriesIndex: t, datapointIndex: l }
270
272
  );
271
273
  }
272
- function qe(a) {
273
- const r = JSON.parse(JSON.stringify(w.value)).map((t) => ({
274
+ function Qe(a) {
275
+ const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
274
276
  name: t.name,
275
277
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
276
278
  proportion: t.proportions[a] || null,
@@ -279,9 +281,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
279
281
  }));
280
282
  ze("selectDatapoint", { datapoint: r, period: $.value[a] });
281
283
  }
282
- function Ze(a) {
283
- te.value = a, ie.value = !0;
284
- const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(w.value)).map((c) => ({
284
+ function je(a) {
285
+ ae.value = a, ie.value = !0;
286
+ const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((c) => ({
285
287
  name: c.name,
286
288
  absoluteIndex: c.absoluteIndex,
287
289
  value: c.series[a] === 0 ? 0 : (c.signedSeries[a] === -1 && c.series[a] >= 0 ? -c.series[a] : c.series[a]) || null,
@@ -289,49 +291,49 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
289
291
  color: c.color,
290
292
  id: c.id
291
293
  }));
292
- Ce.value = {
294
+ Le.value = {
293
295
  datapoint: t,
294
296
  seriesIndex: a,
295
297
  config: e.value,
296
- series: w.value
298
+ series: k.value
297
299
  };
298
300
  const l = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
299
- if (gt(r) && na(() => r({
301
+ if (pt(r) && va(() => r({
300
302
  seriesIndex: a,
301
303
  datapoint: t,
302
- series: w.value,
304
+ series: k.value,
303
305
  config: e.value
304
306
  })))
305
- _e.value = r({
307
+ Ce.value = r({
306
308
  seriesIndex: a,
307
309
  datapoint: t,
308
- series: w.value,
310
+ series: k.value,
309
311
  config: e.value
310
312
  });
311
313
  else {
312
314
  const {
313
315
  showValue: c,
314
316
  showPercentage: u,
315
- borderColor: _,
317
+ borderColor: C,
316
318
  roundingValue: B,
317
319
  roundingPercentage: W
318
320
  } = e.value.style.chart.tooltip;
319
- let le = "";
320
- $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (le += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
321
+ let re = "";
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>`);
321
323
  const Y = [
322
324
  c && u ? "(" : "",
323
325
  c && u ? ")" : ""
324
326
  ];
325
327
  t.reverse().forEach((M) => {
326
- le += `
328
+ re += `
327
329
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
328
- <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}"/>${St.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${P.value}_${M.absoluteIndex})"/>` : ""}</svg>
329
- ${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}"/>${Nt.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 ? K({
330
332
  p: e.value.style.chart.bars.dataLabels.prefix,
331
333
  v: M.value,
332
334
  s: e.value.style.chart.bars.dataLabels.suffix,
333
335
  r: B
334
- }) : ""} ${Y[0]}${u ? q({
336
+ }) : ""} ${Y[0]}${u ? K({
335
337
  v: isNaN(M.value / l) ? 0 : Math.abs(M.value) / l * 100,
336
338
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
337
339
  s: "%",
@@ -339,47 +341,47 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
339
341
  }) : ""}${Y[1]}
340
342
  </div>
341
343
  `;
342
- }), _e.value = `<div>${le}</div>`;
344
+ }), Ce.value = `<div>${re}</div>`;
343
345
  }
344
346
  }
345
- function Rt(a) {
347
+ function et(a) {
346
348
  ne.value = a, Te.value += 1;
347
349
  }
348
- function Ke() {
349
- C.value.showTable = !C.value.showTable;
350
+ function tt() {
351
+ L.value.showTable = !L.value.showTable;
350
352
  }
351
- function Qe() {
352
- C.value.dataLabels.show = !C.value.dataLabels.show;
353
+ function at() {
354
+ L.value.dataLabels.show = !L.value.dataLabels.show;
353
355
  }
354
- function je() {
355
- C.value.showTooltip = !C.value.showTooltip;
356
+ function lt() {
357
+ L.value.showTooltip = !L.value.showTooltip;
356
358
  }
357
- function Pt() {
358
- return w.value;
359
+ function At() {
360
+ return k.value;
359
361
  }
360
- const et = z(() => {
361
- if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
362
- const a = w.value.map(({ name: t, color: l }) => ({
362
+ const rt = w(() => {
363
+ if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
364
+ const a = k.value.map(({ name: t, color: l }) => ({
363
365
  label: t,
364
366
  color: l
365
367
  })), r = [];
366
368
  return $.value.forEach((t) => {
367
369
  const l = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
368
- V.value.forEach((c) => {
370
+ U.value.forEach((c) => {
369
371
  l.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
370
372
  }), r.push(l);
371
373
  }), { head: a, body: r };
372
374
  });
373
- function tt(a = null) {
374
- const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...et.value.head.map((_) => _.label)], l = et.value.body, c = r.concat([t]).concat(l), u = sa(c);
375
- a ? a(u) : ia({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
375
+ function st(a = null) {
376
+ const r = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...rt.value.head.map((C) => C.label)], l = rt.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" });
376
378
  }
377
- const he = z(() => {
378
- const a = [""].concat(w.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
379
+ const ve = w(() => {
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>');
379
381
  let r = [];
380
- for (let c = 0; c < F.value; c += 1) {
381
- const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, B) => _ + B, 0);
382
- r.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
382
+ for (let c = 0; c < D.value; c += 1) {
383
+ const u = k.value.map((C) => C.series[c] ?? 0).reduce((C, B) => C + B, 0);
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)));
383
385
  }
384
386
  const t = {
385
387
  th: {
@@ -393,26 +395,26 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
393
395
  outline: e.value.table.td.outline
394
396
  },
395
397
  breakpoint: e.value.table.responsiveBreakpoint
396
- }, l = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
397
- return { head: a, body: r.slice(0, v.value.end - v.value.start), config: t, colNames: l };
398
+ }, l = [e.value.table.columnNames.period].concat(k.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
399
+ return { head: a, body: r.slice(0, h.value.end - h.value.start), config: t, colNames: l };
398
400
  });
399
- function At(a, r) {
400
- if (ze("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
401
+ function Ut(a, r) {
402
+ if (ze("selectLegend", k.value.find((t) => t.absoluteIndex === a)), S.value.includes(r.id))
401
403
  S.value = S.value.filter((t) => t !== r.id);
402
404
  else {
403
- if (S.value.length === V.value.length - 1) return;
405
+ if (S.value.length === U.value.length - 1) return;
404
406
  S.value.push(r.id);
405
407
  }
406
408
  }
407
- const at = z(() => V.value.map((a, r) => ({
409
+ const ot = w(() => U.value.map((a, r) => ({
408
410
  ...a,
409
411
  shape: "square"
410
412
  })).map((a) => ({
411
413
  ...a,
412
414
  opacity: S.value.includes(a.id) ? 0.5 : 1,
413
- segregate: () => At(a.absoluteIndex, a),
415
+ segregate: () => Ut(a.absoluteIndex, a),
414
416
  isSegregated: S.value.includes(a.id)
415
- }))), Vt = z(() => ({
417
+ }))), Dt = w(() => ({
416
418
  cy: "stackbar-legend",
417
419
  backgroundColor: e.value.style.chart.legend.backgroundColor,
418
420
  color: e.value.style.chart.legend.color,
@@ -424,7 +426,7 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
424
426
  de.value = !de.value;
425
427
  }
426
428
  function ye(a, r) {
427
- const t = JSON.parse(JSON.stringify(w.value)).map((l) => ({
429
+ const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
428
430
  name: l.name,
429
431
  value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
430
432
  proportion: l.proportions[r] || null,
@@ -437,43 +439,59 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
437
439
  label: a.text
438
440
  });
439
441
  }
440
- function lt(a, r) {
441
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
442
+ const Ft = w(() => Math.max(...k.value.flatMap((a) => a.series)));
443
+ function it(a, r) {
444
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? He.value ? r * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? r > 0 : !0 : He.value ? (Ee.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) : Ee.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
445
+ }
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
+ };
442
457
  }
443
- return ft({
444
- getData: Pt,
445
- generatePdf: Be,
446
- generateCsv: tt,
447
- generateImage: We,
448
- toggleTable: Ke,
449
- toggleLabels: Qe,
450
- toggleTooltip: je,
451
- toggleAnnotator: $e
452
- }), (a, r) => (o(), n("div", {
453
- id: `stackbar_${P.value}`,
458
+ return kt({
459
+ getData: At,
460
+ getImage: Et,
461
+ generatePdf: Ye,
462
+ generateCsv: st,
463
+ generateImage: Xe,
464
+ toggleTable: tt,
465
+ toggleLabels: at,
466
+ toggleTooltip: lt,
467
+ toggleAnnotator: $e,
468
+ toggleFullscreen: et
469
+ }), (a, r) => (s(), n("div", {
470
+ id: `stackbar_${V.value}`,
454
471
  ref_key: "stackbarChart",
455
- ref: ee,
472
+ ref: R,
456
473
  class: oe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
457
- style: G(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
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%" : ""}`),
458
475
  onMouseenter: r[6] || (r[6] = () => y(Ae)(!0)),
459
476
  onMouseleave: r[7] || (r[7] = () => y(Ae)(!1))
460
477
  }, [
461
- e.value.userOptions.buttons.annotator ? (o(), j(y(wt), {
478
+ e.value.userOptions.buttons.annotator ? (s(), q(y(_t), {
462
479
  key: 0,
463
- svgRef: y(Fe),
480
+ svgRef: y(De),
464
481
  backgroundColor: e.value.style.chart.backgroundColor,
465
482
  color: e.value.style.chart.color,
466
483
  active: de.value,
467
484
  onClose: $e
468
485
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
469
- k(a.$slots, "userConfig", {}, void 0, !0),
470
- e.value.style.chart.title.text ? (o(), n("div", {
486
+ z(a.$slots, "userConfig", {}, void 0, !0),
487
+ e.value.style.chart.title.text ? (s(), n("div", {
471
488
  key: 1,
472
489
  ref_key: "chartTitle",
473
490
  ref: Ne,
474
491
  style: "width:100%;background:transparent;padding-bottom:24px"
475
492
  }, [
476
- se(ba, {
493
+ (s(), q(xa, {
494
+ key: `title_${Ve.value}`,
477
495
  config: {
478
496
  title: {
479
497
  cy: "stackbar-title",
@@ -484,16 +502,16 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
484
502
  ...e.value.style.chart.title.subtitle
485
503
  }
486
504
  }
487
- }, null, 8, ["config"])
505
+ }, null, 8, ["config"]))
488
506
  ], 512)) : g("", !0),
489
- e.value.userOptions.show && Z.value && (y(Ve) || y(Le)) ? (o(), j(y(_t), {
507
+ e.value.userOptions.show && Q.value && (y(Ue) || y(_e)) ? (s(), q(y(Mt), {
490
508
  ref: "details",
491
509
  key: `user_option_${Te.value}`,
492
510
  backgroundColor: e.value.style.chart.backgroundColor,
493
511
  color: e.value.style.chart.color,
494
- isPrinting: y(De),
495
- isImaging: y(He),
496
- uid: P.value,
512
+ isPrinting: y(Be),
513
+ isImaging: y(We),
514
+ uid: V.value,
497
515
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
498
516
  hasPdf: e.value.userOptions.buttons.pdf,
499
517
  hasImg: e.value.userOptions.buttons.img,
@@ -502,174 +520,179 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
502
520
  hasLabel: e.value.userOptions.buttons.labels,
503
521
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
504
522
  isFullscreen: ne.value,
505
- chartElement: ee.value,
523
+ chartElement: R.value,
506
524
  position: e.value.userOptions.position,
507
- isTooltip: C.value.showTooltip,
525
+ isTooltip: L.value.showTooltip,
508
526
  titles: { ...e.value.userOptions.buttonTitles },
509
527
  hasAnnotator: e.value.userOptions.buttons.annotator,
510
528
  isAnnotation: de.value,
511
529
  callbacks: e.value.userOptions.callbacks,
512
- onToggleFullscreen: Rt,
513
- onGeneratePdf: y(Be),
514
- onGenerateCsv: tt,
515
- onGenerateImage: y(We),
516
- onToggleTable: Ke,
517
- onToggleLabels: Qe,
518
- onToggleTooltip: je,
530
+ printScale: e.value.userOptions.print.scale,
531
+ onToggleFullscreen: et,
532
+ onGeneratePdf: y(Ye),
533
+ onGenerateCsv: st,
534
+ onGenerateImage: y(Xe),
535
+ onToggleTable: tt,
536
+ onToggleLabels: at,
537
+ onToggleTooltip: lt,
519
538
  onToggleAnnotator: $e,
520
- style: G({
521
- visibility: y(Ve) ? y(Le) ? "visible" : "hidden" : "visible"
539
+ style: J({
540
+ visibility: y(Ue) ? y(_e) ? "visible" : "hidden" : "visible"
522
541
  })
523
- }, ut({ _: 2 }, [
542
+ }, dt({ _: 2 }, [
524
543
  a.$slots.menuIcon ? {
525
544
  name: "menuIcon",
526
- fn: L(({ isOpen: t, color: l }) => [
527
- k(a.$slots, "menuIcon", E(D({ isOpen: t, color: l })), void 0, !0)
545
+ fn: _(({ isOpen: t, color: l }) => [
546
+ z(a.$slots, "menuIcon", F(E({ isOpen: t, color: l })), void 0, !0)
528
547
  ]),
529
548
  key: "0"
530
549
  } : void 0,
531
550
  a.$slots.optionTooltip ? {
532
551
  name: "optionTooltip",
533
- fn: L(() => [
534
- k(a.$slots, "optionTooltip", {}, void 0, !0)
552
+ fn: _(() => [
553
+ z(a.$slots, "optionTooltip", {}, void 0, !0)
535
554
  ]),
536
555
  key: "1"
537
556
  } : void 0,
538
557
  a.$slots.optionPdf ? {
539
558
  name: "optionPdf",
540
- fn: L(() => [
541
- k(a.$slots, "optionPdf", {}, void 0, !0)
559
+ fn: _(() => [
560
+ z(a.$slots, "optionPdf", {}, void 0, !0)
542
561
  ]),
543
562
  key: "2"
544
563
  } : void 0,
545
564
  a.$slots.optionCsv ? {
546
565
  name: "optionCsv",
547
- fn: L(() => [
548
- k(a.$slots, "optionCsv", {}, void 0, !0)
566
+ fn: _(() => [
567
+ z(a.$slots, "optionCsv", {}, void 0, !0)
549
568
  ]),
550
569
  key: "3"
551
570
  } : void 0,
552
571
  a.$slots.optionImg ? {
553
572
  name: "optionImg",
554
- fn: L(() => [
555
- k(a.$slots, "optionImg", {}, void 0, !0)
573
+ fn: _(() => [
574
+ z(a.$slots, "optionImg", {}, void 0, !0)
556
575
  ]),
557
576
  key: "4"
558
577
  } : void 0,
559
578
  a.$slots.optionTable ? {
560
579
  name: "optionTable",
561
- fn: L(() => [
562
- k(a.$slots, "optionTable", {}, void 0, !0)
580
+ fn: _(() => [
581
+ z(a.$slots, "optionTable", {}, void 0, !0)
563
582
  ]),
564
583
  key: "5"
565
584
  } : void 0,
566
585
  a.$slots.optionLabels ? {
567
586
  name: "optionLabels",
568
- fn: L(() => [
569
- k(a.$slots, "optionLabels", {}, void 0, !0)
587
+ fn: _(() => [
588
+ z(a.$slots, "optionLabels", {}, void 0, !0)
570
589
  ]),
571
590
  key: "6"
572
591
  } : void 0,
573
592
  a.$slots.optionFullscreen ? {
574
593
  name: "optionFullscreen",
575
- fn: L(({ toggleFullscreen: t, isFullscreen: l }) => [
576
- k(a.$slots, "optionFullscreen", E(D({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
594
+ fn: _(({ toggleFullscreen: t, isFullscreen: l }) => [
595
+ z(a.$slots, "optionFullscreen", F(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
577
596
  ]),
578
597
  key: "7"
579
598
  } : void 0,
580
599
  a.$slots.optionAnnotator ? {
581
600
  name: "optionAnnotator",
582
- fn: L(({ toggleAnnotator: t, isAnnotator: l }) => [
583
- k(a.$slots, "optionAnnotator", E(D({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
601
+ fn: _(({ toggleAnnotator: t, isAnnotator: l }) => [
602
+ z(a.$slots, "optionAnnotator", F(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
584
603
  ]),
585
604
  key: "8"
586
605
  } : void 0
587
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
588
- Z.value ? (o(), n("svg", {
606
+ ]), 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),
607
+ Q.value ? (s(), n("svg", {
589
608
  key: 3,
590
609
  ref_key: "svgRef",
591
- ref: Fe,
592
- xmlns: y(aa),
593
- viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
594
- style: G(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
610
+ ref: De,
611
+ xmlns: y(oa),
612
+ viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
613
+ style: J(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
595
614
  }, [
596
- se(y(kt)),
597
- a.$slots["chart-background"] ? (o(), n("foreignObject", {
615
+ fe(y(Ct)),
616
+ a.$slots["chart-background"] ? (s(), n("foreignObject", {
598
617
  key: 0,
599
- x: s.value.left,
600
- y: s.value.top,
601
- width: s.value.width <= 0 ? 10 : s.value.width,
602
- height: s.value.height <= 0 ? 10 : s.value.height,
618
+ x: o.value.left,
619
+ y: o.value.top,
620
+ width: o.value.width <= 0 ? 10 : o.value.width,
621
+ height: o.value.height <= 0 ? 10 : o.value.height,
603
622
  style: {
604
623
  pointerEvents: "none"
605
624
  }
606
625
  }, [
607
- k(a.$slots, "chart-background", {}, void 0, !0)
608
- ], 8, wa)) : g("", !0),
609
- e.value.style.chart.bars.gradient.show ? (o(), n("defs", za, [
610
- (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("linearGradient", {
626
+ z(a.$slots, "chart-background", {}, void 0, !0)
627
+ ], 8, Sa)) : g("", !0),
628
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", $a, [
629
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("linearGradient", {
611
630
  id: `gradient_${t.id}`,
612
631
  x1: "0%",
613
632
  y1: "0%",
614
633
  x2: "0%",
615
634
  y2: "100%"
616
635
  }, [
617
- J("stop", {
636
+ Z("stop", {
618
637
  offset: "0%",
619
638
  "stop-color": t.color
620
- }, null, 8, _a),
621
- J("stop", {
639
+ }, null, 8, Ta),
640
+ Z("stop", {
622
641
  offset: "61.8%",
623
- "stop-color": y(la)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
624
- }, null, 8, La),
625
- J("stop", {
642
+ "stop-color": y(ia)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
643
+ }, null, 8, Na),
644
+ Z("stop", {
626
645
  offset: "100%",
627
646
  "stop-color": t.color
628
- }, null, 8, Sa)
629
- ], 8, Ca))), 256))
647
+ }, null, 8, Ia)
648
+ ], 8, Ma))), 256))
630
649
  ])) : g("", !0),
631
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 2 }, b(O.value, (t, l) => (o(), n("line", {
632
- x1: s.value.left,
633
- x2: s.value.right,
650
+ 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", {
651
+ x1: o.value.left,
652
+ x2: o.value.right,
634
653
  y1: t.y,
635
654
  y2: t.y,
636
- stroke: e.value.style.chart.grid.x.axisColor,
637
- "stroke-width": 1,
655
+ stroke: e.value.style.chart.grid.x.linesColor,
656
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
657
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
638
658
  "stroke-linecap": "round"
639
- }, null, 8, $a))), 256)) : g("", !0),
640
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 3 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
641
- x1: s.value.left,
642
- x2: s.value.right,
643
- y1: s.value.top + d.value * l,
644
- y2: s.value.top + d.value * l,
645
- stroke: e.value.style.chart.grid.y.axisColor,
646
- "stroke-width": 1,
659
+ }, null, 8, Pa))), 256)) : g("", !0),
660
+ 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", {
661
+ x1: o.value.left,
662
+ x2: o.value.right,
663
+ y1: o.value.top + d.value * l,
664
+ y2: o.value.top + d.value * l,
665
+ stroke: e.value.style.chart.grid.x.linesColor,
666
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
667
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
647
668
  "stroke-linecap": "round"
648
- }, null, 8, Ma))), 256)) : g("", !0),
649
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 4 }, b(v.value.end - v.value.start + 1, (t, l) => (o(), n("line", {
650
- x1: s.value.left + d.value * l,
651
- x2: s.value.left + d.value * l,
652
- y1: s.value.top,
653
- y2: s.value.bottom,
654
- stroke: e.value.style.chart.grid.y.axisColor,
655
- "stroke-width": 1,
669
+ }, null, 8, Oa))), 256)) : g("", !0),
670
+ 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", {
671
+ x1: o.value.left + d.value * l,
672
+ x2: o.value.left + d.value * l,
673
+ y1: o.value.top,
674
+ y2: o.value.bottom,
675
+ stroke: e.value.style.chart.grid.y.linesColor,
676
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
677
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
656
678
  "stroke-linecap": "round"
657
- }, null, 8, Ta))), 256)) : g("", !0),
658
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 5 }, b(O.value, (t, l) => (o(), n("line", {
679
+ }, null, 8, Ra))), 256)) : g("", !0),
680
+ 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", {
659
681
  x1: t.horizontal_x,
660
682
  x2: t.horizontal_x,
661
- y1: s.value.top,
662
- y2: s.value.bottom,
663
- stroke: e.value.style.chart.grid.x.axisColor,
664
- "stroke-width": 1,
683
+ y1: o.value.top,
684
+ y2: o.value.bottom,
685
+ stroke: e.value.style.chart.grid.y.linesColor,
686
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
687
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
665
688
  "stroke-linecap": "round"
666
- }, null, 8, Na))), 256)) : g("", !0),
667
- (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
668
- a.$slots.pattern ? (o(), n("defs", Ia, [
669
- k(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${P.value}_${t.absoluteIndex}` }), void 0, !0)
689
+ }, null, 8, Va))), 256)) : g("", !0),
690
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
691
+ a.$slots.pattern ? (s(), n("defs", Aa, [
692
+ z(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
670
693
  ])) : g("", !0),
671
- e.value.orientation === "vertical" ? (o(), n(h, { key: 1 }, [
672
- (o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
694
+ e.value.orientation === "vertical" ? (s(), n(v, { key: 1 }, [
695
+ (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
673
696
  x: c,
674
697
  y: t.y[u] < 0 ? 0 : t.y[u],
675
698
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
@@ -681,25 +704,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
681
704
  "stroke-linecap": "round",
682
705
  "stroke-linejoin": "round",
683
706
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
684
- }, null, 10, Oa))), 256)),
685
- a.$slots.pattern ? (o(), n("g", Ra, [
686
- (o(!0), n(h, null, b(t.x, (c, u) => (o(), n("rect", {
707
+ }, null, 10, Ua))), 256)),
708
+ a.$slots.pattern ? (s(), n("g", Da, [
709
+ (s(!0), n(v, null, f(t.x, (c, u) => (s(), n("rect", {
687
710
  x: c,
688
711
  y: t.y[u] < 0 ? 0 : t.y[u],
689
712
  height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
690
713
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
691
714
  width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
692
- fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
715
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
693
716
  stroke: e.value.style.chart.backgroundColor,
694
717
  "stroke-width": e.value.style.chart.bars.strokeWidth,
695
718
  "stroke-linecap": "round",
696
719
  "stroke-linejoin": "round",
697
720
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
698
- }, null, 10, Pa))), 256))
721
+ }, null, 10, Fa))), 256))
699
722
  ])) : g("", !0)
700
- ], 64)) : (o(), n(h, { key: 2 }, [
701
- (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
702
- x: y(xe)(c, s.value.left),
723
+ ], 64)) : (s(), n(v, { key: 2 }, [
724
+ (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
725
+ x: y(xe)(c, o.value.left),
703
726
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
704
727
  width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
705
728
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
@@ -710,129 +733,129 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
710
733
  "stroke-linecap": "round",
711
734
  "stroke-linejoin": "round",
712
735
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
713
- }, null, 10, Aa))), 256)),
714
- a.$slots.pattern ? (o(), n("g", Va, [
715
- (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n("rect", {
716
- x: y(xe)(c, s.value.left),
736
+ }, null, 10, Ea))), 256)),
737
+ a.$slots.pattern ? (s(), n("g", Ha, [
738
+ (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n("rect", {
739
+ x: y(xe)(c, o.value.left),
717
740
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
718
741
  width: y(xe)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
719
742
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
720
743
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
721
- fill: `url(#pattern_${P.value}_${t.absoluteIndex})`,
744
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
722
745
  stroke: e.value.style.chart.backgroundColor,
723
746
  "stroke-width": e.value.style.chart.bars.strokeWidth,
724
747
  "stroke-linecap": "round",
725
748
  "stroke-linejoin": "round",
726
749
  class: oe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": H.value })
727
- }, null, 10, Fa))), 256))
750
+ }, null, 10, Ba))), 256))
728
751
  ])) : g("", !0)
729
752
  ], 64))
730
753
  ]))), 256)),
731
- e.value.style.chart.grid.x.showAxis ? (o(), n("line", {
754
+ e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
732
755
  key: 6,
733
- x1: s.value.left,
734
- x2: s.value.right,
735
- y1: s.value.bottom,
736
- y2: s.value.bottom,
756
+ x1: o.value.left,
757
+ x2: o.value.right,
758
+ y1: o.value.bottom,
759
+ y2: o.value.bottom,
737
760
  stroke: e.value.style.chart.grid.x.axisColor,
738
761
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
739
762
  "stroke-linecap": "round",
740
763
  "stroke-linejoin": "round"
741
- }, null, 8, Ea)) : g("", !0),
742
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), n("line", {
764
+ }, null, 8, Wa)) : g("", !0),
765
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
743
766
  key: 7,
744
- x1: s.value.left,
745
- x2: s.value.left,
746
- y1: s.value.top,
747
- y2: s.value.bottom,
767
+ x1: o.value.left,
768
+ x2: o.value.left,
769
+ y1: o.value.top,
770
+ y2: o.value.bottom,
748
771
  stroke: e.value.style.chart.grid.y.axisColor,
749
772
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
750
773
  "stroke-linecap": "round",
751
774
  "stroke-linejoin": "round"
752
- }, null, 8, Da)) : g("", !0),
753
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), n("text", {
775
+ }, null, 8, Ya)) : g("", !0),
776
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
754
777
  key: 8,
755
- x: s.value.left + s.value.width / 2,
756
- y: s.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
778
+ x: o.value.left + o.value.width / 2,
779
+ y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
757
780
  "font-size": e.value.style.chart.grid.x.axisName.fontSize,
758
781
  fill: e.value.style.chart.grid.x.axisName.color,
759
782
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
760
783
  "text-anchor": "middle"
761
- }, T(e.value.style.chart.grid.x.axisName.text), 9, Ha)) : g("", !0),
762
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), n("text", {
784
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Xa)) : g("", !0),
785
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
763
786
  key: 9,
764
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
787
+ 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)`,
765
788
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
766
789
  fill: e.value.style.chart.grid.y.axisName.color,
767
790
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
768
791
  "text-anchor": "middle"
769
- }, T(e.value.style.chart.grid.y.axisName.text), 9, Ba)) : g("", !0),
770
- C.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 10 }, [
771
- (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
772
- (o(!0), n(h, null, b(t.x, (c, u) => (o(), n(h, null, [
773
- lt(t.series[u], t.proportions[u]) ? (o(), n("text", {
792
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, Ga)) : g("", !0),
793
+ L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 10 }, [
794
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
795
+ (s(!0), n(v, null, f(t.x, (c, u) => (s(), n(v, null, [
796
+ it(t.series[u], t.proportions[u]) ? (s(), n("text", {
774
797
  key: 0,
775
798
  x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
776
799
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
777
800
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
778
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
801
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
779
802
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
780
803
  "text-anchor": "middle"
781
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Wa)) : g("", !0)
804
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ja)) : g("", !0)
782
805
  ], 64))), 256))
783
806
  ]))), 256)),
784
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ya, [
785
- (o(!0), n(h, null, b(Ge.value, (t, l) => (o(), n(h, null, [
786
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
807
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", qa, [
808
+ (s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
809
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
787
810
  key: 0,
788
- x: s.value.left + d.value * l + d.value / 2,
789
- y: s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
811
+ x: o.value.left + d.value * l + d.value / 2,
812
+ y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
790
813
  "text-anchor": "middle",
791
814
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
792
815
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
793
816
  fill: e.value.style.chart.bars.totalValues.color
794
- }, T(ve(t.value, t, l, t.sign)), 9, Ua)) : g("", !0)
817
+ }, T(he(t.value, t, l, t.sign)), 9, Za)) : g("", !0)
795
818
  ], 64))), 256))
796
819
  ])) : g("", !0)
797
820
  ], 64)) : g("", !0),
798
- C.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 11 }, [
799
- (o(!0), n(h, null, b(w.value, (t, l) => (o(), n("g", null, [
800
- (o(!0), n(h, null, b(t.horizontal_x, (c, u) => (o(), n(h, null, [
801
- lt(t.series[u], t.proportions[u]) ? (o(), n("text", {
821
+ L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 11 }, [
822
+ (s(!0), n(v, null, f(k.value, (t, l) => (s(), n("g", null, [
823
+ (s(!0), n(v, null, f(t.horizontal_x, (c, u) => (s(), n(v, null, [
824
+ it(t.series[u], t.proportions[u]) ? (s(), n("text", {
802
825
  key: 0,
803
826
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
804
827
  y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
805
828
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
806
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(yt)(t.color) : e.value.style.chart.bars.dataLabels.color,
829
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(mt)(t.color) : e.value.style.chart.bars.dataLabels.color,
807
830
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
808
831
  "text-anchor": "middle"
809
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Je(t.proportions[u] * 100, t, l, u) : ve(t.series[u], t, l, u, t.signedSeries[u])), 9, Xa)) : g("", !0)
832
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ke(t.proportions[u] * 100, t, l, u) : he(t.series[u], t, l, u, t.signedSeries[u])), 9, Ka)) : g("", !0)
810
833
  ], 64))), 256))
811
834
  ]))), 256)),
812
- e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (o(), n("g", Ga, [
813
- (o(!0), n(h, null, b(Ge.value, (t, l) => (o(), n(h, null, [
814
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
835
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (s(), n("g", Qa, [
836
+ (s(!0), n(v, null, f(Ze.value, (t, l) => (s(), n(v, null, [
837
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
815
838
  key: 0,
816
- x: s.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
817
- y: s.value.top + d.value * l + d.value / 2,
839
+ x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
840
+ y: o.value.top + d.value * l + d.value / 2,
818
841
  "text-anchor": "start",
819
842
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
820
843
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
821
844
  fill: e.value.style.chart.bars.totalValues.color
822
- }, T(ve(t.value, t, l, t.sign)), 9, Ja)) : g("", !0)
845
+ }, T(he(t.value, t, l, t.sign)), 9, ja)) : g("", !0)
823
846
  ], 64))), 256))
824
847
  ])) : g("", !0)
825
848
  ], 64)) : g("", !0),
826
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), n(h, { key: 12 }, [
827
- (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
828
- x1: s.value.left,
829
- x2: s.value.left - 6,
849
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(v, { key: 12 }, [
850
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
851
+ x1: o.value.left,
852
+ x2: o.value.left - 6,
830
853
  y1: t.y,
831
854
  y2: t.y,
832
855
  stroke: e.value.style.chart.grid.x.axisColor,
833
856
  "stroke-width": 1
834
- }, null, 8, qa))), 256)),
835
- (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
857
+ }, null, 8, el))), 256)),
858
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
836
859
  x: t.x,
837
860
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
838
861
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -842,75 +865,75 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
842
865
  }, T(y(ke)(
843
866
  e.value.style.chart.grid.y.axisLabels.formatter,
844
867
  t.value,
845
- y(q)({
868
+ y(K)({
846
869
  p: e.value.style.chart.bars.dataLabels.prefix,
847
870
  v: t.value,
848
871
  s: e.value.style.chart.bars.dataLabels.suffix,
849
872
  r: e.value.style.chart.grid.y.axisLabels.rounding
850
873
  }),
851
874
  { datapoint: t }
852
- )), 9, Za))), 256))
875
+ )), 9, tl))), 256))
853
876
  ], 64)) : g("", !0),
854
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), n(h, { key: 13 }, [
855
- (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("line", {
877
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(v, { key: 13 }, [
878
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("line", {
856
879
  x1: t.horizontal_x,
857
880
  x2: t.horizontal_x,
858
- y1: s.value.bottom,
859
- y2: s.value.bottom + 6,
881
+ y1: o.value.bottom,
882
+ y2: o.value.bottom + 6,
860
883
  stroke: e.value.style.chart.grid.x.axisColor,
861
884
  "stroke-width": 1,
862
885
  "stroke-linecap": "round"
863
- }, null, 8, Ka))), 256)),
864
- (o(!0), n(h, null, b(O.value, (t, l) => (o(), n("text", {
886
+ }, null, 8, al))), 256)),
887
+ (s(!0), n(v, null, f(P.value, (t, l) => (s(), n("text", {
865
888
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
866
889
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
867
890
  fill: e.value.style.chart.grid.y.axisLabels.color,
868
891
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
869
- transform: `translate(${t.horizontal_x}, ${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
892
+ transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
870
893
  }, T(y(ke)(
871
894
  e.value.style.chart.grid.y.axisLabels.formatter,
872
895
  t.value,
873
- y(q)({
896
+ y(K)({
874
897
  p: e.value.style.chart.bars.dataLabels.prefix,
875
898
  v: t.value,
876
899
  s: e.value.style.chart.bars.dataLabels.suffix,
877
900
  r: e.value.style.chart.grid.y.axisLabels.rounding
878
901
  }),
879
902
  { datapoint: t }
880
- )), 9, Qa))), 256))
903
+ )), 9, ll))), 256))
881
904
  ], 64)) : g("", !0),
882
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), n(h, { key: 14 }, [
883
- a.$slots["time-label"] ? (o(), n("g", ja, [
884
- (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
885
- k(a.$slots, "time-label", Me({ ref_for: !0 }, {
886
- x: s.value.left + d.value * l + d.value / 2,
887
- y: s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
905
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n(v, { key: 14 }, [
906
+ a.$slots["time-label"] ? (s(), n("g", rl, [
907
+ (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
908
+ z(a.$slots, "time-label", Me({ ref_for: !0 }, {
909
+ x: o.value.left + d.value * l + d.value / 2,
910
+ y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
888
911
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
889
912
  fill: e.value.style.chart.grid.x.timeLabels.color,
890
- transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
913
+ 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})`,
891
914
  absoluteIndex: t.absoluteIndex,
892
915
  content: t.text,
893
916
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
894
917
  show: !0
895
918
  }), void 0, !0)
896
919
  ]))), 256))
897
- ])) : (o(), n("g", el, [
898
- (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
920
+ ])) : (s(), n("g", sl, [
921
+ (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
899
922
  String(t.text).includes(`
900
- `) ? (o(), n("text", {
923
+ `) ? (s(), n("text", {
901
924
  key: l + "-multi",
902
925
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
903
926
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
904
927
  fill: e.value.style.chart.grid.x.timeLabels.color,
905
928
  transform: `
906
929
  translate(
907
- ${s.value.left + d.value * l + d.value / 2},
908
- ${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
930
+ ${o.value.left + d.value * l + d.value / 2},
931
+ ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
909
932
  ),
910
933
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
911
934
  `,
912
935
  style: { cursor: "pointer" },
913
- innerHTML: y(ra)({
936
+ innerHTML: y(na)({
914
937
  content: String(t.text),
915
938
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
916
939
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -918,25 +941,25 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
918
941
  y: 0
919
942
  }),
920
943
  onClick: () => ye(t, l)
921
- }, null, 8, al)) : (o(), n("text", {
944
+ }, null, 8, il)) : (s(), n("text", {
922
945
  key: l,
923
946
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
924
947
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
925
948
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
926
949
  fill: e.value.style.chart.grid.x.timeLabels.color,
927
- transform: `translate(${s.value.left + d.value * l + d.value / 2}, ${s.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
950
+ 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})`,
928
951
  style: { cursor: "pointer" },
929
952
  onClick: () => ye(t, l)
930
- }, T(t.text), 9, tl))
953
+ }, T(t.text), 9, ol))
931
954
  ]))), 256))
932
955
  ]))
933
956
  ], 64)) : g("", !0),
934
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), n(h, { key: 15 }, [
935
- a.$slots["time-label"] ? (o(), n("g", ll, [
936
- (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
937
- k(a.$slots, "time-label", Me({ ref_for: !0 }, {
938
- x: s.value.left - 8,
939
- y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
957
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), n(v, { key: 15 }, [
958
+ a.$slots["time-label"] ? (s(), n("g", nl, [
959
+ (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
960
+ z(a.$slots, "time-label", Me({ ref_for: !0 }, {
961
+ x: o.value.left - 8,
962
+ y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
940
963
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
941
964
  fill: e.value.style.chart.grid.x.timeLabels.color,
942
965
  transform: null,
@@ -946,74 +969,74 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
946
969
  show: !0
947
970
  }), void 0, !0)
948
971
  ]))), 256))
949
- ])) : (o(), n("g", rl, [
950
- (o(!0), n(h, null, b($.value, (t, l) => (o(), n("g", null, [
972
+ ])) : (s(), n("g", ul, [
973
+ (s(!0), n(v, null, f($.value, (t, l) => (s(), n("g", null, [
951
974
  String(t.text).includes(`
952
- `) ? (o(), n("text", {
975
+ `) ? (s(), n("text", {
953
976
  key: 1,
954
977
  "text-anchor": "end",
955
978
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
956
979
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
957
980
  fill: e.value.style.chart.grid.y.axisLabels.color,
958
- x: s.value.left - 8,
959
- y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
981
+ x: o.value.left - 8,
982
+ y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
960
983
  style: { cursor: "pointer" },
961
984
  onClick: () => ye(t, l),
962
- innerHTML: y(oa)({
985
+ innerHTML: y(ua)({
963
986
  content: String(t.text),
964
987
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
965
988
  fill: e.value.style.chart.grid.y.axisLabels.color,
966
- x: s.value.left - 8,
989
+ x: o.value.left - 8,
967
990
  y: 0
968
991
  })
969
- }, null, 8, sl)) : (o(), n("text", {
992
+ }, null, 8, hl)) : (s(), n("text", {
970
993
  key: 0,
971
994
  "text-anchor": "end",
972
995
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
973
996
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
974
997
  fill: e.value.style.chart.grid.y.axisLabels.color,
975
- x: s.value.left - 8,
976
- y: s.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
998
+ x: o.value.left - 8,
999
+ y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
977
1000
  style: {
978
1001
  cursor: "pointer"
979
1002
  },
980
1003
  onClick: () => ye(t, l)
981
- }, T(t.text), 9, ol))
1004
+ }, T(t.text), 9, cl))
982
1005
  ]))), 256))
983
1006
  ]))
984
1007
  ], 64)) : g("", !0),
985
- C.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), n(h, { key: 16 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
986
- x: s.value.left + l * d.value,
987
- y: s.value.top,
1008
+ L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(v, { key: 16 }, f(h.value.end - h.value.start, (t, l) => (s(), n("rect", {
1009
+ x: o.value.left + l * d.value,
1010
+ y: o.value.top,
988
1011
  width: d.value,
989
- height: s.value.height < 0 ? 0 : s.value.height,
990
- onClick: (c) => qe(l),
991
- onMouseenter: (c) => Ze(l),
1012
+ height: o.value.height < 0 ? 0 : o.value.height,
1013
+ onClick: (c) => Qe(l),
1014
+ onMouseenter: (c) => je(l),
992
1015
  onMouseleave: r[0] || (r[0] = (c) => {
993
- te.value = null, ie.value = !1;
1016
+ ae.value = null, ie.value = !1;
994
1017
  }),
995
- fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
996
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
997
- }, null, 44, il))), 256)) : g("", !0),
998
- C.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), n(h, { key: 17 }, b(v.value.end - v.value.start, (t, l) => (o(), n("rect", {
999
- x: s.value.left,
1000
- y: s.value.top + l * d.value,
1001
- width: s.value.width < 0 ? 0 : s.value.width,
1018
+ fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1019
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1020
+ }, null, 44, vl))), 256)) : g("", !0),
1021
+ 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", {
1022
+ x: o.value.left,
1023
+ y: o.value.top + l * d.value,
1024
+ width: o.value.width < 0 ? 0 : o.value.width,
1002
1025
  height: d.value,
1003
- onClick: (c) => qe(l),
1004
- onMouseenter: (c) => Ze(l),
1026
+ onClick: (c) => Qe(l),
1027
+ onMouseenter: (c) => je(l),
1005
1028
  onMouseleave: r[1] || (r[1] = (c) => {
1006
- te.value = null, ie.value = !1;
1029
+ ae.value = null, ie.value = !1;
1007
1030
  }),
1008
- fill: l === te.value ? e.value.style.chart.highlighter.color : "transparent",
1009
- style: G({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1010
- }, null, 44, nl))), 256)) : g("", !0),
1011
- k(a.$slots, "svg", E(D({ ...s.value })), void 0, !0)
1012
- ], 12, ka)) : g("", !0),
1013
- a.$slots.watermark ? (o(), n("div", ul, [
1014
- k(a.$slots, "watermark", E(D({ isPrinting: y(De) || y(He) })), void 0, !0)
1031
+ fill: l === ae.value ? e.value.style.chart.highlighter.color : "transparent",
1032
+ style: J({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1033
+ }, null, 44, dl))), 256)) : g("", !0),
1034
+ z(a.$slots, "svg", F(E({ ...o.value })), void 0, !0)
1035
+ ], 12, _a)) : g("", !0),
1036
+ a.$slots.watermark ? (s(), n("div", yl, [
1037
+ z(a.$slots, "watermark", F(E({ isPrinting: y(Be) || y(We) })), void 0, !0)
1015
1038
  ])) : g("", !0),
1016
- Z.value ? g("", !0) : (o(), j(y(zt), {
1039
+ Q.value ? g("", !0) : (s(), q(y(St), {
1017
1040
  key: 5,
1018
1041
  config: {
1019
1042
  type: "bar",
@@ -1028,47 +1051,47 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1028
1051
  }
1029
1052
  }
1030
1053
  }, null, 8, ["config"])),
1031
- J("div", {
1054
+ Z("div", {
1032
1055
  ref_key: "chartSlicer",
1033
- ref: Oe,
1034
- style: G(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1056
+ ref: Pe,
1057
+ style: J(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1035
1058
  "data-dom-to-png-ignore": ""
1036
1059
  }, [
1037
- e.value.style.chart.zoom.show && F.value > 1 ? (o(), j(ga, {
1060
+ e.value.style.chart.zoom.show && D.value > 1 ? (s(), q(pa, {
1038
1061
  ref_key: "slicerComponent",
1039
- ref: K,
1040
- key: `slicer_${Pe.value}`,
1062
+ ref: j,
1063
+ key: `slicer_${Re.value}`,
1041
1064
  background: e.value.style.chart.zoom.color,
1042
1065
  borderColor: e.value.style.chart.backgroundColor,
1043
1066
  fontSize: e.value.style.chart.zoom.fontSize,
1044
1067
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
1045
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? $.value[0].text : "",
1046
- labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? $.value.at(-1).text : "",
1068
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
1069
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
1047
1070
  textColor: e.value.style.chart.color,
1048
1071
  inputColor: e.value.style.chart.zoom.color,
1049
1072
  selectColor: e.value.style.chart.zoom.highlightColor,
1050
1073
  max: Math.max(...we.dataset.map((t) => t.series.length)),
1051
1074
  min: 0,
1052
- valueStart: v.value.start,
1053
- valueEnd: v.value.end,
1054
- start: v.value.start,
1055
- "onUpdate:start": r[2] || (r[2] = (t) => v.value.start = t),
1056
- end: v.value.end,
1057
- "onUpdate:end": r[3] || (r[3] = (t) => v.value.end = t),
1075
+ valueStart: h.value.start,
1076
+ valueEnd: h.value.end,
1077
+ start: h.value.start,
1078
+ "onUpdate:start": r[2] || (r[2] = (t) => h.value.start = t),
1079
+ end: h.value.end,
1080
+ "onUpdate:end": r[3] || (r[3] = (t) => h.value.end = t),
1058
1081
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1059
1082
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...we.dataset.map((t) => t.series.length)),
1060
1083
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1061
1084
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1062
- onReset: Ue
1085
+ onReset: Je
1063
1086
  }, {
1064
- "reset-action": L(({ reset: t }) => [
1065
- k(a.$slots, "reset-action", E(D({ reset: t })), void 0, !0)
1087
+ "reset-action": _(({ reset: t }) => [
1088
+ z(a.$slots, "reset-action", F(E({ reset: t })), void 0, !0)
1066
1089
  ]),
1067
1090
  _: 3
1068
1091
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : g("", !0)
1069
1092
  ], 4),
1070
- se(y(Ct), {
1071
- show: C.value.showTooltip && ie.value,
1093
+ fe(y($t), {
1094
+ show: L.value.showTooltip && ie.value,
1072
1095
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1073
1096
  color: e.value.style.chart.tooltip.color,
1074
1097
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1078,68 +1101,68 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1078
1101
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1079
1102
  position: e.value.style.chart.tooltip.position,
1080
1103
  offsetY: e.value.style.chart.tooltip.offsetY,
1081
- parent: ee.value,
1082
- content: _e.value,
1104
+ parent: R.value,
1105
+ content: Ce.value,
1083
1106
  isFullscreen: ne.value,
1084
- isCustom: y(gt)(e.value.style.chart.tooltip.customFormat)
1107
+ isCustom: y(pt)(e.value.style.chart.tooltip.customFormat)
1085
1108
  }, {
1086
- "tooltip-before": L(() => [
1087
- k(a.$slots, "tooltip-before", E(D({ ...Ce.value })), void 0, !0)
1109
+ "tooltip-before": _(() => [
1110
+ z(a.$slots, "tooltip-before", F(E({ ...Le.value })), void 0, !0)
1088
1111
  ]),
1089
- "tooltip-after": L(() => [
1090
- k(a.$slots, "tooltip-after", E(D({ ...Ce.value })), void 0, !0)
1112
+ "tooltip-after": _(() => [
1113
+ z(a.$slots, "tooltip-after", F(E({ ...Le.value })), void 0, !0)
1091
1114
  ]),
1092
1115
  _: 3
1093
1116
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1094
- J("div", {
1117
+ Z("div", {
1095
1118
  ref_key: "chartLegend",
1096
1119
  ref: Ie
1097
1120
  }, [
1098
- e.value.style.chart.legend.show && Z.value ? (o(), j(ya, {
1121
+ e.value.style.chart.legend.show && Q.value ? (s(), q(ma, {
1099
1122
  key: 0,
1100
- legendSet: at.value,
1101
- config: Vt.value,
1123
+ legendSet: ot.value,
1124
+ config: Dt.value,
1102
1125
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1103
- }, ut({
1104
- item: L(({ legend: t }) => [
1105
- J("div", {
1126
+ }, dt({
1127
+ item: _(({ legend: t }) => [
1128
+ Z("div", {
1106
1129
  onClick: (l) => t.segregate(),
1107
- style: G(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1108
- }, T(t.name), 13, cl)
1130
+ style: J(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1131
+ }, T(t.name), 13, gl)
1109
1132
  ]),
1110
1133
  _: 2
1111
1134
  }, [
1112
1135
  a.$slots.pattern ? {
1113
1136
  name: "legend-pattern",
1114
- fn: L(({ legend: t, index: l }) => [
1115
- se(fa, {
1137
+ fn: _(({ legend: t, index: l }) => [
1138
+ fe(ka, {
1116
1139
  shape: t.shape,
1117
1140
  radius: 30,
1118
1141
  stroke: "none",
1119
1142
  plot: { x: 30, y: 30 },
1120
- fill: `url(#pattern_${P.value}_${l})`
1143
+ fill: `url(#pattern_${V.value}_${l})`
1121
1144
  }, null, 8, ["shape", "fill"])
1122
1145
  ]),
1123
1146
  key: "0"
1124
1147
  } : void 0
1125
- ]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
1148
+ ]), 1032, ["legendSet", "config"])) : z(a.$slots, "legend", {
1126
1149
  key: 1,
1127
- legend: at.value
1150
+ legend: ot.value
1128
1151
  }, void 0, !0)
1129
1152
  ], 512),
1130
- a.$slots.source ? (o(), n("div", {
1153
+ a.$slots.source ? (s(), n("div", {
1131
1154
  key: 6,
1132
1155
  ref_key: "source",
1133
- ref: Re,
1156
+ ref: Oe,
1134
1157
  dir: "auto"
1135
1158
  }, [
1136
- k(a.$slots, "source", {}, void 0, !0)
1159
+ z(a.$slots, "source", {}, void 0, !0)
1137
1160
  ], 512)) : g("", !0),
1138
- v.value.end - v.value.start < 200 ? (o(), j(y(pt), {
1161
+ h.value.end - h.value.start < 200 ? (s(), q(y(zt), {
1139
1162
  key: 7,
1140
1163
  hideDetails: "",
1141
1164
  config: {
1142
- open: C.value.showTable,
1165
+ open: L.value.showTable,
1143
1166
  maxHeight: 1e4,
1144
1167
  body: {
1145
1168
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1151,20 +1174,20 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1151
1174
  }
1152
1175
  }
1153
1176
  }, {
1154
- content: L(() => [
1155
- se(y(xt), {
1156
- colNames: he.value.colNames,
1157
- head: he.value.head,
1158
- body: he.value.body,
1159
- config: he.value.config,
1177
+ content: _(() => [
1178
+ fe(y(Lt), {
1179
+ colNames: ve.value.colNames,
1180
+ head: ve.value.head,
1181
+ body: ve.value.body,
1182
+ config: ve.value.config,
1160
1183
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1161
- onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
1184
+ onClose: r[5] || (r[5] = (t) => L.value.showTable = !1)
1162
1185
  }, {
1163
- th: L(({ th: t }) => [
1164
- J("div", { innerHTML: t }, null, 8, vl)
1186
+ th: _(({ th: t }) => [
1187
+ Z("div", { innerHTML: t }, null, 8, bl)
1165
1188
  ]),
1166
- td: L(({ td: t }) => [
1167
- Jt(T(isNaN(Number(t)) ? t : y(q)({
1189
+ td: _(({ td: t }) => [
1190
+ Qt(T(isNaN(Number(t)) ? t : y(K)({
1168
1191
  p: e.value.style.chart.bars.dataLabels.prefix,
1169
1192
  v: t,
1170
1193
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1176,9 +1199,9 @@ const xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"]
1176
1199
  ]),
1177
1200
  _: 1
1178
1201
  }, 8, ["config"])) : g("", !0)
1179
- ], 46, xa));
1202
+ ], 46, Ca));
1180
1203
  }
1181
- }, Ll = /* @__PURE__ */ pa(hl, [["__scopeId", "data-v-ef86a71b"]]);
1204
+ }, Il = /* @__PURE__ */ La(fl, [["__scopeId", "data-v-95413bca"]]);
1182
1205
  export {
1183
- Ll as default
1206
+ Il as default
1184
1207
  };