vue-data-ui 2.3.31 → 2.3.32

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/dist/{Arrow-CiUBvBlb.cjs → Arrow-C46rqWDg.cjs} +1 -1
  2. package/dist/{Arrow-CiAaagmx.js → Arrow-f_7ZlBit.js} +1 -1
  3. package/dist/{BaseIcon-BHjAlRHU.js → BaseIcon-CejyHIZM.js} +1 -1
  4. package/dist/{BaseIcon-D5tyFpQV.cjs → BaseIcon-ChS1Bl3C.cjs} +1 -1
  5. package/dist/{DataTable-ByKKUsaO.cjs → DataTable-BShm3pg0.cjs} +1 -1
  6. package/dist/{DataTable-DqPGv4Ms.js → DataTable-Rb6wEqzD.js} +2 -2
  7. package/dist/{Legend-BfwTJ9M-.cjs → Legend-DUjHDr5A.cjs} +1 -1
  8. package/dist/{Legend-3WC5-bUm.js → Legend-O1l-qwSU.js} +1 -1
  9. package/dist/{Shape-CAjMa3HT.cjs → Shape-DrbNfL39.cjs} +1 -1
  10. package/dist/{Shape-C4kR-mjQ.js → Shape-jOLEEcCT.js} +1 -1
  11. package/dist/{Slicer-CPKkdrpR.js → Slicer-BtErYU-m.js} +1 -1
  12. package/dist/{Slicer-BScyt_Vx.cjs → Slicer-DMZ03tYD.cjs} +1 -1
  13. package/dist/{Title-CKSMMGjd.js → Title-B9DAMnKW.js} +1 -1
  14. package/dist/{Title-CNJKmNgA.cjs → Title-C6kjiyFi.cjs} +1 -1
  15. package/dist/{Tooltip-C9Q2lE3W.js → Tooltip-B7LZQUXr.js} +1 -1
  16. package/dist/{Tooltip-BIHm4byQ.cjs → Tooltip-Dc_Vk9k7.cjs} +1 -1
  17. package/dist/{index-DQvb5Vgo.cjs → index-D5gus_lg.cjs} +1 -1
  18. package/dist/{index-BJ6NXF-z.js → index-DyzpYx72.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-AR9tJrsp.js → useNestedProp-DGjp6yqE.js} +1 -1
  21. package/dist/{useNestedProp-D1F0KM3m.cjs → useNestedProp-dfy-beYA.cjs} +1 -1
  22. package/dist/{usePrinter-C4oaA82s.cjs → usePrinter-D9HscgWK.cjs} +1 -1
  23. package/dist/{usePrinter-BUIam1ao.js → usePrinter-_HAcfIJq.js} +1 -1
  24. package/dist/{vue-data-ui-DfNedsHE.js → vue-data-ui-BYwT-L-y.js} +57 -57
  25. package/dist/{vue-data-ui-Ch_eQQZR.cjs → vue-data-ui-w642Au96.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-cav5cdhf.js → vue-ui-3d-bar-_idrDcTt.js} +7 -7
  29. package/dist/{vue-ui-3d-bar-BiF2mAOR.cjs → vue-ui-3d-bar-uIw4YyRe.cjs} +1 -1
  30. package/dist/{vue-ui-accordion-GCDGaaYO.js → vue-ui-accordion-CQLN2WYC.js} +3 -3
  31. package/dist/{vue-ui-accordion-D5-giD3x.cjs → vue-ui-accordion-QESF0r0U.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-CCDfdeJE.js → vue-ui-age-pyramid-Bj_3AooT.js} +8 -8
  33. package/dist/{vue-ui-age-pyramid-DA-7y6nN.cjs → vue-ui-age-pyramid-BqIkETbo.cjs} +1 -1
  34. package/dist/{vue-ui-annotator-BKzaeqJR.cjs → vue-ui-annotator-CLCPtXoo.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-B_vPtBm9.js → vue-ui-annotator-D0iuqAb9.js} +1 -1
  36. package/dist/{vue-ui-candlestick-Cgg58gem.cjs → vue-ui-candlestick-BBnC2umf.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-CeZC3-9i.js → vue-ui-candlestick-D8AnaGwt.js} +9 -9
  38. package/dist/{vue-ui-carousel-table-e0zW3fCz.js → vue-ui-carousel-table-CV4YRYfq.js} +4 -4
  39. package/dist/{vue-ui-carousel-table-ySFFobPq.cjs → vue-ui-carousel-table-DJtlOVqJ.cjs} +1 -1
  40. package/dist/{vue-ui-chestnut-Cxw7FjDt.cjs → vue-ui-chestnut-CRkC7aeK.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-ClIE26od.js → vue-ui-chestnut-DxRF0eGJ.js} +6 -6
  42. package/dist/{vue-ui-cursor-5ilFNncb.js → vue-ui-cursor-7KMholmU.js} +2 -2
  43. package/dist/{vue-ui-cursor-DyIiGBho.cjs → vue-ui-cursor-DxDaK5kl.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-CXrmy76c.js → vue-ui-dashboard-BMEkgCKF.js} +2 -2
  45. package/dist/{vue-ui-dashboard-D-JyU495.cjs → vue-ui-dashboard-CjmpoQWU.cjs} +1 -1
  46. package/dist/{vue-ui-digits-B30HSHeA.cjs → vue-ui-digits-KxGiWJBe.cjs} +1 -1
  47. package/dist/{vue-ui-digits-BEZa60-l.js → vue-ui-digits-slk9W4ek.js} +2 -2
  48. package/dist/{vue-ui-donut-GPrnPVJq.js → vue-ui-donut-CB3SfpSC.js} +9 -9
  49. package/dist/{vue-ui-donut-0jWL1Wzc.cjs → vue-ui-donut-CtkZaRur.cjs} +1 -1
  50. package/dist/{vue-ui-donut-evolution-D0LbULdi.js → vue-ui-donut-evolution-292a6FEA.js} +9 -9
  51. package/dist/{vue-ui-donut-evolution-hoHN3gzZ.cjs → vue-ui-donut-evolution-CptrmAtk.cjs} +1 -1
  52. package/dist/{vue-ui-dumbbell-67OcxNA7.js → vue-ui-dumbbell-BQrhfMqP.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-Cb87RX2P.cjs → vue-ui-dumbbell-Dx_-QB5p.cjs} +1 -1
  54. package/dist/{vue-ui-flow-DPVIb1Kj.cjs → vue-ui-flow-C12EMKoJ.cjs} +1 -1
  55. package/dist/{vue-ui-flow-Vi3PWSP4.js → vue-ui-flow-CcCeNf_k.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BgO0ZTYY.js → vue-ui-galaxy-BAIRiq85.js} +9 -9
  57. package/dist/{vue-ui-galaxy-B5oGFG97.cjs → vue-ui-galaxy-CLVcP5Qh.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-qe4o6Sjl.cjs → vue-ui-gauge-eMLSa5k6.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-B0w9GJOy.js → vue-ui-gauge-uFn_PRBN.js} +5 -5
  60. package/dist/{vue-ui-gizmo-BVoL7TEm.cjs → vue-ui-gizmo-C5hlmv34.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-BXN_MwN4.js → vue-ui-gizmo-CkmuI8hn.js} +2 -2
  62. package/dist/{vue-ui-heatmap-BHNaaYJl.js → vue-ui-heatmap-C3oS64to.js} +8 -8
  63. package/dist/{vue-ui-heatmap-8TBiusXd.cjs → vue-ui-heatmap-mnnjTuAS.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-DTu-z6sj.js → vue-ui-kpi-CMn14HGk.js} +2 -2
  65. package/dist/{vue-ui-kpi-BeGFsXxC.cjs → vue-ui-kpi-CpFr6mya.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-BHX2lzqL.js → vue-ui-mini-loader-CxhRP0o3.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-D1vhrkOt.cjs → vue-ui-mini-loader-DAE2b1aK.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-Bow2JLXO.cjs → vue-ui-molecule-BMtrEZXu.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-DLbPBobL.js → vue-ui-molecule-Chxy44E1.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-C0-KPgNg.js → vue-ui-mood-radar-B0944MVq.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-CqosXQQX.cjs → vue-ui-mood-radar-D70upaRv.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-C2NpczwE.cjs → vue-ui-nested-donuts-C8U02J9G.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-BFa-oFEx.js → vue-ui-nested-donuts-Ct26fYcZ.js} +9 -9
  74. package/dist/{vue-ui-onion-BexMkS4E.js → vue-ui-onion-BuAA53Z4.js} +9 -9
  75. package/dist/{vue-ui-onion-DwdVlm0O.cjs → vue-ui-onion-D7jdX-jE.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-BALCmQ5Z.js → vue-ui-parallel-coordinate-plot-DR7GBD64.js} +10 -10
  77. package/dist/{vue-ui-parallel-coordinate-plot-BKKl2c7B.cjs → vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs} +1 -1
  78. package/dist/{vue-ui-quadrant-CTrV6HgE.js → vue-ui-quadrant-D6XUNhwO.js} +10 -10
  79. package/dist/{vue-ui-quadrant-BPoDyM8A.cjs → vue-ui-quadrant-DjY4UFmX.cjs} +1 -1
  80. package/dist/{vue-ui-quick-chart-BmMbY6SQ.js → vue-ui-quick-chart-CHWpjYVZ.js} +6 -6
  81. package/dist/{vue-ui-quick-chart-D4GFWcp7.cjs → vue-ui-quick-chart-a7twDc_t.cjs} +1 -1
  82. package/dist/{vue-ui-radar-7sSdEfcO.cjs → vue-ui-radar-BPH8c93c.cjs} +1 -1
  83. package/dist/{vue-ui-radar-Clfa-6Le.js → vue-ui-radar-w8--R-ur.js} +10 -10
  84. package/dist/{vue-ui-rating-Cs45C-53.cjs → vue-ui-rating-Dfk9Umrh.cjs} +1 -1
  85. package/dist/{vue-ui-rating-Ce8pPHCS.js → vue-ui-rating-DyAunqH4.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-DokQNUAI.js → vue-ui-relation-circle-BCCHpnpL.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-CuZjr_W8.cjs → vue-ui-relation-circle-COsMXD8M.cjs} +1 -1
  88. package/dist/{vue-ui-rings-Cd_5yc8m.js → vue-ui-rings-COm1RO2W.js} +9 -9
  89. package/dist/{vue-ui-rings-DlcUcstZ.cjs → vue-ui-rings-DrrT1cJn.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-Diih7alT.cjs → vue-ui-scatter-BwlMCoqN.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-CGUY8yGo.js → vue-ui-scatter-ZjouDP_2.js} +10 -10
  92. package/dist/{vue-ui-screenshot-CslXMiXF.js → vue-ui-screenshot-D0E4gBJg.js} +1 -1
  93. package/dist/{vue-ui-screenshot-C4CVXRBT.cjs → vue-ui-screenshot-DCAQ7EZR.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-DdAE1RlM.js → vue-ui-skeleton-HxNUOQim.js} +2 -2
  95. package/dist/{vue-ui-skeleton-6fxZMdtV.cjs → vue-ui-skeleton-lzhZVBa5.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-enpMVkNM.cjs → vue-ui-smiley-BNglGFZl.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-DTY5KiDB.js → vue-ui-smiley-xoGBumeP.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-UUDAPzlU.cjs → vue-ui-spark-trend-9z2-nnDf.cjs} +1 -1
  99. package/dist/{vue-ui-spark-trend-CNqfwxj9.js → vue-ui-spark-trend-BP91Hhbk.js} +4 -4
  100. package/dist/{vue-ui-sparkbar-D2M_uMU8.js → vue-ui-sparkbar-BV7lv1Mc.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-BEwF2ZHO.cjs → vue-ui-sparkbar-CBwEk4Sp.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-BQo2RtDp.js → vue-ui-sparkgauge-DAcXHJe3.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-DCXz-sVO.cjs → vue-ui-sparkgauge-mf9TWCfM.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-DnJyQqnN.cjs → vue-ui-sparkhistogram-BLG-wdNd.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-B83GykeL.js → vue-ui-sparkhistogram-Cw8kAsVJ.js} +4 -4
  106. package/dist/{vue-ui-sparkline-pblHktJQ.cjs → vue-ui-sparkline-BIxUq0a0.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-DDGgABlc.js → vue-ui-sparkline-DtMX5BBW.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-CA3xOex0.js → vue-ui-sparkstackbar-Boz0na6c.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-Btx1pr5F.cjs → vue-ui-sparkstackbar-CcNK8jkC.cjs} +1 -1
  110. package/dist/vue-ui-stackbar-DFK6zb17.cjs +6 -0
  111. package/dist/vue-ui-stackbar-Yj49aOwn.js +786 -0
  112. package/dist/{vue-ui-strip-plot-BaLXVgu4.cjs → vue-ui-strip-plot-BUpDy3ST.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-CX2aCzHG.js → vue-ui-strip-plot-CTVAbRx1.js} +9 -9
  114. package/dist/{vue-ui-table-sQc-MSR_.cjs → vue-ui-table-Bn0Sh_ll.cjs} +1 -1
  115. package/dist/{vue-ui-table-ClECxS2U.js → vue-ui-table-JW8Ddbcv.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-9BG7K8wL.cjs → vue-ui-table-heatmap-CBt2T6Fi.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-BL8cy2H3.js → vue-ui-table-heatmap-D_hgGOnV.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-Dptv8kIS.cjs → vue-ui-table-sparkline-CE15fs3Z.cjs} +1 -1
  119. package/dist/{vue-ui-table-sparkline-D0CF7Nwo.js → vue-ui-table-sparkline-lTi-b4a9.js} +5 -5
  120. package/dist/{vue-ui-thermometer-CDI0CdOu.cjs → vue-ui-thermometer-CnOa_c88.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BIWGfZUV.js → vue-ui-thermometer-DDaejskt.js} +5 -5
  122. package/dist/{vue-ui-timer-CLoIqr2Z.js → vue-ui-timer-BTkcHF3d.js} +4 -4
  123. package/dist/{vue-ui-timer-BUj9O2DA.cjs → vue-ui-timer-DFN5EbaX.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-BbTYG885.cjs → vue-ui-tiremarks-CHMhRw0X.cjs} +1 -1
  125. package/dist/{vue-ui-tiremarks-QCCPssnC.js → vue-ui-tiremarks-CaCbMety.js} +5 -5
  126. package/dist/{vue-ui-treemap-D6YxChmu.cjs → vue-ui-treemap-BKRQnqlg.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-B1mD4WbM.js → vue-ui-treemap-CRGZXH3Z.js} +9 -9
  128. package/dist/vue-ui-vertical-bar-DppxsDym.cjs +4 -0
  129. package/dist/vue-ui-vertical-bar-OiHb4ABm.js +805 -0
  130. package/dist/{vue-ui-waffle-xeawcYID.cjs → vue-ui-waffle-CIoGXtZP.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-BMYYVoRM.js → vue-ui-waffle-ChcZm0_Q.js} +9 -9
  132. package/dist/{vue-ui-wheel-Sp4i7L2L.cjs → vue-ui-wheel-BVDHANbp.cjs} +1 -1
  133. package/dist/{vue-ui-wheel-t6sMmDHN.js → vue-ui-wheel-DRgqt22e.js} +5 -5
  134. package/dist/{vue-ui-word-cloud-BURJJFyJ.js → vue-ui-word-cloud-B2OjEeWK.js} +7 -7
  135. package/dist/{vue-ui-word-cloud-ohI8RK1_.cjs → vue-ui-word-cloud-BbAFa1J5.cjs} +1 -1
  136. package/dist/{vue-ui-xy-DcjiVoXA.cjs → vue-ui-xy-6Qnf5k-u.cjs} +1 -1
  137. package/dist/{vue-ui-xy-CruxD8qY.js → vue-ui-xy-Cf3D_9Em.js} +12 -12
  138. package/dist/{vue-ui-xy-canvas-B5pcGCvN.cjs → vue-ui-xy-canvas-ZvG2lyjk.cjs} +1 -1
  139. package/dist/{vue-ui-xy-canvas-D3KZ8rIM.js → vue-ui-xy-canvas-ihJeRvA1.js} +10 -10
  140. package/package.json +1 -1
  141. package/dist/vue-ui-stackbar-BhLDK1Rx.js +0 -765
  142. package/dist/vue-ui-stackbar-DPsuPIje.cjs +0 -15
  143. package/dist/vue-ui-vertical-bar-CIbzBp6T.cjs +0 -4
  144. package/dist/vue-ui-vertical-bar-Cq7SX6st.js +0 -792
