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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-CgZGelSi.cjs"),_=require("./useNestedProp-BxCE3J3Z.cjs"),F=require("./Shape-y66NSXKp.cjs"),M=require("./vue-ui-skeleton-m4l9jfqA.cjs"),O=require("./PackageVersion-B_1OHk5A.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["width","height"],W=["id"],j=["stop-color"],P=["stop-color"],G=["id"],T=["stop-color"],X=["stop-color"],Y=["id"],R=["stop-color"],J=["stop-color"],K={key:1},Q=["x","y","height","width","fill","stroke","stroke-width","rx"],Z={key:2},ee=["x","y","font-size","font-weight","fill"],te=["x","y","font-size","fill"],le=["x","y","font-size","fill"],oe=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],ae={key:2,ref:"source",dir:"auto"},ne={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(B,{emit:x}){const c=B;e.useCssVars(o=>({"9e84af8a":S.value}));const{vue_ui_sparkhistogram:E}=a.useConfig(),f=e.computed(()=>!!c.dataset&&c.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(c.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):c.dataset.forEach((o,r)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:r})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o});function b(){const o=_.useNestedProp({userConfig:c.config,defaultConfig:E});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||c.config,defaultConfig:o})}:o}e.watch(()=>c.config,o=>{t.value=b(),k()},{deep:!0});const u=e.computed(()=>{const o=t.value.style.layout.height,r=t.value.style.layout.width,l=t.value.style.layout.padding.top,n=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=r-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,h=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=r-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:n,centerY:p,drawingHeight:h,drawingWidth:m,height:o,left:d,right:y,top:l,width:r}}),w=e.computed(()=>Math.max(...c.dataset.map(o=>Math.abs(o.value||0))));function C(o){return Math.abs(o)/w.value}const i=e.computed(()=>c.dataset.map((o,r)=>{const l=C(o.value||0),n=u.value.drawingHeight*l,d=u.value.drawingWidth/c.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,h=u.value.centerY-n/2,m=u.value.left+(y/2+r*d),N=u.value.left+r*d,g=typeof o.intensity>"u"?100:Math.round(o.intensity*100),L=o.color?o.color:o.value>=0?a.setOpacity(t.value.style.bars.colors.positive,g):a.setOpacity(t.value.style.bars.colors.negative,g),V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${r}_${v.value})`:o.value>=0?`url(#gradient_positive_${r}_${v.value})`:`url(#gradient_negative_${r}_${v.value})`,D=m+p/2;return{...o,color:L,gradient:z,height:n,intensity:g,proportion:l,stroke:V,textAnchor:D,trapX:N,unitWidth:d,width:p,x:m,y:h}})),s=e.ref(null);function $(o,r){x("selectDatapoint",{datapoint:o,index:r})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:r[1]||(r[1]=l=>s.value=null)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),s.value!==null?(e.openBlock(),e.createElementBlock("span",H,"- "+e.toDisplayString(i.value[s.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,i.value[s.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:i.value[s.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[s.value],seriesIndex:s.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(s.value)&&![null,void 0].includes(i.value[s.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(i.value[s.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${u.value.width} ${u.value.height}`,style:{overflow:"visible"}},[e.createVNode(O._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width,height:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,U)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05),l.intensity)},null,8,j),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.positive,l.intensity)},null,8,P)],8,W))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05),l.intensity)},null,8,T),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(t.value.style.bars.colors.negative,l.intensity)},null,8,X)],8,G))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(a.setOpacity)(e.unref(a.shiftHue)(l.color,.05),l.intensity)},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(a.setOpacity)(l.color,l.intensity)},null,8,J)],8,Y))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,Q))),256))])):(e.openBlock(),e.createElementBlock("g",Z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createBlock(F._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,l.value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:l.value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[s.value],seriesIndex:s.value})),9,ee))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,te)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:u.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,le)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:u.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>s.value=n,onMouseleave:r[0]||(r[0]=d=>s.value=null),stroke:s.value!==null&&s.value===n?t.value.style.selector.stroke:"","stroke-width":s.value!==null&&s.value===n?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>$(l,n)},null,40,oe)]))),256))],8,I)):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",ae,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:3,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},se=A._export_sfc(ne,[["__scopeId","data-v-ad438c17"]]);exports.default=se;
@@ -1,15 +1,15 @@
1
- import { useCssVars as J, computed as _, onMounted as K, ref as N, watch as Q, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as y, createTextVNode as Z, toDisplayString as g, unref as n, createCommentVNode as h, createVNode as ee, Fragment as f, renderList as p, normalizeClass as D, createBlock as I, renderSlot as te } from "vue";
2
- import { u as le, o as ae, e as V, g as se, c as oe, t as ue, s as m, i as H, f as E, X as re, w as z } from "./index-BSzkwF5n.js";
3
- import { u as F } from "./useNestedProp-BWC_DPZ5.js";
4
- import { _ as ie } from "./Shape-CXTDY_Vo.js";
5
- import ne from "./vue-ui-skeleton-Ojz7f2oH.js";
6
- import { _ as ve } from "./PackageVersion-W3d_oNMs.js";
1
+ import { useCssVars as K, computed as _, onMounted as Q, ref as N, watch as Z, openBlock as a, createElementBlock as s, normalizeStyle as $, createElementVNode as h, createTextVNode as ee, toDisplayString as p, unref as n, createCommentVNode as c, createVNode as te, renderSlot as D, Fragment as f, renderList as g, normalizeClass as I, createBlock as V } from "vue";
2
+ import { u as le, o as ae, e as E, g as se, c as oe, t as ue, s as b, i as H, f as F, X as re, w as z } from "./index-D7dTQAhm.js";
3
+ import { u as O } from "./useNestedProp-Dqsj7eUX.js";
4
+ import { _ as ie } from "./Shape-DnqZey62.js";
5
+ import ne from "./vue-ui-skeleton-BObG0eVD.js";
6
+ import { _ as ve } from "./PackageVersion-BSLNI6kk.js";
7
7
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], me = ["id"], be = ["stop-color"], _e = ["stop-color"], xe = ["id"], ke = ["stop-color"], we = ["stop-color"], $e = { key: 0 }, Ce = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Le = { key: 1 }, ze = ["x", "y", "font-size", "font-weight", "fill"], Se = ["x", "y", "font-size", "fill"], Me = ["x", "y", "font-size", "fill"], Ae = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ne = {
8
+ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["width", "height"], ge = ["id"], pe = ["stop-color"], be = ["stop-color"], me = ["id"], _e = ["stop-color"], xe = ["stop-color"], ke = ["id"], we = ["stop-color"], $e = ["stop-color"], Ce = { key: 1 }, Le = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], ze = { key: 2 }, Se = ["x", "y", "font-size", "font-weight", "fill"], Me = ["x", "y", "font-size", "fill"], Ae = ["x", "y", "font-size", "fill"], Ne = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], De = {
9
9
  key: 2,
10
10
  ref: "source",
11
11
  dir: "auto"
12
- }, De = {
12
+ }, Ie = {
13
13
  __name: "vue-ui-sparkhistogram",
14
14
  props: {
15
15
  config: {
@@ -27,24 +27,24 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
27
27
  },
28
28
  emits: ["selectDatapoint"],
29
29
  setup(W, { emit: B }) {
30
- const v = W;
31
- J((l) => ({
32
- "3d57fabd": G.value
30
+ const d = W;
31
+ K((l) => ({
32
+ "9e84af8a": Y.value
33
33
  }));
34
- const { vue_ui_sparkhistogram: O } = le(), S = _(() => !!v.dataset && v.dataset.length);
35
- K(() => {
34
+ const { vue_ui_sparkhistogram: U } = le(), S = _(() => !!d.dataset && d.dataset.length);
35
+ Q(() => {
36
36
  M();
37
37
  });
38
38
  function M() {
39
- ae(v.dataset) ? V({
39
+ ae(d.dataset) ? E({
40
40
  componentName: "VueUiSparkHistogram",
41
41
  type: "dataset"
42
- }) : v.dataset.forEach((l, r) => {
42
+ }) : d.dataset.forEach((l, r) => {
43
43
  se({
44
44
  datasetObject: l,
45
45
  requiredAttributes: ["value"]
46
46
  }).forEach((t) => {
47
- V({
47
+ E({
48
48
  componentName: "VueUiSparkHistogram",
49
49
  type: "datasetSerieAttribute",
50
50
  property: t,
@@ -53,64 +53,64 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
53
53
  });
54
54
  });
55
55
  }
56
- const b = N(oe()), e = _({
56
+ const m = N(oe()), e = _({
57
57
  get: () => A(),
58
58
  set: (l) => l
59
59
  });
60
60
  function A() {
61
- const l = F({
62
- userConfig: v.config,
63
- defaultConfig: O
61
+ const l = O({
62
+ userConfig: d.config,
63
+ defaultConfig: U
64
64
  });
65
65
  return l.theme ? {
66
- ...F({
67
- userConfig: ue.vue_ui_sparkhistogram[l.theme] || v.config,
66
+ ...O({
67
+ userConfig: ue.vue_ui_sparkhistogram[l.theme] || d.config,
68
68
  defaultConfig: l
69
69
  })
70
70
  } : l;
71
71
  }
72
- Q(() => v.config, (l) => {
72
+ Z(() => d.config, (l) => {
73
73
  e.value = A(), M();
74
74
  }, { deep: !0 });
75
- const d = _(() => {
76
- const l = e.value.style.layout.height, r = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, c = e.value.style.layout.padding.left, x = r - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, w = r - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
75
+ const v = _(() => {
76
+ const l = e.value.style.layout.height, r = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, y = e.value.style.layout.padding.left, x = r - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, w = r - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
77
77
  return {
78
78
  bottom: o,
79
79
  centerY: k,
80
80
  drawingHeight: C,
81
81
  drawingWidth: w,
82
82
  height: l,
83
- left: c,
83
+ left: y,
84
84
  right: x,
85
85
  top: t,
86
86
  width: r
87
87
  };
88
- }), U = _(() => Math.max(...v.dataset.map((l) => Math.abs(l.value || 0))));
88
+ }), j = _(() => Math.max(...d.dataset.map((l) => Math.abs(l.value || 0))));
89
89
  function X(l) {
90
- return Math.abs(l) / U.value;
90
+ return Math.abs(l) / j.value;
91
91
  }
92
- const i = _(() => v.dataset.map((l, r) => {
93
- const t = X(l.value || 0), o = d.value.drawingHeight * t, c = d.value.drawingWidth / v.dataset.length, x = c * (e.value.style.bars.gap / 100), k = c - x, C = d.value.centerY - o / 2, w = d.value.left + (x / 2 + r * c), Y = d.value.left + r * c, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), q = l.color ? l.color : l.value >= 0 ? m(e.value.style.bars.colors.positive, L) : m(e.value.style.bars.colors.negative, L), R = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, T = l.color ? `url(#gradient_datapoint_${r}_${b.value})` : l.value >= 0 ? `url(#gradient_positive_${r}_${b.value})` : `url(#gradient_negative_${r}_${b.value})`, P = w + k / 2;
92
+ const i = _(() => d.dataset.map((l, r) => {
93
+ const t = X(l.value || 0), o = v.value.drawingHeight * t, y = v.value.drawingWidth / d.dataset.length, x = y * (e.value.style.bars.gap / 100), k = y - x, C = v.value.centerY - o / 2, w = v.value.left + (x / 2 + r * y), q = v.value.left + r * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), R = l.color ? l.color : l.value >= 0 ? b(e.value.style.bars.colors.positive, L) : b(e.value.style.bars.colors.negative, L), T = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, P = l.color ? `url(#gradient_datapoint_${r}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${r}_${m.value})` : `url(#gradient_negative_${r}_${m.value})`, J = w + k / 2;
94
94
  return {
95
95
  ...l,
96
- color: q,
97
- gradient: T,
96
+ color: R,
97
+ gradient: P,
98
98
  height: o,
99
99
  intensity: L,
100
100
  proportion: t,
101
- stroke: R,
102
- textAnchor: P,
103
- trapX: Y,
104
- unitWidth: c,
101
+ stroke: T,
102
+ textAnchor: J,
103
+ trapX: q,
104
+ unitWidth: y,
105
105
  width: k,
106
106
  x: w,
107
107
  y: C
108
108
  };
109
109
  })), u = N(null);
110
- function j(l, r) {
110
+ function G(l, r) {
111
111
  B("selectDatapoint", { datapoint: l, index: r });
112
112
  }
113
- const G = _(() => `${e.value.style.animation.speedMs}ms`);
113
+ const Y = _(() => `${e.value.style.animation.speedMs}ms`);
114
114
  return (l, r) => (a(), s("div", {
115
115
  style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
116
116
  onMouseleave: r[1] || (r[1] = (t) => u.value = null)
@@ -119,90 +119,102 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
119
119
  key: 0,
120
120
  style: $(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
121
121
  }, [
122
- y("div", {
122
+ h("div", {
123
123
  style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
124
124
  }, [
125
- Z(g(e.value.style.title.text) + " ", 1),
126
- u.value !== null ? (a(), s("span", ce, "- " + g(i.value[u.value].timeLabel || "") + " " + g(n(H)(
125
+ ee(p(e.value.style.title.text) + " ", 1),
126
+ u.value !== null ? (a(), s("span", ce, "- " + p(i.value[u.value].timeLabel || "") + " " + p(n(H)(
127
127
  e.value.style.labels.value.formatter,
128
128
  i.value[u.value].value,
129
- n(E)({
129
+ n(F)({
130
130
  p: e.value.style.labels.value.prefix,
131
131
  v: i.value[u.value].value,
132
132
  s: e.value.style.labels.value.suffix,
133
133
  r: e.value.style.labels.value.rounding
134
134
  }),
135
135
  { datapoint: i.value[u.value], seriesIndex: u.value }
136
- )), 1)) : h("", !0),
137
- ![void 0, null].includes(u.value) && ![null, void 0].includes(i.value[u.value].valueLabel) ? (a(), s("span", ye, "(" + g(i.value[u.value].valueLabel || 0) + ")", 1)) : h("", !0)
136
+ )), 1)) : c("", !0),
137
+ ![void 0, null].includes(u.value) && ![null, void 0].includes(i.value[u.value].valueLabel) ? (a(), s("span", ye, "(" + p(i.value[u.value].valueLabel || 0) + ")", 1)) : c("", !0)
138
138
  ], 4),
139
139
  e.value.style.title.subtitle.text ? (a(), s("div", {
140
140
  key: 0,
141
141
  style: $(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
142
- }, g(e.value.style.title.subtitle.text), 5)) : h("", !0)
143
- ], 4)) : h("", !0),
142
+ }, p(e.value.style.title.subtitle.text), 5)) : c("", !0)
143
+ ], 4)) : c("", !0),
144
144
  S.value ? (a(), s("svg", {
145
145
  key: 1,
146
146
  xmlns: n(re),
147
- viewBox: `0 0 ${d.value.width} ${d.value.height}`,
147
+ viewBox: `0 0 ${v.value.width} ${v.value.height}`,
148
148
  style: { overflow: "visible" }
149
149
  }, [
150
- ee(ve),
151
- y("defs", null, [
152
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
153
- id: `gradient_positive_${o}_${b.value}`,
150
+ te(ve),
151
+ l.$slots["chart-background"] ? (a(), s("foreignObject", {
152
+ key: 0,
153
+ x: 0,
154
+ y: 0,
155
+ width: v.value.width,
156
+ height: v.value.height,
157
+ style: {
158
+ pointerEvents: "none"
159
+ }
160
+ }, [
161
+ D(l.$slots, "chart-background", {}, void 0, !0)
162
+ ], 8, fe)) : c("", !0),
163
+ h("defs", null, [
164
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("radialGradient", {
165
+ id: `gradient_positive_${o}_${m.value}`,
154
166
  cy: "50%",
155
167
  cx: "50%",
156
168
  r: "50%",
157
169
  fx: "50%",
158
170
  fy: "50%"
159
171
  }, [
160
- y("stop", {
172
+ h("stop", {
161
173
  offset: "0%",
162
- "stop-color": n(m)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
174
+ "stop-color": n(b)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
163
175
  }, null, 8, pe),
164
- y("stop", {
176
+ h("stop", {
165
177
  offset: "100%",
166
- "stop-color": n(m)(e.value.style.bars.colors.positive, t.intensity)
167
- }, null, 8, ge)
168
- ], 8, fe))), 256)),
169
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
170
- id: `gradient_negative_${o}_${b.value}`,
178
+ "stop-color": n(b)(e.value.style.bars.colors.positive, t.intensity)
179
+ }, null, 8, be)
180
+ ], 8, ge))), 256)),
181
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("radialGradient", {
182
+ id: `gradient_negative_${o}_${m.value}`,
171
183
  cy: "50%",
172
184
  cx: "50%",
173
185
  r: "50%",
174
186
  fx: "50%",
175
187
  fy: "50%"
176
188
  }, [
177
- y("stop", {
189
+ h("stop", {
178
190
  offset: "0%",
179
- "stop-color": n(m)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
180
- }, null, 8, be),
181
- y("stop", {
191
+ "stop-color": n(b)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
192
+ }, null, 8, _e),
193
+ h("stop", {
182
194
  offset: "100%",
183
- "stop-color": n(m)(e.value.style.bars.colors.negative, t.intensity)
184
- }, null, 8, _e)
195
+ "stop-color": n(b)(e.value.style.bars.colors.negative, t.intensity)
196
+ }, null, 8, xe)
185
197
  ], 8, me))), 256)),
186
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("radialGradient", {
187
- id: `gradient_datapoint_${o}_${b.value}`,
198
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("radialGradient", {
199
+ id: `gradient_datapoint_${o}_${m.value}`,
188
200
  cy: "50%",
189
201
  cx: "50%",
190
202
  r: "50%",
191
203
  fx: "50%",
192
204
  fy: "50%"
193
205
  }, [
194
- y("stop", {
206
+ h("stop", {
195
207
  offset: "0%",
196
- "stop-color": n(m)(n(z)(t.color, 0.05), t.intensity)
197
- }, null, 8, ke),
198
- y("stop", {
208
+ "stop-color": n(b)(n(z)(t.color, 0.05), t.intensity)
209
+ }, null, 8, we),
210
+ h("stop", {
199
211
  offset: "100%",
200
- "stop-color": n(m)(t.color, t.intensity)
201
- }, null, 8, we)
202
- ], 8, xe))), 256))
212
+ "stop-color": n(b)(t.color, t.intensity)
213
+ }, null, 8, $e)
214
+ ], 8, ke))), 256))
203
215
  ]),
204
- !e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", $e, [
205
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("rect", {
216
+ !e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ce, [
217
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("rect", {
206
218
  x: t.x,
207
219
  y: t.y,
208
220
  height: t.height,
@@ -211,36 +223,36 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
211
223
  stroke: t.stroke,
212
224
  "stroke-width": e.value.style.bars.strokeWidth,
213
225
  rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
214
- class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
215
- }, null, 10, Ce))), 256))
216
- ])) : (a(), s("g", Le, [
217
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), I(ie, {
226
+ class: I({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
227
+ }, null, 10, Le))), 256))
228
+ ])) : (a(), s("g", ze, [
229
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), V(ie, {
218
230
  plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
219
231
  color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
220
232
  shape: e.value.style.bars.shape,
221
233
  radius: t.height * 0.4,
222
- class: D({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
234
+ class: I({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
223
235
  }, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
224
236
  ])),
225
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("text", {
237
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("text", {
226
238
  "text-anchor": "middle",
227
239
  x: t.textAnchor,
228
240
  y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
229
241
  "font-size": e.value.style.labels.value.fontSize,
230
242
  "font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
231
243
  fill: e.value.style.labels.value.color
232
- }, g(n(H)(
244
+ }, p(n(H)(
233
245
  e.value.style.labels.value.formatter,
234
246
  t.value,
235
- n(E)({
247
+ n(F)({
236
248
  p: e.value.style.labels.value.prefix,
237
249
  v: t.value,
238
250
  s: e.value.style.labels.value.suffix,
239
251
  r: e.value.style.labels.value.rounding
240
252
  }),
241
253
  { datapoint: i.value[u.value], seriesIndex: u.value }
242
- )), 9, ze))), 256)),
243
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
254
+ )), 9, Se))), 256)),
255
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("g", null, [
244
256
  t.valueLabel ? (a(), s("text", {
245
257
  key: 0,
246
258
  x: t.textAnchor,
@@ -248,39 +260,39 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
248
260
  "font-size": e.value.style.labels.valueLabel.fontSize,
249
261
  "text-anchor": "middle",
250
262
  fill: e.value.style.labels.valueLabel.color
251
- }, g(t.valueLabel), 9, Se)) : h("", !0)
263
+ }, p(t.valueLabel), 9, Me)) : c("", !0)
252
264
  ]))), 256)),
