vue-data-ui 2.3.31 → 2.3.33

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