vue-data-ui 2.3.73 → 2.3.75

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 (193) hide show
  1. package/dist/{Arrow-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
  2. package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
  3. package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
  4. package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
  5. package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
  6. package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
  7. package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
  8. package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
  9. package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
  10. package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
  11. package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
  12. package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
  13. package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
  14. package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
  15. package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
  16. package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
  17. package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
  18. package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
  21. package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
  22. package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
  23. package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
  24. package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
  25. package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
  30. package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
  33. package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
  34. package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
  36. package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
  37. package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
  38. package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
  39. package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
  40. package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
  41. package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
  42. package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
  43. package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
  45. package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
  46. package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
  47. package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
  48. package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
  49. package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
  50. package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
  51. package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
  53. package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
  54. package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
  55. package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
  57. package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
  58. package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
  59. package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
  60. package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
  61. package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
  62. package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
  63. package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
  64. package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
  65. package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
  66. package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
  69. package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
  70. package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
  71. package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
  73. package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
  74. package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
  75. package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
  76. package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
  78. package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
  79. package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
  81. package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
  82. package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
  83. package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
  84. package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
  85. package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
  86. package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
  87. package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
  88. package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
  89. package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
  90. package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
  91. package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
  93. package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
  95. package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
  97. package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
  99. package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
  101. package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
  102. package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
  103. package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
  104. package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
  105. package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
  106. package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
  108. package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
  109. package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
  110. package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
  111. package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
  114. package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
  115. package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
  116. package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
  117. package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
  118. package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
  119. package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
  120. package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
  121. package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
  122. package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
  123. package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
  124. package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
  125. package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
  126. package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
  127. package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
  128. package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
  129. package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
  130. package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
  131. package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
  132. package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
  133. package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
  134. package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
  135. package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
  136. package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
  137. package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
  138. package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
  143. package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
  144. package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
  145. package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
  146. package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
  148. package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
  149. package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
  150. package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
  151. package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
  152. package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
  153. package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
  154. package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
  155. package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
  156. package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
  157. package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
  158. package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
  159. package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
  160. package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
  161. package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
  162. package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
  163. package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
  164. package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
  165. package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
  166. package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
  167. package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
  168. package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
  169. package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
  170. package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
  171. package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
  172. package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
  174. package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
  175. package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
  176. package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
  177. package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
  178. package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
  179. package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
  182. package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
  183. package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
  184. package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
  185. package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
  186. package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
  187. package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
  188. package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
  189. package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
  190. package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
  191. package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
  192. package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
  193. package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
@@ -1,10 +1,10 @@
1
- import { computed as v, ref as m, onMounted as ee, openBlock as n, createElementBlock as r, normalizeStyle as N, renderSlot as T, normalizeProps as te, guardReactiveProps as ae, createElementVNode as f, toDisplayString as B, createCommentVNode as y, unref as c, Fragment as P, renderList as A, createBlock as le } from "vue";
2
- import { u as ue, c as se, t as oe, o as ne, e as E, g as re, v as I, U as ie, V as de, X as ve, w as C, P as O, i as j, f as R } from "./index-Dvs5Ra-u.js";
3
- import { u as U } from "./useNestedProp-UohhCyBz.js";
4
- import ce from "./vue-ui-skeleton-CAvlIcgk.js";
5
- import { t as he, u as ye } from "./useResponsive-NZB-WLRF.js";
6
- import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"], be = ["stop-color"], xe = ["id"], _e = ["stop-color"], we = ["stop-color"], $e = ["id"], Le = ["stop-color"], Ne = ["stop-color"], Ie = { key: 0 }, Ce = ["d", "fill"], Me = ["d", "fill"], Ve = ["d", "stroke", "stroke-width"], ze = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Se = ["x", "y", "width", "height", "fill", "rx"], Pe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ae = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], We = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], De = ["x", "y", "font-size", "font-weight", "fill"], Fe = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ge = {
1
+ import { computed as v, ref as m, watch as E, onMounted as ue, openBlock as n, createElementBlock as i, normalizeStyle as N, renderSlot as O, normalizeProps as se, guardReactiveProps as oe, createElementVNode as f, toDisplayString as j, createCommentVNode as y, unref as c, Fragment as P, renderList as W, createBlock as ne } from "vue";
2
+ import { u as re, c as ie, t as de, o as ve, e as R, g as ce, v as C, U as he, V as ye, X as fe, w as I, P as U, i as X, f as Z } from "./index-Cm4Iry5c.js";
3
+ import { u as q } from "./useNestedProp-CurQIHTa.js";
4
+ import pe from "./vue-ui-skeleton-C1oUnz7R.js";
5
+ import { t as ge, u as ke } from "./useResponsive-NZB-WLRF.js";
6
+ import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"], $e = ["stop-color"], Le = ["id"], Ne = ["stop-color"], Ce = ["stop-color"], Ie = ["id"], Me = ["stop-color"], Ve = ["stop-color"], ze = { key: 0 }, Se = ["d", "fill"], Pe = ["d", "fill"], We = ["d", "stroke", "stroke-width"], Ae = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], De = ["x", "y", "width", "height", "fill", "rx"], Fe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ge = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Te = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Be = ["x", "y", "font-size", "font-weight", "fill"], Ee = ["x", "y", "height", "width", "onMouseenter", "onClick"], Oe = {
8
8
  __name: "vue-ui-sparkline",
9
9
  props: {
10
10
  config: {
@@ -29,106 +29,125 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
29
29
  }
30
30
  },
31
31
  emits: ["hoverIndex", "selectDatapoint"],
32
- setup(x, { emit: M }) {
33
- const i = x, { vue_ui_sparkline: X } = ue(), $ = v(() => !!i.dataset && i.dataset.length), p = m(se()), V = m(null), W = m(null), e = v(() => {
34
- const t = U({
35
- userConfig: i.config,
36
- defaultConfig: X
32
+ setup(_, { emit: M }) {
33
+ const r = _, { vue_ui_sparkline: H } = re(), $ = v(() => !!r.dataset && r.dataset.length), p = m(ie()), V = m(null), A = m(null), e = v({
34
+ get: () => D(),
35
+ set: (t) => t
36
+ });
37
+ function D() {
38
+ const t = q({
39
+ userConfig: r.config,
40
+ defaultConfig: H
37
41
  });
38
42
  return t.theme ? {
39
- ...U({
40
- userConfig: oe.vue_ui_sparkline[t.theme] || i.config,
43
+ ...q({
44
+ userConfig: de.vue_ui_sparkline[t.theme] || r.config,
41
45
  defaultConfig: t
42
46
  })
43
47
  } : t;
44
- }), b = m(i.dataset.map((t) => e.value.style.animation.show ? {
45
- ...t,
46
- value: null
47
- } : {
48
- ...t,
49
- value: [void 0].includes(t.value) ? null : t.value
50
- })), D = m(null);
51
- ee(() => {
52
- if (ne(i.dataset) ? E({
48
+ }
49
+ E(() => r.config, (t) => {
50
+ e.value = D(), G(), l.value.chartWidth = e.value.style.chartWidth;
51
+ }, { deep: !0 }), E(() => r.dataset, (t) => {
52
+ b.value = r.dataset.map((u) => ({
53
+ ...u,
54
+ value: [void 0].includes(u.value) ? null : u.value
55
+ }));
56
+ }, { deep: !0 });
57
+ const b = m(Y());
58
+ function Y() {
59
+ return r.dataset.map((t) => e.value.style.animation.show ? {
60
+ ...t,
61
+ value: null
62
+ } : {
63
+ ...t,
64
+ value: [void 0].includes(t.value) ? null : t.value
65
+ });
66
+ }
67
+ const F = m(null);
68
+ ue(() => {
69
+ if (G(), e.value.style.animation.show && r.dataset.length > 1) {
70
+ let a = function() {
71
+ u < r.dataset.length ? (b.value.push(r.dataset[u]), setTimeout(() => {
72
+ requestAnimationFrame(a);
73
+ }, t)) : b.value = r.dataset, u += 1;
74
+ };
75
+ b.value = [];
76
+ const t = e.value.style.animation.animationFrames / r.dataset.length;
77
+ let u = 0;
78
+ a();
79
+ }
80
+ });
81
+ function G() {
82
+ if (ve(r.dataset) ? R({
53
83
  componentName: "VueUiSparkline",
54
84
  type: "dataset"
55
- }) : i.dataset.forEach((t, u) => {
56
- re({
85
+ }) : r.dataset.forEach((t, u) => {
86
+ ce({
57
87
  datasetObject: t,
58
88
  requiredAttributes: ["period", "value"]
59
89
  }).forEach((a) => {
60
- E({
90
+ R({
61
91
  componentName: "VueUiSparkline",
62
92
  type: "datasetSerieAttribute",
63
93
  property: a,
64
94
  index: u
65
95
  });
66
96
  });
67
- }), e.value.style.animation.show && i.dataset.length > 1) {
68
- let a = function() {
69
- u < i.dataset.length ? (b.value.push(i.dataset[u]), setTimeout(() => {
70
- requestAnimationFrame(a);
71
- }, t)) : b.value = i.dataset, u += 1;
72
- };
73
- b.value = [];
74
- const t = e.value.style.animation.animationFrames / i.dataset.length;
75
- let u = 0;
76
- a();
77
- }
78
- if (e.value.responsive) {
79
- const t = he(() => {
80
- const { width: u, height: a } = ye({
97
+ }), e.value.responsive) {
98
+ const t = ge(() => {
99
+ const { width: u, height: a } = ke({
81
100
  chart: V.value,
82
- title: e.value.style.title.show && i.showInfo ? W.value : null
101
+ title: e.value.style.title.show && r.showInfo ? A.value : null
83
102
  });
84
103
  l.value.width = u, l.value.height = a, l.value.chartWidth = e.value.style.chartWidth / 500 * u, l.value.padding = 0.06 * u;
85
104
  });
86
- D.value = new ResizeObserver(t), D.value.observe(V.value.parentNode);
105
+ F.value = new ResizeObserver(t), F.value.observe(V.value.parentNode);
87
106
  }
88
- });
107
+ }
89
108
  const l = m({
90
109
  height: 80,
91
110
  width: 500,
92
111
  chartWidth: e.value.style.chartWidth,
93
112
  padding: 30
94
- }), Z = m(6), s = v(() => ({
113
+ }), J = m(6), s = v(() => ({
95
114
  top: 12,
96
115
  left: 0,
97
116
  right: l.value.width,
98
117
  bottom: l.value.height - 3,
99
- start: i.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? l.value.width - l.value.chartWidth : l.value.padding,
100
- width: i.showInfo && e.value.style.dataLabel.show ? l.value.chartWidth : l.value.width - l.value.padding,
118
+ start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? l.value.width - l.value.chartWidth : l.value.padding,
119
+ width: r.showInfo && e.value.style.dataLabel.show ? l.value.chartWidth : l.value.width - l.value.padding,
101
120
  height: l.value.height - 12
102
- })), z = v(() => 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))), q = v(() => 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))), _ = v(() => {
121
+ })), z = v(() => 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))), K = v(() => 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))), x = v(() => {
103
122
  const t = z.value >= 0 ? 0 : z.value;
104
123
  return Math.abs(t);
105
- }), H = v(() => q.value + _.value + Z.value), L = v(() => s.value.bottom - s.value.height * S(_.value));
124
+ }), Q = v(() => K.value + x.value + J.value), L = v(() => s.value.bottom - s.value.height * S(x.value));
106
125
  function S(t) {
107
- return t / H.value;
126
+ return t / Q.value;
108
127
  }
109
- const g = v(() => i.dataset.length - 1), o = v(() => b.value.map((t, u) => {
128
+ const g = v(() => r.dataset.length - 1), o = v(() => b.value.map((t, u) => {
110
129
  const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
111
130
  return {
112
131
  absoluteValue: a,
113
132
  period: t.period,
114
- plotValue: a + _.value,
115
- toMax: S(a + _.value),
133
+ plotValue: a + x.value,
134
+ toMax: S(a + x.value),
116
135
  x: s.value.start + u * (s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)),
117
- y: s.value.bottom - s.value.height * S(a + _.value),
136
+ y: s.value.bottom - s.value.height * S(a + x.value),
118
137
  id: `plot_${p.value}_${u}`,
119
- color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - u / g.value)) : e.value.style.line.color,
138
+ color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? C(e.value.style.line.color, 0.05 * (1 - u / g.value)) : e.value.style.line.color,
120
139
  width: s.value.width / (g.value + 1) > l.padding ? l.padding : s.value.width / (g.value + 1)
121
140
  };
122
- })), Y = v(() => {
141
+ })), ee = v(() => {
123
142
  const t = { x: o.value[0].x, y: l.value.height - 6 }, u = { x: o.value[o.value.length - 1].x, y: l.value.height - 6 }, a = [];
124
143
  return o.value.forEach((d) => {
125
144
  a.push(`${d.x},${d.y} `);
126
145
  }), [t.x, t.y, ...a, u.x, u.y].toString();
127
146
  }), h = m(void 0);
128
- function J(t, u) {
147
+ function te(t, u) {
129
148
  h.value = t, M("hoverIndex", { index: u });
130
149
  }
131
- function K() {
150
+ function ae() {
132
151
  h.value = void 0, M("hoverIndex", { index: void 0 });
133
152
  }
134
153
  const k = v(() => {
@@ -138,11 +157,11 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
138
157
  latest: o.value[o.value.length - 1].absoluteValue,
139
158
  sum: u,
140
159
  average: u / o.value.length,
141
- median: ie(t),
142
- trend: de(o.value.map(({ x: a, y: d, absoluteValue: G }) => ({
160
+ median: he(t),
161
+ trend: ye(o.value.map(({ x: a, y: d, absoluteValue: B }) => ({
143
162
  x: a,
144
163
  y: d,
145
- value: G
164
+ value: B
146
165
  }))).trend
147
166
  };
148
167
  } else
@@ -153,18 +172,18 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
153
172
  median: null,
154
173
  trend: null
155
174
  };
156
- }), F = 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");
157
- function Q(t, u) {
175
+ }), T = 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");
176
+ function le(t, u) {
158
177
  M("selectDatapoint", { datapoint: t, index: u });
159
178
  }
160
- return (t, u) => (n(), r("div", {
179
+ return (t, u) => (n(), i("div", {
161
180
  ref_key: "sparklineChart",
162
181
  ref: V,
163
182
  class: "vue-ui-sparkline",
164
183
  id: p.value,
165
184
  style: N(`width:100%;font-family:${e.value.style.fontFamily}`)
166
185
  }, [
167
- T(t.$slots, "before", te(ae({
186
+ O(t.$slots, "before", se(oe({
168
187
  selected: h.value,
169
188
  latest: k.value.latest,
170
189
  sum: k.value.sum,
@@ -172,20 +191,20 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
172
191
  median: k.value.median,
173
192
  trend: k.value.trend
174
193
  })), void 0, !0),
175
- e.value.style.title.show && x.showInfo ? (n(), r("div", {
194
+ e.value.style.title.show && _.showInfo ? (n(), i("div", {
176
195
  key: 0,
177
196
  ref_key: "chartTitle",
178
- ref: W,
197
+ ref: A,
179
198
  class: "vue-ui-sparkline-title",
180
199
  style: N(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
181
200
  }, [
182
201
  f("span", {
183
202
  style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
184
- }, B(h.value ? h.value.period : e.value.style.title.text), 5)
203
+ }, j(h.value ? h.value.period : e.value.style.title.text), 5)
185
204
  ], 4)) : y("", !0),
186
- $.value ? (n(), r("svg", {
205
+ $.value ? (n(), i("svg", {
187
206
  key: 1,
188
- xmlns: c(ve),
207
+ xmlns: c(fe),
189
208
  viewBox: `0 0 ${l.value.width} ${l.value.height}`,
190
209
  style: N(`background:${e.value.style.backgroundColor};overflow:visible`)
191
210
  }, [
@@ -199,13 +218,13 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
199
218
  }, [
200
219
  f("stop", {
201
220
  offset: "0%",
202
- "stop-color": `${c(I)(e.value.style.area.color, 0.05)}${c(C)[e.value.style.area.opacity]}`
203
- }, null, 8, me),
221
+ "stop-color": `${c(C)(e.value.style.area.color, 0.05)}${c(I)[e.value.style.area.opacity]}`
222
+ }, null, 8, we),
204
223
  f("stop", {
205
224
  offset: "100%",
206
- "stop-color": e.value.style.area.color + c(C)[e.value.style.area.opacity]
207
- }, null, 8, be)
208
- ], 8, ke),
225
+ "stop-color": e.value.style.area.color + c(I)[e.value.style.area.opacity]
226
+ }, null, 8, $e)
227
+ ], 8, xe),
209
228
  f("linearGradient", {
210
229
  x2: "0%",
211
230
  y2: "100%",
@@ -214,12 +233,12 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
214
233
  f("stop", {
215
234
  offset: "0%",
216
235
  "stop-color": e.value.style.bar.color
217
- }, null, 8, _e),
236
+ }, null, 8, Ne),
218
237
  f("stop", {
219
238
  offset: "100%",
220
- "stop-color": `${c(I)(e.value.style.bar.color, 0.05)}`
221
- }, null, 8, we)
222
- ], 8, xe),
239
+ "stop-color": `${c(C)(e.value.style.bar.color, 0.05)}`
240
+ }, null, 8, Ce)
241
+ ], 8, Le),
223
242
  f("linearGradient", {
224
243
  x2: "0%",
225
244
  y2: "100%",
@@ -227,35 +246,35 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
227
246
  }, [
228
247
  f("stop", {
229
248
  offset: "0%",
230
- "stop-color": `${c(I)(e.value.style.bar.color, 0.05)}`
231
- }, null, 8, Le),
249
+ "stop-color": `${c(C)(e.value.style.bar.color, 0.05)}`
250
+ }, null, 8, Me),
232
251
  f("stop", {
233
252
  offset: "100%",
234
253
  "stop-color": e.value.style.bar.color
235
- }, null, 8, Ne)
236
- ], 8, $e)
254
+ }, null, 8, Ve)
255
+ ], 8, Ie)
237
256
  ]),
238
- e.value.style.area.show && !w.value && o.value[0] ? (n(), r("g", Ie, [
239
- e.value.style.line.smooth ? (n(), r("path", {
257
+ e.value.style.area.show && !w.value && o.value[0] ? (n(), i("g", ze, [
258
+ e.value.style.line.smooth ? (n(), i("path", {
240
259
  key: 0,
241
- d: `M ${o.value[0].x},${s.value.bottom} ${c(O)(o.value)} L ${o.value.at(-1).x},${s.value.bottom} Z`,
242
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${c(C)[e.value.style.area.opacity]}`
243
- }, null, 8, Ce)) : (n(), r("path", {
260
+ d: `M ${o.value[0].x},${s.value.bottom} ${c(U)(o.value)} L ${o.value.at(-1).x},${s.value.bottom} Z`,
261
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${c(I)[e.value.style.area.opacity]}`
262
+ }, null, 8, Se)) : (n(), i("path", {
244
263
  key: 1,
245
- d: `M${Y.value}Z`,
246
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${c(C)[e.value.style.area.opacity]}`
247
- }, null, 8, Me))
264
+ d: `M${ee.value}Z`,
265
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${c(I)[e.value.style.area.opacity]}`
266
+ }, null, 8, Pe))
248
267
  ])) : y("", !0),
249
- e.value.style.line.smooth && !w.value ? (n(), r("path", {
268
+ e.value.style.line.smooth && !w.value ? (n(), i("path", {
250
269
  key: 1,
251
- d: `M ${c(O)(o.value)}`,
270
+ d: `M ${c(U)(o.value)}`,
252
271
  stroke: e.value.style.line.color,
253
272
  fill: "none",
254
273
  "stroke-width": e.value.style.line.strokeWidth,
255
274
  "stroke-linecap": "round"
256
- }, null, 8, Ve)) : y("", !0),
257
- (n(!0), r(P, null, A(o.value, (a, d) => (n(), r("g", null, [
258
- d < o.value.length - 1 && !e.value.style.line.smooth && !w.value ? (n(), r("line", {
275
+ }, null, 8, We)) : y("", !0),
276
+ (n(!0), i(P, null, W(o.value, (a, d) => (n(), i("g", null, [
277
+ d < o.value.length - 1 && !e.value.style.line.smooth && !w.value ? (n(), i("line", {
259
278
  key: 0,
260
279
  x1: a.x,
261
280
  x2: o.value[d + 1].x,
@@ -266,8 +285,8 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
266
285
  "stroke-linecap": "round",
267
286
  "stroke-linejoin": "round",
268
287
  "shape-rendering": "geometricPrecision"
269
- }, null, 8, ze)) : y("", !0),
270
- w.value ? (n(), r("rect", {
288
+ }, null, 8, Ae)) : y("", !0),
289
+ w.value ? (n(), i("rect", {
271
290
  key: 1,
272
291
  x: a.x - a.width / 2,
273
292
  y: a.absoluteValue > 0 ? a.y : L.value,
@@ -275,8 +294,8 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
275
294
  height: Math.abs(a.y - L.value),
276
295
  fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
277
296
  rx: e.value.style.bar.borderRadius
278
- }, null, 8, Se)) : y("", !0),
279
- e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || x.selectedIndex === d) ? (n(), r("line", {
297
+ }, null, 8, De)) : y("", !0),
298
+ e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || _.selectedIndex === d) ? (n(), i("line", {
280
299
  key: 2,
281
300
  x1: a.x,
282
301
  x2: a.x,
@@ -286,9 +305,9 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
286
305
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
287
306
  "stroke-linecap": "round",
288
307
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
289
- }, null, 8, Pe)) : y("", !0)
308
+ }, null, 8, Fe)) : y("", !0)
290
309
  ]))), 256)),
291
- z.value < 0 ? (n(), r("line", {
310
+ z.value < 0 ? (n(), i("line", {
292
311
  key: 2,
293
312
  x1: s.value.start,
294
313
  x2: s.value.start + s.value.width - 16,
@@ -298,9 +317,9 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
298
317
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
299
318
  "stroke-width": e.value.style.zeroLine.strokeWidth,
300
319
  "stroke-linecap": "round"
301
- }, null, 8, Ae)) : y("", !0),
302
- e.value.style.plot.show ? (n(!0), r(P, { key: 3 }, A(o.value, (a, d) => (n(), r("g", null, [
303
- h.value && a.id === h.value.id || x.selectedIndex === d ? (n(), r("circle", {
320
+ }, null, 8, Ge)) : y("", !0),
321
+ e.value.style.plot.show ? (n(!0), i(P, { key: 3 }, W(o.value, (a, d) => (n(), i("g", null, [
322
+ h.value && a.id === h.value.id || _.selectedIndex === d ? (n(), i("circle", {
304
323
  key: 0,
305
324
  cx: a.x,
306
325
  cy: a.y,
@@ -308,38 +327,38 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
308
327
  fill: a.color,
309
328
  stroke: e.value.style.plot.stroke,
310
329
  "stroke-width": e.value.style.plot.strokeWidth
311
- }, null, 8, We)) : y("", !0)
330
+ }, null, 8, Te)) : y("", !0)
312
331
  ]))), 256)) : y("", !0),
313
- x.showInfo && e.value.style.dataLabel.show ? (n(), r("text", {
332
+ _.showInfo && e.value.style.dataLabel.show ? (n(), i("text", {
314
333
  key: 4,
315
334
  x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : s.value.width + 12 + e.value.style.dataLabel.offsetX,
316
335
  y: l.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
317
336
  "font-size": e.value.style.dataLabel.fontSize,
318
337
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
319
338
  fill: e.value.style.dataLabel.color
320
- }, B(h.value ? c(j)(
339
+ }, j(h.value ? c(X)(
321
340
  e.value.style.dataLabel.formatter,
322
341
  h.value.absoluteValue,
323
- c(R)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
342
+ c(Z)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
324
343
  { datapoint: h.value }
325
- ) : c(j)(
344
+ ) : c(X)(
326
345
  e.value.style.dataLabel.formatter,
327
- F.value,
328
- c(R)({ p: e.value.style.dataLabel.prefix, v: F.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
329
- )), 9, De)) : y("", !0),
330
- (n(!0), r(P, null, A(o.value, (a, d) => (n(), r("rect", {
346
+ T.value,
347
+ c(Z)({ p: e.value.style.dataLabel.prefix, v: T.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
348
+ )), 9, Be)) : y("", !0),
349
+ (n(!0), i(P, null, W(o.value, (a, d) => (n(), i("rect", {
331
350
  x: a.x - (s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1)) / 2,
332
351
  y: s.value.top - 6,
333
352
  height: s.value.height + 6,
334
353
  width: s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1),
335
354
  fill: "transparent",
336
- onMouseenter: (G) => J(a, d),
337
- onMouseleave: K,
338
- onClick: () => Q(a, d)
339
- }, null, 40, Fe))), 256)),
340
- T(t.$slots, "svg", { svg: l.value }, void 0, !0)
341
- ], 12, ge)) : y("", !0),
342
- $.value ? y("", !0) : (n(), le(ce, {
355
+ onMouseenter: (B) => te(a, d),
356
+ onMouseleave: ae,
357
+ onClick: () => le(a, d)
358
+ }, null, 40, Ee))), 256)),
359
+ O(t.$slots, "svg", { svg: l.value }, void 0, !0)
360
+ ], 12, _e)) : y("", !0),
361
+ $.value ? y("", !0) : (n(), ne(pe, {
343
362
  key: 2,
344
363
  config: {
345
364
  type: "sparkline",
@@ -351,9 +370,9 @@ const pe = ["id"], ge = ["xmlns", "viewBox"], ke = ["id"], me = ["stop-color"],
351
370
  }
352
371
  }
353
372
  }, null, 8, ["config"]))
354
- ], 12, pe));
373
+ ], 12, be));
355
374
  }
356
- }, Ue = /* @__PURE__ */ fe(Ge, [["__scopeId", "data-v-a8f8425a"]]);
375
+ }, He = /* @__PURE__ */ me(Oe, [["__scopeId", "data-v-f99c381b"]]);
357
376
  export {
358
- Ue as default
377
+ He as default
359
378
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DYUBiaGS.cjs"),B=require("./useNestedProp-w7AMWWmz.cjs"),V=require("./vue-ui-skeleton-ClpTCY1x.cjs"),z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=["xmlns","viewBox"],P=["id"],L=["stop-color"],A=["stop-color"],F=["stop-color"],U={id:"stackPill",clipPathUnits:"objectBoundingBox"},j=["fill"],q={"clip-path":"url(#stackPill)"},T=["height","width","fill"],H=["onClick","x","width","height","fill","stroke"],I=["onClick"],O={style:{display:"flex","flex-direction":"row","align-items":"center",gap:"4px","justify-content":"center"}},M=["height","width"],G=["fill"],X={__name:"vue-ui-sparkstackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup($,{emit:S}){const u=$,{vue_ui_sparkstackbar:E}=o.useConfig(),k=e.computed(()=>!!u.dataset&&u.dataset.length),_=e.ref(o.createUid()),t=e.computed({get:()=>b(),set:l=>l});function b(){const l=B.useNestedProp({userConfig:u.config,defaultConfig:E});return l.theme?{...B.useNestedProp({userConfig:o.themes.vue_ui_sparkstackbar[l.theme]||u.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>u.config,l=>{t.value=b(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{d.value=u.dataset.map((n,a)=>({...n,color:n.color?o.convertColorToHex(n.color):p.value[a]||o.palette[a]||o.palette[a%o.palette.length]}))},{deep:!0});const p=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),d=e.ref(u.dataset.map((l,n)=>({...l,value:t.value.style.animation.show?0:l.value||0,color:l.color?o.convertColorToHex(l.color):p.value[n]||o.palette[n]||o.palette[n%o.palette.length]}))),m=e.ref(!0);e.onMounted(()=>{if(C(),t.value.style.animation.show){let h=function(){r+=a/l,r<a?(d.value=d.value.map((s,c)=>({...s,value:s.value+=n[c],color:s.color?o.convertColorToHex(s.color):p.value[c]||o.palette[c]||o.palette[c%o.palette.length]})),requestAnimationFrame(h)):(m.value=!1,d.value=u.dataset.map((s,c)=>({...s,value:s.value||0,color:s.color?o.convertColorToHex(s.color):p.value[c]||o.palette[c]||o.palette[c%o.palette.length],id:o.createUid()})))};const l=t.value.style.animation.animationFrames,n=u.dataset.map((s,c)=>s.value/l),a=u.dataset.map(s=>s.value||0).reduce((s,c)=>s+c,0);let r=0;m.value=!0,h()}});function C(){o.objectIsEmpty(u.dataset)?o.error({componentName:"VueUiSparkStackbar",type:"dataset"}):u.dataset.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkStackbar",type:"datasetSerieAttribute",property:a,index:n})})})}const v=e.ref({width:500,height:16}),i=e.ref([]),g=e.computed(()=>u.dataset.map(l=>l.value||0).filter((l,n)=>!i.value.includes(n)).reduce((l,n)=>l+n,0)),x=e.computed(()=>d.value.map((l,n)=>({...l,value:l.value||0,proportion:(l.value||0)/g.value,width:(l.value||0)/g.value*v.value.width,proportionLabel:o.dataLabel({v:(l.value||0)/g.value*100,s:"%",r:t.value.style.legend.percentage.rounding})}))),y=e.computed(()=>x.value.filter((l,n)=>!i.value.includes(n)));function N(l){i.value.includes(l)?i.value=i.value.filter(n=>n!==l):i.value.length<d.value.length-1&&i.value.push(l)}const f=e.computed(()=>{let l=0;const n=[];for(let a=0;a<y.value.length;a+=1)n.push({...y.value[a],start:l}),l+=y.value[a].width;return n});function w(l,n){S("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{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:${t.value.style.backgroundColor};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),k.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),width:"100%",viewBox:`0 0 ${v.value.width} ${v.value.height}`},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`stack_gradient_${r}`,gradientTransform:"rotate(90)",id:`stack_gradient_${r}_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,L),e.createElementVNode("stop",{offset:"50%","stop-color":`${e.unref(o.shiftHue)(a.color,.05)}${e.unref(o.opacity)[100-t.value.style.bar.gradient.intensity]}`},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P))),128)),e.createElementVNode("clipPath",U,[e.createElementVNode("rect",{x:"0.005",y:"-2",width:"0.99",height:"5",rx:"3",ry:"3",fill:t.value.style.backgroundColor},null,8,j)])]),e.createElementVNode("g",q,[e.createElementVNode("rect",{x:0,y:0,height:v.value.height,width:f.value.map(a=>a.width).reduce((a,r)=>a+r,0),fill:t.value.style.bar.gradient.underlayerColor,class:e.normalizeClass({animated:!m.value})},null,10,T),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{key:`stack_${r}`,onClick:()=>w(a,r),x:a.start,y:0,width:a.width,height:v.value.height,fill:t.value.style.bar.gradient.show?`url(#stack_gradient_${r}_${_.value})`:a.color,stroke:t.value.style.backgroundColor,"stroke-linecap":"round",class:e.normalizeClass({animated:!m.value})},null,10,H))),128))])],8,D)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.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:${t.value.style.backgroundColor};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(x.value,(a,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":i.value.includes(r)}),onClick:h=>{N(r),w(a,r)}},[e.createElementVNode("div",O,[(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:a.color},null,8,G)],8,M)),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(a.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(i.value.includes(r)?" - ":a.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(o.applyDataLabel)(t.value.style.legend.value.formatter,a.value,e.unref(o.dataLabel)({p:t.value.style.legend.value.prefix,v:a.value,s:t.value.style.legend.value.suffix,r:t.value.style.legend.value.rounding}),{datapoint:a,seriesIndex:r}))+") ",5)):e.createCommentVNode("",!0)])],14,I))),256))],4)):e.createCommentVNode("",!0)],4))}},J=z._export_sfc(X,[["__scopeId","data-v-27e88856"]]);exports.default=J;