vue-data-ui 2.4.1 → 2.4.3

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 (218) hide show
  1. package/README.md +44 -44
  2. package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
  3. package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  4. package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
  5. package/dist/BaseIcon-uALK38Ov.cjs +1 -0
  6. package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
  7. package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
  8. package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  9. package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
  10. package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  11. package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
  12. package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
  13. package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
  14. package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
  15. package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
  16. package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
  17. package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  18. package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  19. package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
  20. package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  21. package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
  22. package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
  23. package/dist/index-eFox7weK.cjs +9 -0
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +22 -17
  26. package/dist/types/vue-data-ui.d.ts +22 -17
  27. package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
  28. package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  29. package/dist/usePrinter-CSRFnDBU.cjs +1 -0
  30. package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
  31. package/dist/useResponsive-BY8tgM1n.js +188 -0
  32. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  33. package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
  34. package/dist/vue-data-ui-Bduq4f2p.js +261 -0
  35. package/dist/vue-data-ui.cjs +1 -1
  36. package/dist/vue-data-ui.js +1 -1
  37. package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
  38. package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
  39. package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  40. package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
  42. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  43. package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  44. package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  45. package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
  46. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  47. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  48. package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
  49. package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  50. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  51. package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
  52. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  53. package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  56. package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  57. package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  58. package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  59. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  60. package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
  61. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  62. package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
  63. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  64. package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
  65. package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
  66. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
  68. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  69. package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
  70. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  72. package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  73. package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
  74. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  75. package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  76. package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  78. package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  79. package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
  80. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
  82. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  83. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  84. package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
  85. package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
  86. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  87. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  88. package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
  89. package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
  90. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  91. package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
  92. package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
  93. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  94. package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
  95. package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  96. package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  97. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
  99. package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
  100. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  101. package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
  102. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  103. package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  104. package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  105. package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  106. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  107. package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  109. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  110. package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  111. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  112. package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  113. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  115. package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  116. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  117. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  118. package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  119. package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  120. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  121. package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
  122. package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
  123. package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
  124. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  125. package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
  126. package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  128. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  129. package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  130. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  131. package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
  132. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  133. package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  134. package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  135. package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
  136. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  137. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  138. package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
  139. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  140. package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
  141. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  142. package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
  143. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  144. package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
  145. package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
  146. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  147. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
  149. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  150. package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
  151. package/package.json +1 -1
  152. package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
  153. package/dist/index-C7_6YjWN.cjs +0 -9
  154. package/dist/usePrinter-8EP4iaGm.cjs +0 -1
  155. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  156. package/dist/useResponsive-NZB-WLRF.js +0 -187
  157. package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
  158. package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
  159. package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
  160. package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
  161. package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
  162. package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
  163. package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
  164. package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
  165. package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
  166. package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
  167. package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
  168. package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
  169. package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
  170. package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
  171. package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
  172. package/dist/vue-ui-gauge-BXiy515T.js +0 -494
  173. package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
  174. package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
  175. package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
  176. package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
  177. package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
  178. package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
  179. package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
  180. package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
  181. package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
  182. package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
  183. package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
  184. package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
  185. package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
  186. package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
  187. package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
  188. package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
  189. package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
  190. package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
  191. package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
  192. package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
  193. package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
  194. package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
  195. package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
  196. package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
  197. package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
  198. package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
  199. package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
  200. package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
  201. package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
  202. package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
  203. package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
  204. package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
  205. package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
  206. package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
  207. package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
  208. package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
  209. package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
  210. package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
  211. package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
  212. package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
  213. package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
  214. package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
  215. package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
  216. package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
  217. package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
  218. package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
