vue-data-ui 2.4.40 → 2.4.42

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 (167) hide show
  1. package/dist/{Arrow-DkayNE_-.js → Arrow-DE71uBJZ.js} +1 -1
  2. package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-DTscDttD.cjs} +1 -1
  3. package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-C8XxmpRq.js} +1 -1
  4. package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
  5. package/dist/{DataTable-BB87HJ5b.cjs → DataTable-DEdQvqB1.cjs} +1 -1
  6. package/dist/{DataTable-BuiPd6c1.js → DataTable-D_w08xos.js} +2 -2
  7. package/dist/{Legend-BRVDmlwW.js → Legend-BWDoQii_.js} +1 -1
  8. package/dist/{Legend-D2Yi-COI.cjs → Legend-C4rlR-Ge.cjs} +1 -1
  9. package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-CH6MCx6T.js} +1 -1
  10. package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
  11. package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BWTR3U2d.js} +3 -3
  12. package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
  13. package/dist/{Shape-DVggzfpA.cjs → Shape-BLS-KzBD.cjs} +1 -1
  14. package/dist/{Shape-Dwxh0EWa.js → Shape-xrlfL_v4.js} +1 -1
  15. package/dist/Slicer-8gKX0l4Q.cjs +1 -0
  16. package/dist/Slicer-DIYseEL1.js +423 -0
  17. package/dist/{Title-RB80eFiD.cjs → Title-B-xkTfi8.cjs} +1 -1
  18. package/dist/{Title-BFvWnqI4.js → Title-Cnl9ySNH.js} +1 -1
  19. package/dist/Tooltip-Brbj6DqX.cjs +1 -0
  20. package/dist/{Tooltip-RHI1EGzy.js → Tooltip-DEAOBZ8h.js} +33 -25
  21. package/dist/index-B68kzBN9.cjs +9 -0
  22. package/dist/{index-DY8hDTi7.js → index-DnukYspq.js} +56 -43
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +13 -0
  25. package/dist/types/vue-data-ui.d.ts +13 -0
  26. package/dist/{useNestedProp-lhL30X68.js → useNestedProp-CVOQGx-X.js} +1 -1
  27. package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
  28. package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-C9yUesCc.cjs} +1 -1
  29. package/dist/{usePrinter-DjAQofRy.js → usePrinter-DVIALk5e.js} +1 -1
  30. package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-BmmjmNbb.js} +60 -60
  31. package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +3 -3
  34. package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-f9NTID9e.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
  40. package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-C82vEb7R.js} +1 -1
  41. package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
  43. package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
  44. package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
  45. package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
  46. package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
  48. package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
  51. package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
  54. package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
  55. package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-DtNvb8lM.js} +2 -2
  56. package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-C028OlzU.js} +99 -98
  57. package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
  58. package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
  59. package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
  62. package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-QRimZUXT.js} +46 -46
  63. package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CBymVSdd.js} +19 -19
  66. package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
  68. package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
  69. package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
  74. package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
  75. package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
  76. package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-CZi84tUl.js} +26 -25
  82. package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
  85. package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
  86. package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-CIRGvycb.js} +49 -48
  87. package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
  88. package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
  89. package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
  90. package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
  91. package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
  93. package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
  94. package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-CXXAYowO.js} +38 -37
  95. package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
  96. package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DOqMciYJ.js} +2 -2
  97. package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
  98. package/dist/vue-ui-relation-circle-BEv568py.cjs +1 -0
  99. package/dist/vue-ui-relation-circle-CR3iWQV_.js +492 -0
  100. package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-B--CFaNX.js} +49 -48
  101. package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
  102. package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-C-RD4h73.js} +26 -25
  103. package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
  105. package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
  107. package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
  118. package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
  119. package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
  120. package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
  122. package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
  123. package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
  124. package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
  125. package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
  126. package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-CS-NSZjj.js} +1 -1
  127. package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
  129. package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
  134. package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
  135. package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
  136. package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
  138. package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
  139. package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
  141. package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
  142. package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-DYdcFM17.js} +79 -78
  144. package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
  145. package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
  148. package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-B3346TfB.js} +195 -185
  149. package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
  150. package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
  151. package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
  152. package/package.json +1 -1
  153. package/dist/Slicer-BXHFpzP5.cjs +0 -1
  154. package/dist/Slicer-D7x1gyjP.js +0 -400
  155. package/dist/Tooltip-BC1YZMi2.cjs +0 -1
  156. package/dist/index--lHmCKjC.cjs +0 -9
  157. package/dist/vue-ui-candlestick-CVJB9WMH.js +0 -725
  158. package/dist/vue-ui-candlestick-Cb7CgmeV.cjs +0 -2
  159. package/dist/vue-ui-donut-evolution-DWdf8MKP.cjs +0 -1
  160. package/dist/vue-ui-donut-evolution-KdVsB3m_.js +0 -895
  161. package/dist/vue-ui-quick-chart-79l8Uv8o.cjs +0 -15
  162. package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
  163. package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
  164. package/dist/vue-ui-rings-L8pGRQbs.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BtOrW2Ml.cjs +0 -6
  166. package/dist/vue-ui-xy-Cqb73yZ3.cjs +0 -3
  167. package/dist/vue-ui-xy-canvas-7OwcP1-L.cjs +0 -9
