vue-data-ui 3.1.1 → 3.1.3

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 (95) hide show
  1. package/dist/{Arrow-xQM7mBzd.js → Arrow-DBaAWGvq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-BmN9jTP8.js} +2 -2
  3. package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BcOSijbz.js} +5 -3
  4. package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-D1yNPt76.js} +2 -2
  5. package/dist/{DataTable-BAf4Obr9.js → DataTable-Cm8Tt9PQ.js} +2 -2
  6. package/dist/Legend-5qvgVkrY.js +85 -0
  7. package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-D3QGd7vP.js} +3 -3
  8. package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-0XlRFsI_.js} +1 -1
  9. package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-CyH7Ip2i.js} +3 -3
  10. package/dist/{Shape-Cjca5zta.js → Shape-DiplSMFy.js} +1 -1
  11. package/dist/{Slicer-6w3K8gAc.js → Slicer-DG99wPTy.js} +11 -9
  12. package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-VveQSwlw.js} +1 -1
  13. package/dist/Title-CqYBs02Y.js +88 -0
  14. package/dist/{Tooltip-BTGOEC7w.js → Tooltip-CP0tVHAf.js} +1 -1
  15. package/dist/{UserOptions-CsDlFB0L.js → UserOptions-ZmwlARCV.js} +125 -108
  16. package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-DGA4a3xT.js} +1 -1
  17. package/dist/{img-gBDz7xQQ.js → img-DSrvx9J6.js} +1 -1
  18. package/dist/{index-BKQqb9lF.js → index-CaxArMHL.js} +97 -74
  19. package/dist/pdf-BG8PiGFH.js +79 -0
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +28 -3
  22. package/dist/types/vue-data-ui.d.ts +28 -3
  23. package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-DmtFf4bt.js} +1 -1
  24. package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-tWT02_6S.js} +1 -1
  25. package/dist/{usePrinter-BzuXiubT.js → usePrinter-BYtPmEo8.js} +13 -12
  26. package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-DVb8r5z7.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-BLKyWpz7.js} +371 -366
  29. package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-DUlNpLir.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-LLqbXP1m.js} +200 -195
  31. package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-CcYIlcKF.js} +2 -2
  32. package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-BKmts_u4.js} +7 -7
  33. package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-C9l_NpXu.js} +225 -220
  34. package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-H7xS6aBC.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-CAW0IOdY.js} +344 -340
  36. package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-CK5YhCqM.js} +272 -266
  37. package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-NLyZgTGF.js} +6 -6
  38. package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-CyGUrKWU.js} +2 -2
  39. package/dist/vue-ui-dashboard-Cf5pvEzD.js +412 -0
  40. package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-BZWwwp7c.js} +2 -2
  41. package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-CaEYMVZj.js} +310 -304
  42. package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-g1WHrj6G.js} +348 -343
  43. package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-BArS1nXS.js} +293 -287
  44. package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-BR0CB5qt.js} +263 -257
  45. package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-D2OCItvq.js} +206 -200
  46. package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-qgGF1AAf.js} +243 -238
  47. package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-BIXmGyQL.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-DHEoS051.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-tRzq9BnI.js} +405 -401
  50. package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-DmwHhrDk.js} +305 -299
  51. package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-C2b2R5i1.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-Bs1Mi1tD.js} +2 -2
  53. package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-BsUvf2v7.js} +188 -183
  54. package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-D3JIpVvX.js} +197 -192
  55. package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-dJEgQXTH.js} +326 -320
  56. package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-D8dF1DdA.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-LmFsg7UA.js} +401 -395
  58. package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-C4O8ki4N.js} +339 -334
  59. package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-6bEtTQBG.js} +6 -6
  60. package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-CfjGWGk3.js} +248 -243
  61. package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-D3WSs2OD.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-DzTfi7Tf.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-NtYOJvDy.js} +267 -263
  64. package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CYQ4i71V.js} +229 -224
  65. package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-meJEHdAD.js} +359 -354
  66. package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-BtILTxx-.js} +3 -3
  67. package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B5bELpYD.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-lixdWq_N.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-CaGPav-J.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-BZBGYDjs.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-Bp6KxpjH.js} +4 -4
  72. package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-CF-EAZa6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-Cj1LAYC8.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-BrzKhqAK.js} +310 -304
  75. package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-BfVVaSFn.js} +246 -240
  76. package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-CBzNgzVP.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-CKz5bA7N.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-O-Z0YH6u.js} +4 -4
  79. package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer-DpNyTGNH.js} +7 -7
  80. package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-uvshaRMI.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-A8Akuz-q.js} +6 -6
  82. package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-Dvmuo3tM.js} +262 -256
  83. package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-eMgRMSKN.js} +310 -306
  84. package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-Cm8VfnG8.js} +257 -252
  85. package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-Bhsklf_m.js} +6 -6
  86. package/dist/vue-ui-word-cloud-C9HGLsG4.js +817 -0
  87. package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-B_MrjwGJ.js} +257 -252
  88. package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-DnYJw2aS.js} +1448 -1438
  89. package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-C0Snw0Dz.js} +235 -229
  90. package/package.json +1 -1
  91. package/dist/Legend-8_V5egWW.js +0 -72
  92. package/dist/Title-Dz-j6ERs.js +0 -61
  93. package/dist/pdf-Cjsn5GEE.js +0 -61
  94. package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
  95. package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
