vue-data-ui 2.4.57 → 2.4.59

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 (202) hide show
  1. package/README.md +82 -51
  2. package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
  3. package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
  4. package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
  5. package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
  6. package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
  7. package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
  8. package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
  9. package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
  10. package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
  11. package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
  12. package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
  13. package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
  14. package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
  15. package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
  16. package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
  17. package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
  18. package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
  19. package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
  20. package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
  21. package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
  22. package/dist/documentation/installation.md +48 -48
  23. package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
  24. package/dist/index-DaDv7p0W.cjs +9 -0
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
  27. package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
  28. package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
  29. package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
  30. package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
  31. package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
  35. package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
  36. package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
  39. package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
  40. package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
  42. package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
  43. package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
  44. package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
  45. package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
  46. package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
  47. package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
  48. package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
  49. package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
  50. package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
  51. package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
  52. package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
  53. package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
  54. package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
  55. package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
  56. package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
  57. package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
  58. package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
  59. package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
  60. package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
  61. package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
  62. package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
  63. package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
  64. package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
  65. package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
  66. package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
  67. package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
  68. package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
  69. package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
  70. package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
  71. package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
  72. package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
  73. package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
  74. package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
  75. package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
  76. package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
  77. package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
  78. package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
  79. package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
  80. package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
  81. package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
  82. package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
  83. package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
  84. package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
  85. package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
  86. package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
  87. package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
  88. package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
  89. package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
  90. package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
  91. package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
  92. package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
  93. package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
  94. package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
  95. package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
  96. package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
  97. package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
  98. package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
  99. package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
  100. package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
  101. package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
  102. package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
  103. package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
  104. package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
  106. package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
  107. package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
  108. package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
  109. package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
  110. package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
  111. package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
  112. package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
  113. package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
  115. package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
  116. package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
  117. package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
  118. package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
  120. package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
  121. package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
  122. package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
  123. package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
  124. package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
  125. package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
  126. package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
  127. package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
  128. package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
  129. package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
  130. package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
  131. package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
  132. package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
  133. package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
  134. package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
  135. package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
  136. package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
  137. package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
  138. package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
  139. package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
  140. package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
  141. package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
  142. package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
  143. package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
  144. package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
  145. package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
  146. package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
  147. package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
  148. package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
  149. package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
  150. package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
  151. package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
  152. package/package.json +1 -1
  153. package/dist/index-o6tXRhOr.cjs +0 -9
  154. package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
  155. package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
  156. package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
  157. package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
  158. package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
  159. package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
  160. package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
  161. package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
  162. package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
  163. package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
  164. package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
  165. package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
  166. package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
  167. package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
  168. package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
  169. package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
  170. package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
  171. package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
  172. package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
  173. package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
  174. package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
  175. package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
  176. package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
  177. package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
  178. package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
  179. package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
  181. package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
  182. package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
  183. package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
  184. package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
  185. package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
  188. package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
  190. package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
  192. package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
  193. package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
  194. package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
  195. package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
  196. package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
  197. package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
  198. package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
  199. package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
  200. package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
  201. package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
  202. package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DaDv7p0W.cjs"),T=require("./useNestedProp-DkpuL8Iv.cjs"),w=require("./BaseIcon-DD3GLrhS.cjs"),A=require("./vue-ui-skeleton-B24XJJ2p.cjs"),F=require("./PackageVersion-nr7f_VNw.cjs"),q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["id"],D=["xmlns","viewBox"],P=["width","height"],G=["id"],U=["stop-color"],W=["stop-color"],Z={key:1},H=["d","fill"],R=["d","fill"],X=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],J=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],K=["height","width","x"],Q={style:{width:"100%"}},Y=["x","y","fill","font-size","font-weight"],ee=["stroke","cx","cy","fill"],te=["x","y","font-size","fill","font-weight"],le={key:2,ref:"source",dir:"auto"},ae={__name:"vue-ui-spark-trend",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(E){const u=E,{vue_ui_spark_trend:$}=a.useConfig(),S=e.computed(()=>!!u.dataset&&u.dataset.length),y=e.ref(a.createUid()),t=e.computed({get:()=>x(),set:l=>l});function x(){const l=T.useNestedProp({userConfig:u.config,defaultConfig:$});return l.theme?{...T.useNestedProp({userConfig:a.themes.vue_ui_spark_trend[l.theme]||u.config,defaultConfig:l})}:l}const c=e.computed(()=>a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>u.config,l=>{t.value=x(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{h.value=a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(r=>[void 0,1/0,-1/0,null,NaN].includes(r)?null:r)},{deep:!0});function g(l){return l.map(r=>a.checkNaN(r))}const h=e.ref(a.largestTriangleThreeBucketsArray({data:u.dataset,threshold:t.value.downsample.threshold}).map(l=>t.value.style.animation.show||[void 0,1/0,-1/0,null,NaN].includes(l)?null:l)),p=e.ref(!1),_=e.ref(null);e.onMounted(()=>{C();let r=1e3/t.value.style.animation.animationFrames,i=performance.now();if(t.value.style.animation.show&&t.value.style.animation.animationFrames&&u.dataset.length>1){let N=function(){p.value=!0;let L=performance.now(),V=L-i;V>r?(i=L-V%r,v<c.value.length?(h.value.push(c.value[v]),v+=1,_.value=requestAnimationFrame(N)):(cancelAnimationFrame(_.value),h.value=g(c.value),p.value=!1)):_.value=requestAnimationFrame(N)};h.value=[];let v=0;N()}});function C(){a.objectIsEmpty(u.dataset)&&a.error({componentName:"VueUiSparkTrend",type:"dataset"})}const n=e.ref({height:80,width:300}),d=e.computed(()=>({top:t.value.style.padding.top,left:t.value.style.padding.left,right:n.value.width-t.value.style.padding.right,bottom:n.value.height-t.value.style.padding.bottom,height:n.value.height-(t.value.style.padding.top+t.value.style.padding.bottom)-(t.value.style.dataLabel.show?t.value.style.dataLabel.fontSize:0),width:n.value.width-(t.value.style.padding.left+t.value.style.padding.right)})),b=e.computed(()=>{const l=g(c.value);return{max:Math.max(...l.map(r=>a.checkNaN(r))),min:Math.min(...l.map(r=>a.checkNaN(r)))}}),m=e.computed(()=>{const l=b.value.min>=0?0:b.value.min;return Math.abs(l)}),z=e.computed(()=>b.value.max+m.value);function B(l){return l/z.value}const M=e.computed(()=>c.value.length),o=e.computed(()=>h.value.map((l,r)=>{const i=isNaN(l)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l)?0:l||0;return{value:a.checkNaN(l),absoluteValue:a.checkNaN(i),plotValue:a.checkNaN(i+m.value),toMax:B(i+m.value),x:d.value.left+a.checkNaN(r*(d.value.width/(M.value-1)))-t.value.style.padding.right,y:d.value.bottom-a.checkNaN(d.value.height*B(i+m.value))}})),f=e.computed(()=>{const l=g(c.value);return t.value.style.trendLabel.trendType==="global"?a.calcTrend(l):t.value.style.trendLabel.trendType==="n-1"&&l.length>1?(l.at(-1)/l.at(-2)-1)*100:t.value.style.trendLabel.trendType==="lastToFirst"?(l.at(-1)/l[0]-1)*100:0}),k=e.computed(()=>p.value||f.value===0?"neutral":f.value>0?"positive":"negative"),s=e.computed(()=>t.value.style.arrow.colors[k.value]),I=e.computed(()=>{const l={x:o.value[0].x,y:n.value.height-6},r={x:o.value[o.value.length-1].x,y:n.value.height-6},i=[];return o.value.forEach(v=>{i.push(`${v.x},${v.y} `)}),[l.x,l.y,...i,r.x,r.y].toString()}),j=e.computed(()=>{let l=[];return o.value.forEach(r=>{l.push(`${r.x},${r.y} `)}),`M ${l.toString()}`});return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-trend",id:y.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor}`)},[S.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${n.value.width} ${n.value.height}`,style:"width:100%;background:transparent;overflow:visible"},[e.createVNode(F._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,P)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`pill_gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity)},null,8,U),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,W)],8,G)]),t.value.style.area.show&&o.value[0]?(e.openBlock(),e.createElementBlock("g",Z,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${o.value[0].x},${d.value.bottom} ${e.unref(a.createSmoothPath)(o.value)} L ${o.value.at(-1).x},${d.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,H)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${I.value}Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:e.unref(a.setOpacity)(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,t.value.style.area.opacity),stroke:"none"},null,8,R))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${e.unref(a.createSmoothPath)(o.value)}`,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,X)):e.createCommentVNode("",!0),!t.value.style.line.smooth&&o.value.length?(e.openBlock(),e.createElementBlock("path",{key:3,d:j.value,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,J)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("foreignObject",{key:4,height:n.value.height/2,width:n.value.height/2,x:n.value.height/5,y:8},[e.createElementVNode("div",Q,[k.value==="positive"?(e.openBlock(),e.createBlock(w.default,{key:0,stroke:s.value,name:"arrowTop",size:n.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="negative"?(e.openBlock(),e.createBlock(w.default,{key:1,stroke:s.value,name:"arrowBottom",size:n.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),k.value==="neutral"?(e.openBlock(),e.createBlock(w.default,{key:2,stroke:s.value,name:"arrowRight",size:n.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0)])],8,K)),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:5,x:n.value.height/2-n.value.height/20,y:d.value.bottom,"text-anchor":"middle",fill:t.value.style.trendLabel.useColorTrend?s.value:t.value.style.trendLabel.color,"font-size":t.value.style.trendLabel.fontSize,"font-weight":t.value.style.trendLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.dataLabel)({p:f.value>0?"+":"",v:f.value,s:"%",r:t.value.style.trendLabel.rounding})),9,Y)),o.value.length&&o.value.at(-1).x!==void 0?(e.openBlock(),e.createElementBlock("circle",{key:6,stroke:t.value.style.backgroundColor,"stroke-width":2,cx:o.value.at(-1).x,cy:o.value.at(-1).y,r:4,fill:s.value},null,8,ee)):e.createCommentVNode("",!0),o.value.length&&o.value.at(-1).x!==void 0&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:7,"text-anchor":"middle",x:o.value.at(-1).x,y:o.value.at(-1).y-t.value.style.dataLabel.fontSize/1.5,"font-size":t.value.style.dataLabel.fontSize,fill:t.value.style.dataLabel.useColorTrend?s.value:t.value.style.dataLabel.color,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.dataLabel.formatter,o.value.at(-1).value,e.unref(a.dataLabel)({p:t.value.style.dataLabel.prefix,v:o.value.at(-1).value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:o.value.at(-1)})),9,te)):e.createCommentVNode("",!0)],8,D)):(e.openBlock(),e.createBlock(A.default,{key:0,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",le,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],12,O))}},oe=q._export_sfc(ae,[["__scopeId","data-v-38d02804"]]);exports.default=oe;
@@ -1,15 +1,15 @@
1
- import { computed as s, ref as k, watch as D, onMounted as H, openBlock as o, createElementBlock as u, normalizeStyle as J, createBlock as L, unref as h, createVNode as K, createElementVNode as _, createCommentVNode as d, toDisplayString as E, renderSlot as Q } from "vue";
2
- import { u as ee, c as te, t as ae, Y as S, o as le, e as ne, v as c, Z as oe, X as se, s as M, R as G, f as O, i as ue } from "./index-CI-N9klv.js";
3
- import { u as U } from "./useNestedProp-D1eJ0dvv.js";
4
- import I from "./BaseIcon-9gdEHMWK.js";
5
- import re from "./vue-ui-skeleton-owIhXtQF.js";
6
- import { _ as ie } from "./PackageVersion-S3SzpuwC.js";
1
+ import { computed as s, ref as k, watch as E, onMounted as J, openBlock as o, createElementBlock as u, normalizeStyle as K, createBlock as L, unref as h, createVNode as Q, renderSlot as D, createCommentVNode as r, createElementVNode as _, toDisplayString as O } from "vue";
2
+ import { u as ee, c as te, t as ae, Y as S, o as le, e as ne, v as c, Z as oe, X as se, s as M, R as G, f as U, i as ue } from "./index-B9RAElpI.js";
3
+ import { u as Z } from "./useNestedProp-DuruL3Nt.js";
4
+ import I from "./BaseIcon-BbU81zOd.js";
5
+ import re from "./vue-ui-skeleton-DVYD_VSe.js";
6
+ import { _ as ie } from "./PackageVersion-C_FFs0BP.js";
7
7
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"], fe = ["stop-color"], pe = { key: 0 }, me = ["d", "fill"], ge = ["d", "fill"], ke = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], _e = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], be = ["height", "width", "x"], xe = { style: { width: "100%" } }, we = ["x", "y", "fill", "font-size", "font-weight"], Ce = ["stroke", "cx", "cy", "fill"], Le = ["x", "y", "font-size", "fill", "font-weight"], $e = {
8
+ const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["width", "height"], ye = ["id"], fe = ["stop-color"], pe = ["stop-color"], ge = { key: 1 }, me = ["d", "fill"], ke = ["d", "fill"], _e = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], be = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], we = ["height", "width", "x"], xe = { style: { width: "100%" } }, Ce = ["x", "y", "fill", "font-size", "font-weight"], Le = ["stroke", "cx", "cy", "fill"], $e = ["x", "y", "font-size", "fill", "font-weight"], Ne = {
9
9
  key: 2,
10
10
  ref: "source",
11
11
  dir: "auto"
12
- }, Ne = {
12
+ }, Te = {
13
13
  __name: "vue-ui-spark-trend",
14
14
  props: {
15
15
  config: {
@@ -25,121 +25,133 @@ const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"],
25
25
  }
26
26
  }
27
27
  },
28
- setup(Z) {
29
- const r = Z, { vue_ui_spark_trend: q } = ee(), P = s(() => !!r.dataset && r.dataset.length), b = k(te()), e = s({
28
+ setup(q) {
29
+ const i = q, { vue_ui_spark_trend: P } = ee(), R = s(() => !!i.dataset && i.dataset.length), b = k(te()), e = s({
30
30
  get: () => F(),
31
31
  set: (t) => t
32
32
  });
33
33
  function F() {
34
- const t = U({
35
- userConfig: r.config,
36
- defaultConfig: q
34
+ const t = Z({
35
+ userConfig: i.config,
36
+ defaultConfig: P
37
37
  });
38
38
  return t.theme ? {
39
- ...U({
40
- userConfig: ae.vue_ui_spark_trend[t.theme] || r.config,
39
+ ...Z({
40
+ userConfig: ae.vue_ui_spark_trend[t.theme] || i.config,
41
41
  defaultConfig: t
42
42
  })
43
43
  } : t;
44
44
  }
45
45
  const f = s(() => S({
46
- data: r.dataset,
46
+ data: i.dataset,
47
47
  threshold: e.value.downsample.threshold
48
48
  }));
49
- D(() => r.config, (t) => {
49
+ E(() => i.config, (t) => {
50
50
  e.value = F(), j();
51
- }, { deep: !0 }), D(() => r.dataset, (t) => {
52
- m.value = S({
53
- data: r.dataset,
51
+ }, { deep: !0 }), E(() => i.dataset, (t) => {
52
+ g.value = S({
53
+ data: i.dataset,
54
54
  threshold: e.value.downsample.threshold
55
- }).map((l) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(l) ? null : l);
55
+ }).map((n) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(n) ? null : n);
56
56
  }, { deep: !0 });
57
57
  function $(t) {
58
- return t.map((l) => c(l));
58
+ return t.map((n) => c(n));
59
59
  }
60
- const m = k(S({
61
- data: r.dataset,
60
+ const g = k(S({
61
+ data: i.dataset,
62
62
  threshold: e.value.downsample.threshold
63
- }).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), g = k(!1), N = k(null);
64
- H(() => {
63
+ }).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), m = k(!1), N = k(null);
64
+ J(() => {
65
65
  j();
66
- let l = 1e3 / e.value.style.animation.animationFrames, v = performance.now();
67
- if (e.value.style.animation.show && e.value.style.animation.animationFrames && r.dataset.length > 1) {
66
+ let n = 1e3 / e.value.style.animation.animationFrames, v = performance.now();
67
+ if (e.value.style.animation.show && e.value.style.animation.animationFrames && i.dataset.length > 1) {
68
68
  let z = function() {
69
- g.value = !0;
69
+ m.value = !0;
70
70
  let B = performance.now(), V = B - v;
71
- V > l ? (v = B - V % l, p < f.value.length ? (m.value.push(f.value[p]), p += 1, N.value = requestAnimationFrame(z)) : (cancelAnimationFrame(N.value), m.value = $(f.value), g.value = !1)) : N.value = requestAnimationFrame(z);
71
+ V > n ? (v = B - V % n, p < f.value.length ? (g.value.push(f.value[p]), p += 1, N.value = requestAnimationFrame(z)) : (cancelAnimationFrame(N.value), g.value = $(f.value), m.value = !1)) : N.value = requestAnimationFrame(z);
72
72
  };
73
- m.value = [];
73
+ g.value = [];
74
74
  let p = 0;
75
75
  z();
76
76
  }
77
77
  });
78
78
  function j() {
79
- le(r.dataset) && ne({
79
+ le(i.dataset) && ne({
80
80
  componentName: "VueUiSparkTrend",
81
81
  type: "dataset"
82
82
  });
83
83
  }
84
- const n = k({
84
+ const l = k({
85
85
  height: 80,
86
86
  width: 300
87
87
  }), y = s(() => ({
88
88
  top: e.value.style.padding.top,
89
89
  left: e.value.style.padding.left,
90
- right: n.value.width - e.value.style.padding.right,
91
- bottom: n.value.height - e.value.style.padding.bottom,
92
- height: n.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
93
- width: n.value.width - (e.value.style.padding.left + e.value.style.padding.right)
90
+ right: l.value.width - e.value.style.padding.right,
91
+ bottom: l.value.height - e.value.style.padding.bottom,
92
+ height: l.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
93
+ width: l.value.width - (e.value.style.padding.left + e.value.style.padding.right)
94
94
  })), T = s(() => {
95
95
  const t = $(f.value);
96
96
  return {
97
- max: Math.max(...t.map((l) => c(l))),
98
- min: Math.min(...t.map((l) => c(l)))
97
+ max: Math.max(...t.map((n) => c(n))),
98
+ min: Math.min(...t.map((n) => c(n)))
99
99
  };
100
- }), x = s(() => {
100
+ }), w = s(() => {
101
101
  const t = T.value.min >= 0 ? 0 : T.value.min;
102
102
  return Math.abs(t);
103
- }), R = s(() => T.value.max + x.value);
103
+ }), W = s(() => T.value.max + w.value);
104
104
  function A(t) {
105
- return t / R.value;
105
+ return t / W.value;
106
106
  }
107
- const W = s(() => f.value.length), a = s(() => m.value.map((t, l) => {
107
+ const X = s(() => f.value.length), a = s(() => g.value.map((t, n) => {
108
108
  const v = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
109
109
  return {
110
110
  value: c(t),
111
111
  absoluteValue: c(v),
112
- plotValue: c(v + x.value),
113
- toMax: A(v + x.value),
114
- x: y.value.left + c(l * (y.value.width / (W.value - 1))) - e.value.style.padding.right,
115
- y: y.value.bottom - c(y.value.height * A(v + x.value))
112
+ plotValue: c(v + w.value),
113
+ toMax: A(v + w.value),
114
+ x: y.value.left + c(n * (y.value.width / (X.value - 1))) - e.value.style.padding.right,
115
+ y: y.value.bottom - c(y.value.height * A(v + w.value))
116
116
  };
117
- })), w = s(() => {
117
+ })), x = s(() => {
118
118
  const t = $(f.value);
119
119
  return e.value.style.trendLabel.trendType === "global" ? oe(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;
120
- }), C = s(() => g.value || w.value === 0 ? "neutral" : w.value > 0 ? "positive" : "negative"), i = s(() => e.value.style.arrow.colors[C.value]), X = s(() => {
121
- const t = { x: a.value[0].x, y: n.value.height - 6 }, l = { x: a.value[a.value.length - 1].x, y: n.value.height - 6 }, v = [];
120
+ }), C = s(() => m.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), d = s(() => e.value.style.arrow.colors[C.value]), Y = s(() => {
121
+ const t = { x: a.value[0].x, y: l.value.height - 6 }, n = { x: a.value[a.value.length - 1].x, y: l.value.height - 6 }, v = [];
122
122
  return a.value.forEach((p) => {
123
123
  v.push(`${p.x},${p.y} `);
124
- }), [t.x, t.y, ...v, l.x, l.y].toString();
125
- }), Y = s(() => {
124
+ }), [t.x, t.y, ...v, n.x, n.y].toString();
125
+ }), H = s(() => {
126
126
  let t = [];
127
- return a.value.forEach((l) => {
128
- t.push(`${l.x},${l.y} `);
127
+ return a.value.forEach((n) => {
128
+ t.push(`${n.x},${n.y} `);
129
129
  }), `M ${t.toString()}`;
130
130
  });
131
- return (t, l) => (o(), u("div", {
131
+ return (t, n) => (o(), u("div", {
132
132
  class: "vue-ui-spark-trend",
133
133
  id: b.value,
134
- style: J(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
134
+ style: K(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
135
135
  }, [
136
- P.value ? (o(), u("svg", {
136
+ R.value ? (o(), u("svg", {
137
137
  key: 1,
138
138
  xmlns: h(se),
139
- viewBox: `0 0 ${n.value.width} ${n.value.height}`,
139
+ viewBox: `0 0 ${l.value.width} ${l.value.height}`,
140
140
  style: "width:100%;background:transparent;overflow:visible"
141
141
  }, [
142
- K(ie),
142
+ Q(ie),
143
+ t.$slots["chart-background"] ? (o(), u("foreignObject", {
144
+ key: 0,
145
+ x: 0,
146
+ y: 0,
147
+ width: l.value.width <= 0 ? 10 : l.value.width,
148
+ height: l.value.height <= 0 ? 10 : l.value.height,
149
+ style: {
150
+ pointerEvents: "none"
151
+ }
152
+ }, [
153
+ D(t.$slots, "chart-background", {}, void 0, !0)
154
+ ], 8, ce)) : r("", !0),
143
155
  _("defs", null, [
144
156
  _("linearGradient", {
145
157
  x1: "0%",
@@ -150,115 +162,115 @@ const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"],
150
162
  }, [
151
163
  _("stop", {
152
164
  offset: "0%",
153
- "stop-color": h(M)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity)
154
- }, null, 8, ye),
165
+ "stop-color": h(M)(e.value.style.line.useColorTrend ? d.value : e.value.style.line.stroke, e.value.style.area.opacity)
166
+ }, null, 8, fe),
155
167
  _("stop", {
156
168
  offset: "100%",
157
169
  "stop-color": e.value.style.backgroundColor
158
- }, null, 8, fe)
159
- ], 8, ce)
170
+ }, null, 8, pe)
171
+ ], 8, ye)
160
172
  ]),
161
- e.value.style.area.show && a.value[0] ? (o(), u("g", pe, [
173
+ e.value.style.area.show && a.value[0] ? (o(), u("g", ge, [
162
174
  e.value.style.line.smooth ? (o(), u("path", {
163
175
  key: 0,
164
176
  d: `M ${a.value[0].x},${y.value.bottom} ${h(G)(a.value)} L ${a.value.at(-1).x},${y.value.bottom} Z`,
165
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : h(M)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity),
177
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : h(M)(e.value.style.line.useColorTrend ? d.value : e.value.style.line.stroke, e.value.style.area.opacity),
166
178
  stroke: "none"
167
179
  }, null, 8, me)) : (o(), u("path", {
168
180
  key: 1,
169
- d: `M${X.value}Z`,
170
- fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : h(M)(e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke, e.value.style.area.opacity),
181
+ d: `M${Y.value}Z`,
182
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : h(M)(e.value.style.line.useColorTrend ? d.value : e.value.style.line.stroke, e.value.style.area.opacity),
171
183
  stroke: "none"
172
- }, null, 8, ge))
173
- ])) : d("", !0),
184
+ }, null, 8, ke))
185
+ ])) : r("", !0),
174
186
  e.value.style.line.smooth && a.value.length ? (o(), u("path", {
175
- key: 1,
187
+ key: 2,
176
188
  d: `M ${h(G)(a.value)}`,
177
- stroke: e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke,
189
+ stroke: e.value.style.line.useColorTrend ? d.value : e.value.style.line.stroke,
178
190
  fill: "none",
179
191
  "stroke-width": e.value.style.line.strokeWidth,
180
192
  "stroke-linecap": e.value.style.line.strokeLinecap,
181
193
  "stroke-linejoin": e.value.style.line.strokeLinejoin
182
- }, null, 8, ke)) : d("", !0),
194
+ }, null, 8, _e)) : r("", !0),
183
195
  !e.value.style.line.smooth && a.value.length ? (o(), u("path", {
184
- key: 2,
185
- d: Y.value,
186
- stroke: e.value.style.line.useColorTrend ? i.value : e.value.style.line.stroke,
196
+ key: 3,
197
+ d: H.value,
198
+ stroke: e.value.style.line.useColorTrend ? d.value : e.value.style.line.stroke,
187
199
  fill: "none",
188
200
  "stroke-width": e.value.style.line.strokeWidth,
189
201
  "stroke-linecap": e.value.style.line.strokeLinecap,
190
202
  "stroke-linejoin": e.value.style.line.strokeLinejoin
191
- }, null, 8, _e)) : d("", !0),
192
- g.value ? d("", !0) : (o(), u("foreignObject", {
193
- key: 3,
194
- height: n.value.height / 2,
195
- width: n.value.height / 2,
196
- x: n.value.height / 5,
203
+ }, null, 8, be)) : r("", !0),
204
+ m.value ? r("", !0) : (o(), u("foreignObject", {
205
+ key: 4,
206
+ height: l.value.height / 2,
207
+ width: l.value.height / 2,
208
+ x: l.value.height / 5,
197
209
  y: 8
198
210
  }, [
199
211
  _("div", xe, [
200
212
  C.value === "positive" ? (o(), L(I, {
201
213
  key: 0,
202
- stroke: i.value,
214
+ stroke: d.value,
203
215
  name: "arrowTop",
204
- size: n.value.height / 2
205
- }, null, 8, ["stroke", "size"])) : d("", !0),
216
+ size: l.value.height / 2
217
+ }, null, 8, ["stroke", "size"])) : r("", !0),
206
218
  C.value === "negative" ? (o(), L(I, {
207
219
  key: 1,
208
- stroke: i.value,
220
+ stroke: d.value,
209
221
  name: "arrowBottom",
210
- size: n.value.height / 2
211
- }, null, 8, ["stroke", "size"])) : d("", !0),
222
+ size: l.value.height / 2
223
+ }, null, 8, ["stroke", "size"])) : r("", !0),
212
224
  C.value === "neutral" ? (o(), L(I, {
213
225
  key: 2,
214
- stroke: i.value,
226
+ stroke: d.value,
215
227
  name: "arrowRight",
216
- size: n.value.height / 2
217
- }, null, 8, ["stroke", "size"])) : d("", !0)
228
+ size: l.value.height / 2
229
+ }, null, 8, ["stroke", "size"])) : r("", !0)
218
230
  ])
219
- ], 8, be)),
220
- g.value ? d("", !0) : (o(), u("text", {
221
- key: 4,
222
- x: n.value.height / 2 - n.value.height / 20,
231
+ ], 8, we)),
232
+ m.value ? r("", !0) : (o(), u("text", {
233
+ key: 5,
234
+ x: l.value.height / 2 - l.value.height / 20,
223
235
  y: y.value.bottom,
224
236
  "text-anchor": "middle",
225
- fill: e.value.style.trendLabel.useColorTrend ? i.value : e.value.style.trendLabel.color,
237
+ fill: e.value.style.trendLabel.useColorTrend ? d.value : e.value.style.trendLabel.color,
226
238
  "font-size": e.value.style.trendLabel.fontSize,
227
239
  "font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
228
- }, E(h(O)({
229
- p: w.value > 0 ? "+" : "",
230
- v: w.value,
240
+ }, O(h(U)({
241
+ p: x.value > 0 ? "+" : "",
242
+ v: x.value,
231
243
  s: "%",
232
244
  r: e.value.style.trendLabel.rounding
233
- })), 9, we)),
245
+ })), 9, Ce)),
234
246
  a.value.length && a.value.at(-1).x !== void 0 ? (o(), u("circle", {
235
- key: 5,
247
+ key: 6,
236
248
  stroke: e.value.style.backgroundColor,
237
249
  "stroke-width": 2,
238
250
  cx: a.value.at(-1).x,
239
251
  cy: a.value.at(-1).y,
240
252
  r: 4,
241
- fill: i.value
242
- }, null, 8, Ce)) : d("", !0),
253
+ fill: d.value
254
+ }, null, 8, Le)) : r("", !0),
243
255
  a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (o(), u("text", {
244
- key: 6,
256
+ key: 7,
245
257
  "text-anchor": "middle",
246
258
  x: a.value.at(-1).x,
247
259
  y: a.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
248
260
  "font-size": e.value.style.dataLabel.fontSize,
249
- fill: e.value.style.dataLabel.useColorTrend ? i.value : e.value.style.dataLabel.color,
261
+ fill: e.value.style.dataLabel.useColorTrend ? d.value : e.value.style.dataLabel.color,
250
262
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
251
- }, E(h(ue)(
263
+ }, O(h(ue)(
252
264
  e.value.style.dataLabel.formatter,
253
265
  a.value.at(-1).value,
254
- h(O)({
266
+ h(U)({
255
267
  p: e.value.style.dataLabel.prefix,
256
268
  v: a.value.at(-1).value,
257
269
  s: e.value.style.dataLabel.suffix,
258
270
  r: e.value.style.dataLabel.rounding
259
271
  }),
260
272
  { datapoint: a.value.at(-1) }
261
- )), 9, Le)) : d("", !0)
273
+ )), 9, $e)) : r("", !0)
262
274
  ], 8, he)) : (o(), L(re, {
263
275
  key: 0,
264
276
  config: {
@@ -271,12 +283,12 @@ const ve = ["id"], he = ["xmlns", "viewBox"], ce = ["id"], ye = ["stop-color"],
271
283
  }
272
284
  }
273
285
  }, null, 8, ["config"])),
274
- t.$slots.source ? (o(), u("div", $e, [
275
- Q(t.$slots, "source", {}, void 0, !0)
276
- ], 512)) : d("", !0)
286
+ t.$slots.source ? (o(), u("div", Ne, [
287
+ D(t.$slots, "source", {}, void 0, !0)
288
+ ], 512)) : r("", !0)
277
289
  ], 12, ve));
278
290
  }
279
- }, Ae = /* @__PURE__ */ de(Ne, [["__scopeId", "data-v-30936343"]]);
291
+ }, Be = /* @__PURE__ */ de(Te, [["__scopeId", "data-v-38d02804"]]);
280
292
  export {
281
- Ae as default
293
+ Be as default
282
294
  };