@@ -1,22 +1,22 @@
1
- import { computed as p, ref as g, onMounted as Xe, watch as Ue, openBlock as s, createElementBlock as n, normalizeClass as ye, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as se, unref as z, createSlots as xt, withCtx as C, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as f, createElementVNode as H, toDisplayString as S, createTextVNode as kt } from "vue";
2
- import { u as wt, c as Ye, t as Ct, a as _t, p as ie, M as Ge, b as zt, o as Lt, e as Je, g as St, d as $t, a7 as ne, a3 as qe, C as Ze, X as Mt, l as Tt, F as Ke, f as B, x as Qe, i as je, y as Nt, q as Ot, r as Pt } from "./index-DY8hDTi7.js";
3
- import { u as et } from "./useNestedProp-lhL30X68.js";
4
- import { t as At, u as Rt } from "./useResponsive-CoxXLe23.js";
5
- import { u as It, U as Ft } from "./usePrinter-DjAQofRy.js";
6
- import { S as Vt } from "./Slicer-D7x1gyjP.js";
7
- import { _ as Dt } from "./Tooltip-RHI1EGzy.js";
8
- import { _ as Et } from "./Title-BFvWnqI4.js";
9
- import { L as Ht } from "./Legend-BRVDmlwW.js";
10
- import Bt from "./vue-ui-accordion-xK9e3wkz.js";
11
- import { D as Wt } from "./DataTable-BuiPd6c1.js";
12
- import Xt from "./vue-ui-skeleton-FCpm0_eE.js";
13
- import { _ as Ut } from "./PackageVersion-BT4zkGPO.js";
14
- import { P as Yt } from "./PenAndPaper-BFq1cFfJ.js";
15
- import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt = ["stop-color"], jt = ["stop-color"], ea = ["stop-color"], ta = ["x1", "x2", "y1", "y2", "stroke"], aa = ["x1", "x2", "y1", "y2", "stroke"], la = ["x1", "x2", "y1", "y2", "stroke"], oa = ["x1", "x2", "y1", "y2", "stroke"], ra = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], sa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ua = ["x", "y", "font-size", "fill", "font-weight"], ca = ["transform", "font-size", "fill", "font-weight"], va = ["x", "y", "font-size", "fill", "font-weight"], ha = { key: 0 }, da = ["x", "y", "font-size", "font-weight", "fill"], ya = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 0 }, ba = ["x", "y", "font-size", "font-weight", "fill"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x", "y", "font-size", "font-weight", "fill"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = ["font-size", "font-weight", "fill", "text-anchor", "transform"], ka = ["text-anchor", "font-size", "font-weight", "fill", "transform"], wa = ["font-size", "font-weight", "fill", "x", "y"], Ca = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], _a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], za = {
1
+ import { computed as x, ref as d, onMounted as Je, watch as qe, nextTick as ne, openBlock as s, createElementBlock as n, normalizeClass as me, normalizeStyle as U, createBlock as Y, createCommentVNode as v, renderSlot as k, createVNode as ue, unref as _, createSlots as Ct, withCtx as z, normalizeProps as D, guardReactiveProps as E, Fragment as h, renderList as m, createElementVNode as H, toDisplayString as S, createTextVNode as _t } from "vue";
2
+ import { u as Lt, c as Ze, t as St, a as $t, p as ce, C as ve, b as Mt, o as Tt, e as Ke, g as Nt, d as It, a7 as he, a3 as Qe, D as je, X as Pt, l as Ot, G as et, f as B, x as tt, i as at, y as At, q as Rt, r as Vt } from "./index-DnukYspq.js";
3
+ import { u as lt } from "./useNestedProp-CVOQGx-X.js";
4
+ import { t as Ft, u as Dt } from "./useResponsive-CoxXLe23.js";
5
+ import { u as Et, U as Ht } from "./usePrinter-DVIALk5e.js";
6
+ import { S as Bt } from "./Slicer-DIYseEL1.js";
7
+ import { _ as Wt } from "./Tooltip-DEAOBZ8h.js";
8
+ import { _ as Xt } from "./Title-Cnl9ySNH.js";
9
+ import { L as Gt } from "./Legend-BWDoQii_.js";
10
+ import Ut from "./vue-ui-accordion-f9NTID9e.js";
11
+ import { D as Yt } from "./DataTable-D_w08xos.js";
12
+ import Jt from "./vue-ui-skeleton-CXdyOF4T.js";
13
+ import { _ as qt } from "./PackageVersion-CH6MCx6T.js";
14
+ import { P as Zt } from "./PenAndPaper-BWTR3U2d.js";
15
+ import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Qt = ["id"], jt = ["xmlns", "viewBox"], ea = { key: 0 }, ta = ["id"], aa = ["stop-color"], la = ["stop-color"], oa = ["stop-color"], ra = ["x1", "x2", "y1", "y2", "stroke"], sa = ["x1", "x2", "y1", "y2", "stroke"], ia = ["x1", "x2", "y1", "y2", "stroke"], na = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], ca = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], da = ["x", "y", "font-size", "fill", "font-weight"], ya = ["transform", "font-size", "fill", "font-weight"], ga = ["x", "y", "font-size", "fill", "font-weight"], ba = { key: 0 }, fa = ["x", "y", "font-size", "font-weight", "fill"], ma = ["x", "y", "font-size", "fill", "font-weight"], pa = { key: 0 }, xa = ["x", "y", "font-size", "font-weight", "fill"], ka = ["x1", "x2", "y1", "y2", "stroke"], wa = ["x", "y", "font-size", "font-weight", "fill"], za = ["x1", "x2", "y1", "y2", "stroke"], Ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], _a = ["text-anchor", "font-size", "font-weight", "fill", "transform"], La = ["font-size", "font-weight", "fill", "x", "y"], Sa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], $a = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ma = {
17
17
  key: 4,
18
18
  class: "vue-data-ui-watermark"
19
- }, La = ["onClick"], Sa = ["innerHTML"], $a = {
19
+ }, Ta = ["onClick"], Na = ["innerHTML"], Ia = {
20
20
  __name: "vue-ui-stackbar",
21
21
  props: {
22
22
  config: {
@@ -33,51 +33,51 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
33
33
  }
34
34
  },
35
35
  emits: ["selectDatapoint", "selectLegend"],
36
- setup(ge, { expose: tt, emit: be }) {
37
- const x = ge, { vue_ui_stackbar: at } = wt(), W = p({
36
+ setup(de, { expose: ot, emit: pe }) {
37
+ const y = de, { vue_ui_stackbar: rt } = Lt(), W = x({
38
38
  get() {
39
- return !!x.dataset && x.dataset.length;
39
+ return !!y.dataset && y.dataset.length;
40
40
  },
41
41
  set(a) {
42
42
  return a;
43
43
  }
44
- }), X = g(null), ue = g(Ye()), j = g(!1), fe = g(null), ce = g(""), L = g([]), me = g(0), pe = g(null), xe = g(null), ke = g(null), we = g(null), Ce = g(0), ve = g(!1), G = g(null), J = g(!1), lt = g(0), ot = g(0), rt = g(0);
45
- Xe(() => {
46
- he();
44
+ }), X = d(null), ye = d(Ze()), ee = d(!1), xe = d(null), ge = d(""), L = d([]), ke = d(0), we = d(null), ze = d(null), Ce = d(null), _e = d(null), Le = d(0), te = d(!1), J = d(null), q = d(!1), st = d(0), it = d(0), nt = d(0), G = d(null);
45
+ Je(() => {
46
+ be();
47
47
  });
48
- const e = p({
49
- get: () => _e(),
48
+ const e = x({
49
+ get: () => Se(),
50
50
  set: (a) => a
51
51
  });
52
- function _e() {
53
- const a = et({
54
- userConfig: x.config,
55
- defaultConfig: at
52
+ function Se() {
53
+ const a = lt({
54
+ userConfig: y.config,
55
+ defaultConfig: rt
56
56
  });
57
- let o = {};
58
- return a.theme ? o = {
59
- ...et({
60
- userConfig: Ct.vue_ui_stackbar[a.theme] || x.config,
57
+ let l = {};
58
+ return a.theme ? l = {
59
+ ...lt({
60
+ userConfig: St.vue_ui_stackbar[a.theme] || y.config,
61
61
  defaultConfig: a
62
62
  }),
63
- customPalette: _t[a.theme] || ie
64
- } : o = a, x.config && Ge(x.config, "style.chart.grid.scale.scaleMin") ? o.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : o.style.chart.grid.scale.scaleMin = null, x.config && Ge(x.config, "style.chart.grid.scale.scaleMax") ? o.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : o.style.chart.grid.scale.scaleMax = null, o;
63
+ customPalette: $t[a.theme] || ce
64
+ } : l = a, y.config && ve(y.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = y.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, y.config && ve(y.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = y.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, y.config && ve(y.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = y.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, y.config && ve(y.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = y.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
65
65
  }
66
- Ue(() => x.config, (a) => {
67
- e.value = _e(), he(), lt.value += 1, ot.value += 1, rt.value += 1;
68
- }, { deep: !0 }), Ue(() => x.dataset, (a) => {
69
- Ne();
66
+ qe(() => y.config, (a) => {
67
+ e.value = Se(), be(), st.value += 1, it.value += 1, nt.value += 1;
68
+ }, { deep: !0 }), qe(() => y.dataset, (a) => {
69
+ Oe();
70
70
  }, { deep: !0 });
71
- const _ = g({
71
+ const C = d({
72
72
  dataLabels: {
73
73
  show: e.value.style.chart.bars.dataLabels.show
74
74
  },
75
75
  showTable: e.value.table.show,
76
76
  showTooltip: e.value.style.chart.tooltip.show
77
- }), { isPrinting: ze, isImaging: Le, generatePdf: Se, generateImage: $e } = It({
78
- elementId: `stackbar_${ue.value}`,
77
+ }), { isPrinting: $e, isImaging: Me, generatePdf: Te, generateImage: Ne } = Et({
78
+ elementId: `stackbar_${ye.value}`,
79
79
  fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
80
- }), ee = g({
80
+ }), ae = d({
81
81
  width: e.value.style.chart.width,
82
82
  height: e.value.style.chart.height,
83
83
  paddingRatio: {
@@ -86,148 +86,156 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
86
86
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
87
87
  left: e.value.style.chart.padding.left / e.value.style.chart.width
88
88
  }
89
- }), st = p(() => zt(e.value.customPalette)), Me = g(null), Te = g(null);
90
- Xe(() => {
91
- he();
89
+ }), ut = x(() => Mt(e.value.customPalette)), Ie = d(null), Pe = d(null);
90
+ Je(() => {
91
+ be();
92
92
  });
93
- function he() {
94
- if (Lt(x.dataset) ? Je({
93
+ function be() {
94
+ if (Tt(y.dataset) ? Ke({
95
95
  componentName: "VueUiStackbar",
96
96
  type: "dataset"
97
- }) : x.dataset.forEach((a, o) => {
98
- St({
97
+ }) : y.dataset.forEach((a, l) => {
98
+ Nt({
99
99
  datasetObject: a,
100
100
  requiredAttributes: ["name", "series"]
101
101
  }).forEach((t) => {
102
- W.value = !1, Je({
102
+ W.value = !1, Ke({
103
103
  componentName: "VueUiStackbar",
104
104
  type: "datasetSerieAttribute",
105
105
  property: t,
106
- index: o
106
+ index: l
107
107
  });
108
108
  });
109
109
  }), setTimeout(() => {
110
- J.value = !0;
110
+ q.value = !0;
111
111
  }, 10), e.value.responsive) {
112
- const a = At(() => {
113
- J.value = !1;
114
- const { width: o, height: t } = Rt({
112
+ const a = Ft(() => {
113
+ q.value = !1;
114
+ const { width: l, height: t } = Dt({
115
115
  chart: X.value,
116
- title: e.value.style.chart.title.text ? pe.value : null,
117
- legend: e.value.style.chart.legend.show ? xe.value : null,
118
- slicer: e.value.style.chart.zoom.show && A.value > 1 ? ke.value : null,
119
- source: we.value
116
+ title: e.value.style.chart.title.text ? we.value : null,
117
+ legend: e.value.style.chart.legend.show ? ze.value : null,
118
+ slicer: e.value.style.chart.zoom.show && O.value > 1 ? Ce.value : null,
119
+ source: _e.value
120
120
  });
121
- ee.value.width = o, ee.value.height = t, clearTimeout(Te.value), Te.value = setTimeout(() => {
122
- J.value = !0;
121
+ ae.value.width = l, ae.value.height = t, clearTimeout(Pe.value), Pe.value = setTimeout(() => {
122
+ q.value = !0;
123
123
  }, 10);
124
124
  });
125
- Me.value = new ResizeObserver(a), Me.value.observe(X.value.parentNode);
125
+ Ie.value = new ResizeObserver(a), Ie.value.observe(X.value.parentNode);
126
126
  }
127
+ Ae();
127
128
  }
128
- const r = p(() => {
129
- const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, R = o - w - o * t, I = a - l - e.value.style.chart.padding.bottom;
129
+ const r = x(() => {
130
+ const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, o = e.value.style.chart.padding.top, i = l - l * t, u = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, A = l - w - l * t, R = a - o - e.value.style.chart.padding.bottom;
130
131
  return {
131
132
  chartHeight: a,
132
- chartWidth: o,
133
- top: l,
133
+ chartWidth: l,
134
+ top: o,
134
135
  right: i,
135
136
  bottom: u,
136
137
  left: w,
137
- width: R,
138
- height: I < 0 ? 0 : I
138
+ width: A,
139
+ height: R < 0 ? 0 : R
139
140
  };
140
- }), P = p(() => x.dataset.map((a, o) => {
141
- const t = $t(a.color) || st.value[o] || ie[o] || ie[o % ie.length];
141
+ }), P = x(() => y.dataset.map((a, l) => {
142
+ const t = It(a.color) || ut.value[l] || ce[l] || ce[l % ce.length];
142
143
  return {
143
144
  ...a,
144
145
  // In distributed mode, all values are converted to positive
145
- series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
146
+ series: JSON.parse(JSON.stringify(a.series)).map((o) => e.value.style.chart.bars.distributed ? Math.abs(o) : o),
146
147
  // Store signs to manage display of neg values in distributed mode
147
- signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
148
- absoluteIndex: o,
149
- id: Ye(),
148
+ signedSeries: a.series.map((o) => o >= 0 ? 1 : -1),
149
+ absoluteIndex: l,
150
+ id: Ze(),
150
151
  color: t
151
152
  };
152
- })), A = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = g({
153
+ })), O = x(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = d({
153
154
  start: 0,
154
- end: Math.max(...x.dataset.map((a) => a.series.length))
155
+ end: Math.max(...y.dataset.map((a) => a.series.length))
155
156
  });
156
- function Ne() {
157
- c.value = {
157
+ function Oe() {
158
+ Ae();
159
+ }
160
+ async function Ae() {
161
+ (e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(ct(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
158
162
  start: 0,
159
- end: Math.max(...x.dataset.map((a) => a.series.length))
160
- }, Ce.value += 1;
163
+ end: Math.max(...y.dataset.map((a) => a.series.length))
164
+ }, Le.value += 1);
165
+ }
166
+ function ct(a) {
167
+ const l = Math.max(...y.dataset.map((t) => t.series.length));
168
+ return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
161
169
  }
162
- const d = p(() => {
170
+ const g = x(() => {
163
171
  let a;
164
172
  return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
165
- }), q = p(() => ne(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), it = p(() => ne(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
173
+ }), Z = x(() => he(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), vt = x(() => he(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
166
174
  ...a,
167
- series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
168
- }))).slice(c.value.start, c.value.end)), te = p(() => {
169
- const a = P.value.filter((o) => !L.value.includes(o.id));
175
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
176
+ }))).slice(c.value.start, c.value.end)), le = x(() => {
177
+ const a = P.value.filter((l) => !L.value.includes(l.id));
170
178
  return {
171
- positive: ne(a.map((o) => ({
172
- ...o,
173
- series: o.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
179
+ positive: he(a.map((l) => ({
180
+ ...l,
181
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
174
182
  }))),
175
- negative: ne(a.map((o) => ({
176
- ...o,
177
- series: o.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
183
+ negative: he(a.map((l) => ({
184
+ ...l,
185
+ series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
178
186
  })))
179
187
  };
180
- }), N = p(() => {
181
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), o = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ze(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
182
- return l.ticks.map((i) => ({
183
- zero: r.value.bottom - r.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
184
- y: r.value.bottom - r.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
188
+ }), N = x(() => {
189
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...le.value.positive), l = Math.min(...le.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, o = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Qe(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : je(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
190
+ return o.ticks.map((i) => ({
191
+ zero: r.value.bottom - r.value.height * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
192
+ y: r.value.bottom - r.value.height * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
185
193
  x: r.value.left - 8,
186
- horizontal_zero: r.value.left + r.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
187
- horizontal_x: r.value.left + r.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
194
+ horizontal_zero: r.value.left + r.value.width * (Math.abs(o.min) / (o.max + Math.abs(o.min))),
195
+ horizontal_x: r.value.left + r.value.width * ((i + Math.abs(o.min)) / (o.max + Math.abs(o.min))),
188
196
  horizontal_y: r.value.bottom - 8,
189
197
  value: i
190
198
  }));
191
- }), Z = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
199
+ }), K = x(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), p = x(() => {
192
200
  if (!W.value) return [];
193
- let a = Array(A.value).fill(0), o = Array(A.value).fill(0), t = Array(A.value).fill(0), l = Array(A.value).fill(0);
194
- const i = Math.max(...te.value.positive) || 0, u = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, R = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Ze(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: I, max: K } = R, F = K + (I >= 0 ? 0 : Math.abs(I)) || 1, $ = r.value.height, re = r.value.width, Be = N.value[0] ? N.value[0].zero : r.value.bottom, We = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
195
- return P.value.filter((Q) => !L.value.includes(Q.id)).map((Q) => {
196
- const O = Q.series.slice(c.value.start, c.value.end), ht = Q.signedSeries.slice(c.value.start, c.value.end), dt = O.map((y, b) => r.value.left + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), yt = O.map((y, b) => r.value.top + d.value * b + d.value * e.value.style.chart.bars.gapRatio / 4), gt = O.map((y, b) => {
197
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
198
- let V, T;
199
- return y > 0 ? (T = $ * M, V = Be - T - a[b], a[b] += T) : (T = $ * M, V = Be + t[b], t[b] += Math.abs(T)), V;
200
- }), bt = O.map((y, b) => {
201
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
202
- let V, T;
203
- return y > 0 ? (T = re * M, V = We + o[b], o[b] += T) : (T = re * M, V = We - Math.abs(T) - l[b], l[b] += Math.abs(T)), V;
204
- }), ft = O.map((y, b) => {
205
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
206
- return y > 0 ? $ * M : $ * Math.abs(M);
207
- }), mt = O.map((y, b) => {
208
- const M = e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / F;
209
- return y > 0 ? re * M : re * Math.abs(M);
210
- }), pt = O.map((y) => Math.abs(y)).reduce((y, b) => y + b, 0);
201
+ let a = Array(O.value).fill(0), l = Array(O.value).fill(0), t = Array(O.value).fill(0), o = Array(O.value).fill(0);
202
+ const i = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, A = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Qe(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : je(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: R, max: Q } = A, V = Q + (R >= 0 ? 0 : Math.abs(R)) || 1, $ = r.value.height, ie = r.value.width, Ue = N.value[0] ? N.value[0].zero : r.value.bottom, Ye = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
203
+ return P.value.filter((j) => !L.value.includes(j.id)).map((j) => {
204
+ const I = j.series.slice(c.value.start, c.value.end), bt = j.signedSeries.slice(c.value.start, c.value.end), ft = I.map((b, f) => r.value.left + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), mt = I.map((b, f) => r.value.top + g.value * f + g.value * e.value.style.chart.bars.gapRatio / 4), pt = I.map((b, f) => {
205
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
206
+ let F, T;
207
+ return b > 0 ? (T = $ * M, F = Ue - T - a[f], a[f] += T) : (T = $ * M, F = Ue + t[f], t[f] += Math.abs(T)), F;
208
+ }), xt = I.map((b, f) => {
209
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
210
+ let F, T;
211
+ return b > 0 ? (T = ie * M, F = Ye + l[f], l[f] += T) : (T = ie * M, F = Ye - Math.abs(T) - o[f], o[f] += Math.abs(T)), F;
212
+ }), kt = I.map((b, f) => {
213
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
214
+ return b > 0 ? $ * M : $ * Math.abs(M);
215
+ }), wt = I.map((b, f) => {
216
+ const M = e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / V;
217
+ return b > 0 ? ie * M : ie * Math.abs(M);
218
+ }), zt = I.map((b) => Math.abs(b)).reduce((b, f) => b + f, 0);
211
219
  return {
212
- ...Q,
213
- proportions: O.map((y, b) => e.value.style.chart.bars.distributed ? (y || 0) / q.value[b] : (y || 0) / pt),
214
- series: O,
215
- signedSeries: ht,
216
- x: dt,
217
- y: gt,
218
- height: ft,
219
- horizontal_width: mt,
220
- horizontal_y: yt,
221
- horizontal_x: bt
220
+ ...j,
221
+ proportions: I.map((b, f) => e.value.style.chart.bars.distributed ? (b || 0) / Z.value[f] : (b || 0) / zt),
222
+ series: I,
223
+ signedSeries: bt,
224
+ x: ft,
225
+ y: pt,
226
+ height: kt,
227
+ horizontal_width: wt,
228
+ horizontal_y: mt,
229
+ horizontal_x: xt
222
230
  };
223
231
  });
224
- }), Oe = p(() => it.value.map((a, o) => ({
232
+ }), Re = x(() => vt.value.map((a, l) => ({
225
233
  value: a,
226
234
  sign: a >= 0 ? 1 : -1
227
235
  })));
228
- function ae(a, o, t, l, i) {
236
+ function oe(a, l, t, o, i) {
229
237
  const u = i === -1 && a >= 0 ? -a : a;
230
- return je(
238
+ return at(
231
239
  e.value.style.chart.bars.dataLabels.formatter,
232
240
  u,
233
241
  B({
@@ -236,11 +244,11 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
236
244
  s: e.value.style.chart.bars.dataLabels.suffix,
237
245
  r: e.value.style.chart.bars.dataLabels.rounding
238
246
  }),
239
- { datapoint: o, seriesIndex: t, datapointIndex: l }
247
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
240
248
  );
241
249
  }
242
- function Pe(a, o, t, l) {
243
- return je(
250
+ function Ve(a, l, t, o) {
251
+ return at(
244
252
  e.value.style.chart.bars.dataLabels.formatter,
245
253
  a,
246
254
  B({
@@ -248,38 +256,38 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
248
256
  s: "%",
249
257
  r: e.value.style.chart.bars.dataLabels.rounding
250
258
  }),
251
- { datapoint: o, seriesIndex: t, datapointIndex: l }
259
+ { datapoint: l, seriesIndex: t, datapointIndex: o }
252
260
  );
253
261
  }
254
- function Ae(a) {
255
- const o = JSON.parse(JSON.stringify(m.value)).map((t) => ({
262
+ function Fe(a) {
263
+ const l = JSON.parse(JSON.stringify(p.value)).map((t) => ({
256
264
  name: t.name,
257
265
  value: t.series[a] === 0 ? 0 : t.series[a] || null,
258
266
  proportion: t.proportions[a] || null,
259
267
  color: t.color,
260
268
  id: t.id
261
269
  }));
262
- be("selectDatapoint", { datapoint: o, period: Z.value[a] });
270
+ pe("selectDatapoint", { datapoint: l, period: K.value[a] });
263
271
  }
264
- function Re(a) {
265
- G.value = a, j.value = !0;
266
- const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
272
+ function De(a) {
273
+ J.value = a, ee.value = !0;
274
+ const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(p.value)).map((i) => ({
267
275
  name: i.name,
268
276
  value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
269
277
  proportion: i.proportions[a] || null,
270
278
  color: i.color,
271
279
  id: i.id
272
- })), l = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
273
- if (Qe(o) && Nt(() => o({
280
+ })), o = t.map((i) => Math.abs(i.value)).reduce((i, u) => i + u, 0);
281
+ if (tt(l) && At(() => l({
274
282
  seriesIndex: a,
275
283
  datapoint: t,
276
- series: m.value,
284
+ series: p.value,
277
285
  config: e.value
278
286
  })))
279
- ce.value = o({
287
+ ge.value = l({
280
288
  seriesIndex: a,
281
289
  datapoint: t,
282
- series: m.value,
290
+ series: p.value,
283
291
  config: e.value
284
292
  });
285
293
  else {
@@ -287,74 +295,74 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
287
295
  showValue: i,
288
296
  showPercentage: u,
289
297
  borderColor: w,
290
- roundingValue: R,
291
- roundingPercentage: I
298
+ roundingValue: A,
299
+ roundingPercentage: R
292
300
  } = e.value.style.chart.tooltip;
293
- let K = "";
294
- Z.value[a] && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${Z.value[a]}</div>`);
295
- const F = [
301
+ let Q = "";
302
+ K.value[a] && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${K.value[a]}</div>`);
303
+ const V = [
296
304
  i && u ? "(" : "",
297
305
  i && u ? ")" : ""
298
306
  ];
299
307
  t.reverse().forEach(($) => {
300
- K += `
308
+ Q += `
301
309
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
302
310
  <svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
303
311
  ${$.name}${i || u ? ":" : ""} ${i ? B({
304
312
  p: e.value.style.chart.bars.dataLabels.prefix,
305
313
  v: $.value,
306
314
  s: e.value.style.chart.bars.dataLabels.suffix,
307
- r: R
308
- }) : ""} ${F[0]}${u ? B({
309
- v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
315
+ r: A
316
+ }) : ""} ${V[0]}${u ? B({
317
+ v: isNaN($.value / o) ? 0 : Math.abs($.value) / o * 100,
310
318
  // Negs are absed to show relative proportion to absolute total. It's opinionated.
311
319
  s: "%",
312
- r: I
313
- }) : ""}${F[1]}
320
+ r: R
321
+ }) : ""}${V[1]}
314
322
  </div>
315
323
  `;
316
- }), ce.value = `<div>${K}</div>`;
324
+ }), ge.value = `<div>${Q}</div>`;
317
325
  }
318
326
  }
319
- function nt(a) {
320
- ve.value = a, me.value += 1;
327
+ function ht(a) {
328
+ te.value = a, ke.value += 1;
321
329
  }
322
- function Ie() {
323
- _.value.showTable = !_.value.showTable;
330
+ function Ee() {
331
+ C.value.showTable = !C.value.showTable;
324
332
  }
325
- function Fe() {
326
- _.value.dataLabels.show = !_.value.dataLabels.show;
333
+ function He() {
334
+ C.value.dataLabels.show = !C.value.dataLabels.show;
327
335
  }
328
- function Ve() {
329
- _.value.showTooltip = !_.value.showTooltip;
336
+ function Be() {
337
+ C.value.showTooltip = !C.value.showTooltip;
330
338
  }
331
- function ut() {
332
- return m.value;
339
+ function dt() {
340
+ return p.value;
333
341
  }
334
- const De = p(() => {
335
- if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
336
- const a = m.value.map(({ name: t, color: l }) => ({
342
+ const We = x(() => {
343
+ if (p.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
344
+ const a = p.value.map(({ name: t, color: o }) => ({
337
345
  label: t,
338
- color: l
339
- })), o = [];
346
+ color: o
347
+ })), l = [];
340
348
  for (let t = c.value.start; t < c.value.end; t += 1) {
341
- const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
349
+ const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
342
350
  P.value.forEach((i) => {
343
- l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
344
- }), o.push(l);
351
+ o.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
352
+ }), l.push(o);
345
353
  }
346
- return { head: a, body: o };
354
+ return { head: a, body: l };
347
355
  });
348
- function Ee() {
349
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...De.value.head.map((u) => u.label)], t = De.value.body, l = a.concat([o]).concat(t), i = Ot(l);
350
- Pt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
356
+ function Xe() {
357
+ const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...We.value.head.map((u) => u.label)], t = We.value.body, o = a.concat([l]).concat(t), i = Rt(o);
358
+ Vt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
351
359
  }
352
- const le = p(() => {
353
- const a = [""].concat(m.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
354
- let o = [];
355
- for (let i = 0; i < A.value; i += 1) {
356
- const u = m.value.map((w) => w.series[i] ?? 0).reduce((w, R) => w + R, 0);
357
- o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
360
+ const re = x(() => {
361
+ const a = [""].concat(p.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
362
+ let l = [];
363
+ for (let i = 0; i < O.value; i += 1) {
364
+ const u = p.value.map((w) => w.series[i] ?? 0).reduce((w, A) => w + A, 0);
365
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(p.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
358
366
  }
359
367
  const t = {
360
368
  th: {
@@ -368,68 +376,68 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
368
376
  outline: e.value.table.td.outline
369
377
  },
370
378
  breakpoint: e.value.table.responsiveBreakpoint
371
- }, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
372
- return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
379
+ }, o = [e.value.table.columnNames.period].concat(p.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
380
+ return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
373
381
  });
374
- function ct(a, o) {
375
- if (be("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(o.id))
376
- L.value = L.value.filter((t) => t !== o.id);
382
+ function yt(a, l) {
383
+ if (pe("selectLegend", p.value.find((t) => t.absoluteIndex === a)), L.value.includes(l.id))
384
+ L.value = L.value.filter((t) => t !== l.id);
377
385
  else {
378
386
  if (L.value.length === P.value.length - 1) return;
379
- L.value.push(o.id);
387
+ L.value.push(l.id);
380
388
  }
381
389
  }
382
- const He = p(() => P.value.map((a, o) => ({
390
+ const Ge = x(() => P.value.map((a, l) => ({
383
391
  ...a,
384
392
  shape: "square"
385
393
  })).map((a) => ({
386
394
  ...a,
387
395
  opacity: L.value.includes(a.id) ? 0.5 : 1,
388
- segregate: () => ct(a.absoluteIndex, a),
396
+ segregate: () => yt(a.absoluteIndex, a),
389
397
  isSegregated: L.value.includes(a.id)
390
- }))), vt = p(() => ({
398
+ }))), gt = x(() => ({
391
399
  cy: "stackbar-legend",
392
400
  backgroundColor: e.value.style.chart.legend.backgroundColor,
393
401
  color: e.value.style.chart.legend.color,
394
402
  fontSize: e.value.style.chart.legend.fontSize,
395
403
  paddingBottom: 12,
396
404
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
397
- })), oe = g(!1);
398
- function de() {
399
- oe.value = !oe.value;
405
+ })), se = d(!1);
406
+ function fe() {
407
+ se.value = !se.value;
400
408
  }
401
- return tt({
402
- getData: ut,
403
- generatePdf: Se,
404
- generateCsv: Ee,
405
- generateImage: $e,
406
- toggleTable: Ie,
407
- toggleLabels: Fe,
408
- toggleTooltip: Ve,
409
- toggleAnnotator: de
410
- }), (a, o) => (s(), n("div", {
411
- id: `stackbar_${ue.value}`,
409
+ return ot({
410
+ getData: dt,
411
+ generatePdf: Te,
412
+ generateCsv: Xe,
413
+ generateImage: Ne,
414
+ toggleTable: Ee,
415
+ toggleLabels: He,
416
+ toggleTooltip: Be,
417
+ toggleAnnotator: fe
418
+ }), (a, l) => (s(), n("div", {
419
+ id: `stackbar_${ye.value}`,
412
420
  ref_key: "stackbarChart",
413
421
  ref: X,
414
- class: ye({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ve.value }),
422
+ class: me({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
415
423
  style: U(`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%" : ""}`)
416
424
  }, [
417
- e.value.userOptions.buttons.annotator ? (s(), Y(Yt, {
425
+ e.value.userOptions.buttons.annotator ? (s(), Y(Zt, {
418
426
  key: 0,
419
427
  parent: X.value,
420
428
  backgroundColor: e.value.style.chart.backgroundColor,
421
429
  color: e.value.style.chart.color,
422
- active: oe.value,
423
- onClose: de
430
+ active: se.value,
431
+ onClose: fe
424
432
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
425
433
  k(a.$slots, "userConfig", {}, void 0, !0),
426
434
  e.value.style.chart.title.text ? (s(), n("div", {
427
435
  key: 1,
428
436
  ref_key: "chartTitle",
429
- ref: pe,
437
+ ref: we,
430
438
  style: "width:100%;background:transparent;padding-bottom:24px"
431
439
  }, [
432
- se(Et, {
440
+ ue(Xt, {
433
441
  config: {
434
442
  title: {
435
443
  cy: "stackbar-title",
@@ -442,14 +450,14 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
442
450
  }
443
451
  }, null, 8, ["config"])
444
452
  ], 512)) : v("", !0),
445
- e.value.userOptions.show && W.value ? (s(), Y(Ft, {
453
+ e.value.userOptions.show && W.value ? (s(), Y(Ht, {
446
454
  ref: "details",
447
- key: `user_option_${me.value}`,
455
+ key: `user_option_${ke.value}`,
448
456
  backgroundColor: e.value.style.chart.backgroundColor,
449
457
  color: e.value.style.chart.color,
450
- isPrinting: z(ze),
451
- isImaging: z(Le),
452
- uid: ue.value,
458
+ isPrinting: _($e),
459
+ isImaging: _(Me),
460
+ uid: ye.value,
453
461
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
454
462
  hasPdf: e.value.userOptions.buttons.pdf,
455
463
  hasImg: e.value.userOptions.buttons.img,
@@ -457,88 +465,88 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
457
465
  hasTable: e.value.userOptions.buttons.table,
458
466
  hasLabel: e.value.userOptions.buttons.labels,
459
467
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
460
- isFullscreen: ve.value,
468
+ isFullscreen: te.value,
461
469
  chartElement: X.value,
462
470
  position: e.value.userOptions.position,
463
- isTooltip: _.value.showTooltip,
471
+ isTooltip: C.value.showTooltip,
464
472
  titles: { ...e.value.userOptions.buttonTitles },
465
473
  hasAnnotator: e.value.userOptions.buttons.annotator,
466
- isAnnotation: oe.value,
467
- onToggleFullscreen: nt,
468
- onGeneratePdf: z(Se),
469
- onGenerateCsv: Ee,
470
- onGenerateImage: z($e),
471
- onToggleTable: Ie,
472
- onToggleLabels: Fe,
473
- onToggleTooltip: Ve,
474
- onToggleAnnotator: de
475
- }, xt({ _: 2 }, [
474
+ isAnnotation: se.value,
475
+ onToggleFullscreen: ht,
476
+ onGeneratePdf: _(Te),
477
+ onGenerateCsv: Xe,
478
+ onGenerateImage: _(Ne),
479
+ onToggleTable: Ee,
480
+ onToggleLabels: He,
481
+ onToggleTooltip: Be,
482
+ onToggleAnnotator: fe
483
+ }, Ct({ _: 2 }, [
476
484
  a.$slots.optionTooltip ? {
477
485
  name: "optionTooltip",
478
- fn: C(() => [
486
+ fn: z(() => [
479
487
  k(a.$slots, "optionTooltip", {}, void 0, !0)
480
488
  ]),
481
489
  key: "0"
482
490
  } : void 0,
483
491
  a.$slots.optionPdf ? {
484
492
  name: "optionPdf",
485
- fn: C(() => [
493
+ fn: z(() => [
486
494
  k(a.$slots, "optionPdf", {}, void 0, !0)
487
495
  ]),
488
496
  key: "1"
489
497
  } : void 0,
490
498
  a.$slots.optionCsv ? {
491
499
  name: "optionCsv",
492
- fn: C(() => [
500
+ fn: z(() => [
493
501
  k(a.$slots, "optionCsv", {}, void 0, !0)
494
502
  ]),
495
503
  key: "2"
496
504
  } : void 0,
497
505
  a.$slots.optionImg ? {
498
506
  name: "optionImg",
499
- fn: C(() => [
507
+ fn: z(() => [
500
508
  k(a.$slots, "optionImg", {}, void 0, !0)
501
509
  ]),
502
510
  key: "3"
503
511
  } : void 0,
504
512
  a.$slots.optionTable ? {
505
513
  name: "optionTable",
506
- fn: C(() => [
514
+ fn: z(() => [
507
515
  k(a.$slots, "optionTable", {}, void 0, !0)
508
516
  ]),
509
517
  key: "4"
510
518
  } : void 0,
511
519
  a.$slots.optionLabels ? {
512
520
  name: "optionLabels",
513
- fn: C(() => [
521
+ fn: z(() => [
514
522
  k(a.$slots, "optionLabels", {}, void 0, !0)
515
523
  ]),
516
524
  key: "5"
517
525
  } : void 0,
518
526
  a.$slots.optionFullscreen ? {
519
527
  name: "optionFullscreen",
520
- fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
521
- k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
528
+ fn: z(({ toggleFullscreen: t, isFullscreen: o }) => [
529
+ k(a.$slots, "optionFullscreen", D(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
522
530
  ]),
523
531
  key: "6"
524
532
  } : void 0,
525
533
  a.$slots.optionAnnotator ? {
526
534
  name: "optionAnnotator",
527
- fn: C(({ toggleAnnotator: t, isAnnotator: l }) => [
528
- k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
535
+ fn: z(({ toggleAnnotator: t, isAnnotator: o }) => [
536
+ k(a.$slots, "optionAnnotator", D(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
529
537
  ]),
530
538
  key: "7"
531
539
  } : void 0
532
540
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
533
541
  W.value ? (s(), n("svg", {
534
542
  key: 3,
535
- xmlns: z(Mt),
543
+ xmlns: _(Pt),
536
544
  viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
537
545
  style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
538
546
  }, [
539
- se(Ut),
540
- e.value.style.chart.bars.gradient.show ? (s(), n("defs", Zt, [
541
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("linearGradient", {
547
+ ue(qt),
548
+ e.value.style.chart.bars.gradient.show ? (s(), n("defs", ea, [
549
+ (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("linearGradient", {
542
550
  id: `gradient_${t.id}`,
543
551
  x1: "0%",
544
552
  y1: "0%",
@@ -548,18 +556,18 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
548
556
  H("stop", {
549
557
  offset: "0%",
550
558
  "stop-color": t.color
551
- }, null, 8, Qt),
559
+ }, null, 8, aa),
552
560
  H("stop", {
553
561
  offset: "61.8%",
554
- "stop-color": z(Tt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
555
- }, null, 8, jt),
562
+ "stop-color": _(Ot)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
563
+ }, null, 8, la),
556
564
  H("stop", {
557
565
  offset: "100%",
558
566
  "stop-color": t.color
559
- }, null, 8, ea)
560
- ], 8, Kt))), 256))
567
+ }, null, 8, oa)
568
+ ], 8, ta))), 256))
561
569
  ])) : v("", !0),
562
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, f(N.value, (t, l) => (s(), n("line", {
570
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 1 }, m(N.value, (t, o) => (s(), n("line", {
563
571
  x1: r.value.left,
564
572
  x2: r.value.right,
565
573
  y1: t.y,
@@ -567,26 +575,26 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
567
575
  stroke: e.value.style.chart.grid.x.axisColor,
568
576
  "stroke-width": 1,
569
577
  "stroke-linecap": "round"
570
- }, null, 8, ta))), 256)) : v("", !0),
571
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
578
+ }, null, 8, ra))), 256)) : v("", !0),
579
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 2 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
572
580
  x1: r.value.left,
573
581
  x2: r.value.right,
574
- y1: r.value.top + d.value * l,
575
- y2: r.value.top + d.value * l,
582
+ y1: r.value.top + g.value * o,
583
+ y2: r.value.top + g.value * o,
576
584
  stroke: e.value.style.chart.grid.y.axisColor,
577
585
  "stroke-width": 1,
578
586
  "stroke-linecap": "round"
579
- }, null, 8, aa))), 256)) : v("", !0),
580
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), n("line", {
581
- x1: r.value.left + d.value * l,
582
- x2: r.value.left + d.value * l,
587
+ }, null, 8, sa))), 256)) : v("", !0),
588
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 3 }, m(c.value.end - c.value.start + 1, (t, o) => (s(), n("line", {
589
+ x1: r.value.left + g.value * o,
590
+ x2: r.value.left + g.value * o,
583
591
  y1: r.value.top,
584
592
  y2: r.value.bottom,
585
593
  stroke: e.value.style.chart.grid.y.axisColor,
586
594
  "stroke-width": 1,
587
595
  "stroke-linecap": "round"
588
- }, null, 8, la))), 256)) : v("", !0),
589
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, f(N.value, (t, l) => (s(), n("line", {
596
+ }, null, 8, ia))), 256)) : v("", !0),
597
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 4 }, m(N.value, (t, o) => (s(), n("line", {
590
598
  x1: t.horizontal_x,
591
599
  x2: t.horizontal_x,
592
600
  y1: r.value.top,
@@ -594,33 +602,33 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
594
602
  stroke: e.value.style.chart.grid.x.axisColor,
595
603
  "stroke-width": 1,
596
604
  "stroke-linecap": "round"
597
- }, null, 8, oa))), 256)) : v("", !0),
598
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
599
- e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, f(t.x, (i, u) => (s(), n("rect", {
605
+ }, null, 8, na))), 256)) : v("", !0),
606
+ (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
607
+ e.value.orientation === "vertical" ? (s(!0), n(h, { key: 0 }, m(t.x, (i, u) => (s(), n("rect", {
600
608
  x: i,
601
609
  y: t.y[u] < 0 ? 0 : t.y[u],
602
610
  height: t.height[u] < 0 ? 1e-4 : t.height[u],
603
611
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
604
- width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
612
+ width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
605
613
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
606
614
  stroke: e.value.style.chart.backgroundColor,
607
615
  "stroke-width": e.value.style.chart.bars.strokeWidth,
608
616
  "stroke-linecap": "round",
609
617
  "stroke-linejoin": "round",
610
- class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
611
- }, null, 10, ra))), 256)) : (s(!0), n(h, { key: 1 }, f(t.horizontal_x, (i, u) => (s(), n("rect", {
618
+ class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
619
+ }, null, 10, ua))), 256)) : (s(!0), n(h, { key: 1 }, m(t.horizontal_x, (i, u) => (s(), n("rect", {
612
620
  x: i,
613
621
  y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
614
622
  width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
615
623
  rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
616
- height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
624
+ height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
617
625
  fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
618
626
  stroke: e.value.style.chart.backgroundColor,
619
627
  "stroke-width": e.value.style.chart.bars.strokeWidth,
620
628
  "stroke-linecap": "round",
621
629
  "stroke-linejoin": "round",
622
- class: ye({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": J.value })
623
- }, null, 10, sa))), 256))
630
+ class: me({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": q.value })
631
+ }, null, 10, ca))), 256))
624
632
  ]))), 256)),
625
633
  e.value.style.chart.grid.x.showAxis ? (s(), n("line", {
626
634
  key: 5,
@@ -632,7 +640,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
632
640
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
633
641
  "stroke-linecap": "round",
634
642
  "stroke-linejoin": "round"
635
- }, null, 8, ia)) : v("", !0),
643
+ }, null, 8, va)) : v("", !0),
636
644
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
637
645
  key: 6,
638
646
  x1: r.value.left,
@@ -643,7 +651,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
643
651
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
644
652
  "stroke-linecap": "round",
645
653
  "stroke-linejoin": "round"
646
- }, null, 8, na)) : v("", !0),
654
+ }, null, 8, ha)) : v("", !0),
647
655
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
648
656
  key: 7,
649
657
  x: r.value.left + r.value.width / 2,
@@ -652,7 +660,7 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
652
660
  fill: e.value.style.chart.grid.x.axisName.color,
653
661
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
654
662
  "text-anchor": "middle"
655
- }, S(e.value.style.chart.grid.x.axisName.text), 9, ua)) : v("", !0),
663
+ }, S(e.value.style.chart.grid.x.axisName.text), 9, da)) : v("", !0),
656
664
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
657
665
  key: 8,
658
666
  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)`,
@@ -660,76 +668,76 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
660
668
  fill: e.value.style.chart.grid.y.axisName.color,
661
669
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
662
670
  "text-anchor": "middle"
663
- }, S(e.value.style.chart.grid.y.axisName.text), 9, ca)) : v("", !0),
664
- _.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
665
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
666
- (s(!0), n(h, null, f(t.x, (i, u) => (s(), n("text", {
667
- x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
671
+ }, S(e.value.style.chart.grid.y.axisName.text), 9, ya)) : v("", !0),
672
+ C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(h, { key: 9 }, [
673
+ (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
674
+ (s(!0), n(h, null, m(t.x, (i, u) => (s(), n("text", {
675
+ x: i + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
668
676
  y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
669
677
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
670
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
678
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
671
679
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
672
680
  "text-anchor": "middle"
673
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, va))), 256))
681
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ga))), 256))
674
682
  ]))), 256)),
675
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ha, [
676
- (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
677
- x: r.value.left + d.value * l + d.value / 2,
683
+ e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", ba, [
684
+ (s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
685
+ x: r.value.left + g.value * o + g.value / 2,
678
686
  y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
679
687
  "text-anchor": "middle",
680
688
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
681
689
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
682
690
  fill: e.value.style.chart.bars.totalValues.color
683
- }, S(ae(t.value, t, l, t.sign)), 9, da))), 256))
691
+ }, S(oe(t.value, t, o, t.sign)), 9, fa))), 256))
684
692
  ])) : v("", !0)
685
693
  ], 64)) : v("", !0),
686
- _.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
687
- (s(!0), n(h, null, f(m.value, (t, l) => (s(), n("g", null, [
688
- (s(!0), n(h, null, f(t.horizontal_x, (i, u) => (s(), n("text", {
694
+ C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(h, { key: 10 }, [
695
+ (s(!0), n(h, null, m(p.value, (t, o) => (s(), n("g", null, [
696
+ (s(!0), n(h, null, m(t.horizontal_x, (i, u) => (s(), n("text", {
689
697
  x: i + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
690
- y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
698
+ y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
691
699
  "font-size": e.value.style.chart.bars.dataLabels.fontSize,
692
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? z(Ke)(t.color) : e.value.style.chart.bars.dataLabels.color,
700
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? _(et)(t.color) : e.value.style.chart.bars.dataLabels.color,
693
701
  "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
694
702
  "text-anchor": "middle"
695
- }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[u] * 100, t, l, u) : ae(t.series[u], t, l, u, t.signedSeries[u])), 9, ya))), 256))
703
+ }, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ve(t.proportions[u] * 100, t, o, u) : oe(t.series[u], t, o, u, t.signedSeries[u])), 9, ma))), 256))
696
704
  ]))), 256)),
697
- e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), n("g", ga, [
698
- (s(!0), n(h, null, f(Oe.value, (t, l) => (s(), n("text", {
705
+ e.value.style.chart.bars.totalValues.show && p.value.length > 1 ? (s(), n("g", pa, [
706
+ (s(!0), n(h, null, m(Re.value, (t, o) => (s(), n("text", {
699
707
  x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
700
- y: r.value.top + d.value * l + d.value / 2,
708
+ y: r.value.top + g.value * o + g.value / 2,
701
709
  "text-anchor": "start",
702
710
  "font-size": e.value.style.chart.bars.totalValues.fontSize,
703
711
  "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
704
712
  fill: e.value.style.chart.bars.totalValues.color
705
- }, S(ae(t.value, t, l, t.sign)), 9, ba))), 256))
713
+ }, S(oe(t.value, t, o, t.sign)), 9, xa))), 256))
706
714
  ])) : v("", !0)
707
715
  ], 64)) : v("", !0),
708
716
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), n(h, { key: 11 }, [
709
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
717
+ (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
710
718
  x1: r.value.left,
711
719
  x2: r.value.left - 6,
712
720
  y1: t.y,
713
721
  y2: t.y,
714
722
  stroke: e.value.style.chart.grid.x.axisColor,
715
723
  "stroke-width": 1
716
- }, null, 8, fa))), 256)),
717
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
724
+ }, null, 8, ka))), 256)),
725
+ (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
718
726
  x: t.x,
719
727
  y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
720
728
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
721
729
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
722
730
  fill: e.value.style.chart.grid.y.axisLabels.color,
723
731
  "text-anchor": "end"
724
- }, S(z(B)({
732
+ }, S(_(B)({
725
733
  p: e.value.style.chart.bars.dataLabels.prefix,
726
734
  v: t.value,
727
735
  s: e.value.style.chart.bars.dataLabels.suffix,
728
736
  r: e.value.style.chart.grid.y.axisLabels.rounding
729
- })), 9, ma))), 256))
737
+ })), 9, wa))), 256))
730
738
  ], 64)) : v("", !0),
731
739
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n(h, { key: 12 }, [
732
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("line", {
740
+ (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("line", {
733
741
  x1: t.horizontal_x,
734
742
  x2: t.horizontal_x,
735
743
  y1: r.value.bottom,
@@ -737,67 +745,67 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
737
745
  stroke: e.value.style.chart.grid.x.axisColor,
738
746
  "stroke-width": 1,
739
747
  "stroke-linecap": "round"
740
- }, null, 8, pa))), 256)),
741
- (s(!0), n(h, null, f(N.value, (t, l) => (s(), n("text", {
748
+ }, null, 8, za))), 256)),
749
+ (s(!0), n(h, null, m(N.value, (t, o) => (s(), n("text", {
742
750
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
743
751
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
744
752
  fill: e.value.style.chart.grid.y.axisLabels.color,
745
753
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
746
754
  transform: `translate(${t.horizontal_x}, ${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})`
747
- }, S(z(B)({
755
+ }, S(_(B)({
748
756
  p: e.value.style.chart.bars.dataLabels.prefix,
749
757
  v: t.value,
750
758
  s: e.value.style.chart.bars.dataLabels.suffix,
751
759
  r: e.value.style.chart.grid.y.axisLabels.rounding
752
- })), 9, xa))), 256))
760
+ })), 9, Ca))), 256))
753
761
  ], 64)) : v("", !0),
754
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, f(Z.value, (t, l) => (s(), n("text", {
762
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 13 }, m(K.value, (t, o) => (s(), n("text", {
755
763
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
756
764
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
757
765
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
758
766
  fill: e.value.style.chart.grid.x.timeLabels.color,
759
- transform: `translate(${r.value.left + d.value * l + d.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})`
760
- }, S(t), 9, ka))), 256)) : v("", !0),
761
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, f(Z.value, (t, l) => (s(), n("text", {
767
+ transform: `translate(${r.value.left + g.value * o + g.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})`
768
+ }, S(t), 9, _a))), 256)) : v("", !0),
769
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 14 }, m(K.value, (t, o) => (s(), n("text", {
762
770
  "text-anchor": "end",
763
771
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
764
772
  "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
765
773
  fill: e.value.style.chart.grid.y.axisLabels.color,
766
774
  x: r.value.left - 8,
767
- y: r.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
768
- }, S(t), 9, wa))), 256)) : v("", !0),
769
- _.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
770
- x: r.value.left + l * d.value,
775
+ y: r.value.top + g.value * o + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
776
+ }, S(t), 9, La))), 256)) : v("", !0),
777
+ C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), n(h, { key: 15 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
778
+ x: r.value.left + o * g.value,
771
779
  y: r.value.top,
772
- width: d.value,
780
+ width: g.value,
773
781
  height: r.value.height < 0 ? 0 : r.value.height,
774
- onClick: (i) => Ae(l),
775
- onMouseenter: (i) => Re(l),
776
- onMouseleave: o[0] || (o[0] = (i) => {
777
- G.value = null, j.value = !1;
782
+ onClick: (i) => Fe(o),
783
+ onMouseenter: (i) => De(o),
784
+ onMouseleave: l[0] || (l[0] = (i) => {
785
+ J.value = null, ee.value = !1;
778
786
  }),
779
- fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
787
+ fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
780
788
  style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
781
- }, null, 44, Ca))), 256)) : v("", !0),
782
- _.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), n("rect", {
789
+ }, null, 44, Sa))), 256)) : v("", !0),
790
+ C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(h, { key: 16 }, m(c.value.end - c.value.start, (t, o) => (s(), n("rect", {
783
791
  x: r.value.left,
784
- y: r.value.top + l * d.value,
792
+ y: r.value.top + o * g.value,
785
793
  width: r.value.width < 0 ? 0 : r.value.width,
786
- height: d.value,
787
- onClick: (i) => Ae(l),
788
- onMouseenter: (i) => Re(l),
789
- onMouseleave: o[1] || (o[1] = (i) => {
790
- G.value = null, j.value = !1;
794
+ height: g.value,
795
+ onClick: (i) => Fe(o),
796
+ onMouseenter: (i) => De(o),
797
+ onMouseleave: l[1] || (l[1] = (i) => {
798
+ J.value = null, ee.value = !1;
791
799
  }),
792
- fill: l === G.value ? e.value.style.chart.highlighter.color : "transparent",
800
+ fill: o === J.value ? e.value.style.chart.highlighter.color : "transparent",
793
801
  style: U({ opacity: e.value.style.chart.highlighter.opacity / 100 })
794
- }, null, 44, _a))), 256)) : v("", !0),
802
+ }, null, 44, $a))), 256)) : v("", !0),
795
803
  k(a.$slots, "svg", D(E({ ...r.value })), void 0, !0)
796
- ], 12, qt)) : v("", !0),
797
- a.$slots.watermark ? (s(), n("div", za, [
798
- k(a.$slots, "watermark", D(E({ isPrinting: z(ze) || z(Le) })), void 0, !0)
804
+ ], 12, jt)) : v("", !0),
805
+ a.$slots.watermark ? (s(), n("div", Ma, [
806
+ k(a.$slots, "watermark", D(E({ isPrinting: _($e) || _(Me) })), void 0, !0)
799
807
  ])) : v("", !0),
800
- W.value ? v("", !0) : (s(), Y(Xt, {
808
+ W.value ? v("", !0) : (s(), Y(Jt, {
801
809
  key: 5,
802
810
  config: {
803
811
  type: "bar",
@@ -814,12 +822,14 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
814
822
  }, null, 8, ["config"])),
815
823
  H("div", {
816
824
  ref_key: "chartSlicer",
817
- ref: ke,
825
+ ref: Ce,
818
826
  style: U(`width:100%;background:${e.value.style.chart.backgroundColor}`),
819
827
  "data-html2canvas-ignore": ""
820
828
  }, [
821
- e.value.style.chart.zoom.show && A.value > 1 ? (s(), Y(Vt, {
822
- key: `slicer_${Ce.value}`,
829
+ e.value.style.chart.zoom.show && O.value > 1 ? (s(), Y(Bt, {
830
+ ref_key: "slicerComponent",
831
+ ref: G,
832
+ key: `slicer_${Le.value}`,
823
833
  background: e.value.style.chart.zoom.color,
824
834
  borderColor: e.value.style.chart.backgroundColor,
825
835
  fontSize: e.value.style.chart.zoom.fontSize,
@@ -829,24 +839,26 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
829
839
  textColor: e.value.style.chart.color,
830
840
  inputColor: e.value.style.chart.zoom.color,
831
841
  selectColor: e.value.style.chart.zoom.highlightColor,
832
- max: Math.max(...ge.dataset.map((t) => t.series.length)),
842
+ max: Math.max(...de.dataset.map((t) => t.series.length)),
833
843
  min: 0,
834
844
  valueStart: c.value.start,
835
845
  valueEnd: c.value.end,
836
846
  start: c.value.start,
837
- "onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
847
+ "onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
838
848
  end: c.value.end,
839
- "onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
840
- onReset: Ne
849
+ "onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
850
+ refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
851
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
852
+ onReset: Oe
841
853
  }, {
842
- "reset-action": C(({ reset: t }) => [
854
+ "reset-action": z(({ reset: t }) => [
843
855
  k(a.$slots, "reset-action", D(E({ reset: t })), void 0, !0)
844
856
  ]),
845
857
  _: 3
846
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
858
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : v("", !0)
847
859
  ], 4),
848
- se(Dt, {
849
- show: _.value.showTooltip && j.value,
860
+ ue(Wt, {
861
+ show: C.value.showTooltip && ee.value,
850
862
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
851
863
  color: e.value.style.chart.tooltip.color,
852
864
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -857,52 +869,53 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
857
869
  position: e.value.style.chart.tooltip.position,
858
870
  offsetY: e.value.style.chart.tooltip.offsetY,
859
871
  parent: X.value,
860
- content: ce.value,
861
- isCustom: z(Qe)(e.value.style.chart.tooltip.customFormat)
872
+ content: ge.value,
873
+ isFullscreen: te.value,
874
+ isCustom: _(tt)(e.value.style.chart.tooltip.customFormat)
862
875
  }, {
863
- "tooltip-before": C(() => [
864
- k(a.$slots, "tooltip-before", D(E({ ...fe.value })), void 0, !0)
876
+ "tooltip-before": z(() => [
877
+ k(a.$slots, "tooltip-before", D(E({ ...xe.value })), void 0, !0)
865
878
  ]),
866
- "tooltip-after": C(() => [
867
- k(a.$slots, "tooltip-after", D(E({ ...fe.value })), void 0, !0)
879
+ "tooltip-after": z(() => [
880
+ k(a.$slots, "tooltip-after", D(E({ ...xe.value })), void 0, !0)
868
881
  ]),
869
882
  _: 3
870
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
883
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
871
884
  H("div", {
872
885
  ref_key: "chartLegend",
873
- ref: xe
886
+ ref: ze
874
887
  }, [
875
- e.value.style.chart.legend.show && W.value ? (s(), Y(Ht, {
888
+ e.value.style.chart.legend.show && W.value ? (s(), Y(Gt, {
876
889
  key: 0,
877
- legendSet: He.value,
878
- config: vt.value,
879
- onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
890
+ legendSet: Ge.value,
891
+ config: gt.value,
892
+ onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
880
893
  }, {
881
- item: C(({ legend: t }) => [
894
+ item: z(({ legend: t }) => [
882
895
  H("div", {
883
- onClick: (l) => t.segregate(),
896
+ onClick: (o) => t.segregate(),
884
897
  style: U(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
885
- }, S(t.name), 13, La)
898
+ }, S(t.name), 13, Ta)
886
899
  ]),
887
900
  _: 1
888
901
  }, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
889
902
  key: 1,
890
- legend: He.value
903
+ legend: Ge.value
891
904
  }, void 0, !0)
892
905
  ], 512),
893
906
  a.$slots.source ? (s(), n("div", {
894
907
  key: 6,
895
908
  ref_key: "source",
896
- ref: we,
909
+ ref: _e,
897
910
  dir: "auto"
898
911
  }, [
899
912
  k(a.$slots, "source", {}, void 0, !0)
900
913
  ], 512)) : v("", !0),
901
- c.value.end - c.value.start < 200 ? (s(), Y(Bt, {
914
+ c.value.end - c.value.start < 200 ? (s(), Y(Ut, {
902
915
  key: 7,
903
916
  hideDetails: "",
904
917
  config: {
905
- open: _.value.showTable,
918
+ open: C.value.showTable,
906
919
  maxHeight: 1e4,
907
920
  body: {
908
921
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -914,20 +927,20 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
914
927
  }
915
928
  }
916
929
  }, {
917
- content: C(() => [
918
- se(Wt, {
919
- colNames: le.value.colNames,
920
- head: le.value.head,
921
- body: le.value.body,
922
- config: le.value.config,
930
+ content: z(() => [
931
+ ue(Yt, {
932
+ colNames: re.value.colNames,
933
+ head: re.value.head,
934
+ body: re.value.body,
935
+ config: re.value.config,
923
936
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
924
- onClose: o[5] || (o[5] = (t) => _.value.showTable = !1)
937
+ onClose: l[5] || (l[5] = (t) => C.value.showTable = !1)
925
938
  }, {
926
- th: C(({ th: t }) => [
927
- H("div", { innerHTML: t }, null, 8, Sa)
939
+ th: z(({ th: t }) => [
940
+ H("div", { innerHTML: t }, null, 8, Na)
928
941
  ]),
929
- td: C(({ td: t }) => [
930
- kt(S(isNaN(Number(t)) ? t : z(B)({
942
+ td: z(({ td: t }) => [
943
+ _t(S(isNaN(Number(t)) ? t : _(B)({
931
944
  p: e.value.style.chart.bars.dataLabels.prefix,
932
945
  v: t,
933
946
  s: e.value.style.chart.bars.dataLabels.suffix,
@@ -939,9 +952,9 @@ const Jt = ["id"], qt = ["xmlns", "viewBox"], Zt = { key: 0 }, Kt = ["id"], Qt =
939
952
  ]),
940
953
  _: 1
941
954
  }, 8, ["config"])) : v("", !0)
942
- ], 14, Jt));
955
+ ], 14, Qt));
943
956
  }
944
- }, Xa = /* @__PURE__ */ Gt($a, [["__scopeId", "data-v-d80dd138"]]);
957
+ }, Ja = /* @__PURE__ */ Kt(Ia, [["__scopeId", "data-v-965785b9"]]);
945
958
  export {
946
- Xa as default
959
+ Ja as default
947
960
  };