@@ -1,23 +1,23 @@
1
- import { defineAsyncComponent as H, useSlots as Ca, computed as p, ref as g, onMounted as Tt, toRefs as _a, watch as ze, shallowRef as Mt, onBeforeUnmount as At, watchEffect as It, nextTick as Nt, createElementBlock as o, openBlock as r, unref as h, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as ve, createSlots as We, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Sa, resolveDynamicComponent as $a, createTextVNode as Rt } from "vue";
2
- import { u as Ta, c as Ot, t as Ma, a as Aa, p as _e, b as Ia, C as se, d as Na, o as Pt, f as Vt, g as Ra, e as Oa, ao as Se, ac as Dt, D as Et, X as Pa, l as Va, a9 as $e, F as Ft, k as Te, i as ee, I as Da, a0 as Ea, y as Ut, v as Fa, w as Ua, z as Ha } from "./index-BKQqb9lF.js";
3
- import { t as Ye, u as Ba } from "./useResponsive-DfdjqQps.js";
4
- import { u as Wa } from "./usePrinter-BzuXiubT.js";
5
- import { u as Ya, B as Xa } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Ht } from "./useNestedProp-aBOhgs4U.js";
7
- import { u as Ga } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as Ja } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as qa } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as Za } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import Ka from "./img-gBDz7xQQ.js";
12
- import Qa from "./Title-Dz-j6ERs.js";
13
- import { _ as ja } from "./Shape-Cjca5zta.js";
14
- import el from "./Legend-8_V5egWW.js";
15
- import { S as tl } from "./Slicer-6w3K8gAc.js";
16
- import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "width", "height"], nl = { key: 1 }, il = ["id"], ul = ["stop-color"], cl = ["stop-color"], vl = ["stop-color"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = { key: 0 }, fl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], kl = { key: 0 }, wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "font-size", "fill", "font-weight"], _l = ["transform", "font-size", "fill", "font-weight"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["x", "y", "font-size", "font-weight", "fill"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x1", "x2", "y1", "y2", "stroke"], Il = ["x", "y", "font-size", "font-weight", "fill"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ol = { key: 0 }, Pl = { key: 1 }, Vl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Dl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], El = { key: 0 }, Fl = { key: 1 }, Ul = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Hl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Bl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Wl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Yl = {
1
+ import { defineAsyncComponent as H, useSlots as Sa, computed as p, ref as g, onMounted as At, toRefs as $a, watch as ze, shallowRef as It, onBeforeUnmount as Nt, watchEffect as Rt, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ye, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as m, mergeProps as Ce, toDisplayString as T, Teleport as Ta, resolveDynamicComponent as Ma, createTextVNode as Pt } from "vue";
2
+ import { u as Aa, c as Vt, t as Ia, a as Na, p as _e, b as Ra, C as se, d as Oa, o as Dt, f as Et, g as Pa, e as Va, ao as Se, ac as Ft, D as Ut, X as Da, l as Ea, a9 as $e, F as Ht, k as Te, i as ee, I as Fa, a0 as Ua, y as Bt, v as Ha, w as Ba, z as Wa } from "./index-CaxArMHL.js";
3
+ import { t as Xe, u as Ya } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Xa } from "./usePrinter-BYtPmEo8.js";
5
+ import { u as Ga, B as Ja } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Wt } from "./useNestedProp-tWT02_6S.js";
7
+ import { u as qa } from "./useTimeLabels-BGFjWgrv.js";
8
+ import { u as Za } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Ka } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Qa } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import ja from "./img-DSrvx9J6.js";
12
+ import el from "./Title-CqYBs02Y.js";
13
+ import { _ as tl } from "./Shape-DiplSMFy.js";
14
+ import al from "./Legend-5qvgVkrY.js";
15
+ import { S as ll } from "./Slicer-DG99wPTy.js";
16
+ import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "width", "height"], ul = { key: 1 }, cl = ["id"], hl = ["stop-color"], vl = ["stop-color"], dl = ["stop-color"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = { key: 0 }, pl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], xl = { key: 0 }, kl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ll = { key: 0 }, zl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x", "y", "font-size", "fill", "font-weight"], $l = ["transform", "font-size", "fill", "font-weight"], Tl = ["x", "y", "font-size", "fill", "font-weight"], Ml = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x", "y", "font-size", "fill", "font-weight"], Il = ["x", "y", "font-size", "font-weight", "fill"], Nl = ["x1", "x2", "y1", "y2", "stroke"], Rl = ["x", "y", "font-size", "font-weight", "fill"], Ol = ["x1", "x2", "y1", "y2", "stroke"], Pl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Vl = { key: 0 }, Dl = { key: 1 }, El = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Fl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Ul = { key: 0 }, Hl = { key: 1 }, Bl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Wl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Yl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Xl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Gl = {
18
18
  key: 3,
19
19
  class: "vue-data-ui-watermark"
20
- }, Xl = ["id"], Gl = ["onClick"], Jl = ["innerHTML"], ql = {
20
+ }, Jl = ["id"], ql = ["onClick"], Zl = ["innerHTML"], Kl = {
21
21
  __name: "vue-ui-stackbar",
22
22
  props: {
23
23
  config: {
@@ -34,25 +34,25 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
34
34
  }
35
35
  },
36
36
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
- setup(Me, { expose: Bt, emit: Wt }) {
38
- const Yt = H(() => import("./Tooltip-BTGOEC7w.js")), Xt = H(() => import("./BaseIcon-DLesaZpW.js")), Gt = H(() => import("./vue-ui-accordion-B5QeV3BK.js")), Jt = H(() => import("./DataTable-BAf4Obr9.js")), qt = H(() => import("./PenAndPaper-B6OvfyHH.js")), Zt = H(() => import("./UserOptions-CsDlFB0L.js")), Kt = H(() => import("./PackageVersion-Cv_ypT0N.js")), Qt = H(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_stackbar: jt } = Ta(), ea = Ca(), f = Me, Ae = Wt, he = p({
37
+ setup(Me, { expose: Yt, emit: Xt }) {
38
+ const Gt = H(() => import("./Tooltip-CP0tVHAf.js")), Jt = H(() => import("./BaseIcon-BcOSijbz.js")), qt = H(() => import("./vue-ui-accordion-DUlNpLir.js")), Zt = H(() => import("./DataTable-Cm8Tt9PQ.js")), Kt = H(() => import("./PenAndPaper-CyH7Ip2i.js")), Qt = H(() => import("./UserOptions-ZmwlARCV.js")), jt = H(() => import("./PackageVersion-0XlRFsI_.js")), ea = H(() => import("./BaseDraggableDialog-BmN9jTP8.js")), { vue_ui_stackbar: ta } = Aa(), aa = Sa(), f = Me, Ae = Xt, ve = p({
39
39
  get() {
40
40
  return !!f.dataset && f.dataset.length;
41
41
  },
42
42
  set(a) {
43
43
  return a;
44
44
  }
45
- }), O = g(null), M = g(Ot()), Ie = g(!1), Ne = g(null), Re = g(""), S = g([]), Xe = g(0), Ge = g(null), Je = g(null), qe = g(null), Ze = g(null), Ke = g(0), re = g(!1), de = g(null), X = g(!1), Qe = g(0), ta = g(0), aa = g(0), je = g(null), et = g(!1), oe = g(null), Oe = g(null), Pe = g(null), G = g(null), J = g(null), la = g(null), tt = g(null);
46
- Tt(() => {
47
- et.value = !0, Fe();
45
+ }), O = g(null), M = g(Vt()), Ie = g(!1), Ne = g(null), Re = g(""), S = g([]), Ge = g(0), Je = g(null), qe = g(null), Ze = g(null), Ke = g(null), Qe = g(0), re = g(!1), de = g(null), X = g(!1), je = g(0), la = g(0), sa = g(0), et = g(null), tt = g(!1), oe = g(null), Oe = g(null), Pe = g(null), Ve = g(null), G = g(null), J = g(null), ra = g(null), at = g(null);
46
+ At(() => {
47
+ tt.value = !0, Ue();
48
48
  });
49
- const e = g(De()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } = Ya({
50
- ..._a(f),
49
+ const e = g(Ee()), { loading: ne, FINAL_DATASET: ye, manualLoading: ge } = Ga({
50
+ ...$a(f),
51
51
  FINAL_CONFIG: e,
52
- prepareConfig: De,
52
+ prepareConfig: Ee,
53
53
  callback: () => {
54
54
  Promise.resolve().then(async () => {
55
- await Ue();
55
+ await He();
56
56
  });
57
57
  },
58
58
  skeletonDataset: [
@@ -67,7 +67,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
67
67
  color: "#CACACA"
68
68
  }
69
69
  ],
70
- skeletonConfig: Ma({
70
+ skeletonConfig: Ia({
71
71
  defaultConfig: e.value,
72
72
  userConfig: {
73
73
  userOptions: { show: !1 },
@@ -116,26 +116,26 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
116
116
  }
117
117
  }
118
118
  })
119
- }), { userOptionsVisible: Ve, setUserOptionsVisibility: at, keepUserOptionState: lt } = Ja({ config: e.value }), { svgRef: st } = qa({ config: e.value.style.chart.title });
120
- function De() {
121
- const a = Ht({
119
+ }), { userOptionsVisible: De, setUserOptionsVisibility: lt, keepUserOptionState: st } = Za({ config: e.value }), { svgRef: rt } = Ka({ config: e.value.style.chart.title });
120
+ function Ee() {
121
+ const a = Wt({
122
122
  userConfig: f.config,
123
- defaultConfig: jt
123
+ defaultConfig: ta
124
124
  });
125
125
  let l = {};
126
126
  return a.theme ? l = {
127
- ...Ht({
128
- userConfig: Ia.vue_ui_stackbar[a.theme] || f.config,
127
+ ...Wt({
128
+ userConfig: Ra.vue_ui_stackbar[a.theme] || f.config,
129
129
  defaultConfig: a
130
130
  }),
131
- customPalette: Aa[a.theme] || _e
131
+ customPalette: Na[a.theme] || _e
132
132
  } : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
133
133
  }
134
- const rt = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
134
+ const ot = p(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), nt = p(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
135
  ze(() => f.config, (a) => {
136
- ne.value || (e.value = De()), Ve.value = !e.value.userOptions.showOnChartHover, Fe(), Qe.value += 1, ta.value += 1, aa.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
136
+ ne.value || (e.value = Ee()), De.value = !e.value.userOptions.showOnChartHover, Ue(), je.value += 1, la.value += 1, sa.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
137
137
  }, { deep: !0 }), ze(() => f.dataset, (a) => {
138
- Array.isArray(a) && a.length > 0 && (ge.value = !1), dt();
138
+ Array.isArray(a) && a.length > 0 && (ge.value = !1), yt();
139
139
  }, { deep: !0 });
140
140
  const z = g({
141
141
  dataLabels: {
@@ -153,7 +153,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
153
153
  showTooltip: e.value.style.chart.tooltip.show
154
154
  };
155
155
  }, { immediate: !0 });
156
- const { isPrinting: nt, isImaging: it, generatePdf: ut, generateImage: ct } = Wa({
156
+ const { isPrinting: it, isImaging: ut, generatePdf: ct, generateImage: ht } = Xa({
157
157
  elementId: `stackbar_${M.value}`,
158
158
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
159
159
  options: e.value.userOptions.print
@@ -166,40 +166,40 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
166
166
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
167
167
  left: e.value.style.chart.padding.left / e.value.style.chart.width
168
168
  }
169
- }), sa = p(() => Na(e.value.customPalette)), E = Mt(null), ae = Mt(null), vt = g(null);
170
- Tt(() => {
171
- Fe();
169
+ }), oa = p(() => Oa(e.value.customPalette)), E = It(null), ae = It(null), vt = g(null);
170
+ At(() => {
171
+ Ue();
172
172
  });
173
- const Ee = p(() => !!e.value.debug);
174
- function Fe() {
175
- if (Pt(f.dataset) ? (Vt({
173
+ const Fe = p(() => !!e.value.debug);
174
+ function Ue() {
175
+ if (Dt(f.dataset) ? (Et({
176
176
  componentName: "VueUiStackbar",
177
177
  type: "dataset",
178
- debug: Ee.value
178
+ debug: Fe.value
179
179
  }), ge.value = !0) : f.dataset.forEach((a, l) => {
180
- Ra({
180
+ Pa({
181
181
  datasetObject: a,
182
182
  requiredAttributes: ["name", "series"]
183
183
  }).forEach((t) => {
184
- he.value = !1, Vt({
184
+ ve.value = !1, Et({
185
185
  componentName: "VueUiStackbar",
186
186
  type: "datasetSerieAttribute",
187
187
  property: t,
188
188
  index: l,
189
- debug: Ee.value
189
+ debug: Fe.value
190
190
  }), ge.value = !0;
191
191
  });
192
- }), Pt(f.dataset) || (ge.value = e.value.loading), setTimeout(() => {
192
+ }), Dt(f.dataset) || (ge.value = e.value.loading), setTimeout(() => {
193
193
  X.value = !0;
194
194
  }, 10), e.value.responsive) {
195
- const a = Ye(() => {
195
+ const a = Xe(() => {
196
196
  X.value = !1;
197
- const { width: l, height: t } = Ba({
197
+ const { width: l, height: t } = Ya({
198
198
  chart: O.value,
199
- title: e.value.style.chart.title.text ? Ge.value : null,
200
- legend: e.value.style.chart.legend.show ? Je.value : null,
201
- slicer: e.value.style.chart.zoom.show && U.value > 1 ? qe.value : null,
202
- source: Ze.value
199
+ title: e.value.style.chart.title.text ? Je.value : null,
200
+ legend: e.value.style.chart.legend.show ? qe.value : null,
201
+ slicer: e.value.style.chart.zoom.show && U.value > 1 ? Ze.value : null,
202
+ source: Ke.value
203
203
  });
204
204
  requestAnimationFrame(() => {
205
205
  te.value.width = l, te.value.height = t - 12, clearTimeout(vt.value), vt.value = setTimeout(() => {
@@ -209,12 +209,12 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
209
209
  });
210
210
  E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect()), E.value = new ResizeObserver(a), ae.value = O.value.parentNode, E.value.observe(ae.value);
211
211
  }
212
- Ue();
212
+ He();
213
213
  }
214
- At(() => {
214
+ Nt(() => {
215
215
  E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
216
216
  });
217
- function ra() {
217
+ function na() {
218
218
  let a = 0;
219
219
  e.value.orientation === "vertical" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
220
220
  const u = c.getComputedTextLength();
@@ -223,44 +223,44 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
223
223
  const u = c.getComputedTextLength();
224
224
  return u > s ? u : s;
225
225
  }, 0));
226
- const l = Pe.value ? Pe.value.getBoundingClientRect().width : 0;
226
+ const l = Ve.value ? Ve.value.getBoundingClientRect().width : 0;
227
227
  return a + l + (l ? 24 : 0);
228
228
  }
229
- const be = g(0), fe = g(0), oa = Ye((a) => {
229
+ const be = g(0), fe = g(0), ia = Xe((a) => {
230
230
  be.value = a;
231
231
  }, 100);
232
- It((a) => {
232
+ Rt((a) => {
233
233
  const l = e.value.orientation === "vertical" ? J.value : G.value;
234
234
  if (!l) return;
235
235
  const t = new ResizeObserver((s) => {
236
- oa(s[0].contentRect.height);
236
+ ia(s[0].contentRect.height);
237
237
  });
238
238
  t.observe(l), a(() => t.disconnect());
239
239
  });
240
- const na = Ye((a) => {
240
+ const ua = Xe((a) => {
241
241
  fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
242
  }, 100);
243
- It((a) => {
243
+ Rt((a) => {
244
244
  if (e.value.orientation === "vertical") return;
245
- const l = tt.value;
245
+ const l = at.value;
246
246
  if (!l) return;
247
247
  const t = new ResizeObserver((s) => {
248
- na(s[0].contentRect.width);
248
+ ua(s[0].contentRect.width);
249
249
  });
250
250
  t.observe(l), a(() => t.disconnect());
251
- }), At(() => {
251
+ }), Nt(() => {
252
252
  be.value = 0, fe.value = 0;
253
253
  });
254
- const ht = p(() => {
254
+ const dt = p(() => {
255
255
  let a = 0;
256
- Oe.value && (a = Oe.value.getBBox().height);
256
+ Pe.value && (a = Pe.value.getBBox().height);
257
257
  let l = 0;
258
258
  return e.value.orientation === "vertical" && J.value && (l = be.value), e.value.orientation === "horizontal" && G.value && (l = be.value), a + l;
259
259
  }), n = p(() => {
260
260
  const { height: a, width: l } = te.value, { right: t } = te.value.paddingRatio;
261
261
  let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
262
- e.value.style.chart.grid.y.axisLabels.show && (c = ra());
263
- const u = e.value.style.chart.padding.top + s, _ = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - ht.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - ht.value - s;
262
+ e.value.style.chart.grid.y.axisLabels.show && (c = na());
263
+ const u = e.value.style.chart.padding.top + s, _ = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - dt.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - dt.value - s;
264
264
  return {
265
265
  chartHeight: a,
266
266
  chartWidth: l,
@@ -272,7 +272,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
272
272
  height: Math.max(0, P)
273
273
  };
274
274
  }), F = p(() => ye.value.map((a, l) => {
275
- const t = Oa(a.color) || sa.value[l] || _e[l] || _e[l % _e.length];
275
+ const t = Va(a.color) || oa.value[l] || _e[l] || _e[l % _e.length];
276
276
  return {
277
277
  ...a,
278
278
  // In distributed mode, all values are converted to positive
@@ -280,45 +280,45 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
280
280
  // Store signs to manage display of neg values in distributed mode
281
281
  signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
282
282
  absoluteIndex: l,
283
- id: Ot(),
283
+ id: Vt(),
284
284
  color: t
285
285
  };
286
- })), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), v = g({
286
+ })), U = p(() => Math.max(...F.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = g({
287
287
  start: 0,
288
288
  end: Math.max(...ye.value.map((a) => a.series.length))
289
289
  });
290
- function dt() {
291
- Ue();
290
+ function yt() {
291
+ He();
292
292
  }
293
- async function Ue() {
294
- await Nt(), await Nt();
295
- const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = je.value, s = Math.max(...ye.value.map((c) => c.series.length));
296
- v.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (v.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ia(l + 1)) : (v.value.end = s, t.setEndValue(s))) : (v.value = { start: 0, end: s }, Ke.value += 1);
293
+ async function He() {
294
+ await Ot(), await Ot();
295
+ const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = et.value, s = Math.max(...ye.value.map((c) => c.series.length));
296
+ h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ca(l + 1)) : (h.value.end = s, t.setEndValue(s))) : (h.value = { start: 0, end: s }, Qe.value += 1);
297
297
  }
298
- function ia(a) {
298
+ function ca(a) {
299
299
  const l = Math.max(...ye.value.map((t) => t.series.length));
300
300
  return a > l ? l : 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;
301
301
  }
302
302
  const y = p(() => {
303
303
  let a;
304
- return e.value.orientation === "vertical" ? a = n.value.width / (v.value.end - v.value.start) : a = n.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
305
- }), ie = p(() => Se(F.value.filter((a) => !S.value.includes(a.id))).slice(v.value.start, v.value.end)), ua = p(() => Se(F.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
304
+ return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
305
+ }), ie = p(() => Se(F.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), ha = p(() => Se(F.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
306
306
  ...a,
307
307
  series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
308
- }))).slice(v.value.start, v.value.end)), me = p(() => {
308
+ }))).slice(h.value.start, h.value.end)), me = p(() => {
309
309
  const a = F.value.filter((l) => !S.value.includes(l.id));
310
310
  return {
311
311
  positive: Se(a.map((l) => ({
312
312
  ...l,
313
- series: l.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
313
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
314
314
  }))),
315
315
  negative: Se(a.map((l) => ({
316
316
  ...l,
317
- series: l.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
317
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
318
318
  })))
319
319
  };
320
320
  }), R = p(() => {
321
- 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(...me.value.positive), l = Math.min(...me.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(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Dt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Et(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
321
+ 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(...me.value.positive), l = Math.min(...me.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(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ft(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ut(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
322
  return s.ticks.map((c) => ({
323
323
  zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
324
324
  y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
@@ -328,46 +328,46 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
328
328
  horizontal_y: n.value.bottom - 8,
329
329
  value: c
330
330
  }));
331
- }), $ = p(() => Ga({
331
+ }), $ = p(() => qa({
332
332
  values: e.value.style.chart.grid.x.timeLabels.values,
333
333
  maxDatapoints: U.value,
334
334
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
335
- start: v.value.start,
336
- end: v.value.end
335
+ start: h.value.start,
336
+ end: h.value.end
337
337
  })), w = p(() => {
338
- if (!he.value && !ne.value) return [];
338
+ if (!ve.value && !ne.value) return [];
339
339
  let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
340
- const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? 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) : Et(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: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, St = R.value[0] ? R.value[0].zero : n.value.bottom, $t = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
340
+ const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ft(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) : Ut(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: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Tt = R.value[0] ? R.value[0].zero : n.value.bottom, Mt = R.value[0] ? R.value[0].horizontal_zero : n.value.left;
341
341
  return F.value.filter((ce) => !S.value.includes(ce.id)).map((ce) => {
342
- const V = ce.series.slice(v.value.start, v.value.end), fa = ce.signedSeries.slice(v.value.start, v.value.end), ma = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), pa = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), xa = V.map((x, k) => {
342
+ const V = ce.series.slice(h.value.start, h.value.end), pa = ce.signedSeries.slice(h.value.start, h.value.end), xa = V.map((x, k) => n.value.left + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), ka = V.map((x, k) => n.value.top + y.value * k + y.value * e.value.style.chart.bars.gapRatio / 4), wa = V.map((x, k) => {
343
343
  const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
344
344
  let Q, N;
345
- return x > 0 ? (N = A * I, Q = St - N - a[k], a[k] += N) : (N = A * I, Q = St + t[k], t[k] += Math.abs(N)), Q;
346
- }), ka = V.map((x, k) => {
345
+ return x > 0 ? (N = A * I, Q = Tt - N - a[k], a[k] += N) : (N = A * I, Q = Tt + t[k], t[k] += Math.abs(N)), Q;
346
+ }), La = V.map((x, k) => {
347
347
  const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
348
348
  let Q, N;
349
- return x > 0 ? (N = Le * I, Q = $t + l[k], l[k] += N) : (N = Le * I, Q = $t - Math.abs(N) - s[k], s[k] += Math.abs(N)), Q;
350
- }), wa = V.map((x, k) => {
349
+ return x > 0 ? (N = Le * I, Q = Mt + l[k], l[k] += N) : (N = Le * I, Q = Mt - Math.abs(N) - s[k], s[k] += Math.abs(N)), Q;
350
+ }), za = V.map((x, k) => {
351
351
  const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
352
352
  return x > 0 ? A * I : A * Math.abs(I);
353
- }), La = V.map((x, k) => {
353
+ }), Ca = V.map((x, k) => {
354
354
  const I = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
355
355
  return x > 0 ? Le * I : Le * Math.abs(I);
356
- }), za = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
356
+ }), _a = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
357
357
  return {
358
358
  ...ce,
359
- proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / za),
359
+ proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / _a),
360
360
  series: V,
361
- signedSeries: fa,
362
- x: ma,
363
- y: xa,
364
- height: wa,
365
- horizontal_width: La,
366
- horizontal_y: pa,
367
- horizontal_x: ka
361
+ signedSeries: pa,
362
+ x: xa,
363
+ y: wa,
364
+ height: za,
365
+ horizontal_width: Ca,
366
+ horizontal_y: ka,
367
+ horizontal_x: La
368
368
  };
369
369
  });
370
- }), yt = p(() => ua.value.map((a, l) => ({
370
+ }), gt = p(() => ha.value.map((a, l) => ({
371
371
  value: a,
372
372
  sign: a >= 0 ? 1 : -1
373
373
  })));
@@ -385,7 +385,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
385
385
  { datapoint: l, seriesIndex: t, datapointIndex: s }
386
386
  );
387
387
  }
388
- function gt(a, l, t, s) {
388
+ function bt(a, l, t, s) {
389
389
  return Te(
390
390
  e.value.style.chart.bars.dataLabels.formatter,
391
391
  a,
@@ -397,7 +397,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
397
397
  { datapoint: l, seriesIndex: t, datapointIndex: s }
398
398
  );
399
399
  }
400
- function bt(a) {
400
+ function ft(a) {
401
401
  const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
402
402
  name: t.name,
403
403
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
@@ -405,9 +405,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
405
405
  color: t.color,
406
406
  id: t.id
407
407
  }));
408
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + v.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
408
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
409
409
  }
410
- function ft(a) {
410
+ function mt(a) {
411
411
  return JSON.parse(JSON.stringify(w.value)).map((l) => ({
412
412
  name: l.name,
413
413
  absoluteIndex: l.absoluteIndex,
@@ -417,24 +417,24 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
417
417
  id: l.id
418
418
  }));
419
419
  }
420
- function mt(a) {
420
+ function pt(a) {
421
421
  if (e.value.events.datapointLeave) {
422
- const l = ft(a);
423
- e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + v.value.start });
422
+ const l = mt(a);
423
+ e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
424
424
  }
425
425
  Ie.value = null, de.value = null;
426
426
  }
427
- function pt(a) {
427
+ function xt(a) {
428
428
  de.value = a, Ie.value = !0;
429
- const l = e.value.style.chart.tooltip.customFormat, t = ft(a);
430
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + v.value.start }), Ne.value = {
429
+ const l = e.value.style.chart.tooltip.customFormat, t = mt(a);
430
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ne.value = {
431
431
  datapoint: t,
432
432
  seriesIndex: a,
433
433
  config: e.value,
434
434
  series: w.value
435
435
  };
436
436
  const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
437
- if (Ut(l) && Ha(() => l({
437
+ if (Bt(l) && Wa(() => l({
438
438
  seriesIndex: a,
439
439
  datapoint: t,
440
440
  series: w.value,
@@ -463,7 +463,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
463
463
  t.reverse().forEach((A) => {
464
464
  K += `
465
465
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
466
- <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_${A.id})` : A.color}"/>${ea.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
466
+ <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_${A.id})` : A.color}"/>${aa.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
467
467
  ${A.name}${c || u ? ":" : ""} ${c ? ee({
468
468
  p: e.value.style.chart.bars.dataLabels.prefix,
469
469
  v: A.value,
@@ -480,35 +480,35 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
480
480
  }), Re.value = `<div>${K}</div>`;
481
481
  }
482
482
  }
483
- const ca = p(() => te.value.width), va = p(() => te.value.height);
484
- Za({
483
+ const va = p(() => te.value.width), da = p(() => te.value.height);
484
+ Qa({
485
485
  timeLabelsEls: e.value.orientation === "vertical" ? J : G,
486
486
  timeLabels: $,
487
- slicer: v,
487
+ slicer: h,
488
488
  configRef: e,
489
489
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
490
490
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
491
491
  isAutoSize: !1,
492
- width: ca,
493
- height: va,
492
+ width: va,
493
+ height: da,
494
494
  rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
495
495
  });
496
- function xt(a) {
497
- re.value = a, Xe.value += 1;
496
+ function kt(a) {
497
+ re.value = a, Ge.value += 1;
498
498
  }
499
- function kt() {
499
+ function wt() {
500
500
  z.value.showTable = !z.value.showTable;
501
501
  }
502
- function wt() {
502
+ function Lt() {
503
503
  z.value.dataLabels.show = !z.value.dataLabels.show;
504
504
  }
505
- function Lt() {
505
+ function zt() {
506
506
  z.value.showTooltip = !z.value.showTooltip;
507
507
  }
508
- function ha() {
508
+ function ya() {
509
509
  return w.value;
510
510
  }
511
- const zt = p(() => {
511
+ const Ct = p(() => {
512
512
  if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
513
513
  const a = w.value.map(({ name: t, color: s }) => ({
514
514
  label: t,
@@ -521,16 +521,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
521
521
  }), l.push(s);
522
522
  }), { head: a, body: l };
523
523
  });
524
- function He(a = null) {
525
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...zt.value.head.map((_) => _.label)], s = zt.value.body, c = l.concat([t]).concat(s), u = Fa(c);
526
- a ? a(u) : Ua({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
524
+ function Be(a = null) {
525
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ct.value.head.map((_) => _.label)], s = Ct.value.body, c = l.concat([t]).concat(s), u = Ha(c);
526
+ a ? a(u) : Ba({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
527
527
  }
528
528
  const xe = p(() => {
529
529
  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>');
530
530
  let l = [];
531
531
  for (let c = 0; c < U.value; c += 1) {
532
532
  const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, q) => _ + q, 0);
533
- l.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)));
533
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
534
534
  }
535
535
  const t = {
536
536
  th: {
@@ -545,9 +545,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
545
545
  },
546
546
  breakpoint: e.value.table.responsiveBreakpoint
547
547
  }, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
548
- return { head: a, body: l.slice(0, v.value.end - v.value.start), config: t, colNames: s };
548
+ return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
549
549
  });
550
- function da(a, l) {
550
+ function ga(a, l) {
551
551
  if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
552
552
  S.value = S.value.filter((t) => t !== l.id);
553
553
  else {
@@ -555,15 +555,15 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
555
555
  S.value.push(l.id);
556
556
  }
557
557
  }
558
- const Ct = p(() => F.value.map((a, l) => ({
558
+ const _t = p(() => F.value.map((a, l) => ({
559
559
  ...a,
560
560
  shape: "square"
561
561
  })).map((a) => ({
562
562
  ...a,
563
563
  opacity: S.value.includes(a.id) ? 0.5 : 1,
564
- segregate: () => da(a.absoluteIndex, a),
564
+ segregate: () => ga(a.absoluteIndex, a),
565
565
  isSegregated: S.value.includes(a.id)
566
- }))), ya = p(() => ({
566
+ }))), ba = p(() => ({
567
567
  cy: "stackbar-legend",
568
568
  backgroundColor: e.value.style.chart.legend.backgroundColor,
569
569
  color: e.value.style.chart.legend.color,
@@ -571,7 +571,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
571
571
  paddingBottom: 12,
572
572
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
573
573
  })), ke = g(!1);
574
- function Be() {
574
+ function We() {
575
575
  ke.value = !ke.value;
576
576
  }
577
577
  function we(a, l) {
@@ -588,13 +588,13 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
588
588
  label: a.text
589
589
  });
590
590
  }
591
- const ga = p(() => Math.max(...w.value.flatMap((a) => a.series)));
592
- function _t(a, l) {
593
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ot.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : ot.value ? (rt.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 > ga.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : rt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
591
+ const fa = p(() => Math.max(...w.value.flatMap((a) => a.series)));
592
+ function St(a, l) {
593
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? nt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : nt.value ? (ot.value && Fe.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > fa.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ot.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
594
594
  }
595
- async function ba({ scale: a = 2 } = {}) {
595
+ async function ma({ scale: a = 2 } = {}) {
596
596
  if (!O.value) return;
597
- const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Ka({ domElement: O.value, base64: !0, img: !0, scale: a });
597
+ const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await ja({ domElement: O.value, base64: !0, img: !0, scale: a });
598
598
  return {
599
599
  imageUri: c,
600
600
  base64: u,
@@ -607,7 +607,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
607
607
  const ue = p(() => {
608
608
  const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
609
609
  return {
610
- component: a ? Qt : Gt,
610
+ component: a ? ea : qt,
611
611
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
612
612
  props: a ? {
613
613
  backgroundColor: e.value.table.th.backgroundColor,
@@ -634,45 +634,49 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
634
634
  }
635
635
  };
636
636
  });
637
- return ze(() => z.value.showTable, (a) => {
637
+ ze(() => z.value.showTable, (a) => {
638
638
  e.value.table.show || (a && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
639
- }), Bt({
640
- getData: ha,
641
- getImage: ba,
642
- generatePdf: ut,
643
- generateCsv: He,
644
- generateImage: ct,
645
- toggleTable: kt,
646
- toggleLabels: wt,
647
- toggleTooltip: Lt,
648
- toggleAnnotator: Be,
649
- toggleFullscreen: xt
639
+ });
640
+ function $t() {
641
+ z.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
642
+ }
643
+ return Yt({
644
+ getData: ya,
645
+ getImage: ma,
646
+ generatePdf: ct,
647
+ generateCsv: Be,
648
+ generateImage: ht,
649
+ toggleTable: wt,
650
+ toggleLabels: Lt,
651
+ toggleTooltip: zt,
652
+ toggleAnnotator: We,
653
+ toggleFullscreen: kt
650
654
  }), (a, l) => (r(), o("div", {
651
655
  id: `stackbar_${M.value}`,
652
656
  ref_key: "stackbarChart",
653
657
  ref: O,
654
658
  class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
655
659
  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%" : ""}`),
656
- onMouseenter: l[6] || (l[6] = () => h(at)(!0)),
657
- onMouseleave: l[7] || (l[7] = () => h(at)(!1))
660
+ onMouseenter: l[4] || (l[4] = () => v(lt)(!0)),
661
+ onMouseleave: l[5] || (l[5] = () => v(lt)(!1))
658
662
  }, [
659
- e.value.userOptions.buttons.annotator ? (r(), B(h(qt), {
663
+ e.value.userOptions.buttons.annotator ? (r(), B(v(Kt), {
660
664
  key: 0,
661
- svgRef: h(st),
665
+ svgRef: v(rt),
662
666
  backgroundColor: e.value.style.chart.backgroundColor,
663
667
  color: e.value.style.chart.color,
664
668
  active: ke.value,
665
- onClose: Be
669
+ onClose: We
666
670
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
667
671
  L(a.$slots, "userConfig", {}, void 0, !0),
668
672
  e.value.style.chart.title.text ? (r(), o("div", {
669
673
  key: 1,
670
674
  ref_key: "chartTitle",
671
- ref: Ge,
675
+ ref: Je,
672
676
  style: "width:100%;background:transparent;padding-bottom:24px"
673
677
  }, [
674
- (r(), B(Qa, {
675
- key: `title_${Qe.value}`,
678
+ (r(), B(el, {
679
+ key: `title_${je.value}`,
676
680
  config: {
677
681
  title: {
678
682
  cy: "stackbar-title",
@@ -687,14 +691,15 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
687
691
  ], 512)) : d("", !0),
688
692
  D("div", {
689
693
  id: `legend-top-${M.value}`
690
- }, null, 8, sl),
691
- e.value.userOptions.show && he.value && (h(lt) || h(Ve)) ? (r(), B(h(Zt), {
692
- ref: "details",
693
- key: `user_option_${Xe.value}`,
694
+ }, null, 8, ol),
695
+ e.value.userOptions.show && ve.value && (v(st) || v(De)) ? (r(), B(v(Qt), {
696
+ ref_key: "userOptionsRef",
697
+ ref: Oe,
698
+ key: `user_option_${Ge.value}`,
694
699
  backgroundColor: e.value.style.chart.backgroundColor,
695
700
  color: e.value.style.chart.color,
696
- isPrinting: h(nt),
697
- isImaging: h(it),
701
+ isPrinting: v(it),
702
+ isImaging: v(ut),
698
703
  uid: M.value,
699
704
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
700
705
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -712,18 +717,19 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
712
717
  isAnnotation: ke.value,
713
718
  callbacks: e.value.userOptions.callbacks,
714
719
  printScale: e.value.userOptions.print.scale,
715
- onToggleFullscreen: xt,
716
- onGeneratePdf: h(ut),
717
- onGenerateCsv: He,
718
- onGenerateImage: h(ct),
719
- onToggleTable: kt,
720
- onToggleLabels: wt,
721
- onToggleTooltip: Lt,
722
- onToggleAnnotator: Be,
720
+ tableDialog: e.value.table.useDialog,
721
+ onToggleFullscreen: kt,
722
+ onGeneratePdf: v(ct),
723
+ onGenerateCsv: Be,
724
+ onGenerateImage: v(ht),
725
+ onToggleTable: wt,
726
+ onToggleLabels: Lt,
727
+ onToggleTooltip: zt,
728
+ onToggleAnnotator: We,
723
729
  style: j({
724
- visibility: h(lt) ? h(Ve) ? "visible" : "hidden" : "visible"
730
+ visibility: v(st) ? v(De) ? "visible" : "hidden" : "visible"
725
731
  })
726
- }, We({ _: 2 }, [
732
+ }, Ye({ _: 2 }, [
727
733
  a.$slots.menuIcon ? {
728
734
  name: "menuIcon",
729
735
  fn: C(({ isOpen: t, color: s }) => [
@@ -787,16 +793,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
787
793
  ]),
788
794
  key: "8"
789
795
  } : void 0
790
- ]), 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"])) : d("", !0),
796
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
791
797
  (r(), o("svg", {
792
798
  ref_key: "svgRef",
793
- ref: st,
794
- xmlns: h(Pa),
799
+ ref: rt,
800
+ xmlns: v(Da),
795
801
  viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
796
- class: le({ "vue-data-ui-loading": h(ne) }),
802
+ class: le({ "vue-data-ui-loading": v(ne) }),
797
803
  style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
798
804
  }, [
799
- ve(h(Kt)),
805
+ he(v(jt)),
800
806
  a.$slots["chart-background"] ? (r(), o("foreignObject", {
801
807
  key: 0,
802
808
  x: n.value.left,
@@ -808,8 +814,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
808
814
  }
809
815
  }, [
810
816
  L(a.$slots, "chart-background", {}, void 0, !0)
811
- ], 8, ol)) : d("", !0),
812
- e.value.style.chart.bars.gradient.show ? (r(), o("defs", nl, [
817
+ ], 8, il)) : d("", !0),
818
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", ul, [
813
819
  (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("linearGradient", {
814
820
  id: `gradient_${t.id}`,
815
821
  x1: "0%",
@@ -820,16 +826,16 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
820
826
  D("stop", {
821
827
  offset: "0%",
822
828
  "stop-color": t.color
823
- }, null, 8, ul),
829
+ }, null, 8, hl),
824
830
  D("stop", {
825
831
  offset: "61.8%",
826
- "stop-color": h(Va)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
827
- }, null, 8, cl),
832
+ "stop-color": v(Ea)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
833
+ }, null, 8, vl),
828
834
  D("stop", {
829
835
  offset: "100%",
830
836
  "stop-color": t.color
831
- }, null, 8, vl)
832
- ], 8, il))), 256))
837
+ }, null, 8, dl)
838
+ ], 8, cl))), 256))
833
839
  ])) : d("", !0),
834
840
  e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, m(R.value, (t, s) => (r(), o("line", {
835
841
  x1: n.value.left,
@@ -840,8 +846,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
840
846
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
841
847
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
842
848
  "stroke-linecap": "round"
843
- }, null, 8, hl))), 256)) : d("", !0),
844
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(v.value.end - v.value.start + 1, (t, s) => (r(), o("line", {
849
+ }, null, 8, yl))), 256)) : d("", !0),
850
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
845
851
  x1: n.value.left,
846
852
  x2: n.value.right,
847
853
  y1: n.value.top + y.value * s,
@@ -850,8 +856,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
850
856
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
851
857
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
852
858
  "stroke-linecap": "round"
853
- }, null, 8, dl))), 256)) : d("", !0),
854
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(v.value.end - v.value.start + 1, (t, s) => (r(), o("line", {
859
+ }, null, 8, gl))), 256)) : d("", !0),
860
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
855
861
  x1: n.value.left + y.value * s,
856
862
  x2: n.value.left + y.value * s,
857
863
  y1: n.value.top,
@@ -860,7 +866,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
860
866
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
861
867
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
862
868
  "stroke-linecap": "round"
863
- }, null, 8, yl))), 256)) : d("", !0),
869
+ }, null, 8, bl))), 256)) : d("", !0),
864
870
  e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, m(R.value, (t, s) => (r(), o("line", {
865
871
  x1: t.horizontal_x,
866
872
  x2: t.horizontal_x,
@@ -870,9 +876,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
870
876
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
871
877
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
872
878
  "stroke-linecap": "round"
873
- }, null, 8, gl))), 256)) : d("", !0),
879
+ }, null, 8, fl))), 256)) : d("", !0),
874
880
  (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
875
- a.$slots.pattern ? (r(), o("defs", bl, [
881
+ a.$slots.pattern ? (r(), o("defs", ml, [
876
882
  L(a.$slots, "pattern", Ce({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${M.value}_${t.absoluteIndex}` }), void 0, !0)
877
883
  ])) : d("", !0),
878
884
  e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
@@ -888,8 +894,8 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
888
894
  "stroke-linecap": "round",
889
895
  "stroke-linejoin": "round",
890
896
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
891
- }, null, 10, fl))), 256)),
892
- a.$slots.pattern ? (r(), o("g", ml, [
897
+ }, null, 10, pl))), 256)),
898
+ a.$slots.pattern ? (r(), o("g", xl, [
893
899
  (r(!0), o(b, null, m(t.x, (c, u) => (r(), o("rect", {
894
900
  x: c,
895
901
  y: t.y[u] < 0 ? 0 : t.y[u],
@@ -902,13 +908,13 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
902
908
  "stroke-linecap": "round",
903
909
  "stroke-linejoin": "round",
904
910
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
905
- }, null, 10, pl))), 256))
911
+ }, null, 10, kl))), 256))
906
912
  ])) : d("", !0)
907
913
  ], 64)) : (r(), o(b, { key: 2 }, [
908
914
  (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
909
- x: h($e)(c, n.value.left),
915
+ x: v($e)(c, n.value.left),
910
916
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
911
- width: h($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
917
+ width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
912
918
  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,
913
919
  height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
914
920
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -917,12 +923,12 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
917
923
  "stroke-linecap": "round",
918
924
  "stroke-linejoin": "round",
919
925
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
920
- }, null, 10, xl))), 256)),
921
- a.$slots.pattern ? (r(), o("g", kl, [
926
+ }, null, 10, wl))), 256)),
927
+ a.$slots.pattern ? (r(), o("g", Ll, [
922
928
  (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
923
- x: h($e)(c, n.value.left),
929
+ x: v($e)(c, n.value.left),
924
930
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
925
- width: h($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
931
+ width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
926
932
  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,
927
933
  height: y.value * (1 - e.value.style.chart.bars.gapRatio / 2),
928
934
  fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
@@ -931,7 +937,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
931
937
  "stroke-linecap": "round",
932
938
  "stroke-linejoin": "round",
933
939
  class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
934
- }, null, 10, wl))), 256))
940
+ }, null, 10, zl))), 256))
935
941
  ])) : d("", !0)
936
942
  ], 64))
937
943
  ]))), 256)),
@@ -945,7 +951,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
945
951
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
946
952
  "stroke-linecap": "round",
947
953
  "stroke-linejoin": "round"
948
- }, null, 8, Ll)) : d("", !0),
954
+ }, null, 8, Cl)) : d("", !0),
949
955
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
950
956
  key: 7,
951
957
  x1: n.value.left,
@@ -956,48 +962,48 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
956
962
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
957
963
  "stroke-linecap": "round",
958
964
  "stroke-linejoin": "round"
959
- }, null, 8, zl)) : d("", !0),
965
+ }, null, 8, _l)) : d("", !0),
960
966
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
961
967
  key: 8,
962
968
  ref_key: "xAxisLabel",
963
- ref: Oe,
969
+ ref: Pe,
964
970
  x: n.value.left + n.value.width / 2,
965
971
  y: n.value.chartHeight - 3,
966
972
  "font-size": e.value.style.chart.grid.x.axisName.fontSize,
967
973
  fill: e.value.style.chart.grid.x.axisName.color,
968
974
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
969
975
  "text-anchor": "middle"
970
- }, T(e.value.style.chart.grid.x.axisName.text), 9, Cl)) : d("", !0),
976
+ }, T(e.value.style.chart.grid.x.axisName.text), 9, Sl)) : d("", !0),
971
977
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
972
978
  key: 9,
973
979
  ref_key: "yAxisLabel",
974
- ref: Pe,
980
+ ref: Ve,
975
981
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
976
982
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
977
983
  fill: e.value.style.chart.grid.y.axisName.color,
978
984
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
979
985
  "text-anchor": "middle"
980
- }, T(e.value.style.chart.grid.y.axisName.text), 9, _l)) : d("", !0),
986
+ }, T(e.value.style.chart.grid.y.axisName.text), 9, $l)) : d("", !0),
981
987
  z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
982
988
  (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
983
989
  (r(!0), o(b, null, m(t.x, (c, u) => (r(), o(b, null, [
984
- _t(t.series[u], t.proportions[u]) ? (r(), o("text", {
990
+ St(t.series[u], t.proportions[u]) ? (r(), o("text", {
985
991
  key: 0,
986
992
  x: c + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
987
993
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
988
994
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
989
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? h(Ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
995
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
990
996
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
991
997
  "text-anchor": "middle"
992
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? gt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Sl)) : d("", !0)
998
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Tl)) : d("", !0)
993
999
  ], 64))), 256))
994
1000
  ]))), 256)),
995
1001
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
996
1002
  key: 0,
997
1003
  ref_key: "sumTop",
998
- ref: la
1004
+ ref: ra
999
1005
  }, [
1000
- (r(!0), o(b, null, m(yt.value, (t, s) => (r(), o(b, null, [
1006
+ (r(!0), o(b, null, m(gt.value, (t, s) => (r(), o(b, null, [
1001
1007
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
1002
1008
  key: 0,
1003
1009
  x: n.value.left + y.value * s + y.value / 2,
@@ -1006,30 +1012,30 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1006
1012
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
1007
1013
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1008
1014
  fill: e.value.style.chart.bars.totalValues.color
1009
- }, T(pe(t.value, t, s, t.sign)), 9, $l)) : d("", !0)
1015
+ }, T(pe(t.value, t, s, t.sign)), 9, Ml)) : d("", !0)
1010
1016
  ], 64))), 256))
1011
1017
  ], 512)) : d("", !0)
1012
1018
  ], 64)) : d("", !0),
1013
1019
  z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
1014
1020
  (r(!0), o(b, null, m(w.value, (t, s) => (r(), o("g", null, [
1015
1021
  (r(!0), o(b, null, m(t.horizontal_x, (c, u) => (r(), o(b, null, [
1016
- _t(t.series[u], t.proportions[u]) ? (r(), o("text", {
1022
+ St(t.series[u], t.proportions[u]) ? (r(), o("text", {
1017
1023
  key: 0,
1018
1024
  x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
1019
1025
  y: t.horizontal_y[u] + y.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
1020
1026
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
1021
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? h(Ft)(t.color) : e.value.style.chart.bars.dataLabels.color,
1027
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
1022
1028
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1023
1029
  "text-anchor": "middle"
1024
- }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? gt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Tl)) : d("", !0)
1030
+ }, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? bt(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Al)) : d("", !0)
1025
1031
  ], 64))), 256))
1026
1032
  ]))), 256)),
1027
1033
  e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
1028
1034
  key: 0,
1029
1035
  ref_key: "sumRight",
1030
- ref: tt
1036
+ ref: at
1031
1037
  }, [
1032
- (r(!0), o(b, null, m(yt.value, (t, s) => (r(), o(b, null, [
1038
+ (r(!0), o(b, null, m(gt.value, (t, s) => (r(), o(b, null, [
1033
1039
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
1034
1040
  key: 0,
1035
1041
  x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
@@ -1038,7 +1044,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1038
1044
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
1039
1045
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1040
1046
  fill: e.value.style.chart.bars.totalValues.color
1041
- }, T(pe(t.value, t, s, t.sign)), 9, Ml)) : d("", !0)
1047
+ }, T(pe(t.value, t, s, t.sign)), 9, Il)) : d("", !0)
1042
1048
  ], 64))), 256))
1043
1049
  ], 512)) : d("", !0)
1044
1050
  ], 64)) : d("", !0),
@@ -1054,7 +1060,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1054
1060
  y2: t.y,
1055
1061
  stroke: e.value.style.chart.grid.x.axisColor,
1056
1062
  "stroke-width": 1
1057
- }, null, 8, Al))), 256)),
1063
+ }, null, 8, Nl))), 256)),
1058
1064
  (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
1059
1065
  x: t.x,
1060
1066
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
@@ -1062,17 +1068,17 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1062
1068
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1063
1069
  fill: e.value.style.chart.grid.y.axisLabels.color,
1064
1070
  "text-anchor": "end"
1065
- }, T(h(Te)(
1071
+ }, T(v(Te)(
1066
1072
  e.value.style.chart.grid.y.axisLabels.formatter,
1067
1073
  t.value,
1068
- h(ee)({
1074
+ v(ee)({
1069
1075
  p: e.value.style.chart.bars.dataLabels.prefix,
1070
1076
  v: t.value,
1071
1077
  s: e.value.style.chart.bars.dataLabels.suffix,
1072
1078
  r: e.value.style.chart.grid.y.axisLabels.rounding
1073
1079
  }),
1074
1080
  { datapoint: t }
1075
- )), 9, Il))), 256))
1081
+ )), 9, Rl))), 256))
1076
1082
  ], 512)) : d("", !0),
1077
1083
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1078
1084
  key: 13,
@@ -1087,7 +1093,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1087
1093
  stroke: e.value.style.chart.grid.x.axisColor,
1088
1094
  "stroke-width": 1,
1089
1095
  "stroke-linecap": "round"
1090
- }, null, 8, Nl))), 256)),
1096
+ }, null, 8, Ol))), 256)),
1091
1097
  (r(!0), o(b, null, m(R.value, (t, s) => (r(), o("text", {
1092
1098
  class: "vue-data-ui-time-label",
1093
1099
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1095,24 +1101,24 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1095
1101
  fill: e.value.style.chart.grid.y.axisLabels.color,
1096
1102
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1097
1103
  transform: `translate(${t.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
1098
- }, T(h(Te)(
1104
+ }, T(v(Te)(
1099
1105
  e.value.style.chart.grid.y.axisLabels.formatter,
1100
1106
  t.value,
1101
- h(ee)({
1107
+ v(ee)({
1102
1108
  p: e.value.style.chart.bars.dataLabels.prefix,
1103
1109
  v: t.value,
1104
1110
  s: e.value.style.chart.bars.dataLabels.suffix,
1105
1111
  r: e.value.style.chart.grid.y.axisLabels.rounding
1106
1112
  }),
1107
1113
  { datapoint: t }
1108
- )), 9, Rl))), 256))
1114
+ )), 9, Pl))), 256))
1109
1115
  ], 512)) : d("", !0),
1110
1116
  e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1111
1117
  key: 14,
1112
1118
  ref_key: "timeLabelsEls",
1113
1119
  ref: J
1114
1120
  }, [
1115
- a.$slots["time-label"] ? (r(), o("g", Ol, [
1121
+ a.$slots["time-label"] ? (r(), o("g", Vl, [
1116
1122
  (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1117
1123
  L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
1118
1124
  x: n.value.left + y.value * s + y.value / 2,
@@ -1126,7 +1132,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1126
1132
  show: !0
1127
1133
  }), void 0, !0)
1128
1134
  ]))), 256))
1129
- ])) : (r(), o("g", Pl, [
1135
+ ])) : (r(), o("g", Dl, [
1130
1136
  (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1131
1137
  String(t.text).includes(`
1132
1138
  `) ? (r(), o("text", {
@@ -1142,7 +1148,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1142
1148
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1143
1149
  `,
1144
1150
  style: { cursor: "pointer" },
1145
- innerHTML: h(Da)({
1151
+ innerHTML: v(Fa)({
1146
1152
  content: String(t.text),
1147
1153
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1148
1154
  fill: e.value.style.chart.grid.x.timeLabels.color,
@@ -1150,7 +1156,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1150
1156
  y: 0
1151
1157
  }),
1152
1158
  onClick: () => we(t, s)
1153
- }, null, 8, Dl)) : (r(), o("text", {
1159
+ }, null, 8, Fl)) : (r(), o("text", {
1154
1160
  class: "vue-data-ui-time-label",
1155
1161
  key: s,
1156
1162
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1160,7 +1166,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1160
1166
  transform: `translate(${n.value.left + y.value * s + y.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1161
1167
  style: { cursor: "pointer" },
1162
1168
  onClick: () => we(t, s)
1163
- }, T(t.text), 9, Vl))
1169
+ }, T(t.text), 9, El))
1164
1170
  ]))), 256))
1165
1171
  ]))
1166
1172
  ], 512)) : d("", !0),
