vue-data-ui 2.12.6 → 2.12.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
  2. package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
  8. package/dist/PackageVersion-DaWGaZxE.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
  15. package/dist/SparkTooltip-DcdMxgqn.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
  17. package/dist/Tooltip-B07vY6jm.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-C8URL2IU.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
  41. package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
  45. package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
  46. package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
  57. package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
  66. package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
  76. package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
  85. package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
  86. package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
  89. package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
  90. package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,25 +1,19 @@
1
- import { useSlots as Pt, computed as w, ref as g, onMounted as at, watch as lt, nextTick as he, createElementBlock as s, openBlock as o, unref as b, normalizeStyle as U, normalizeClass as te, createBlock as q, createCommentVNode as v, renderSlot as x, createElementVNode as Y, createVNode as ae, createSlots as rt, withCtx as z, normalizeProps as V, guardReactiveProps as F, Fragment as h, renderList as y, mergeProps as _e, toDisplayString as S, createTextVNode as At } from "vue";
2
- import { u as Vt, c as ot, t as Ft, p as ve, a as Dt, C as de, b as Et, o as Ht, e as st, g as Wt, d as Bt, al as ye, ai as it, D as nt, X as Ut, l as Yt, a7 as ge, G as ut, f as X, x as ct, q as Xt, r as Gt, i as ht, y as Jt } from "./index-BFzQMJda.js";
3
- import { u as vt } from "./useNestedProp-v7KPpwuP.js";
4
- import { t as qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
5
- import { u as Kt, U as Qt } from "./usePrinter-C5bLp34h.js";
6
- import { S as jt } from "./Slicer-7qFdY-bT.js";
7
- import { _ as ea } from "./Tooltip-CWmRmhJr.js";
8
- import { _ as ta } from "./Title-CzaCeCOm.js";
9
- import { L as aa } from "./Legend-BxtDQCIv.js";
10
- import la from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { D as ra } from "./DataTable-Rajdtaf6.js";
12
- import oa from "./vue-ui-skeleton-B_YI7Yuc.js";
13
- import { _ as sa } from "./PackageVersion-BjrblLPQ.js";
14
- import { _ as ia } from "./PenAndPaper-BkP3J-Ft.js";
15
- import { u as na } from "./useUserOptionState-BIvW1Kz7.js";
16
- import { _ as ua } from "./Shape-C69a0f29.js";
17
- import { u as ca } from "./useChartAccessibility-BWojgys7.js";
18
- import { _ as ha } from "./_plugin-vue_export-helper-CHgC5LLL.js";
19
- const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"], ga = { key: 1 }, ba = ["id"], fa = ["stop-color"], ma = ["stop-color"], pa = ["stop-color"], xa = ["x1", "x2", "y1", "y2", "stroke"], ka = ["x1", "x2", "y1", "y2", "stroke"], wa = ["x1", "x2", "y1", "y2", "stroke"], _a = ["x1", "x2", "y1", "y2", "stroke"], za = { key: 0 }, Ca = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], La = { key: 0 }, $a = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ma = { key: 0 }, Ta = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Ra = ["transform", "font-size", "fill", "font-weight"], Pa = ["x", "y", "font-size", "fill", "font-weight"], Aa = { key: 0 }, Va = ["x", "y", "font-size", "font-weight", "fill"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = { key: 0 }, Ea = ["x", "y", "font-size", "font-weight", "fill"], Ha = ["x1", "x2", "y1", "y2", "stroke"], Wa = ["x", "y", "font-size", "font-weight", "fill"], Ba = ["x1", "x2", "y1", "y2", "stroke"], Ua = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ya = { key: 0 }, Xa = { key: 1 }, Ga = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ja = { key: 0 }, qa = { key: 1 }, Za = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ka = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Qa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ja = {
1
+ import { defineAsyncComponent as Y, useSlots as Yt, computed as w, ref as m, onMounted as rt, watch as ot, shallowRef as st, onBeforeUnmount as Xt, nextTick as ye, createElementBlock as s, openBlock as o, unref as y, normalizeStyle as X, normalizeClass as re, createBlock as Q, createCommentVNode as h, renderSlot as x, createElementVNode as G, createVNode as oe, createSlots as it, withCtx as C, normalizeProps as E, guardReactiveProps as F, Fragment as v, renderList as g, mergeProps as Le, toDisplayString as $, createTextVNode as Gt } from "vue";
2
+ import { u as Jt, c as nt, t as qt, p as ge, a as Zt, C as be, b as Kt, o as Qt, e as ut, g as jt, d as ea, ak as fe, ah as ct, D as vt, X as ta, l as aa, a6 as me, G as ht, f as J, x as dt, q as la, r as ra, i as yt, y as oa } from "./index-BHEd2dgu.js";
3
+ import { u as gt } from "./useNestedProp-CZztHZIm.js";
4
+ import { t as sa, u as ia } from "./useResponsive-JZ9xq-JV.js";
5
+ import { u as na } from "./usePrinter-C8URL2IU.js";
6
+ import { u as ua } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ca } from "./useChartAccessibility-9icAAmYg.js";
8
+ import va from "./Legend-DtTYopxf.js";
9
+ import { S as ha } from "./Slicer-DXpA-pZk.js";
10
+ import da from "./Title-Bc66VstS.js";
11
+ import ya from "./Shape-B6kIkp2s.js";
12
+ import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const ba = ["id"], fa = ["xmlns", "viewBox"], ma = ["x", "y", "width", "height"], pa = { key: 1 }, xa = ["id"], ka = ["stop-color"], wa = ["stop-color"], za = ["stop-color"], Ca = ["x1", "x2", "y1", "y2", "stroke"], _a = ["x1", "x2", "y1", "y2", "stroke"], La = ["x1", "x2", "y1", "y2", "stroke"], Sa = ["x1", "x2", "y1", "y2", "stroke"], $a = { key: 0 }, Ma = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ta = { key: 0 }, Na = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ia = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Oa = { key: 0 }, Ra = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Va = ["x", "y", "font-size", "fill", "font-weight"], Ea = ["transform", "font-size", "fill", "font-weight"], Fa = ["x", "y", "font-size", "fill", "font-weight"], Da = { key: 0 }, Ha = ["x", "y", "font-size", "font-weight", "fill"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ba = { key: 0 }, Ua = ["x", "y", "font-size", "font-weight", "fill"], Ya = ["x1", "x2", "y1", "y2", "stroke"], Xa = ["x", "y", "font-size", "font-weight", "fill"], Ga = ["x1", "x2", "y1", "y2", "stroke"], Ja = ["font-size", "font-weight", "fill", "text-anchor", "transform"], qa = { key: 0 }, Za = { key: 1 }, Ka = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Qa = { key: 0 }, ja = { key: 1 }, el = ["font-size", "font-weight", "fill", "x", "y", "onClick"], tl = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], al = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ll = {
20
14
  key: 4,
21
15
  class: "vue-data-ui-watermark"
22
- }, el = ["onClick"], tl = ["innerHTML"], al = {
16
+ }, rl = ["onClick"], ol = ["innerHTML"], sl = {
23
17
  __name: "vue-ui-stackbar",
24
18
  props: {
25
19
  config: {
@@ -36,52 +30,52 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
36
30
  }
37
31
  },
38
32
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
39
- setup(be, { expose: dt, emit: yt }) {
40
- const { vue_ui_stackbar: gt } = Vt(), bt = Pt(), f = be, fe = yt, G = w({
33
+ setup(pe, { expose: bt, emit: ft }) {
34
+ const mt = Y(() => import("./vue-ui-accordion-DntThSTF.js")), pt = Y(() => import("./DataTable-Y5HbiUZU.js")), xt = Y(() => import("./PackageVersion-DaWGaZxE.js")), kt = Y(() => import("./PenAndPaper-C-CpE0NC.js")), wt = Y(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), zt = Y(() => import("./Tooltip-B07vY6jm.js")), Ct = Y(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_stackbar: _t } = Jt(), Lt = Yt(), b = pe, xe = ft, q = w({
41
35
  get() {
42
- return !!f.dataset && f.dataset.length;
36
+ return !!b.dataset && b.dataset.length;
43
37
  },
44
38
  set(a) {
45
39
  return a;
46
40
  }
47
- }), Z = g(null), O = g(ot()), le = g(!1), me = g(null), pe = g(""), L = g([]), ze = g(0), Ce = g(null), Le = g(null), $e = g(null), Se = g(null), Me = g(0), re = g(!1), K = g(null), D = g(!1), ft = g(0), mt = g(0), pt = g(0), J = g(null);
48
- at(() => {
49
- ke();
41
+ }), j = m(null), O = m(nt()), se = m(!1), ke = m(null), we = m(""), L = m([]), Se = m(0), $e = m(null), Me = m(null), Te = m(null), Ne = m(null), Ie = m(0), ie = m(!1), ee = m(null), D = m(!1), St = m(0), $t = m(0), Mt = m(0), Z = m(null);
42
+ rt(() => {
43
+ Ce();
50
44
  });
51
45
  const e = w({
52
- get: () => Oe(),
46
+ get: () => Ae(),
53
47
  set: (a) => a
54
- }), { userOptionsVisible: xe, setUserOptionsVisibility: Te, keepUserOptionState: Ne } = na({ config: e.value }), { svgRef: Ie } = ca({ config: e.value.style.chart.title });
55
- function Oe() {
56
- const a = vt({
57
- userConfig: f.config,
58
- defaultConfig: gt
48
+ }), { userOptionsVisible: ze, setUserOptionsVisibility: Oe, keepUserOptionState: Re } = ua({ config: e.value }), { svgRef: Pe } = ca({ config: e.value.style.chart.title });
49
+ function Ae() {
50
+ const a = gt({
51
+ userConfig: b.config,
52
+ defaultConfig: _t
59
53
  });
60
54
  let r = {};
61
55
  return a.theme ? r = {
62
- ...vt({
63
- userConfig: Dt.vue_ui_stackbar[a.theme] || f.config,
56
+ ...gt({
57
+ userConfig: Zt.vue_ui_stackbar[a.theme] || b.config,
64
58
  defaultConfig: a
65
59
  }),
66
- customPalette: Ft[a.theme] || ve
67
- } : r = a, f.config && de(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 && de(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 && de(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 && de(f.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
60
+ customPalette: qt[a.theme] || ge
61
+ } : r = a, b.config && be(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 && be(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 && be(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 && be(b.config, "style.chart.zoom.endIndex") ? r.style.chart.zoom.endIndex = b.config.style.chart.zoom.endIndex : r.style.chart.zoom.endIndex = null, r;
68
62
  }
69
- lt(() => f.config, (a) => {
70
- e.value = Oe(), xe.value = !e.value.userOptions.showOnChartHover, ke(), ft.value += 1, mt.value += 1, pt.value += 1, _.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.chart.tooltip.show;
71
- }, { deep: !0 }), lt(() => f.dataset, (a) => {
72
- Ee();
63
+ ot(() => b.config, (a) => {
64
+ e.value = Ae(), ze.value = !e.value.userOptions.showOnChartHover, Ce(), St.value += 1, $t.value += 1, Mt.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;
65
+ }, { deep: !0 }), ot(() => b.dataset, (a) => {
66
+ We();
73
67
  }, { deep: !0 });
74
- const _ = g({
68
+ const z = m({
75
69
  dataLabels: {
76
70
  show: e.value.style.chart.bars.dataLabels.show
77
71
  },
78
72
  showTable: e.value.table.show,
79
73
  showTooltip: e.value.style.chart.tooltip.show
80
- }), { isPrinting: Re, isImaging: Pe, generatePdf: Ae, generateImage: Ve } = Kt({
74
+ }), { isPrinting: Ve, isImaging: Ee, generatePdf: Fe, generateImage: De } = na({
81
75
  elementId: `stackbar_${O.value}`,
82
76
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
83
77
  options: e.value.userOptions.print
84
- }), oe = g({
78
+ }), ne = m({
85
79
  width: e.value.style.chart.width,
86
80
  height: e.value.style.chart.height,
87
81
  paddingRatio: {
@@ -90,20 +84,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
90
84
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
91
85
  left: e.value.style.chart.padding.left / e.value.style.chart.width
92
86
  }
93
- }), xt = w(() => Et(e.value.customPalette)), Fe = g(null), De = g(null);
94
- at(() => {
95
- ke();
87
+ }), Tt = w(() => Kt(e.value.customPalette)), R = st(null), K = st(null), He = m(null);
88
+ rt(() => {
89
+ Ce();
96
90
  });
97
- function ke() {
98
- if (Ht(f.dataset) ? st({
91
+ function Ce() {
92
+ if (Qt(b.dataset) ? ut({
99
93
  componentName: "VueUiStackbar",
100
94
  type: "dataset"
101
- }) : f.dataset.forEach((a, r) => {
102
- Wt({
95
+ }) : b.dataset.forEach((a, r) => {
96
+ jt({
103
97
  datasetObject: a,
104
98
  requiredAttributes: ["name", "series"]
105
99
  }).forEach((t) => {
106
- G.value = !1, st({
100
+ q.value = !1, ut({
107
101
  componentName: "VueUiStackbar",
108
102
  type: "datasetSerieAttribute",
109
103
  property: t,
@@ -113,39 +107,42 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
113
107
  }), setTimeout(() => {
114
108
  D.value = !0;
115
109
  }, 10), e.value.responsive) {
116
- const a = qt(() => {
110
+ const a = sa(() => {
117
111
  D.value = !1;
118
- const { width: r, height: t } = Zt({
119
- chart: Z.value,
120
- title: e.value.style.chart.title.text ? Ce.value : null,
121
- legend: e.value.style.chart.legend.show ? Le.value : null,
122
- slicer: e.value.style.chart.zoom.show && P.value > 1 ? $e.value : null,
123
- source: Se.value
112
+ const { width: r, height: t } = ia({
113
+ chart: j.value,
114
+ title: e.value.style.chart.title.text ? $e.value : null,
115
+ legend: e.value.style.chart.legend.show ? Me.value : null,
116
+ slicer: e.value.style.chart.zoom.show && A.value > 1 ? Te.value : null,
117
+ source: Ne.value
124
118
  });
125
119
  requestAnimationFrame(() => {
126
- oe.value.width = r, oe.value.height = t, clearTimeout(De.value), De.value = setTimeout(() => {
120
+ ne.value.width = r, ne.value.height = t, clearTimeout(He.value), He.value = setTimeout(() => {
127
121
  D.value = !0;
128
122
  }, 10);
129
123
  });
130
124
  });
131
- Fe.value = new ResizeObserver(a), Fe.value.observe(Z.value.parentNode);
125
+ R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect()), R.value = new ResizeObserver(a), K.value = j.value.parentNode, R.value.observe(K.value);
132
126
  }
133
- He();
127
+ Be();
134
128
  }
129
+ Xt(() => {
130
+ R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
131
+ });
135
132
  const i = w(() => {
136
- const { height: a, width: r } = oe.value, { right: t } = oe.value.paddingRatio, l = e.value.style.chart.padding.top, u = r - r * t, n = a - e.value.style.chart.padding.bottom, C = e.value.style.chart.padding.left, E = r - C - r * t, H = a - l - e.value.style.chart.padding.bottom;
133
+ const { height: a, width: r } = ne.value, { right: t } = ne.value.paddingRatio, l = e.value.style.chart.padding.top, u = r - r * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, H = r - _ - r * t, W = a - l - e.value.style.chart.padding.bottom;
137
134
  return {
138
135
  chartHeight: a,
139
136
  chartWidth: r,
140
137
  top: l,
141
138
  right: u,
142
139
  bottom: n,
143
- left: C,
144
- width: E,
145
- height: H < 0 ? 0 : H
140
+ left: _,
141
+ width: H,
142
+ height: W < 0 ? 0 : W
146
143
  };
147
- }), R = w(() => f.dataset.map((a, r) => {
148
- const t = Bt(a.color) || xt.value[r] || ve[r] || ve[r % ve.length];
144
+ }), P = w(() => b.dataset.map((a, r) => {
145
+ const t = ea(a.color) || Tt.value[r] || ge[r] || ge[r % ge.length];
149
146
  return {
150
147
  ...a,
151
148
  // In distributed mode, all values are converted to positive
@@ -153,46 +150,46 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
153
150
  // Store signs to manage display of neg values in distributed mode
154
151
  signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
155
152
  absoluteIndex: r,
156
- id: ot(),
153
+ id: nt(),
157
154
  color: t
158
155
  };
159
- })), P = w(() => Math.max(...R.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
156
+ })), A = w(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = m({
160
157
  start: 0,
161
- end: Math.max(...f.dataset.map((a) => a.series.length))
158
+ end: Math.max(...b.dataset.map((a) => a.series.length))
162
159
  });
163
- function Ee() {
164
- He();
160
+ function We() {
161
+ Be();
165
162
  }
166
- async function He() {
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 he(), await he(), J.value && J.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await he(), await he(), J.value && J.value.setEndValue(kt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
163
+ async function Be() {
164
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && Z.value ? (e.value.style.chart.zoom.startIndex !== null && (await ye(), await ye(), Z.value && Z.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ye(), await ye(), Z.value && Z.value.setEndValue(Nt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
168
165
  start: 0,
169
- end: Math.max(...f.dataset.map((a) => a.series.length))
170
- }, Me.value += 1);
166
+ end: Math.max(...b.dataset.map((a) => a.series.length))
167
+ }, Ie.value += 1);
171
168
  }
172
- function kt(a) {
173
- const r = Math.max(...f.dataset.map((t) => t.series.length));
169
+ function Nt(a) {
170
+ const r = Math.max(...b.dataset.map((t) => t.series.length));
174
171
  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;
175
172
  }
176
173
  const d = w(() => {
177
174
  let a;
178
175
  return e.value.orientation === "vertical" ? a = i.value.width / (c.value.end - c.value.start) : a = i.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
179
- }), Q = w(() => ye(R.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), wt = w(() => ye(R.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
176
+ }), te = w(() => fe(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), It = w(() => fe(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
180
177
  ...a,
181
178
  series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
182
- }))).slice(c.value.start, c.value.end)), se = w(() => {
183
- const a = R.value.filter((r) => !L.value.includes(r.id));
179
+ }))).slice(c.value.start, c.value.end)), ue = w(() => {
180
+ const a = P.value.filter((r) => !L.value.includes(r.id));
184
181
  return {
185
- positive: ye(a.map((r) => ({
182
+ positive: fe(a.map((r) => ({
186
183
  ...r,
187
184
  series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
188
185
  }))),
189
- negative: ye(a.map((r) => ({
186
+ negative: fe(a.map((r) => ({
190
187
  ...r,
191
188
  series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
192
189
  })))
193
190
  };
194
191
  }), N = 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(...se.value.positive), r = Math.min(...se.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) ? it(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : nt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
192
+ 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(...ue.value.positive), r = Math.min(...ue.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) ? ct(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : vt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
196
193
  return l.ticks.map((u) => ({
197
194
  zero: i.value.bottom - i.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
198
195
  y: i.value.bottom - i.value.height * ((u + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
@@ -202,57 +199,57 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
202
199
  horizontal_y: i.value.bottom - 8,
203
200
  value: u
204
201
  }));
205
- }), A = w(() => {
202
+ }), V = w(() => {
206
203
  const a = [];
207
- for (let r = 0; r < P.value; r += 1)
204
+ for (let r = 0; r < A.value; r += 1)
208
205
  a.push({
209
206
  text: e.value.style.chart.grid.x.timeLabels.values[r] || String(r),
210
207
  absoluteIndex: r
211
208
  });
212
209
  return a.slice(c.value.start, c.value.end);
213
210
  }), k = w(() => {
214
- if (!G.value) return [];
215
- let a = Array(P.value).fill(0), r = Array(P.value).fill(0), t = Array(P.value).fill(0), l = Array(P.value).fill(0);
216
- const u = Math.max(...se.value.positive) || 0, n = Math.min(...se.value.negative), C = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, E = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? it(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : nt(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: H, max: j } = E, W = j + (H >= 0 ? 0 : Math.abs(H)) || 1, $ = i.value.height, ce = i.value.width, et = N.value[0] ? N.value[0].zero : i.value.bottom, tt = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
217
- return R.value.filter((ee) => !L.value.includes(ee.id)).map((ee) => {
218
- const I = ee.series.slice(c.value.start, c.value.end), $t = ee.signedSeries.slice(c.value.start, c.value.end), St = I.map((m, p) => i.value.left + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Mt = I.map((m, p) => i.value.top + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Tt = I.map((m, p) => {
219
- const M = e.value.style.chart.bars.distributed ? (m || 0) / Q.value[p] : (m || 0) / W;
220
- let B, T;
221
- return m > 0 ? (T = $ * M, B = et - T - a[p], a[p] += T) : (T = $ * M, B = et + t[p], t[p] += Math.abs(T)), B;
222
- }), Nt = I.map((m, p) => {
223
- const M = e.value.style.chart.bars.distributed ? (m || 0) / Q.value[p] : (m || 0) / W;
224
- let B, T;
225
- return m > 0 ? (T = ce * M, B = tt + r[p], r[p] += T) : (T = ce * M, B = tt - Math.abs(T) - l[p], l[p] += Math.abs(T)), B;
226
- }), It = I.map((m, p) => {
227
- const M = e.value.style.chart.bars.distributed ? (m || 0) / Q.value[p] : (m || 0) / W;
228
- return m > 0 ? $ * M : $ * Math.abs(M);
229
- }), Ot = I.map((m, p) => {
230
- const M = e.value.style.chart.bars.distributed ? (m || 0) / Q.value[p] : (m || 0) / W;
231
- return m > 0 ? ce * M : ce * Math.abs(M);
232
- }), Rt = I.map((m) => Math.abs(m)).reduce((m, p) => m + p, 0);
211
+ if (!q.value) return [];
212
+ let a = Array(A.value).fill(0), r = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
213
+ const u = Math.max(...ue.value.positive) || 0, n = Math.min(...ue.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, H = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ct(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : vt(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 : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: W, max: ae } = H, B = ae + (W >= 0 ? 0 : Math.abs(W)) || 1, S = i.value.height, de = i.value.width, at = N.value[0] ? N.value[0].zero : i.value.bottom, lt = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
214
+ return P.value.filter((le) => !L.value.includes(le.id)).map((le) => {
215
+ const I = le.series.slice(c.value.start, c.value.end), Vt = le.signedSeries.slice(c.value.start, c.value.end), Et = I.map((f, p) => i.value.left + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Ft = I.map((f, p) => i.value.top + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Dt = I.map((f, p) => {
216
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
217
+ let U, T;
218
+ return f > 0 ? (T = S * M, U = at - T - a[p], a[p] += T) : (T = S * M, U = at + t[p], t[p] += Math.abs(T)), U;
219
+ }), Ht = I.map((f, p) => {
220
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
221
+ let U, T;
222
+ return f > 0 ? (T = de * M, U = lt + r[p], r[p] += T) : (T = de * M, U = lt - Math.abs(T) - l[p], l[p] += Math.abs(T)), U;
223
+ }), Wt = I.map((f, p) => {
224
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
225
+ return f > 0 ? S * M : S * Math.abs(M);
226
+ }), Bt = I.map((f, p) => {
227
+ const M = e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / B;
228
+ return f > 0 ? de * M : de * Math.abs(M);
229
+ }), Ut = I.map((f) => Math.abs(f)).reduce((f, p) => f + p, 0);
233
230
  return {
234
- ...ee,
235
- proportions: I.map((m, p) => e.value.style.chart.bars.distributed ? (m || 0) / Q.value[p] : (m || 0) / Rt),
231
+ ...le,
232
+ proportions: I.map((f, p) => e.value.style.chart.bars.distributed ? (f || 0) / te.value[p] : (f || 0) / Ut),
236
233
  series: I,
237
- signedSeries: $t,
238
- x: St,
239
- y: Tt,
240
- height: It,
241
- horizontal_width: Ot,
242
- horizontal_y: Mt,
243
- horizontal_x: Nt
234
+ signedSeries: Vt,
235
+ x: Et,
236
+ y: Dt,
237
+ height: Wt,
238
+ horizontal_width: Bt,
239
+ horizontal_y: Ft,
240
+ horizontal_x: Ht
244
241
  };
245
242
  });
246
- }), We = w(() => wt.value.map((a, r) => ({
243
+ }), Ue = w(() => It.value.map((a, r) => ({
247
244
  value: a,
248
245
  sign: a >= 0 ? 1 : -1
249
246
  })));
250
- function ie(a, r, t, l, u) {
247
+ function ce(a, r, t, l, u) {
251
248
  const n = u === -1 && a >= 0 ? -a : a;
252
- return ht(
249
+ return yt(
253
250
  e.value.style.chart.bars.dataLabels.formatter,
254
251
  n,
255
- X({
252
+ J({
256
253
  p: e.value.style.chart.bars.dataLabels.prefix,
257
254
  v: n,
258
255
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -261,11 +258,11 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
261
258
  { datapoint: r, seriesIndex: t, datapointIndex: l }
262
259
  );
263
260
  }
264
- function Be(a, r, t, l) {
265
- return ht(
261
+ function Ye(a, r, t, l) {
262
+ return yt(
266
263
  e.value.style.chart.bars.dataLabels.formatter,
267
264
  a,
268
- X({
265
+ J({
269
266
  v: isNaN(a) ? 0 : a,
270
267
  s: "%",
271
268
  r: e.value.style.chart.bars.dataLabels.rounding
@@ -273,7 +270,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
273
270
  { datapoint: r, seriesIndex: t, datapointIndex: l }
274
271
  );
275
272
  }
276
- function Ue(a) {
273
+ function Xe(a) {
277
274
  const r = JSON.parse(JSON.stringify(k.value)).map((t) => ({
278
275
  name: t.name,
279
276
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
@@ -281,10 +278,10 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
281
278
  color: t.color,
282
279
  id: t.id
283
280
  }));
284
- fe("selectDatapoint", { datapoint: r, period: A.value[a] });
281
+ xe("selectDatapoint", { datapoint: r, period: V.value[a] });
285
282
  }
286
- function Ye(a) {
287
- K.value = a, le.value = !0;
283
+ function Ge(a) {
284
+ ee.value = a, se.value = !0;
288
285
  const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(k.value)).map((u) => ({
289
286
  name: u.name,
290
287
  absoluteIndex: u.absoluteIndex,
@@ -293,20 +290,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
293
290
  color: u.color,
294
291
  id: u.id
295
292
  }));
296
- me.value = {
293
+ ke.value = {
297
294
  datapoint: t,
298
295
  seriesIndex: a,
299
296
  config: e.value,
300
297
  series: k.value
301
298
  };
302
299
  const l = t.map((u) => Math.abs(u.value)).reduce((u, n) => u + n, 0);
303
- if (ct(r) && Jt(() => r({
300
+ if (dt(r) && oa(() => r({
304
301
  seriesIndex: a,
305
302
  datapoint: t,
306
303
  series: k.value,
307
304
  config: e.value
308
305
  })))
309
- pe.value = r({
306
+ we.value = r({
310
307
  seriesIndex: a,
311
308
  datapoint: t,
312
309
  series: k.value,
@@ -316,52 +313,52 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
316
313
  const {
317
314
  showValue: u,
318
315
  showPercentage: n,
319
- borderColor: C,
320
- roundingValue: E,
321
- roundingPercentage: H
316
+ borderColor: _,
317
+ roundingValue: H,
318
+ roundingPercentage: W
322
319
  } = e.value.style.chart.tooltip;
323
- let j = "";
324
- A.value[a] && A.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (j += `<div style="width:100%;text-align:center;border-bottom:1px solid ${C};padding-bottom:6px;margin-bottom:3px;">${A.value[a].text}</div>`);
325
- const W = [
320
+ let ae = "";
321
+ V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (ae += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
322
+ const B = [
326
323
  u && n ? "(" : "",
327
324
  u && n ? ")" : ""
328
325
  ];
329
- t.reverse().forEach(($) => {
330
- j += `
326
+ t.reverse().forEach((S) => {
327
+ ae += `
331
328
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
332
- <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_${$.id})` : $.color}"/>${bt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${O.value}_${$.absoluteIndex})"/>` : ""}</svg>
333
- ${$.name}${u || n ? ":" : ""} ${u ? X({
329
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${S.id})` : S.color}"/>${Lt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${O.value}_${S.absoluteIndex})"/>` : ""}</svg>
330
+ ${S.name}${u || n ? ":" : ""} ${u ? J({
334
331
  p: e.value.style.chart.bars.dataLabels.prefix,
335
- v: $.value,
332
+ v: S.value,
336
333
  s: e.value.style.chart.bars.dataLabels.suffix,
337
- r: E
338
- }) : ""} ${W[0]}${n ? X({
339
- v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
334
+ r: H
335
+ }) : ""} ${B[0]}${n ? J({
336
+ v: isNaN(S.value / l) ? 0 : Math.abs(S.value) / l * 100,
340
337
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
341
338
  s: "%",
342
- r: H
343
- }) : ""}${W[1]}
339
+ r: W
340
+ }) : ""}${B[1]}
344
341
  </div>
345
342
  `;
346
- }), pe.value = `<div>${j}</div>`;
343
+ }), we.value = `<div>${ae}</div>`;
347
344
  }
348
345
  }
349
- function _t(a) {
350
- re.value = a, ze.value += 1;
346
+ function Ot(a) {
347
+ ie.value = a, Se.value += 1;
351
348
  }
352
- function Xe() {
353
- _.value.showTable = !_.value.showTable;
349
+ function Je() {
350
+ z.value.showTable = !z.value.showTable;
354
351
  }
355
- function Ge() {
356
- _.value.dataLabels.show = !_.value.dataLabels.show;
352
+ function qe() {
353
+ z.value.dataLabels.show = !z.value.dataLabels.show;
357
354
  }
358
- function Je() {
359
- _.value.showTooltip = !_.value.showTooltip;
355
+ function Ze() {
356
+ z.value.showTooltip = !z.value.showTooltip;
360
357
  }
361
- function zt() {
358
+ function Rt() {
362
359
  return k.value;
363
360
  }
364
- const qe = w(() => {
361
+ const Ke = w(() => {
365
362
  if (k.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
366
363
  const a = k.value.map(({ name: t, color: l }) => ({
367
364
  label: t,
@@ -369,22 +366,22 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
369
366
  })), r = [];
370
367
  for (let t = c.value.start; t < c.value.end; t += 1) {
371
368
  const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
372
- R.value.forEach((u) => {
369
+ P.value.forEach((u) => {
373
370
  l.push(Number((u.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
374
371
  }), r.push(l);
375
372
  }
376
373
  return { head: a, body: r };
377
374
  });
378
- function Ze() {
379
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...qe.value.head.map((n) => n.label)], t = qe.value.body, l = a.concat([r]).concat(t), u = Xt(l);
380
- Gt({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
375
+ function Qe() {
376
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Ke.value.head.map((n) => n.label)], t = Ke.value.body, l = a.concat([r]).concat(t), u = la(l);
377
+ ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
381
378
  }
382
- const ne = w(() => {
379
+ const ve = w(() => {
383
380
  const a = [""].concat(k.value.map((u) => u.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>');
384
381
  let r = [];
385
- for (let u = 0; u < P.value; u += 1) {
386
- const n = k.value.map((C) => C.series[u] ?? 0).reduce((C, E) => C + E, 0);
387
- r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((C) => (C.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
382
+ for (let u = 0; u < A.value; u += 1) {
383
+ const n = k.value.map((_) => _.series[u] ?? 0).reduce((_, H) => _ + H, 0);
384
+ r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((_) => (_.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
388
385
  }
389
386
  const t = {
390
387
  th: {
@@ -401,34 +398,34 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
401
398
  }, l = [e.value.table.columnNames.period].concat(k.value.map((u) => u.name)).concat(e.value.table.columnNames.total);
402
399
  return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
403
400
  });
404
- function Ct(a, r) {
405
- if (fe("selectLegend", k.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
401
+ function Pt(a, r) {
402
+ if (xe("selectLegend", k.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
406
403
  L.value = L.value.filter((t) => t !== r.id);
407
404
  else {
408
- if (L.value.length === R.value.length - 1) return;
405
+ if (L.value.length === P.value.length - 1) return;
409
406
  L.value.push(r.id);
410
407
  }
411
408
  }
412
- const Ke = w(() => R.value.map((a, r) => ({
409
+ const je = w(() => P.value.map((a, r) => ({
413
410
  ...a,
414
411
  shape: "square"
415
412
  })).map((a) => ({
416
413
  ...a,
417
414
  opacity: L.value.includes(a.id) ? 0.5 : 1,
418
- segregate: () => Ct(a.absoluteIndex, a),
415
+ segregate: () => Pt(a.absoluteIndex, a),
419
416
  isSegregated: L.value.includes(a.id)
420
- }))), Lt = w(() => ({
417
+ }))), At = w(() => ({
421
418
  cy: "stackbar-legend",
422
419
  backgroundColor: e.value.style.chart.legend.backgroundColor,
423
420
  color: e.value.style.chart.legend.color,
424
421
  fontSize: e.value.style.chart.legend.fontSize,
425
422
  paddingBottom: 12,
426
423
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
427
- })), ue = g(!1);
428
- function we() {
429
- ue.value = !ue.value;
424
+ })), he = m(!1);
425
+ function _e() {
426
+ he.value = !he.value;
430
427
  }
431
- function Qe(a, r) {
428
+ function et(a, r) {
432
429
  const t = JSON.parse(JSON.stringify(k.value)).map((l) => ({
433
430
  name: l.name,
434
431
  value: l.series[r] === 0 ? 0 : (l.signedSeries[r] === -1 && l.series[r] >= 0 ? -l.series[r] : l.series[r]) || null,
@@ -436,49 +433,49 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
436
433
  color: l.color,
437
434
  id: l.id
438
435
  }));
439
- fe("selectTimeLabel", {
436
+ xe("selectTimeLabel", {
440
437
  datapoint: t,
441
438
  absoluteIndex: a.absoluteIndex,
442
439
  label: a.text
443
440
  });
444
441
  }
445
- function je(a, r) {
442
+ function tt(a, r) {
446
443
  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;
447
444
  }
448
- return dt({
449
- getData: zt,
450
- generatePdf: Ae,
451
- generateCsv: Ze,
452
- generateImage: Ve,
453
- toggleTable: Xe,
454
- toggleLabels: Ge,
455
- toggleTooltip: Je,
456
- toggleAnnotator: we
445
+ return bt({
446
+ getData: Rt,
447
+ generatePdf: Fe,
448
+ generateCsv: Qe,
449
+ generateImage: De,
450
+ toggleTable: Je,
451
+ toggleLabels: qe,
452
+ toggleTooltip: Ze,
453
+ toggleAnnotator: _e
457
454
  }), (a, r) => (o(), s("div", {
458
455
  id: `stackbar_${O.value}`,
459
456
  ref_key: "stackbarChart",
460
- ref: Z,
461
- class: te({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
462
- style: U(`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%" : ""}`),
463
- onMouseenter: r[6] || (r[6] = () => b(Te)(!0)),
464
- onMouseleave: r[7] || (r[7] = () => b(Te)(!1))
457
+ ref: j,
458
+ class: re({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ie.value }),
459
+ style: X(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
460
+ onMouseenter: r[6] || (r[6] = () => y(Oe)(!0)),
461
+ onMouseleave: r[7] || (r[7] = () => y(Oe)(!1))
465
462
  }, [
466
- e.value.userOptions.buttons.annotator ? (o(), q(ia, {
463
+ e.value.userOptions.buttons.annotator ? (o(), Q(y(kt), {
467
464
  key: 0,
468
- svgRef: b(Ie),
465
+ svgRef: y(Pe),
469
466
  backgroundColor: e.value.style.chart.backgroundColor,
470
467
  color: e.value.style.chart.color,
471
- active: ue.value,
472
- onClose: we
473
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
468
+ active: he.value,
469
+ onClose: _e
470
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
474
471
  x(a.$slots, "userConfig", {}, void 0, !0),
475
472
  e.value.style.chart.title.text ? (o(), s("div", {
476
473
  key: 1,
477
474
  ref_key: "chartTitle",
478
- ref: Ce,
475
+ ref: $e,
479
476
  style: "width:100%;background:transparent;padding-bottom:24px"
480
477
  }, [
481
- ae(ta, {
478
+ oe(da, {
482
479
  config: {
483
480
  title: {
484
481
  cy: "stackbar-title",
@@ -490,14 +487,14 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
490
487
  }
491
488
  }
492
489
  }, null, 8, ["config"])
493
- ], 512)) : v("", !0),
494
- e.value.userOptions.show && G.value && (b(Ne) || b(xe)) ? (o(), q(Qt, {
490
+ ], 512)) : h("", !0),
491
+ e.value.userOptions.show && q.value && (y(Re) || y(ze)) ? (o(), Q(y(Ct), {
495
492
  ref: "details",
496
- key: `user_option_${ze.value}`,
493
+ key: `user_option_${Se.value}`,
497
494
  backgroundColor: e.value.style.chart.backgroundColor,
498
495
  color: e.value.style.chart.color,
499
- isPrinting: b(Re),
500
- isImaging: b(Pe),
496
+ isPrinting: y(Ve),
497
+ isImaging: y(Ee),
501
498
  uid: O.value,
502
499
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
503
500
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -506,98 +503,98 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
506
503
  hasTable: e.value.userOptions.buttons.table,
507
504
  hasLabel: e.value.userOptions.buttons.labels,
508
505
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
509
- isFullscreen: re.value,
510
- chartElement: Z.value,
506
+ isFullscreen: ie.value,
507
+ chartElement: j.value,
511
508
  position: e.value.userOptions.position,
512
- isTooltip: _.value.showTooltip,
509
+ isTooltip: z.value.showTooltip,
513
510
  titles: { ...e.value.userOptions.buttonTitles },
514
511
  hasAnnotator: e.value.userOptions.buttons.annotator,
515
- isAnnotation: ue.value,
516
- onToggleFullscreen: _t,
517
- onGeneratePdf: b(Ae),
518
- onGenerateCsv: Ze,
519
- onGenerateImage: b(Ve),
520
- onToggleTable: Xe,
521
- onToggleLabels: Ge,
522
- onToggleTooltip: Je,
523
- onToggleAnnotator: we,
524
- style: U({
525
- visibility: b(Ne) ? b(xe) ? "visible" : "hidden" : "visible"
512
+ isAnnotation: he.value,
513
+ onToggleFullscreen: Ot,
514
+ onGeneratePdf: y(Fe),
515
+ onGenerateCsv: Qe,
516
+ onGenerateImage: y(De),
517
+ onToggleTable: Je,
518
+ onToggleLabels: qe,
519
+ onToggleTooltip: Ze,
520
+ onToggleAnnotator: _e,
521
+ style: X({
522
+ visibility: y(Re) ? y(ze) ? "visible" : "hidden" : "visible"
526
523
  })
527
- }, rt({ _: 2 }, [
524
+ }, it({ _: 2 }, [
528
525
  a.$slots.menuIcon ? {
529
526
  name: "menuIcon",
530
- fn: z(({ isOpen: t, color: l }) => [
531
- x(a.$slots, "menuIcon", V(F({ isOpen: t, color: l })), void 0, !0)
527
+ fn: C(({ isOpen: t, color: l }) => [
528
+ x(a.$slots, "menuIcon", E(F({ isOpen: t, color: l })), void 0, !0)
532
529
  ]),
533
530
  key: "0"
534
531
  } : void 0,
535
532
  a.$slots.optionTooltip ? {
536
533
  name: "optionTooltip",
537
- fn: z(() => [
534
+ fn: C(() => [
538
535
  x(a.$slots, "optionTooltip", {}, void 0, !0)
539
536
  ]),
540
537
  key: "1"
541
538
  } : void 0,
542
539
  a.$slots.optionPdf ? {
543
540
  name: "optionPdf",
544
- fn: z(() => [
541
+ fn: C(() => [
545
542
  x(a.$slots, "optionPdf", {}, void 0, !0)
546
543
  ]),
547
544
  key: "2"
548
545
  } : void 0,
549
546
  a.$slots.optionCsv ? {
550
547
  name: "optionCsv",
551
- fn: z(() => [
548
+ fn: C(() => [
552
549
  x(a.$slots, "optionCsv", {}, void 0, !0)
553
550
  ]),
554
551
  key: "3"
555
552
  } : void 0,
556
553
  a.$slots.optionImg ? {
557
554
  name: "optionImg",
558
- fn: z(() => [
555
+ fn: C(() => [
559
556
  x(a.$slots, "optionImg", {}, void 0, !0)
560
557
  ]),
561
558
  key: "4"
562
559
  } : void 0,
563
560
  a.$slots.optionTable ? {
564
561
  name: "optionTable",
565
- fn: z(() => [
562
+ fn: C(() => [
566
563
  x(a.$slots, "optionTable", {}, void 0, !0)
567
564
  ]),
568
565
  key: "5"
569
566
  } : void 0,
570
567
  a.$slots.optionLabels ? {
571
568
  name: "optionLabels",
572
- fn: z(() => [
569
+ fn: C(() => [
573
570
  x(a.$slots, "optionLabels", {}, void 0, !0)
574
571
  ]),
575
572
  key: "6"
576
573
  } : void 0,
577
574
  a.$slots.optionFullscreen ? {
578
575
  name: "optionFullscreen",
579
- fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
580
- x(a.$slots, "optionFullscreen", V(F({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
576
+ fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
577
+ x(a.$slots, "optionFullscreen", E(F({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
581
578
  ]),
582
579
  key: "7"
583
580
  } : void 0,
584
581
  a.$slots.optionAnnotator ? {
585
582
  name: "optionAnnotator",
586
- fn: z(({ toggleAnnotator: t, isAnnotator: l }) => [
587
- x(a.$slots, "optionAnnotator", V(F({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
583
+ fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
584
+ x(a.$slots, "optionAnnotator", E(F({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
588
585
  ]),
589
586
  key: "8"
590
587
  } : void 0
591
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
592
- G.value ? (o(), s("svg", {
588
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
589
+ q.value ? (o(), s("svg", {
593
590
  key: 3,
594
591
  ref_key: "svgRef",
595
- ref: Ie,
596
- xmlns: b(Ut),
592
+ ref: Pe,
593
+ xmlns: y(ta),
597
594
  viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.chartHeight <= 0 ? 10 : i.value.chartHeight}`,
598
- style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
595
+ style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
599
596
  }, [
600
- ae(sa),
597
+ oe(y(xt)),
601
598
  a.$slots["chart-background"] ? (o(), s("foreignObject", {
602
599
  key: 0,
603
600
  x: i.value.left,
@@ -609,30 +606,30 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
609
606
  }
610
607
  }, [
611
608
  x(a.$slots, "chart-background", {}, void 0, !0)
612
- ], 8, ya)) : v("", !0),
613
- e.value.style.chart.bars.gradient.show ? (o(), s("defs", ga, [
614
- (o(!0), s(h, null, y(k.value, (t, l) => (o(), s("linearGradient", {
609
+ ], 8, ma)) : h("", !0),
610
+ e.value.style.chart.bars.gradient.show ? (o(), s("defs", pa, [
611
+ (o(!0), s(v, null, g(k.value, (t, l) => (o(), s("linearGradient", {
615
612
  id: `gradient_${t.id}`,
616
613
  x1: "0%",
617
614
  y1: "0%",
618
615
  x2: "0%",
619
616
  y2: "100%"
620
617
  }, [
621
- Y("stop", {
618
+ G("stop", {
622
619
  offset: "0%",
623
620
  "stop-color": t.color
624
- }, null, 8, fa),
625
- Y("stop", {
621
+ }, null, 8, ka),
622
+ G("stop", {
626
623
  offset: "61.8%",
627
- "stop-color": b(Yt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
628
- }, null, 8, ma),
629
- Y("stop", {
624
+ "stop-color": y(aa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
625
+ }, null, 8, wa),
626
+ G("stop", {
630
627
  offset: "100%",
631
628
  "stop-color": t.color
632
- }, null, 8, pa)
633
- ], 8, ba))), 256))
634
- ])) : v("", !0),
635
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 2 }, y(N.value, (t, l) => (o(), s("line", {
629
+ }, null, 8, za)
630
+ ], 8, xa))), 256))
631
+ ])) : h("", !0),
632
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 2 }, g(N.value, (t, l) => (o(), s("line", {
636
633
  x1: i.value.left,
637
634
  x2: i.value.right,
638
635
  y1: t.y,
@@ -640,8 +637,8 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
640
637
  stroke: e.value.style.chart.grid.x.axisColor,
641
638
  "stroke-width": 1,
642
639
  "stroke-linecap": "round"
643
- }, null, 8, xa))), 256)) : v("", !0),
644
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 3 }, y(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
640
+ }, null, 8, Ca))), 256)) : h("", !0),
641
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 3 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
645
642
  x1: i.value.left,
646
643
  x2: i.value.right,
647
644
  y1: i.value.top + d.value * l,
@@ -649,8 +646,8 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
649
646
  stroke: e.value.style.chart.grid.y.axisColor,
650
647
  "stroke-width": 1,
651
648
  "stroke-linecap": "round"
652
- }, null, 8, ka))), 256)) : v("", !0),
653
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 4 }, y(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
649
+ }, null, 8, _a))), 256)) : h("", !0),
650
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 4 }, g(c.value.end - c.value.start + 1, (t, l) => (o(), s("line", {
654
651
  x1: i.value.left + d.value * l,
655
652
  x2: i.value.left + d.value * l,
656
653
  y1: i.value.top,
@@ -658,8 +655,8 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
658
655
  stroke: e.value.style.chart.grid.y.axisColor,
659
656
  "stroke-width": 1,
660
657
  "stroke-linecap": "round"
661
- }, null, 8, wa))), 256)) : v("", !0),
662
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 5 }, y(N.value, (t, l) => (o(), s("line", {
658
+ }, null, 8, La))), 256)) : h("", !0),
659
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 5 }, g(N.value, (t, l) => (o(), s("line", {
663
660
  x1: t.horizontal_x,
664
661
  x2: t.horizontal_x,
665
662
  y1: i.value.top,
@@ -667,13 +664,13 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
667
664
  stroke: e.value.style.chart.grid.x.axisColor,
668
665
  "stroke-width": 1,
669
666
  "stroke-linecap": "round"
670
- }, null, 8, _a))), 256)) : v("", !0),
671
- (o(!0), s(h, null, y(k.value, (t, l) => (o(), s("g", null, [
672
- a.$slots.pattern ? (o(), s("defs", za, [
673
- x(a.$slots, "pattern", _e({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${O.value}_${t.absoluteIndex}` }), void 0, !0)
674
- ])) : v("", !0),
675
- e.value.orientation === "vertical" ? (o(), s(h, { key: 1 }, [
676
- (o(!0), s(h, null, y(t.x, (u, n) => (o(), s("rect", {
667
+ }, null, 8, Sa))), 256)) : h("", !0),
668
+ (o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
669
+ a.$slots.pattern ? (o(), s("defs", $a, [
670
+ x(a.$slots, "pattern", Le({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${O.value}_${t.absoluteIndex}` }), void 0, !0)
671
+ ])) : h("", !0),
672
+ e.value.orientation === "vertical" ? (o(), s(v, { key: 1 }, [
673
+ (o(!0), s(v, null, g(t.x, (u, n) => (o(), s("rect", {
677
674
  x: u,
678
675
  y: t.y[n] < 0 ? 0 : t.y[n],
679
676
  height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
@@ -684,10 +681,10 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
684
681
  "stroke-width": e.value.style.chart.bars.strokeWidth,
685
682
  "stroke-linecap": "round",
686
683
  "stroke-linejoin": "round",
687
- class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
688
- }, null, 10, Ca))), 256)),
689
- a.$slots.pattern ? (o(), s("g", La, [
690
- (o(!0), s(h, null, y(t.x, (u, n) => (o(), s("rect", {
684
+ class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
685
+ }, null, 10, Ma))), 256)),
686
+ a.$slots.pattern ? (o(), s("g", Ta, [
687
+ (o(!0), s(v, null, g(t.x, (u, n) => (o(), s("rect", {
691
688
  x: u,
692
689
  y: t.y[n] < 0 ? 0 : t.y[n],
693
690
  height: t.height[n] < 0 ? 1e-4 : t.height[n] || 0,
@@ -698,14 +695,14 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
698
695
  "stroke-width": e.value.style.chart.bars.strokeWidth,
699
696
  "stroke-linecap": "round",
700
697
  "stroke-linejoin": "round",
701
- class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
702
- }, null, 10, $a))), 256))
703
- ])) : v("", !0)
704
- ], 64)) : (o(), s(h, { key: 2 }, [
705
- (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s("rect", {
706
- x: b(ge)(u, i.value.left),
698
+ class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
699
+ }, null, 10, Na))), 256))
700
+ ])) : h("", !0)
701
+ ], 64)) : (o(), s(v, { key: 2 }, [
702
+ (o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
703
+ x: y(me)(u, i.value.left),
707
704
  y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
708
- width: b(ge)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
705
+ width: y(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
709
706
  rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
710
707
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
711
708
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
@@ -713,13 +710,13 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
713
710
  "stroke-width": e.value.style.chart.bars.strokeWidth,
714
711
  "stroke-linecap": "round",
715
712
  "stroke-linejoin": "round",
716
- class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
717
- }, null, 10, Sa))), 256)),
718
- a.$slots.pattern ? (o(), s("g", Ma, [
719
- (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s("rect", {
720
- x: b(ge)(u, i.value.left),
713
+ class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
714
+ }, null, 10, Ia))), 256)),
715
+ a.$slots.pattern ? (o(), s("g", Oa, [
716
+ (o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s("rect", {
717
+ x: y(me)(u, i.value.left),
721
718
  y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
722
- width: b(ge)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
719
+ width: y(me)(t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]),
723
720
  rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
724
721
  height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
725
722
  fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
@@ -727,9 +724,9 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
727
724
  "stroke-width": e.value.style.chart.bars.strokeWidth,
728
725
  "stroke-linecap": "round",
729
726
  "stroke-linejoin": "round",
730
- class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
731
- }, null, 10, Ta))), 256))
732
- ])) : v("", !0)
727
+ class: re({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
728
+ }, null, 10, Ra))), 256))
729
+ ])) : h("", !0)
733
730
  ], 64))
734
731
  ]))), 256)),
735
732
  e.value.style.chart.grid.x.showAxis ? (o(), s("line", {
@@ -742,7 +739,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
742
739
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
743
740
  "stroke-linecap": "round",
744
741
  "stroke-linejoin": "round"
745
- }, null, 8, Na)) : v("", !0),
742
+ }, null, 8, Pa)) : h("", !0),
746
743
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), s("line", {
747
744
  key: 7,
748
745
  x1: i.value.left,
@@ -753,7 +750,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
753
750
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
754
751
  "stroke-linecap": "round",
755
752
  "stroke-linejoin": "round"
756
- }, null, 8, Ia)) : v("", !0),
753
+ }, null, 8, Aa)) : h("", !0),
757
754
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), s("text", {
758
755
  key: 8,
759
756
  x: i.value.left + i.value.width / 2,
@@ -762,7 +759,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
762
759
  fill: e.value.style.chart.grid.x.axisName.color,
763
760
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
764
761
  "text-anchor": "middle"
765
- }, S(e.value.style.chart.grid.x.axisName.text), 9, Oa)) : v("", !0),
762
+ }, $(e.value.style.chart.grid.x.axisName.text), 9, Va)) : h("", !0),
766
763
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), s("text", {
767
764
  key: 9,
768
765
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${i.value.top + i.value.height / 2}) rotate(-90)`,
@@ -770,23 +767,23 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
770
767
  fill: e.value.style.chart.grid.y.axisName.color,
771
768
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
772
769
  "text-anchor": "middle"
773
- }, S(e.value.style.chart.grid.y.axisName.text), 9, Ra)) : v("", !0),
774
- _.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 10 }, [
775
- (o(!0), s(h, null, y(k.value, (t, l) => (o(), s("g", null, [
776
- (o(!0), s(h, null, y(t.x, (u, n) => (o(), s(h, null, [
777
- je(t.series[n], t.proportions[n]) ? (o(), s("text", {
770
+ }, $(e.value.style.chart.grid.y.axisName.text), 9, Ea)) : h("", !0),
771
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), s(v, { key: 10 }, [
772
+ (o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
773
+ (o(!0), s(v, null, g(t.x, (u, n) => (o(), s(v, null, [
774
+ tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
778
775
  key: 0,
779
776
  x: u + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
780
777
  y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
781
778
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
782
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? b(ut)(t.color) : e.value.style.chart.bars.dataLabels.color,
779
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
783
780
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
784
781
  "text-anchor": "middle"
785
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Be(t.proportions[n] * 100, t, l, n) : ie(t.series[n], t, l, n, t.signedSeries[n])), 9, Pa)) : v("", !0)
782
+ }, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Fa)) : h("", !0)
786
783
  ], 64))), 256))
787
784
  ]))), 256)),
788
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Aa, [
789
- (o(!0), s(h, null, y(We.value, (t, l) => (o(), s(h, null, [
785
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Da, [
786
+ (o(!0), s(v, null, g(Ue.value, (t, l) => (o(), s(v, null, [
790
787
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
791
788
  key: 0,
792
789
  x: i.value.left + d.value * l + d.value / 2,
@@ -795,26 +792,26 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
795
792
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
796
793
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
797
794
  fill: e.value.style.chart.bars.totalValues.color
798
- }, S(ie(t.value, t, l, t.sign)), 9, Va)) : v("", !0)
795
+ }, $(ce(t.value, t, l, t.sign)), 9, Ha)) : h("", !0)
799
796
  ], 64))), 256))
800
- ])) : v("", !0)
801
- ], 64)) : v("", !0),
802
- _.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 11 }, [
803
- (o(!0), s(h, null, y(k.value, (t, l) => (o(), s("g", null, [
804
- (o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s(h, null, [
805
- je(t.series[n], t.proportions[n]) ? (o(), s("text", {
797
+ ])) : h("", !0)
798
+ ], 64)) : h("", !0),
799
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), s(v, { key: 11 }, [
800
+ (o(!0), s(v, null, g(k.value, (t, l) => (o(), s("g", null, [
801
+ (o(!0), s(v, null, g(t.horizontal_x, (u, n) => (o(), s(v, null, [
802
+ tt(t.series[n], t.proportions[n]) ? (o(), s("text", {
806
803
  key: 0,
807
804
  x: u + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
808
805
  y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
809
806
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
810
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? b(ut)(t.color) : e.value.style.chart.bars.dataLabels.color,
807
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? y(ht)(t.color) : e.value.style.chart.bars.dataLabels.color,
811
808
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
812
809
  "text-anchor": "middle"
813
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Be(t.proportions[n] * 100, t, l, n) : ie(t.series[n], t, l, n, t.signedSeries[n])), 9, Fa)) : v("", !0)
810
+ }, $(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ye(t.proportions[n] * 100, t, l, n) : ce(t.series[n], t, l, n, t.signedSeries[n])), 9, Wa)) : h("", !0)
814
811
  ], 64))), 256))
815
812
  ]))), 256)),
816
- e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Da, [
817
- (o(!0), s(h, null, y(We.value, (t, l) => (o(), s(h, null, [
813
+ e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ba, [
814
+ (o(!0), s(v, null, g(Ue.value, (t, l) => (o(), s(v, null, [
818
815
  !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
819
816
  key: 0,
820
817
  x: i.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
@@ -823,35 +820,35 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
823
820
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
824
821
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
825
822
  fill: e.value.style.chart.bars.totalValues.color
826
- }, S(ie(t.value, t, l, t.sign)), 9, Ea)) : v("", !0)
823
+ }, $(ce(t.value, t, l, t.sign)), 9, Ua)) : h("", !0)
827
824
  ], 64))), 256))
828
- ])) : v("", !0)
829
- ], 64)) : v("", !0),
830
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(h, { key: 12 }, [
831
- (o(!0), s(h, null, y(N.value, (t, l) => (o(), s("line", {
825
+ ])) : h("", !0)
826
+ ], 64)) : h("", !0),
827
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), s(v, { key: 12 }, [
828
+ (o(!0), s(v, null, g(N.value, (t, l) => (o(), s("line", {
832
829
  x1: i.value.left,
833
830
  x2: i.value.left - 6,
834
831
  y1: t.y,
835
832
  y2: t.y,
836
833
  stroke: e.value.style.chart.grid.x.axisColor,
837
834
  "stroke-width": 1
838
- }, null, 8, Ha))), 256)),
839
- (o(!0), s(h, null, y(N.value, (t, l) => (o(), s("text", {
835
+ }, null, 8, Ya))), 256)),
836
+ (o(!0), s(v, null, g(N.value, (t, l) => (o(), s("text", {
840
837
  x: t.x,
841
838
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
842
839
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
843
840
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
844
841
  fill: e.value.style.chart.grid.y.axisLabels.color,
845
842
  "text-anchor": "end"
846
- }, S(b(X)({
843
+ }, $(y(J)({
847
844
  p: e.value.style.chart.bars.dataLabels.prefix,
848
845
  v: t.value,
849
846
  s: e.value.style.chart.bars.dataLabels.suffix,
850
847
  r: e.value.style.chart.grid.y.axisLabels.rounding
851
- })), 9, Wa))), 256))
852
- ], 64)) : v("", !0),
853
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(h, { key: 13 }, [
854
- (o(!0), s(h, null, y(N.value, (t, l) => (o(), s("line", {
848
+ })), 9, Xa))), 256))
849
+ ], 64)) : h("", !0),
850
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(v, { key: 13 }, [
851
+ (o(!0), s(v, null, g(N.value, (t, l) => (o(), s("line", {
855
852
  x1: t.horizontal_x,
856
853
  x2: t.horizontal_x,
857
854
  y1: i.value.bottom,
@@ -859,24 +856,24 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
859
856
  stroke: e.value.style.chart.grid.x.axisColor,
860
857
  "stroke-width": 1,
861
858
  "stroke-linecap": "round"
862
- }, null, 8, Ba))), 256)),
863
- (o(!0), s(h, null, y(N.value, (t, l) => (o(), s("text", {
859
+ }, null, 8, Ga))), 256)),
860
+ (o(!0), s(v, null, g(N.value, (t, l) => (o(), s("text", {
864
861
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
865
862
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
866
863
  fill: e.value.style.chart.grid.y.axisLabels.color,
867
864
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
868
865
  transform: `translate(${t.horizontal_x}, ${i.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})`
869
- }, S(b(X)({
866
+ }, $(y(J)({
870
867
  p: e.value.style.chart.bars.dataLabels.prefix,
871
868
  v: t.value,
872
869
  s: e.value.style.chart.bars.dataLabels.suffix,
873
870
  r: e.value.style.chart.grid.y.axisLabels.rounding
874
- })), 9, Ua))), 256))
875
- ], 64)) : v("", !0),
876
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 14 }, [
877
- a.$slots["time-label"] ? (o(), s("g", Ya, [
878
- (o(!0), s(h, null, y(A.value, (t, l) => (o(), s("g", null, [
879
- x(a.$slots, "time-label", _e({ ref_for: !0 }, {
871
+ })), 9, Ja))), 256))
872
+ ], 64)) : h("", !0),
873
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(v, { key: 14 }, [
874
+ a.$slots["time-label"] ? (o(), s("g", qa, [
875
+ (o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
876
+ x(a.$slots, "time-label", Le({ ref_for: !0 }, {
880
877
  x: i.value.left + d.value * l + d.value / 2,
881
878
  y: i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
882
879
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -888,8 +885,8 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
888
885
  show: !0
889
886
  }), void 0, !0)
890
887
  ]))), 256))
891
- ])) : (o(), s("g", Xa, [
892
- (o(!0), s(h, null, y(A.value, (t, l) => (o(), s("text", {
888
+ ])) : (o(), s("g", Za, [
889
+ (o(!0), s(v, null, g(V.value, (t, l) => (o(), s("text", {
893
890
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
894
891
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
895
892
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
@@ -898,14 +895,14 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
898
895
  style: {
899
896
  cursor: "pointer"
900
897
  },
901
- onClick: () => Qe(t, l)
902
- }, S(t.text), 9, Ga))), 256))
898
+ onClick: () => et(t, l)
899
+ }, $(t.text), 9, Ka))), 256))
903
900
  ]))
904
- ], 64)) : v("", !0),
905
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 15 }, [
906
- a.$slots["time-label"] ? (o(), s("g", Ja, [
907
- (o(!0), s(h, null, y(A.value, (t, l) => (o(), s("g", null, [
908
- x(a.$slots, "time-label", _e({ ref_for: !0 }, {
901
+ ], 64)) : h("", !0),
902
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(v, { key: 15 }, [
903
+ a.$slots["time-label"] ? (o(), s("g", Qa, [
904
+ (o(!0), s(v, null, g(V.value, (t, l) => (o(), s("g", null, [
905
+ x(a.$slots, "time-label", Le({ ref_for: !0 }, {
909
906
  x: i.value.left - 8,
910
907
  y: i.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
911
908
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -917,8 +914,8 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
917
914
  show: !0
918
915
  }), void 0, !0)
919
916
  ]))), 256))
920
- ])) : (o(), s("g", qa, [
921
- (o(!0), s(h, null, y(A.value, (t, l) => (o(), s("text", {
917
+ ])) : (o(), s("g", ja, [
918
+ (o(!0), s(v, null, g(V.value, (t, l) => (o(), s("text", {
922
919
  "text-anchor": "end",
923
920
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
924
921
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
@@ -928,42 +925,42 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
928
925
  style: {
929
926
  cursor: "pointer"
930
927
  },
931
- onClick: () => Qe(t, l)
932
- }, S(t.text), 9, Za))), 256))
928
+ onClick: () => et(t, l)
929
+ }, $(t.text), 9, el))), 256))
933
930
  ]))
934
- ], 64)) : v("", !0),
935
- _.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(h, { key: 16 }, y(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
931
+ ], 64)) : h("", !0),
932
+ z.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), s(v, { key: 16 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
936
933
  x: i.value.left + l * d.value,
937
934
  y: i.value.top,
938
935
  width: d.value,
939
936
  height: i.value.height < 0 ? 0 : i.value.height,
940
- onClick: (u) => Ue(l),
941
- onMouseenter: (u) => Ye(l),
937
+ onClick: (u) => Xe(l),
938
+ onMouseenter: (u) => Ge(l),
942
939
  onMouseleave: r[0] || (r[0] = (u) => {
943
- K.value = null, le.value = !1;
940
+ ee.value = null, se.value = !1;
944
941
  }),
945
- fill: l === K.value ? e.value.style.chart.highlighter.color : "transparent",
946
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
947
- }, null, 44, Ka))), 256)) : v("", !0),
948
- _.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(h, { key: 17 }, y(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
942
+ fill: l === ee.value ? e.value.style.chart.highlighter.color : "transparent",
943
+ style: X({ opacity: e.value.style.chart.highlighter.opacity / 100 })
944
+ }, null, 44, tl))), 256)) : h("", !0),
945
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), s(v, { key: 17 }, g(c.value.end - c.value.start, (t, l) => (o(), s("rect", {
949
946
  x: i.value.left,
950
947
  y: i.value.top + l * d.value,
951
948
  width: i.value.width < 0 ? 0 : i.value.width,
952
949
  height: d.value,
953
- onClick: (u) => Ue(l),
954
- onMouseenter: (u) => Ye(l),
950
+ onClick: (u) => Xe(l),
951
+ onMouseenter: (u) => Ge(l),
955
952
  onMouseleave: r[1] || (r[1] = (u) => {
956
- K.value = null, le.value = !1;
953
+ ee.value = null, se.value = !1;
957
954
  }),
958
- fill: l === K.value ? e.value.style.chart.highlighter.color : "transparent",
959
- style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
960
- }, null, 44, Qa))), 256)) : v("", !0),
961
- x(a.$slots, "svg", V(F({ ...i.value })), void 0, !0)
962
- ], 12, da)) : v("", !0),
963
- a.$slots.watermark ? (o(), s("div", ja, [
964
- x(a.$slots, "watermark", V(F({ isPrinting: b(Re) || b(Pe) })), void 0, !0)
965
- ])) : v("", !0),
966
- G.value ? v("", !0) : (o(), q(oa, {
955
+ fill: l === ee.value ? e.value.style.chart.highlighter.color : "transparent",
956
+ style: X({ opacity: e.value.style.chart.highlighter.opacity / 100 })
957
+ }, null, 44, al))), 256)) : h("", !0),
958
+ x(a.$slots, "svg", E(F({ ...i.value })), void 0, !0)
959
+ ], 12, fa)) : h("", !0),
960
+ a.$slots.watermark ? (o(), s("div", ll, [
961
+ x(a.$slots, "watermark", E(F({ isPrinting: y(Ve) || y(Ee) })), void 0, !0)
962
+ ])) : h("", !0),
963
+ q.value ? h("", !0) : (o(), Q(y(wt), {
967
964
  key: 5,
968
965
  config: {
969
966
  type: "bar",
@@ -978,16 +975,16 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
978
975
  }
979
976
  }
980
977
  }, null, 8, ["config"])),
981
- Y("div", {
978
+ G("div", {
982
979
  ref_key: "chartSlicer",
983
- ref: $e,
984
- style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
980
+ ref: Te,
981
+ style: X(`width:100%;background:${e.value.style.chart.backgroundColor}`),
985
982
  "data-dom-to-png-ignore": ""
986
983
  }, [
987
- e.value.style.chart.zoom.show && P.value > 1 ? (o(), q(jt, {
984
+ e.value.style.chart.zoom.show && A.value > 1 ? (o(), Q(ha, {
988
985
  ref_key: "slicerComponent",
989
- ref: J,
990
- key: `slicer_${Me.value}`,
986
+ ref: Z,
987
+ key: `slicer_${Ie.value}`,
991
988
  background: e.value.style.chart.zoom.color,
992
989
  borderColor: e.value.style.chart.backgroundColor,
993
990
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -997,7 +994,7 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
997
994
  textColor: e.value.style.chart.color,
998
995
  inputColor: e.value.style.chart.zoom.color,
999
996
  selectColor: e.value.style.chart.zoom.highlightColor,
1000
- max: Math.max(...be.dataset.map((t) => t.series.length)),
997
+ max: Math.max(...pe.dataset.map((t) => t.series.length)),
1001
998
  min: 0,
1002
999
  valueStart: c.value.start,
1003
1000
  valueEnd: c.value.end,
@@ -1006,19 +1003,19 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
1006
1003
  end: c.value.end,
1007
1004
  "onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
1008
1005
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1009
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...be.dataset.map((t) => t.series.length)),
1006
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...pe.dataset.map((t) => t.series.length)),
1010
1007
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1011
1008
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1012
- onReset: Ee
1009
+ onReset: We
1013
1010
  }, {
1014
- "reset-action": z(({ reset: t }) => [
1015
- x(a.$slots, "reset-action", V(F({ reset: t })), void 0, !0)
1011
+ "reset-action": C(({ reset: t }) => [
1012
+ x(a.$slots, "reset-action", E(F({ reset: t })), void 0, !0)
1016
1013
  ]),
1017
1014
  _: 3
1018
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : v("", !0)
1015
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
1019
1016
  ], 4),
1020
- ae(ea, {
1021
- show: _.value.showTooltip && le.value,
1017
+ oe(y(zt), {
1018
+ show: z.value.showTooltip && se.value,
1022
1019
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1023
1020
  color: e.value.style.chart.tooltip.color,
1024
1021
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1028,41 +1025,41 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
1028
1025
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1029
1026
  position: e.value.style.chart.tooltip.position,
1030
1027
  offsetY: e.value.style.chart.tooltip.offsetY,
1031
- parent: Z.value,
1032
- content: pe.value,
1033
- isFullscreen: re.value,
1034
- isCustom: b(ct)(e.value.style.chart.tooltip.customFormat)
1028
+ parent: j.value,
1029
+ content: we.value,
1030
+ isFullscreen: ie.value,
1031
+ isCustom: y(dt)(e.value.style.chart.tooltip.customFormat)
1035
1032
  }, {
1036
- "tooltip-before": z(() => [
1037
- x(a.$slots, "tooltip-before", V(F({ ...me.value })), void 0, !0)
1033
+ "tooltip-before": C(() => [
1034
+ x(a.$slots, "tooltip-before", E(F({ ...ke.value })), void 0, !0)
1038
1035
  ]),
1039
- "tooltip-after": z(() => [
1040
- x(a.$slots, "tooltip-after", V(F({ ...me.value })), void 0, !0)
1036
+ "tooltip-after": C(() => [
1037
+ x(a.$slots, "tooltip-after", E(F({ ...ke.value })), void 0, !0)
1041
1038
  ]),
1042
1039
  _: 3
1043
1040
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
1044
- Y("div", {
1041
+ G("div", {
1045
1042
  ref_key: "chartLegend",
1046
- ref: Le
1043
+ ref: Me
1047
1044
  }, [
1048
- e.value.style.chart.legend.show && G.value ? (o(), q(aa, {
1045
+ e.value.style.chart.legend.show && q.value ? (o(), Q(va, {
1049
1046
  key: 0,
1050
- legendSet: Ke.value,
1051
- config: Lt.value,
1047
+ legendSet: je.value,
1048
+ config: At.value,
1052
1049
  onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
1053
- }, rt({
1054
- item: z(({ legend: t }) => [
1055
- Y("div", {
1050
+ }, it({
1051
+ item: C(({ legend: t }) => [
1052
+ G("div", {
1056
1053
  onClick: (l) => t.segregate(),
1057
- style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1058
- }, S(t.name), 13, el)
1054
+ style: X(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1055
+ }, $(t.name), 13, rl)
1059
1056
  ]),
1060
1057
  _: 2
1061
1058
  }, [
1062
1059
  a.$slots.pattern ? {
1063
1060
  name: "legend-pattern",
1064
- fn: z(({ legend: t, index: l }) => [
1065
- ae(ua, {
1061
+ fn: C(({ legend: t, index: l }) => [
1062
+ oe(ya, {
1066
1063
  shape: t.shape,
1067
1064
  radius: 30,
1068
1065
  stroke: "none",
@@ -1074,22 +1071,22 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
1074
1071
  } : void 0
1075
1072
  ]), 1032, ["legendSet", "config"])) : x(a.$slots, "legend", {
1076
1073
  key: 1,
1077
- legend: Ke.value
1074
+ legend: je.value
1078
1075
  }, void 0, !0)
1079
1076
  ], 512),
1080
1077
  a.$slots.source ? (o(), s("div", {
1081
1078
  key: 6,
1082
1079
  ref_key: "source",
1083
- ref: Se,
1080
+ ref: Ne,
1084
1081
  dir: "auto"
1085
1082
  }, [
1086
1083
  x(a.$slots, "source", {}, void 0, !0)
1087
- ], 512)) : v("", !0),
1088
- c.value.end - c.value.start < 200 ? (o(), q(la, {
1084
+ ], 512)) : h("", !0),
1085
+ c.value.end - c.value.start < 200 ? (o(), Q(y(mt), {
1089
1086
  key: 7,
1090
1087
  hideDetails: "",
1091
1088
  config: {
1092
- open: _.value.showTable,
1089
+ open: z.value.showTable,
1093
1090
  maxHeight: 1e4,
1094
1091
  body: {
1095
1092
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -1101,20 +1098,20 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
1101
1098
  }
1102
1099
  }
1103
1100
  }, {
1104
- content: z(() => [
1105
- ae(ra, {
1106
- colNames: ne.value.colNames,
1107
- head: ne.value.head,
1108
- body: ne.value.body,
1109
- config: ne.value.config,
1101
+ content: C(() => [
1102
+ oe(y(pt), {
1103
+ colNames: ve.value.colNames,
1104
+ head: ve.value.head,
1105
+ body: ve.value.body,
1106
+ config: ve.value.config,
1110
1107
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1111
- onClose: r[5] || (r[5] = (t) => _.value.showTable = !1)
1108
+ onClose: r[5] || (r[5] = (t) => z.value.showTable = !1)
1112
1109
  }, {
1113
- th: z(({ th: t }) => [
1114
- Y("div", { innerHTML: t }, null, 8, tl)
1110
+ th: C(({ th: t }) => [
1111
+ G("div", { innerHTML: t }, null, 8, ol)
1115
1112
  ]),
1116
- td: z(({ td: t }) => [
1117
- At(S(isNaN(Number(t)) ? t : b(X)({
1113
+ td: C(({ td: t }) => [
1114
+ Gt($(isNaN(Number(t)) ? t : y(J)({
1118
1115
  p: e.value.style.chart.bars.dataLabels.prefix,
1119
1116
  v: t,
1120
1117
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -1125,10 +1122,10 @@ const va = ["id"], da = ["xmlns", "viewBox"], ya = ["x", "y", "width", "height"]
1125
1122
  }, 8, ["colNames", "head", "body", "config", "title"])
1126
1123
  ]),
1127
1124
  _: 1
1128
- }, 8, ["config"])) : v("", !0)
1129
- ], 46, va));
1125
+ }, 8, ["config"])) : h("", !0)
1126
+ ], 46, ba));
1130
1127
  }
1131
- }, kl = /* @__PURE__ */ ha(al, [["__scopeId", "data-v-1c876490"]]);
1128
+ }, pl = /* @__PURE__ */ ga(sl, [["__scopeId", "data-v-ec3e4633"]]);
1132
1129
  export {
1133
- kl as default
1130
+ pl as default
1134
1131
  };