vue-data-ui 2.4.63 → 2.4.65

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 (165) hide show
  1. package/README.md +66 -34
  2. package/dist/{Arrow-BpZBF7Ak.cjs → Arrow-BKPURRQ6.cjs} +1 -1
  3. package/dist/{Arrow-nOy23OOV.js → Arrow-C7ihyW4O.js} +1 -1
  4. package/dist/{BaseIcon-rzIvDo2Q.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
  5. package/dist/{BaseIcon-CrqNvGTs.js → BaseIcon-DpaRUsHC.js} +1 -1
  6. package/dist/{DataTable-CCJGHIVo.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
  7. package/dist/{DataTable-BBh7_ttv.js → DataTable-DX_jYNWG.js} +2 -2
  8. package/dist/Legend-BMTBtkoQ.cjs +1 -0
  9. package/dist/Legend-DGUxLqhs.js +70 -0
  10. package/dist/{PackageVersion-dR8EUy_P.js → PackageVersion-B9_Ed72C.js} +1 -1
  11. package/dist/{PackageVersion-eZ5Dmuid.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
  12. package/dist/{PenAndPaper-D_w2N2qM.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
  13. package/dist/{PenAndPaper-CrXlqi9I.js → PenAndPaper-CzjoEhsO.js} +3 -3
  14. package/dist/{Shape-qkkvCKyp.cjs → Shape-CZB2KQ0L.cjs} +1 -1
  15. package/dist/{Shape-CwmKWYzq.js → Shape-aXd72O71.js} +1 -1
  16. package/dist/{Slicer-oNEtv1s3.cjs → Slicer-ChxjRhai.cjs} +1 -1
  17. package/dist/{Slicer-DvdU-uf8.js → Slicer-CopZgIzh.js} +2 -2
  18. package/dist/{Title-CoNtoGH9.cjs → Title-BnRtxxP4.cjs} +1 -1
  19. package/dist/{Title-obqvTiXP.js → Title-DyUTj8GI.js} +1 -1
  20. package/dist/{Tooltip-BK-ACGDE.js → Tooltip-B-0uEV3l.js} +1 -1
  21. package/dist/{Tooltip-Dz4wVJkz.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/{index-Z_vzxZTo.js → index-BVNcFEqn.js} +398 -393
  24. package/dist/{index-ChOY3hT9.cjs → index-CKgv8c-A.cjs} +5 -5
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-CA8PjFJH.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
  27. package/dist/{useNestedProp-Buhi5uyL.js → useNestedProp-D79dWdel.js} +1 -1
  28. package/dist/{usePrinter-Ck0oiMlt.js → usePrinter-Bcfs_I6G.js} +1 -1
  29. package/dist/{usePrinter-c3c7_uAW.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
  30. package/dist/{vue-data-ui-BGng_wXI.js → vue-data-ui-CXxR_hXg.js} +60 -60
  31. package/dist/{vue-data-ui-CihfnXFF.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +9 -9
  34. package/dist/{vue-ui-3d-bar-BsxFEhMN.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-B7k4LzL1.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
  36. package/dist/{vue-ui-accordion-CV2-8b1O.js → vue-ui-accordion-GNblUy42.js} +3 -3
  37. package/dist/{vue-ui-accordion-CZ8AlriN.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Bc4DaLIy.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-C1crnKk7.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DNKcAaEh.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DLbAn_Mz.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
  42. package/dist/{vue-ui-bullet-ClODxNrk.js → vue-ui-bullet-D_CS85II.js} +8 -8
  43. package/dist/{vue-ui-bullet-CEO3AsWC.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DI7t6jqz.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
  45. package/dist/{vue-ui-candlestick-B00zQB4B.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-5jXlkslq.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bm2D_0pZ.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DP6-Gie6.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-CRZsXRUH.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
  50. package/dist/{vue-ui-cursor-BGe0gZK8.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DA8bsmEc.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
  52. package/dist/{vue-ui-dashboard-D2v4oSiB.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
  53. package/dist/{vue-ui-dashboard-BZD-6Pz7.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
  54. package/dist/{vue-ui-digits-CKvrL9Wc.js → vue-ui-digits-B5P9UheE.js} +2 -2
  55. package/dist/{vue-ui-digits-DC8ZuHOj.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
  56. package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
  57. package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
  58. package/dist/{vue-ui-donut-evolution-CBsxmrTO.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-AlCGLfzy.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DB7jNjQP.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-B9cELz3z.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
  62. package/dist/{vue-ui-flow-Cw1Vfk_e.js → vue-ui-flow-cKQSDKfP.js} +9 -9
  63. package/dist/{vue-ui-flow-CCM51fzQ.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
  64. package/dist/{vue-ui-funnel--4JhwVwW.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-CU72MuGg.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
  66. package/dist/{vue-ui-galaxy-BKInqdOk.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
  67. package/dist/{vue-ui-galaxy-BJrkygeR.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
  68. package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
  69. package/dist/{vue-ui-gauge-DBPB11Eo.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
  70. package/dist/{vue-ui-gizmo-BSDdKP_q.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
  71. package/dist/{vue-ui-gizmo-D7hHruEs.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
  72. package/dist/{vue-ui-heatmap-CysVyR78.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-DhoDd6I_.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
  74. package/dist/{vue-ui-history-plot-C1IcR5tn.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
  75. package/dist/{vue-ui-history-plot-D97p0C8E.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-Cu2PoWud.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
  77. package/dist/{vue-ui-kpi-C43FJnkn.js → vue-ui-kpi-HyZOfh63.js} +3 -3
  78. package/dist/{vue-ui-mini-loader-Bdr0862F.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-DgPnsWaW.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
  80. package/dist/{vue-ui-molecule-CvxtHapj.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
  81. package/dist/{vue-ui-molecule-CEJzQ7RY.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-DIn_Oars.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-B6EmzBGf.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-D4pAkaZH.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
  85. package/dist/{vue-ui-nested-donuts-c2pJF_ex.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
  86. package/dist/{vue-ui-onion-DHOhnx2s.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
  87. package/dist/{vue-ui-onion-98XPhnVF.js → vue-ui-onion-CID0DNSa.js} +11 -11
  88. package/dist/{vue-ui-parallel-coordinate-plot-DLOtv_NO.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-CrVVxflg.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-DWM3zE7x.js → vue-ui-quadrant-063Cq0di.js} +12 -12
  91. package/dist/{vue-ui-quadrant-DbDQtcxz.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-DP0hSesI.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-CFVAisN4.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
  94. package/dist/{vue-ui-radar-CNBN5GF9.js → vue-ui-radar-BmY47r3J.js} +12 -12
  95. package/dist/{vue-ui-radar-CDhwXWfs.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
  96. package/dist/{vue-ui-rating-cHW6zh7i.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
  97. package/dist/{vue-ui-rating-CEfg8aGb.js → vue-ui-rating-b2SThMJw.js} +2 -2
  98. package/dist/{vue-ui-relation-circle-92LvehQf.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-olDAN0lU.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
  100. package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
  101. package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
  102. package/dist/{vue-ui-scatter-BvdgtUHX.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-6wDrQ5fP.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
  104. package/dist/{vue-ui-screenshot-CIAlcAvq.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
  105. package/dist/{vue-ui-screenshot-ChB7VFUO.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-DlnPFtb4.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-BMRe3SzB.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
  108. package/dist/{vue-ui-smiley-DkrQ5gDD.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-CN5FWJ1G.js → vue-ui-smiley-ne5pBMum.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-MNkadB41.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
  111. package/dist/{vue-ui-spark-trend-BlOdnAb4.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
  112. package/dist/{vue-ui-sparkbar-CBPO2mUa.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-ChTbwY11.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-VLkIev3p.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-B7yvQfZW.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DbOxX4Ks.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
  117. package/dist/{vue-ui-sparkhistogram-mYU6RAK_.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
  118. package/dist/vue-ui-sparkline-BFlRfhM6.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-D_-31O2S.js → vue-ui-sparkline-lY0wS6kU.js} +96 -96
  120. package/dist/{vue-ui-sparkstackbar-KaFMlIAL.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-gW7rpJmQ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
  122. package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
  123. package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
  124. package/dist/{vue-ui-strip-plot-MlP5pDNx.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-4o1zAxG_.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
  126. package/dist/{vue-ui-table-B0PFrkLI.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
  127. package/dist/{vue-ui-table-DWNrd7zM.js → vue-ui-table-DZV-uDG2.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-BSKCS8Lq.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
  129. package/dist/{vue-ui-table-heatmap-4k74Ux7O.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
  130. package/dist/{vue-ui-table-sparkline-DCCogh2-.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
  131. package/dist/{vue-ui-table-sparkline-BrImSTh0.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
  132. package/dist/{vue-ui-thermometer-DswmMXiU.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
  133. package/dist/{vue-ui-thermometer-DHEoT4yB.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
  134. package/dist/{vue-ui-timer-Tv94CYqL.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
  135. package/dist/{vue-ui-timer-BNFihNgK.js → vue-ui-timer-D2_1bbpl.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-B2kuKLe-.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-DzaUfiET.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
  138. package/dist/{vue-ui-treemap-qKZJcEYe.js → vue-ui-treemap-CgzgE20q.js} +11 -11
  139. package/dist/{vue-ui-treemap-Dmt3RPF2.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
  140. package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
  142. package/dist/{vue-ui-waffle-DjJoezg-.js → vue-ui-waffle-0mHE8fud.js} +11 -11
  143. package/dist/{vue-ui-waffle-fWQvVbAH.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
  144. package/dist/{vue-ui-wheel-DOrWSWt6.js → vue-ui-wheel-BWL-td7-.js} +7 -7
  145. package/dist/{vue-ui-wheel-2qIHyZe1.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
  146. package/dist/{vue-ui-word-cloud-Tgg5jCE6.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-UPPKGsXt.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
  148. package/dist/{vue-ui-xy-zCJv-Vao.js → vue-ui-xy-C8E2WzGt.js} +866 -819
  149. package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
  150. package/dist/{vue-ui-xy-canvas-paHHRtqs.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
  151. package/dist/{vue-ui-xy-canvas-Dm3YUQ3g.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/Legend-CqilK5CI.cjs +0 -1
  154. package/dist/Legend-WOejx9sp.js +0 -68
  155. package/dist/vue-ui-donut-D5mDCNky.cjs +0 -1
  156. package/dist/vue-ui-donut-DDayabSz.js +0 -1122
  157. package/dist/vue-ui-gauge-Uo_1rs0Z.cjs +0 -1
  158. package/dist/vue-ui-rings-Bp0WLW4E.js +0 -628
  159. package/dist/vue-ui-rings-BwvTmRCE.cjs +0 -2
  160. package/dist/vue-ui-sparkline-DO496Tk5.cjs +0 -1
  161. package/dist/vue-ui-stackbar-CYHsSzEK.cjs +0 -6
  162. package/dist/vue-ui-stackbar-vIyS6oag.js +0 -1061
  163. package/dist/vue-ui-vertical-bar-CMXtevyE.js +0 -888
  164. package/dist/vue-ui-vertical-bar-CQ_qEJ_O.cjs +0 -4
  165. package/dist/vue-ui-xy-CMde0Kq-.cjs +0 -3
@@ -1,11 +1,11 @@
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-Z_vzxZTo.js";
3
- import { u as K } from "./useNestedProp-Buhi5uyL.js";
4
- import be from "./vue-ui-skeleton-BMRe3SzB.js";
5
- import { t as _e, u as xe } from "./useResponsive-CoxXLe23.js";
6
- import { _ as we } from "./PackageVersion-dR8EUy_P.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 = {
1
+ import { computed as c, ref as b, watch as U, onMounted as re, openBlock as r, createElementBlock as i, normalizeStyle as C, renderSlot as M, normalizeProps as ie, guardReactiveProps as de, createElementVNode as f, toDisplayString as X, createCommentVNode as h, unref as v, createVNode as ve, Fragment as D, renderList as P, 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, a0 as me, a1 as be, X as ke, s as V, R as H, a2 as Y, i as J, f as K } from "./index-BVNcFEqn.js";
3
+ import { u as Q } from "./useNestedProp-D79dWdel.js";
4
+ import _e from "./vue-ui-skeleton-Bgf16k10.js";
5
+ import { t as xe, u as we } from "./useResponsive-CoxXLe23.js";
6
+ import { _ as $e } from "./PackageVersion-B9_Ed72C.js";
7
+ import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ne = ["id"], Ce = ["xmlns", "viewBox"], Me = ["width", "height"], Ie = ["id"], Ve = ["stop-color"], ze = ["stop-color"], Se = ["id"], We = ["stop-color"], Ae = ["stop-color"], De = ["id"], Pe = ["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 = {
9
9
  __name: "vue-ui-sparkline",
10
10
  props: {
11
11
  config: {
@@ -39,31 +39,31 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
39
39
  },
40
40
  emits: ["hoverIndex", "selectDatapoint"],
41
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({
42
+ const s = _, { vue_ui_sparkline: ee } = he(), $ = c(() => !!s.dataset && s.dataset.length), p = b(ye()), S = b(null), O = b(null), B = b(null), e = c({
43
43
  get: () => E(),
44
44
  set: (t) => t
45
45
  });
46
46
  function E() {
47
- const t = K({
47
+ const t = Q({
48
48
  userConfig: s.config,
49
- defaultConfig: Q
49
+ defaultConfig: ee
50
50
  });
51
51
  let l = {};
52
52
  return t.theme ? l = {
53
- ...K({
54
- userConfig: ye.vue_ui_sparkline[t.theme] || s.config,
53
+ ...Q({
54
+ userConfig: fe.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;
58
58
  }
59
- const L = v(() => T({
59
+ const L = c(() => T({
60
60
  data: s.dataset,
61
61
  threshold: e.value.downsample.threshold
62
62
  }));
63
63
  U(() => s.config, (t) => {
64
64
  e.value = E(), G(), u.value.chartWidth = e.value.style.chartWidth;
65
65
  }, { deep: !0 }), U(() => s.dataset, (t) => {
66
- b.value = T({
66
+ k.value = T({
67
67
  data: s.dataset.map((l) => ({
68
68
  ...l,
69
69
  value: [void 0].includes(l.value) ? null : l.value
@@ -71,8 +71,8 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
71
71
  threshold: e.value.downsample.threshold
72
72
  });
73
73
  }, { deep: !0 });
74
- const b = k(ee());
75
- function ee() {
74
+ const k = b(te());
75
+ function te() {
76
76
  return T({
77
77
  data: s.dataset.map((t) => e.value.style.animation.show ? {
78
78
  ...t,
@@ -84,26 +84,26 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
84
84
  threshold: e.value.downsample.threshold
85
85
  });
86
86
  }
87
- const F = k(null);
88
- ne(() => {
87
+ const F = b(null);
88
+ re(() => {
89
89
  if (G(), e.value.style.animation.show && s.dataset.length > 1) {
90
90
  let a = function() {
91
- l < L.value.length ? (b.value.push(L.value[l]), setTimeout(() => {
91
+ l < L.value.length ? (k.value.push(L.value[l]), setTimeout(() => {
92
92
  requestAnimationFrame(a);
93
- }, t)) : b.value = L.value, l += 1;
93
+ }, t)) : k.value = L.value, l += 1;
94
94
  };
95
- b.value = [];
95
+ k.value = [];
96
96
  const t = e.value.style.animation.animationFrames / s.dataset.length;
97
97
  let l = 0;
98
98
  a();
99
99
  }
100
100
  });
101
101
  function G() {
102
- if (fe(s.dataset) ? q({
102
+ if (pe(s.dataset) ? q({
103
103
  componentName: "VueUiSparkline",
104
104
  type: "dataset"
105
105
  }) : s.dataset.forEach((t, l) => {
106
- pe({
106
+ ge({
107
107
  datasetObject: t,
108
108
  requiredAttributes: ["period", "value"]
109
109
  }).forEach((a) => {
@@ -115,8 +115,8 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
115
115
  });
116
116
  });
117
117
  }), e.value.responsive) {
118
- const t = _e(() => {
119
- const { width: l, height: a } = xe({
118
+ const t = xe(() => {
119
+ const { width: l, height: a } = we({
120
120
  chart: S.value,
121
121
  title: e.value.style.title.show && s.showInfo ? O.value : null,
122
122
  source: B.value
@@ -126,12 +126,12 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
126
126
  F.value = new ResizeObserver(t), F.value.observe(S.value.parentNode);
127
127
  }
128
128
  }
129
- const u = k({
129
+ const u = b({
130
130
  height: 80 * s.heightRatio,
131
131
  width: 500,
132
132
  chartWidth: e.value.style.chartWidth,
133
133
  padding: s.forcedPadding
134
- }), o = v(() => {
134
+ }), o = c(() => {
135
135
  const { top: t, right: l, bottom: a, left: n } = e.value.style.padding;
136
136
  return {
137
137
  top: t,
@@ -142,14 +142,14 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
142
142
  width: s.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth - n - l : u.value.width - u.value.padding - n - l,
143
143
  height: u.value.height - t - a
144
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(() => {
145
+ }), W = c(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...k.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 = c(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...k.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 = c(() => {
146
146
  const t = W.value >= 0 ? 0 : W.value;
147
147
  return Math.abs(t);
148
- }), ae = v(() => te.value + x.value), N = v(() => o.value.bottom - o.value.height * A(x.value));
148
+ }), le = c(() => ae.value + x.value), N = c(() => o.value.bottom - o.value.height * A(x.value));
149
149
  function A(t) {
150
- return t / ae.value;
150
+ return t / le.value;
151
151
  }
152
- const g = v(() => L.value.length - 1), d = v(() => b.value.map((t, l) => {
152
+ const g = c(() => L.value.length - 1), d = c(() => k.value.map((t, l) => {
153
153
  const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
154
154
  return {
155
155
  absoluteValue: a,
@@ -162,27 +162,27 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
162
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,
163
163
  width: o.value.width / (g.value + 1) > u.padding ? u.padding : o.value.width / (g.value + 1)
164
164
  };
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 = [];
165
+ })), ue = c(() => {
166
+ const t = { x: d.value[0].x || 0, y: (u.value.height || 0) - 6 }, l = { x: d.value[d.value.length - 1].x || 0, y: (u.value.height || 0) - 6 }, a = [];
167
167
  return d.value.forEach((n) => {
168
- a.push(`${n.x},${n.y} `);
168
+ a.push(`${n.x || 0},${n.y || 0} `);
169
169
  }), [t.x, t.y, ...a, l.x, l.y].toString();
170
- }), y = k(void 0);
171
- function ue(t, l) {
170
+ }), y = b(void 0);
171
+ function se(t, l) {
172
172
  y.value = t, z("hoverIndex", { index: l });
173
173
  }
174
- function se() {
174
+ function oe() {
175
175
  y.value = void 0, z("hoverIndex", { index: void 0 });
176
176
  }
177
- const m = v(() => {
177
+ const m = c(() => {
178
178
  if ($.value) {
179
179
  const t = d.value.map((a) => a.absoluteValue), l = t.reduce((a, n) => a + n, 0);
180
180
  return {
181
181
  latest: d.value[d.value.length - 1].absoluteValue,
182
182
  sum: l,
183
183
  average: l / d.value.length,
184
- median: ge(t),
185
- trend: me(d.value.map(({ x: a, y: n, absoluteValue: j }) => ({
184
+ median: me(t),
185
+ trend: be(d.value.map(({ x: a, y: n, absoluteValue: j }) => ({
186
186
  x: a,
187
187
  y: n,
188
188
  value: j
@@ -196,8 +196,8 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
196
196
  median: null,
197
197
  trend: null
198
198
  };
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) {
199
+ }), R = c(() => $.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 = c(() => e.value.type && e.value.type === "bar");
200
+ function ne(t, l) {
201
201
  z("selectDatapoint", { datapoint: t, index: l });
202
202
  }
203
203
  return (t, l) => (r(), i("div", {
@@ -207,7 +207,7 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
207
207
  id: p.value,
208
208
  style: C(`width:100%;font-family:${e.value.style.fontFamily};`)
209
209
  }, [
210
- M(t.$slots, "before", re(ie({
210
+ M(t.$slots, "before", ie(de({
211
211
  selected: y.value,
212
212
  latest: m.value.latest,
213
213
  sum: m.value.sum,
@@ -225,14 +225,14 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
225
225
  f("span", {
226
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"}`)
227
227
  }, X(y.value ? y.value.period : e.value.style.title.text), 5)
228
- ], 4)) : c("", !0),
228
+ ], 4)) : h("", !0),
229
229
  $.value ? (r(), i("svg", {
230
230
  key: 1,
231
- xmlns: h(ke),
231
+ xmlns: v(ke),
232
232
  viewBox: `0 0 ${u.value.width} ${u.value.height}`,
233
233
  style: C(`background:${e.value.style.backgroundColor};overflow:visible`)
234
234
  }, [
235
- de(we),
235
+ ve($e),
236
236
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
237
237
  key: 0,
238
238
  x: 0,
@@ -244,7 +244,7 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
244
244
  }
245
245
  }, [
246
246
  M(t.$slots, "chart-background", {}, void 0, !0)
247
- ], 8, Ce)) : c("", !0),
247
+ ], 8, Me)) : h("", !0),
248
248
  f("defs", null, [
249
249
  f("linearGradient", {
250
250
  x1: "0%",
@@ -255,13 +255,13 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
255
255
  }, [
256
256
  f("stop", {
257
257
  offset: "0%",
258
- "stop-color": h(V)(h(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
259
- }, null, 8, Ie),
258
+ "stop-color": v(V)(v(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
259
+ }, null, 8, Ve),
260
260
  f("stop", {
261
261
  offset: "100%",
262
- "stop-color": h(V)(e.value.style.area.color, e.value.style.area.opacity)
263
- }, null, 8, Ve)
264
- ], 8, Me),
262
+ "stop-color": v(V)(e.value.style.area.color, e.value.style.area.opacity)
263
+ }, null, 8, ze)
264
+ ], 8, Ie),
265
265
  f("linearGradient", {
266
266
  x2: "0%",
267
267
  y2: "100%",
@@ -270,12 +270,12 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
270
270
  f("stop", {
271
271
  offset: "0%",
272
272
  "stop-color": e.value.style.bar.color
273
- }, null, 8, Se),
273
+ }, null, 8, We),
274
274
  f("stop", {
275
275
  offset: "100%",
276
- "stop-color": h(I)(e.value.style.bar.color, 0.05)
277
- }, null, 8, We)
278
- ], 8, ze),
276
+ "stop-color": v(I)(e.value.style.bar.color, 0.05)
277
+ }, null, 8, Ae)
278
+ ], 8, Se),
279
279
  f("linearGradient", {
280
280
  x2: "0%",
281
281
  y2: "100%",
@@ -283,46 +283,46 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
283
283
  }, [
284
284
  f("stop", {
285
285
  offset: "0%",
286
- "stop-color": h(I)(e.value.style.bar.color, 0.05)
287
- }, null, 8, De),
286
+ "stop-color": v(I)(e.value.style.bar.color, 0.05)
287
+ }, null, 8, Pe),
288
288
  f("stop", {
289
289
  offset: "100%",
290
290
  "stop-color": e.value.style.bar.color
291
- }, null, 8, Pe)
292
- ], 8, Ae)
291
+ }, null, 8, Te)
292
+ ], 8, De)
293
293
  ]),
294
- e.value.style.area.show && !w.value && d.value[0] ? (r(), i("g", Te, [
294
+ e.value.style.area.show && !w.value && d.value[0] ? (r(), i("g", Oe, [
295
295
  e.value.style.line.smooth ? (r(), i("path", {
296
296
  key: 0,
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
+ d: `M ${d.value[0].x},${o.value.bottom} ${v(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})` : v(V)(e.value.style.area.color, e.value.style.area.opacity)
299
+ }, null, 8, Be)) : (r(), i("path", {
300
300
  key: 1,
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))
304
- ])) : c("", !0),
301
+ d: `M${ue.value}Z`,
302
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : v(V)(e.value.style.area.color, e.value.style.area.opacity)
303
+ }, null, 8, Ee))
304
+ ])) : h("", !0),
305
305
  e.value.style.line.smooth && !w.value ? (r(), i("path", {
306
306
  key: 2,
307
- d: `M ${h(H)(d.value)}`,
307
+ d: `M ${v(H)(d.value)}`,
308
308
  stroke: e.value.style.line.color,
309
309
  fill: "none",
310
310
  "stroke-width": e.value.style.line.strokeWidth,
311
311
  "stroke-linecap": "round"
312
- }, null, 8, Ee)) : c("", !0),
312
+ }, null, 8, Fe)) : h("", !0),
313
313
  (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("g", null, [
314
314
  n < d.value.length - 1 && !e.value.style.line.smooth && !w.value ? (r(), i("line", {
315
315
  key: 0,
316
316
  x1: a.x,
317
317
  x2: d.value[n + 1].x,
318
- y1: a.y,
319
- y2: d.value[n + 1].y,
318
+ y1: a.y || 0,
319
+ y2: d.value[n + 1].y || 0,
320
320
  stroke: a.color,
321
321
  "stroke-width": e.value.style.line.strokeWidth,
322
322
  "stroke-linecap": "round",
323
323
  "stroke-linejoin": "round",
324
324
  "shape-rendering": "geometricPrecision"
325
- }, null, 8, Fe)) : c("", !0),
325
+ }, null, 8, Ge)) : h("", !0),
326
326
  w.value ? (r(), i("rect", {
327
327
  key: 1,
328
328
  x: a.x - a.width / 2,
@@ -331,7 +331,7 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
331
331
  height: Math.abs(a.y - N.value),
332
332
  fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
333
333
  rx: e.value.style.bar.borderRadius
334
- }, null, 8, Ge)) : c("", !0),
334
+ }, null, 8, Re)) : h("", !0),
335
335
  e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || _.selectedIndex === n) ? (r(), i("line", {
336
336
  key: 2,
337
337
  x1: a.x,
@@ -342,19 +342,19 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
342
342
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
343
343
  "stroke-linecap": "round",
344
344
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
345
- }, null, 8, Re)) : c("", !0)
345
+ }, null, 8, je)) : h("", !0)
346
346
  ]))), 256)),
347
347
  W.value < 0 ? (r(), i("line", {
348
348
  key: 3,
349
349
  x1: o.value.start,
350
350
  x2: o.value.start + o.value.width - 16,
351
- y1: N.value,
352
- y2: N.value,
351
+ y1: v(Y)(N.value, o.value.bottom),
352
+ y2: v(Y)(N.value, o.value.bottom),
353
353
  stroke: e.value.style.zeroLine.color,
354
354
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
355
355
  "stroke-width": e.value.style.zeroLine.strokeWidth,
356
356
  "stroke-linecap": "round"
357
- }, null, 8, je)) : c("", !0),
357
+ }, null, 8, Ue)) : h("", !0),
358
358
  e.value.style.plot.show ? (r(!0), i(D, { key: 4 }, P(d.value, (a, n) => (r(), i("g", null, [
359
359
  y.value && a.id === y.value.id || _.selectedIndex === n ? (r(), i("circle", {
360
360
  key: 0,
@@ -364,8 +364,8 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
364
364
  fill: a.color,
365
365
  stroke: e.value.style.plot.stroke,
366
366
  "stroke-width": e.value.style.plot.strokeWidth
367
- }, null, 8, Ue)) : c("", !0)
368
- ]))), 256)) : c("", !0),
367
+ }, null, 8, Xe)) : h("", !0)
368
+ ]))), 256)) : h("", !0),
369
369
  _.showInfo && e.value.style.dataLabel.show ? (r(), i("text", {
370
370
  key: 5,
371
371
  x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : o.value.width + 12 + e.value.style.dataLabel.offsetX,
@@ -373,28 +373,28 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
373
373
  "font-size": e.value.style.dataLabel.fontSize,
374
374
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
375
375
  fill: e.value.style.dataLabel.color
376
- }, X(y.value ? h(Y)(
376
+ }, X(y.value ? v(J)(
377
377
  e.value.style.dataLabel.formatter,
378
378
  y.value.absoluteValue,
379
- h(J)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
379
+ v(K)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
380
380
  { datapoint: y.value }
381
- ) : h(Y)(
381
+ ) : v(J)(
382
382
  e.value.style.dataLabel.formatter,
383
383
  R.value,
384
- h(J)({ p: e.value.style.dataLabel.prefix, v: R.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
385
- )), 9, Xe)) : c("", !0),
384
+ v(K)({ p: e.value.style.dataLabel.prefix, v: R.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
385
+ )), 9, Ze)) : h("", !0),
386
386
  (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("rect", {
387
387
  x: a.x - (o.value.width / (g.value + 1) > u.value.padding ? u.value.padding : o.value.width / (g.value + 1)) / 2,
388
388
  y: o.value.top - 6,
389
389
  height: o.value.height + 6,
390
390
  width: o.value.width / (g.value + 1) > u.value.padding ? u.value.padding : o.value.width / (g.value + 1),
391
391
  fill: "transparent",
392
- onMouseenter: (j) => ue(a, n),
393
- onMouseleave: se,
394
- onClick: () => oe(a, n)
395
- }, null, 40, Ze))), 256)),
392
+ onMouseenter: (j) => se(a, n),
393
+ onMouseleave: oe,
394
+ onClick: () => ne(a, n)
395
+ }, null, 40, qe))), 256)),
396
396
  M(t.$slots, "svg", { svg: u.value }, void 0, !0)
397
- ], 12, Ne)) : c("", !0),
397
+ ], 12, Ce)) : h("", !0),
398
398
  t.$slots.source ? (r(), i("div", {
399
399
  key: 2,
400
400
  ref_key: "source",
@@ -402,8 +402,8 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
402
402
  dir: "auto"
403
403
  }, [
404
404
  M(t.$slots, "source", {}, void 0, !0)
405
- ], 512)) : c("", !0),
406
- $.value ? c("", !0) : (r(), ve(be, {
405
+ ], 512)) : h("", !0),
406
+ $.value ? h("", !0) : (r(), ce(_e, {
407
407
  key: 3,
408
408
  config: {
409
409
  type: "sparkline",
@@ -415,9 +415,9 @@ const Le = ["id"], Ne = ["xmlns", "viewBox"], Ce = ["width", "height"], Me = ["i
415
415
  }
416
416
  }
417
417
  }, null, 8, ["config"]))
418
- ], 12, Le));
418
+ ], 12, Ne));
419
419
  }
420
- }, at = /* @__PURE__ */ $e(qe, [["__scopeId", "data-v-792e1bb5"]]);
420
+ }, lt = /* @__PURE__ */ Le(He, [["__scopeId", "data-v-401457fb"]]);
421
421
  export {
422
- at as default
422
+ lt as default
423
423
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-ChOY3hT9.cjs"),V=require("./useNestedProp-CA8PjFJH.cjs"),q=require("./vue-ui-skeleton-DlnPFtb4.cjs"),O=require("./PackageVersion-eZ5Dmuid.cjs"),U=require("./Tooltip-Dz4wVJkz.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-CKgv8c-A.cjs"),V=require("./useNestedProp-0Mn5Z6Ae.cjs"),q=require("./vue-ui-skeleton-73YO0ovP.cjs"),O=require("./PackageVersion-D_9QTWVm.cjs"),U=require("./Tooltip-CUoQNXZK.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,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-Z_vzxZTo.js";
3
- import { u as ee } from "./useNestedProp-Buhi5uyL.js";
4
- import ke from "./vue-ui-skeleton-BMRe3SzB.js";
5
- import { _ as be } from "./PackageVersion-dR8EUy_P.js";
6
- import { _ as _e } from "./Tooltip-BK-ACGDE.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-BVNcFEqn.js";
3
+ import { u as ee } from "./useNestedProp-D79dWdel.js";
4
+ import ke from "./vue-ui-skeleton-Bgf16k10.js";
5
+ import { _ as be } from "./PackageVersion-B9_Ed72C.js";
6
+ import { _ as _e } from "./Tooltip-B-0uEV3l.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",