@@ -1169,7 +1175,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1169
1175
  ref_key: "timeLabelsEls",
1170
1176
  ref: J
1171
1177
  }, [
1172
- a.$slots["time-label"] ? (r(), o("g", El, [
1178
+ a.$slots["time-label"] ? (r(), o("g", Ul, [
1173
1179
  (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1174
1180
  L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
1175
1181
  x: n.value.left - 8,
@@ -1183,7 +1189,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1183
1189
  show: !0
1184
1190
  }), void 0, !0)
1185
1191
  ]))), 256))
1186
- ])) : (r(), o("g", Fl, [
1192
+ ])) : (r(), o("g", Hl, [
1187
1193
  (r(!0), o(b, null, m($.value, (t, s) => (r(), o("g", null, [
1188
1194
  String(t.text).includes(`
1189
1195
  `) ? (r(), o("text", {
@@ -1196,14 +1202,14 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1196
1202
  y: n.value.top + y.value * s + y.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1197
1203
  style: { cursor: "pointer" },
1198
1204
  onClick: () => we(t, s),
1199
- innerHTML: h(Ea)({
1205
+ innerHTML: v(Ua)({
1200
1206
  content: String(t.text),
1201
1207
  fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1202
1208
  fill: e.value.style.chart.grid.y.axisLabels.color,
1203
1209
  x: n.value.left - 8,
1204
1210
  y: 0
1205
1211
  })
1206
- }, null, 8, Hl)) : (r(), o("text", {
1212
+ }, null, 8, Wl)) : (r(), o("text", {
1207
1213
  key: 0,
1208
1214
  "text-anchor": "end",
1209
1215
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1215,69 +1221,69 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1215
1221
  cursor: "pointer"
1216
1222
  },
1217
1223
  onClick: () => we(t, s)
1218
- }, T(t.text), 9, Ul))
1224
+ }, T(t.text), 9, Bl))
1219
1225
  ]))), 256))
1220
1226
  ]))