@@ -1,11 +1,15 @@
1
- import { computed as u, ref as g, watch as V, onMounted as Z, openBlock as s, createElementBlock as i, normalizeStyle as H, createBlock as C, unref as c, createVNode as J, createElementVNode as k, createCommentVNode as v, toDisplayString as B } from "vue";
2
- import { u as K, c as Q, t as Y, o as ee, e as te, v as y, W as ae, X as le, s as z, R as D, f as E, i as ne } from "./index-DDXisDKy.js";
3
- import { u as G } from "./useNestedProp-S1UXxUgm.js";
4
- import M from "./BaseIcon-CXDdkPfN.js";
5
- import oe from "./vue-ui-skeleton-B2sRnIXX.js";
6
- import { _ as se } from "./PackageVersion-DtnhR89q.js";
7
- import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"], ce = ["stop-color"], ye = { key: 0 }, he = ["d", "fill"], fe = ["d", "fill"], pe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], me = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], ge = ["height", "width", "x"], ke = { style: { width: "100%" } }, _e = ["x", "y", "fill", "font-size", "font-weight"], be = ["stroke", "cx", "cy", "fill"], xe = ["x", "y", "font-size", "fill", "font-weight"], we = {
1
+ import { computed as u, ref as g, watch as V, onMounted as Z, openBlock as s, createElementBlock as r, normalizeStyle as H, createBlock as C, unref as c, createVNode as J, createElementVNode as k, createCommentVNode as d, toDisplayString as B, renderSlot as K } from "vue";
2
+ import { u as Q, c as Y, t as ee, o as te, e as ae, v as y, W as le, X as ne, s as z, R as D, f as E, i as oe } from "./index-Bya_q1J-.js";
3
+ import { u as G } from "./useNestedProp-B33hazbH.js";
4
+ import S from "./BaseIcon-BbvG1AlW.js";
5
+ import se from "./vue-ui-skeleton-BYssP0K4.js";
6
+ import { _ as ue } from "./PackageVersion-VkaUzgmt.js";
7
+ import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const ie = ["id"], de = ["xmlns", "viewBox"], ve = ["id"], ce = ["stop-color"], ye = ["stop-color"], he = { key: 0 }, fe = ["d", "fill"], pe = ["d", "fill"], me = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], ge = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], ke = ["height", "width", "x"], _e = { style: { width: "100%" } }, be = ["x", "y", "fill", "font-size", "font-weight"], xe = ["stroke", "cx", "cy", "fill"], we = ["x", "y", "font-size", "fill", "font-weight"], Ce = {
9
+ key: 2,
10
+ ref: "source",
11
+ dir: "auto"
12
+ }, Le = {
9
13
  __name: "vue-ui-spark-trend",
10
14
  props: {
11
15
  config: {
@@ -22,39 +26,39 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
22
26
  }
23
27
  },
24
28
  setup(O) {
25
- const n = O, { vue_ui_spark_trend: U } = K(), W = u(() => !!n.dataset && n.dataset.length), _ = g(Q()), e = u({
26
- get: () => S(),
29
+ const n = O, { vue_ui_spark_trend: U } = Q(), W = u(() => !!n.dataset && n.dataset.length), _ = g(Y()), e = u({
30
+ get: () => M(),
27
31
  set: (t) => t
28
32
  });
29
- function S() {
33
+ function M() {
30
34
  const t = G({
31
35
  userConfig: n.config,
32
36
  defaultConfig: U
33
37
  });
34
38
  return t.theme ? {
35
39
  ...G({
36
- userConfig: Y.vue_ui_spark_trend[t.theme] || n.config,
40
+ userConfig: ee.vue_ui_spark_trend[t.theme] || n.config,
37
41
  defaultConfig: t
38
42
  })
39
43
  } : t;
40
44
  }
41
45
  V(() => n.config, (t) => {
42
- e.value = S(), I();
46
+ e.value = M(), I();
43
47
  }, { deep: !0 }), V(() => n.dataset, (t) => {
44
48
  p.value = n.dataset.map((l) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(l) ? null : l);
45
49
  }, { deep: !0 });
46
50
  function L(t) {
47
51
  return t.map((l) => y(l));
48
52
  }
49
- const p = g(n.dataset.map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), m = g(!1), N = g(null);
53
+ const p = g(n.dataset.map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), m = g(!1), $ = g(null);
50
54
  Z(() => {
51
55
  I();
52
- let l = 1e3 / e.value.style.animation.animationFrames, d = performance.now();
56
+ let l = 1e3 / e.value.style.animation.animationFrames, v = performance.now();
53
57
  if (e.value.style.animation.show && e.value.style.animation.animationFrames && n.dataset.length > 1) {
54
58
  let T = function() {
55
59
  m.value = !0;
56
- let j = performance.now(), A = j - d;
57
- A > l ? (d = j - A % l, f < n.dataset.length ? (p.value.push(n.dataset[f]), f += 1, N.value = requestAnimationFrame(T)) : (cancelAnimationFrame(N.value), p.value = L(n.dataset), m.value = !1)) : N.value = requestAnimationFrame(T);
60
+ let j = performance.now(), A = j - v;
61
+ A > l ? (v = j - A % l, f < n.dataset.length ? (p.value.push(n.dataset[f]), f += 1, $.value = requestAnimationFrame(T)) : (cancelAnimationFrame($.value), p.value = L(n.dataset), m.value = !1)) : $.value = requestAnimationFrame(T);
58
62
  };
59
63
  p.value = [];
60
64
  let f = 0;
@@ -62,7 +66,7 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
62
66
  }
63
67
  });
64
68
  function I() {
65
- ee(n.dataset) && te({
69
+ te(n.dataset) && ae({
66
70
  componentName: "VueUiSparkTrend",
67
71
  type: "dataset"
68
72
  });
@@ -77,55 +81,55 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
77
81
  bottom: o.value.height - e.value.style.padding.bottom,
78
82
  height: o.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
79
83
  width: o.value.width - (e.value.style.padding.left + e.value.style.padding.right)
80
- })), $ = u(() => {
84
+ })), N = u(() => {
81
85
  const t = L(n.dataset);
82
86
  return {
83
87
  max: Math.max(...t.map((l) => y(l))),
84
88
  min: Math.min(...t.map((l) => y(l)))
85
89
  };
86
90
  }), b = u(() => {
87
- const t = $.value.min >= 0 ? 0 : $.value.min;
91
+ const t = N.value.min >= 0 ? 0 : N.value.min;
88
92
  return Math.abs(t);
89
- }), q = u(() => $.value.max + b.value);
93
+ }), q = u(() => N.value.max + b.value);
90
94
  function F(t) {
91
95
  return t / q.value;
92
96
  }
93
97
  const P = u(() => n.dataset.length), a = u(() => p.value.map((t, l) => {
94
- const d = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
98
+ const v = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
95
99
  return {
96
100
  value: y(t),
97
- absoluteValue: y(d),
98
- plotValue: y(d + b.value),
99
- toMax: F(d + b.value),
101
+ absoluteValue: y(v),
102
+ plotValue: y(v + b.value),
103
+ toMax: F(v + b.value),
100
104
  x: h.value.left + y(l * (h.value.width / (P.value - 1))) - e.value.style.padding.right,
101
- y: h.value.bottom - y(h.value.height * F(d + b.value))
105
+ y: h.value.bottom - y(h.value.height * F(v + b.value))
102
106
  };
103
107
  })), x = u(() => {
104
108
  const t = L(n.dataset);
105
- return e.value.style.trendLabel.trendType === "global" ? ae(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
106
- }), w = u(() => m.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), r = u(() => e.value.style.arrow.colors[w.value]), R = u(() => {
107
- const t = { x: a.value[0].x, y: o.value.height - 6 }, l = { x: a.value[a.value.length - 1].x, y: o.value.height - 6 }, d = [];
109
+ return e.value.style.trendLabel.trendType === "global" ? le(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
110
+ }), w = u(() => m.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), i = u(() => e.value.style.arrow.colors[w.value]), R = u(() => {
111
+ const t = { x: a.value[0].x, y: o.value.height - 6 }, l = { x: a.value[a.value.length - 1].x, y: o.value.height - 6 }, v = [];
108
112
  return a.value.forEach((f) => {
109
- d.push(`${f.x},${f.y} `);
110
- }), [t.x, t.y, ...d, l.x, l.y].toString();
113
+ v.push(`${f.x},${f.y} `);
114
+ }), [t.x, t.y, ...v, l.x, l.y].toString();
111
115
  }), X = u(() => {
112
116
  let t = [];
113
117
  return a.value.forEach((l) => {
114
118
  t.push(`${l.x},${l.y} `);
115
119
  }), `M ${t.toString()}`;
116
120
  });
117
- return (t, l) => (s(), i("div", {
121
+ return (t, l) => (s(), r("div", {
118
122
  class: "vue-ui-spark-trend",
119
123
  id: _.value,
120
124
  style: H(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
121
125
  }, [
122
- W.value ? (s(), i("svg", {
126
+ W.value ? (s(), r("svg", {
123
127
  key: 1,
124
- xmlns: c(le),
128
+ xmlns: c(ne),
125
129
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
126
130
  style: "width:100%;background:transparent;overflow:visible"
127
131
  }, [
128
- J(se),
132
+ J(ue),
129
133
  k("defs", null, [
130
134
  k("linearGradient", {
131
135
  x1: "0%",
@@ -136,79 +140,79 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
136
140
  }, [
137
141
  k("stop", {
138
142
  offset: "0%",
139
- "stop-color": c(z)(e.value.style.line.useColorTrend ? r.value : e.value.style.line.stroke, e.value.style.area.opacity)
140
- }, null, 8, ve),
143
+ "stop-color": c(z)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity)
144
+ }, null, 8, ce),
141
145
  k("stop", {
142
146
  offset: "100%",
143
147
  "stop-color": e.value.style.backgroundColor
144
- }, null, 8, ce)
145
- ], 8, de)
148
+ }, null, 8, ye)
149
+ ], 8, ve)
146
150
  ]),
147
- e.value.style.area.show && a.value[0] ? (s(), i("g", ye, [
148
- e.value.style.line.smooth ? (s(), i("path", {
151
+ e.value.style.area.show && a.value[0] ? (s(), r("g", he, [
152
+ e.value.style.line.smooth ? (s(), r("path", {
149
153
  key: 0,
150
154
  d: `M ${a.value[0].x},${h.value.bottom} ${c(D)(a.value)} L ${a.value.at(-1).x},${h.value.bottom} Z`,
151
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${_.value})` : c(z)(e.value.style.line.useColorTrend ? r.value : e.value.style.line.stroke, e.value.style.area.opacity),
155
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${_.value})` : c(z)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity),
152
156
  stroke: "none"
153
- }, null, 8, he)) : (s(), i("path", {
157
+ }, null, 8, fe)) : (s(), r("path", {
154
158
  key: 1,
155
159
  d: `M${R.value}Z`,
156
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${_.value})` : c(z)(e.value.style.line.useColorTrend ? r.value : e.value.style.line.stroke, e.value.style.area.opacity),
160
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${_.value})` : c(z)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity),
157
161
  stroke: "none"
158
- }, null, 8, fe))
159
- ])) : v("", !0),
160
- e.value.style.line.smooth && a.value.length ? (s(), i("path", {
162
+ }, null, 8, pe))
163
+ ])) : d("", !0),
164
+ e.value.style.line.smooth && a.value.length ? (s(), r("path", {
161
165
  key: 1,
162
166
  d: `M ${c(D)(a.value)}`,
163
- stroke: e.value.style.line.useColorTrend ? r.value : e.value.style.line.stroke,
167
+ stroke: e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke,
164
168
  fill: "none",
165
169
  "stroke-width": e.value.style.line.strokeWidth,
166
170
  "stroke-linecap": e.value.style.line.strokeLinecap,
167
171
  "stroke-linejoin": e.value.style.line.strokeLinejoin
168
- }, null, 8, pe)) : v("", !0),
169
- !e.value.style.line.smooth && a.value.length ? (s(), i("path", {
172
+ }, null, 8, me)) : d("", !0),
173
+ !e.value.style.line.smooth && a.value.length ? (s(), r("path", {
170
174
  key: 2,
171
175
  d: X.value,
172
- stroke: e.value.style.line.useColorTrend ? r.value : e.value.style.line.stroke,
176
+ stroke: e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke,
173
177
  fill: "none",
174
178
  "stroke-width": e.value.style.line.strokeWidth,
175
179
  "stroke-linecap": e.value.style.line.strokeLinecap,
176
180
  "stroke-linejoin": e.value.style.line.strokeLinejoin
177
- }, null, 8, me)) : v("", !0),
178
- m.value ? v("", !0) : (s(), i("foreignObject", {
181
+ }, null, 8, ge)) : d("", !0),
182
+ m.value ? d("", !0) : (s(), r("foreignObject", {
179
183
  key: 3,
180
184
  height: o.value.height / 2,
181
185
  width: o.value.height / 2,
182
186
  x: o.value.height / 5,
183
187
  y: 8
184
188
  }, [
185
- k("div", ke, [
186
- w.value === "positive" ? (s(), C(M, {
189
+ k("div", _e, [
190
+ w.value === "positive" ? (s(), C(S, {
187
191
  key: 0,
188
- stroke: r.value,
192
+ stroke: i.value,
189
193
  name: "arrowTop",
190
194
  size: o.value.height / 2
191
- }, null, 8, ["stroke", "size"])) : v("", !0),
192
- w.value === "negative" ? (s(), C(M, {
195
+ }, null, 8, ["stroke", "size"])) : d("", !0),
196
+ w.value === "negative" ? (s(), C(S, {
193
197
  key: 1,
194
- stroke: r.value,
198
+ stroke: i.value,
195
199
  name: "arrowBottom",
196
200
  size: o.value.height / 2
197
- }, null, 8, ["stroke", "size"])) : v("", !0),
198
- w.value === "neutral" ? (s(), C(M, {
201
+ }, null, 8, ["stroke", "size"])) : d("", !0),
202
+ w.value === "neutral" ? (s(), C(S, {
199
203
  key: 2,
200
- stroke: r.value,
204
+ stroke: i.value,
201
205
  name: "arrowRight",
202
206
  size: o.value.height / 2
203
- }, null, 8, ["stroke", "size"])) : v("", !0)
207
+ }, null, 8, ["stroke", "size"])) : d("", !0)
204
208
  ])
205
- ], 8, ge)),
206
- m.value ? v("", !0) : (s(), i("text", {
209
+ ], 8, ke)),
210
+ m.value ? d("", !0) : (s(), r("text", {
207
211
  key: 4,
208
212
  x: o.value.height / 2 - o.value.height / 20,
209
213
  y: h.value.bottom,
210
214
  "text-anchor": "middle",
211
- fill: e.value.style.trendLabel.useColorTrend ? r.value : e.value.style.trendLabel.color,
215
+ fill: e.value.style.trendLabel.useColorTrend ? i.value : e.value.style.trendLabel.color,
212
216
  "font-size": e.value.style.trendLabel.fontSize,
213
217
  "font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
214
218
  }, B(c(E)({
@@ -216,25 +220,25 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
216
220
  v: x.value,
217
221
  s: "%",
218
222
  r: e.value.style.trendLabel.rounding
219
- })), 9, _e)),
220
- a.value.length && a.value.at(-1).x !== void 0 ? (s(), i("circle", {
223
+ })), 9, be)),
224
+ a.value.length && a.value.at(-1).x !== void 0 ? (s(), r("circle", {
221
225
  key: 5,
222
226
  stroke: e.value.style.backgroundColor,
223
227
  "stroke-width": 2,
224
228
  cx: a.value.at(-1).x,
225
229
  cy: a.value.at(-1).y,
226
230
  r: 4,
227
- fill: r.value
228
- }, null, 8, be)) : v("", !0),
229
- a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (s(), i("text", {
231
+ fill: i.value
232
+ }, null, 8, xe)) : d("", !0),
233
+ a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (s(), r("text", {
230
234
  key: 6,
231
235
  "text-anchor": "middle",
232
236
  x: a.value.at(-1).x,
233
237
  y: a.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
234
238
  "font-size": e.value.style.dataLabel.fontSize,
235
- fill: e.value.style.dataLabel.useColorTrend ? r.value : e.value.style.dataLabel.color,
239
+ fill: e.value.style.dataLabel.useColorTrend ? i.value : e.value.style.dataLabel.color,
236
240
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
237
- }, B(c(ne)(
241
+ }, B(c(oe)(
238
242
  e.value.style.dataLabel.formatter,
239
243
  a.value.at(-1).value,
240
244
  c(E)({
@@ -244,8 +248,8 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
244
248
  r: e.value.style.dataLabel.rounding
245
249
  }),
246
250
  { datapoint: a.value.at(-1) }
247
- )), 9, xe)) : v("", !0)
248
- ], 8, ie)) : (s(), C(oe, {
251
+ )), 9, we)) : d("", !0)
252
+ ], 8, de)) : (s(), C(se, {
249
253
  key: 0,
250
254
  config: {
251
255
  type: "sparkline",
@@ -256,10 +260,13 @@ const re = ["id"], ie = ["xmlns", "viewBox"], de = ["id"], ve = ["stop-color"],
256
260
  }
257
261
  }
258
262
  }
259
- }, null, 8, ["config"]))
260
- ], 12, re));
263
+ }, null, 8, ["config"])),
264
+ t.$slots.source ? (s(), r("div", Ce, [
265
+ K(t.$slots, "source", {}, void 0, !0)
266
+ ], 512)) : d("", !0)
267
+ ], 12, ie));
261
268
  }