@@ -0,0 +1,786 @@
1
+ import { computed as h, ref as v, onMounted as ze, openBlock as i, createElementBlock as n, normalizeClass as Me, normalizeStyle as X, renderSlot as b, createVNode as re, createCommentVNode as d, createBlock as Y, unref as k, createSlots as et, withCtx as f, normalizeProps as R, guardReactiveProps as V, Fragment as m, renderList as $, createElementVNode as P, toDisplayString as N, createTextVNode as tt } from "vue";
2
+ import { u as at, c as Oe, o as lt, e as Pe, g as ot, t as st, a as rt, p as j, b as it, d as ut, _ as ie, A as ue, X as nt, l as ct, D as vt, f as D, v as dt, w as Ie, i as Fe, x as ht, q as gt, r as yt } from "./index-DyzpYx72.js";
3
+ import { u as Re } from "./useNestedProp-DGjp6yqE.js";
4
+ import { t as bt, u as ft } from "./useResponsive-NZB-WLRF.js";
5
+ import { u as mt, U as pt } from "./usePrinter-_HAcfIJq.js";
6
+ import { S as xt } from "./Slicer-BtErYU-m.js";
7
+ import { _ as kt } from "./Tooltip-B7LZQUXr.js";
8
+ import { _ as wt } from "./Title-B9DAMnKW.js";
9
+ import { L as Ct } from "./Legend-O1l-qwSU.js";
10
+ import Lt from "./vue-ui-accordion-CQLN2WYC.js";
11
+ import { D as St } from "./DataTable-Rb6wEqzD.js";
12
+ import $t from "./vue-ui-skeleton-HxNUOQim.js";
13
+ import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Tt = ["id"], Nt = ["xmlns", "viewBox"], zt = { key: 0 }, Mt = ["id"], Ot = ["stop-color"], Pt = ["stop-color"], It = ["stop-color"], Ft = ["x1", "x2", "y1", "y2", "stroke"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Vt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = ["x", "y", "font-size", "fill", "font-weight"], Ht = ["transform", "font-size", "fill", "font-weight"], Bt = ["x", "y", "font-size", "fill", "font-weight"], Ut = { key: 0 }, Wt = ["x", "y", "font-size", "font-weight", "fill"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["text-anchor", "font-size", "font-weight", "fill", "transform"], Jt = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], qt = {
15
+ key: 3,
16
+ class: "vue-data-ui-watermark"
17
+ }, Zt = ["onClick"], Kt = ["innerHTML"], Qt = {
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(ne, { expose: Ve, emit: ce }) {
35
+ const _ = ne, { vue_ui_stackbar: De } = at(), I = h({
36
+ get() {
37
+ return !!_.dataset && _.dataset.length;
38
+ },
39
+ set(a) {
40
+ return a;
41
+ }
42
+ }), A = v(null), ee = v(Oe()), te = v(!1), ve = v(null), ae = v(""), w = v([]), de = v(0), he = v(null), ge = v(null), ye = v(null), be = v(0), le = v(!1), oe = v(null), J = v(!1);
43
+ ze(() => {
44
+ lt(_.dataset) ? Pe({
45
+ componentName: "VueUiStackbar",
46
+ type: "dataset"
47
+ }) : _.dataset.forEach((a, l) => {
48
+ ot({
49
+ datasetObject: a,
50
+ requiredAttributes: ["name", "series"]
51
+ }).forEach((t) => {
52
+ I.value = !1, Pe({
53
+ componentName: "VueUiStackbar",
54
+ type: "datasetSerieAttribute",
55
+ property: t,
56
+ index: l
57
+ });
58
+ });
59
+ }), setTimeout(() => {
60
+ J.value = !0;
61
+ }, 10);
62
+ });
63
+ const e = h(() => {
64
+ const a = Re({
65
+ userConfig: _.config,
66
+ defaultConfig: De
67
+ });
68
+ return a.theme ? {
69
+ ...Re({
70
+ userConfig: st.vue_ui_stackbar[a.theme] || _.config,
71
+ defaultConfig: a
72
+ }),
73
+ customPalette: rt[a.theme] || j
74
+ } : a;
75
+ }), C = v({
76
+ dataLabels: {
77
+ show: e.value.style.chart.bars.dataLabels.show
78
+ },
79
+ showTable: e.value.table.show,
80
+ showTooltip: e.value.style.chart.tooltip.show
81
+ }), { isPrinting: fe, isImaging: me, generatePdf: pe, generateImage: xe } = mt({
82
+ elementId: `stackbar_${ee.value}`,
83
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
84
+ }), q = v({
85
+ width: e.value.style.chart.width,
86
+ height: e.value.style.chart.height,
87
+ paddingRatio: {
88
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
89
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
90
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
91
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
92
+ }
93
+ }), Ae = h(() => it(e.value.customPalette)), ke = v(null), we = v(null);
94
+ ze(() => {
95
+ if (e.value.responsive) {
96
+ const a = bt(() => {
97
+ J.value = !1;
98
+ const { width: l, height: t } = ft({
99
+ chart: A.value,
100
+ title: e.value.style.chart.title.text ? he.value : null,
101
+ legend: e.value.style.chart.legend.show ? ge.value : null,
102
+ slicer: e.value.style.chart.zoom.show && E.value > 1 ? ye.value : null
103
+ });
104
+ q.value.width = l, q.value.height = t, clearTimeout(we.value), we.value = setTimeout(() => {
105
+ J.value = !0;
106
+ }, 10);
107
+ });
108
+ ke.value = new ResizeObserver(a), ke.value.observe(A.value.parentNode);
109
+ }
110
+ });
111
+ const r = h(() => {
112
+ const { height: a, width: l } = q.value, { right: t } = q.value.paddingRatio, o = e.value.style.chart.padding.top, s = l - l * t, c = a - e.value.style.chart.padding.bottom, p = e.value.style.chart.padding.left, M = l - p - l * t, O = a - o - e.value.style.chart.padding.bottom;
113
+ return {
114
+ chartHeight: a,
115
+ chartWidth: l,
116
+ top: o,
117
+ right: s,
118
+ bottom: c,
119
+ left: p,
120
+ width: M,
121
+ height: O < 0 ? 0 : O
122
+ };
123
+ }), z = h(() => _.dataset.map((a, l) => {
124
+ const t = ut(a.color) || Ae.value[l] || j[l] || j[l % j.length];
125
+ return {
126
+ ...a,
127
+ // In distributed mode, all values are converted to positive
128
+ series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
129
+ // Store signs to manage display of neg values in distributed mode
130
+ signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
131
+ absoluteIndex: l,
132
+ id: Oe(),
133
+ color: t
134
+ };
135
+ })), E = h(() => Math.max(...z.value.filter((a) => !w.value.includes(a.id)).map((a) => a.series.length))), u = v({
136
+ start: 0,
137
+ end: Math.max(..._.dataset.map((a) => a.series.length))
138
+ });
139
+ function Ee() {
140
+ u.value = {
141
+ start: 0,
142
+ end: Math.max(..._.dataset.map((a) => a.series.length))
143
+ }, be.value += 1;
144
+ }
145
+ const L = h(() => {
146
+ const a = r.value.width / (u.value.end - u.value.start);
147
+ return a <= 0 ? 0 : a;
148
+ }), H = h(() => ie(z.value.filter((a) => !w.value.includes(a.id))).slice(u.value.start, u.value.end)), Z = h(() => {
149
+ const a = z.value.filter((l) => !w.value.includes(l.id));
150
+ return {
151
+ positive: ie(a.map((l) => ({
152
+ ...l,
153
+ series: l.series.slice(u.value.start, u.value.end).map((t) => t >= 0 ? t : 0)
154
+ }))),
155
+ negative: ie(a.map((l) => ({
156
+ ...l,
157
+ series: l.series.slice(u.value.start, u.value.end).map((t) => t < 0 ? t : 0)
158
+ })))
159
+ };
160
+ }), B = h(() => {
161
+ const a = Math.max(...Z.value.positive), l = Math.min(...Z.value.negative), t = [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, o = ue(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
162
+ return o.ticks.map((s) => ({
163
+ zero: r.value.bottom - r.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
164
+ y: r.value.bottom - r.value.height * ((s + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
165
+ x: r.value.left - 8,
166
+ value: s
167
+ }));
168
+ }), K = h(() => e.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)), g = h(() => {
169
+ if (!I.value) return [];
170
+ let a = Array(E.value).fill(0), l = Array(E.value).fill(0);
171
+ const t = Math.max(...Z.value.positive) || 0, o = Math.min(...Z.value.negative), s = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, c = ue(s > 0 ? 0 : s, t < 0 ? 0 : t, e.value.style.chart.grid.scale.ticks), { min: p, max: M } = c, O = M + (p >= 0 ? 0 : Math.abs(p)) || 1, T = r.value.height, U = B.value[0] ? B.value[0].zero : r.value.bottom;
172
+ return z.value.filter((S) => !w.value.includes(S.id)).map((S) => {
173
+ const F = S.series.slice(u.value.start, u.value.end), qe = S.signedSeries.slice(u.value.start, u.value.end), Ze = F.map((y, x) => r.value.left + L.value * x + L.value * e.value.style.chart.bars.gapRatio / 4), Ke = F.map((y, x) => {
174
+ const W = e.value.style.chart.bars.distributed ? (y || 0) / H.value[x] : (y || 0) / O;
175
+ let se, G;
176
+ return y > 0 ? (G = T * W, se = U - G - a[x], a[x] += G) : (G = T * W, se = U + l[x], l[x] += Math.abs(G)), se;
177
+ }), Qe = F.map((y, x) => {
178
+ const W = e.value.style.chart.bars.distributed ? (y || 0) / H.value[x] : (y || 0) / O;
179
+ return y > 0 ? T * W : T * Math.abs(W);
180
+ }), je = F.map((y) => Math.abs(y)).reduce((y, x) => y + x, 0);
181
+ return {
182
+ ...S,
183
+ proportions: F.map((y, x) => e.value.style.chart.bars.distributed ? (y || 0) / H.value[x] : (y || 0) / je),
184
+ series: F,
185
+ signedSeries: qe,
186
+ x: Ze,
187
+ y: Ke,
188
+ height: Qe
189
+ };
190
+ });
191
+ }), He = h(() => {
192
+ const a = Math.max(...H.value), t = ue(0, a, e.value.style.chart.grid.scale.ticks).max;
193
+ return H.value.map((o, s) => ({
194
+ value: o,
195
+ y: (1 - o / t) * r.value.height
196
+ }));
197
+ });
198
+ function Ce(a, l, t, o, s) {
199
+ const c = e.value.style.chart.bars.distributed ? s === 1 ? a : -a : a;
200
+ return Fe(
201
+ e.value.style.chart.bars.dataLabels.formatter,
202
+ c,
203
+ D({
204
+ p: e.value.style.chart.bars.dataLabels.prefix,
205
+ v: c,
206
+ s: e.value.style.chart.bars.dataLabels.suffix,
207
+ r: e.value.style.chart.bars.dataLabels.rounding
208
+ }),
209
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
210
+ );
211
+ }
212
+ function Be(a, l, t, o) {
213
+ return Fe(
214
+ e.value.style.chart.bars.dataLabels.formatter,
215
+ a,
216
+ D({
217
+ v: a,
218
+ s: "%",
219
+ r: e.value.style.chart.bars.dataLabels.rounding
220
+ }),
221
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
222
+ );
223
+ }
224
+ function Ue(a) {
225
+ const l = JSON.parse(JSON.stringify(g.value)).map((t) => ({
226
+ name: t.name,
227
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
228
+ proportion: t.proportions[a] || null,
229
+ color: t.color,
230
+ id: t.id
231
+ }));
232
+ ce("selectDatapoint", { datapoint: l, period: K.value[a] });
233
+ }
234
+ function We(a) {
235
+ oe.value = a, te.value = !0;
236
+ const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(g.value)).map((s) => ({
237
+ name: s.name,
238
+ value: s.series[a] === 0 ? 0 : s.series[a] || null,
239
+ proportion: s.proportions[a] || null,
240
+ color: s.color,
241
+ id: s.id
242
+ })), o = t.map((s) => Math.abs(s.value)).reduce((s, c) => s + c, 0);
243
+ if (Ie(l) && ht(() => l({
244
+ seriesIndex: a,
245
+ datapoint: t,
246
+ series: g.value,
247
+ config: e.value
248
+ })))
249
+ ae.value = l({
250
+ seriesIndex: a,
251
+ datapoint: t,
252
+ series: g.value,
253
+ config: e.value
254
+ });
255
+ else {
256
+ const {
257
+ showValue: s,
258
+ showPercentage: c,
259
+ borderColor: p,
260
+ roundingValue: M,
261
+ roundingPercentage: O
262
+ } = e.value.style.chart.tooltip;
263
+ let T = "";
264
+ K.value[a] && (T += `<div style="width:100%;text-align:center;border-bottom:1px solid ${p};padding-bottom:6px;margin-bottom:3px;">${K.value[a]}</div>`);
265
+ const U = [
266
+ s && c ? "(" : "",
267
+ s && c ? ")" : ""
268
+ ];
269
+ t.reverse().forEach((S) => {
270
+ T += `
271
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
272
+ <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_${S.id})` : S.color}"/></svg>
273
+ ${S.name}${s || c ? ":" : ""} ${s ? D({
274
+ p: e.value.style.chart.bars.dataLabels.prefix,
275
+ v: S.value,
276
+ s: e.value.style.chart.bars.dataLabels.suffix,
277
+ r: M
278
+ }) : ""} ${U[0]}${c ? D({
279
+ v: isNaN(S.value / o) ? 0 : Math.abs(S.value) / o * 100,
280
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
281
+ s: "%",
282
+ r: O
283
+ }) : ""}${U[1]}
284
+ </div>
285
+ `;
286
+ }), ae.value = `<div>${T}</div>`;
287
+ }
288
+ }
289
+ function Ge(a) {
290
+ le.value = a, de.value += 1;
291
+ }
292
+ function Le() {
293
+ C.value.showTable = !C.value.showTable;
294
+ }
295
+ function Se() {
296
+ C.value.dataLabels.show = !C.value.dataLabels.show;
297
+ }
298
+ function $e() {
299
+ C.value.showTooltip = !C.value.showTooltip;
300
+ }
301
+ function Xe() {
302
+ return g.value;
303
+ }
304
+ const _e = h(() => {
305
+ if (g.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
306
+ const a = g.value.map(({ name: t, color: o }) => ({
307
+ label: t,
308
+ color: o
309
+ })), l = [];
310
+ for (let t = u.value.start; t < u.value.end; t += 1) {
311
+ const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
312
+ z.value.forEach((s) => {
313
+ o.push(Number((s.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
314
+ }), l.push(o);
315
+ }
316
+ return { head: a, body: l };
317
+ });
318
+ function Te() {
319
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ..._e.value.head.map((c) => c.label)], t = _e.value.body, o = a.concat([l]).concat(t), s = gt(o);
320
+ yt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
321
+ }
322
+ const Q = h(() => {
323
+ const a = [""].concat(g.value.map((s) => s.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>');
324
+ let l = [];
325
+ for (let s = 0; s < E.value; s += 1) {
326
+ const c = g.value.map((p) => p.series[s] ?? 0).reduce((p, M) => p + M, 0);
327
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[s] ?? s + 1].concat(g.value.map((p) => (p.series[s] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((c ?? 0).toFixed(e.value.table.td.roundingValue)));
328
+ }
329
+ const t = {
330
+ th: {
331
+ backgroundColor: e.value.table.th.backgroundColor,
332
+ color: e.value.table.th.color,
333
+ outline: e.value.table.th.outline
334
+ },
335
+ td: {
336
+ backgroundColor: e.value.table.td.backgroundColor,
337
+ color: e.value.table.td.color,
338
+ outline: e.value.table.td.outline
339
+ },
340
+ breakpoint: e.value.table.responsiveBreakpoint
341
+ }, o = [e.value.table.columnNames.period].concat(g.value.map((s) => s.name)).concat(e.value.table.columnNames.total);
342
+ return { head: a, body: l.slice(0, u.value.end - u.value.start), config: t, colNames: o };
343
+ });
344
+ function Ye(a, l) {
345
+ if (ce("selectLegend", g.value.find((t) => t.absoluteIndex === a)), w.value.includes(l.id))
346
+ w.value = w.value.filter((t) => t !== l.id);
347
+ else {
348
+ if (w.value.length === z.value.length - 1) return;
349
+ w.value.push(l.id);
350
+ }
351
+ }
352
+ const Ne = h(() => z.value.map((a, l) => ({
353
+ ...a,
354
+ shape: "square"
355
+ })).map((a) => ({
356
+ ...a,
357
+ opacity: w.value.includes(a.id) ? 0.5 : 1,
358
+ segregate: () => Ye(a.absoluteIndex, a),
359
+ isSegregated: w.value.includes(a.id)
360
+ }))), Je = h(() => ({
361
+ cy: "stackbar-legend",
362
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
363
+ color: e.value.style.chart.legend.color,
364
+ fontSize: e.value.style.chart.legend.fontSize,
365
+ paddingBottom: 12,
366
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
367
+ }));
368
+ return Ve({
369
+ getData: Xe,
370
+ generatePdf: pe,
371
+ generateCsv: Te,
372
+ generateImage: xe,
373
+ toggleTable: Le,
374
+ toggleLabels: Se,
375
+ toggleTooltip: $e
376
+ }), (a, l) => (i(), n("div", {
377
+ id: `stackbar_${ee.value}`,
378
+ ref_key: "stackbarChart",
379
+ ref: A,
380
+ class: Me({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": le.value }),
381
+ style: X(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
382
+ }, [
383
+ b(a.$slots, "userConfig", {}, void 0, !0),
384
+ e.value.style.chart.title.text ? (i(), n("div", {
385
+ key: 0,
386
+ ref_key: "chartTitle",
387
+ ref: he,
388
+ style: X(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
389
+ }, [
390
+ re(wt, {
391
+ config: {
392
+ title: {
393
+ cy: "stackbar-title",
394
+ ...e.value.style.chart.title
395
+ },
396
+ subtitle: {
397
+ cy: "stackbar-subtitle",
398
+ ...e.value.style.chart.title.subtitle
399
+ }
400
+ }
401
+ }, null, 8, ["config"])
402
+ ], 4)) : d("", !0),
403
+ e.value.userOptions.show && I.value ? (i(), Y(pt, {
404
+ ref: "details",
405
+ key: `user_option_${de.value}`,
406
+ backgroundColor: e.value.style.chart.backgroundColor,
407
+ color: e.value.style.chart.color,
408
+ isPrinting: k(fe),
409
+ isImaging: k(me),
410
+ uid: ee.value,
411
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
412
+ hasPdf: e.value.userOptions.buttons.pdf,
413
+ hasImg: e.value.userOptions.buttons.img,
414
+ hasXls: e.value.userOptions.buttons.csv,
415
+ hasTable: e.value.userOptions.buttons.table,
416
+ hasLabel: e.value.userOptions.buttons.labels,
417
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
418
+ isFullscreen: le.value,
419
+ chartElement: A.value,
420
+ isTooltip: C.value.showTooltip,
421
+ titles: { ...e.value.userOptions.buttonTitles },
422
+ onToggleFullscreen: Ge,
423
+ onGeneratePdf: k(pe),
424
+ onGenerateCsv: Te,
425
+ onGenerateImage: k(xe),
426
+ onToggleTable: Le,
427
+ onToggleLabels: Se,
428
+ onToggleTooltip: $e
429
+ }, et({ _: 2 }, [
430
+ a.$slots.optionTooltip ? {
431
+ name: "optionTooltip",
432
+ fn: f(() => [
433
+ b(a.$slots, "optionTooltip", {}, void 0, !0)
434
+ ]),
435
+ key: "0"
436
+ } : void 0,
437
+ a.$slots.optionPdf ? {
438
+ name: "optionPdf",
439
+ fn: f(() => [
440
+ b(a.$slots, "optionPdf", {}, void 0, !0)
441
+ ]),
442
+ key: "1"
443
+ } : void 0,
444
+ a.$slots.optionCsv ? {
445
+ name: "optionCsv",
446
+ fn: f(() => [
447
+ b(a.$slots, "optionCsv", {}, void 0, !0)
448
+ ]),
449
+ key: "2"
450
+ } : void 0,
451
+ a.$slots.optionImg ? {
452
+ name: "optionImg",
453
+ fn: f(() => [
454
+ b(a.$slots, "optionImg", {}, void 0, !0)
455
+ ]),
456
+ key: "3"
457
+ } : void 0,
458
+ a.$slots.optionTable ? {
459
+ name: "optionTable",
460
+ fn: f(() => [
461
+ b(a.$slots, "optionTable", {}, void 0, !0)
462
+ ]),
463
+ key: "4"
464
+ } : void 0,
465
+ a.$slots.optionLabels ? {
466
+ name: "optionLabels",
467
+ fn: f(() => [
468
+ b(a.$slots, "optionLabels", {}, void 0, !0)
469
+ ]),
470
+ key: "5"
471
+ } : void 0,
472
+ a.$slots.optionFullscreen ? {
473
+ name: "optionFullscreen",
474
+ fn: f(({ toggleFullscreen: t, isFullscreen: o }) => [
475
+ b(a.$slots, "optionFullscreen", R(V({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
476
+ ]),
477
+ key: "6"
478
+ } : void 0
479
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
480
+ I.value ? (i(), n("svg", {
481
+ key: 2,
482
+ xmlns: k(nt),
483
+ viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
484
+ style: X(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
485
+ }, [
486
+ e.value.style.chart.bars.gradient.show ? (i(), n("defs", zt, [
487
+ (i(!0), n(m, null, $(g.value, (t, o) => (i(), n("linearGradient", {
488
+ id: `gradient_${t.id}`,
489
+ x1: "0%",
490
+ y1: "0%",
491
+ x2: "0%",
492
+ y2: "100%"
493
+ }, [
494
+ P("stop", {
495
+ offset: "0%",
496
+ "stop-color": t.color
497
+ }, null, 8, Ot),
498
+ P("stop", {
499
+ offset: "61.8%",
500
+ "stop-color": k(ct)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
501
+ }, null, 8, Pt),
502
+ P("stop", {
503
+ offset: "100%",
504
+ "stop-color": t.color
505
+ }, null, 8, It)
506
+ ], 8, Mt))), 256))
507
+ ])) : d("", !0),
508
+ e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), n(m, { key: 1 }, $(B.value, (t, o) => (i(), n("line", {
509
+ x1: r.value.left,
510
+ x2: r.value.right,
511
+ y1: t.y,
512
+ y2: t.y,
513
+ stroke: e.value.style.chart.grid.x.axisColor,
514
+ "stroke-width": 1
515
+ }, null, 8, Ft))), 256)) : d("", !0),
516
+ e.value.style.chart.grid.y.showVerticalLines ? (i(!0), n(m, { key: 2 }, $(u.value.end - u.value.start + 1, (t, o) => (i(), n("line", {
517
+ x1: r.value.left + L.value * o,
518
+ x2: r.value.left + L.value * o,
519
+ y1: r.value.top,
520
+ y2: r.value.bottom,
521
+ stroke: e.value.style.chart.grid.y.axisColor,
522
+ "stroke-width": 1
523
+ }, null, 8, Rt))), 256)) : d("", !0),
524
+ (i(!0), n(m, null, $(g.value, (t, o) => (i(), n("g", null, [
525
+ (i(!0), n(m, null, $(t.x, (s, c) => (i(), n("rect", {
526
+ x: s,
527
+ y: t.y[c] < 0 ? 0 : t.y[c],
528
+ height: t.height[c] < 0 ? 1e-4 : t.height[c],
529
+ rx: e.value.style.chart.bars.borderRadius > t.height[c] / 2 ? (t.height[c] < 0 ? 0 : t.height[c]) / 2 : e.value.style.chart.bars.borderRadius,
530
+ width: L.value * (1 - e.value.style.chart.bars.gapRatio / 2),
531
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
532
+ stroke: e.value.style.chart.backgroundColor,
533
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
534
+ "stroke-linecap": "round",
535
+ "stroke-linejoin": "round",
536
+ class: Me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
537
+ }, null, 10, Vt))), 256))
538
+ ]))), 256)),
539
+ e.value.style.chart.grid.x.showAxis ? (i(), n("line", {
540
+ key: 3,
541
+ x1: r.value.left,
542
+ x2: r.value.right,
543
+ y1: r.value.bottom,
544
+ y2: r.value.bottom,
545
+ stroke: e.value.style.chart.grid.x.axisColor,
546
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
547
+ "stroke-linecap": "round",
548
+ "stroke-linejoin": "round"
549
+ }, null, 8, Dt)) : d("", !0),
550
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (i(), n("line", {
551
+ key: 4,
552
+ x1: r.value.left,
553
+ x2: r.value.left,
554
+ y1: r.value.top,
555
+ y2: r.value.bottom,
556
+ stroke: e.value.style.chart.grid.y.axisColor,
557
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
558
+ "stroke-linecap": "round",
559
+ "stroke-linejoin": "round"
560
+ }, null, 8, At)) : d("", !0),
561
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (i(), n("text", {
562
+ key: 5,
563
+ x: r.value.left + r.value.width / 2,
564
+ y: r.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
565
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
566
+ fill: e.value.style.chart.grid.x.axisName.color,
567
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
568
+ "text-anchor": "middle"
569
+ }, N(e.value.style.chart.grid.x.axisName.text), 9, Et)) : d("", !0),
570
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), n("text", {
571
+ key: 6,
572
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
573
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
574
+ fill: e.value.style.chart.grid.y.axisName.color,
575
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
576
+ "text-anchor": "middle"
577
+ }, N(e.value.style.chart.grid.y.axisName.text), 9, Ht)) : d("", !0),
578
+ C.value.dataLabels.show ? (i(), n(m, { key: 7 }, [
579
+ (i(!0), n(m, null, $(g.value, (t, o) => (i(), n("g", null, [
580
+ (i(!0), n(m, null, $(t.x, (s, c) => (i(), n("text", {
581
+ x: s + L.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
582
+ y: t.y[c] + t.height[c] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
583
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
584
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(vt)(t.color) : e.value.style.chart.bars.dataLabels.color,
585
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
586
+ "text-anchor": "middle"
587
+ }, N(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Be(t.proportions[c] * 100, t, o, c) : Ce(t.series[c], t, o, c, t.signedSeries[c])), 9, Bt))), 256))
588
+ ]))), 256)),
589
+ e.value.style.chart.bars.totalValues.show && g.value.length > 1 ? (i(), n("g", Ut, [
590
+ (i(!0), n(m, null, $(He.value, (t, o) => (i(), n("text", {
591
+ x: r.value.left + L.value * o + L.value / 2,
592
+ y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
593
+ "text-anchor": "middle",
594
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
595
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
596
+ fill: e.value.style.chart.bars.totalValues.color
597
+ }, N(Ce(t.value, t, o)), 9, Wt))), 256))
598
+ ])) : d("", !0)
599
+ ], 64)) : d("", !0),
600
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed ? (i(), n(m, { key: 8 }, [
601
+ (i(!0), n(m, null, $(B.value, (t, o) => (i(), n("line", {
602
+ x1: r.value.left,
603
+ x2: r.value.left - 6,
604
+ y1: t.y,
605
+ y2: t.y,
606
+ stroke: e.value.style.chart.grid.x.axisColor,
607
+ "stroke-width": 1
608
+ }, null, 8, Gt))), 256)),
609
+ (i(!0), n(m, null, $(B.value, (t, o) => (i(), n("text", {
610
+ x: t.x,
611
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
612
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
613
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
614
+ fill: e.value.style.chart.grid.y.axisLabels.color,
615
+ "text-anchor": "end"
616
+ }, N(k(D)({
617
+ p: e.value.style.chart.bars.dataLabels.prefix,
618
+ v: t.value,
619
+ s: e.value.style.chart.bars.dataLabels.suffix,
620
+ r: e.value.style.chart.grid.y.axisLabels.rounding
621
+ })), 9, Xt))), 256))
622
+ ], 64)) : d("", !0),
623
+ e.value.style.chart.grid.x.timeLabels.show ? (i(!0), n(m, { key: 9 }, $(K.value, (t, o) => (i(), n("text", {
624
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
625
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
626
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
627
+ fill: e.value.style.chart.grid.x.timeLabels.color,
628
+ transform: `translate(${r.value.left + L.value * o + L.value / 2}, ${r.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})`
629
+ }, N(t), 9, Yt))), 256)) : d("", !0),
630
+ C.value.showTooltip ? (i(!0), n(m, { key: 10 }, $(u.value.end - u.value.start, (t, o) => (i(), n("rect", {
631
+ x: r.value.left + o * L.value,
632
+ y: r.value.top,
633
+ width: L.value,
634
+ height: r.value.height < 0 ? 0 : r.value.height,
635
+ onClick: (s) => Ue(o),
636
+ onMouseenter: (s) => We(o),
637
+ onMouseleave: l[0] || (l[0] = (s) => {
638
+ oe.value = null, te.value = !1;
639
+ }),
640
+ fill: o === oe.value ? e.value.style.chart.highlighter.color + k(dt)[e.value.style.chart.highlighter.opacity] : "transparent"
641
+ }, null, 40, Jt))), 256)) : d("", !0),
642
+ b(a.$slots, "svg", R(V({ ...r.value })), void 0, !0)
643
+ ], 12, Nt)) : d("", !0),
644
+ a.$slots.watermark ? (i(), n("div", qt, [
645
+ b(a.$slots, "watermark", R(V({ isPrinting: k(fe) || k(me) })), void 0, !0)
646
+ ])) : d("", !0),
647
+ I.value ? d("", !0) : (i(), Y($t, {
648
+ key: 4,
649
+ config: {
650
+ type: "bar",
651
+ style: {
652
+ backgroundColor: e.value.style.chart.backgroundColor,
653
+ bar: {
654
+ axis: {
655
+ color: "#CCCCCC"
656
+ },
657
+ color: "#CCCCCC"
658
+ }
659
+ }
660
+ }
661
+ }, null, 8, ["config"])),
662
+ P("div", {
663
+ ref_key: "chartSlicer",
664
+ ref: ye,
665
+ style: X(`width:100%;background:${e.value.style.chart.backgroundColor}`),
666
+ "data-html2canvas-ignore": ""
667
+ }, [
668
+ e.value.style.chart.zoom.show && E.value > 1 ? (i(), Y(xt, {
669
+ key: `slicer_${be.value}`,
670
+ background: e.value.style.chart.zoom.color,
671
+ borderColor: e.value.style.chart.backgroundColor,
672
+ fontSize: e.value.style.chart.zoom.fontSize,
673
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
674
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[u.value.start] ? e.value.style.chart.grid.x.timeLabels.values[u.value.start] : "",
675
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] : "",
676
+ textColor: e.value.style.chart.color,
677
+ inputColor: e.value.style.chart.zoom.color,
678
+ selectColor: e.value.style.chart.zoom.highlightColor,
679
+ max: Math.max(...ne.dataset.map((t) => t.series.length)),
680
+ min: 0,
681
+ valueStart: u.value.start,
682
+ valueEnd: u.value.end,
683
+ start: u.value.start,
684
+ "onUpdate:start": l[1] || (l[1] = (t) => u.value.start = t),
685
+ end: u.value.end,
686
+ "onUpdate:end": l[2] || (l[2] = (t) => u.value.end = t),
687
+ onReset: Ee
688
+ }, {
689
+ "reset-action": f(({ reset: t }) => [
690
+ b(a.$slots, "reset-action", R(V({ reset: t })), void 0, !0)
691
+ ]),
692
+ _: 3
693
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : d("", !0)
694
+ ], 4),
695
+ re(kt, {
696
+ show: C.value.showTooltip && te.value,
697
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
698
+ color: e.value.style.chart.tooltip.color,
699
+ fontSize: e.value.style.chart.tooltip.fontSize,
700
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
701
+ borderColor: e.value.style.chart.tooltip.borderColor,
702
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
703
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
704
+ position: e.value.style.chart.tooltip.position,
705
+ offsetY: e.value.style.chart.tooltip.offsetY,
706
+ parent: A.value,
707
+ content: ae.value,
708
+ isCustom: k(Ie)(e.value.style.chart.tooltip.customFormat)
709
+ }, {
710
+ "tooltip-before": f(() => [
711
+ b(a.$slots, "tooltip-before", R(V({ ...ve.value })), void 0, !0)
712
+ ]),
713
+ "tooltip-after": f(() => [
714
+ b(a.$slots, "tooltip-after", R(V({ ...ve.value })), void 0, !0)
715
+ ]),
716
+ _: 3
717
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
718
+ P("div", {
719
+ ref_key: "chartLegend",
720
+ ref: ge
721
+ }, [
722
+ e.value.style.chart.legend.show && I.value ? (i(), Y(Ct, {
723
+ key: 0,
724
+ legendSet: Ne.value,
725
+ config: Je.value,
726
+ onClickMarker: l[3] || (l[3] = ({ legend: t }) => t.segregate())
727
+ }, {
728
+ item: f(({ legend: t }) => [
729
+ P("div", {
730
+ onClick: (o) => t.segregate(),
731
+ style: X(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
732
+ }, N(t.name), 13, Zt)
733
+ ]),
734
+ _: 1
735
+ }, 8, ["legendSet", "config"])) : b(a.$slots, "legend", {
736
+ key: 1,
737
+ legend: Ne.value
738
+ }, void 0, !0)
739
+ ], 512),
740
+ u.value.end - u.value.start < 200 ? (i(), Y(Lt, {
741
+ key: 5,
742
+ hideDetails: "",
743
+ config: {
744
+ open: C.value.showTable,
745
+ maxHeight: 1e4,
746
+ body: {
747
+ backgroundColor: e.value.style.chart.backgroundColor,
748
+ color: e.value.style.chart.color
749
+ },
750
+ head: {
751
+ backgroundColor: e.value.style.chart.backgroundColor,
752
+ color: e.value.style.chart.color
753
+ }
754
+ }
755
+ }, {
756
+ content: f(() => [
757
+ re(St, {
758
+ colNames: Q.value.colNames,
759
+ head: Q.value.head,
760
+ body: Q.value.body,
761
+ config: Q.value.config,
762
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
763
+ onClose: l[4] || (l[4] = (t) => C.value.showTable = !1)
764
+ }, {
765
+ th: f(({ th: t }) => [
766
+ P("div", { innerHTML: t }, null, 8, Kt)
767
+ ]),
768
+ td: f(({ td: t }) => [
769
+ tt(N(isNaN(Number(t)) ? t : k(D)({
770
+ p: e.value.style.chart.bars.dataLabels.prefix,
771
+ v: t,
772
+ s: e.value.style.chart.bars.dataLabels.suffix,
773
+ r: e.value.table.td.roundingValue
774
+ })), 1)
775
+ ]),
776
+ _: 1
777
+ }, 8, ["colNames", "head", "body", "config", "title"])
778
+ ]),
779
+ _: 1
780
+ }, 8, ["config"])) : d("", !0)
781
+ ], 14, Tt));
782
+ }
783
+ }, da = /* @__PURE__ */ _t(Qt, [["__scopeId", "data-v-308041b6"]]);
784
+ export {
785
+ da as default
786
+ };