1221
1227
  ], 512)) : d("", !0),
1222
- z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(v.value.end - v.value.start, (t, s) => (r(), o("rect", {
1228
+ z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1223
1229
  x: n.value.left + s * y.value,
1224
1230
  y: n.value.top,
1225
1231
  width: y.value,
1226
1232
  height: n.value.height < 0 ? 0 : n.value.height,
1227
- onClick: () => bt(s),
1228
- onMouseenter: () => pt(s),
1229
- onMouseleave: () => mt(s),
1233
+ onClick: () => ft(s),
1234
+ onMouseenter: () => xt(s),
1235
+ onMouseleave: () => pt(s),
1230
1236
  fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
1231
1237
  style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1232
- }, null, 44, Bl))), 256)) : d("", !0),
1233
- z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(v.value.end - v.value.start, (t, s) => (r(), o("rect", {
1238
+ }, null, 44, Yl))), 256)) : d("", !0),
1239
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1234
1240
  x: n.value.left,
1235
1241
  y: n.value.top + s * y.value,
1236
1242
  width: n.value.width < 0 ? 0 : n.value.width,
1237
1243
  height: y.value,
1238
- onClick: () => bt(s),
1239
- onMouseenter: () => pt(s),
1240
- onMouseleave: () => mt(s),
1244
+ onClick: () => ft(s),
1245
+ onMouseenter: () => xt(s),
1246
+ onMouseleave: () => pt(s),
1241
1247
  fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