262
- }, Se = /* @__PURE__ */ ue(we, [["__scopeId", "data-v-541bb7c5"]]);
269
+ }, Fe = /* @__PURE__ */ re(Le, [["__scopeId", "data-v-96c5087f"]]);
263
270
  export {
264
- Se as default
271
+ Fe as default
265
272
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-eFox7weK.cjs"),C=require("./useNestedProp-BkgEhTQY.cjs"),V=require("./vue-ui-skeleton-BqKzuhkB.cjs"),D=require("./PackageVersion-DwI-KhXH.cjs"),$=["onClick"],z={key:1},L=["xmlns","viewBox"],P=["id"],A=["stop-color"],F=["stop-color"],O=["height","width","fill","rx"],I=["height","width","fill","rx"],T=["height","width","fill","rx"],q={key:2,ref:"source",dir:"auto"},M={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:null}},emits:["selectDatapoint"],setup(p,{emit:b}){const n=p,{vue_ui_sparkbar:w}=o.useConfig(),v=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>f(),set:l=>l});function f(){const l=C.useNestedProp({userConfig:n.config,defaultConfig:w});return l.theme?{...C.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>n.config,l=>{t.value=f()},{deep:!0});const S=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0,formatter:l.formatter||null}))),g=e.ref(null);e.onMounted(async()=>{o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),h()});function h(){if(t.value.style.animation.show){let x=function(){i+=a/l,i<a?(c.value=c.value.map((u,m)=>({...u,value:u.value+=r[m]})),g.value=requestAnimationFrame(x)):c.value=n.dataset.map(u=>({...u,value:u.value||0,formatter:u.formatter||null}))};const l=t.value.style.animation.animationFrames,r=n.dataset.map((u,m)=>u.value/l),a=n.dataset.map(u=>u.value||0).reduce((u,m)=>u+m,0);let i=0;x()}}e.watch(()=>n.dataset,async l=>{cancelAnimationFrame(g.value),c.value=n.dataset.map(r=>({...r,value:t.value.style.animation.show?0:r.value||0,formatter:r.formatter||null})),e.nextTick(h)},{deep:!0});const s=e.ref({width:500,height:16}),N=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),_=e.computed(()=>(n.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:r})})}),c.value.map((l,r)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||S.value[r]||o.palette[r]||o.palette[r%o.palette.length]}))));function B(l){return l/N.value}function k(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value>100?1:l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:B(l.value)}function d(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function E(l,r){b("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:n.backgroundOpacity!==null?e.unref(o.setOpacity)(t.value.style.backgroundColor,n.backgroundOpacity):t.value.style.backgroundColor})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight: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,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?`flex-direction: ${t.value.style.labels.name.position==="right"?"row-reverse":"row"} !important`:"flex-direction:column !important"};gap:${t.value.style.gap}px !important;align-items:center;${p.dataset.length>0&&i!==p.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>E(a,i)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:d(a),valueLabel:e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i}),targetLabel:e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:t.value.style.labels.name.width,color:t.value.style.labels.name.color,fontSize:t.value.style.labels.fontSize+"px",fontWeight:t.value.style.labels.name.bold?"bold":"normal",textAlign:["left","right"].includes(t.value.style.labels.name.position)||["top","top-left"].includes(t.value.style.labels.name.position)?"left":t.value.style.labels.name.position==="top-center"?"center":"right"})},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:i})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${s.value.width} ${s.value.height}`,width:"100%"},[e.createVNode(D._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${i}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(a.color,.03),100-t.value.style.bar.gradient.intensity)},null,8,A),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,F)],8,P)]),e.createElementVNode("rect",{height:s.value.height,width:s.value.width,x:0,y:0,fill:e.unref(o.setOpacity)(t.value.style.gutter.backgroundColor,t.value.style.gutter.opacity),rx:s.value.height/2},null,8,O),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:s.value.height/2},null,8,I),e.createElementVNode("rect",{height:s.value.height,width:s.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${i}_${y.value})`:a.color,rx:s.value.height/2},null,8,T)],8,L))],12,$)):e.createCommentVNode("",!0)],64))),256)),l.$slots.source?(e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(l.$slots,"source")],512)):e.createCommentVNode("",!0),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:3,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=M;