vue-data-ui 2.3.30 → 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 (148) hide show
  1. package/dist/{Arrow-B8z06v67.cjs → Arrow-C46rqWDg.cjs} +1 -1
  2. package/dist/{Arrow-Bh7WeO_g.js → Arrow-f_7ZlBit.js} +1 -1
  3. package/dist/{BaseIcon-BG_bJS3R.js → BaseIcon-CejyHIZM.js} +1 -1
  4. package/dist/{BaseIcon-DDCJA3rm.cjs → BaseIcon-ChS1Bl3C.cjs} +1 -1
  5. package/dist/{DataTable-Doh_4M84.cjs → DataTable-BShm3pg0.cjs} +1 -1
  6. package/dist/{DataTable-CsPidn0_.js → DataTable-Rb6wEqzD.js} +2 -2
  7. package/dist/{Legend-B20rRwGi.cjs → Legend-DUjHDr5A.cjs} +1 -1
  8. package/dist/{Legend-CkQ_zypV.js → Legend-O1l-qwSU.js} +1 -1
  9. package/dist/{Shape-B8O8_E6l.cjs → Shape-DrbNfL39.cjs} +1 -1
  10. package/dist/{Shape-B4gGeBLI.js → Shape-jOLEEcCT.js} +1 -1
  11. package/dist/{Slicer-DaEfxscP.js → Slicer-BtErYU-m.js} +1 -1
  12. package/dist/{Slicer-BXveU40S.cjs → Slicer-DMZ03tYD.cjs} +1 -1
  13. package/dist/{Title-eBTH8iGJ.js → Title-B9DAMnKW.js} +1 -1
  14. package/dist/{Title-BU6E8Xld.cjs → Title-C6kjiyFi.cjs} +1 -1
  15. package/dist/{Tooltip-B11OahTD.js → Tooltip-B7LZQUXr.js} +1 -1
  16. package/dist/{Tooltip-Oicp_EIo.cjs → Tooltip-Dc_Vk9k7.cjs} +1 -1
  17. package/dist/index-D5gus_lg.cjs +4 -0
  18. package/dist/{index-BlXzlBwZ.js → index-DyzpYx72.js} +2 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +1 -0
  21. package/dist/types/vue-data-ui.d.ts +1 -0
  22. package/dist/{useNestedProp-BoNl5H_z.js → useNestedProp-DGjp6yqE.js} +1 -1
  23. package/dist/{useNestedProp-Cggpoz7e.cjs → useNestedProp-dfy-beYA.cjs} +1 -1
  24. package/dist/{usePrinter-DoYKBzst.cjs → usePrinter-D9HscgWK.cjs} +1 -1
  25. package/dist/{usePrinter-CZ8F5Cth.js → usePrinter-_HAcfIJq.js} +1 -1
  26. package/dist/{vue-data-ui-BOqzG_nZ.js → vue-data-ui-BYwT-L-y.js} +57 -57
  27. package/dist/{vue-data-ui-CGgiWEo3.cjs → vue-data-ui-w642Au96.cjs} +1 -1
  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-CjnVg4YI.js → vue-ui-3d-bar-_idrDcTt.js} +7 -7
  31. package/dist/{vue-ui-3d-bar-CpntMt7p.cjs → vue-ui-3d-bar-uIw4YyRe.cjs} +1 -1
  32. package/dist/{vue-ui-accordion-wHRG3nXl.js → vue-ui-accordion-CQLN2WYC.js} +3 -3
  33. package/dist/{vue-ui-accordion-CTYvdLLH.cjs → vue-ui-accordion-QESF0r0U.cjs} +1 -1
  34. package/dist/{vue-ui-age-pyramid-vmCwgRy9.js → vue-ui-age-pyramid-Bj_3AooT.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-DDiL1Zje.cjs → vue-ui-age-pyramid-BqIkETbo.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-DQ3wKf9n.cjs → vue-ui-annotator-CLCPtXoo.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-9FGJdNLY.js → vue-ui-annotator-D0iuqAb9.js} +1 -1
  38. package/dist/{vue-ui-candlestick-6joQ9JKQ.cjs → vue-ui-candlestick-BBnC2umf.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-DpMr2r0i.js → vue-ui-candlestick-D8AnaGwt.js} +9 -9
  40. package/dist/{vue-ui-carousel-table-CgR4ADOz.js → vue-ui-carousel-table-CV4YRYfq.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-BV0EOLqU.cjs → vue-ui-carousel-table-DJtlOVqJ.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-CxoCcw_B.cjs → vue-ui-chestnut-CRkC7aeK.cjs} +1 -1
  43. package/dist/{vue-ui-chestnut-Ca2878kV.js → vue-ui-chestnut-DxRF0eGJ.js} +6 -6
  44. package/dist/{vue-ui-cursor-BW8C6oUc.js → vue-ui-cursor-7KMholmU.js} +2 -2
  45. package/dist/{vue-ui-cursor-DxF_gXQf.cjs → vue-ui-cursor-DxDaK5kl.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-DN4nErBZ.js → vue-ui-dashboard-BMEkgCKF.js} +2 -2
  47. package/dist/{vue-ui-dashboard-BGrVyITN.cjs → vue-ui-dashboard-CjmpoQWU.cjs} +1 -1
  48. package/dist/{vue-ui-digits-CpSKBG2c.cjs → vue-ui-digits-KxGiWJBe.cjs} +1 -1
  49. package/dist/{vue-ui-digits-CmSFSs5S.js → vue-ui-digits-slk9W4ek.js} +2 -2
  50. package/dist/{vue-ui-donut-BqfRwAIM.js → vue-ui-donut-CB3SfpSC.js} +9 -9
  51. package/dist/{vue-ui-donut-C29yXH3H.cjs → vue-ui-donut-CtkZaRur.cjs} +1 -1
  52. package/dist/{vue-ui-donut-evolution-DIR7yBUC.js → vue-ui-donut-evolution-292a6FEA.js} +9 -9
  53. package/dist/{vue-ui-donut-evolution-COFG73Xl.cjs → vue-ui-donut-evolution-CptrmAtk.cjs} +1 -1
  54. package/dist/{vue-ui-dumbbell-BASuPAvI.js → vue-ui-dumbbell-BQrhfMqP.js} +8 -8
  55. package/dist/{vue-ui-dumbbell-1NA60u3h.cjs → vue-ui-dumbbell-Dx_-QB5p.cjs} +1 -1
  56. package/dist/{vue-ui-flow-DBK7d0DQ.cjs → vue-ui-flow-C12EMKoJ.cjs} +1 -1
  57. package/dist/{vue-ui-flow-wq0aqc5r.js → vue-ui-flow-CcCeNf_k.js} +7 -7
  58. package/dist/{vue-ui-galaxy-CFQ2hQAl.js → vue-ui-galaxy-BAIRiq85.js} +9 -9
  59. package/dist/{vue-ui-galaxy-BgdVvk4N.cjs → vue-ui-galaxy-CLVcP5Qh.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-C4_kEbgg.cjs → vue-ui-gauge-eMLSa5k6.cjs} +1 -1
  61. package/dist/{vue-ui-gauge-CIN265dN.js → vue-ui-gauge-uFn_PRBN.js} +5 -5
  62. package/dist/{vue-ui-gizmo-BpT3iwC9.cjs → vue-ui-gizmo-C5hlmv34.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-DRXWEpqU.js → vue-ui-gizmo-CkmuI8hn.js} +2 -2
  64. package/dist/{vue-ui-heatmap-Dc0ft_Ga.js → vue-ui-heatmap-C3oS64to.js} +8 -8
  65. package/dist/{vue-ui-heatmap-CVD7FVfk.cjs → vue-ui-heatmap-mnnjTuAS.cjs} +1 -1
  66. package/dist/{vue-ui-kpi-DDL1TvBP.js → vue-ui-kpi-CMn14HGk.js} +2 -2
  67. package/dist/{vue-ui-kpi-WDZIt76s.cjs → vue-ui-kpi-CpFr6mya.cjs} +1 -1
  68. package/dist/{vue-ui-mini-loader-B2C5U55l.js → vue-ui-mini-loader-CxhRP0o3.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-BcGSpUfg.cjs → vue-ui-mini-loader-DAE2b1aK.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-C5BmRi2R.cjs → vue-ui-molecule-BMtrEZXu.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-CD3cPNOq.js → vue-ui-molecule-Chxy44E1.js} +9 -9
  72. package/dist/{vue-ui-mood-radar-D0KbeV5j.js → vue-ui-mood-radar-B0944MVq.js} +9 -9
  73. package/dist/{vue-ui-mood-radar-afS64zg-.cjs → vue-ui-mood-radar-D70upaRv.cjs} +1 -1
  74. package/dist/{vue-ui-nested-donuts-D-TeyOtL.cjs → vue-ui-nested-donuts-C8U02J9G.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-BGoc1RFX.js → vue-ui-nested-donuts-Ct26fYcZ.js} +9 -9
  76. package/dist/{vue-ui-onion-B_khL0Kv.js → vue-ui-onion-BuAA53Z4.js} +9 -9
  77. package/dist/{vue-ui-onion-CFdbWLu3.cjs → vue-ui-onion-D7jdX-jE.cjs} +1 -1
  78. package/dist/{vue-ui-parallel-coordinate-plot-CP4V0K8m.js → vue-ui-parallel-coordinate-plot-DR7GBD64.js} +247 -237
  79. package/dist/vue-ui-parallel-coordinate-plot-DTXr6rYS.cjs +8 -0
  80. package/dist/{vue-ui-quadrant-C1YbjeI7.js → vue-ui-quadrant-D6XUNhwO.js} +10 -10
  81. package/dist/{vue-ui-quadrant-C6-A8Gx_.cjs → vue-ui-quadrant-DjY4UFmX.cjs} +1 -1
  82. package/dist/{vue-ui-quick-chart-CtWhs_2c.js → vue-ui-quick-chart-CHWpjYVZ.js} +6 -6
  83. package/dist/{vue-ui-quick-chart-ConXdEsU.cjs → vue-ui-quick-chart-a7twDc_t.cjs} +1 -1
  84. package/dist/{vue-ui-radar-DMJLLVWb.cjs → vue-ui-radar-BPH8c93c.cjs} +1 -1
  85. package/dist/{vue-ui-radar-B2vAPYa7.js → vue-ui-radar-w8--R-ur.js} +10 -10
  86. package/dist/{vue-ui-rating-DhZ0tltR.cjs → vue-ui-rating-Dfk9Umrh.cjs} +1 -1
  87. package/dist/{vue-ui-rating-xGz4av68.js → vue-ui-rating-DyAunqH4.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-BQK8wMQE.js → vue-ui-relation-circle-BCCHpnpL.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-hb4Q051h.cjs → vue-ui-relation-circle-COsMXD8M.cjs} +1 -1
  90. package/dist/{vue-ui-rings-ZKjhNx5K.js → vue-ui-rings-COm1RO2W.js} +9 -9
  91. package/dist/{vue-ui-rings-D1EW3d4M.cjs → vue-ui-rings-DrrT1cJn.cjs} +1 -1
  92. package/dist/{vue-ui-scatter-CMRe2b2K.cjs → vue-ui-scatter-BwlMCoqN.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-CHONk8k0.js → vue-ui-scatter-ZjouDP_2.js} +10 -10
  94. package/dist/{vue-ui-screenshot-DmGe5ptH.js → vue-ui-screenshot-D0E4gBJg.js} +1 -1
  95. package/dist/{vue-ui-screenshot-DcKhT745.cjs → vue-ui-screenshot-DCAQ7EZR.cjs} +1 -1
  96. package/dist/{vue-ui-skeleton-CJ2R5R6u.js → vue-ui-skeleton-HxNUOQim.js} +2 -2
  97. package/dist/{vue-ui-skeleton-j-IOiy5w.cjs → vue-ui-skeleton-lzhZVBa5.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-D5Jn6d5f.cjs → vue-ui-smiley-BNglGFZl.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-DXVcosKR.js → vue-ui-smiley-xoGBumeP.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-CWH3W7h3.cjs → vue-ui-spark-trend-9z2-nnDf.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-Gg6TxR4m.js → vue-ui-spark-trend-BP91Hhbk.js} +4 -4
  102. package/dist/{vue-ui-sparkbar-DUx1qVzQ.js → vue-ui-sparkbar-BV7lv1Mc.js} +3 -3
  103. package/dist/{vue-ui-sparkbar-BsoKTXr2.cjs → vue-ui-sparkbar-CBwEk4Sp.cjs} +1 -1
  104. package/dist/{vue-ui-sparkgauge-xrvp9g87.js → vue-ui-sparkgauge-DAcXHJe3.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-DPusPoRv.cjs → vue-ui-sparkgauge-mf9TWCfM.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram---JRg2R1.cjs → vue-ui-sparkhistogram-BLG-wdNd.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-DzYXMNj8.js → vue-ui-sparkhistogram-Cw8kAsVJ.js} +4 -4
  108. package/dist/{vue-ui-sparkline-1Z6GnwoN.cjs → vue-ui-sparkline-BIxUq0a0.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-CGWePkVI.js → vue-ui-sparkline-DtMX5BBW.js} +3 -3
  110. package/dist/{vue-ui-sparkstackbar-DFgeRAbQ.js → vue-ui-sparkstackbar-Boz0na6c.js} +3 -3
  111. package/dist/{vue-ui-sparkstackbar-DCc68t8g.cjs → vue-ui-sparkstackbar-CcNK8jkC.cjs} +1 -1
  112. package/dist/vue-ui-stackbar-DFK6zb17.cjs +6 -0
  113. package/dist/vue-ui-stackbar-Yj49aOwn.js +786 -0
  114. package/dist/{vue-ui-strip-plot-DZt1Wq20.cjs → vue-ui-strip-plot-BUpDy3ST.cjs} +1 -1
  115. package/dist/{vue-ui-strip-plot-BFqd-S7c.js → vue-ui-strip-plot-CTVAbRx1.js} +9 -9
  116. package/dist/{vue-ui-table-CMvyMuc4.cjs → vue-ui-table-Bn0Sh_ll.cjs} +1 -1
  117. package/dist/{vue-ui-table-DtwEoIzI.js → vue-ui-table-JW8Ddbcv.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-3RSMOHkc.cjs → vue-ui-table-heatmap-CBt2T6Fi.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-C8b3pE04.js → vue-ui-table-heatmap-D_hgGOnV.js} +4 -4
  120. package/dist/{vue-ui-table-sparkline-BKOaVFtt.cjs → vue-ui-table-sparkline-CE15fs3Z.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-BrqhBv29.js → vue-ui-table-sparkline-lTi-b4a9.js} +5 -5
  122. package/dist/{vue-ui-thermometer-CKgIqM5y.cjs → vue-ui-thermometer-CnOa_c88.cjs} +1 -1
  123. package/dist/{vue-ui-thermometer-DMkLvJgE.js → vue-ui-thermometer-DDaejskt.js} +5 -5
  124. package/dist/{vue-ui-timer-RA9yfgBk.js → vue-ui-timer-BTkcHF3d.js} +4 -4
  125. package/dist/{vue-ui-timer-D7fvoR77.cjs → vue-ui-timer-DFN5EbaX.cjs} +1 -1
  126. package/dist/{vue-ui-tiremarks-C7y6Mbxe.cjs → vue-ui-tiremarks-CHMhRw0X.cjs} +1 -1
  127. package/dist/{vue-ui-tiremarks-B_EncUi6.js → vue-ui-tiremarks-CaCbMety.js} +5 -5
  128. package/dist/{vue-ui-treemap-CfngjVUS.cjs → vue-ui-treemap-BKRQnqlg.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-BuGZgQsr.js → vue-ui-treemap-CRGZXH3Z.js} +9 -9
  130. package/dist/vue-ui-vertical-bar-DppxsDym.cjs +4 -0
  131. package/dist/vue-ui-vertical-bar-OiHb4ABm.js +805 -0
  132. package/dist/{vue-ui-waffle-BJFbhWnA.cjs → vue-ui-waffle-CIoGXtZP.cjs} +1 -1
  133. package/dist/{vue-ui-waffle-CrxmrYsV.js → vue-ui-waffle-ChcZm0_Q.js} +55 -55
  134. package/dist/{vue-ui-wheel-BDRvKR1Z.cjs → vue-ui-wheel-BVDHANbp.cjs} +1 -1
  135. package/dist/{vue-ui-wheel-DOyC7NgR.js → vue-ui-wheel-DRgqt22e.js} +5 -5
  136. package/dist/{vue-ui-word-cloud-DBxVNlJ3.js → vue-ui-word-cloud-B2OjEeWK.js} +7 -7
  137. package/dist/{vue-ui-word-cloud-Dmcelg3z.cjs → vue-ui-word-cloud-BbAFa1J5.cjs} +1 -1
  138. package/dist/{vue-ui-xy-CVKaR90p.cjs → vue-ui-xy-6Qnf5k-u.cjs} +1 -1
  139. package/dist/{vue-ui-xy-BIbvJSh2.js → vue-ui-xy-Cf3D_9Em.js} +12 -12
  140. package/dist/{vue-ui-xy-canvas-2AaNivzI.cjs → vue-ui-xy-canvas-ZvG2lyjk.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-CXVni3kC.js → vue-ui-xy-canvas-ihJeRvA1.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/index-hKWfT7Wa.cjs +0 -4
  144. package/dist/vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs +0 -8
  145. package/dist/vue-ui-stackbar-B0dWToaf.js +0 -765
  146. package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +0 -15
  147. package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +0 -4
  148. package/dist/vue-ui-vertical-bar-T4bFd3JF.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-BlXzlBwZ.js";
3
- import { u as _e } from "./useNestedProp-BoNl5H_z.js";
4
- import { t as at, u as lt } from "./useResponsive-NZB-WLRF.js";
5
- import { u as ot, U as rt } from "./usePrinter-CZ8F5Cth.js";
6
- import { S as st } from "./Slicer-DaEfxscP.js";
7
- import { _ as ut } from "./Tooltip-B11OahTD.js";
8
- import { _ as it } from "./Title-eBTH8iGJ.js";
9
- import { L as nt } from "./Legend-CkQ_zypV.js";
10
- import ct from "./vue-ui-accordion-wHRG3nXl.js";
11
- import { D as vt } from "./DataTable-CsPidn0_.js";
12
- import dt from "./vue-ui-skeleton-CJ2R5R6u.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
- };