vue-data-ui 2.4.58 → 2.4.60

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-gAjHZoeI.js → Arrow-BLYi22nR.js} +1 -1
  3. package/dist/{Arrow-DyvFEpcu.cjs → Arrow-BoAS4IQq.cjs} +1 -1
  4. package/dist/{BaseIcon-DKQOeA_7.cjs → BaseIcon-BHIQREMO.cjs} +1 -1
  5. package/dist/{BaseIcon-B0g_Fksl.js → BaseIcon-EWtqg17H.js} +1 -1
  6. package/dist/{DataTable-BloVsNyj.js → DataTable-DO8KGCcE.js} +2 -2
  7. package/dist/{DataTable-Bju6hUOX.cjs → DataTable-Dtq94CxH.cjs} +1 -1
  8. package/dist/{Legend-BsPIe_nG.cjs → Legend-CMyzYtIb.cjs} +1 -1
  9. package/dist/{Legend-CdpH9pz7.js → Legend-DGWOCyLt.js} +1 -1
  10. package/dist/{PackageVersion-W3d_oNMs.js → PackageVersion-BSLNI6kk.js} +1 -1
  11. package/dist/{PackageVersion-Bmujq1-q.cjs → PackageVersion-B_1OHk5A.cjs} +1 -1
  12. package/dist/{PenAndPaper-xuFs3BqZ.js → PenAndPaper-CxMtGtJt.js} +3 -3
  13. package/dist/{PenAndPaper-Be8tn5wI.cjs → PenAndPaper-DhXsAnuf.cjs} +1 -1
  14. package/dist/{Shape-CXTDY_Vo.js → Shape-DnqZey62.js} +1 -1
  15. package/dist/{Shape-Cx89w9Ul.cjs → Shape-y66NSXKp.cjs} +1 -1
  16. package/dist/{Slicer-HGyFRIya.cjs → Slicer-CkI4c7ft.cjs} +1 -1
  17. package/dist/{Slicer-ENfxtrty.js → Slicer-D9bKLcPd.js} +2 -2
  18. package/dist/{Title-1u-GspsX.js → Title-CSqO5Y62.js} +1 -1
  19. package/dist/{Title-CNO85jNx.cjs → Title-DjAOcuWO.cjs} +1 -1
  20. package/dist/{Tooltip-DQOeAhx3.cjs → Tooltip-AHTiRuWB.cjs} +1 -1
  21. package/dist/{Tooltip-B-1Q-Tts.js → Tooltip-D_6iYZSH.js} +1 -1
  22. package/dist/documentation/installation.md +48 -48
  23. package/dist/index-CgZGelSi.cjs +9 -0
  24. package/dist/{index-BSzkwF5n.js → index-D7dTQAhm.js} +2 -2
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-CSKuqs0C.cjs → useNestedProp-BxCE3J3Z.cjs} +1 -1
  27. package/dist/{useNestedProp-BWC_DPZ5.js → useNestedProp-Dqsj7eUX.js} +1 -1
  28. package/dist/{usePrinter-DtwWejoO.js → usePrinter-B_Ihuvge.js} +1 -1
  29. package/dist/{usePrinter-D-iwyLyE.cjs → usePrinter-sTw1FdN_.cjs} +1 -1
  30. package/dist/{vue-data-ui-Com866XF.cjs → vue-data-ui-BttN99Pm.cjs} +1 -1
  31. package/dist/{vue-data-ui-jb1K_VTO.js → vue-data-ui-CcmpjOfT.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-8ewYobNj.cjs +19 -0
  35. package/dist/{vue-ui-3d-bar-Cqc5gqnb.js → vue-ui-3d-bar-TVrDBG5I.js} +170 -158
  36. package/dist/{vue-ui-accordion-lCjQo2kd.cjs → vue-ui-accordion-BZH6cz4t.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CJdfn7N-.js → vue-ui-accordion-lCiFhb8k.js} +3 -3
  38. package/dist/vue-ui-age-pyramid-BqL8zDjt.cjs +1 -0
  39. package/dist/{vue-ui-age-pyramid-D89kDZnF.js → vue-ui-age-pyramid-rHtMf5-R.js} +176 -164
  40. package/dist/{vue-ui-annotator-Cf-zFFmT.js → vue-ui-annotator-DHgSReIY.js} +1 -1
  41. package/dist/{vue-ui-annotator-muK3_F6c.cjs → vue-ui-annotator-fZIPfk7y.cjs} +1 -1
  42. package/dist/vue-ui-bullet-48af9PqJ.cjs +34 -0
  43. package/dist/{vue-ui-bullet-CT5Gkoot.js → vue-ui-bullet-BwhlvcvA.js} +155 -143
  44. package/dist/vue-ui-candlestick-Ce3tBGpX.cjs +2 -0
  45. package/dist/{vue-ui-candlestick-DmsHITZF.js → vue-ui-candlestick-dMIrnPD6.js} +96 -84
  46. package/dist/{vue-ui-carousel-table-N7QL7jRR.js → vue-ui-carousel-table-EcwgqGoI.js} +97 -95
  47. package/dist/vue-ui-carousel-table-ZhjRbt5-.cjs +1 -0
  48. package/dist/vue-ui-chestnut-VbrVVUon.cjs +6 -0
  49. package/dist/{vue-ui-chestnut-C7b1puxs.js → vue-ui-chestnut-vnOyc43k.js} +160 -148
  50. package/dist/{vue-ui-cursor-BOS7Yvio.cjs → vue-ui-cursor-BdXcdH2e.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-CAnOat4M.js → vue-ui-cursor-nMbvzf_R.js} +2 -2
  52. package/dist/{vue-ui-dashboard-OzgTaY3n.js → vue-ui-dashboard-BtaQn50h.js} +2 -2
  53. package/dist/{vue-ui-dashboard-DI22fn9M.cjs → vue-ui-dashboard-CboN2WC8.cjs} +1 -1
  54. package/dist/{vue-ui-digits-DGP4EmpQ.cjs → vue-ui-digits-CUvrlpPz.cjs} +1 -1
  55. package/dist/{vue-ui-digits-DCm2stj-.js → vue-ui-digits-CVfceh4-.js} +2 -2
  56. package/dist/vue-ui-donut-BckYXDZJ.cjs +1 -0
  57. package/dist/{vue-ui-donut-BilWHtZy.js → vue-ui-donut-CgYNthls.js} +292 -280
  58. package/dist/vue-ui-donut-evolution-BhlBp6R-.cjs +1 -0
  59. package/dist/{vue-ui-donut-evolution-DKmnEHH_.js → vue-ui-donut-evolution-Bose25D6.js} +285 -273
  60. package/dist/vue-ui-dumbbell-C2iT17s8.cjs +9 -0
  61. package/dist/{vue-ui-dumbbell-KwkTK5_q.js → vue-ui-dumbbell-CzSlukSu.js} +159 -147
  62. package/dist/vue-ui-flow-DDlFrtkk.cjs +1 -0
  63. package/dist/{vue-ui-flow-BShJPhpa.js → vue-ui-flow-DoDWK84L.js} +162 -150
  64. package/dist/vue-ui-funnel-BfJoFIfh.cjs +1 -0
  65. package/dist/{vue-ui-funnel-D4xk_DsA.js → vue-ui-funnel-CM_ixf98.js} +229 -215
  66. package/dist/vue-ui-galaxy-CP71UAF5.cjs +1 -0
  67. package/dist/{vue-ui-galaxy-Ch3QRiP6.js → vue-ui-galaxy-DlwjTJCx.js} +148 -136
  68. package/dist/{vue-ui-gauge-DZUv5beK.js → vue-ui-gauge-ByfGCK6z.js} +119 -107
  69. package/dist/vue-ui-gauge-LqhfOqH-.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-B39J58Zm.js → vue-ui-gizmo-D8Rq5vzL.js} +45 -43
  71. package/dist/vue-ui-gizmo-DFnOaVHf.cjs +1 -0
  72. package/dist/vue-ui-heatmap-A8qDlc58.cjs +1 -0
  73. package/dist/{vue-ui-heatmap-z8KMf1yo.js → vue-ui-heatmap-BLjVXXW4.js} +138 -126
  74. package/dist/vue-ui-history-plot-Bxi5QRP8.cjs +1 -0
  75. package/dist/{vue-ui-history-plot--Lw1-910.js → vue-ui-history-plot-DXoNlRFZ.js} +127 -115
  76. package/dist/vue-ui-kpi-5cGZ0OBJ.cjs +1 -0
  77. package/dist/{vue-ui-kpi-BgNONvkD.js → vue-ui-kpi-Bbot_WSI.js} +36 -33
  78. package/dist/{vue-ui-mini-loader-BrCuKpE6.js → vue-ui-mini-loader-DOE9WO73.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-DjEyKAQe.cjs → vue-ui-mini-loader-DWX9tRhG.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-C_eF6tga.js → vue-ui-molecule-0TReXB2j.js} +212 -200
  81. package/dist/vue-ui-molecule-CxeFzXS5.cjs +1 -0
  82. package/dist/vue-ui-mood-radar-1jLzXLXZ.cjs +1 -0
  83. package/dist/{vue-ui-mood-radar-Ch_Qkx9d.js → vue-ui-mood-radar-BMFn685U.js} +123 -111
  84. package/dist/vue-ui-nested-donuts-4FVj04vI.cjs +17 -0
  85. package/dist/{vue-ui-nested-donuts-uqfXLRGX.js → vue-ui-nested-donuts-B9rWg9V8.js} +156 -144
  86. package/dist/vue-ui-onion-Br97OxbL.cjs +5 -0
  87. package/dist/{vue-ui-onion-CbYOkmrF.js → vue-ui-onion-CnIF_tv7.js} +125 -113
  88. package/dist/vue-ui-parallel-coordinate-plot-Bi_h0H7e.cjs +8 -0
  89. package/dist/{vue-ui-parallel-coordinate-plot-aLNOckoo.js → vue-ui-parallel-coordinate-plot-D9iHCwiA.js} +159 -147
  90. package/dist/{vue-ui-quadrant-CuPCDHgS.js → vue-ui-quadrant-4wjbqumK.js} +211 -199
  91. package/dist/vue-ui-quadrant-DHDToQ9a.cjs +1 -0
  92. package/dist/vue-ui-quick-chart-CJKM6r9X.cjs +15 -0
  93. package/dist/{vue-ui-quick-chart-DBCH5qM1.js → vue-ui-quick-chart-s6FHOZf8.js} +576 -540
  94. package/dist/vue-ui-radar-DBR2qBM5.cjs +1 -0
  95. package/dist/{vue-ui-radar-BamYIcPL.js → vue-ui-radar-DpT9w1N-.js} +183 -171
  96. package/dist/vue-ui-rating-D1Mbw1G8.cjs +1 -0
  97. package/dist/{vue-ui-rating-DxaSXiPx.js → vue-ui-rating-D31vSe7a.js} +102 -98
  98. package/dist/vue-ui-relation-circle-BNJbqK_A.cjs +1 -0
  99. package/dist/{vue-ui-relation-circle-C9_8YW0u.js → vue-ui-relation-circle-DfP6BpVn.js} +129 -117
  100. package/dist/{vue-ui-rings-DFzPi4m9.js → vue-ui-rings-ChcGuwL9.js} +150 -138
  101. package/dist/vue-ui-rings-CjB8a3kO.cjs +2 -0
  102. package/dist/vue-ui-scatter-jk0N3EwD.cjs +1 -0
  103. package/dist/{vue-ui-scatter-n_jHEngt.js → vue-ui-scatter-wUZ2CBpp.js} +320 -308
  104. package/dist/{vue-ui-screenshot-1_OHWjZv.js → vue-ui-screenshot-Blg3Suvg.js} +1 -1
  105. package/dist/{vue-ui-screenshot-BzY_uB1R.cjs → vue-ui-screenshot-DAFpjSWg.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-Ojz7f2oH.js → vue-ui-skeleton-BObG0eVD.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DKtNfORj.cjs → vue-ui-skeleton-m4l9jfqA.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-CXvJ3sXA.js → vue-ui-smiley-DuQ3M02e.js} +208 -206
  109. package/dist/vue-ui-smiley-rh3J3TRY.cjs +2 -0
  110. package/dist/vue-ui-spark-trend-DlNNTu2c.cjs +1 -0
  111. package/dist/{vue-ui-spark-trend-uyDT9RJC.js → vue-ui-spark-trend-SMpnQ3VV.js} +124 -112
  112. package/dist/{vue-ui-sparkbar-CxW1vMP2.js → vue-ui-sparkbar-BB6fvRXK.js} +100 -96
  113. package/dist/vue-ui-sparkbar-chnu8aw9.cjs +1 -0
  114. package/dist/{vue-ui-sparkgauge-NmLBla47.js → vue-ui-sparkgauge-Bk_78-YB.js} +60 -48
  115. package/dist/vue-ui-sparkgauge-FONvy7z9.cjs +1 -0
  116. package/dist/vue-ui-sparkhistogram--uyRru2f.cjs +1 -0
  117. package/dist/{vue-ui-sparkhistogram-B8SukBWt.js → vue-ui-sparkhistogram-CIsN7kQ2.js} +116 -104
  118. package/dist/{vue-ui-sparkline-CokyAm9w.js → vue-ui-sparkline-CFvUW--O.js} +124 -112
  119. package/dist/vue-ui-sparkline-i6LHjMJR.cjs +1 -0
  120. package/dist/vue-ui-sparkstackbar-1RvV2xwt.cjs +1 -0
  121. package/dist/{vue-ui-sparkstackbar-QgZq1O55.js → vue-ui-sparkstackbar-DDMsCq0l.js} +85 -81
  122. package/dist/{vue-ui-stackbar-CTvPYXjb.js → vue-ui-stackbar-BSo9t-88.js} +219 -207
  123. package/dist/vue-ui-stackbar-CQgtC1I4.cjs +6 -0
  124. package/dist/vue-ui-strip-plot-BOSoKxsk.cjs +1 -0
  125. package/dist/{vue-ui-strip-plot-DXPoWvNA.js → vue-ui-strip-plot-C99LsMeZ.js} +113 -101
  126. package/dist/{vue-ui-table-Bb3BBVjm.js → vue-ui-table-3M-aoEc7.js} +1 -1
  127. package/dist/{vue-ui-table-8M1ctuqL.cjs → vue-ui-table-M-6G46br.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-Bv0EfTut.js → vue-ui-table-heatmap-BuYlqsq9.js} +82 -78
  129. package/dist/vue-ui-table-heatmap-CoozQ9bU.cjs +1 -0
  130. package/dist/{vue-ui-table-sparkline-Bs72Df0-.js → vue-ui-table-sparkline-Dm5kErGp.js} +78 -74
  131. package/dist/vue-ui-table-sparkline-u0a2YCwp.cjs +1 -0
  132. package/dist/vue-ui-thermometer-DAz_NjaN.cjs +1 -0
  133. package/dist/{vue-ui-thermometer-DRGjTOIy.js → vue-ui-thermometer-DrY5FsCD.js} +132 -120
  134. package/dist/vue-ui-timer-dCCTsApx.cjs +64 -0
  135. package/dist/{vue-ui-timer-DCA2Dkfi.js → vue-ui-timer-meFVXDUZ.js} +94 -82
  136. package/dist/vue-ui-tiremarks-CRKQklZh.cjs +1 -0
  137. package/dist/{vue-ui-tiremarks-CTqweMbJ.js → vue-ui-tiremarks-PaZ-lr2D.js} +104 -94
  138. package/dist/vue-ui-treemap-Bce1C9jk.cjs +1 -0
  139. package/dist/{vue-ui-treemap-tz9AdMu0.js → vue-ui-treemap-RjHcVtc6.js} +336 -332
  140. package/dist/{vue-ui-vertical-bar-BEkWSr_A.js → vue-ui-vertical-bar-C8rC-QBl.js} +188 -176
  141. package/dist/vue-ui-vertical-bar-e7zR_v0M.cjs +4 -0
  142. package/dist/{vue-ui-waffle-DQPO5aOU.js → vue-ui-waffle-BT8Yn0cl.js} +140 -136
  143. package/dist/vue-ui-waffle-BZLPoVht.cjs +1 -0
  144. package/dist/{vue-ui-wheel-B0u6LKiw.js → vue-ui-wheel-Bq75N1i7.js} +100 -88
  145. package/dist/vue-ui-wheel-CT6r7EQR.cjs +1 -0
  146. package/dist/{vue-ui-word-cloud-CEns9_NI.js → vue-ui-word-cloud-BGh6DY8P.js} +132 -120
  147. package/dist/vue-ui-word-cloud-PcOI8TCE.cjs +1 -0
  148. package/dist/vue-ui-xy-BmNqzUPR.cjs +3 -0
  149. package/dist/{vue-ui-xy-DxpIt6dh.js → vue-ui-xy-DuCsguVf.js} +139 -127
  150. package/dist/{vue-ui-xy-canvas-D_Qiy2N1.js → vue-ui-xy-canvas-6qf3rgfa.js} +231 -227
  151. package/dist/{vue-ui-xy-canvas--zS_4x6O.cjs → vue-ui-xy-canvas-BnJBE19B.cjs} +2 -2
  152. package/package.json +1 -1
  153. package/dist/index-DHwfzZfj.cjs +0 -9
  154. package/dist/vue-ui-3d-bar-Dif8_wHk.cjs +0 -19
  155. package/dist/vue-ui-age-pyramid-DHxsu2a1.cjs +0 -1
  156. package/dist/vue-ui-bullet-CKbrouCq.cjs +0 -34
  157. package/dist/vue-ui-candlestick-C3YNgFyO.cjs +0 -2
  158. package/dist/vue-ui-carousel-table-BU1bmZWZ.cjs +0 -1
  159. package/dist/vue-ui-chestnut-BEALHSS3.cjs +0 -6
  160. package/dist/vue-ui-donut-Jjz58SJJ.cjs +0 -1
  161. package/dist/vue-ui-donut-evolution-BtfRmlIq.cjs +0 -1
  162. package/dist/vue-ui-dumbbell-C2LYuBRx.cjs +0 -9
  163. package/dist/vue-ui-flow-3vjkptJR.cjs +0 -1
  164. package/dist/vue-ui-funnel-DyJdIi_i.cjs +0 -1
  165. package/dist/vue-ui-galaxy-BmGIzIeD.cjs +0 -1
  166. package/dist/vue-ui-gauge-LeMSJBEk.cjs +0 -1
  167. package/dist/vue-ui-gizmo-B7Kum6eT.cjs +0 -1
  168. package/dist/vue-ui-heatmap-CqPuEjJ1.cjs +0 -1
  169. package/dist/vue-ui-history-plot-bjMvk_4h.cjs +0 -1
  170. package/dist/vue-ui-kpi-DIuPP4R7.cjs +0 -1
  171. package/dist/vue-ui-molecule-C3wtpoCr.cjs +0 -1
  172. package/dist/vue-ui-mood-radar-BomqP0zI.cjs +0 -1
  173. package/dist/vue-ui-nested-donuts-KRq3Fcqy.cjs +0 -17
  174. package/dist/vue-ui-onion-G4p7rA61.cjs +0 -5
  175. package/dist/vue-ui-parallel-coordinate-plot-B2OIBraO.cjs +0 -8
  176. package/dist/vue-ui-quadrant-DoWeGQSC.cjs +0 -1
  177. package/dist/vue-ui-quick-chart-DR1qF9kr.cjs +0 -15
  178. package/dist/vue-ui-radar-B6M2ZChR.cjs +0 -1
  179. package/dist/vue-ui-rating-HSL7IrbQ.cjs +0 -1
  180. package/dist/vue-ui-relation-circle-CM_QkigI.cjs +0 -1
  181. package/dist/vue-ui-rings-CmD8g04s.cjs +0 -2
  182. package/dist/vue-ui-scatter-D_WxNGoY.cjs +0 -1
  183. package/dist/vue-ui-smiley-sKWpgakD.cjs +0 -2
  184. package/dist/vue-ui-spark-trend-ByxJmVE5.cjs +0 -1
  185. package/dist/vue-ui-sparkbar-DYHuBv3f.cjs +0 -1
  186. package/dist/vue-ui-sparkgauge-CCvUn2R2.cjs +0 -1
  187. package/dist/vue-ui-sparkhistogram-FU-uE07T.cjs +0 -1
  188. package/dist/vue-ui-sparkline-9LU8yp1t.cjs +0 -1
  189. package/dist/vue-ui-sparkstackbar-9k6C-g_r.cjs +0 -1
  190. package/dist/vue-ui-stackbar-Drqz1of9.cjs +0 -6
  191. package/dist/vue-ui-strip-plot-UYP2fk1H.cjs +0 -1
  192. package/dist/vue-ui-table-heatmap-BqQpJ_Ou.cjs +0 -1
  193. package/dist/vue-ui-table-sparkline-D5xemE-q.cjs +0 -1
  194. package/dist/vue-ui-thermometer-DzynFkq0.cjs +0 -1
  195. package/dist/vue-ui-timer-W5dIiOew.cjs +0 -64
  196. package/dist/vue-ui-tiremarks-BbAzwE5q.cjs +0 -1
  197. package/dist/vue-ui-treemap-CEVP7-S2.cjs +0 -1
  198. package/dist/vue-ui-vertical-bar-D_2WzLxJ.cjs +0 -4
  199. package/dist/vue-ui-waffle-BAvqVwhK.cjs +0 -1
  200. package/dist/vue-ui-wheel-Cjnheeql.cjs +0 -1
  201. package/dist/vue-ui-word-cloud-bxF8a7TI.cjs +0 -1
  202. package/dist/vue-ui-xy-BBvVOSPm.cjs +0 -3
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CgZGelSi.cjs"),M=require("./useNestedProp-BxCE3J3Z.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=y=>(e.pushScopeId("data-v-69afe185"),y=y(),e.popScopeId(),y),C={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},R=["xmlns","stroke"],L={id:"vueUiSmiley0"},H=["stop-color"],X=["stop-color"],j=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),D=["fill"],U=["stroke"],G=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-69afe185></path>',5),A=[G],Y=["xmlns","viewBox","stroke"],K={id:"vueUiSmiley0"},I=["stop-color"],T=["stop-color"],F=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),O=["fill"],q=["viewBox","stroke"],P=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-69afe185></path>',5),J=[P],Q=["xmlns","stroke"],W={id:"vueUiSmiley1"},Z=["stop-color"],ee=["stop-color"],te=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),le=["fill"],oe=["xmlns","stroke"],ae=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9 15l6 0" data-v-69afe185></path>',5),ne=[ae],se=["xmlns","viewBox","stroke"],ie={id:"vueUiSmiley1"},re=["stop-color"],de=["stop-color"],ue=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ce=["fill"],pe=["viewBox","stroke"],ve=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9 15l6 0" data-v-69afe185></path>',5),ye=[ve],fe=["xmlns","stroke"],me={id:"vueUiSmiley2"},he=["stop-color"],ke=["stop-color"],ge=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),xe=["fill"],_e=["xmlns","stroke"],Ne=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),be=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Ve=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),ze=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),Ee=[Ne,be,Ve,ze],Se=["xmlns","viewBox","stroke"],$e=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),we={id:"vueUiSmiley2"},Me=["stop-color"],Be=["stop-color"],Ce=["fill"],Re=["xmlns","viewBox","stroke"],Le=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),He=r(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Xe=r(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),je=r(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),De=[Le,He,Xe,je],Ue=["xmlns","stroke"],Ge={id:"vueUiSmiley3"},Ae=["stop-color"],Ye=["stop-color"],Ke=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ie=["fill"],Te=["xmlns","stroke"],Fe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-69afe185></path>',5),Oe=[Fe],qe=["xmlns","viewBox","stroke"],Pe=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Je={id:"vueUiSmiley3"},Qe=["stop-color"],We=["stop-color"],Ze=["fill"],et=["xmlns","viewBox","stroke"],tt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 10l.01 0" data-v-69afe185></path><path d="M15 10l.01 0" data-v-69afe185></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-69afe185></path>',5),lt=[tt],ot=["xmlns","stroke"],at={id:"vueUiSmiley4"},nt=["stop-color"],st=["stop-color"],it=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),rt=["fill"],dt=["xmlns","stroke"],ut=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 9l.01 0" data-v-69afe185></path><path d="M15 9l.01 0" data-v-69afe185></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-69afe185></path>',5),ct=[ut],pt=["xmlns","viewBox","stroke"],vt=r(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),yt={id:"vueUiSmiley4"},ft=["stop-color"],mt=["stop-color"],ht=["fill"],kt=["xmlns","viewBox","stroke"],gt=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-69afe185></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-69afe185></path><path d="M9 9l.01 0" data-v-69afe185></path><path d="M15 9l.01 0" data-v-69afe185></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-69afe185></path>',5),xt=[gt],_t={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(y,{expose:_,emit:N}){const s=y,{vue_ui_smiley:b}=o.useConfig(),V=e.useSlots();e.onMounted(()=>{V["chart-background"]&&console.warn("VueUiSmiley does not support the #chart-background slot.")}),e.onMounted(()=>{m()});function m(){o.objectIsEmpty(s.dataset)&&o.error({componentName:"VueUiSmiley",type:"dataset"})}const h=e.ref(!1),i=e.ref(void 0),t=e.computed({get:()=>k(),set:n=>n});function k(){return M.useNestedProp({userConfig:s.config,defaultConfig:b})}e.watch(()=>s.config,n=>{t.value=k(),m()},{deep:!0});const z=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?E(s.dataset.rating):s.dataset.rating||null),f=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),d=e.ref(z.value),u=e.computed(()=>t.value.readonly);function E(n){if(n===null)return null;let l=0,a=0;for(const g in n){const w=parseInt(g),x=n[g];l+=w*x,a+=x}return a===0?0:l/a}function p(n){const l=d.value-n,a=24;switch(!0){case l<0:return 0;case l>1:return 1*a;default:return l*a}}function v(n){u.value||(d.value=n,N("rate",n))}function S(){return d.value}function $(n=!0){u.value=n}_({getData:S,toggleReadonly:$});function c(n){return t.value.readonly?t.value.style.colors.inactive[n]:d.value===n+1?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:i.value!==void 0&&i.value===n?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:t.value.style.colors.inactive[n]}return(n,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%;`),onMouseover:l[20]||(l[20]=a=>h.value=!0),onMouseleave:l[21]||(l[21]=a=>{h.value=!1,i.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${t.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===1}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;
2
+ position:relative`),onMouseenter:l[0]||(l[0]=a=>i.value=0),onMouseleave:l[1]||(l[1]=a=>i.value=void 0),onClick:l[2]||(l[2]=a=>v(1)),onKeyup:l[3]||(l[3]=e.withKeys(a=>v(1),["enter"]))},[t.value.style.tooltip.show&&f.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===0?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"1:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[1],e.unref(o.dataLabel)({v:s.dataset.rating[1],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",L,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.active[0],.05)},null,8,H),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[0]},null,8,X)])]),j,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(0)},null,8,D)],8,R)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},A,8,U)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",K,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[0],.05)},null,8,I),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[0]},null,8,T)])]),F,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley0)":t.value.style.colors.activeReadonly[0]},null,8,O)],8,Y)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},J,8,q)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===2}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[4]||(l[4]=a=>i.value=1),onMouseleave:l[5]||(l[5]=a=>i.value=void 0),onClick:l[6]||(l[6]=a=>v(2)),onKeyup:l[7]||(l[7]=e.withKeys(a=>v(2),["enter"]))},[t.value.style.tooltip.show&&f.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===1?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"2:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[2],e.unref(o.dataLabel)({v:s.dataset.rating[2],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",W,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.active[1],.05)},null,8,Z),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[1]},null,8,ee)])]),te,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(1)},null,8,le)],8,Q)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ne,8,oe)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ie,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[1],.05)},null,8,re),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[1]},null,8,de)])]),ue,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley1)":t.value.style.colors.activeReadonly[1]},null,8,ce)],8,se)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ye,8,pe)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===3}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[8]||(l[8]=a=>i.value=2),onMouseleave:l[9]||(l[9]=a=>i.value=void 0),onClick:l[10]||(l[10]=a=>v(3)),onKeyup:l[11]||(l[11]=e.withKeys(a=>v(3),["enter"]))},[t.value.style.tooltip.show&&f.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===2?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"3:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[3],e.unref(o.dataLabel)({v:s.dataset.rating[3],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",me,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,ke)])]),ge,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:c(2)},null,8,xe)],8,fe)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ee,8,_e)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[$e,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",we,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,Be)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley2)":t.value.style.colors.activeReadonly[2]},null,8,Ce)],8,Se)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},De,8,Re)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===4}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[12]||(l[12]=a=>i.value=3),onMouseleave:l[13]||(l[13]=a=>i.value=void 0),onClick:l[14]||(l[14]=a=>v(4)),onKeyup:l[15]||(l[15]=e.withKeys(a=>v(4),["enter"]))},[t.value.style.tooltip.show&&f.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===3?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"4:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[4],e.unref(o.dataLabel)({v:s.dataset.rating[4],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Ge,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,Ae),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,Ye)])]),Ke,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:c(3)},null,8,Ie)],8,Ue)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Oe,8,Te)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Pe,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Je,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,Qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,We)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley3)":t.value.style.colors.activeReadonly[3]},null,8,Ze)],8,qe)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},lt,8,et)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&d.value===5}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:l[16]||(l[16]=a=>i.value=4),onMouseleave:l[17]||(l[17]=a=>i.value=void 0),onClick:l[18]||(l[18]=a=>v(5)),onKeyup:l[19]||(l[19]=e.withKeys(a=>v(5),["enter"]))},[t.value.style.tooltip.show&&f.value&&u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${i.value===4?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"5:",4),e.createTextVNode(),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.tooltip.formatter,s.dataset.rating[5],e.unref(o.dataLabel)({v:s.dataset.rating[5],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",at,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,nt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,st)])]),it,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:c(4)},null,8,rt)],8,ot)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:c(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ct,8,dt)),t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[vt,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",yt,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,mt)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley4)":t.value.style.colors.activeReadonly[4]},null,8,ht)],8,pt)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&u.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},xt,8,kt)):e.createCommentVNode("",!0)],38),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.rating.formatter,d.value,e.unref(o.dataLabel)({v:d.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},Nt=B._export_sfc(_t,[["__scopeId","data-v-69afe185"]]);exports.default=Nt;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-CgZGelSi.cjs"),T=require("./useNestedProp-BxCE3J3Z.cjs"),w=require("./BaseIcon-BHIQREMO.cjs"),A=require("./vue-ui-skeleton-m4l9jfqA.cjs"),F=require("./PackageVersion-B_1OHk5A.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-BSzkwF5n.js";
3
- import { u as U } from "./useNestedProp-BWC_DPZ5.js";
4
- import I from "./BaseIcon-B0g_Fksl.js";
5
- import re from "./vue-ui-skeleton-Ojz7f2oH.js";
6
- import { _ as ie } from "./PackageVersion-W3d_oNMs.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-D7dTQAhm.js";
3
+ import { u as Z } from "./useNestedProp-Dqsj7eUX.js";
4
+ import I from "./BaseIcon-EWtqg17H.js";
5
+ import re from "./vue-ui-skeleton-BObG0eVD.js";
6
+ import { _ as ie } from "./PackageVersion-BSLNI6kk.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
  };