vue-data-ui 2.3.44 → 2.3.46

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 (145) hide show
  1. package/dist/{Arrow-lVmaBZkc.cjs → Arrow-C45xNtet.cjs} +1 -1
  2. package/dist/{Arrow-nNje1ulZ.js → Arrow-QBHviXQB.js} +1 -1
  3. package/dist/{BaseIcon-CKfFgKNf.js → BaseIcon-Ct3EasCg.js} +1 -1
  4. package/dist/{BaseIcon-DVZfZ-bL.cjs → BaseIcon-NNgCqsH0.cjs} +1 -1
  5. package/dist/{DataTable-C1-LQ9kU.cjs → DataTable-BGF6x8iX.cjs} +1 -1
  6. package/dist/{DataTable-BRBTZQqC.js → DataTable-CkeQ7c6_.js} +2 -2
  7. package/dist/{Legend-Wzo5EwiV.cjs → Legend-DjuRskVd.cjs} +1 -1
  8. package/dist/{Legend-CBclUqQE.js → Legend-aFYc_s9T.js} +1 -1
  9. package/dist/{Shape-B0yFykoL.cjs → Shape-BTMZlA5Q.cjs} +1 -1
  10. package/dist/{Shape-COYrBpTA.js → Shape-DoAgLIYa.js} +1 -1
  11. package/dist/{Slicer-fdCI8qWb.cjs → Slicer-BCr6bV0X.cjs} +1 -1
  12. package/dist/{Slicer-DeKlCzs9.js → Slicer-I9LVm-u8.js} +1 -1
  13. package/dist/{Title-BNmjrAmy.js → Title-D8HoSXgM.js} +1 -1
  14. package/dist/{Title-ac0Tzobx.cjs → Title-NelrBSGO.cjs} +1 -1
  15. package/dist/{Tooltip-CUSoSjeD.cjs → Tooltip-CK94hatv.cjs} +1 -1
  16. package/dist/{Tooltip-kARe11oF.js → Tooltip-DTwn_FW5.js} +1 -1
  17. package/dist/{index-RX-sax8u.js → index-C1-FJ0sT.js} +203 -197
  18. package/dist/index-CEhe8nzy.cjs +4 -0
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +3 -0
  21. package/dist/types/vue-data-ui.d.ts +3 -0
  22. package/dist/{useNestedProp-wLyS1qg3.js → useNestedProp-1fJhHDhT.js} +1 -1
  23. package/dist/{useNestedProp-ZSgzlkKZ.cjs → useNestedProp-CcMb2mLY.cjs} +1 -1
  24. package/dist/{usePrinter-Dz8P4PrQ.cjs → usePrinter-AfD8nrd2.cjs} +1 -1
  25. package/dist/{usePrinter-pEo9G4KY.js → usePrinter-B1a6uNio.js} +1 -1
  26. package/dist/{vue-data-ui-PIOw96xJ.cjs → vue-data-ui-DfYg-sm0.cjs} +1 -1
  27. package/dist/{vue-data-ui-DoqWcxpg.js → vue-data-ui-DgzO0vYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-D4ugNLFv.cjs → vue-ui-3d-bar-DctYjGhv.cjs} +1 -1
  31. package/dist/{vue-ui-3d-bar-B4kbEKT8.js → vue-ui-3d-bar-ikMJ_M47.js} +7 -7
  32. package/dist/{vue-ui-accordion-SU0hvMyf.js → vue-ui-accordion-BLoKd0D-.js} +3 -3
  33. package/dist/{vue-ui-accordion-BQfkZ2Fd.cjs → vue-ui-accordion-CS2POBdq.cjs} +1 -1
  34. package/dist/{vue-ui-age-pyramid-Dj3CbYws.cjs → vue-ui-age-pyramid-6GljtWMq.cjs} +1 -1
  35. package/dist/{vue-ui-age-pyramid-B2B2jipH.js → vue-ui-age-pyramid-C9hzFCN4.js} +8 -8
  36. package/dist/{vue-ui-annotator-B4WY-W96.cjs → vue-ui-annotator-BFTGfEfF.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-B38AOspl.js → vue-ui-annotator-DgdkTVYV.js} +1 -1
  38. package/dist/{vue-ui-candlestick-BX28jnUA.js → vue-ui-candlestick-BW-okjzH.js} +9 -9
  39. package/dist/{vue-ui-candlestick-C_85JG6p.cjs → vue-ui-candlestick-C31d7Jvz.cjs} +1 -1
  40. package/dist/{vue-ui-carousel-table-BKPkc33T.js → vue-ui-carousel-table-Cw7Vpun2.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-CiDmXd8Y.cjs → vue-ui-carousel-table-DlFu0byl.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-CGFb3yM2.cjs → vue-ui-chestnut-B-H0j9-6.cjs} +1 -1
  43. package/dist/{vue-ui-chestnut-2K97h81h.js → vue-ui-chestnut-SLvSoUlS.js} +6 -6
  44. package/dist/{vue-ui-cursor-DN6xr3nT.js → vue-ui-cursor-BnoYo8DD.js} +2 -2
  45. package/dist/{vue-ui-cursor-DOIIfQfX.cjs → vue-ui-cursor-eMGHt_Cm.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-D_H43fxs.cjs → vue-ui-dashboard-BpwA8NTi.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-CFJfMnW1.js → vue-ui-dashboard-cOx4Zbit.js} +2 -2
  48. package/dist/{vue-ui-digits-DoFQJ6ye.cjs → vue-ui-digits-MhR768JU.cjs} +1 -1
  49. package/dist/{vue-ui-digits-D1sBPU-b.js → vue-ui-digits-wo7Gctkj.js} +2 -2
  50. package/dist/{vue-ui-donut-DCKJRNhh.cjs → vue-ui-donut-C4bFM2ww.cjs} +1 -1
  51. package/dist/{vue-ui-donut-BOkeHJmg.js → vue-ui-donut-CABoxvoV.js} +9 -9
  52. package/dist/{vue-ui-donut-evolution-BVfgqCAa.cjs → vue-ui-donut-evolution-DzkcS9ET.cjs} +1 -1
  53. package/dist/{vue-ui-donut-evolution-CVChdWDx.js → vue-ui-donut-evolution-r6wIb3Tt.js} +9 -9
  54. package/dist/{vue-ui-dumbbell-B_nLz9mF.js → vue-ui-dumbbell-D3pvOoxP.js} +8 -8
  55. package/dist/{vue-ui-dumbbell-CAqglrag.cjs → vue-ui-dumbbell-DSSBvwhU.cjs} +1 -1
  56. package/dist/{vue-ui-flow-DAy7OWc2.js → vue-ui-flow-CCMFNXxy.js} +7 -7
  57. package/dist/{vue-ui-flow-AK4gWqNd.cjs → vue-ui-flow-Cp7EQLnA.cjs} +1 -1
  58. package/dist/{vue-ui-galaxy-dYrRlxj0.js → vue-ui-galaxy-BVu0ZEeg.js} +9 -9
  59. package/dist/{vue-ui-galaxy-CN1h5FZm.cjs → vue-ui-galaxy-DHXdjlQl.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-vH_nn0vx.js → vue-ui-gauge-DRy_VLi-.js} +5 -5
  61. package/dist/{vue-ui-gauge-BQwOev1K.cjs → vue-ui-gauge-nnDuY2_P.cjs} +1 -1
  62. package/dist/{vue-ui-gizmo-eS4XXOgq.js → vue-ui-gizmo-B8rEv-J5.js} +2 -2
  63. package/dist/{vue-ui-gizmo-BaMtgUef.cjs → vue-ui-gizmo-Bhqq90Gt.cjs} +1 -1
  64. package/dist/{vue-ui-heatmap-CfQqnd1M.js → vue-ui-heatmap-CESWvx6H.js} +8 -8
  65. package/dist/{vue-ui-heatmap-DOLn5piI.cjs → vue-ui-heatmap-DoEghJHO.cjs} +1 -1
  66. package/dist/{vue-ui-kpi-CvCoN7CE.js → vue-ui-kpi-CBH1WOLl.js} +3 -3
  67. package/dist/{vue-ui-kpi-l2MRy6h9.cjs → vue-ui-kpi-CHrIMR-b.cjs} +1 -1
  68. package/dist/{vue-ui-mini-loader-ac_hCdZA.cjs → vue-ui-mini-loader-CP5HRcth.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-CuRlbUQF.js → vue-ui-mini-loader-YjK49sOM.js} +2 -2
  70. package/dist/{vue-ui-molecule-Bv-v4WBT.cjs → vue-ui-molecule-BIuegM-N.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-BgW25jqW.js → vue-ui-molecule-CZDSsnRY.js} +9 -9
  72. package/dist/{vue-ui-mood-radar-Dp_CgtVn.js → vue-ui-mood-radar-CcnUPS5r.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-rk3wrRpE.cjs → vue-ui-mood-radar-DYTpiKG1.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts--JGjV59I.cjs → vue-ui-nested-donuts-CvPo6PIH.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-D41M6d-5.js → vue-ui-nested-donuts-Dk0HSrH4.js} +9 -9
  76. package/dist/{vue-ui-onion-BaazweOI.js → vue-ui-onion-C93R_Klx.js} +9 -9
  77. package/dist/{vue-ui-onion-Dzuhw8Y3.cjs → vue-ui-onion-C_Dy0awV.cjs} +1 -1
  78. package/dist/{vue-ui-parallel-coordinate-plot-BSaqSFVM.cjs → vue-ui-parallel-coordinate-plot-Do8zOqso.cjs} +1 -1
  79. package/dist/{vue-ui-parallel-coordinate-plot-Dec8TPLy.js → vue-ui-parallel-coordinate-plot-aEJjFh7V.js} +10 -10
  80. package/dist/{vue-ui-quadrant-BDLc3Gxw.js → vue-ui-quadrant-7zsx3EOw.js} +10 -10
  81. package/dist/{vue-ui-quadrant-BqNSzKPZ.cjs → vue-ui-quadrant-CMP5gv34.cjs} +1 -1
  82. package/dist/{vue-ui-quick-chart-CpNYfh1z.cjs → vue-ui-quick-chart-DlKpBf-X.cjs} +1 -1
  83. package/dist/{vue-ui-quick-chart-CmWcXqKE.js → vue-ui-quick-chart-yGY2-cME.js} +6 -6
  84. package/dist/{vue-ui-radar-eOuJE8zH.js → vue-ui-radar-CBAE5b_H.js} +10 -10
  85. package/dist/{vue-ui-radar-CCHVebWS.cjs → vue-ui-radar-FvOQWErL.cjs} +1 -1
  86. package/dist/{vue-ui-rating-ChR7JmUp.cjs → vue-ui-rating-D4ytgNsW.cjs} +1 -1
  87. package/dist/{vue-ui-rating-Qjyodf8S.js → vue-ui-rating-DCX9Hr51.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-BO5RERci.cjs → vue-ui-relation-circle-C0t4M_Eb.cjs} +1 -1
  89. package/dist/{vue-ui-relation-circle-B3hL2PT7.js → vue-ui-relation-circle-C5uvdRCs.js} +5 -5
  90. package/dist/{vue-ui-rings-Cd_STL36.cjs → vue-ui-rings-CljU3aO-.cjs} +1 -1
  91. package/dist/{vue-ui-rings-CXfZ9XhE.js → vue-ui-rings-Cx9I0XCp.js} +9 -9
  92. package/dist/{vue-ui-scatter-BwN3h_43.cjs → vue-ui-scatter-BkvHY89U.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-DjREew2O.js → vue-ui-scatter-BxrCbWPm.js} +10 -10
  94. package/dist/{vue-ui-screenshot-Cnc7zmf5.cjs → vue-ui-screenshot-B198lkuF.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-DSczef-u.js → vue-ui-screenshot-Cf9NK_5w.js} +1 -1
  96. package/dist/{vue-ui-skeleton-CFx7wegx.js → vue-ui-skeleton-DogpCRv2.js} +2 -2
  97. package/dist/{vue-ui-skeleton-B3I4L51F.cjs → vue-ui-skeleton-DpqVx122.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-Bpb_RAXE.cjs → vue-ui-smiley-Hv5SONWU.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-CFPh7_gg.js → vue-ui-smiley-wnlpDBHn.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-poSc_8OY.cjs → vue-ui-spark-trend-DBFYuxbh.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-C5Q_XOKH.js → vue-ui-spark-trend-_STSpU0x.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-skWyToQg.js → vue-ui-sparkbar-B2C4gKQS.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-CNy_3RJN.cjs → vue-ui-sparkbar-D1OrFmz5.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-d-LTd2S_.cjs → vue-ui-sparkgauge-CgX6ZpW7.cjs} +1 -1
  105. package/dist/{vue-ui-sparkgauge-CZpfBAP4.js → vue-ui-sparkgauge-fsJt_SRA.js} +3 -3
  106. package/dist/{vue-ui-sparkhistogram-BkfhKPi2.cjs → vue-ui-sparkhistogram-CV8k8NPB.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-0htrwNwY.js → vue-ui-sparkhistogram-gue0JMvB.js} +4 -4
  108. package/dist/{vue-ui-sparkline-BBlg_5SH.js → vue-ui-sparkline-ClFxAQkz.js} +3 -3
  109. package/dist/{vue-ui-sparkline-ORHsW_3h.cjs → vue-ui-sparkline-DN7RZ5FX.cjs} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-B0hc7a5Y.js → vue-ui-sparkstackbar-3D6MkgTR.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-kWvsyt_R.cjs → vue-ui-sparkstackbar-Dxy0P3xJ.cjs} +1 -1
  112. package/dist/vue-ui-stackbar-BY0bcCBX.cjs +6 -0
  113. package/dist/vue-ui-stackbar-DAFHq-wh.js +897 -0
  114. package/dist/{vue-ui-strip-plot-BxpUOCtS.js → vue-ui-strip-plot-B3ItWHyf.js} +9 -9
  115. package/dist/{vue-ui-strip-plot-ChempVMX.cjs → vue-ui-strip-plot-lfB-YBkt.cjs} +1 -1
  116. package/dist/{vue-ui-table-CiJxG7DF.cjs → vue-ui-table-CiksARcd.cjs} +1 -1
  117. package/dist/{vue-ui-table-6LeE9-Di.js → vue-ui-table-Dxc80GV0.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-BwFAqdF5.js → vue-ui-table-heatmap-AI2JeTUR.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-rO8vNnId.cjs → vue-ui-table-heatmap-C_Wr83fl.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-CkdPJpBy.cjs → vue-ui-table-sparkline-BPYQI2Vo.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-D467Jh1F.js → vue-ui-table-sparkline-D2KWAYWO.js} +5 -5
  122. package/dist/{vue-ui-thermometer-BnmPU3GD.cjs → vue-ui-thermometer-BopRBXkF.cjs} +1 -1
  123. package/dist/{vue-ui-thermometer-CvEudPLx.js → vue-ui-thermometer-szsOVqgO.js} +5 -5
  124. package/dist/{vue-ui-timer-BeBR3Quk.js → vue-ui-timer-CpuqP9iZ.js} +4 -4
  125. package/dist/{vue-ui-timer-CHIVe58Y.cjs → vue-ui-timer-Ctcaiaej.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-CAuwXXbq.js → vue-ui-tiremarks-9P4vBFZV.js} +5 -5
  127. package/dist/{vue-ui-tiremarks-lOirAxZ6.cjs → vue-ui-tiremarks-Cge2TXFU.cjs} +1 -1
  128. package/dist/{vue-ui-treemap-DHxxbiun.cjs → vue-ui-treemap-BxdorPsS.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CUiOr_h_.js → vue-ui-treemap-CLOwIrHN.js} +9 -9
  130. package/dist/{vue-ui-vertical-bar--pPasMmy.cjs → vue-ui-vertical-bar-BREOjM7U.cjs} +1 -1
  131. package/dist/{vue-ui-vertical-bar-ZWnyojw_.js → vue-ui-vertical-bar-Br8Slvab.js} +9 -9
  132. package/dist/{vue-ui-waffle-CSfAfoYA.js → vue-ui-waffle-B62b9gwj.js} +9 -9
  133. package/dist/{vue-ui-waffle-o3Ma4Ps3.cjs → vue-ui-waffle-CPqrsii3.cjs} +1 -1
  134. package/dist/{vue-ui-wheel-BD-PZ7Oh.js → vue-ui-wheel-B3Nw-ICG.js} +5 -5
  135. package/dist/{vue-ui-wheel-BxEO4n2n.cjs → vue-ui-wheel-HqeFI8W9.cjs} +1 -1
  136. package/dist/{vue-ui-word-cloud-CeSKTtaT.cjs → vue-ui-word-cloud-B_W87vAs.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-B1AUYOjb.js → vue-ui-word-cloud-HgAIxI93.js} +7 -7
  138. package/dist/{vue-ui-xy-DeEUEySp.cjs → vue-ui-xy-CWQd12R4.cjs} +1 -1
  139. package/dist/{vue-ui-xy-DK2WkNdd.js → vue-ui-xy-DpqyiCx6.js} +12 -12
  140. package/dist/{vue-ui-xy-canvas-BTMotEgF.cjs → vue-ui-xy-canvas-5f_5ULEA.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-BBoqHWnZ.js → vue-ui-xy-canvas-CjGlVtb_.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/index-CWGchQHo.cjs +0 -4
  144. package/dist/vue-ui-stackbar-CBB0xhoF.js +0 -786
  145. package/dist/vue-ui-stackbar-n7e_yhY9.cjs +0 -6
@@ -0,0 +1,897 @@
1
+ import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as _, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ht, withCtx as z, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as S, createTextVNode as dt } from "vue";
2
+ import { u as yt, c as De, o as gt, e as Ee, g as bt, t as ft, a as mt, p as oe, _ as He, b as pt, d as xt, a0 as se, V as Be, A as We, X as kt, l as wt, D as Xe, f as E, v as Ue, w as Ye, i as Ge, x as Ct, q as _t, r as zt } from "./index-C1-FJ0sT.js";
3
+ import { u as Je } from "./useNestedProp-1fJhHDhT.js";
4
+ import { t as Lt, u as St } from "./useResponsive-NZB-WLRF.js";
5
+ import { u as $t, U as Mt } from "./usePrinter-B1a6uNio.js";
6
+ import { S as Tt } from "./Slicer-I9LVm-u8.js";
7
+ import { _ as Nt } from "./Tooltip-DTwn_FW5.js";
8
+ import { _ as Ot } from "./Title-D8HoSXgM.js";
9
+ import { L as Pt } from "./Legend-aFYc_s9T.js";
10
+ import Rt from "./vue-ui-accordion-BLoKd0D-.js";
11
+ import { D as It } from "./DataTable-CkeQ7c6_.js";
12
+ import Vt from "./vue-ui-skeleton-DogpCRv2.js";
13
+ import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Xt = ["stop-color"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["transform", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, la = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x", "y", "font-size", "fill", "font-weight"], oa = { key: 0 }, sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "font-size", "font-weight", "fill"], na = ["x1", "x2", "y1", "y2", "stroke"], ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], va = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ha = ["font-size", "font-weight", "fill", "x", "y"], da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ya = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ga = {
15
+ key: 3,
16
+ class: "vue-data-ui-watermark"
17
+ }, ba = ["onClick"], fa = ["innerHTML"], ma = {
18
+ __name: "vue-ui-stackbar",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectDatapoint", "selectLegend"],
34
+ setup(he, { expose: qe, emit: de }) {
35
+ const k = he, { vue_ui_stackbar: Ze } = yt(), H = p({
36
+ get() {
37
+ return !!k.dataset && k.dataset.length;
38
+ },
39
+ set(a) {
40
+ return a;
41
+ }
42
+ }), X = f(null), ie = f(De()), j = f(!1), ye = f(null), ue = f(""), L = f([]), ge = f(0), be = f(null), fe = f(null), me = f(null), pe = f(0), ne = f(!1), U = f(null), Y = f(!1);
43
+ Ae(() => {
44
+ gt(k.dataset) ? Ee({
45
+ componentName: "VueUiStackbar",
46
+ type: "dataset"
47
+ }) : k.dataset.forEach((a, r) => {
48
+ bt({
49
+ datasetObject: a,
50
+ requiredAttributes: ["name", "series"]
51
+ }).forEach((t) => {
52
+ H.value = !1, Ee({
53
+ componentName: "VueUiStackbar",
54
+ type: "datasetSerieAttribute",
55
+ property: t,
56
+ index: r
57
+ });
58
+ });
59
+ }), setTimeout(() => {
60
+ Y.value = !0;
61
+ }, 10);
62
+ });
63
+ const e = p(() => {
64
+ const a = Je({
65
+ userConfig: k.config,
66
+ defaultConfig: Ze
67
+ });
68
+ let r = {};
69
+ return a.theme ? r = {
70
+ ...Je({
71
+ userConfig: ft.vue_ui_stackbar[a.theme] || k.config,
72
+ defaultConfig: a
73
+ }),
74
+ customPalette: mt[a.theme] || oe
75
+ } : r = a, k.config && He(k.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = k.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, k.config && He(k.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = k.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, r;
76
+ }), C = f({
77
+ dataLabels: {
78
+ show: e.value.style.chart.bars.dataLabels.show
79
+ },
80
+ showTable: e.value.table.show,
81
+ showTooltip: e.value.style.chart.tooltip.show
82
+ }), { isPrinting: xe, isImaging: ke, generatePdf: we, generateImage: Ce } = $t({
83
+ elementId: `stackbar_${ie.value}`,
84
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
85
+ }), ee = f({
86
+ width: e.value.style.chart.width,
87
+ height: e.value.style.chart.height,
88
+ paddingRatio: {
89
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
90
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
91
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
92
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
93
+ }
94
+ }), Ke = p(() => pt(e.value.customPalette)), _e = f(null), ze = f(null);
95
+ Ae(() => {
96
+ if (e.value.responsive) {
97
+ const a = Lt(() => {
98
+ Y.value = !1;
99
+ const { width: r, height: t } = St({
100
+ chart: X.value,
101
+ title: e.value.style.chart.title.text ? be.value : null,
102
+ legend: e.value.style.chart.legend.show ? fe.value : null,
103
+ slicer: e.value.style.chart.zoom.show && R.value > 1 ? me.value : null
104
+ });
105
+ ee.value.width = r, ee.value.height = t, clearTimeout(ze.value), ze.value = setTimeout(() => {
106
+ Y.value = !0;
107
+ }, 10);
108
+ });
109
+ _e.value = new ResizeObserver(a), _e.value.observe(X.value.parentNode);
110
+ }
111
+ });
112
+ const o = p(() => {
113
+ const { height: a, width: r } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = r - r * t, n = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, I = r - w - r * t, V = a - l - e.value.style.chart.padding.bottom;
114
+ return {
115
+ chartHeight: a,
116
+ chartWidth: r,
117
+ top: l,
118
+ right: i,
119
+ bottom: n,
120
+ left: w,
121
+ width: I,
122
+ height: V < 0 ? 0 : V
123
+ };
124
+ }), P = p(() => k.dataset.map((a, r) => {
125
+ const t = xt(a.color) || Ke.value[r] || oe[r] || oe[r % oe.length];
126
+ return {
127
+ ...a,
128
+ // In distributed mode, all values are converted to positive
129
+ series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
130
+ // Store signs to manage display of neg values in distributed mode
131
+ signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
132
+ absoluteIndex: r,
133
+ id: De(),
134
+ color: t
135
+ };
136
+ })), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = f({
137
+ start: 0,
138
+ end: Math.max(...k.dataset.map((a) => a.series.length))
139
+ });
140
+ function Qe() {
141
+ c.value = {
142
+ start: 0,
143
+ end: Math.max(...k.dataset.map((a) => a.series.length))
144
+ }, pe.value += 1;
145
+ }
146
+ const d = p(() => {
147
+ let a;
148
+ return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
149
+ }), G = p(() => se(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), je = p(() => se(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
150
+ ...a,
151
+ series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
152
+ }))).slice(c.value.start, c.value.end)), te = p(() => {
153
+ const a = P.value.filter((r) => !L.value.includes(r.id));
154
+ return {
155
+ positive: se(a.map((r) => ({
156
+ ...r,
157
+ series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
158
+ }))),
159
+ negative: se(a.map((r) => ({
160
+ ...r,
161
+ series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
162
+ })))
163
+ };
164
+ }), N = p(() => {
165
+ 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(...te.value.positive), r = Math.min(...te.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) ? Be(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : We(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
166
+ return l.ticks.map((i) => ({
167
+ zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
168
+ y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
169
+ x: o.value.left - 8,
170
+ horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
171
+ horizontal_x: o.value.left + o.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
172
+ horizontal_y: o.value.bottom - 8,
173
+ value: i
174
+ }));
175
+ }), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
176
+ if (!H.value) return [];
177
+ let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
178
+ const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : We(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: q } = I, F = q + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, Ve = N.value[0] ? N.value[0].zero : o.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
179
+ return P.value.filter((Z) => !L.value.includes(Z.id)).map((Z) => {
180
+ const O = Z.series.slice(c.value.start, c.value.end), rt = Z.signedSeries.slice(c.value.start, c.value.end), ot = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), st = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), it = O.map((y, g) => {
181
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
182
+ let A, T;
183
+ return y > 0 ? (T = $ * M, A = Ve - T - a[g], a[g] += T) : (T = $ * M, A = Ve + t[g], t[g] += Math.abs(T)), A;
184
+ }), ut = O.map((y, g) => {
185
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
186
+ let A, T;
187
+ return y > 0 ? (T = re * M, A = Fe + r[g], r[g] += T) : (T = re * M, A = Fe - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
188
+ }), nt = O.map((y, g) => {
189
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
190
+ return y > 0 ? $ * M : $ * Math.abs(M);
191
+ }), ct = O.map((y, g) => {
192
+ const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
193
+ return y > 0 ? re * M : re * Math.abs(M);
194
+ }), vt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
195
+ return {
196
+ ...Z,
197
+ proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / vt),
198
+ series: O,
199
+ signedSeries: rt,
200
+ x: ot,
201
+ y: it,
202
+ height: nt,
203
+ horizontal_width: ct,
204
+ horizontal_y: st,
205
+ horizontal_x: ut
206
+ };
207
+ });
208
+ }), Le = p(() => je.value.map((a, r) => ({
209
+ value: a,
210
+ sign: a >= 0 ? 1 : -1
211
+ })));
212
+ function ae(a, r, t, l, i) {
213
+ const n = i === -1 && a >= 0 ? -a : a;
214
+ return Ge(
215
+ e.value.style.chart.bars.dataLabels.formatter,
216
+ n,
217
+ E({
218
+ p: e.value.style.chart.bars.dataLabels.prefix,
219
+ v: n,
220
+ s: e.value.style.chart.bars.dataLabels.suffix,
221
+ r: e.value.style.chart.bars.dataLabels.rounding
222
+ }),
223
+ { datapoint: r, seriesIndex: t, datapointIndex: l }
224
+ );
225
+ }
226
+ function Se(a, r, t, l) {
227
+ return Ge(
228
+ e.value.style.chart.bars.dataLabels.formatter,
229
+ a,
230
+ E({
231
+ v: a,
232
+ s: "%",
233
+ r: e.value.style.chart.bars.dataLabels.rounding
234
+ }),
235
+ { datapoint: r, seriesIndex: t, datapointIndex: l }
236
+ );
237
+ }
238
+ function $e(a) {
239
+ const r = JSON.parse(JSON.stringify(m.value)).map((t) => ({
240
+ name: t.name,
241
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
242
+ proportion: t.proportions[a] || null,
243
+ color: t.color,
244
+ id: t.id
245
+ }));
246
+ de("selectDatapoint", { datapoint: r, period: J.value[a] });
247
+ }
248
+ function Me(a) {
249
+ U.value = a, j.value = !0;
250
+ const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
251
+ name: i.name,
252
+ value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
253
+ proportion: i.proportions[a] || null,
254
+ color: i.color,
255
+ id: i.id
256
+ })), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
257
+ if (Ye(r) && Ct(() => r({
258
+ seriesIndex: a,
259
+ datapoint: t,
260
+ series: m.value,
261
+ config: e.value
262
+ })))
263
+ ue.value = r({
264
+ seriesIndex: a,
265
+ datapoint: t,
266
+ series: m.value,
267
+ config: e.value
268
+ });
269
+ else {
270
+ const {
271
+ showValue: i,
272
+ showPercentage: n,
273
+ borderColor: w,
274
+ roundingValue: I,
275
+ roundingPercentage: V
276
+ } = e.value.style.chart.tooltip;
277
+ let q = "";
278
+ J.value[a] && (q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
279
+ const F = [
280
+ i && n ? "(" : "",
281
+ i && n ? ")" : ""
282
+ ];
283
+ t.reverse().forEach(($) => {
284
+ q += `
285
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
286
+ <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
287
+ ${$.name}${i || n ? ":" : ""} ${i ? E({
288
+ p: e.value.style.chart.bars.dataLabels.prefix,
289
+ v: $.value,
290
+ s: e.value.style.chart.bars.dataLabels.suffix,
291
+ r: I
292
+ }) : ""} ${F[0]}${n ? E({
293
+ v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
294
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
295
+ s: "%",
296
+ r: V
297
+ }) : ""}${F[1]}
298
+ </div>
299
+ `;
300
+ }), ue.value = `<div>${q}</div>`;
301
+ }
302
+ }
303
+ function et(a) {
304
+ ne.value = a, ge.value += 1;
305
+ }
306
+ function Te() {
307
+ C.value.showTable = !C.value.showTable;
308
+ }
309
+ function Ne() {
310
+ C.value.dataLabels.show = !C.value.dataLabels.show;
311
+ }
312
+ function Oe() {
313
+ C.value.showTooltip = !C.value.showTooltip;
314
+ }
315
+ function tt() {
316
+ return m.value;
317
+ }
318
+ const Pe = p(() => {
319
+ if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
320
+ const a = m.value.map(({ name: t, color: l }) => ({
321
+ label: t,
322
+ color: l
323
+ })), r = [];
324
+ for (let t = c.value.start; t < c.value.end; t += 1) {
325
+ const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
326
+ P.value.forEach((i) => {
327
+ l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
328
+ }), r.push(l);
329
+ }
330
+ return { head: a, body: r };
331
+ });
332
+ function Re() {
333
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Pe.value.head.map((n) => n.label)], t = Pe.value.body, l = a.concat([r]).concat(t), i = _t(l);
334
+ zt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
335
+ }
336
+ const le = p(() => {
337
+ const a = [""].concat(m.value.map((i) => i.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>');
338
+ let r = [];
339
+ for (let i = 0; i < R.value; i += 1) {
340
+ const n = m.value.map((w) => w.series[i] ?? 0).reduce((w, I) => w + I, 0);
341
+ r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
342
+ }
343
+ const t = {
344
+ th: {
345
+ backgroundColor: e.value.table.th.backgroundColor,
346
+ color: e.value.table.th.color,
347
+ outline: e.value.table.th.outline
348
+ },
349
+ td: {
350
+ backgroundColor: e.value.table.td.backgroundColor,
351
+ color: e.value.table.td.color,
352
+ outline: e.value.table.td.outline
353
+ },
354
+ breakpoint: e.value.table.responsiveBreakpoint
355
+ }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
356
+ return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
357
+ });
358
+ function at(a, r) {
359
+ if (de("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
360
+ L.value = L.value.filter((t) => t !== r.id);
361
+ else {
362
+ if (L.value.length === P.value.length - 1) return;
363
+ L.value.push(r.id);
364
+ }
365
+ }
366
+ const Ie = p(() => P.value.map((a, r) => ({
367
+ ...a,
368
+ shape: "square"
369
+ })).map((a) => ({
370
+ ...a,
371
+ opacity: L.value.includes(a.id) ? 0.5 : 1,
372
+ segregate: () => at(a.absoluteIndex, a),
373
+ isSegregated: L.value.includes(a.id)
374
+ }))), lt = p(() => ({
375
+ cy: "stackbar-legend",
376
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
377
+ color: e.value.style.chart.legend.color,
378
+ fontSize: e.value.style.chart.legend.fontSize,
379
+ paddingBottom: 12,
380
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
381
+ }));
382
+ return qe({
383
+ getData: tt,
384
+ generatePdf: we,
385
+ generateCsv: Re,
386
+ generateImage: Ce,
387
+ toggleTable: Te,
388
+ toggleLabels: Ne,
389
+ toggleTooltip: Oe
390
+ }), (a, r) => (s(), u("div", {
391
+ id: `stackbar_${ie.value}`,
392
+ ref_key: "stackbarChart",
393
+ ref: X,
394
+ class: ce({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
395
+ style: K(`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%" : ""}`)
396
+ }, [
397
+ _(a.$slots, "userConfig", {}, void 0, !0),
398
+ e.value.style.chart.title.text ? (s(), u("div", {
399
+ key: 0,
400
+ ref_key: "chartTitle",
401
+ ref: be,
402
+ style: K(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
403
+ }, [
404
+ ve(Ot, {
405
+ config: {
406
+ title: {
407
+ cy: "stackbar-title",
408
+ ...e.value.style.chart.title
409
+ },
410
+ subtitle: {
411
+ cy: "stackbar-subtitle",
412
+ ...e.value.style.chart.title.subtitle
413
+ }
414
+ }
415
+ }, null, 8, ["config"])
416
+ ], 4)) : v("", !0),
417
+ e.value.userOptions.show && H.value ? (s(), Q(Mt, {
418
+ ref: "details",
419
+ key: `user_option_${ge.value}`,
420
+ backgroundColor: e.value.style.chart.backgroundColor,
421
+ color: e.value.style.chart.color,
422
+ isPrinting: x(xe),
423
+ isImaging: x(ke),
424
+ uid: ie.value,
425
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
426
+ hasPdf: e.value.userOptions.buttons.pdf,
427
+ hasImg: e.value.userOptions.buttons.img,
428
+ hasXls: e.value.userOptions.buttons.csv,
429
+ hasTable: e.value.userOptions.buttons.table,
430
+ hasLabel: e.value.userOptions.buttons.labels,
431
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
432
+ isFullscreen: ne.value,
433
+ chartElement: X.value,
434
+ isTooltip: C.value.showTooltip,
435
+ titles: { ...e.value.userOptions.buttonTitles },
436
+ onToggleFullscreen: et,
437
+ onGeneratePdf: x(we),
438
+ onGenerateCsv: Re,
439
+ onGenerateImage: x(Ce),
440
+ onToggleTable: Te,
441
+ onToggleLabels: Ne,
442
+ onToggleTooltip: Oe
443
+ }, ht({ _: 2 }, [
444
+ a.$slots.optionTooltip ? {
445
+ name: "optionTooltip",
446
+ fn: z(() => [
447
+ _(a.$slots, "optionTooltip", {}, void 0, !0)
448
+ ]),
449
+ key: "0"
450
+ } : void 0,
451
+ a.$slots.optionPdf ? {
452
+ name: "optionPdf",
453
+ fn: z(() => [
454
+ _(a.$slots, "optionPdf", {}, void 0, !0)
455
+ ]),
456
+ key: "1"
457
+ } : void 0,
458
+ a.$slots.optionCsv ? {
459
+ name: "optionCsv",
460
+ fn: z(() => [
461
+ _(a.$slots, "optionCsv", {}, void 0, !0)
462
+ ]),
463
+ key: "2"
464
+ } : void 0,
465
+ a.$slots.optionImg ? {
466
+ name: "optionImg",
467
+ fn: z(() => [
468
+ _(a.$slots, "optionImg", {}, void 0, !0)
469
+ ]),
470
+ key: "3"
471
+ } : void 0,
472
+ a.$slots.optionTable ? {
473
+ name: "optionTable",
474
+ fn: z(() => [
475
+ _(a.$slots, "optionTable", {}, void 0, !0)
476
+ ]),
477
+ key: "4"
478
+ } : void 0,
479
+ a.$slots.optionLabels ? {
480
+ name: "optionLabels",
481
+ fn: z(() => [
482
+ _(a.$slots, "optionLabels", {}, void 0, !0)
483
+ ]),
484
+ key: "5"
485
+ } : void 0,
486
+ a.$slots.optionFullscreen ? {
487
+ name: "optionFullscreen",
488
+ fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
489
+ _(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
490
+ ]),
491
+ key: "6"
492
+ } : void 0
493
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
494
+ H.value ? (s(), u("svg", {
495
+ key: 2,
496
+ xmlns: x(kt),
497
+ viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
498
+ style: K(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
499
+ }, [
500
+ e.value.style.chart.bars.gradient.show ? (s(), u("defs", Et, [
501
+ (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("linearGradient", {
502
+ id: `gradient_${t.id}`,
503
+ x1: "0%",
504
+ y1: "0%",
505
+ x2: "0%",
506
+ y2: "100%"
507
+ }, [
508
+ D("stop", {
509
+ offset: "0%",
510
+ "stop-color": t.color
511
+ }, null, 8, Bt),
512
+ D("stop", {
513
+ offset: "61.8%",
514
+ "stop-color": x(wt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
515
+ }, null, 8, Wt),
516
+ D("stop", {
517
+ offset: "100%",
518
+ "stop-color": t.color
519
+ }, null, 8, Xt)
520
+ ], 8, Ht))), 256))
521
+ ])) : v("", !0),
522
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 }, b(N.value, (t, l) => (s(), u("line", {
523
+ x1: o.value.left,
524
+ x2: o.value.right,
525
+ y1: t.y,
526
+ y2: t.y,
527
+ stroke: e.value.style.chart.grid.x.axisColor,
528
+ "stroke-width": 1,
529
+ "stroke-linecap": "round"
530
+ }, null, 8, Ut))), 256)) : v("", !0),
531
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
532
+ x1: o.value.left,
533
+ x2: o.value.right,
534
+ y1: o.value.top + d.value * l,
535
+ y2: o.value.top + d.value * l,
536
+ stroke: e.value.style.chart.grid.y.axisColor,
537
+ "stroke-width": 1,
538
+ "stroke-linecap": "round"
539
+ }, null, 8, Yt))), 256)) : v("", !0),
540
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
541
+ x1: o.value.left + d.value * l,
542
+ x2: o.value.left + d.value * l,
543
+ y1: o.value.top,
544
+ y2: o.value.bottom,
545
+ stroke: e.value.style.chart.grid.y.axisColor,
546
+ "stroke-width": 1,
547
+ "stroke-linecap": "round"
548
+ }, null, 8, Gt))), 256)) : v("", !0),
549
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 }, b(N.value, (t, l) => (s(), u("line", {
550
+ x1: t.horizontal_x,
551
+ x2: t.horizontal_x,
552
+ y1: o.value.top,
553
+ y2: o.value.bottom,
554
+ stroke: e.value.style.chart.grid.x.axisColor,
555
+ "stroke-width": 1,
556
+ "stroke-linecap": "round"
557
+ }, null, 8, Jt))), 256)) : v("", !0),
558
+ (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
559
+ e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, b(t.x, (i, n) => (s(), u("rect", {
560
+ x: i,
561
+ y: t.y[n] < 0 ? 0 : t.y[n],
562
+ height: t.height[n] < 0 ? 1e-4 : t.height[n],
563
+ 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,
564
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
565
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
566
+ stroke: e.value.style.chart.backgroundColor,
567
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
568
+ "stroke-linecap": "round",
569
+ "stroke-linejoin": "round",
570
+ class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
571
+ }, null, 10, qt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
572
+ x: i,
573
+ y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
574
+ width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
575
+ 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,
576
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
577
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
578
+ stroke: e.value.style.chart.backgroundColor,
579
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
580
+ "stroke-linecap": "round",
581
+ "stroke-linejoin": "round",
582
+ class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
583
+ }, null, 10, Zt))), 256))
584
+ ]))), 256)),
585
+ e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
586
+ key: 5,
587
+ x1: o.value.left,
588
+ x2: o.value.right,
589
+ y1: o.value.bottom,
590
+ y2: o.value.bottom,
591
+ stroke: e.value.style.chart.grid.x.axisColor,
592
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
593
+ "stroke-linecap": "round",
594
+ "stroke-linejoin": "round"
595
+ }, null, 8, Kt)) : v("", !0),
596
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
597
+ key: 6,
598
+ x1: o.value.left,
599
+ x2: o.value.left,
600
+ y1: o.value.top,
601
+ y2: o.value.bottom,
602
+ stroke: e.value.style.chart.grid.y.axisColor,
603
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
604
+ "stroke-linecap": "round",
605
+ "stroke-linejoin": "round"
606
+ }, null, 8, Qt)) : v("", !0),
607
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
608
+ key: 7,
609
+ x: o.value.left + o.value.width / 2,
610
+ y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
611
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
612
+ fill: e.value.style.chart.grid.x.axisName.color,
613
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
614
+ "text-anchor": "middle"
615
+ }, S(e.value.style.chart.grid.x.axisName.text), 9, jt)) : v("", !0),
616
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
617
+ key: 8,
618
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
619
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
620
+ fill: e.value.style.chart.grid.y.axisName.color,
621
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
622
+ "text-anchor": "middle"
623
+ }, S(e.value.style.chart.grid.y.axisName.text), 9, ea)) : v("", !0),
624
+ C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
625
+ (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
626
+ (s(!0), u(h, null, b(t.x, (i, n) => (s(), u("text", {
627
+ x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
628
+ y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
629
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
630
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
631
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
632
+ "text-anchor": "middle"
633
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ta))), 256))
634
+ ]))), 256)),
635
+ e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", aa, [
636
+ (s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
637
+ x: o.value.left + d.value * l + d.value / 2,
638
+ y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
639
+ "text-anchor": "middle",
640
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
641
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
642
+ fill: e.value.style.chart.bars.totalValues.color
643
+ }, S(ae(t.value, t, l, t.sign)), 9, la))), 256))
644
+ ])) : v("", !0)
645
+ ], 64)) : v("", !0),
646
+ C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
647
+ (s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
648
+ (s(!0), u(h, null, b(t.horizontal_x, (i, n) => (s(), u("text", {
649
+ x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
650
+ y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
651
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
652
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
653
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
654
+ "text-anchor": "middle"
655
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ra))), 256))
656
+ ]))), 256)),
657
+ e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", oa, [
658
+ (s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
659
+ x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
660
+ y: o.value.top + d.value * l + d.value / 2,
661
+ "text-anchor": "start",
662
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
663
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
664
+ fill: e.value.style.chart.bars.totalValues.color
665
+ }, S(ae(t.value, t, l, t.sign)), 9, sa))), 256))
666
+ ])) : v("", !0)
667
+ ], 64)) : v("", !0),
668
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
669
+ (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
670
+ x1: o.value.left,
671
+ x2: o.value.left - 6,
672
+ y1: t.y,
673
+ y2: t.y,
674
+ stroke: e.value.style.chart.grid.x.axisColor,
675
+ "stroke-width": 1
676
+ }, null, 8, ia))), 256)),
677
+ (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
678
+ x: t.x,
679
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
680
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
681
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
682
+ fill: e.value.style.chart.grid.y.axisLabels.color,
683
+ "text-anchor": "end"
684
+ }, S(x(E)({
685
+ p: e.value.style.chart.bars.dataLabels.prefix,
686
+ v: t.value,
687
+ s: e.value.style.chart.bars.dataLabels.suffix,
688
+ r: e.value.style.chart.grid.y.axisLabels.rounding
689
+ })), 9, ua))), 256))
690
+ ], 64)) : v("", !0),
691
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
692
+ (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
693
+ x1: t.horizontal_x,
694
+ x2: t.horizontal_x,
695
+ y1: o.value.bottom,
696
+ y2: o.value.bottom + 6,
697
+ stroke: e.value.style.chart.grid.x.axisColor,
698
+ "stroke-width": 1,
699
+ "stroke-linecap": "round"
700
+ }, null, 8, na))), 256)),
701
+ (s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
702
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
703
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
704
+ fill: e.value.style.chart.grid.y.axisLabels.color,
705
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
706
+ transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
707
+ }, S(x(E)({
708
+ p: e.value.style.chart.bars.dataLabels.prefix,
709
+ v: t.value,
710
+ s: e.value.style.chart.bars.dataLabels.suffix,
711
+ r: e.value.style.chart.grid.y.axisLabels.rounding
712
+ })), 9, ca))), 256))
713
+ ], 64)) : v("", !0),
714
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 }, b(J.value, (t, l) => (s(), u("text", {
715
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
716
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
717
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
718
+ fill: e.value.style.chart.grid.x.timeLabels.color,
719
+ transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
720
+ }, S(t), 9, va))), 256)) : v("", !0),
721
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 }, b(J.value, (t, l) => (s(), u("text", {
722
+ "text-anchor": "end",
723
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
724
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
725
+ fill: e.value.style.chart.grid.y.axisLabels.color,
726
+ x: o.value.left - 8,
727
+ y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
728
+ }, S(t), 9, ha))), 256)) : v("", !0),
729
+ C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
730
+ x: o.value.left + l * d.value,
731
+ y: o.value.top,
732
+ width: d.value,
733
+ height: o.value.height < 0 ? 0 : o.value.height,
734
+ onClick: (i) => $e(l),
735
+ onMouseenter: (i) => Me(l),
736
+ onMouseleave: r[0] || (r[0] = (i) => {
737
+ U.value = null, j.value = !1;
738
+ }),
739
+ fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
740
+ }, null, 40, da))), 256)) : v("", !0),
741
+ C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
742
+ x: o.value.left,
743
+ y: o.value.top + l * d.value,
744
+ width: o.value.width < 0 ? 0 : o.value.width,
745
+ height: d.value,
746
+ onClick: (i) => $e(l),
747
+ onMouseenter: (i) => Me(l),
748
+ onMouseleave: r[1] || (r[1] = (i) => {
749
+ U.value = null, j.value = !1;
750
+ }),
751
+ fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
752
+ }, null, 40, ya))), 256)) : v("", !0),
753
+ _(a.$slots, "svg", B(W({ ...o.value })), void 0, !0)
754
+ ], 12, Dt)) : v("", !0),
755
+ a.$slots.watermark ? (s(), u("div", ga, [
756
+ _(a.$slots, "watermark", B(W({ isPrinting: x(xe) || x(ke) })), void 0, !0)
757
+ ])) : v("", !0),
758
+ H.value ? v("", !0) : (s(), Q(Vt, {
759
+ key: 4,
760
+ config: {
761
+ type: "bar",
762
+ style: {
763
+ backgroundColor: e.value.style.chart.backgroundColor,
764
+ bar: {
765
+ axis: {
766
+ color: "#CCCCCC"
767
+ },
768
+ color: "#CCCCCC"
769
+ }
770
+ }
771
+ }
772
+ }, null, 8, ["config"])),
773
+ D("div", {
774
+ ref_key: "chartSlicer",
775
+ ref: me,
776
+ style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
777
+ "data-html2canvas-ignore": ""
778
+ }, [
779
+ e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(Tt, {
780
+ key: `slicer_${pe.value}`,
781
+ background: e.value.style.chart.zoom.color,
782
+ borderColor: e.value.style.chart.backgroundColor,
783
+ fontSize: e.value.style.chart.zoom.fontSize,
784
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
785
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
786
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
787
+ textColor: e.value.style.chart.color,
788
+ inputColor: e.value.style.chart.zoom.color,
789
+ selectColor: e.value.style.chart.zoom.highlightColor,
790
+ max: Math.max(...he.dataset.map((t) => t.series.length)),
791
+ min: 0,
792
+ valueStart: c.value.start,
793
+ valueEnd: c.value.end,
794
+ start: c.value.start,
795
+ "onUpdate:start": r[2] || (r[2] = (t) => c.value.start = t),
796
+ end: c.value.end,
797
+ "onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
798
+ onReset: Qe
799
+ }, {
800
+ "reset-action": z(({ reset: t }) => [
801
+ _(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
802
+ ]),
803
+ _: 3
804
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
805
+ ], 4),
806
+ ve(Nt, {
807
+ show: C.value.showTooltip && j.value,
808
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
809
+ color: e.value.style.chart.tooltip.color,
810
+ fontSize: e.value.style.chart.tooltip.fontSize,
811
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
812
+ borderColor: e.value.style.chart.tooltip.borderColor,
813
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
814
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
815
+ position: e.value.style.chart.tooltip.position,
816
+ offsetY: e.value.style.chart.tooltip.offsetY,
817
+ parent: X.value,
818
+ content: ue.value,
819
+ isCustom: x(Ye)(e.value.style.chart.tooltip.customFormat)
820
+ }, {
821
+ "tooltip-before": z(() => [
822
+ _(a.$slots, "tooltip-before", B(W({ ...ye.value })), void 0, !0)
823
+ ]),
824
+ "tooltip-after": z(() => [
825
+ _(a.$slots, "tooltip-after", B(W({ ...ye.value })), void 0, !0)
826
+ ]),
827
+ _: 3
828
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
829
+ D("div", {
830
+ ref_key: "chartLegend",
831
+ ref: fe
832
+ }, [
833
+ e.value.style.chart.legend.show && H.value ? (s(), Q(Pt, {
834
+ key: 0,
835
+ legendSet: Ie.value,
836
+ config: lt.value,
837
+ onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
838
+ }, {
839
+ item: z(({ legend: t }) => [
840
+ D("div", {
841
+ onClick: (l) => t.segregate(),
842
+ style: K(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
843
+ }, S(t.name), 13, ba)
844
+ ]),
845
+ _: 1
846
+ }, 8, ["legendSet", "config"])) : _(a.$slots, "legend", {
847
+ key: 1,
848
+ legend: Ie.value
849
+ }, void 0, !0)
850
+ ], 512),
851
+ c.value.end - c.value.start < 200 ? (s(), Q(Rt, {
852
+ key: 5,
853
+ hideDetails: "",
854
+ config: {
855
+ open: C.value.showTable,
856
+ maxHeight: 1e4,
857
+ body: {
858
+ backgroundColor: e.value.style.chart.backgroundColor,
859
+ color: e.value.style.chart.color
860
+ },
861
+ head: {
862
+ backgroundColor: e.value.style.chart.backgroundColor,
863
+ color: e.value.style.chart.color
864
+ }
865
+ }
866
+ }, {
867
+ content: z(() => [
868
+ ve(It, {
869
+ colNames: le.value.colNames,
870
+ head: le.value.head,
871
+ body: le.value.body,
872
+ config: le.value.config,
873
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
874
+ onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
875
+ }, {
876
+ th: z(({ th: t }) => [
877
+ D("div", { innerHTML: t }, null, 8, fa)
878
+ ]),
879
+ td: z(({ td: t }) => [
880
+ dt(S(isNaN(Number(t)) ? t : x(E)({
881
+ p: e.value.style.chart.bars.dataLabels.prefix,
882
+ v: t,
883
+ s: e.value.style.chart.bars.dataLabels.suffix,
884
+ r: e.value.table.td.roundingValue
885
+ })), 1)
886
+ ]),
887
+ _: 1
888
+ }, 8, ["colNames", "head", "body", "config", "title"])
889
+ ]),
890
+ _: 1
891
+ }, 8, ["config"])) : v("", !0)
892
+ ], 14, At));
893
+ }
894
+ }, Oa = /* @__PURE__ */ Ft(ma, [["__scopeId", "data-v-6f134df9"]]);
895
+ export {
896
+ Oa as default
897
+ };