vue-data-ui 2.4.61 → 2.4.62

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 (154) hide show
  1. package/dist/{Arrow-C4JCfYUu.cjs → Arrow-C0lmBG2-.cjs} +1 -1
  2. package/dist/{Arrow-NyYxjtAV.js → Arrow-E7FjAwN-.js} +1 -1
  3. package/dist/{BaseIcon-B1zKYJGk.cjs → BaseIcon-DK3C9OCq.cjs} +1 -1
  4. package/dist/{BaseIcon-a81b_5b0.js → BaseIcon-DRLxlrSt.js} +1 -1
  5. package/dist/{DataTable-CcW8SHH2.js → DataTable-BANy6PnS.js} +2 -2
  6. package/dist/{DataTable-BVwnM0tQ.cjs → DataTable-BLSMgcEN.cjs} +1 -1
  7. package/dist/{Legend-fpW6iFgA.cjs → Legend-CAgxjrra.cjs} +1 -1
  8. package/dist/{Legend-Cq1rcFzv.js → Legend-pWq2tKCl.js} +1 -1
  9. package/dist/{PackageVersion-LRbiiLp0.js → PackageVersion-1NslmM8M.js} +1 -1
  10. package/dist/{PackageVersion-B7-YDa6h.cjs → PackageVersion-D3dK8oA3.cjs} +1 -1
  11. package/dist/{PenAndPaper-JkRknDt7.cjs → PenAndPaper-CYFIR9j7.cjs} +1 -1
  12. package/dist/{PenAndPaper-BCjJ-td_.js → PenAndPaper-CdXSbSZY.js} +3 -3
  13. package/dist/{Shape-hFNcMth4.js → Shape-BtKtwV0v.js} +1 -1
  14. package/dist/{Shape-QZcWXoYb.cjs → Shape-DPztPWor.cjs} +1 -1
  15. package/dist/{Slicer-DMYxCNLb.cjs → Slicer-BggxvZRw.cjs} +1 -1
  16. package/dist/{Slicer-DGn72_0M.js → Slicer-p4IqkHkJ.js} +2 -2
  17. package/dist/{Title-CQVviDIQ.cjs → Title-BhL7TMa_.cjs} +1 -1
  18. package/dist/{Title-Zm0LCGPS.js → Title-DPefeOY7.js} +1 -1
  19. package/dist/{Tooltip-DZ1uTqBW.cjs → Tooltip-C5qSWrXO.cjs} +1 -1
  20. package/dist/{Tooltip-CoahRzyE.js → Tooltip-C72f83eg.js} +1 -1
  21. package/dist/{index-CG_OTzik.js → index-B-k71vpj.js} +2 -1
  22. package/dist/index-CC7tVh7F.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -0
  25. package/dist/types/vue-data-ui.d.ts +1 -0
  26. package/dist/{useNestedProp-BZZvruew.js → useNestedProp-BeXDUo1v.js} +1 -1
  27. package/dist/{useNestedProp--db71Vbu.cjs → useNestedProp-CxwPeWts.cjs} +1 -1
  28. package/dist/{usePrinter-CxBwzZkb.js → usePrinter-BK-n-gRN.js} +1 -1
  29. package/dist/{usePrinter-D0LQ1CyY.cjs → usePrinter-CMvfTteH.cjs} +1 -1
  30. package/dist/{vue-data-ui-CUyuYhwT.cjs → vue-data-ui-CG-HnqKG.cjs} +1 -1
  31. package/dist/{vue-data-ui-C4A5zIHI.js → vue-data-ui-fOomZU3e.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DAh8koX4.js → vue-ui-3d-bar-C95HBkYv.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-DKiYqw0u.cjs → vue-ui-3d-bar-DLrJ9TM8.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-C2IbGLRv.js → vue-ui-accordion-DWAg7tbw.js} +3 -3
  37. package/dist/{vue-ui-accordion-B7VpkrPR.cjs → vue-ui-accordion-IZgkGqto.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-BmqvzA-d.cjs → vue-ui-age-pyramid-BSKXGW3a.cjs} +1 -1
  39. package/dist/{vue-ui-age-pyramid-me4GgQNb.js → vue-ui-age-pyramid-BxBU5CCr.js} +10 -10
  40. package/dist/{vue-ui-annotator-XOzj9Bpg.js → vue-ui-annotator-DupDeVZx.js} +1 -1
  41. package/dist/{vue-ui-annotator-Bg9Juc1l.cjs → vue-ui-annotator-GSRzlJ-N.cjs} +1 -1
  42. package/dist/{vue-ui-bullet-BsHk8Y0E.cjs → vue-ui-bullet-BD0MrIvY.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-D1ElgM95.js → vue-ui-bullet-Dgr-mCAc.js} +8 -8
  44. package/dist/{vue-ui-candlestick-DLhwvS6l.js → vue-ui-candlestick-DYupl4j5.js} +11 -11
  45. package/dist/{vue-ui-candlestick-Ba4yv9ZM.cjs → vue-ui-candlestick-DpcBRWha.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-DSoV6GBf.cjs → vue-ui-carousel-table-CNS6ZzTc.cjs} +1 -1
  47. package/dist/{vue-ui-carousel-table-cEaGm232.js → vue-ui-carousel-table-DNwWV8de.js} +4 -4
  48. package/dist/{vue-ui-chestnut-D6D5Zr4r.cjs → vue-ui-chestnut-AVSIntNp.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-DCURZY6w.js → vue-ui-chestnut-OaTraMv4.js} +8 -8
  50. package/dist/{vue-ui-cursor-CqDpaKei.cjs → vue-ui-cursor-CJJ78nNY.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-B9eASI3M.js → vue-ui-cursor-Dlo68AuK.js} +2 -2
  52. package/dist/{vue-ui-dashboard-B2rw-G-R.js → vue-ui-dashboard-CzF8PeC6.js} +2 -2
  53. package/dist/{vue-ui-dashboard-Q-ILTgqP.cjs → vue-ui-dashboard-fYhjRzSY.cjs} +1 -1
  54. package/dist/{vue-ui-digits-BAG_spWA.js → vue-ui-digits-BHkW0Bi1.js} +2 -2
  55. package/dist/{vue-ui-digits-CagcmtFs.cjs → vue-ui-digits-BSE3CEuv.cjs} +1 -1
  56. package/dist/{vue-ui-donut-BJl5Isgy.js → vue-ui-donut-CeestESD.js} +11 -11
  57. package/dist/{vue-ui-donut-5jgX6ZLE.cjs → vue-ui-donut-DxH9EkK_.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-CnqdY8LW.cjs → vue-ui-donut-evolution-BDwV-Ncf.cjs} +1 -1
  59. package/dist/{vue-ui-donut-evolution-DMhkt7mf.js → vue-ui-donut-evolution-DGl_J0JB.js} +11 -11
  60. package/dist/{vue-ui-dumbbell-Be0B-LgS.cjs → vue-ui-dumbbell-ChipHJ9p.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-Dg3mYtw3.js → vue-ui-dumbbell-DlELQHtq.js} +10 -10
  62. package/dist/{vue-ui-flow-Cq8-bQr_.js → vue-ui-flow-BZIiidbF.js} +9 -9
  63. package/dist/{vue-ui-flow-BKyhoEjt.cjs → vue-ui-flow-BowAWyMA.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-DHFbd45-.js → vue-ui-funnel-Bc7BrgHa.js} +9 -9
  65. package/dist/{vue-ui-funnel-DFk4PKvj.cjs → vue-ui-funnel-DLzHnLhb.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-Y1gaT5UE.cjs → vue-ui-galaxy-DesiP-Ev.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-rYHDLCt9.js → vue-ui-galaxy-t5R2Vz1t.js} +11 -11
  68. package/dist/{vue-ui-gauge-Ba14Ybvo.js → vue-ui-gauge-CYx4jt71.js} +7 -7
  69. package/dist/{vue-ui-gauge-Bmuasq4t.cjs → vue-ui-gauge-_-1DxTe0.cjs} +1 -1
  70. package/dist/{vue-ui-gizmo-CuMablqV.js → vue-ui-gizmo-DVcY_OyD.js} +3 -3
  71. package/dist/{vue-ui-gizmo-CF11m0cq.cjs → vue-ui-gizmo-DeO_vFhP.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-BekQJ_O8.cjs → vue-ui-heatmap-CWqJiKrJ.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-B0Ry1OTW.js → vue-ui-heatmap-wLcx9ex3.js} +10 -10
  74. package/dist/{vue-ui-history-plot-DkJdYX5N.js → vue-ui-history-plot-D7VjQwLk.js} +11 -11
  75. package/dist/{vue-ui-history-plot-BTVojhgQ.cjs → vue-ui-history-plot-FJnUgshF.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BQwuGH5_.js → vue-ui-kpi-C4tl3luu.js} +3 -3
  77. package/dist/{vue-ui-kpi-BLreWPBQ.cjs → vue-ui-kpi-DcGp2H4d.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-C-61eqcR.cjs → vue-ui-mini-loader-B41vyg7t.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DOGNwMhX.js → vue-ui-mini-loader-DZ-Rxr07.js} +2 -2
  80. package/dist/{vue-ui-molecule-DHBRDC8t.js → vue-ui-molecule-51NSY4Z8.js} +11 -11
  81. package/dist/{vue-ui-molecule-BRM8s9SD.cjs → vue-ui-molecule-CUiAEOC9.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-dfN44AZx.js → vue-ui-mood-radar-DG3MA8BZ.js} +11 -11
  83. package/dist/{vue-ui-mood-radar-MXQgj0yp.cjs → vue-ui-mood-radar-DkXzwU8x.cjs} +1 -1
  84. package/dist/{vue-ui-nested-donuts-C-nDnw6v.js → vue-ui-nested-donuts-Be9FYX8F.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-BAtJgYOg.cjs → vue-ui-nested-donuts-Cerc7ILW.cjs} +1 -1
  86. package/dist/{vue-ui-onion-D8OvxeHr.js → vue-ui-onion-BhNd2hbK.js} +11 -11
  87. package/dist/{vue-ui-onion-EO8dPufp.cjs → vue-ui-onion-BpIopgzq.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-3BNXcNsy.js → vue-ui-parallel-coordinate-plot-CSll-Vtd.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-Cxl3bY0H.cjs → vue-ui-parallel-coordinate-plot-D1z9zPyF.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DiU08Q5X.cjs → vue-ui-quadrant-303aQCVj.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-BOReLkSm.js → vue-ui-quadrant-mw0cCB8b.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-D4UZCrzj.js → vue-ui-quick-chart-6sXw4LvX.js} +9 -9
  93. package/dist/{vue-ui-quick-chart-BRERkFkI.cjs → vue-ui-quick-chart-DJfdl_Oc.cjs} +1 -1
  94. package/dist/{vue-ui-radar-DduWN5dL.cjs → vue-ui-radar-B5c80iuj.cjs} +1 -1
  95. package/dist/{vue-ui-radar-C2ePOuIW.js → vue-ui-radar-DT2PXZ3W.js} +12 -12
  96. package/dist/{vue-ui-rating-BtzMW1EB.cjs → vue-ui-rating-RKyIWluu.cjs} +1 -1
  97. package/dist/{vue-ui-rating-BYfD1N57.js → vue-ui-rating-x4INc3T_.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-BKjs6DR1.js → vue-ui-relation-circle-OTUjuy7-.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-DhLvWetz.cjs → vue-ui-relation-circle-T_cM-vkm.cjs} +1 -1
  100. package/dist/{vue-ui-rings-BNwvxf2K.js → vue-ui-rings-B1c_TNA0.js} +11 -11
  101. package/dist/{vue-ui-rings-CzZyxYeS.cjs → vue-ui-rings-CEdur365.cjs} +1 -1
  102. package/dist/{vue-ui-scatter-D3Cl-rFL.cjs → vue-ui-scatter-BM6iF4yl.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-thYwTZhC.js → vue-ui-scatter-CjI7xkJm.js} +12 -12
  104. package/dist/{vue-ui-screenshot-9y8wYnc3.js → vue-ui-screenshot-DoMe-dMI.js} +1 -1
  105. package/dist/{vue-ui-screenshot-DFHP0ThC.cjs → vue-ui-screenshot-wadHKtkZ.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-D56sSIBO.cjs → vue-ui-skeleton-BgEjqaz9.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-B6hyEcxy.js → vue-ui-skeleton-DSXzxNMC.js} +3 -3
  108. package/dist/{vue-ui-smiley-BsWAahKv.cjs → vue-ui-smiley-D5KYgUQi.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-B-4Fqh2J.js → vue-ui-smiley-DgfHBeGm.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-DJcpI-ZY.js → vue-ui-spark-trend-CEU0TB9l.js} +5 -5
  111. package/dist/{vue-ui-spark-trend-MAq0VlUq.cjs → vue-ui-spark-trend-DhPXSFpU.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-DMlzP8ZM.cjs → vue-ui-sparkbar-8vDQ9r97.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-DZqE8qN3.js → vue-ui-sparkbar-C8TB_YCv.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-B-kRhMYK.js → vue-ui-sparkgauge-DCXX3ZDS.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-CvOP9U7-.cjs → vue-ui-sparkgauge-DnYyNQQn.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DjUvwlYU.cjs → vue-ui-sparkhistogram-BQGAFZWZ.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-EOeboT7_.js → vue-ui-sparkhistogram-CEmGA3kW.js} +5 -5
  118. package/dist/{vue-ui-sparkline-BgB5km-f.js → vue-ui-sparkline-BXvaVl-R.js} +117 -114
  119. package/dist/vue-ui-sparkline-HQaxAzTw.cjs +1 -0
  120. package/dist/{vue-ui-sparkstackbar-DGihKtGC.js → vue-ui-sparkstackbar-CI0uvrlh.js} +5 -5
  121. package/dist/{vue-ui-sparkstackbar-DSTz24kS.cjs → vue-ui-sparkstackbar-DbtbyF5W.cjs} +1 -1
  122. package/dist/{vue-ui-stackbar-m-5t4Otk.cjs → vue-ui-stackbar-CYJLXaU0.cjs} +1 -1
  123. package/dist/{vue-ui-stackbar-DrJ3au6w.js → vue-ui-stackbar-D-_Fp5r4.js} +12 -12
  124. package/dist/{vue-ui-strip-plot-Yy2DIoMg.cjs → vue-ui-strip-plot-DUBjl9cR.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-4uC5MD3e.js → vue-ui-strip-plot-pJsObuy6.js} +11 -11
  126. package/dist/{vue-ui-table-DCe_BTaV.cjs → vue-ui-table-CbvpwN05.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CMVmFTPi.js → vue-ui-table-heatmap-BAlngE3L.js} +4 -4
  128. package/dist/{vue-ui-table-heatmap-PvopeKyW.cjs → vue-ui-table-heatmap-sAuA3lIc.cjs} +1 -1
  129. package/dist/{vue-ui-table-DN498EB2.js → vue-ui-table-s7IHsGac.js} +1 -1
  130. package/dist/{vue-ui-table-sparkline-BtUV0t4I.cjs → vue-ui-table-sparkline-CjaF-Zjq.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-DpXxi6al.js → vue-ui-table-sparkline-ClrZ-BC3.js} +5 -5
  132. package/dist/{vue-ui-thermometer-CB38vNj3.js → vue-ui-thermometer-C_sqnPkS.js} +7 -7
  133. package/dist/{vue-ui-thermometer-B9YyPrvt.cjs → vue-ui-thermometer-fcy4HsN6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-D6GsFvTy.cjs → vue-ui-timer-B0lLVb4J.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BmFFjMb9.js → vue-ui-timer-DeRjcfir.js} +5 -5
  136. package/dist/{vue-ui-tiremarks--CrAFWU2.cjs → vue-ui-tiremarks-CBnEObhg.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-CJ2y_2T1.js → vue-ui-tiremarks-DCOJWvBx.js} +7 -7
  138. package/dist/{vue-ui-treemap-HpoEGWKV.cjs → vue-ui-treemap-SPe7NLHg.cjs} +1 -1
  139. package/dist/{vue-ui-treemap-Z3t2YGoE.js → vue-ui-treemap-UU9kd93i.js} +11 -11
  140. package/dist/{vue-ui-vertical-bar-B_x2w4L8.js → vue-ui-vertical-bar-Do1beV1x.js} +11 -11
  141. package/dist/{vue-ui-vertical-bar-LdxXCg3W.cjs → vue-ui-vertical-bar-DtPjSOTd.cjs} +1 -1
  142. package/dist/{vue-ui-waffle-BKrNIOiM.js → vue-ui-waffle-B1XP-Qon.js} +11 -11
  143. package/dist/{vue-ui-waffle-BDkOv8M4.cjs → vue-ui-waffle-CCWlLaex.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DgzJQSl_.cjs → vue-ui-wheel-BHVTUvG3.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-BCs1b_hk.js → vue-ui-wheel-D6IUmaVZ.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-CO47t4OJ.js → vue-ui-word-cloud-AubuQjfw.js} +10 -10
  147. package/dist/{vue-ui-word-cloud-BHm3q6eZ.cjs → vue-ui-word-cloud-BvjWoqnE.cjs} +1 -1
  148. package/dist/{vue-ui-xy-RDecyidx.js → vue-ui-xy-BMJpPJeS.js} +14 -14
  149. package/dist/{vue-ui-xy-c7YLqedj.cjs → vue-ui-xy-CTLJncUe.cjs} +1 -1
  150. package/dist/{vue-ui-xy-canvas-Q6mKl1B-.js → vue-ui-xy-canvas-DHU2wBAP.js} +11 -11
  151. package/dist/{vue-ui-xy-canvas-CY1JxJvm.cjs → vue-ui-xy-canvas-De-MHu0Y.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-V6tl1xgQ.cjs +0 -9
  154. package/dist/vue-ui-sparkline-BS_ZXXei.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { computed as v, ref as m, watch as U, onMounted as re, openBlock as n, createElementBlock as r, normalizeStyle as C, renderSlot as M, normalizeProps as ie, guardReactiveProps as de, createElementVNode as f, toDisplayString as X, createCommentVNode as c, unref as h, createVNode as ve, Fragment as A, renderList as D, createBlock as ce } from "vue";
2
- import { u as he, c as ye, t as fe, C as Z, _ as T, o as pe, e as q, g as ge, w as I, $ as me, a0 as ke, X as be, s as P, R as H, i as Y, f as J } from "./index-CG_OTzik.js";
3
- import { u as K } from "./useNestedProp-BZZvruew.js";
4
- import _e from "./vue-ui-skeleton-B6hyEcxy.js";
5
- import { t as xe, u as we } from "./useResponsive-CoxXLe23.js";
6
- import { _ as $e } from "./PackageVersion-LRbiiLp0.js";
7
- import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["id"], Pe = ["stop-color"], Ve = ["stop-color"], ze = ["id"], Se = ["stop-color"], We = ["stop-color"], Ae = ["id"], De = ["stop-color"], Te = ["stop-color"], Oe = { key: 1 }, Be = ["d", "fill"], Ee = ["d", "fill"], Fe = ["d", "stroke", "stroke-width"], Ge = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Re = ["x", "y", "width", "height", "fill", "rx"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ue = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Xe = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ze = ["x", "y", "font-size", "font-weight", "fill"], qe = ["x", "y", "height", "width", "onMouseenter", "onClick"], He = {
1
+ import { computed as v, ref as k, watch as U, onMounted as ne, openBlock as r, createElementBlock as i, normalizeStyle as C, renderSlot as M, normalizeProps as re, guardReactiveProps as ie, createElementVNode as f, toDisplayString as X, createCommentVNode as c, unref as h, createVNode as de, Fragment as D, renderList as P, createBlock as ve } from "vue";
2
+ import { u as ce, c as he, t as ye, C as Z, _ as T, o as fe, e as q, g as pe, w as I, $ as ge, a0 as me, X as ke, s as V, R as H, i as Y, f as J } from "./index-B-k71vpj.js";
3
+ import { u as K } from "./useNestedProp-BeXDUo1v.js";
4
+ import be from "./vue-ui-skeleton-DSXzxNMC.js";
5
+ import { t as _e, u as xe } from "./useResponsive-CoxXLe23.js";
6
+ import { _ as we } from "./PackageVersion-1NslmM8M.js";
7
+ import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["id"], Ie = ["stop-color"], Ve = ["stop-color"], ze = ["id"], Se = ["stop-color"], We = ["stop-color"], Ae = ["id"], De = ["stop-color"], Pe = ["stop-color"], Te = { key: 1 }, Oe = ["d", "fill"], Be = ["d", "fill"], Ee = ["d", "stroke", "stroke-width"], Fe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ge = ["x", "y", "width", "height", "fill", "rx"], Re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ue = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Xe = ["x", "y", "font-size", "font-weight", "fill"], Ze = ["x", "y", "height", "width", "onMouseenter", "onClick"], qe = {
9
9
  __name: "vue-ui-sparkline",
10
10
  props: {
11
11
  config: {
@@ -38,8 +38,8 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
38
38
  }
39
39
  },
40
40
  emits: ["hoverIndex", "selectDatapoint"],
41
- setup(_, { emit: V }) {
42
- const s = _, { vue_ui_sparkline: Q } = he(), $ = v(() => !!s.dataset && s.dataset.length), p = m(ye()), z = m(null), O = m(null), B = m(null), e = v({
41
+ setup(_, { emit: z }) {
42
+ const s = _, { vue_ui_sparkline: Q } = ce(), $ = v(() => !!s.dataset && s.dataset.length), p = k(he()), S = k(null), O = k(null), B = k(null), e = v({
43
43
  get: () => E(),
44
44
  set: (t) => t
45
45
  });
@@ -51,7 +51,7 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
51
51
  let l = {};
52
52
  return t.theme ? l = {
53
53
  ...K({
54
- userConfig: fe.vue_ui_sparkline[t.theme] || s.config,
54
+ userConfig: ye.vue_ui_sparkline[t.theme] || s.config,
55
55
  defaultConfig: t
56
56
  })
57
57
  } : l = t, s.config && Z(s.config, "style.scaleMin") ? l.style.scaleMin = s.config.style.scaleMin : l.style.scaleMin = null, s.config && Z(s.config, "style.scaleMax") ? l.style.scaleMax = s.config.style.scaleMax : l.style.scaleMax = null, l;
@@ -71,7 +71,7 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
71
71
  threshold: e.value.downsample.threshold
72
72
  });
73
73
  }, { deep: !0 });
74
- const b = m(ee());
74
+ const b = k(ee());
75
75
  function ee() {
76
76
  return T({
77
77
  data: s.dataset.map((t) => e.value.style.animation.show ? {
@@ -84,8 +84,8 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
84
84
  threshold: e.value.downsample.threshold
85
85
  });
86
86
  }
87
- const F = m(null);
88
- re(() => {
87
+ const F = k(null);
88
+ ne(() => {
89
89
  if (G(), e.value.style.animation.show && s.dataset.length > 1) {
90
90
  let a = function() {
91
91
  l < L.value.length ? (b.value.push(L.value[l]), setTimeout(() => {
@@ -99,11 +99,11 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
99
99
  }
100
100
  });
101
101
  function G() {
102
- if (pe(s.dataset) ? q({
102
+ if (fe(s.dataset) ? q({
103
103
  componentName: "VueUiSparkline",
104
104
  type: "dataset"
105
105
  }) : s.dataset.forEach((t, l) => {
106
- ge({
106
+ pe({
107
107
  datasetObject: t,
108
108
  requiredAttributes: ["period", "value"]
109
109
  }).forEach((a) => {
@@ -115,73 +115,76 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
115
115
  });
116
116
  });
117
117
  }), e.value.responsive) {
118
- const t = xe(() => {
119
- const { width: l, height: a } = we({
120
- chart: z.value,
118
+ const t = _e(() => {
119
+ const { width: l, height: a } = xe({
120
+ chart: S.value,
121
121
  title: e.value.style.title.show && s.showInfo ? O.value : null,
122
122
  source: B.value
123
123
  });
124
124
  u.value.width = l, u.value.height = a, u.value.chartWidth = e.value.style.chartWidth / 500 * l, u.value.padding = s.forcedPadding / 500 * l;
125
125
  });
126
- F.value = new ResizeObserver(t), F.value.observe(z.value.parentNode);
126
+ F.value = new ResizeObserver(t), F.value.observe(S.value.parentNode);
127
127
  }
128
128
  }
129
- const u = m({
129
+ const u = k({
130
130
  height: 80 * s.heightRatio,
131
131
  width: 500,
132
132
  chartWidth: e.value.style.chartWidth,
133
133
  padding: s.forcedPadding
134
- }), te = m(6), o = v(() => ({
135
- top: 12,
136
- left: 0,
137
- right: u.value.width,
138
- bottom: u.value.height - 3,
139
- start: s.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? u.value.width - u.value.chartWidth : u.value.padding,
140
- width: s.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth : u.value.width - u.value.padding,
141
- height: u.value.height - 12
142
- })), S = v(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), ae = v(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), x = v(() => {
143
- const t = S.value >= 0 ? 0 : S.value;
134
+ }), o = v(() => {
135
+ const { top: t, right: l, bottom: a, left: n } = e.value.style.padding;
136
+ return {
137
+ top: t,
138
+ left: n,
139
+ right: u.value.width - l,
140
+ bottom: u.value.height - a,
141
+ start: s.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? u.value.width - u.value.chartWidth + n : u.value.padding + n,
142
+ width: s.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth - n - l : u.value.width - u.value.padding - n - l,
143
+ height: u.value.height - t - a
144
+ };
145
+ }), W = v(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), te = v(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), x = v(() => {
146
+ const t = W.value >= 0 ? 0 : W.value;
144
147
  return Math.abs(t);
145
- }), le = v(() => ae.value + x.value + te.value), N = v(() => o.value.bottom - o.value.height * W(x.value));
146
- function W(t) {
147
- return t / le.value;
148
+ }), ae = v(() => te.value + x.value), N = v(() => o.value.bottom - o.value.height * A(x.value));
149
+ function A(t) {
150
+ return t / ae.value;
148
151
  }
149
- const g = v(() => L.value.length - 1), i = v(() => b.value.map((t, l) => {
152
+ const g = v(() => L.value.length - 1), d = v(() => b.value.map((t, l) => {
150
153
  const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
151
154
  return {
152
155
  absoluteValue: a,
153
156
  period: t.period,
154
157
  plotValue: a + x.value,
155
- toMax: W(a + x.value),
158
+ toMax: A(a + x.value),
156
159
  x: o.value.start + l * (o.value.width / (g.value + 1) > u.padding ? u.padding : o.value.width / (g.value + 1)),
157
- y: o.value.bottom - o.value.height * W(a + x.value),
160
+ y: o.value.bottom - o.value.height * A(a + x.value),
158
161
  id: `plot_${p.value}_${l}`,
159
162
  color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - l / g.value)) : e.value.style.line.color,
160
163
  width: o.value.width / (g.value + 1) > u.padding ? u.padding : o.value.width / (g.value + 1)
161
164
  };
162
- })), ue = v(() => {
163
- const t = { x: i.value[0].x, y: u.value.height - 6 }, l = { x: i.value[i.value.length - 1].x, y: u.value.height - 6 }, a = [];
164
- return i.value.forEach((d) => {
165
- a.push(`${d.x},${d.y} `);
165
+ })), le = v(() => {
166
+ const t = { x: d.value[0].x, y: u.value.height - 6 }, l = { x: d.value[d.value.length - 1].x, y: u.value.height - 6 }, a = [];
167
+ return d.value.forEach((n) => {
168
+ a.push(`${n.x},${n.y} `);
166
169
  }), [t.x, t.y, ...a, l.x, l.y].toString();
167
- }), y = m(void 0);
168
- function se(t, l) {
169
- y.value = t, V("hoverIndex", { index: l });
170
+ }), y = k(void 0);
171
+ function ue(t, l) {
172
+ y.value = t, z("hoverIndex", { index: l });
170
173
  }
171
- function oe() {
172
- y.value = void 0, V("hoverIndex", { index: void 0 });
174
+ function se() {
175
+ y.value = void 0, z("hoverIndex", { index: void 0 });
173
176
  }
174
- const k = v(() => {
177
+ const m = v(() => {
175
178
  if ($.value) {
176
- const t = i.value.map((a) => a.absoluteValue), l = t.reduce((a, d) => a + d, 0);
179
+ const t = d.value.map((a) => a.absoluteValue), l = t.reduce((a, n) => a + n, 0);
177
180
  return {
178
- latest: i.value[i.value.length - 1].absoluteValue,
181
+ latest: d.value[d.value.length - 1].absoluteValue,
179
182
  sum: l,
180
- average: l / i.value.length,
181
- median: me(t),
182
- trend: ke(i.value.map(({ x: a, y: d, absoluteValue: j }) => ({
183
+ average: l / d.value.length,
184
+ median: ge(t),
185
+ trend: me(d.value.map(({ x: a, y: n, absoluteValue: j }) => ({
183
186
  x: a,
184
- y: d,
187
+ y: n,
185
188
  value: j
186
189
  }))).trend
187
190
  };
@@ -193,26 +196,26 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
193
196
  median: null,
194
197
  trend: null
195
198
  };
196
- }), R = v(() => $.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
197
- function ne(t, l) {
198
- V("selectDatapoint", { datapoint: t, index: l });
199
+ }), R = v(() => $.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
200
+ function oe(t, l) {
201
+ z("selectDatapoint", { datapoint: t, index: l });
199
202
  }
200
- return (t, l) => (n(), r("div", {
203
+ return (t, l) => (r(), i("div", {
201
204
  ref_key: "sparklineChart",
202
- ref: z,
205
+ ref: S,
203
206
  class: "vue-ui-sparkline",
204
207
  id: p.value,
205
208
  style: C(`width:100%;font-family:${e.value.style.fontFamily};`)
206
209
  }, [
207
- M(t.$slots, "before", ie(de({
210
+ M(t.$slots, "before", re(ie({
208
211
  selected: y.value,
209
- latest: k.value.latest,
210
- sum: k.value.sum,
211
- average: k.value.average,
212
- median: k.value.median,
213
- trend: k.value.trend
212
+ latest: m.value.latest,
213
+ sum: m.value.sum,
214
+ average: m.value.average,
215
+ median: m.value.median,
216
+ trend: m.value.trend
214
217
  })), void 0, !0),
215
- e.value.style.title.show && _.showInfo ? (n(), r("div", {
218
+ e.value.style.title.show && _.showInfo ? (r(), i("div", {
216
219
  key: 0,
217
220
  ref_key: "chartTitle",
218
221
  ref: O,
@@ -223,14 +226,14 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
223
226
  style: C(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
224
227
  }, X(y.value ? y.value.period : e.value.style.title.text), 5)
225
228
  ], 4)) : c("", !0),
226
- $.value ? (n(), r("svg", {
229
+ $.value ? (r(), i("svg", {
227
230
  key: 1,
228
- xmlns: h(be),
231
+ xmlns: h(ke),
229
232
  viewBox: `0 0 ${u.value.width} ${u.value.height}`,
230
- style: C(`background:${e.value.style.backgroundColor};overflow:hidden`)
233
+ style: C(`background:${e.value.style.backgroundColor};overflow:visible`)
231
234
  }, [
232
- ve($e),
233
- t.$slots["chart-background"] ? (n(), r("foreignObject", {
235
+ de(we),
236
+ t.$slots["chart-background"] ? (r(), i("foreignObject", {
234
237
  key: 0,
235
238
  x: 0,
236
239
  y: 0,
@@ -241,7 +244,7 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
241
244
  }
242
245
  }, [
243
246
  M(t.$slots, "chart-background", {}, void 0, !0)
244
- ], 8, Me)) : c("", !0),
247
+ ], 8, Ce)) : c("", !0),
245
248
  f("defs", null, [
246
249
  f("linearGradient", {
247
250
  x1: "0%",
@@ -252,13 +255,13 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
252
255
  }, [
253
256
  f("stop", {
254
257
  offset: "0%",
255
- "stop-color": h(P)(h(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
256
- }, null, 8, Pe),
258
+ "stop-color": h(V)(h(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
259
+ }, null, 8, Ie),
257
260
  f("stop", {
258
261
  offset: "100%",
259
- "stop-color": h(P)(e.value.style.area.color, e.value.style.area.opacity)
262
+ "stop-color": h(V)(e.value.style.area.color, e.value.style.area.opacity)
260
263
  }, null, 8, Ve)
261
- ], 8, Ie),
264
+ ], 8, Me),
262
265
  f("linearGradient", {
263
266
  x2: "0%",
264
267
  y2: "100%",
@@ -285,42 +288,42 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
285
288
  f("stop", {
286
289
  offset: "100%",
287
290
  "stop-color": e.value.style.bar.color
288
- }, null, 8, Te)
291
+ }, null, 8, Pe)
289
292
  ], 8, Ae)
290
293
  ]),
291
- e.value.style.area.show && !w.value && i.value[0] ? (n(), r("g", Oe, [
292
- e.value.style.line.smooth ? (n(), r("path", {
294
+ e.value.style.area.show && !w.value && d.value[0] ? (r(), i("g", Te, [
295
+ e.value.style.line.smooth ? (r(), i("path", {
293
296
  key: 0,
294
- d: `M ${i.value[0].x},${o.value.bottom} ${h(H)(i.value)} L ${i.value.at(-1).x},${o.value.bottom} Z`,
295
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : h(P)(e.value.style.area.color, e.value.style.area.opacity)
296
- }, null, 8, Be)) : (n(), r("path", {
297
+ d: `M ${d.value[0].x},${o.value.bottom} ${h(H)(d.value)} L ${d.value.at(-1).x},${o.value.bottom} Z`,
298
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : h(V)(e.value.style.area.color, e.value.style.area.opacity)
299
+ }, null, 8, Oe)) : (r(), i("path", {
297
300
  key: 1,
298
- d: `M${ue.value}Z`,
299
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : h(P)(e.value.style.area.color, e.value.style.area.opacity)
300
- }, null, 8, Ee))
301
+ d: `M${le.value}Z`,
302
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : h(V)(e.value.style.area.color, e.value.style.area.opacity)
303
+ }, null, 8, Be))
301
304
  ])) : c("", !0),
302
- e.value.style.line.smooth && !w.value ? (n(), r("path", {
305
+ e.value.style.line.smooth && !w.value ? (r(), i("path", {
303
306
  key: 2,
304
- d: `M ${h(H)(i.value)}`,
307
+ d: `M ${h(H)(d.value)}`,
305
308
  stroke: e.value.style.line.color,
306
309
  fill: "none",
307
310
  "stroke-width": e.value.style.line.strokeWidth,
308
311
  "stroke-linecap": "round"
309
- }, null, 8, Fe)) : c("", !0),
310
- (n(!0), r(A, null, D(i.value, (a, d) => (n(), r("g", null, [
311
- d < i.value.length - 1 && !e.value.style.line.smooth && !w.value ? (n(), r("line", {
312
+ }, null, 8, Ee)) : c("", !0),
313
+ (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("g", null, [
314
+ n < d.value.length - 1 && !e.value.style.line.smooth && !w.value ? (r(), i("line", {
312
315
  key: 0,
313
316
  x1: a.x,
314
- x2: i.value[d + 1].x,
317
+ x2: d.value[n + 1].x,
315
318
  y1: a.y,
316
- y2: i.value[d + 1].y,
319
+ y2: d.value[n + 1].y,
317
320
  stroke: a.color,
318
321
  "stroke-width": e.value.style.line.strokeWidth,
319
322
  "stroke-linecap": "round",
320
323
  "stroke-linejoin": "round",
321
324
  "shape-rendering": "geometricPrecision"
322
- }, null, 8, Ge)) : c("", !0),
323
- w.value ? (n(), r("rect", {
325
+ }, null, 8, Fe)) : c("", !0),
326
+ w.value ? (r(), i("rect", {
324
327
  key: 1,
325
328
  x: a.x - a.width / 2,
326
329
  y: a.absoluteValue > 0 ? a.y : N.value,
@@ -328,8 +331,8 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
328
331
  height: Math.abs(a.y - N.value),
329
332
  fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
330
333
  rx: e.value.style.bar.borderRadius
331
- }, null, 8, Re)) : c("", !0),
332
- e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || _.selectedIndex === d) ? (n(), r("line", {
334
+ }, null, 8, Ge)) : c("", !0),
335
+ e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || _.selectedIndex === n) ? (r(), i("line", {
333
336
  key: 2,
334
337
  x1: a.x,
335
338
  x2: a.x,
@@ -339,9 +342,9 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
339
342
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
340
343
  "stroke-linecap": "round",
341
344
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
342
- }, null, 8, je)) : c("", !0)
345
+ }, null, 8, Re)) : c("", !0)
343
346
  ]))), 256)),
344
- S.value < 0 ? (n(), r("line", {
347
+ W.value < 0 ? (r(), i("line", {
345
348
  key: 3,
346
349
  x1: o.value.start,
347
350
  x2: o.value.start + o.value.width - 16,
@@ -351,9 +354,9 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
351
354
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
352
355
  "stroke-width": e.value.style.zeroLine.strokeWidth,
353
356
  "stroke-linecap": "round"
354
- }, null, 8, Ue)) : c("", !0),
355
- e.value.style.plot.show ? (n(!0), r(A, { key: 4 }, D(i.value, (a, d) => (n(), r("g", null, [
356
- y.value && a.id === y.value.id || _.selectedIndex === d ? (n(), r("circle", {
357
+ }, null, 8, je)) : c("", !0),
358
+ e.value.style.plot.show ? (r(!0), i(D, { key: 4 }, P(d.value, (a, n) => (r(), i("g", null, [
359
+ y.value && a.id === y.value.id || _.selectedIndex === n ? (r(), i("circle", {
357
360
  key: 0,
358
361
  cx: a.x,
359
362
  cy: a.y,
@@ -361,9 +364,9 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
361
364
  fill: a.color,
362
365
  stroke: e.value.style.plot.stroke,
363
366
  "stroke-width": e.value.style.plot.strokeWidth
364
- }, null, 8, Xe)) : c("", !0)
367
+ }, null, 8, Ue)) : c("", !0)
365
368
  ]))), 256)) : c("", !0),
366
- _.showInfo && e.value.style.dataLabel.show ? (n(), r("text", {
369
+ _.showInfo && e.value.style.dataLabel.show ? (r(), i("text", {
367
370
  key: 5,
368
371
  x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : o.value.width + 12 + e.value.style.dataLabel.offsetX,
369
372
  y: u.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
@@ -379,20 +382,20 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
379
382
  e.value.style.dataLabel.formatter,
380
383
  R.value,
381
384
  h(J)({ p: e.value.style.dataLabel.prefix, v: R.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
382
- )), 9, Ze)) : c("", !0),
383
- (n(!0), r(A, null, D(i.value, (a, d) => (n(), r("rect", {
385
+ )), 9, Xe)) : c("", !0),
386
+ (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("rect", {
384
387
  x: a.x - (o.value.width / (g.value + 1) > u.value.padding ? u.value.padding : o.value.width / (g.value + 1)) / 2,
385
388
  y: o.value.top - 6,
386
389
  height: o.value.height + 6,
387
390
  width: o.value.width / (g.value + 1) > u.value.padding ? u.value.padding : o.value.width / (g.value + 1),
388
391
  fill: "transparent",
389
- onMouseenter: (j) => se(a, d),
390
- onMouseleave: oe,
391
- onClick: () => ne(a, d)
392
- }, null, 40, qe))), 256)),
392
+ onMouseenter: (j) => ue(a, n),
393
+ onMouseleave: se,
394
+ onClick: () => oe(a, n)
395
+ }, null, 40, Ze))), 256)),
393
396
  M(t.$slots, "svg", { svg: u.value }, void 0, !0)
394
- ], 12, Ce)) : c("", !0),
395
- t.$slots.source ? (n(), r("div", {
397
+ ], 12, Ne)) : c("", !0),
398
+ t.$slots.source ? (r(), i("div", {
396
399
  key: 2,
397
400
  ref_key: "source",
398
401
  ref: B,
@@ -400,7 +403,7 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
400
403
  }, [
401
404
  M(t.$slots, "source", {}, void 0, !0)
402
405
  ], 512)) : c("", !0),
403
- $.value ? c("", !0) : (n(), ce(_e, {
406
+ $.value ? c("", !0) : (r(), ve(be, {
404
407
  key: 3,
405
408
  config: {
406
409
  type: "sparkline",
@@ -412,9 +415,9 @@ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["i
412
415
  }
413
416
  }
414
417
  }, null, 8, ["config"]))
415
- ], 12, Ne));
418
+ ], 12, Le));
416
419
  }
417
- }, lt = /* @__PURE__ */ Le(He, [["__scopeId", "data-v-16e41da8"]]);
420
+ }, at = /* @__PURE__ */ $e(qe, [["__scopeId", "data-v-792e1bb5"]]);
418
421
  export {
419
- lt as default
422
+ at as default
420
423
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CC7tVh7F.cjs"),S=require("./useNestedProp-CxwPeWts.cjs"),q=require("./vue-ui-skeleton-BgEjqaz9.cjs"),P=require("./useResponsive-BJ7DTGpm.cjs"),G=require("./PackageVersion-D3dK8oA3.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=["id"],U=["xmlns","viewBox"],X=["width","height"],Z=["id"],Y=["stop-color"],J=["stop-color"],K=["id"],Q=["stop-color"],ee=["stop-color"],te=["id"],le=["stop-color"],ae=["stop-color"],oe={key:1},ne=["d","fill"],re=["d","fill"],ue=["d","stroke","stroke-width"],se=["x1","x2","y1","y2","stroke","stroke-width"],ie=["x","y","width","height","fill","rx"],de=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ce=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],ve=["cx","cy","r","fill","stroke","stroke-width"],he=["x","y","font-size","font-weight","fill"],ye=["x","y","height","width","onMouseenter","onClick"],fe={__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0},heightRatio:{type:Number,default:1},forcedPadding:{type:Number,default:30}},emits:["hoverIndex","selectDatapoint"],setup(p,{emit:x}){const u=p,{vue_ui_sparkline:z}=r.useConfig(),k=e.computed(()=>!!u.dataset&&u.dataset.length),v=e.ref(r.createUid()),w=e.ref(null),C=e.ref(null),L=e.ref(null),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=S.useNestedProp({userConfig:u.config,defaultConfig:z});let o={};return l.theme?o={...S.useNestedProp({userConfig:r.themes.vue_ui_sparkline[l.theme]||u.config,defaultConfig:l})}:o=l,u.config&&r.hasDeepProperty(u.config,"style.scaleMin")?o.style.scaleMin=u.config.style.scaleMin:o.style.scaleMin=null,u.config&&r.hasDeepProperty(u.config,"style.scaleMax")?o.style.scaleMax=u.config.style.scaleMax:o.style.scaleMax=null,o}const b=e.computed(()=>r.largestTriangleThreeBucketsArrayObjects({data:u.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>u.config,l=>{t.value=V(),$(),n.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>u.dataset,l=>{f.value=r.largestTriangleThreeBucketsArrayObjects({data:u.dataset.map(o=>({...o,value:[void 0].includes(o.value)?null:o.value})),threshold:t.value.downsample.threshold})},{deep:!0});const f=e.ref(D());function D(){return r.largestTriangleThreeBucketsArrayObjects({data:u.dataset.map(l=>t.value.style.animation.show?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value}),threshold:t.value.downsample.threshold})}const E=e.ref(null);e.onMounted(()=>{if($(),t.value.style.animation.show&&u.dataset.length>1){let a=function(){o<b.value.length?(f.value.push(b.value[o]),setTimeout(()=>{requestAnimationFrame(a)},l)):f.value=b.value,o+=1};f.value=[];const l=t.value.style.animation.animationFrames/u.dataset.length;let o=0;a()}});function $(){if(r.objectIsEmpty(u.dataset)?r.error({componentName:"VueUiSparkline",type:"dataset"}):u.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{r.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=P.throttle(()=>{const{width:o,height:a}=P.useResponsive({chart:w.value,title:t.value.style.title.show&&u.showInfo?C.value:null,source:L.value});n.value.width=o,n.value.height=a,n.value.chartWidth=t.value.style.chartWidth/500*o,n.value.padding=u.forcedPadding/500*o});E.value=new ResizeObserver(l),E.value.observe(w.value.parentNode)}}const n=e.ref({height:80*u.heightRatio,width:500,chartWidth:t.value.style.chartWidth,padding:u.forcedPadding}),s=e.computed(()=>{const{top:l,right:o,bottom:a,left:i}=t.value.style.padding;return{top:l,left:i,right:n.value.width-o,bottom:n.value.height-a,start:u.showInfo&&t.value.style.dataLabel.show&&t.value.style.dataLabel.position==="left"?n.value.width-n.value.chartWidth+i:n.value.padding+i,width:u.showInfo&&t.value.style.dataLabel.show?n.value.chartWidth-i-o:n.value.width-n.value.padding-i-o,height:n.value.height-l-a}}),N=e.computed(()=>[null,void 0].includes(t.value.style.scaleMin)?Math.min(...f.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0)):t.value.style.scaleMin),A=e.computed(()=>[null,void 0].includes(t.value.style.scaleMax)?Math.max(...f.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0)):t.value.style.scaleMax),m=e.computed(()=>{const l=N.value>=0?0:N.value;return Math.abs(l)}),O=e.computed(()=>A.value+m.value),_=e.computed(()=>s.value.bottom-s.value.height*B(m.value));function B(l){return l/O.value}const h=e.computed(()=>b.value.length-1),d=e.computed(()=>f.value.map((l,o)=>{const a=isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0;return{absoluteValue:a,period:l.period,plotValue:a+m.value,toMax:B(a+m.value),x:s.value.start+o*(s.value.width/(h.value+1)>n.padding?n.padding:s.value.width/(h.value+1)),y:s.value.bottom-s.value.height*B(a+m.value),id:`plot_${v.value}_${o}`,color:g.value?t.value.style.bar.color:t.value.style.area.useGradient?r.shiftHue(t.value.style.line.color,.05*(1-o/h.value)):t.value.style.line.color,width:s.value.width/(h.value+1)>n.padding?n.padding:s.value.width/(h.value+1)}})),T=e.computed(()=>{const l={x:d.value[0].x,y:n.value.height-6},o={x:d.value[d.value.length-1].x,y:n.value.height-6},a=[];return d.value.forEach(i=>{a.push(`${i.x},${i.y} `)}),[l.x,l.y,...a,o.x,o.y].toString()}),c=e.ref(void 0);function W(l,o){c.value=l,x("hoverIndex",{index:o})}function j(){c.value=void 0,x("hoverIndex",{index:void 0})}const y=e.computed(()=>{if(k.value){const l=d.value.map(a=>a.absoluteValue),o=l.reduce((a,i)=>a+i,0);return{latest:d.value[d.value.length-1].absoluteValue,sum:o,average:o/d.value.length,median:r.calcMedian(l),trend:r.calcLinearProgression(d.value.map(({x:a,y:i,absoluteValue:I})=>({x:a,y:i,value:I}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),M=e.computed(()=>k.value?t.value.style.dataLabel.valueType==="latest"?y.value.latest:t.value.style.dataLabel.valueType==="sum"?y.value.sum:t.value.style.dataLabel.valueType==="average"?y.value.average:0:0),g=e.computed(()=>t.value.type&&t.value.type==="bar");function F(l,o){x("selectDatapoint",{datapoint:l,index:o})}return(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:w,class:"vue-ui-sparkline",id:v.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};`)},[e.renderSlot(l.$slots,"before",e.normalizeProps(e.guardReactiveProps({selected:c.value,latest:y.value.latest,sum:y.value.sum,average:y.value.average,median:y.value.median,trend:y.value.trend})),void 0,!0),t.value.style.title.show&&p.showInfo?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:C,class:"vue-ui-sparkline-title",style:e.normalizeStyle(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign==="left"?"flex-start":t.value.style.title.textAlign==="right"?"flex-end":"center"};height:${t.value.style.title.fontSize*2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold?"bold":"normal"};`)},[e.createElementVNode("span",{style:e.normalizeStyle(`padding:${t.value.style.title.textAlign==="left"?"0 0 0 12px":t.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},e.toDisplayString(c.value?c.value.period:t.value.style.title.text),5)],4)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${n.value.width} ${n.value.height}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor};overflow:visible`)},[e.createVNode(G._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,X)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.area.color,.05),t.value.style.area.opacity)},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,J)],8,Z),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.bar.color},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.shiftHue)(t.value.style.bar.color,.05)},null,8,ee)],8,K),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.shiftHue)(t.value.style.bar.color,.05)},null,8,le),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,ae)],8,te)]),t.value.style.area.show&&!g.value&&d.value[0]?(e.openBlock(),e.createElementBlock("g",oe,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${d.value[0].x},${s.value.bottom} ${e.unref(r.createSmoothPath)(d.value)} L ${d.value.at(-1).x},${s.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(r.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,ne)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${T.value}Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(r.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,re))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&!g.value?(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${e.unref(r.createSmoothPath)(d.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,ue)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("g",null,[i<d.value.length-1&&!t.value.style.line.smooth&&!g.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:d.value[i+1].x,y1:a.y,y2:d.value[i+1].y,stroke:a.color,"stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"geometricPrecision"},null,8,se)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.width/2,y:a.absoluteValue>0?a.y:_.value,width:a.width,height:Math.abs(a.y-_.value),fill:a.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${v.value})`:`url(#sparkline_bar_gradient_neg_${v.value})`,rx:t.value.style.bar.borderRadius},null,8,ie)):e.createCommentVNode("",!0),t.value.style.verticalIndicator.show&&(c.value&&a.id===c.value.id||p.selectedIndex===i)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.x,x2:a.x,y1:s.value.top-6,y2:s.value.bottom,stroke:t.value.style.verticalIndicator.color||a.color,"stroke-width":t.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.verticalIndicator.strokeDasharray||0},null,8,de)):e.createCommentVNode("",!0)]))),256)),N.value<0?(e.openBlock(),e.createElementBlock("line",{key:3,x1:s.value.start,x2:s.value.start+s.value.width-16,y1:_.value,y2:_.value,stroke:t.value.style.zeroLine.color,"stroke-dasharray":t.value.style.zeroLine.strokeWidth*2,"stroke-width":t.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,ce)):e.createCommentVNode("",!0),t.value.style.plot.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("g",null,[c.value&&a.id===c.value.id||p.selectedIndex===i?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:a.x,cy:a.y,r:t.value.style.plot.radius,fill:a.color,stroke:t.value.style.plot.stroke,"stroke-width":t.value.style.plot.strokeWidth},null,8,ve)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),p.showInfo&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:t.value.style.dataLabel.position==="left"?12+t.value.style.dataLabel.offsetX:s.value.width+12+t.value.style.dataLabel.offsetX,y:n.value.height/2+t.value.style.dataLabel.fontSize/2.5+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,"font-weight":t.value.style.dataLabel.bold?"bold":"normal",fill:t.value.style.dataLabel.color},e.toDisplayString(c.value?e.unref(r.applyDataLabel)(t.value.style.dataLabel.formatter,c.value.absoluteValue,e.unref(r.dataLabel)({p:t.value.style.dataLabel.prefix,v:c.value.absoluteValue,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}),{datapoint:c.value}):e.unref(r.applyDataLabel)(t.value.style.dataLabel.formatter,M.value,e.unref(r.dataLabel)({p:t.value.style.dataLabel.prefix,v:M.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,he)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-(s.value.width/(h.value+1)>n.value.padding?n.value.padding:s.value.width/(h.value+1))/2,y:s.value.top-6,height:s.value.height+6,width:s.value.width/(h.value+1)>n.value.padding?n.value.padding:s.value.width/(h.value+1),fill:"transparent",onMouseenter:I=>W(a,i),onMouseleave:j,onClick:()=>F(a,i)},null,40,ye))),256)),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],12,U)):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"source",ref:L,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q.default,{key:3,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,H))}},pe=R._export_sfc(fe,[["__scopeId","data-v-792e1bb5"]]);exports.default=pe;
@@ -1,9 +1,9 @@
1
1
  import { useSlots as ne, onMounted as Y, computed as m, ref as d, watch as G, openBlock as s, createElementBlock as r, normalizeStyle as v, createElementVNode as p, toDisplayString as w, createCommentVNode as y, unref as C, createVNode as q, Fragment as x, renderList as $, normalizeClass as F, createBlock as ue, withCtx as H, renderSlot as U, normalizeProps as X, guardReactiveProps as J } from "vue";
2
- import { u as ie, c as K, t as ce, a as de, p as i, d as N, b as ve, o as pe, e as Q, g as ge, f as V, X as fe, s as he, w as ye, i as Z, x as me } from "./index-CG_OTzik.js";
3
- import { u as ee } from "./useNestedProp-BZZvruew.js";
4
- import ke from "./vue-ui-skeleton-B6hyEcxy.js";
5
- import { _ as be } from "./PackageVersion-LRbiiLp0.js";
6
- import { _ as _e } from "./Tooltip-CoahRzyE.js";
2
+ import { u as ie, c as K, t as ce, a as de, p as i, d as N, b as ve, o as pe, e as Q, g as ge, f as V, X as fe, s as he, w as ye, i as Z, x as me } from "./index-B-k71vpj.js";
3
+ import { u as ee } from "./useNestedProp-BeXDUo1v.js";
4
+ import ke from "./vue-ui-skeleton-DSXzxNMC.js";
5
+ import { _ as be } from "./PackageVersion-1NslmM8M.js";
6
+ import { _ as _e } from "./Tooltip-C72f83eg.js";
7
7
  import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const Ce = ["xmlns", "viewBox"], xe = ["id"], $e = ["stop-color"], Se = ["stop-color"], ze = ["stop-color"], Pe = {
9
9
  id: "stackPill",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-V6tl1xgQ.cjs"),V=require("./useNestedProp--db71Vbu.cjs"),q=require("./vue-ui-skeleton-D56sSIBO.cjs"),O=require("./PackageVersion-B7-YDa6h.cjs"),U=require("./Tooltip-DZ1uTqBW.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["xmlns","viewBox"],H=["id"],I=["stop-color"],R=["stop-color"],W=["stop-color"],Y={id:"stackPill",clipPathUnits:"objectBoundingBox"},G=["fill"],X={key:0,"clip-path":"url(#stackPill)"},J=["x","width","height","fill"],K=["x","width","height","fill","stroke"],Q=["onClick","x","width","height","onMouseenter"],Z=["width","height","rx"],ee=["onClick"],te={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},le=["height","width"],oe=["fill"],ae={key:4,ref:"source",dir:"auto"},re={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(P,{emit:D}){const u=P,{vue_ui_sparkstackbar:L}=a.useConfig(),F=e.useSlots();e.onMounted(()=>{F["chart-background"]&&console.warn("VueUiSparkStackbar does not support the #chart-background slot.")});const x=e.computed(()=>!!u.dataset&&u.dataset.length),B=e.ref(null),S=e.ref(a.createUid()),b=e.ref(!1),_=e.ref(""),t=e.computed({get:()=>$(),set:l=>l});function $(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:L});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>u.config,l=>{t.value=$(),E()},{deep:!0}),e.watch(()=>u.dataset,l=>{v.value=u.dataset.map((n,o)=>({...n,color:n.color?a.convertColorToHex(n.color):f.value[o]||a.palette[o]||a.palette[o%a.palette.length]}))},{deep:!0});const f=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),v=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?a.convertColorToHex(l.color):f.value[n]||a.palette[n]||a.palette[n%a.palette.length]}))),g=e.ref(!0);e.onMounted(()=>{if(E(),t.value.style.animation.show){let p=function(){r+=o/l,r<o?(v.value=v.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length]})),requestAnimationFrame(p)):(g.value=!1,v.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length],id:a.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),o=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;g.value=!0,p()}});function E(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(o=>{a.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:o,index:n})})})}const c=e.ref({width:500,height:16}),d=e.ref([]),N=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!d.value.includes(n)).reduce((l,n)=>l+n,0)),y=e.computed(()=>v.value.map((l,n)=>{const o=l.value||0,r=o/N.value,p=isNaN(r)?0:r,s=p*c.value.width;return{...l,value:o,proportion:p,width:s,proportionLabel:a.dataLabel({v:p*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),C=e.computed(()=>y.value.filter((l,n)=>!d.value.includes(n)));function T(l){d.value.includes(l)?d.value=d.value.filter(n=>n!==l):d.value.length<v.value.length-1&&d.value.push(l)}const h=e.computed(()=>{let l=0;const n=[];for(let o=0;o<C.value.length;o+=1)n.push({...C.value[o],start:l}),l+=C.value[o].width;return n});function z(l,n){D("selectDatapoint",{datapoint:l,index:n})}const w=e.ref(null),k=e.ref(!1),m=e.ref(null);function A({datapoint:l,seriesIndex:n}){if(!t.value.style.tooltip.show)return;w.value={datapoint:l,seriesIndex:n,config:t.value,series:y.value},b.value=!0,m.value=n;const o=t.value.style.tooltip.customFormat;if(a.isFunction(o))try{const r=o({seriesIndex:n,datapoint:l,series:y.value,config:t.value});typeof r=="string"&&(_.value=r,k.value=!0)}catch{console.warn("Custom format cannot be applied."),k.value=!1}if(!k.value){let r="";r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,r+=`<b>${l.proportionLabel}</b>`,r+=`<span>(${a.applyDataLabel(t.value.style.legend.value.formatter,l.value,a.dataLabel({p:t.value.style.legend.value.prefix,v:l.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:l,seriesIndex:n})})</span>`,_.value=`<div>${r}</div>`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparkstackbarChart",ref:B,style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${S.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,I),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(o.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,W)],8,H))),128)),e.createElementVNode("clipPath",Y,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,G)])]),N.value>0?(e.openBlock(),e.createElementBlock("g",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_underlayer_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,J))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${S.value})`:o.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,K))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_trap_${r}`,onClick:()=>z(o,r),x:o.start,y:0,width:o.width,height:c.value.height,fill:"transparent",stroke:"none",class:e.normalizeClass({animated:!g.value}),onMouseenter:()=>A({datapoint:o,seriesIndex:r}),onMouseleave:n[0]||(n[0]=p=>{b.value=!1,m.value=null})},null,42,Q))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:c.value.width-4,height:c.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(c.value.height-4)/2},null,8,Z))],8,j)):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":d.value.includes(r)}),onClick:p=>{T(r),z(o,r)}},[e.createElementVNode("div",te,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:o.color},null,8,oe)],8,le)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(o.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(d.value.includes(r)?" - ":o.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.legend.value.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.legend.value.prefix,v:o.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:o,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,ee))),256))],4)):e.createCommentVNode("",!0),e.createVNode(U._sfc_main,{show:b.value&&t.value.style.tooltip.show,parent:B.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,fontSize:t.value.style.tooltip.fontSize,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,content:_.value,isCustom:k.value,offsetY:-124+t.value.style.tooltip.offsetY,blockShiftY:!0},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),_:3},8,["show","parent","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","content","isCustom","offsetY"]),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ae,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},ne=M._export_sfc(re,[["__scopeId","data-v-72244c73"]]);exports.default=ne;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-CC7tVh7F.cjs"),V=require("./useNestedProp-CxwPeWts.cjs"),q=require("./vue-ui-skeleton-BgEjqaz9.cjs"),O=require("./PackageVersion-D3dK8oA3.cjs"),U=require("./Tooltip-C5qSWrXO.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["xmlns","viewBox"],H=["id"],I=["stop-color"],R=["stop-color"],W=["stop-color"],Y={id:"stackPill",clipPathUnits:"objectBoundingBox"},G=["fill"],X={key:0,"clip-path":"url(#stackPill)"},J=["x","width","height","fill"],K=["x","width","height","fill","stroke"],Q=["onClick","x","width","height","onMouseenter"],Z=["width","height","rx"],ee=["onClick"],te={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},le=["height","width"],oe=["fill"],ae={key:4,ref:"source",dir:"auto"},re={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(P,{emit:D}){const u=P,{vue_ui_sparkstackbar:L}=a.useConfig(),F=e.useSlots();e.onMounted(()=>{F["chart-background"]&&console.warn("VueUiSparkStackbar does not support the #chart-background slot.")});const x=e.computed(()=>!!u.dataset&&u.dataset.length),B=e.ref(null),S=e.ref(a.createUid()),b=e.ref(!1),_=e.ref(""),t=e.computed({get:()=>$(),set:l=>l});function $(){const l=V.useNestedProp({userConfig:u.config,defaultConfig:L});return l.theme?{...V.useNestedProp({userConfig:a.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:a.themePalettes[l.theme]||a.palette}:l}e.watch(()=>u.config,l=>{t.value=$(),E()},{deep:!0}),e.watch(()=>u.dataset,l=>{v.value=u.dataset.map((n,o)=>({...n,color:n.color?a.convertColorToHex(n.color):f.value[o]||a.palette[o]||a.palette[o%a.palette.length]}))},{deep:!0});const f=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),v=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?a.convertColorToHex(l.color):f.value[n]||a.palette[n]||a.palette[n%a.palette.length]}))),g=e.ref(!0);e.onMounted(()=>{if(E(),t.value.style.animation.show){let p=function(){r+=o/l,r<o?(v.value=v.value.map((s,i)=>({...s,value:s.value+=n[i],color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length]})),requestAnimationFrame(p)):(g.value=!1,v.value=u.dataset.map((s,i)=>({...s,value:s.value||0,color:s.color?a.convertColorToHex(s.color):f.value[i]||a.palette[i]||a.palette[i%a.palette.length],id:a.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,i)=>s.value/l),o=u.dataset.map(s=>s.value||0).reduce((s,i)=>s+i,0);let r=0;g.value=!0,p()}});function E(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{a.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(o=>{a.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:o,index:n})})})}const c=e.ref({width:500,height:16}),d=e.ref([]),N=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!d.value.includes(n)).reduce((l,n)=>l+n,0)),y=e.computed(()=>v.value.map((l,n)=>{const o=l.value||0,r=o/N.value,p=isNaN(r)?0:r,s=p*c.value.width;return{...l,value:o,proportion:p,width:s,proportionLabel:a.dataLabel({v:p*100,s:"%",r:t.value.style.legend.percentage.rounding})}})),C=e.computed(()=>y.value.filter((l,n)=>!d.value.includes(n)));function T(l){d.value.includes(l)?d.value=d.value.filter(n=>n!==l):d.value.length<v.value.length-1&&d.value.push(l)}const h=e.computed(()=>{let l=0;const n=[];for(let o=0;o<C.value.length;o+=1)n.push({...C.value[o],start:l}),l+=C.value[o].width;return n});function z(l,n){D("selectDatapoint",{datapoint:l,index:n})}const w=e.ref(null),k=e.ref(!1),m=e.ref(null);function A({datapoint:l,seriesIndex:n}){if(!t.value.style.tooltip.show)return;w.value={datapoint:l,seriesIndex:n,config:t.value,series:y.value},b.value=!0,m.value=n;const o=t.value.style.tooltip.customFormat;if(a.isFunction(o))try{const r=o({seriesIndex:n,datapoint:l,series:y.value,config:t.value});typeof r=="string"&&(_.value=r,k.value=!0)}catch{console.warn("Custom format cannot be applied."),k.value=!1}if(!k.value){let r="";r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg>`,r+=`<b>${l.proportionLabel}</b>`,r+=`<span>(${a.applyDataLabel(t.value.style.legend.value.formatter,l.value,a.dataLabel({p:t.value.style.legend.value.prefix,v:l.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:l,seriesIndex:n})})</span>`,_.value=`<div>${r}</div>`}}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparkstackbarChart",ref:B,style:e.normalizeStyle(`width:100%; background:${t.value.style.backgroundColor}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),width:"100%",viewBox:`0 0 ${c.value.width} ${c.value.height}`},[e.createVNode(O._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${S.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,I),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(o.color,.05),100-t.value.style.bar.gradient.intensity)},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,W)],8,H))),128)),e.createElementVNode("clipPath",Y,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,G)])]),N.value>0?(e.openBlock(),e.createElementBlock("g",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_underlayer_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,J))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,x:o.start,y:0,width:o.width,height:c.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${S.value})`:o.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!g.value}),style:e.normalizeStyle({opacity:m.value!==null&&t.value.style.tooltip.show?m.value===r?1:.5:1})},null,14,K))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_trap_${r}`,onClick:()=>z(o,r),x:o.start,y:0,width:o.width,height:c.value.height,fill:"transparent",stroke:"none",class:e.normalizeClass({animated:!g.value}),onMouseenter:()=>A({datapoint:o,seriesIndex:r}),onMouseleave:n[0]||(n[0]=p=>{b.value=!1,m.value=null})},null,42,Q))),128))])):(e.openBlock(),e.createElementBlock("rect",{key:1,x:2,y:1,width:c.value.width-4,height:c.value.height-2,stroke:"#CCCCCC","stroke-width":"2",fill:"transparent",rx:(c.value.height-4)/2},null,8,Z))],8,j)):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(q.default,{key:2,config:{type:"sparkStackbar",style:{backgroundColor:t.value.style.backgroundColor,sparkStackbar:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.legend.show?(e.openBlock(),e.createElementBlock("div",{key:3,style:e.normalizeStyle(`background:transparent;margin:0 auto;margin:${t.value.style.legend.margin};justify-content:${t.value.style.legend.textAlign==="left"?"flex-start":t.value.style.legend.textAlign==="right"?"flex-end":"center"}`),class:"vue-ui-sparkstackbar-legend"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-size:${t.value.style.legend.fontSize}px;`),class:e.normalizeClass({"vue-ui-sparkstackbar-legend-item":!0,"vue-ui-sparkstackbar-legend-item-unselected":d.value.includes(r)}),onClick:p=>{T(r),z(o,r)}},[e.createElementVNode("div",te,[(e.openBlock(),e.createElementBlock("svg",{height:`${t.value.style.legend.fontSize}px`,width:`${t.value.style.legend.fontSize}px`,viewBox:"0 0 10 10"},[e.createElementVNode("circle",{cx:5,cy:5,r:5,fill:o.color},null,8,oe)],8,le)),e.createElementVNode("span",{style:e.normalizeStyle(`color:${t.value.style.legend.name.color}; font-weight:${t.value.style.legend.name.bold?"bold":"normal"}`)},e.toDisplayString(o.name),5),t.value.style.legend.percentage.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.legend.percentage.bold?"bold":"normal"};color:${t.value.style.legend.percentage.color}`)},e.toDisplayString(d.value.includes(r)?" - ":o.proportionLabel),5)):e.createCommentVNode("",!0),t.value.style.legend.value.show?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-weight:${t.value.style.legend.value.bold?"bold":"normal"};color:${t.value.style.legend.value.color}`)}," ("+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.legend.value.formatter,o.value,e.unref(a.dataLabel)({p:t.value.style.legend.value.prefix,v:o.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:o,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,ee))),256))],4)):e.createCommentVNode("",!0),e.createVNode(U._sfc_main,{show:b.value&&t.value.style.tooltip.show,parent:B.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,fontSize:t.value.style.tooltip.fontSize,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,content:_.value,isCustom:k.value,offsetY:-124+t.value.style.tooltip.offsetY,blockShiftY:!0},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...w.value})),void 0,!0)]),_:3},8,["show","parent","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","content","isCustom","offsetY"]),l.$slots.source?(e.openBlock(),e.createElementBlock("div",ae,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],4))}},ne=M._export_sfc(re,[["__scopeId","data-v-72244c73"]]);exports.default=ne;