1242
1248
  style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1243
- }, null, 44, Wl))), 256)) : d("", !0),
1249
+ }, null, 44, Xl))), 256)) : d("", !0),
1244
1250
  L(a.$slots, "svg", W(Y({ ...n.value })), void 0, !0)
1245
- ], 14, rl)),
1246
- a.$slots.watermark ? (r(), o("div", Yl, [
1247
- L(a.$slots, "watermark", W(Y({ isPrinting: h(nt) || h(it) })), void 0, !0)
1251
+ ], 14, nl)),
1252
+ a.$slots.watermark ? (r(), o("div", Gl, [
1253
+ L(a.$slots, "watermark", W(Y({ isPrinting: v(it) || v(ut) })), void 0, !0)
1248
1254
  ])) : d("", !0),
1249
1255
  D("div", {
1250
1256
  ref_key: "chartSlicer",
1251
- ref: qe,
1257
+ ref: Ze,
1252
1258
  style: j(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1253
1259
  "data-dom-to-png-ignore": ""
1254
1260
  }, [
1255
- e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(tl, {
1261
+ e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(ll, {
1256
1262
  ref_key: "slicerComponent",
1257
- ref: je,
1258
- key: `slicer_${Ke.value}`,
1263
+ ref: et,
1264
+ key: `slicer_${Qe.value}`,
1259
1265
  background: e.value.style.chart.zoom.color,
1260
1266
  borderColor: e.value.style.chart.backgroundColor,
1261
1267
  fontSize: e.value.style.chart.zoom.fontSize,
1262
1268
  useResetSlot: e.value.style.chart.zoom.useResetSlot,
1263
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? $.value[0].text : "",
1264
- labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? $.value.at(-1).text : "",
1269
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
1270
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
1265
1271
  textColor: e.value.style.chart.color,
1266
1272
  inputColor: e.value.style.chart.zoom.color,
1267
1273
  selectColor: e.value.style.chart.zoom.highlightColor,
1268
1274
  max: Math.max(...Me.dataset.map((t) => t.series.length)),
1269
1275
  min: 0,
1270
- valueStart: v.value.start,
1271
- valueEnd: v.value.end,
1272
- start: v.value.start,
1273
- "onUpdate:start": l[0] || (l[0] = (t) => v.value.start = t),
1274
- end: v.value.end,
1275
- "onUpdate:end": l[1] || (l[1] = (t) => v.value.end = t),
1276
+ valueStart: h.value.start,
1277
+ valueEnd: h.value.end,
1278
+ start: h.value.start,
1279
+ "onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
1280
+ end: h.value.end,
1281
+ "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1276
1282
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1277
1283
  refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Me.dataset.map((t) => t.series.length)),
1278
1284
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1279
1285
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1280
- onReset: dt
1286
+ onReset: yt
1281
1287
  }, {
1282
1288
  "reset-action": C(({ reset: t }) => [
1283
1289
  L(a.$slots, "reset-action", W(Y({ reset: t })), void 0, !0)
@@ -1285,7 +1291,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1285
1291
  _: 3
1286
1292
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : d("", !0)
1287
1293
  ], 4),
1288
- ve(h(Yt), {
1294
+ he(v(Gt), {
1289
1295
  show: z.value.showTooltip && Ie.value,
1290
1296
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1291
1297
  color: e.value.style.chart.tooltip.color,
@@ -1299,7 +1305,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1299
1305
  parent: O.value,
1300
1306
  content: Re.value,
1301
1307
  isFullscreen: re.value,
1302
- isCustom: h(Ut)(e.value.style.chart.tooltip.customFormat),
1308
+ isCustom: v(Bt)(e.value.style.chart.tooltip.customFormat),
1303
1309
  smooth: e.value.style.chart.tooltip.smooth,
1304
1310
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
1305
1311
  }, {
@@ -1313,34 +1319,34 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1313
1319
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1314
1320
  D("div", {
1315
1321
  id: `legend-bottom-${M.value}`
1316
- }, null, 8, Xl),
1317
- et.value ? (r(), B(Sa, {
1322
+ }, null, 8, Jl),
1323
+ tt.value ? (r(), B(Ta, {
1318
1324
  key: 4,
1319
1325
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
1320
1326
  }, [
1321
1327
  D("div", {
1322
1328
  ref_key: "chartLegend",
1323
- ref: Je
1329
+ ref: qe
1324
1330
  }, [
1325
- e.value.style.chart.legend.show ? (r(), B(el, {
1331
+ e.value.style.chart.legend.show ? (r(), B(al, {
1326
1332
  key: 0,
1327
- legendSet: Ct.value,
1328
- config: ya.value,
1333
+ legendSet: _t.value,
1334
+ config: ba.value,
1329
1335
  onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1330
- }, We({
1336
+ }, Ye({
1331
1337
  item: C(({ legend: t }) => [
1332
- h(ne) ? d("", !0) : (r(), o("div", {
1338
+ v(ne) ? d("", !0) : (r(), o("div", {
1333
1339
  key: 0,
1334
1340
  onClick: (s) => t.segregate(),
1335
1341
  style: j(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1336
- }, T(t.name), 13, Gl))
1342
+ }, T(t.name), 13, ql))
1337
1343
  ]),
1338
1344
  _: 2
1339
1345
  }, [
1340
1346
  a.$slots.pattern ? {
1341
1347
  name: "legend-pattern",
1342
1348
  fn: C(({ legend: t, index: s }) => [
1343
- ve(ja, {
1349
+ he(tl, {
1344
1350
  shape: t.shape,
1345
1351
  radius: 30,
1346
1352
  stroke: "none",
@@ -1352,38 +1358,38 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1352
1358
  } : void 0
1353
1359
  ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1354
1360
  key: 1,
1355
- legend: Ct.value
1361
+ legend: _t.value
1356
1362
  }, void 0, !0)
1357
1363
  ], 512)
1358
1364
  ], 8, ["to"])) : d("", !0),
1359
1365
  a.$slots.source ? (r(), o("div", {
1360
1366
  key: 5,
1361
1367
  ref_key: "source",
1362
- ref: Ze,
1368
+ ref: Ke,
1363
1369
  dir: "auto"
1364
1370
  }, [
1365
1371
  L(a.$slots, "source", {}, void 0, !0)
1366
1372
  ], 512)) : d("", !0),
1367
- he.value ? (r(), B($a(ue.value.component), Ce({ key: 6 }, ue.value.props, {
1373
+ ve.value ? (r(), B(Ma(ue.value.component), Ce({ key: 6 }, ue.value.props, {
1368
1374
  ref_key: "tableUnit",
1369
1375
  ref: oe,
1370
- onClose: l[5] || (l[5] = (t) => z.value.showTable = !1)
1371
- }), We({
1376
+ onClose: $t
1377
+ }), Ye({
1372
1378
  content: C(() => [
1373
- ve(h(Jt), {
1379
+ he(v(Zt), {
1374
1380
  colNames: xe.value.colNames,
1375
1381
  head: xe.value.head,
1376
1382
  body: xe.value.body,
1377
1383
  config: xe.value.config,
1378
1384
  title: e.value.table.useDialog ? "" : ue.value.title,
1379
1385
  withCloseButton: !e.value.table.useDialog,
1380
- onClose: l[4] || (l[4] = (t) => z.value.showTable = !1)
1386
+ onClose: $t
1381
1387
  }, {
1382
1388
  th: C(({ th: t }) => [
1383
- D("div", { innerHTML: t }, null, 8, Jl)
1389
+ D("div", { innerHTML: t }, null, 8, Zl)
1384
1390
  ]),
1385
1391
  td: C(({ td: t }) => [
1386
- Rt(T(isNaN(Number(t)) ? t : h(ee)({
1392
+ Pt(T(isNaN(Number(t)) ? t : v(ee)({
1387
1393
  p: e.value.style.chart.bars.dataLabels.prefix,
1388
1394
  v: t,
1389
1395
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1398,7 +1404,7 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1398
1404
  e.value.table.useDialog ? {
1399
1405
  name: "title",
1400
1406
  fn: C(() => [
1401
- Rt(T(ue.value.title), 1)
1407
+ Pt(T(ue.value.title), 1)
1402
1408
  ]),
1403
1409
  key: "0"
1404
1410
  } : void 0,
@@ -1408,9 +1414,9 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1408
1414
  D("button", {
1409
1415
  tabindex: "0",
1410
1416
  class: "vue-ui-user-options-button",
1411
- onClick: l[3] || (l[3] = (t) => He(e.value.userOptions.callbacks.csv))
1417
+ onClick: l[3] || (l[3] = (t) => Be(e.value.userOptions.callbacks.csv))
1412
1418
  }, [
1413
- ve(h(Xt), {
1419
+ he(v(Jt), {
1414
1420
  name: "excel",
1415
1421
  stroke: ue.value.props.color
1416
1422
  }, null, 8, ["stroke"])
@@ -1419,10 +1425,10 @@ const ll = ["id"], sl = ["id"], rl = ["xmlns", "viewBox"], ol = ["x", "y", "widt
1419
1425
  key: "1"
1420
1426
  } : void 0
1421
1427
  ]), 1040)) : d("", !0),
1422
- h(ne) ? (r(), B(Xa, { key: 7 })) : d("", !0)
1423
- ], 46, ll));
1428
+ v(ne) ? (r(), B(Ja, { key: 7 })) : d("", !0)
1429
+ ], 46, rl));
1424
1430
  }
1425
- }, hs = /* @__PURE__ */ al(ql, [["__scopeId", "data-v-6fd66359"]]);
1431
+ }, ys = /* @__PURE__ */ sl(Kl, [["__scopeId", "data-v-e40199a5"]]);
1426
1432
  export {
1427
- hs as default
1433
+ ys as default
1428
1434
  };