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,9 +1,13 @@
1
- import { computed as g, ref as x, watch as P, onMounted as q, nextTick as H, openBlock as r, createElementBlock as v, normalizeStyle as p, unref as s, renderSlot as z, normalizeProps as L, mergeProps as X, createCommentVNode as d, createElementVNode as c, toDisplayString as f, Fragment as O, renderList as R, guardReactiveProps as J, createVNode as K, createBlock as Q } from "vue";
2
- import { u as Y, c as Z, t as ee, a as te, p as k, b as le, o as ae, e as T, g as oe, d as se, s as b, i as w, f as _, X as ue, w as ne } from "./index-DDXisDKy.js";
3
- import { u as V } from "./useNestedProp-S1UXxUgm.js";
4
- import ie from "./vue-ui-skeleton-B2sRnIXX.js";
5
- import { _ as re } from "./PackageVersion-DtnhR89q.js";
6
- const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"], fe = ["stop-color"], ye = ["stop-color"], me = ["height", "width", "fill", "rx"], ge = ["height", "width", "fill", "rx"], he = ["height", "width", "fill", "rx"], be = {
1
+ import { computed as g, ref as x, watch as z, onMounted as q, nextTick as H, openBlock as n, createElementBlock as v, normalizeStyle as f, unref as s, renderSlot as b, normalizeProps as L, mergeProps as X, createCommentVNode as c, createElementVNode as d, toDisplayString as p, Fragment as O, renderList as R, guardReactiveProps as J, createVNode as K, createBlock as Q } from "vue";
2
+ import { u as Y, c as Z, t as ee, a as te, p as k, b as le, o as ae, e as T, g as oe, d as se, s as $, i as w, f as _, X as ue, w as ne } from "./index-Bya_q1J-.js";
3
+ import { u as V } from "./useNestedProp-B33hazbH.js";
4
+ import ie from "./vue-ui-skeleton-BYssP0K4.js";
5
+ import { _ as re } from "./PackageVersion-VkaUzgmt.js";
6
+ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], fe = ["id"], pe = ["stop-color"], ye = ["stop-color"], me = ["height", "width", "fill", "rx"], ge = ["height", "width", "fill", "rx"], he = ["height", "width", "fill", "rx"], xe = {
7
+ key: 2,
8
+ ref: "source",
9
+ dir: "auto"
10
+ }, $e = {
7
11
  __name: "vue-ui-sparkbar",
8
12
  props: {
9
13
  config: {
@@ -28,11 +32,11 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
28
32
  },
29
33
  emits: ["selectDatapoint"],
30
34
  setup(C, { emit: E }) {
31
- const a = C, { vue_ui_sparkbar: B } = Y(), $ = g(() => !!a.dataset && a.dataset.length), S = x(Z()), e = g({
32
- get: () => A(),
35
+ const a = C, { vue_ui_sparkbar: B } = Y(), S = g(() => !!a.dataset && a.dataset.length), A = x(Z()), e = g({
36
+ get: () => N(),
33
37
  set: (t) => t
34
38
  });
35
- function A() {
39
+ function N() {
36
40
  const t = V({
37
41
  userConfig: a.config,
38
42
  defaultConfig: B
@@ -45,45 +49,45 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
45
49
  customPalette: te[t.theme] || k
46
50
  } : t;
47
51
  }
48
- P(() => a.config, (t) => {
49
- e.value = A();
52
+ z(() => a.config, (t) => {
53
+ e.value = N();
50
54
  }, { deep: !0 });
51
55
  const M = g(() => le(e.value.customPalette)), y = x(a.dataset.map((t) => ({
52
56
  ...t,
53
57
  value: e.value.style.animation.show ? 0 : t.value || 0,
54
58
  formatter: t.formatter || null
55
- }))), N = x(null);
59
+ }))), D = x(null);
56
60
  q(async () => {
57
61
  ae(a.dataset) && T({
58
62
  componentName: "VueUiSparkbar",
59
63
  type: "dataset"
60
- }), D();
64
+ }), F();
61
65
  });
62
- function D() {
66
+ function F() {
63
67
  if (e.value.style.animation.show) {
64
- let I = function() {
65
- i += l / t, i < l ? (y.value = y.value.map((u, h) => ({
68
+ let P = function() {
69
+ r += l / t, r < l ? (y.value = y.value.map((u, h) => ({
66
70
  ...u,
67
71
  value: u.value += o[h]
68
- })), N.value = requestAnimationFrame(I)) : y.value = a.dataset.map((u) => ({
72
+ })), D.value = requestAnimationFrame(P)) : y.value = a.dataset.map((u) => ({
69
73
  ...u,
70
74
  value: u.value || 0,
71
75
  formatter: u.formatter || null
72
76
  }));
73
77
  };
74
78
  const t = e.value.style.animation.animationFrames, o = a.dataset.map((u, h) => u.value / t), l = a.dataset.map((u) => u.value || 0).reduce((u, h) => u + h, 0);
75
- let i = 0;
76
- I();
79
+ let r = 0;
80
+ P();
77
81
  }
78
82
  }
79
- P(() => a.dataset, async (t) => {
80
- cancelAnimationFrame(N.value), y.value = a.dataset.map((o) => ({
83
+ z(() => a.dataset, async (t) => {
84
+ cancelAnimationFrame(D.value), y.value = a.dataset.map((o) => ({
81
85
  ...o,
82
86
  value: e.value.style.animation.show ? 0 : o.value || 0,
83
87
  formatter: o.formatter || null
84
- })), H(D);
88
+ })), H(F);
85
89
  }, { deep: !0 });
86
- const n = x({
90
+ const i = x({
87
91
  width: 500,
88
92
  height: 16
89
93
  }), U = g(() => Math.max(...a.dataset.map((t) => t.value))), j = g(() => (a.dataset.forEach((t, o) => {
@@ -106,7 +110,7 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
106
110
  function G(t) {
107
111
  return t / U.value;
108
112
  }
109
- function F(t) {
113
+ function I(t) {
110
114
  return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : G(t.value);
111
115
  }
112
116
  function m(t) {
@@ -115,48 +119,48 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
115
119
  function W(t, o) {
116
120
  E("selectDatapoint", { datapoint: t, index: o });
117
121
  }
118
- return (t, o) => (r(), v("div", {
119
- style: p({
122
+ return (t, o) => (n(), v("div", {
123
+ style: f({
120
124
  width: "100%",
121
125
  fontFamily: e.value.style.fontFamily,
122
- background: a.backgroundOpacity !== null ? s(b)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
126
+ background: a.backgroundOpacity !== null ? s($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
123
127
  })
124
128
  }, [
125
- t.$slots.title ? z(t.$slots, "title", L(X({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : d("", !0),
126
- !t.$slots.title && e.value.style.title.text ? (r(), v("div", {
129
+ t.$slots.title ? b(t.$slots, "title", L(X({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : c("", !0),
130
+ !t.$slots.title && e.value.style.title.text ? (n(), v("div", {
127
131
  key: 1,
128
132
  class: "vue-ui-sparkbar-title-container",
129
- style: p({
133
+ style: f({
130
134
  background: e.value.style.title.backgroundColor,
131
135
  margin: e.value.style.title.margin,
132
136
  textAlign: e.value.style.title.textAlign
133
137
  })
134
138
  }, [
135
- c("div", {
139
+ d("div", {
136
140
  class: "vue-ui-sparkbar-title",
137
- style: p({
141
+ style: f({
138
142
  fontSize: e.value.style.title.fontSize + "px",
139
143
  color: e.value.style.title.color,
140
144
  fontWeight: e.value.style.title.bold ? "bold" : "normal"
141
145
  })
142
- }, f(e.value.style.title.text), 5),
143
- e.value.style.title.subtitle.text ? (r(), v("div", {
146
+ }, p(e.value.style.title.text), 5),
147
+ e.value.style.title.subtitle.text ? (n(), v("div", {
144
148
  key: 0,
145
149
  class: "vue-ui-sparkbar-subtitle",
146
- style: p({
150
+ style: f({
147
151
  fontSize: e.value.style.title.subtitle.fontSize + "px",
148
152
  color: e.value.style.title.subtitle.color,
149
153
  fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
150
154
  })
151
- }, f(e.value.style.title.subtitle.text), 5)) : d("", !0)
152
- ], 4)) : d("", !0),
153
- (r(!0), v(O, null, R(j.value, (l, i) => (r(), v(O, null, [
154
- $.value ? (r(), v("div", {
155
+ }, p(e.value.style.title.subtitle.text), 5)) : c("", !0)
156
+ ], 4)) : c("", !0),
157
+ (n(!0), v(O, null, R(j.value, (l, r) => (n(), v(O, null, [
158
+ S.value ? (n(), v("div", {
155
159
  key: 0,
156
- style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && i !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
157
- onClick: () => W(l, i)
160
+ style: f(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && r !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
161
+ onClick: () => W(l, r)
158
162
  }, [
159
- z(t.$slots, "data-label", L(J({ bar: {
163
+ b(t.$slots, "data-label", L(J({ bar: {
160
164
  ...l,
161
165
  target: m(l),
162
166
  valueLabel: s(w)(
@@ -168,7 +172,7 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
168
172
  s: l.suffix || "",
169
173
  r: l.rounding || 0
170
174
  }),
171
- { datapoint: l, seriesIndex: i }
175
+ { datapoint: l, seriesIndex: r }
172
176
  ),
173
177
  targetLabel: s(w)(
174
178
  l.formatter,
@@ -179,12 +183,12 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
179
183
  s: l.suffix || "",
180
184
  r: l.rounding || 0
181
185
  }),
182
- { datapoint: l, seriesIndex: i }
186
+ { datapoint: l, seriesIndex: r }
183
187
  )
184
188
  } }))),
185
- t.$slots["data-label"] ? d("", !0) : (r(), v("div", {
189
+ t.$slots["data-label"] ? c("", !0) : (n(), v("div", {
186
190
  key: 0,
187
- style: p({
191
+ style: f({
188
192
  width: e.value.style.labels.name.width,
189
193
  color: e.value.style.labels.name.color,
190
194
  fontSize: e.value.style.labels.fontSize + "px",
@@ -192,11 +196,11 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
192
196
  textAlign: ["left", "right"].includes(e.value.style.labels.name.position) || ["top", "top-left"].includes(e.value.style.labels.name.position) ? "left" : e.value.style.labels.name.position === "top-center" ? "center" : "right"
193
197
  })
194
198
  }, [
195
- c("span", null, f(l.name), 1),
196
- e.value.style.labels.value.show ? (r(), v("span", {
199
+ d("span", null, p(l.name), 1),
200
+ e.value.style.labels.value.show ? (n(), v("span", {
197
201
  key: 0,
198
- style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
199
- }, ": " + f(s(w)(
202
+ style: f(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
203
+ }, ": " + p(s(w)(
200
204
  l.formatter,
201
205
  l.value,
202
206
  s(_)({
@@ -205,9 +209,9 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
205
209
  s: l.suffix || "",
206
210
  r: l.rounding || 0
207
211
  }),
208
- { datapoint: l, seriesIndex: i }
209
- )), 5)) : d("", !0),
210
- e.value.style.layout.showTargetValue ? (r(), v("span", ce, f(" " + e.value.style.layout.targetValueText) + " " + f(s(w)(
212
+ { datapoint: l, seriesIndex: r }
213
+ )), 5)) : c("", !0),
214
+ e.value.style.layout.showTargetValue ? (n(), v("span", ce, p(" " + e.value.style.layout.targetValueText) + " " + p(s(w)(
211
215
  l.formatter,
212
216
  m(l),
213
217
  s(_)({
@@ -216,62 +220,65 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
216
220
  s: l.suffix || "",
217
221
  r: l.rounding || 0
218
222
  }),
219
- { datapoint: l, seriesIndex: i }
220
- )), 1)) : d("", !0)
223
+ { datapoint: l, seriesIndex: r }
224
+ )), 1)) : c("", !0)
221
225
  ], 4)),
222
- (r(), v("svg", {
226
+ (n(), v("svg", {
223
227
  xmlns: s(ue),
224
- viewBox: `0 0 ${n.value.width} ${n.value.height}`,
228
+ viewBox: `0 0 ${i.value.width} ${i.value.height}`,
225
229
  width: "100%"
226
230
  }, [
227
231
  K(re),
228
- c("defs", null, [
229
- c("linearGradient", {
232
+ d("defs", null, [
233
+ d("linearGradient", {
230
234
  x1: "0%",
231
235
  y1: "0%",
232
236
  x2: "100%",
233
237
  y2: "0%",
234
- id: `sparkbar_gradient_${i}_${S.value}`
238
+ id: `sparkbar_gradient_${r}_${A.value}`
235
239
  }, [
236
- c("stop", {
240
+ d("stop", {
237
241
  offset: "0%",
238
- "stop-color": s(b)(s(ne)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
239
- }, null, 8, fe),
240
- c("stop", {
242
+ "stop-color": s($)(s(ne)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
243
+ }, null, 8, pe),
244
+ d("stop", {
241
245
  offset: "100%",
242
246
  "stop-color": l.color
243
247
  }, null, 8, ye)
244
- ], 8, pe)
248
+ ], 8, fe)
245
249
  ]),
246
- c("rect", {
247
- height: n.value.height,
248
- width: n.value.width,
250
+ d("rect", {
251
+ height: i.value.height,
252
+ width: i.value.width,
249
253
  x: 0,
250
254
  y: 0,
251
- fill: s(b)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
252
- rx: n.value.height / 2
255
+ fill: s($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
256
+ rx: i.value.height / 2
253
257
  }, null, 8, me),
254
- c("rect", {
255
- height: n.value.height,
256
- width: n.value.width * F(l),
258
+ d("rect", {
259
+ height: i.value.height,
260
+ width: i.value.width * I(l),
257
261
  x: 0,
258
262
  y: 0,
259
263
  fill: e.value.style.bar.gradient.underlayerColor,
260
- rx: n.value.height / 2
264
+ rx: i.value.height / 2
261
265
  }, null, 8, ge),
262
- c("rect", {
263
- height: n.value.height,
264
- width: n.value.width * F(l),
266
+ d("rect", {
267
+ height: i.value.height,
268
+ width: i.value.width * I(l),
265
269
  x: 0,
266
270
  y: 0,
267
- fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${S.value})` : l.color,
268
- rx: n.value.height / 2
271
+ fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${A.value})` : l.color,
272
+ rx: i.value.height / 2
269
273
  }, null, 8, he)
270
274
  ], 8, de))
271
- ], 12, ve)) : d("", !0)
275
+ ], 12, ve)) : c("", !0)
272
276
  ], 64))), 256)),
273
- $.value ? d("", !0) : (r(), Q(ie, {
274
- key: 2,
277
+ t.$slots.source ? (n(), v("div", xe, [
278
+ b(t.$slots, "source")
279
+ ], 512)) : c("", !0),
280
+ S.value ? c("", !0) : (n(), Q(ie, {
281
+ key: 3,
275
282
  config: {
276
283
  type: "sparkbar",
277
284
  style: {
@@ -286,5 +293,5 @@ const ve = ["onClick"], ce = { key: 1 }, de = ["xmlns", "viewBox"], pe = ["id"],
286
293
  }
287
294
  };
288
295
  export {
289
- be as default
296
+ $e as default
290
297
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-eFox7weK.cjs"),b=require("./useNestedProp-BkgEhTQY.cjs"),$=require("./vue-ui-skeleton-BqKzuhkB.cjs"),w=require("./PackageVersion-DwI-KhXH.cjs"),S=["xmlns","viewBox"],L=["id"],B=["stop-color"],E=["stop-color"],M=["d","stroke","stroke-linecap"],z=["d","stroke","stroke-linecap","stroke-dashoffset"],V=["x","y","font-size","fill","font-weight"],A={key:4,ref:"source",dir:"auto"},q={__name:"vue-ui-sparkgauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C){const o=C,{vue_ui_sparkgauge:_}=s.useConfig(),c=e.computed(()=>!!o.dataset&&Object.keys(o.dataset).length);e.onMounted(()=>{d()});function d(){s.objectIsEmpty(o.dataset)?s.error({componentName:"VueUiSparkgauge",type:"dataset"}):s.getMissingDatasetAttributes({datasetObject:o.dataset,requiredAttributes:["value","min","max"]}).forEach(a=>{s.error({componentName:"VueUiSparkgauge",type:"datasetAttribute",property:a})})}const v=e.ref(s.createUid()),t=e.computed({get:()=>m(),set:a=>a});function m(){const a=b.useNestedProp({userConfig:o.config,defaultConfig:_});return a.theme?{...b.useNestedProp({userConfig:s.themes.vue_ui_sparkgauge[a.theme]||o.config,defaultConfig:a})}:a}e.watch(()=>o.config,a=>{t.value=m(),d()},{deep:!0});const u=e.computed(()=>({height:t.value.style.height,width:128,base:t.value.style.basePosition})),n=e.computed(()=>{const a=o.dataset.min??0,r=o.dataset.max??0,N=r-a;return{min:a,max:r,diff:N}}),l=e.ref(t.value.style.animation.show?n.value.min:o.dataset.value);e.watch(()=>o.dataset.value,()=>{y(o.dataset.value||0)});const f=e.computed(()=>l.value>n.value.max?n.value.max:l.value<n.value.min?n.value.min:l.value),p=e.computed(()=>n.value.diff/t.value.style.animation.speedMs);e.onMounted(()=>{y(o.dataset.value||0)});function y(a){function r(){l.value<a?l.value=Math.min(l.value+p.value,a):l.value>a&&(l.value=Math.max(l.value-p.value,a)),l.value!==a&&requestAnimationFrame(r)}r()}const i=e.computed(()=>o.dataset.title??""),g=e.computed(()=>l.value>=0?(f.value-n.value.min)/n.value.diff:(Math.abs(n.value.min)-Math.abs(f.value))/n.value.diff),k=e.computed(()=>s.interpolateColorHex(t.value.style.colors.min,t.value.style.colors.max,n.value.min,n.value.max,l.value)),h=e.computed(()=>t.value.style.dataLabel.autoColor?k.value:t.value.style.dataLabel.color),x=e.computed(()=>t.value.style.track.autoColor?k.value:t.value.style.track.color);return(a,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width: 100%; background:${t.value.style.background}`)},[t.value.style.title.show&&i.value&&t.value.style.title.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:"overflow: visible; background:transparent; width:100%;"},[e.createVNode(w._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`gradient_${v.value}`,x1:"-10%",y1:"100%",x2:"110%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.colors.min},null,8,B),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.max},null,8,E)],8,L)]),e.createElementVNode("path",{d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.gutter.color,"stroke-width":8,"stroke-linecap":t.value.style.gutter.strokeLinecap,fill:"none"},null,8,M),g.value!==0?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,stroke:t.value.style.colors.showGradient?`url(#gradient_${v.value})`:x.value,"stroke-width":8,"stroke-linecap":t.value.style.track.strokeLinecap,fill:"none","stroke-dasharray":169.5,"stroke-dashoffset":169.5-169.5*g.value,class:e.normalizeClass({"vue-ui-sparkgauge-track":t.value.style.animation.show}),style:e.normalizeStyle(t.value.style.animation.show?`animation: vue-ui-sparkgauge-animation ${t.value.style.animation.speedMs}ms ease-in;`:"")},null,14,z)):e.createCommentVNode("",!0),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.width/2,y:u.value.base+6+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,fill:h.value,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.dataLabel.formatter,e.unref(s.checkNaN)(l.value),e.unref(s.dataLabel)({p:t.value.style.dataLabel.prefix,v:e.unref(s.checkNaN)(l.value),s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:e.unref(s.checkNaN)(l.value),color:h.value})),9,V)],8,S)):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($.default,{key:2,config:{type:"gauge",style:{backgroundColor:t.value.style.background,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.title.show&&i.value&&t.value.style.title.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"vue-data-ui-sparkgauge-label",style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;text-align:${t.value.style.title.textAlign};font-weight:${t.value.style.title.bold?"bold":"normal"};font-weight:${t.value.style.title.bold?"bold":"normal"};color:${t.value.style.title.color}`)},e.toDisplayString(i.value),5)):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(a.$slots,"source")],512)):e.createCommentVNode("",!0)],4))}};exports.default=q;
@@ -1,9 +1,13 @@
1
- import { computed as s, onMounted as N, ref as A, watch as M, openBlock as i, createElementBlock as c, normalizeStyle as m, toDisplayString as y, createCommentVNode as d, unref as r, createVNode as D, createElementVNode as v, normalizeClass as E, createBlock as G } from "vue";
2
- import { u as I, o as U, e as S, g as q, c as P, t as R, N as T, X, i as H, v as p, f as V } from "./index-DDXisDKy.js";
3
- import { u as z } from "./useNestedProp-S1UXxUgm.js";
4
- import Y from "./vue-ui-skeleton-B2sRnIXX.js";
5
- import { _ as J } from "./PackageVersion-DtnhR89q.js";
6
- const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color"], ee = ["d", "stroke", "stroke-linecap"], te = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ae = ["x", "y", "font-size", "fill", "font-weight"], ie = {
1
+ import { computed as s, onMounted as N, ref as A, watch as M, openBlock as n, createElementBlock as i, normalizeStyle as m, toDisplayString as y, createCommentVNode as v, unref as c, createVNode as D, createElementVNode as d, normalizeClass as E, createBlock as G, renderSlot as I } from "vue";
2
+ import { u as U, o as q, e as S, g as P, c as R, t as T, N as X, X as H, i as V, v as p, f as Y } from "./index-Bya_q1J-.js";
3
+ import { u as z } from "./useNestedProp-B33hazbH.js";
4
+ import J from "./vue-ui-skeleton-BYssP0K4.js";
5
+ import { _ as K } from "./PackageVersion-VkaUzgmt.js";
6
+ const Q = ["xmlns", "viewBox"], W = ["id"], Z = ["stop-color"], ee = ["stop-color"], te = ["d", "stroke", "stroke-linecap"], ae = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], le = ["x", "y", "font-size", "fill", "font-weight"], oe = {
7
+ key: 4,
8
+ ref: "source",
9
+ dir: "auto"
10
+ }, ve = {
7
11
  __name: "vue-ui-sparkgauge",
8
12
  props: {
9
13
  config: {
@@ -20,15 +24,15 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
20
24
  }
21
25
  },
22
26
  setup(F) {
23
- const l = F, { vue_ui_sparkgauge: O } = I(), g = s(() => !!l.dataset && Object.keys(l.dataset).length);
27
+ const l = F, { vue_ui_sparkgauge: O } = U(), g = s(() => !!l.dataset && Object.keys(l.dataset).length);
24
28
  N(() => {
25
29
  h();
26
30
  });
27
31
  function h() {
28
- U(l.dataset) ? S({
32
+ q(l.dataset) ? S({
29
33
  componentName: "VueUiSparkgauge",
30
34
  type: "dataset"
31
- }) : q({
35
+ }) : P({
32
36
  datasetObject: l.dataset,
33
37
  requiredAttributes: ["value", "min", "max"]
34
38
  }).forEach((t) => {
@@ -39,7 +43,7 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
39
43
  });
40
44
  });
41
45
  }
42
- const b = A(P()), e = s({
46
+ const b = A(R()), e = s({
43
47
  get: () => k(),
44
48
  set: (t) => t
45
49
  });
@@ -50,7 +54,7 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
50
54
  });
51
55
  return t.theme ? {
52
56
  ...z({
53
- userConfig: R.vue_ui_sparkgauge[t.theme] || l.config,
57
+ userConfig: T.vue_ui_sparkgauge[t.theme] || l.config,
54
58
  defaultConfig: t
55
59
  })
56
60
  } : t;
@@ -63,68 +67,68 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
63
67
  width: 128,
64
68
  base: e.value.style.basePosition
65
69
  })), o = s(() => {
66
- const t = l.dataset.min ?? 0, n = l.dataset.max ?? 0, B = n - t;
70
+ const t = l.dataset.min ?? 0, r = l.dataset.max ?? 0, B = r - t;
67
71
  return {
68
72
  min: t,
69
- max: n,
73
+ max: r,
70
74
  diff: B
71
75
  };
72
76
  }), a = A(e.value.style.animation.show ? o.value.min : l.dataset.value);
73
77
  M(() => l.dataset.value, () => {
74
- C(l.dataset.value || 0);
78
+ $(l.dataset.value || 0);
75
79
  });
76
80
  const _ = s(() => a.value > o.value.max ? o.value.max : a.value < o.value.min ? o.value.min : a.value), x = s(() => o.value.diff / e.value.style.animation.speedMs);
77
81
  N(() => {
78
- C(l.dataset.value || 0);
82
+ $(l.dataset.value || 0);
79
83
  });
80
- function C(t) {
81
- function n() {
82
- a.value < t ? a.value = Math.min(a.value + x.value, t) : a.value > t && (a.value = Math.max(a.value - x.value, t)), a.value !== t && requestAnimationFrame(n);
84
+ function $(t) {
85
+ function r() {
86
+ a.value < t ? a.value = Math.min(a.value + x.value, t) : a.value > t && (a.value = Math.max(a.value - x.value, t)), a.value !== t && requestAnimationFrame(r);
83
87
  }
84
- n();
88
+ r();
85
89
  }
86
- const f = s(() => l.dataset.title ?? ""), $ = s(() => a.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => T(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), j = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
87
- return (t, n) => (i(), c("div", {
90
+ const f = s(() => l.dataset.title ?? ""), C = s(() => a.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => X(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), j = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
91
+ return (t, r) => (n(), i("div", {
88
92
  style: m(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
89
93
  }, [
90
- e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (i(), c("div", {
94
+ e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (n(), i("div", {
91
95
  key: 0,
92
96
  class: "vue-data-ui-sparkgauge-label",
93
97
  style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
94
- }, y(f.value), 5)) : d("", !0),
95
- g.value ? (i(), c("svg", {
98
+ }, y(f.value), 5)) : v("", !0),
99
+ g.value ? (n(), i("svg", {
96
100
  key: 1,
97
- xmlns: r(X),
101
+ xmlns: c(H),
98
102
  viewBox: `0 0 ${u.value.width} ${u.value.height}`,
99
103
  style: "overflow: visible; background:transparent; width:100%;"
100
104
  }, [
101
- D(J),
102
- v("defs", null, [
103
- v("linearGradient", {
105
+ D(K),
106
+ d("defs", null, [
107
+ d("linearGradient", {
104
108
  id: `gradient_${b.value}`,
105
109
  x1: "-10%",
106
110
  y1: "100%",
107
111
  x2: "110%",
108
112
  y2: "100%"
109
113
  }, [
110
- v("stop", {
114
+ d("stop", {
111
115
  offset: "0%",
112
116
  "stop-color": e.value.style.colors.min
113
- }, null, 8, W),
114
- v("stop", {
117
+ }, null, 8, Z),
118
+ d("stop", {
115
119
  offset: "100%",
116
120
  "stop-color": e.value.style.colors.max
117
- }, null, 8, Z)
118
- ], 8, Q)
121
+ }, null, 8, ee)
122
+ ], 8, W)
119
123
  ]),
120
- v("path", {
124
+ d("path", {
121
125
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
122
126
  stroke: e.value.style.gutter.color,
123
127
  "stroke-width": 8,
124
128
  "stroke-linecap": e.value.style.gutter.strokeLinecap,
125
129
  fill: "none"
126
- }, null, 8, ee),
127
- $.value !== 0 ? (i(), c("path", {
130
+ }, null, 8, te),
131
+ C.value !== 0 ? (n(), i("path", {
128
132
  key: 0,
129
133
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
130
134
  stroke: e.value.style.colors.showGradient ? `url(#gradient_${b.value})` : j.value,
@@ -132,30 +136,30 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
132
136
  "stroke-linecap": e.value.style.track.strokeLinecap,
133
137
  fill: "none",
134
138
  "stroke-dasharray": 169.5,
135
- "stroke-dashoffset": 169.5 - 169.5 * $.value,
139
+ "stroke-dashoffset": 169.5 - 169.5 * C.value,
136
140
  class: E({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
137
141
  style: m(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
138
- }, null, 14, te)) : d("", !0),
139
- v("text", {
142
+ }, null, 14, ae)) : v("", !0),
143
+ d("text", {
140
144
  "text-anchor": "middle",
141
145
  x: u.value.width / 2,
142
146
  y: u.value.base + 6 + e.value.style.dataLabel.offsetY,
143
147
  "font-size": e.value.style.dataLabel.fontSize,
144
148
  fill: L.value,
145
149
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
146
- }, y(r(H)(
150
+ }, y(c(V)(
147
151
  e.value.style.dataLabel.formatter,
148
- r(p)(a.value),
149
- r(V)({
152
+ c(p)(a.value),
153
+ c(Y)({
150
154
  p: e.value.style.dataLabel.prefix,
151
- v: r(p)(a.value),
155
+ v: c(p)(a.value),
152
156
  s: e.value.style.dataLabel.suffix,
153
157
  r: e.value.style.dataLabel.rounding
154
158
  }),
155
- { datapoint: r(p)(a.value), color: L.value }
156
- )), 9, ae)
157
- ], 8, K)) : d("", !0),
158
- g.value ? d("", !0) : (i(), G(Y, {
159
+ { datapoint: c(p)(a.value), color: L.value }
160
+ )), 9, le)
161
+ ], 8, Q)) : v("", !0),
162
+ g.value ? v("", !0) : (n(), G(J, {
159
163
  key: 2,
160
164
  config: {
161
165
  type: "gauge",
@@ -167,14 +171,17 @@ const K = ["xmlns", "viewBox"], Q = ["id"], W = ["stop-color"], Z = ["stop-color
167
171
  }
168
172
  }
169
173
  }, null, 8, ["config"])),
170
- e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (i(), c("div", {
174
+ e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (n(), i("div", {
171
175
  key: 3,
172
176
  class: "vue-data-ui-sparkgauge-label",
173
177
  style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
174
- }, y(f.value), 5)) : d("", !0)
178
+ }, y(f.value), 5)) : v("", !0),
179
+ t.$slots.source ? (n(), i("div", oe, [
180
+ I(t.$slots, "source")
181
+ ], 512)) : v("", !0)
175
182
  ], 4));
176
183
  }
177
184
  };
178
185
  export {
179
- ie as default
186
+ ve as default
180
187
  };