253
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
265
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("g", null, [
254
266
  t.timeLabel ? (a(), s("text", {
255
267
  key: 0,
256
268
  x: t.textAnchor,
257
- y: d.value.height - e.value.style.labels.timeLabel.fontSize / 2,
269
+ y: v.value.height - e.value.style.labels.timeLabel.fontSize / 2,
258
270
  "font-size": e.value.style.labels.timeLabel.fontSize,
259
271
  fill: e.value.style.labels.timeLabel.color,
260
272
  "text-anchor": "middle"
261
- }, g(t.timeLabel), 9, Me)) : h("", !0)
273
+ }, p(t.timeLabel), 9, Ae)) : c("", !0)
262
274
  ]))), 256)),
263
- (a(!0), s(f, null, p(i.value, (t, o) => (a(), s("g", null, [
264
- y("rect", {
265
- height: d.value.height,
275
+ (a(!0), s(f, null, g(i.value, (t, o) => (a(), s("g", null, [
276
+ h("rect", {
277
+ height: v.value.height,
266
278
  width: t.unitWidth,
267
279
  fill: "transparent",
268
280
  x: t.trapX,
269
281
  y: 0,
270
- onMouseover: (c) => u.value = o,
271
- onMouseleave: r[0] || (r[0] = (c) => u.value = null),
282
+ onMouseover: (y) => u.value = o,
283
+ onMouseleave: r[0] || (r[0] = (y) => u.value = null),
272
284
  stroke: u.value !== null && u.value === o ? e.value.style.selector.stroke : "",
273
285
  "stroke-width": u.value !== null && u.value === o ? e.value.style.selector.strokeWidth : 0,
274
286
  rx: e.value.style.selector.borderRadius,
275
287
  "stroke-dasharray": e.value.style.selector.strokeDasharray,
276
- onClick: () => j(t, o)
277
- }, null, 40, Ae)
288
+ onClick: () => G(t, o)
289
+ }, null, 40, Ne)
278
290
  ]))), 256))
279
- ], 8, he)) : h("", !0),
280
- l.$slots.source ? (a(), s("div", Ne, [
281
- te(l.$slots, "source", {}, void 0, !0)
282
- ], 512)) : h("", !0),
283
- S.value ? h("", !0) : (a(), I(ne, {
291
+ ], 8, he)) : c("", !0),
292
+ l.$slots.source ? (a(), s("div", De, [
293
+ D(l.$slots, "source", {}, void 0, !0)
294
+ ], 512)) : c("", !0),
295
+ S.value ? c("", !0) : (a(), V(ne, {
284
296
  key: 3,
285
297
  config: {
286
298
  type: "sparkHistogram",
@@ -294,7 +306,7 @@ const ce = { key: 0 }, ye = { key: 1 }, he = ["xmlns", "viewBox"], fe = ["id"],
294
306
  }, null, 8, ["config"]))
295
307
  ], 36));
296
308
  }
297
- }, Oe = /* @__PURE__ */ de(De, [["__scopeId", "data-v-4e962555"]]);
309
+ }, Ue = /* @__PURE__ */ de(Ie, [["__scopeId", "data-v-ad438c17"]]);
298
310
  export {
299
- Oe as default
311
+ Ue as default
300
312
  };