vue-data-ui 3.0.0-next.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -0,0 +1,1371 @@
1
+ import { defineAsyncComponent as te, useSlots as pa, computed as x, ref as b, onMounted as Ct, toRefs as xa, watch as De, shallowRef as _t, onBeforeUnmount as St, watchEffect as $t, nextTick as Tt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as ae, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as le, createVNode as xe, createSlots as Mt, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as ka } from "vue";
2
+ import { u as wa, c as At, t as La, a as za, p as ke, b as Ca, C as se, d as _a, o as Nt, f as It, g as Sa, e as $a, an as we, ac as Rt, D as Ot, X as Ta, l as Ma, a9 as Le, F as Pt, k as ze, i as Q, I as Aa, a0 as Na, y as Vt, v as Ia, w as Ra, z as Oa } from "./index-BtNwOUja.js";
3
+ import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Va } from "./usePrinter-DUNjpQNe.js";
5
+ import { u as Ea, B as Da } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Et } from "./useNestedProp-f2H3m6Yj.js";
7
+ import { u as Fa } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { u as Ha } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Ua } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Ba } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Wa from "./img-DrR839Ot.js";
12
+ import Ya from "./Title-BGu6gEd2.js";
13
+ import { _ as Xa } from "./Shape-BRzOzubn.js";
14
+ import Ga from "./Legend-BUk0WvWJ.js";
15
+ import { S as Ja } from "./Slicer-MID8pgT3.js";
16
+ import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"], ja = { key: 1 }, el = ["id"], tl = ["stop-color"], al = ["stop-color"], ll = ["stop-color"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = { key: 0 }, hl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["transform", "font-size", "fill", "font-weight"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], _l = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Sl = { key: 0 }, $l = { key: 1 }, Tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ml = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Al = { key: 0 }, Nl = { key: 1 }, Il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ol = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Pl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Vl = {
18
+ key: 3,
19
+ class: "vue-data-ui-watermark"
20
+ }, El = ["onClick"], Dl = ["innerHTML"], Fl = {
21
+ __name: "vue-ui-stackbar",
22
+ props: {
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ },
29
+ dataset: {
30
+ type: Array,
31
+ default() {
32
+ return [];
33
+ }
34
+ }
35
+ },
36
+ emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
+ setup(Ce, { expose: Dt, emit: Ft }) {
38
+ const Ht = te(() => import("./Tooltip-Bh2zYSoM.js")), Ut = te(() => import("./vue-ui-accordion-BKUrAowe.js")), Bt = te(() => import("./DataTable-BSSXpM7w.js")), Wt = te(() => import("./PenAndPaper-D3zudcNI.js")), Yt = te(() => import("./UserOptions-Ck8fz9f4.js")), Xt = te(() => import("./PackageVersion-CJ6Vd7V5.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = Ce, _e = Ft, Se = x({
39
+ get() {
40
+ return !!f.dataset && f.dataset.length;
41
+ },
42
+ set(a) {
43
+ return a;
44
+ }
45
+ }), P = b(null), V = b(At()), $e = b(!1), Te = b(null), Me = b(""), S = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ne = b(!1), ue = b(null), B = b(!1), Je = b(0), qt = b(0), Zt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), Kt = b(null), Ze = b(null);
46
+ Ct(() => {
47
+ Pe();
48
+ });
49
+ const e = b(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Ea({
50
+ ...xa(f),
51
+ FINAL_CONFIG: e,
52
+ prepareConfig: Re,
53
+ callback: () => {
54
+ Promise.resolve().then(async () => {
55
+ await Ve();
56
+ });
57
+ },
58
+ skeletonDataset: [
59
+ {
60
+ name: "",
61
+ series: [2, 3, 5, 8, 13, 21],
62
+ color: "#BABABA"
63
+ },
64
+ {
65
+ name: "",
66
+ series: [1, 2, 3, 5, 8, 13],
67
+ color: "#CACACA"
68
+ }
69
+ ],
70
+ skeletonConfig: La({
71
+ defaultConfig: e.value,
72
+ userConfig: {
73
+ userOptions: { show: !1 },
74
+ useCssAnimation: !1,
75
+ table: { show: !1 },
76
+ tooltip: { show: !1 },
77
+ style: {
78
+ chart: {
79
+ backgroundColor: "#99999930",
80
+ bars: {
81
+ totalValues: { show: !1 },
82
+ dataLabels: { show: !1 }
83
+ },
84
+ grid: {
85
+ scale: {
86
+ scaleMin: 0,
87
+ scaleMax: 40
88
+ },
89
+ x: {
90
+ axisColor: "#6A6A6A",
91
+ linesColor: "#6A6A6A",
92
+ axisName: { show: !1 },
93
+ timeLabels: { show: !1 }
94
+ },
95
+ y: {
96
+ axisColor: "#6A6A6A",
97
+ linesColor: "#6A6A6A",
98
+ axisName: { show: !1 },
99
+ axisLabels: { show: !1 }
100
+ }
101
+ },
102
+ legend: {
103
+ backgroundColor: "transparent"
104
+ },
105
+ padding: {
106
+ left: 24,
107
+ right: 24,
108
+ bottom: 12
109
+ },
110
+ zoom: {
111
+ show: !1,
112
+ startIndex: null,
113
+ endIndex: null
114
+ }
115
+ }
116
+ }
117
+ }
118
+ })
119
+ }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ha({ config: e.value }), { svgRef: je } = Ua({ config: e.value.style.chart.title });
120
+ function Re() {
121
+ const a = Et({
122
+ userConfig: f.config,
123
+ defaultConfig: Gt
124
+ });
125
+ let l = {};
126
+ return a.theme ? l = {
127
+ ...Et({
128
+ userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
129
+ defaultConfig: a
130
+ }),
131
+ customPalette: za[a.theme] || ke
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
+ }
134
+ const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
+ De(() => f.config, (a) => {
136
+ re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, qt.value += 1, Zt.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
+ }, { deep: !0 }), De(() => f.dataset, (a) => {
138
+ Array.isArray(a) && a.length > 0 && (he.value = !1), nt();
139
+ }, { deep: !0 });
140
+ const z = b({
141
+ dataLabels: {
142
+ show: e.value.style.chart.bars.dataLabels.show
143
+ },
144
+ showTable: e.value.table.show,
145
+ showTooltip: e.value.style.chart.tooltip.show
146
+ });
147
+ De(e, () => {
148
+ z.value = {
149
+ dataLabels: {
150
+ show: e.value.style.chart.bars.dataLabels.show
151
+ },
152
+ showTable: e.value.table.show,
153
+ showTooltip: e.value.style.chart.tooltip.show
154
+ };
155
+ }, { immediate: !0 });
156
+ const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Va({
157
+ elementId: `stackbar_${V.value}`,
158
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
159
+ options: e.value.userOptions.print
160
+ }), j = b({
161
+ width: e.value.style.chart.width,
162
+ height: e.value.style.chart.height,
163
+ paddingRatio: {
164
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
165
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
166
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
167
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
168
+ }
169
+ }), Qt = x(() => _a(e.value.customPalette)), E = _t(null), ee = _t(null), ot = b(null);
170
+ Ct(() => {
171
+ Pe();
172
+ });
173
+ const Oe = x(() => !!e.value.debug);
174
+ function Pe() {
175
+ if (Nt(f.dataset) ? (It({
176
+ componentName: "VueUiStackbar",
177
+ type: "dataset",
178
+ debug: Oe.value
179
+ }), he.value = !0) : f.dataset.forEach((a, l) => {
180
+ Sa({
181
+ datasetObject: a,
182
+ requiredAttributes: ["name", "series"]
183
+ }).forEach((t) => {
184
+ Se.value = !1, It({
185
+ componentName: "VueUiStackbar",
186
+ type: "datasetSerieAttribute",
187
+ property: t,
188
+ index: l,
189
+ debug: Oe.value
190
+ }), he.value = !0;
191
+ });
192
+ }), Nt(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
193
+ B.value = !0;
194
+ }, 10), e.value.responsive) {
195
+ const a = He(() => {
196
+ B.value = !1;
197
+ const { width: l, height: t } = Pa({
198
+ chart: P.value,
199
+ title: e.value.style.chart.title.text ? Be.value : null,
200
+ legend: e.value.style.chart.legend.show ? We.value : null,
201
+ slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
202
+ source: Xe.value
203
+ });
204
+ requestAnimationFrame(() => {
205
+ j.value.width = l, j.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
206
+ B.value = !0;
207
+ }, 10);
208
+ });
209
+ });
210
+ E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(a), ee.value = P.value.parentNode, E.value.observe(ee.value);
211
+ }
212
+ Ve();
213
+ }
214
+ St(() => {
215
+ E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
216
+ });
217
+ function jt() {
218
+ let a = 0;
219
+ e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((s, c) => {
220
+ const u = c.getComputedTextLength();
221
+ return u > s ? u : s;
222
+ }, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((s, c) => {
223
+ const u = c.getComputedTextLength();
224
+ return u > s ? u : s;
225
+ }, 0));
226
+ const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
+ return a + l + (l ? 24 : 0);
228
+ }
229
+ const ve = b(0), de = b(0), ea = He((a) => {
230
+ ve.value = a;
231
+ }, 100);
232
+ $t((a) => {
233
+ const l = e.value.orientation === "vertical" ? Y.value : W.value;
234
+ if (!l) return;
235
+ const t = new ResizeObserver((s) => {
236
+ ea(s[0].contentRect.height);
237
+ });
238
+ t.observe(l), a(() => t.disconnect());
239
+ });
240
+ const ta = He((a) => {
241
+ de.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
+ }, 100);
243
+ $t((a) => {
244
+ if (e.value.orientation === "vertical") return;
245
+ const l = Ze.value;
246
+ if (!l) return;
247
+ const t = new ResizeObserver((s) => {
248
+ ta(s[0].contentRect.width);
249
+ });
250
+ t.observe(l), a(() => t.disconnect());
251
+ }), St(() => {
252
+ ve.value = 0, de.value = 0;
253
+ });
254
+ const it = x(() => {
255
+ let a = 0;
256
+ Ae.value && (a = Ae.value.getBBox().height);
257
+ let l = 0;
258
+ return e.value.orientation === "vertical" && Y.value && (l = ve.value), e.value.orientation === "horizontal" && W.value && (l = ve.value), a + l;
259
+ }), n = x(() => {
260
+ const { height: a, width: l } = j.value, { right: t } = j.value.paddingRatio;
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 = jt());
263
+ const u = e.value.style.chart.padding.top + s, _ = l - l * t - de.value, X = a - e.value.style.chart.padding.bottom - it.value - s, G = e.value.style.chart.padding.left + c, J = l - G - l * t - de.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
264
+ return {
265
+ chartHeight: a,
266
+ chartWidth: l,
267
+ top: u,
268
+ right: _,
269
+ bottom: X,
270
+ left: G,
271
+ width: Math.max(0, J),
272
+ height: Math.max(0, R)
273
+ };
274
+ }), D = x(() => ce.value.map((a, l) => {
275
+ const t = $a(a.color) || Qt.value[l] || ke[l] || ke[l % ke.length];
276
+ return {
277
+ ...a,
278
+ // In distributed mode, all values are converted to positive
279
+ series: JSON.parse(JSON.stringify(a.series)).map((s) => e.value.style.chart.bars.distributed ? Math.abs(s) : s),
280
+ // Store signs to manage display of neg values in distributed mode
281
+ signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
282
+ absoluteIndex: l,
283
+ id: At(),
284
+ color: t
285
+ };
286
+ })), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = b({
287
+ start: 0,
288
+ end: Math.max(...ce.value.map((a) => a.series.length))
289
+ });
290
+ function nt() {
291
+ Ve();
292
+ }
293
+ async function Ve() {
294
+ await Tt(), await Tt();
295
+ const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...ce.value.map((c) => c.series.length));
296
+ (a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(aa(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
297
+ }
298
+ function aa(a) {
299
+ const l = Math.max(...ce.value.map((t) => t.series.length));
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
+ }
302
+ const d = x(() => {
303
+ let 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
+ }), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
306
+ ...a,
307
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
308
+ }))).slice(h.value.start, h.value.end)), ye = x(() => {
309
+ const a = D.value.filter((l) => !S.value.includes(l.id));
310
+ return {
311
+ positive: we(a.map((l) => ({
312
+ ...l,
313
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
314
+ }))),
315
+ negative: we(a.map((l) => ({
316
+ ...l,
317
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
318
+ })))
319
+ };
320
+ }), I = x(() => {
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(...ye.value.positive), l = Math.min(...ye.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) ? Rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
+ return s.ticks.map((c) => ({
323
+ zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
324
+ y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
325
+ x: n.value.left - 8,
326
+ horizontal_zero: n.value.left + n.value.width * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
327
+ horizontal_x: n.value.left + n.value.width * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
328
+ horizontal_y: n.value.bottom - 8,
329
+ value: c
330
+ }));
331
+ }), $ = x(() => Fa({
332
+ values: e.value.style.chart.grid.x.timeLabels.values,
333
+ maxDatapoints: F.value,
334
+ formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
335
+ start: h.value.start,
336
+ end: h.value.end
337
+ })), w = x(() => {
338
+ if (!Se.value && !re.value) return [];
339
+ let a = Array(F.value).fill(0), l = Array(F.value).fill(0), t = Array(F.value).fill(0), s = Array(F.value).fill(0);
340
+ const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, X = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(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) : Ot(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: G, max: J } = X, R = J + (G >= 0 ? 0 : Math.abs(G)) || 1, T = n.value.height, pe = n.value.width, Lt = I.value[0] ? I.value[0].zero : n.value.bottom, zt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
341
+ return D.value.filter((ie) => !S.value.includes(ie.id)).map((ie) => {
342
+ const O = ie.series.slice(h.value.start, h.value.end), ha = ie.signedSeries.slice(h.value.start, h.value.end), va = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), da = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ya = O.map((p, k) => {
343
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
344
+ let q, N;
345
+ return p > 0 ? (N = T * A, q = Lt - N - a[k], a[k] += N) : (N = T * A, q = Lt + t[k], t[k] += Math.abs(N)), q;
346
+ }), ga = O.map((p, k) => {
347
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
348
+ let q, N;
349
+ return p > 0 ? (N = pe * A, q = zt + l[k], l[k] += N) : (N = pe * A, q = zt - Math.abs(N) - s[k], s[k] += Math.abs(N)), q;
350
+ }), ba = O.map((p, k) => {
351
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
352
+ return p > 0 ? T * A : T * Math.abs(A);
353
+ }), fa = O.map((p, k) => {
354
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
355
+ return p > 0 ? pe * A : pe * Math.abs(A);
356
+ }), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
357
+ return {
358
+ ...ie,
359
+ proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ma),
360
+ series: O,
361
+ signedSeries: ha,
362
+ x: va,
363
+ y: ya,
364
+ height: ba,
365
+ horizontal_width: fa,
366
+ horizontal_y: da,
367
+ horizontal_x: ga
368
+ };
369
+ });
370
+ }), ut = x(() => la.value.map((a, l) => ({
371
+ value: a,
372
+ sign: a >= 0 ? 1 : -1
373
+ })));
374
+ function ge(a, l, t, s, c) {
375
+ const u = c === -1 && a >= 0 ? -a : a;
376
+ return ze(
377
+ e.value.style.chart.bars.dataLabels.formatter,
378
+ u,
379
+ Q({
380
+ p: e.value.style.chart.bars.dataLabels.prefix,
381
+ v: u,
382
+ s: e.value.style.chart.bars.dataLabels.suffix,
383
+ r: e.value.style.chart.bars.dataLabels.rounding
384
+ }),
385
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
386
+ );
387
+ }
388
+ function ct(a, l, t, s) {
389
+ return ze(
390
+ e.value.style.chart.bars.dataLabels.formatter,
391
+ a,
392
+ Q({
393
+ v: isNaN(a) ? 0 : a,
394
+ s: "%",
395
+ r: e.value.style.chart.bars.dataLabels.rounding
396
+ }),
397
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
398
+ );
399
+ }
400
+ function ht(a) {
401
+ const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
402
+ name: t.name,
403
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
404
+ proportion: t.proportions[a] || null,
405
+ color: t.color,
406
+ id: t.id
407
+ }));
408
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), _e("selectDatapoint", { datapoint: l, period: $.value[a] });
409
+ }
410
+ function vt(a) {
411
+ return JSON.parse(JSON.stringify(w.value)).map((l) => ({
412
+ name: l.name,
413
+ absoluteIndex: l.absoluteIndex,
414
+ value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
415
+ proportion: l.proportions[a] || null,
416
+ color: l.color,
417
+ id: l.id
418
+ }));
419
+ }
420
+ function dt(a) {
421
+ if (e.value.events.datapointLeave) {
422
+ const l = vt(a);
423
+ e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
424
+ }
425
+ $e.value = null, ue.value = null;
426
+ }
427
+ function yt(a) {
428
+ ue.value = a, $e.value = !0;
429
+ const l = e.value.style.chart.tooltip.customFormat, t = vt(a);
430
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
431
+ datapoint: t,
432
+ seriesIndex: a,
433
+ config: e.value,
434
+ series: w.value
435
+ };
436
+ const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
437
+ if (Vt(l) && Oa(() => l({
438
+ seriesIndex: a,
439
+ datapoint: t,
440
+ series: w.value,
441
+ config: e.value
442
+ })))
443
+ Me.value = l({
444
+ seriesIndex: a,
445
+ datapoint: t,
446
+ series: w.value,
447
+ config: e.value
448
+ });
449
+ else {
450
+ const {
451
+ showValue: c,
452
+ showPercentage: u,
453
+ borderColor: _,
454
+ roundingValue: X,
455
+ roundingPercentage: G
456
+ } = e.value.style.chart.tooltip;
457
+ let J = "";
458
+ $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
459
+ const R = [
460
+ c && u ? "(" : "",
461
+ c && u ? ")" : ""
462
+ ];
463
+ t.reverse().forEach((T) => {
464
+ J += `
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_${T.id})` : T.color}"/>${Jt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
467
+ ${T.name}${c || u ? ":" : ""} ${c ? Q({
468
+ p: e.value.style.chart.bars.dataLabels.prefix,
469
+ v: T.value,
470
+ s: e.value.style.chart.bars.dataLabels.suffix,
471
+ r: X
472
+ }) : ""} ${R[0]}${u ? Q({
473
+ v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
474
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
475
+ s: "%",
476
+ r: G
477
+ }) : ""}${R[1]}
478
+ </div>
479
+ `;
480
+ }), Me.value = `<div>${J}</div>`;
481
+ }
482
+ }
483
+ const sa = x(() => j.value.width), ra = x(() => j.value.height);
484
+ Ba({
485
+ timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
486
+ timeLabels: $,
487
+ slicer: h,
488
+ configRef: e,
489
+ rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
490
+ autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
491
+ isAutoSize: !1,
492
+ width: sa,
493
+ height: ra,
494
+ rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
495
+ });
496
+ function gt(a) {
497
+ ne.value = a, Ue.value += 1;
498
+ }
499
+ function bt() {
500
+ z.value.showTable = !z.value.showTable;
501
+ }
502
+ function ft() {
503
+ z.value.dataLabels.show = !z.value.dataLabels.show;
504
+ }
505
+ function mt() {
506
+ z.value.showTooltip = !z.value.showTooltip;
507
+ }
508
+ function oa() {
509
+ return w.value;
510
+ }
511
+ const pt = x(() => {
512
+ if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
513
+ const a = w.value.map(({ name: t, color: s }) => ({
514
+ label: t,
515
+ color: s
516
+ })), l = [];
517
+ return $.value.forEach((t) => {
518
+ const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
519
+ D.value.forEach((c) => {
520
+ s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
521
+ }), l.push(s);
522
+ }), { head: a, body: l };
523
+ });
524
+ function xt(a = null) {
525
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...pt.value.head.map((_) => _.label)], s = pt.value.body, c = l.concat([t]).concat(s), u = Ia(c);
526
+ a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
527
+ }
528
+ const be = x(() => {
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
+ let l = [];
531
+ for (let c = 0; c < F.value; c += 1) {
532
+ const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, X) => _ + X, 0);
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
+ }
535
+ const t = {
536
+ th: {
537
+ backgroundColor: e.value.table.th.backgroundColor,
538
+ color: e.value.table.th.color,
539
+ outline: e.value.table.th.outline
540
+ },
541
+ td: {
542
+ backgroundColor: e.value.table.td.backgroundColor,
543
+ color: e.value.table.td.color,
544
+ outline: e.value.table.td.outline
545
+ },
546
+ breakpoint: e.value.table.responsiveBreakpoint
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, h.value.end - h.value.start), config: t, colNames: s };
549
+ });
550
+ function ia(a, l) {
551
+ if (_e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
552
+ S.value = S.value.filter((t) => t !== l.id);
553
+ else {
554
+ if (S.value.length === D.value.length - 1) return;
555
+ S.value.push(l.id);
556
+ }
557
+ }
558
+ const kt = x(() => D.value.map((a, l) => ({
559
+ ...a,
560
+ shape: "square"
561
+ })).map((a) => ({
562
+ ...a,
563
+ opacity: S.value.includes(a.id) ? 0.5 : 1,
564
+ segregate: () => ia(a.absoluteIndex, a),
565
+ isSegregated: S.value.includes(a.id)
566
+ }))), na = x(() => ({
567
+ cy: "stackbar-legend",
568
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
569
+ color: e.value.style.chart.legend.color,
570
+ fontSize: e.value.style.chart.legend.fontSize,
571
+ paddingBottom: 12,
572
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
573
+ })), fe = b(!1);
574
+ function Ee() {
575
+ fe.value = !fe.value;
576
+ }
577
+ function me(a, l) {
578
+ const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
579
+ name: s.name,
580
+ value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
581
+ proportion: s.proportions[l] || null,
582
+ color: s.color,
583
+ id: s.id
584
+ }));
585
+ _e("selectTimeLabel", {
586
+ datapoint: t,
587
+ absoluteIndex: a.absoluteIndex,
588
+ label: a.text
589
+ });
590
+ }
591
+ const ua = x(() => Math.max(...w.value.flatMap((a) => a.series)));
592
+ function wt(a, l) {
593
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : tt.value ? (et.value && Oe.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 > ua.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
594
+ }
595
+ async function ca({ scale: a = 2 } = {}) {
596
+ if (!P.value) return;
597
+ const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Wa({ domElement: P.value, base64: !0, img: !0, scale: a });
598
+ return {
599
+ imageUri: c,
600
+ base64: u,
601
+ title: e.value.style.chart.title.text,
602
+ width: l,
603
+ height: t,
604
+ aspectRatio: s
605
+ };
606
+ }
607
+ return Dt({
608
+ getData: oa,
609
+ getImage: ca,
610
+ generatePdf: st,
611
+ generateCsv: xt,
612
+ generateImage: rt,
613
+ toggleTable: bt,
614
+ toggleLabels: ft,
615
+ toggleTooltip: mt,
616
+ toggleAnnotator: Ee,
617
+ toggleFullscreen: gt
618
+ }), (a, l) => (r(), o("div", {
619
+ id: `stackbar_${V.value}`,
620
+ ref_key: "stackbarChart",
621
+ ref: P,
622
+ class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
623
+ style: Z(`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%" : ""}`),
624
+ onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
625
+ onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
626
+ }, [
627
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
628
+ key: 0,
629
+ svgRef: v(je),
630
+ backgroundColor: e.value.style.chart.backgroundColor,
631
+ color: e.value.style.chart.color,
632
+ active: fe.value,
633
+ onClose: Ee
634
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
635
+ L(a.$slots, "userConfig", {}, void 0, !0),
636
+ e.value.style.chart.title.text ? (r(), o("div", {
637
+ key: 1,
638
+ ref_key: "chartTitle",
639
+ ref: Be,
640
+ style: "width:100%;background:transparent;padding-bottom:24px"
641
+ }, [
642
+ (r(), K(Ya, {
643
+ key: `title_${Je.value}`,
644
+ config: {
645
+ title: {
646
+ cy: "stackbar-title",
647
+ ...e.value.style.chart.title
648
+ },
649
+ subtitle: {
650
+ cy: "stackbar-subtitle",
651
+ ...e.value.style.chart.title.subtitle
652
+ }
653
+ }
654
+ }, null, 8, ["config"]))
655
+ ], 512)) : y("", !0),
656
+ e.value.userOptions.show && Se.value && (v(Qe) || v(Ie)) ? (r(), K(v(Yt), {
657
+ ref: "details",
658
+ key: `user_option_${Ue.value}`,
659
+ backgroundColor: e.value.style.chart.backgroundColor,
660
+ color: e.value.style.chart.color,
661
+ isPrinting: v(at),
662
+ isImaging: v(lt),
663
+ uid: V.value,
664
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
665
+ hasPdf: e.value.userOptions.buttons.pdf,
666
+ hasImg: e.value.userOptions.buttons.img,
667
+ hasXls: e.value.userOptions.buttons.csv,
668
+ hasTable: e.value.userOptions.buttons.table,
669
+ hasLabel: e.value.userOptions.buttons.labels,
670
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
671
+ isFullscreen: ne.value,
672
+ chartElement: P.value,
673
+ position: e.value.userOptions.position,
674
+ isTooltip: z.value.showTooltip,
675
+ titles: { ...e.value.userOptions.buttonTitles },
676
+ hasAnnotator: e.value.userOptions.buttons.annotator,
677
+ isAnnotation: fe.value,
678
+ callbacks: e.value.userOptions.callbacks,
679
+ printScale: e.value.userOptions.print.scale,
680
+ onToggleFullscreen: gt,
681
+ onGeneratePdf: v(st),
682
+ onGenerateCsv: xt,
683
+ onGenerateImage: v(rt),
684
+ onToggleTable: bt,
685
+ onToggleLabels: ft,
686
+ onToggleTooltip: mt,
687
+ onToggleAnnotator: Ee,
688
+ style: Z({
689
+ visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
690
+ })
691
+ }, Mt({ _: 2 }, [
692
+ a.$slots.menuIcon ? {
693
+ name: "menuIcon",
694
+ fn: C(({ isOpen: t, color: s }) => [
695
+ L(a.$slots, "menuIcon", H(U({ isOpen: t, color: s })), void 0, !0)
696
+ ]),
697
+ key: "0"
698
+ } : void 0,
699
+ a.$slots.optionTooltip ? {
700
+ name: "optionTooltip",
701
+ fn: C(() => [
702
+ L(a.$slots, "optionTooltip", {}, void 0, !0)
703
+ ]),
704
+ key: "1"
705
+ } : void 0,
706
+ a.$slots.optionPdf ? {
707
+ name: "optionPdf",
708
+ fn: C(() => [
709
+ L(a.$slots, "optionPdf", {}, void 0, !0)
710
+ ]),
711
+ key: "2"
712
+ } : void 0,
713
+ a.$slots.optionCsv ? {
714
+ name: "optionCsv",
715
+ fn: C(() => [
716
+ L(a.$slots, "optionCsv", {}, void 0, !0)
717
+ ]),
718
+ key: "3"
719
+ } : void 0,
720
+ a.$slots.optionImg ? {
721
+ name: "optionImg",
722
+ fn: C(() => [
723
+ L(a.$slots, "optionImg", {}, void 0, !0)
724
+ ]),
725
+ key: "4"
726
+ } : void 0,
727
+ a.$slots.optionTable ? {
728
+ name: "optionTable",
729
+ fn: C(() => [
730
+ L(a.$slots, "optionTable", {}, void 0, !0)
731
+ ]),
732
+ key: "5"
733
+ } : void 0,
734
+ a.$slots.optionLabels ? {
735
+ name: "optionLabels",
736
+ fn: C(() => [
737
+ L(a.$slots, "optionLabels", {}, void 0, !0)
738
+ ]),
739
+ key: "6"
740
+ } : void 0,
741
+ a.$slots.optionFullscreen ? {
742
+ name: "optionFullscreen",
743
+ fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
744
+ L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
745
+ ]),
746
+ key: "7"
747
+ } : void 0,
748
+ a.$slots.optionAnnotator ? {
749
+ name: "optionAnnotator",
750
+ fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
751
+ L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
752
+ ]),
753
+ key: "8"
754
+ } : void 0
755
+ ]), 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"])) : y("", !0),
756
+ (r(), o("svg", {
757
+ ref_key: "svgRef",
758
+ ref: je,
759
+ xmlns: v(Ta),
760
+ viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
761
+ class: ae({ "vue-data-ui-loading": v(re) }),
762
+ style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
763
+ }, [
764
+ xe(v(Xt)),
765
+ a.$slots["chart-background"] ? (r(), o("foreignObject", {
766
+ key: 0,
767
+ x: n.value.left,
768
+ y: n.value.top,
769
+ width: n.value.width <= 0 ? 10 : n.value.width,
770
+ height: n.value.height <= 0 ? 10 : n.value.height,
771
+ style: {
772
+ pointerEvents: "none"
773
+ }
774
+ }, [
775
+ L(a.$slots, "chart-background", {}, void 0, !0)
776
+ ], 8, Qa)) : y("", !0),
777
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", ja, [
778
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("linearGradient", {
779
+ id: `gradient_${t.id}`,
780
+ x1: "0%",
781
+ y1: "0%",
782
+ x2: "0%",
783
+ y2: "100%"
784
+ }, [
785
+ le("stop", {
786
+ offset: "0%",
787
+ "stop-color": t.color
788
+ }, null, 8, tl),
789
+ le("stop", {
790
+ offset: "61.8%",
791
+ "stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
792
+ }, null, 8, al),
793
+ le("stop", {
794
+ offset: "100%",
795
+ "stop-color": t.color
796
+ }, null, 8, ll)
797
+ ], 8, el))), 256))
798
+ ])) : y("", !0),
799
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, s) => (r(), o("line", {
800
+ x1: n.value.left,
801
+ x2: n.value.right,
802
+ y1: t.y,
803
+ y2: t.y,
804
+ stroke: e.value.style.chart.grid.x.linesColor,
805
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
806
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
807
+ "stroke-linecap": "round"
808
+ }, null, 8, sl))), 256)) : y("", !0),
809
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
810
+ x1: n.value.left,
811
+ x2: n.value.right,
812
+ y1: n.value.top + d.value * s,
813
+ y2: n.value.top + d.value * s,
814
+ stroke: e.value.style.chart.grid.x.linesColor,
815
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
816
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
817
+ "stroke-linecap": "round"
818
+ }, null, 8, rl))), 256)) : y("", !0),
819
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
820
+ x1: n.value.left + d.value * s,
821
+ x2: n.value.left + d.value * s,
822
+ y1: n.value.top,
823
+ y2: n.value.bottom,
824
+ stroke: e.value.style.chart.grid.y.linesColor,
825
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
826
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
827
+ "stroke-linecap": "round"
828
+ }, null, 8, ol))), 256)) : y("", !0),
829
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, s) => (r(), o("line", {
830
+ x1: t.horizontal_x,
831
+ x2: t.horizontal_x,
832
+ y1: n.value.top,
833
+ y2: n.value.bottom,
834
+ stroke: e.value.style.chart.grid.y.linesColor,
835
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
836
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
837
+ "stroke-linecap": "round"
838
+ }, null, 8, il))), 256)) : y("", !0),
839
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
840
+ a.$slots.pattern ? (r(), o("defs", nl, [
841
+ L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
842
+ ])) : y("", !0),
843
+ e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
844
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
845
+ x: c,
846
+ y: t.y[u] < 0 ? 0 : t.y[u],
847
+ height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
848
+ 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,
849
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
850
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
851
+ stroke: e.value.style.chart.backgroundColor,
852
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
853
+ "stroke-linecap": "round",
854
+ "stroke-linejoin": "round",
855
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
856
+ }, null, 10, ul))), 256)),
857
+ a.$slots.pattern ? (r(), o("g", cl, [
858
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
859
+ x: c,
860
+ y: t.y[u] < 0 ? 0 : t.y[u],
861
+ height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
862
+ 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,
863
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
864
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
865
+ stroke: e.value.style.chart.backgroundColor,
866
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
867
+ "stroke-linecap": "round",
868
+ "stroke-linejoin": "round",
869
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
870
+ }, null, 10, hl))), 256))
871
+ ])) : y("", !0)
872
+ ], 64)) : (r(), o(g, { key: 2 }, [
873
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
874
+ x: v(Le)(c, n.value.left),
875
+ y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
876
+ width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
877
+ 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,
878
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
879
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
880
+ stroke: e.value.style.chart.backgroundColor,
881
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
882
+ "stroke-linecap": "round",
883
+ "stroke-linejoin": "round",
884
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
885
+ }, null, 10, vl))), 256)),
886
+ a.$slots.pattern ? (r(), o("g", dl, [
887
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
888
+ x: v(Le)(c, n.value.left),
889
+ y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
890
+ width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
891
+ 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,
892
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
893
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
894
+ stroke: e.value.style.chart.backgroundColor,
895
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
896
+ "stroke-linecap": "round",
897
+ "stroke-linejoin": "round",
898
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
899
+ }, null, 10, yl))), 256))
900
+ ])) : y("", !0)
901
+ ], 64))
902
+ ]))), 256)),
903
+ e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
904
+ key: 6,
905
+ x1: n.value.left,
906
+ x2: n.value.right,
907
+ y1: n.value.bottom,
908
+ y2: n.value.bottom,
909
+ stroke: e.value.style.chart.grid.x.axisColor,
910
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
911
+ "stroke-linecap": "round",
912
+ "stroke-linejoin": "round"
913
+ }, null, 8, gl)) : y("", !0),
914
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
915
+ key: 7,
916
+ x1: n.value.left,
917
+ x2: n.value.left,
918
+ y1: n.value.top,
919
+ y2: n.value.bottom,
920
+ stroke: e.value.style.chart.grid.y.axisColor,
921
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
922
+ "stroke-linecap": "round",
923
+ "stroke-linejoin": "round"
924
+ }, null, 8, bl)) : y("", !0),
925
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
926
+ key: 8,
927
+ ref_key: "xAxisLabel",
928
+ ref: Ae,
929
+ x: n.value.left + n.value.width / 2,
930
+ y: n.value.chartHeight - 3,
931
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
932
+ fill: e.value.style.chart.grid.x.axisName.color,
933
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
934
+ "text-anchor": "middle"
935
+ }, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
936
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
937
+ key: 9,
938
+ ref_key: "yAxisLabel",
939
+ ref: Ne,
940
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
941
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
942
+ fill: e.value.style.chart.grid.y.axisName.color,
943
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
944
+ "text-anchor": "middle"
945
+ }, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
946
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
947
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
948
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
949
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
950
+ key: 0,
951
+ x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
952
+ y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
953
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
954
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
955
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
956
+ "text-anchor": "middle"
957
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
958
+ ], 64))), 256))
959
+ ]))), 256)),
960
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
961
+ key: 0,
962
+ ref_key: "sumTop",
963
+ ref: Kt
964
+ }, [
965
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
966
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
967
+ key: 0,
968
+ x: n.value.left + d.value * s + d.value / 2,
969
+ y: e.value.style.chart.bars.totalValues.fontSize,
970
+ "text-anchor": "middle",
971
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
972
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
973
+ fill: e.value.style.chart.bars.totalValues.color
974
+ }, M(ge(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
975
+ ], 64))), 256))
976
+ ], 512)) : y("", !0)
977
+ ], 64)) : y("", !0),
978
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
979
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
980
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
981
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
982
+ key: 0,
983
+ x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
984
+ y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
985
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
986
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
987
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
988
+ "text-anchor": "middle"
989
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
990
+ ], 64))), 256))
991
+ ]))), 256)),
992
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
993
+ key: 0,
994
+ ref_key: "sumRight",
995
+ ref: Ze
996
+ }, [
997
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
998
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
999
+ key: 0,
1000
+ x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
1001
+ y: n.value.top + d.value * s + d.value / 2,
1002
+ "text-anchor": "start",
1003
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
1004
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1005
+ fill: e.value.style.chart.bars.totalValues.color
1006
+ }, M(ge(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
1007
+ ], 64))), 256))
1008
+ ], 512)) : y("", !0)
1009
+ ], 64)) : y("", !0),
1010
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
1011
+ key: 12,
1012
+ ref_key: "scaleLabels",
1013
+ ref: W
1014
+ }, [
1015
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1016
+ x1: n.value.left,
1017
+ x2: n.value.left - 6,
1018
+ y1: t.y,
1019
+ y2: t.y,
1020
+ stroke: e.value.style.chart.grid.x.axisColor,
1021
+ "stroke-width": 1
1022
+ }, null, 8, Ll))), 256)),
1023
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1024
+ x: t.x,
1025
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1026
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1027
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1028
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1029
+ "text-anchor": "end"
1030
+ }, M(v(ze)(
1031
+ e.value.style.chart.grid.y.axisLabels.formatter,
1032
+ t.value,
1033
+ v(Q)({
1034
+ p: e.value.style.chart.bars.dataLabels.prefix,
1035
+ v: t.value,
1036
+ s: e.value.style.chart.bars.dataLabels.suffix,
1037
+ r: e.value.style.chart.grid.y.axisLabels.rounding
1038
+ }),
1039
+ { datapoint: t }
1040
+ )), 9, zl))), 256))
1041
+ ], 512)) : y("", !0),
1042
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1043
+ key: 13,
1044
+ ref_key: "scaleLabels",
1045
+ ref: W
1046
+ }, [
1047
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1048
+ x1: t.horizontal_x,
1049
+ x2: t.horizontal_x,
1050
+ y1: n.value.bottom,
1051
+ y2: n.value.bottom + 6,
1052
+ stroke: e.value.style.chart.grid.x.axisColor,
1053
+ "stroke-width": 1,
1054
+ "stroke-linecap": "round"
1055
+ }, null, 8, Cl))), 256)),
1056
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1057
+ class: "vue-data-ui-time-label",
1058
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1059
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1060
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1061
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1062
+ 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})`
1063
+ }, M(v(ze)(
1064
+ e.value.style.chart.grid.y.axisLabels.formatter,
1065
+ t.value,
1066
+ v(Q)({
1067
+ p: e.value.style.chart.bars.dataLabels.prefix,
1068
+ v: t.value,
1069
+ s: e.value.style.chart.bars.dataLabels.suffix,
1070
+ r: e.value.style.chart.grid.y.axisLabels.rounding
1071
+ }),
1072
+ { datapoint: t }
1073
+ )), 9, _l))), 256))
1074
+ ], 512)) : y("", !0),
1075
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1076
+ key: 14,
1077
+ ref_key: "timeLabelsEls",
1078
+ ref: Y
1079
+ }, [
1080
+ a.$slots["time-label"] ? (r(), o("g", Sl, [
1081
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1082
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1083
+ x: n.value.left + d.value * s + d.value / 2,
1084
+ y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1085
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1086
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1087
+ transform: `translate(${n.value.left + d.value * s + d.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})`,
1088
+ absoluteIndex: t.absoluteIndex,
1089
+ content: t.text,
1090
+ textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1091
+ show: !0
1092
+ }), void 0, !0)
1093
+ ]))), 256))
1094
+ ])) : (r(), o("g", $l, [
1095
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1096
+ String(t.text).includes(`
1097
+ `) ? (r(), o("text", {
1098
+ key: s + "-multi",
1099
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1100
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1101
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1102
+ transform: `
1103
+ translate(
1104
+ ${n.value.left + d.value * s + d.value / 2},
1105
+ ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1106
+ ),
1107
+ rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1108
+ `,
1109
+ style: { cursor: "pointer" },
1110
+ innerHTML: v(Aa)({
1111
+ content: String(t.text),
1112
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1113
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1114
+ x: 0,
1115
+ y: 0
1116
+ }),
1117
+ onClick: () => me(t, s)
1118
+ }, null, 8, Ml)) : (r(), o("text", {
1119
+ class: "vue-data-ui-time-label",
1120
+ key: s,
1121
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1122
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1123
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1124
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1125
+ transform: `translate(${n.value.left + d.value * s + d.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})`,
1126
+ style: { cursor: "pointer" },
1127
+ onClick: () => me(t, s)
1128
+ }, M(t.text), 9, Tl))
1129
+ ]))), 256))
1130
+ ]))
1131
+ ], 512)) : y("", !0),
1132
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1133
+ key: 15,
1134
+ ref_key: "timeLabelsEls",
1135
+ ref: Y
1136
+ }, [
1137
+ a.$slots["time-label"] ? (r(), o("g", Al, [
1138
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1139
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1140
+ x: n.value.left - 8,
1141
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1142
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1143
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1144
+ transform: null,
1145
+ absoluteIndex: t.absoluteIndex,
1146
+ content: t.text,
1147
+ textAnchor: "end",
1148
+ show: !0
1149
+ }), void 0, !0)
1150
+ ]))), 256))
1151
+ ])) : (r(), o("g", Nl, [
1152
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1153
+ String(t.text).includes(`
1154
+ `) ? (r(), o("text", {
1155
+ key: 1,
1156
+ "text-anchor": "end",
1157
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1158
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1159
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1160
+ x: n.value.left - 8,
1161
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1162
+ style: { cursor: "pointer" },
1163
+ onClick: () => me(t, s),
1164
+ innerHTML: v(Na)({
1165
+ content: String(t.text),
1166
+ fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1167
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1168
+ x: n.value.left - 8,
1169
+ y: 0
1170
+ })
1171
+ }, null, 8, Rl)) : (r(), o("text", {
1172
+ key: 0,
1173
+ "text-anchor": "end",
1174
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1175
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1176
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1177
+ x: n.value.left - 8,
1178
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1179
+ style: {
1180
+ cursor: "pointer"
1181
+ },
1182
+ onClick: () => me(t, s)
1183
+ }, M(t.text), 9, Il))
1184
+ ]))), 256))
1185
+ ]))
1186
+ ], 512)) : y("", !0),
1187
+ z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1188
+ x: n.value.left + s * d.value,
1189
+ y: n.value.top,
1190
+ width: d.value,
1191
+ height: n.value.height < 0 ? 0 : n.value.height,
1192
+ onClick: () => ht(s),
1193
+ onMouseenter: () => yt(s),
1194
+ onMouseleave: () => dt(s),
1195
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1196
+ style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1197
+ }, null, 44, Ol))), 256)) : y("", !0),
1198
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1199
+ x: n.value.left,
1200
+ y: n.value.top + s * d.value,
1201
+ width: n.value.width < 0 ? 0 : n.value.width,
1202
+ height: d.value,
1203
+ onClick: () => ht(s),
1204
+ onMouseenter: () => yt(s),
1205
+ onMouseleave: () => dt(s),
1206
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1207
+ style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1208
+ }, null, 44, Pl))), 256)) : y("", !0),
1209
+ L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1210
+ ], 14, Ka)),
1211
+ a.$slots.watermark ? (r(), o("div", Vl, [
1212
+ L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1213
+ ])) : y("", !0),
1214
+ le("div", {
1215
+ ref_key: "chartSlicer",
1216
+ ref: Ye,
1217
+ style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1218
+ "data-dom-to-png-ignore": ""
1219
+ }, [
1220
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ja, {
1221
+ ref_key: "slicerComponent",
1222
+ ref: qe,
1223
+ key: `slicer_${Ge.value}`,
1224
+ background: e.value.style.chart.zoom.color,
1225
+ borderColor: e.value.style.chart.backgroundColor,
1226
+ fontSize: e.value.style.chart.zoom.fontSize,
1227
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
1228
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
1229
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
1230
+ textColor: e.value.style.chart.color,
1231
+ inputColor: e.value.style.chart.zoom.color,
1232
+ selectColor: e.value.style.chart.zoom.highlightColor,
1233
+ max: Math.max(...Ce.dataset.map((t) => t.series.length)),
1234
+ min: 0,
1235
+ valueStart: h.value.start,
1236
+ valueEnd: h.value.end,
1237
+ start: h.value.start,
1238
+ "onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
1239
+ end: h.value.end,
1240
+ "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1241
+ refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1242
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Ce.dataset.map((t) => t.series.length)),
1243
+ enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1244
+ enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1245
+ onReset: nt
1246
+ }, {
1247
+ "reset-action": C(({ reset: t }) => [
1248
+ L(a.$slots, "reset-action", H(U({ reset: t })), void 0, !0)
1249
+ ]),
1250
+ _: 3
1251
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1252
+ ], 4),
1253
+ xe(v(Ht), {
1254
+ show: z.value.showTooltip && $e.value,
1255
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1256
+ color: e.value.style.chart.tooltip.color,
1257
+ fontSize: e.value.style.chart.tooltip.fontSize,
1258
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1259
+ borderColor: e.value.style.chart.tooltip.borderColor,
1260
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1261
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1262
+ position: e.value.style.chart.tooltip.position,
1263
+ offsetY: e.value.style.chart.tooltip.offsetY,
1264
+ parent: P.value,
1265
+ content: Me.value,
1266
+ isFullscreen: ne.value,
1267
+ isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
1268
+ smooth: e.value.style.chart.tooltip.smooth,
1269
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
1270
+ }, {
1271
+ "tooltip-before": C(() => [
1272
+ L(a.$slots, "tooltip-before", H(U({ ...Te.value })), void 0, !0)
1273
+ ]),
1274
+ "tooltip-after": C(() => [
1275
+ L(a.$slots, "tooltip-after", H(U({ ...Te.value })), void 0, !0)
1276
+ ]),
1277
+ _: 3
1278
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1279
+ le("div", {
1280
+ ref_key: "chartLegend",
1281
+ ref: We
1282
+ }, [
1283
+ e.value.style.chart.legend.show ? (r(), K(Ga, {
1284
+ key: 0,
1285
+ legendSet: kt.value,
1286
+ config: na.value,
1287
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1288
+ }, Mt({
1289
+ item: C(({ legend: t }) => [
1290
+ v(re) ? y("", !0) : (r(), o("div", {
1291
+ key: 0,
1292
+ onClick: (s) => t.segregate(),
1293
+ style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1294
+ }, M(t.name), 13, El))
1295
+ ]),
1296
+ _: 2
1297
+ }, [
1298
+ a.$slots.pattern ? {
1299
+ name: "legend-pattern",
1300
+ fn: C(({ legend: t, index: s }) => [
1301
+ xe(Xa, {
1302
+ shape: t.shape,
1303
+ radius: 30,
1304
+ stroke: "none",
1305
+ plot: { x: 30, y: 30 },
1306
+ fill: `url(#pattern_${V.value}_${s})`
1307
+ }, null, 8, ["shape", "fill"])
1308
+ ]),
1309
+ key: "0"
1310
+ } : void 0
1311
+ ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1312
+ key: 1,
1313
+ legend: kt.value
1314
+ }, void 0, !0)
1315
+ ], 512),
1316
+ a.$slots.source ? (r(), o("div", {
1317
+ key: 4,
1318
+ ref_key: "source",
1319
+ ref: Xe,
1320
+ dir: "auto"
1321
+ }, [
1322
+ L(a.$slots, "source", {}, void 0, !0)
1323
+ ], 512)) : y("", !0),
1324
+ h.value.end - h.value.start < 200 ? (r(), K(v(Ut), {
1325
+ key: 5,
1326
+ hideDetails: "",
1327
+ config: {
1328
+ open: z.value.showTable,
1329
+ maxHeight: 1e4,
1330
+ body: {
1331
+ backgroundColor: e.value.style.chart.backgroundColor,
1332
+ color: e.value.style.chart.color
1333
+ },
1334
+ head: {
1335
+ backgroundColor: e.value.style.chart.backgroundColor,
1336
+ color: e.value.style.chart.color
1337
+ }
1338
+ }
1339
+ }, {
1340
+ content: C(() => [
1341
+ xe(v(Bt), {
1342
+ colNames: be.value.colNames,
1343
+ head: be.value.head,
1344
+ body: be.value.body,
1345
+ config: be.value.config,
1346
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1347
+ onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
1348
+ }, {
1349
+ th: C(({ th: t }) => [
1350
+ le("div", { innerHTML: t }, null, 8, Dl)
1351
+ ]),
1352
+ td: C(({ td: t }) => [
1353
+ ka(M(isNaN(Number(t)) ? t : v(Q)({
1354
+ p: e.value.style.chart.bars.dataLabels.prefix,
1355
+ v: t,
1356
+ s: e.value.style.chart.bars.dataLabels.suffix,
1357
+ r: e.value.table.td.roundingValue
1358
+ })), 1)
1359
+ ]),
1360
+ _: 1
1361
+ }, 8, ["colNames", "head", "body", "config", "title"])
1362
+ ]),
1363
+ _: 1
1364
+ }, 8, ["config"])) : y("", !0),
1365
+ v(re) ? (r(), K(Da, { key: 6 })) : y("", !0)
1366
+ ], 46, Za));
1367
+ }
1368
+ }, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-57c1b273"]]);
1369
+ export {
1370
+ ls as default
1371
+ };