vue-data-ui 2.4.51 → 2.4.53

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 (179) hide show
  1. package/dist/{Arrow-2a_SwBgz.cjs → Arrow-BGjtcB03.cjs} +1 -1
  2. package/dist/{Arrow-BUz63pb2.js → Arrow-XbzVXHDF.js} +1 -1
  3. package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-CiQzR1fE.js} +1 -1
  4. package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-DGRZS55E.cjs} +1 -1
  5. package/dist/{DataTable-G3ICK-5h.cjs → DataTable-DWQiMziO.cjs} +1 -1
  6. package/dist/{DataTable-DGf6RrOJ.js → DataTable-jvL0XGWl.js} +2 -2
  7. package/dist/{Legend-BiuPlEMg.cjs → Legend-BstxUr4T.cjs} +1 -1
  8. package/dist/{Legend-BLaZxMge.js → Legend-DcIfRSNC.js} +1 -1
  9. package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-CeJ2R9gK.cjs} +1 -1
  10. package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Ve0s76sL.js} +1 -1
  11. package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DQPbe0G_.cjs} +1 -1
  12. package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-IHG7xTmx.js} +3 -3
  13. package/dist/{Shape-yducHWd0.cjs → Shape-Bzx4qKcd.cjs} +1 -1
  14. package/dist/{Shape-DIKzzpFm.js → Shape-Rg6yW7m3.js} +1 -1
  15. package/dist/{Slicer-Cxdl3cDt.js → Slicer-CP2Z31Lc.js} +2 -2
  16. package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-CPp7_WWa.cjs} +1 -1
  17. package/dist/{Title-Bk_55doC.cjs → Title-CSyDhu3S.cjs} +1 -1
  18. package/dist/{Title-aSAft5dl.js → Title-DLo3Zo2_.js} +1 -1
  19. package/dist/{Tooltip-smutPF--.js → Tooltip-CA1QhFeE.js} +1 -1
  20. package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-D88h1zvE.cjs} +1 -1
  21. package/dist/{index-DhDYBLBe.cjs → index-C3wsuQ2C.cjs} +1 -1
  22. package/dist/{index-BbPeL8Gp.js → index-DhxnZ6ZS.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BN8claGG.js → useNestedProp-BcqToEU0.js} +1 -1
  25. package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-CFwQtnNB.cjs} +1 -1
  26. package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-Dglf1bsw.cjs} +1 -1
  27. package/dist/{usePrinter-DaybDVqP.js → usePrinter-mDGfOQZA.js} +1 -1
  28. package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-BM5qFlPf.cjs} +1 -1
  29. package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-C6tJVggL.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-BFzCyxbR.js} +30 -30
  33. package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-DiL5x37F.cjs} +2 -2
  34. package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-DDp8hUlk.js} +3 -3
  35. package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kv5FuXqU.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-ORFLMq65.js} +42 -42
  37. package/dist/vue-ui-age-pyramid-xYMc6DPS.cjs +1 -0
  38. package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-CYyuSx8D.js} +1 -1
  39. package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-J_Ssv585.cjs} +1 -1
  40. package/dist/vue-ui-bullet-BbOqOHbK.cjs +34 -0
  41. package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-D8w5qQKc.js} +41 -41
  42. package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-B7jJlgII.js} +61 -61
  43. package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BbKj6Lt5.cjs} +2 -2
  44. package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-3ntrCePt.js} +50 -50
  45. package/dist/vue-ui-carousel-table-Cazhvs3E.cjs +1 -0
  46. package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-DyFTfNZi.cjs} +3 -3
  47. package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-apUInPn_.js} +66 -66
  48. package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CFTO66GQ.js} +2 -2
  49. package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-CsNO0-Tw.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-C-pDSWwi.js} +2 -2
  51. package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-DddJvm7i.cjs} +1 -1
  52. package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-DSqN9pA7.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-DWAbSFx3.js} +2 -2
  54. package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-DSeDfu4H.js} +57 -57
  55. package/dist/vue-ui-donut-DrAes-Cb.cjs +1 -0
  56. package/dist/vue-ui-donut-evolution-CYtTDj7r.cjs +1 -0
  57. package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-D7h33-ti.js} +66 -66
  58. package/dist/vue-ui-dumbbell-DAK7iUrl.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-LF5uy2pG.js} +46 -46
  60. package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-ClPKB4R5.js} +43 -43
  61. package/dist/vue-ui-flow-u3UVnWTH.cjs +1 -0
  62. package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-BIXUXI8z.js} +59 -59
  63. package/dist/vue-ui-funnel-BY7rqfpW.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-CEnGrqn3.js} +54 -54
  65. package/dist/vue-ui-galaxy-DBnbXO8c.cjs +1 -0
  66. package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-C7Qchm0R.js} +70 -70
  67. package/dist/vue-ui-gauge-CJYWRyeq.cjs +1 -0
  68. package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-C9_Ciat_.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-CKZRt29V.js} +3 -3
  70. package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-BlbOJnS0.js} +87 -87
  71. package/dist/vue-ui-heatmap-olBNo_Ui.cjs +1 -0
  72. package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CBpL_OyR.js} +75 -75
  73. package/dist/vue-ui-history-plot-Cyd53pxt.cjs +1 -0
  74. package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-C2XDua17.js} +3 -3
  75. package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-CkcQ40VT.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-CpeOqmXd.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-DXF2Zpi6.js} +2 -2
  78. package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-ekgpnwl8.js} +52 -52
  79. package/dist/vue-ui-molecule-qQjh4AkD.cjs +1 -0
  80. package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-CV30YU_f.js} +35 -35
  81. package/dist/vue-ui-mood-radar-KoW8hhxL.cjs +1 -0
  82. package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-AkaYvLCi.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-DZ_eS-bB.js} +90 -90
  84. package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-Bl1UUCFU.cjs} +2 -2
  85. package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-YfHn7AeD.js} +52 -52
  86. package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-BEqbS5A6.js} +62 -62
  87. package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-Dv_UD2bi.cjs} +2 -2
  88. package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-BU_pD15l.js} +50 -50
  89. package/dist/vue-ui-quadrant-DO6afeTp.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-ByDBV3lo.cjs} +1 -1
  91. package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-U-1paiOI.js} +9 -9
  92. package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-B5FUXS1e.js} +59 -59
  93. package/dist/vue-ui-radar-DLsIiPBR.cjs +1 -0
  94. package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-D4-ebrWA.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-DcCUrP6L.js} +2 -2
  96. package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-2i7B4Yf-.js} +56 -56
  97. package/dist/vue-ui-relation-circle-jPx6gmw1.cjs +1 -0
  98. package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-6JF72UH8.cjs} +2 -2
  99. package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-DG0DQD21.js} +65 -65
  100. package/dist/vue-ui-scatter-CfbMuDQy.cjs +1 -0
  101. package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-j6SU-TUb.js} +102 -102
  102. package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-B6hhgFz_.js} +1 -1
  103. package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-BKfP266_.cjs} +1 -1
  104. package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-99lBQ_mF.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-pdtGfiV6.js} +3 -3
  106. package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-8UembS7P.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-fOlIEhGS.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-BkPSkOrh.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-CV5Uq241.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-DUNqm_AP.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-qB9reaJo.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-D0hLQuMH.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-Mmm3mt-c.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-9yQ-E0co.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CuB-M26R.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-D_QkkgS-.js} +4 -4
  117. package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-Du8Hm28x.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-BDubVDPN.js} +5 -5
  119. package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-B_I1tmuS.cjs} +1 -1
  120. package/dist/vue-ui-stackbar-DHnilreT.cjs +6 -0
  121. package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-rNiqr7aF.js} +43 -43
  122. package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-DPn3qgdB.js} +78 -78
  123. package/dist/vue-ui-strip-plot-DlRej1u9.cjs +1 -0
  124. package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BrZ__Cd2.js} +1 -1
  125. package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-DLcFdjyM.cjs} +1 -1
  126. package/dist/vue-ui-table-heatmap-DIkXPyqe.cjs +1 -0
  127. package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-DQXI2uPZ.js} +38 -38
  128. package/dist/vue-ui-table-sparkline-BUNsAEVY.js +647 -0
  129. package/dist/vue-ui-table-sparkline-BazGMr3R.cjs +1 -0
  130. package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-DMkD9fS8.js} +74 -74
  131. package/dist/vue-ui-thermometer-_gbnwB1j.cjs +1 -0
  132. package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-BTfgxjIc.cjs} +1 -1
  133. package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-Dv-GSUf1.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-CEMrBJPF.js} +46 -46
  135. package/dist/vue-ui-tiremarks-Ct9y13Sl.cjs +1 -0
  136. package/dist/vue-ui-treemap-D7SBHWJ2.cjs +1 -0
  137. package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-D8AkLDqM.js} +91 -91
  138. package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BnhysoC9.js} +67 -67
  139. package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-_EQI8SXm.cjs} +2 -2
  140. package/dist/vue-ui-waffle-DOhi1BWD.cjs +1 -0
  141. package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-DfRmWfrG.js} +48 -48
  142. package/dist/vue-ui-wheel-BbDtndmW.cjs +1 -0
  143. package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-CU6-VBD1.js} +36 -36
  144. package/dist/vue-ui-word-cloud-CRarnngT.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-CbuHwEkP.js} +66 -66
  146. package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-BRTegbdr.cjs} +1 -1
  147. package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-DsTqLLWp.js} +53 -53
  148. package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-hn3ncIFk.cjs} +2 -2
  149. package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-pSvq591u.js} +14 -14
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
  152. package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
  153. package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
  154. package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
  155. package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
  156. package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
  157. package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
  158. package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
  159. package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
  160. package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
  161. package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
  162. package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
  163. package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
  164. package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
  165. package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
  166. package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
  167. package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
  168. package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
  169. package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
  170. package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
  171. package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
  172. package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
  173. package/dist/vue-ui-table-sparkline-YV8DUOqh.js +0 -600
  174. package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
  175. package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
  176. package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
  177. package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
  178. package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
  179. package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-C3wsuQ2C.cjs"),Y=require("./useNestedProp-CFwQtnNB.cjs"),de=require("./vue-ui-sparkline-Du8Hm28x.cjs"),x=require("./BaseIcon-DGRZS55E.cjs"),D=require("./usePrinter-Dglf1bsw.cjs"),ce=require("./useUserOptionState-BgepsfED.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],me={style:{"z-index":"1","padding-right":"24px"}},fe={key:0,style:{display:"flex",flexDirection:"row",alignItems:"center"}},ye={key:0,style:{display:"flex",flexDirection:"row",alignItems:"center"}},ge=["onClick"],be=["onClick"],ke=["data-cell"],he=["data-cell","onPointerenter"],Se=["data-cell"],Ce=["data-cell"],_e=["data-cell"],xe=["data-cell"],we={key:1,ref:"source",dir:"auto"},Ne={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Z,{expose:ee}){const y=Z;e.useCssVars(l=>({"3c9bf2d3":l.tdo}));const{vue_ui_table_sparkline:te}=u.useConfig(),w=e.ref(u.createUid()),$=e.ref(0),N=e.ref(0),z=e.ref(null),t=e.computed({get:()=>T(),set:l=>l}),{userOptionsVisible:V,setUserOptionsVisibility:P,keepUserOptionState:F}=ce.useUserOptionState({config:t.value});function T(){const l=Y.useNestedProp({userConfig:y.config,defaultConfig:te});return l.theme?{...Y.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||y.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>y.config,l=>{t.value=T(),V.value=!t.value.showOnChartHover,q(),N.value+=1},{deep:!0}),e.watch(()=>y.dataset,l=>{c.value=h.value,N.value+=1},{deep:!0});const{isPrinting:M,isImaging:W,generatePdf:L,generateImage:U}=D.usePrinter({elementId:`table_${w.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),le=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),C=e.ref(null),B=e.ref(!1),ae=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{q()});const E=e.ref(t.value.colNames);function q(){u.objectIsEmpty(y.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(o=>{o.forEach(a=>{B.value=a.contentRect.width<ae.value})});C.value&&l.observe(C.value),E.value=[];for(let o=0;o<H.value;o+=1)E.value.push(t.value.colNames[o]||`col ${o}`)}const G=e.computed(()=>(y.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:o})})}),y.dataset.map((l,o)=>{const a=(l.values||[]).map(d=>isNaN(d)?0:d??0),n=a.reduce((d,i)=>d+i,0),s=n/a.length,r=u.calcMedian(a);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||le.value[o]||u.palette[o]||u.palette[o%u.palette.length],sum:n,average:s,median:r,sparklineDataset:a.map((d,i)=>({period:t.value.colNames[i]||`col ${i}`,value:d||0}))}})));function oe(l){const a=(l[0].values||[]).map((s,r)=>l.map(d=>d.values[r]||[])).map(s=>s.map((r,d)=>[r,d]).sort((r,d)=>d[0]-r[0]).map(r=>r[1]));return l.map((s,r)=>({...s,values:s.values||[],orders:a[r]}))}const h=e.computed(()=>oe(G.value)),c=e.ref(h.value),ne=e.computed(()=>Math.max(...c.value.map(l=>(l.values||[]).length))),I=e.ref(void 0),A=e.ref(!1),v=e.ref(void 0),R=e.ref(1);function k(){A.value=!1,v.value=void 0,p.value=void 0,R.value=1,S.value.forEach(l=>l.state=1),g.value={name:1,sum:1,average:1,median:1},c.value=h.value}function _(l,o,a){if(["name","sum","average","median"].includes(l.type)){re(l.type,o,a);return}if(!J(o))return;if(b.value=o,p.value=void 0,![null,void 0].includes(v.value)&&o!==v.value&&(v.value=void 0,k()),S.value[o].state===a&&v.value===o){v.value=void 0,k();return}A.value=!0,v.value=o;const n=h.value.map(i=>i.values[o]||[]),s=a;S.value[o].state=s,R.value=s,o===I.value?I.value=void 0:I.value=o;const d=n.map((i,m)=>[m,i]).sort((i,m)=>s*(m[1]-i[1])).map(i=>i[0]).map(i=>h.value[i]);c.value=d,N.value+=1}const H=e.computed(()=>Math.max(...y.dataset.map(l=>(l.values||[]).length))),f=e.computed(()=>{let l=E.value.map(a=>({type:"reg",value:a}));if(!l.length)for(let a=0;a<H.value;a+=1)l.push({type:"reg",value:`col ${a+1}`});t.value.showTotal&&(l=[...l,{type:"sum",value:t.value.translations.total}]);let o;return t.value.showAverage&&t.value.showMedian?o=[...l,{type:"average",value:t.value.translations.average},{type:"median",value:t.value.translations.median}]:t.value.showAverage&&!t.value.showMedian?o=[...l,{type:"average",value:t.value.translations.average}]:!t.value.showAverage&&t.value.showMedian?o=[...l,{type:"median",value:t.value.translations.median}]:o=l,t.value.showSparklines?[...o,{type:"chart",value:t.value.translations.chart}]:o}),g=e.ref({name:1,sum:1,average:1,median:1}),p=e.ref(void 0);function re(l,o,a){if(!c.value||c.value.length===0||!K(l))return;if(p.value!==l&&(p.value=void 0),![null,void 0].includes(v.value)&&o!==v.value&&k(),v.value=void 0,g.value[l]===a&&p.value){p.value=void 0,k();return}p.value=l,A.value=!0,g.value[l]=a,[null,void 0].includes(o)||(S.value[o].state=g.value[l]);const n=g.value[l],s=[...c.value].sort((r,d)=>{const i=r[l]??(typeof r[l]=="number"?0:""),m=d[l]??(typeof d[l]=="number"?0:"");return typeof i=="string"&&typeof m=="string"?n===-1?i.localeCompare(m):m.localeCompare(i):typeof i=="number"&&typeof m=="number"?n===-1?i-m:m-i:0});c.value=s}const b=e.ref(void 0),O=e.ref(void 0);function ue({dataIndex:l,serieIndex:o}){b.value=l,O.value=o,z.value[l]&&!B.value&&z.value[l].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}const X=e.ref(!1);function se(l){X.value=l,$.value+=1}function j(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(f.value),o=G.value.map((s,r)=>[[s.name],s.values,[s.sum],[s.average],[s.median]]),a=[l].concat(o),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}function J(l){return t.value.sortedDataColumnIndices.includes(l)}function K(l){return l.type==="name"||l==="name"?t.value.sortedSeriesName:l.type==="sum"||l==="sum"?t.value.sortedSum:l.type==="average"||l==="average"?t.value.sortedAverage:l.type==="median"||l==="median"?t.value.sortedMedian:!1}function Q(l,o,a){return["sum","average","median"].includes(o.type)?p.value===o.type&&g.value[o.type]===a?1:.3:l===v.value&&S.value[l].state===a?1:.3}function ie(){t.value.resetSortOnClickOutside&&k()}const S=e.computed({get:()=>f.value.map(l=>({state:1})),set:l=>l});return ee({generatePdf:L,generateImage:U,generateCsv:j,restoreOrder:k}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:C,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${w.value}`,onMouseenter:o[3]||(o[3]=()=>e.unref(P)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(P)(!1))},[t.value.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-table-sparkline-caption",style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:o[2]||(o[2]=a=>{O.value=void 0,b.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[e.createElementVNode("thead",me,[e.withDirectives((e.openBlock(),e.createElementBlock("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},[e.createElementVNode("div",{style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"3px",justifyContent:t.value.thead.textAlign})},[e.createElementVNode("span",null,e.toDisplayString(t.value.translations.serie),1),c.value.length>1&&t.value.sortedSeriesName?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",onClick:o[0]||(o[0]=a=>_({type:"name"},null,-1))},[e.createVNode(x.default,{size:12,name:"arrowBottom",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:p.value==="name"&&g.value.name===-1?1:.3})},null,8,["stroke","style"])]),e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",onClick:o[1]||(o[1]=a=>_({type:"name"},null,1))},[e.createVNode(x.default,{size:12,name:"arrowTop",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:p.value==="name"&&g.value.name===1?1:.3})},null,8,["stroke","style"])])])):e.createCommentVNode("",!0)],4)],4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,border:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===f.value.length-1?`${t.value.sparkline.dimensions.width}px`:"48px",paddingRight:n===f.value.length-1&&t.value.userOptions.show?"36px":""}),class:e.normalizeClass({"sticky-col":n===f.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",{style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"3px",justifyContent:t.value.thead.textAlign})},[e.createElementVNode("span",null,e.toDisplayString(a.value),1),c.value.length>1&&(J(n)||K(a))?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down",onClick:()=>_(a,n,-1)},[e.createVNode(x.default,{size:12,name:"arrowBottom",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:Q(n,a,-1)})},null,8,["stroke","style"])],8,ge),e.createElementVNode("button",{class:"vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up",onClick:()=>_(a,n,1)},[e.createVNode(x.default,{size:12,name:"arrowTop",stroke:t.value.thead.color,style:e.normalizeStyle({opacity:Q(n,a,1)})},null,8,["stroke","style"])],8,be)])):e.createCommentVNode("",!0)],4),t.value.userOptions.show&&n===f.value.length-1&&(e.unref(F)||e.unref(V))?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(M),isImaging:e.unref(W),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:X.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,onToggleFullscreen:se,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(U),onGenerateCsv:j,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(V)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:s,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:s,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0)],6))),256))],4)),[[e.unref(D.vClickOutside),ie]])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",{dir:"auto",style:e.normalizeStyle({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",justifyContent:t.value.tbody.textAlign})},[t.value.tbody.showColorMarker?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle({color:a.color})},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)],4)],12,ke),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,(s,r)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",ref_for:!0,ref_key:"TD",ref:z,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,background:b.value!==void 0&&r===b.value?t.value.tbody.selectedColor.useSerieColor?`${a.color.length>7?a.color.slice(0,-2):a.color}33`:t.value.tbody.selectedColor.fallback:""}),"data-cell":f.value[r]?f.value[r].value:"",class:"vue-ui-data-table__tbody__td",onPointerenter:d=>{O.value=n,b.value=r}},e.toDisplayString([null,void 0].includes(a.values[r])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[r]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[r]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:r})),45,he))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,Se)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,Ce)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,_e)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({border:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:t.value.tbody.backgroundColor,padding:"0"}),class:"vue-ui-data-table__tbody__td sticky-col"},[e.createVNode(de.default,{onHoverIndex:({index:s})=>ue({dataIndex:s,serieIndex:n}),"height-ratio":t.value.sparkline.dimensions.heightRatio,"forced-padding":30,dataset:a.sparklineDataset,showInfo:!1,selectedIndex:b.value,config:{type:t.value.sparkline.type,style:{backgroundColor:"transparent",animation:{show:t.value.sparkline.animation.show&&!e.unref(M)&&!e.unref(W),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","height-ratio","dataset","selectedIndex","config"])],12,xe)):e.createCommentVNode("",!0)],6))),256))])],4)],32),l.$slots.source?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],42,pe))}},ze=ve._export_sfc(Ne,[["__scopeId","data-v-507d259d"]]);exports.default=ze;
@@ -1,11 +1,11 @@
1
- import { useCssVars as me, computed as d, onMounted as ke, ref as g, watch as be, openBlock as l, createElementBlock as u, normalizeClass as P, normalizeStyle as ee, unref as c, createBlock as F, createCommentVNode as i, createSlots as xe, withCtx as I, renderSlot as p, normalizeProps as V, guardReactiveProps as G, createVNode as _e, createElementVNode as v, Fragment as O, renderList as te, toDisplayString as we } from "vue";
2
- import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Ie, a as Oe, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-BbPeL8Gp.js";
3
- import { _ as Se } from "./Title-aSAft5dl.js";
4
- import { u as Te, U as qe } from "./usePrinter-DaybDVqP.js";
5
- import Le from "./vue-ui-skeleton-Bniq21d9.js";
6
- import { u as oe } from "./useNestedProp-BN8claGG.js";
7
- import { _ as Ve } from "./PackageVersion-CxJghxYD.js";
8
- import { P as Ge } from "./PenAndPaper-ZdZEumki.js";
1
+ import { useCssVars as me, computed as d, onMounted as ke, ref as g, watch as be, openBlock as l, createElementBlock as n, normalizeClass as P, normalizeStyle as ee, unref as c, createBlock as F, createCommentVNode as i, createSlots as xe, withCtx as I, renderSlot as p, normalizeProps as G, guardReactiveProps as W, createVNode as _e, createElementVNode as v, Fragment as O, renderList as te, toDisplayString as we } from "vue";
2
+ import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Ie, a as Oe, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-DhxnZ6ZS.js";
3
+ import { _ as Se } from "./Title-DLo3Zo2_.js";
4
+ import { u as Te, U as qe } from "./usePrinter-mDGfOQZA.js";
5
+ import Le from "./vue-ui-skeleton-pdtGfiV6.js";
6
+ import { u as oe } from "./useNestedProp-BcqToEU0.js";
7
+ import { _ as Ve } from "./PackageVersion-Ve0s76sL.js";
8
+ import { P as Ge } from "./PenAndPaper-IHG7xTmx.js";
9
9
  import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const ze = ["id"], Be = {
@@ -19,7 +19,7 @@ const ze = ["id"], Be = {
19
19
  }, De = ["xmlns", "viewBox"], He = {
20
20
  id: "vueUiPill",
21
21
  clipPathUnits: "objectBoundingBox"
22
- }, Xe = ["fill"], Re = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = { "clip-path": "url(#vueUiPill)" }, et = ["x", "y", "height", "width"], tt = ["x", "y", "height", "width", "fill"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x", "y", "height", "width"], ht = ["y", "x", "fill", "font-size", "font-weight"], dt = {
22
+ }, Xe = ["fill"], Re = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = { "clip-path": "url(#vueUiPill)" }, et = ["x", "y", "height", "width"], tt = ["x", "y", "height", "width", "fill"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x", "y", "height", "width"], ht = ["y", "x", "fill", "font-size", "font-weight"], dt = {
23
23
  key: 5,
24
24
  class: "vue-data-ui-watermark"
25
25
  }, vt = {
@@ -45,15 +45,15 @@ const ze = ["id"], Be = {
45
45
  setup(_, { expose: ae }) {
46
46
  const a = _;
47
47
  me((s) => ({
48
- "5c9ace98": he.value,
49
- "23608cf6": ce.value,
50
- "1b0e313a": ie.value
48
+ "47ac6abe": he.value,
49
+ cafb14e0: ce.value,
50
+ "02502e7d": ie.value
51
51
  }));
52
52
  const { vue_ui_thermometer: le } = Ce(), M = d(() => !!a.dataset && Object.keys(a.dataset).length);
53
53
  ke(() => {
54
- W();
54
+ E();
55
55
  });
56
- function W() {
56
+ function E() {
57
57
  $e(a.dataset) ? se({
58
58
  componentName: "VueUiThermometer",
59
59
  type: "dataset"
@@ -68,10 +68,10 @@ const ze = ["id"], Be = {
68
68
  });
69
69
  });
70
70
  }
71
- const m = g(Fe()), U = g(null), E = g(0), z = g(0), e = d({
71
+ const m = g(Fe()), U = g(null), z = g(0), B = g(0), e = d({
72
72
  get: () => H(),
73
73
  set: (s) => s
74
- }), { userOptionsVisible: B, setUserOptionsVisibility: j, keepUserOptionState: D } = We({ config: e.value });
74
+ }), { userOptionsVisible: Y, setUserOptionsVisibility: j, keepUserOptionState: D } = We({ config: e.value });
75
75
  function H() {
76
76
  const s = oe({
77
77
  userConfig: a.config,
@@ -86,24 +86,24 @@ const ze = ["id"], Be = {
86
86
  } : s;
87
87
  }
88
88
  be(() => a.config, (s) => {
89
- e.value = H(), W(), z.value += 1;
89
+ e.value = H(), Y.value = !e.value.showOnChartHover, E(), B.value += 1;
90
90
  }, { deep: !0 });
91
91
  const { isPrinting: X, isImaging: R, generatePdf: J, generateImage: K } = Te({
92
92
  elementId: `thermometer__${m.value}`,
93
93
  fileName: e.value.style.title.text || "vue-ui-thermometer"
94
- }), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)), ne = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), h = g({
94
+ }), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), h = g({
95
95
  top: e.value.style.chart.padding.top,
96
96
  left: e.value.style.chart.padding.left,
97
97
  right: e.value.style.chart.padding.right,
98
98
  bottom: e.value.style.chart.padding.bottom
99
99
  });
100
100
  function C(s, r, t) {
101
- const n = [], q = Q(s), L = Q(r);
101
+ const u = [], L = Q(s), V = Q(r);
102
102
  for (let b = 0; b < t; b++) {
103
- const ye = Y(q.red, L.red, b, t), fe = Y(q.green, L.green, b, t), ge = Y(q.blue, L.blue, b, t), pe = `#${N(ye)}${N(fe)}${N(ge)}`;
104
- n.push(pe);
103
+ const ye = N(L.red, V.red, b, t), fe = N(L.green, V.green, b, t), ge = N(L.blue, V.blue, b, t), pe = `#${S(ye)}${S(fe)}${S(ge)}`;
104
+ u.push(pe);
105
105
  }
106
- return n;
106
+ return u;
107
107
  }
108
108
  function Q(s) {
109
109
  const r = s.slice(1);
@@ -113,14 +113,14 @@ const ze = ["id"], Be = {
113
113
  blue: parseInt(r.slice(4, 6), 16)
114
114
  };
115
115
  }
116
- function Y(s, r, t, n) {
117
- return Math.round(s + (r - s) * t / n);
116
+ function N(s, r, t, u) {
117
+ return Math.round(s + (r - s) * t / u);
118
118
  }
119
- function N(s) {
119
+ function S(s) {
120
120
  return s.toString(16).padStart(2, "0");
121
121
  }
122
122
  const o = d(() => {
123
- const s = ne.value + h.value.left + h.value.right, r = e.value.style.chart.height;
123
+ const s = ue.value + h.value.left + h.value.right, r = e.value.style.chart.height;
124
124
  return {
125
125
  width: s,
126
126
  left: h.value.left,
@@ -129,11 +129,11 @@ const ze = ["id"], Be = {
129
129
  bottom: r - h.value.bottom,
130
130
  height: r
131
131
  };
132
- }), ue = d(() => o.value), S = d(() => {
132
+ }), ne = d(() => o.value), T = d(() => {
133
133
  const s = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), r = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
134
134
  let t = 0;
135
135
  return f(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
136
- }), ie = d(() => `${S.value}px`), ce = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), he = d(() => `${e.value.style.chart.animation.speedMs}ms`), de = d(() => {
136
+ }), ie = d(() => `${T.value}px`), ce = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), he = d(() => `${e.value.style.chart.animation.speedMs}ms`), de = d(() => {
137
137
  if (a.dataset.colors) {
138
138
  if (!a.dataset.colors.from)
139
139
  return C(w.value[0] || x[0], A(a.dataset.colors.to), y.value || 10);
@@ -146,30 +146,30 @@ const ze = ["id"], Be = {
146
146
  const s = [];
147
147
  let r = 0;
148
148
  const t = o.value.height - h.value.top - h.value.bottom;
149
- for (let n = 0; n < t - 1; n += t / y.value)
149
+ for (let u = 0; u < t - 1; u += t / y.value)
150
150
  s.push({
151
151
  x: o.value.left,
152
- y: o.value.top + n,
153
- qYLess: o.value.top + n + t / y.value / 4,
154
- halfY: o.value.top + n + t / y.value / 2,
155
- qYMore: o.value.top + n + t / y.value / 4 * 3,
152
+ y: o.value.top + u,
153
+ qYLess: o.value.top + u + t / y.value / 4,
154
+ halfY: o.value.top + u + t / y.value / 2,
155
+ qYMore: o.value.top + u + t / y.value / 4 * 3,
156
156
  color: de.value[r],
157
157
  height: t / y.value
158
158
  }), r += 1;
159
159
  return s;
160
160
  }), k = g(!1);
161
161
  function ve(s) {
162
- k.value = s, E.value += 1;
162
+ k.value = s, z.value += 1;
163
163
  }
164
164
  const $ = g(!1);
165
- function T() {
165
+ function q() {
166
166
  $.value = !$.value;
167
167
  }
168
168
  return ae({
169
169
  generatePdf: J,
170
170
  generateImage: K,
171
- toggleAnnotator: T
172
- }), (s, r) => (l(), u("div", {
171
+ toggleAnnotator: q
172
+ }), (s, r) => (l(), n("div", {
173
173
  ref_key: "thermoChart",
174
174
  ref: U,
175
175
  class: P(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
@@ -184,12 +184,12 @@ const ze = ["id"], Be = {
184
184
  backgroundColor: e.value.style.chart.backgroundColor,
185
185
  color: e.value.style.chart.color,
186
186
  active: $.value,
187
- onClose: T
187
+ onClose: q
188
188
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
189
- re.value ? (l(), u("div", Be, null, 512)) : i("", !0),
190
- e.value.style.title.text ? (l(), u("div", je, [
189
+ re.value ? (l(), n("div", Be, null, 512)) : i("", !0),
190
+ e.value.style.title.text ? (l(), n("div", je, [
191
191
  (l(), F(Se, {
192
- key: `title_${z.value}`,
192
+ key: `title_${B.value}`,
193
193
  config: {
194
194
  title: {
195
195
  cy: "thermometer-div-title",
@@ -202,9 +202,9 @@ const ze = ["id"], Be = {
202
202
  }
203
203
  }, null, 8, ["config"]))
204
204
  ])) : i("", !0),
205
- e.value.userOptions.show && M.value && (c(D) || c(B)) ? (l(), F(qe, {
205
+ e.value.userOptions.show && M.value && (c(D) || c(Y)) ? (l(), F(qe, {
206
206
  ref: "details",
207
- key: `user_options_${E.value}`,
207
+ key: `user_options_${z.value}`,
208
208
  backgroundColor: e.value.style.chart.backgroundColor,
209
209
  color: e.value.style.chart.color,
210
210
  isImaging: c(R),
@@ -223,9 +223,9 @@ const ze = ["id"], Be = {
223
223
  onToggleFullscreen: ve,
224
224
  onGeneratePdf: c(J),
225
225
  onGenerateImage: c(K),
226
- onToggleAnnotator: T,
226
+ onToggleAnnotator: q,
227
227
  style: ee({
228
- visibility: c(D) ? c(B) ? "visible" : "hidden" : "visible"
228
+ visibility: c(D) ? c(Y) ? "visible" : "hidden" : "visible"
229
229
  })
230
230
  }, xe({ _: 2 }, [
231
231
  s.$slots.optionPdf ? {
@@ -244,20 +244,20 @@ const ze = ["id"], Be = {
244
244
  } : void 0,
245
245
  s.$slots.optionFullscreen ? {
246
246
  name: "optionFullscreen",
247
- fn: I(({ toggleFullscreen: t, isFullscreen: n }) => [
248
- p(s.$slots, "optionFullscreen", V(G({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
247
+ fn: I(({ toggleFullscreen: t, isFullscreen: u }) => [
248
+ p(s.$slots, "optionFullscreen", G(W({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
249
249
  ]),
250
250
  key: "2"
251
251
  } : void 0,
252
252
  s.$slots.optionAnnotator ? {
253
253
  name: "optionAnnotator",
254
- fn: I(({ toggleAnnotator: t, isAnnotator: n }) => [
255
- p(s.$slots, "optionAnnotator", V(G({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
254
+ fn: I(({ toggleAnnotator: t, isAnnotator: u }) => [
255
+ p(s.$slots, "optionAnnotator", G(W({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
256
256
  ]),
257
257
  key: "3"
258
258
  } : void 0
259
259
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
260
- M.value ? (l(), u("svg", {
260
+ M.value ? (l(), n("svg", {
261
261
  key: 4,
262
262
  xmlns: c(Me),
263
263
  class: P({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
@@ -278,8 +278,8 @@ const ze = ["id"], Be = {
278
278
  fill: e.value.style.chart.backgroundColor
279
279
  }, null, 8, Xe)
280
280
  ]),
281
- (l(!0), u(O, null, te(Z.value, (t, n) => (l(), u("linearGradient", {
282
- id: `vueUiThermometerGradient_${n}_${m.value}`,
281
+ (l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("linearGradient", {
282
+ id: `vueUiThermometerGradient_${u}_${m.value}`,
283
283
  x1: "0%",
284
284
  y1: "0%",
285
285
  x2: "100%",
@@ -307,18 +307,18 @@ const ze = ["id"], Be = {
307
307
  width: o.value.width - h.value.left - h.value.right,
308
308
  fill: "#FFFFFF"
309
309
  }, null, 8, et),
310
- (l(!0), u(O, null, te(Z.value, (t, n) => (l(), u("g", {
311
- key: `graduation_${n}`
310
+ (l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("g", {
311
+ key: `graduation_${u}`
312
312
  }, [
313
313
  v("rect", {
314
314
  x: t.x,
315
315
  y: t.y,
316
316
  height: t.height,
317
317
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
318
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
318
+ fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${m.value})` : t.color,
319
319
  "shape-rendering": "crispEdges"
320
320
  }, null, 8, tt),
321
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
321
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
322
322
  key: 0,
323
323
  x1: t.x,
324
324
  x2: t.x + 10,
@@ -328,8 +328,8 @@ const ze = ["id"], Be = {
328
328
  stroke: e.value.style.chart.graduations.stroke,
329
329
  "stroke-linecap": "round"
330
330
  }, null, 8, st)) : i("", !0),
331
- e.value.style.chart.graduations.showIntermediate ? (l(), u(O, { key: 1 }, [
332
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
331
+ e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 1 }, [
332
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
333
333
  key: 0,
334
334
  x1: t.x,
335
335
  x2: t.x + 5,
@@ -339,7 +339,7 @@ const ze = ["id"], Be = {
339
339
  stroke: e.value.style.chart.graduations.stroke,
340
340
  "stroke-linecap": "round"
341
341
  }, null, 8, ot)) : i("", !0),
342
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
342
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
343
343
  key: 1,
344
344
  x1: t.x,
345
345
  x2: t.x + 2.5,
@@ -349,7 +349,7 @@ const ze = ["id"], Be = {
349
349
  stroke: e.value.style.chart.graduations.stroke,
350
350
  "stroke-linecap": "round"
351
351
  }, null, 8, at)) : i("", !0),
352
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
352
+ e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
353
353
  key: 2,
354
354
  x1: t.x,
355
355
  x2: t.x + 2.5,
@@ -360,7 +360,7 @@ const ze = ["id"], Be = {
360
360
  "stroke-linecap": "round"
361
361
  }, null, 8, lt)) : i("", !0)
362
362
  ], 64)) : i("", !0),
363
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
363
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
364
364
  key: 2,
365
365
  x1: o.value.right,
366
366
  x2: o.value.right - 10,
@@ -370,8 +370,8 @@ const ze = ["id"], Be = {
370
370
  stroke: e.value.style.chart.graduations.stroke,
371
371
  "stroke-linecap": "round"
372
372
  }, null, 8, rt)) : i("", !0),
373
- e.value.style.chart.graduations.showIntermediate ? (l(), u(O, { key: 3 }, [
374
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
373
+ e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 3 }, [
374
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
375
375
  key: 0,
376
376
  x1: o.value.right,
377
377
  x2: o.value.right - 5,
@@ -380,8 +380,8 @@ const ze = ["id"], Be = {
380
380
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
381
381
  stroke: e.value.style.chart.graduations.stroke,
382
382
  "stroke-linecap": "round"
383
- }, null, 8, nt)) : i("", !0),
384
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
383
+ }, null, 8, ut)) : i("", !0),
384
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
385
385
  key: 1,
386
386
  x1: o.value.right,
387
387
  x2: o.value.right - 2.5,
@@ -390,8 +390,8 @@ const ze = ["id"], Be = {
390
390
  "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
391
391
  stroke: e.value.style.chart.graduations.stroke,
392
392
  "stroke-linecap": "round"
393
- }, null, 8, ut)) : i("", !0),
394
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
393
+ }, null, 8, nt)) : i("", !0),
394
+ e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
395
395
  key: 2,
396
396
  x1: o.value.right,
397
397
  x2: o.value.right - 2.5,
@@ -407,14 +407,14 @@ const ze = ["id"], Be = {
407
407
  class: P({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
408
408
  x: o.value.left,
409
409
  y: o.value.top,
410
- height: S.value,
410
+ height: T.value,
411
411
  width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
412
412
  fill: "#FFFFFF66"
413
413
  }, null, 10, ct)
414
414
  ]),
415
415
  v("text", {
416
416
  class: P({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
417
- y: S.value + o.value.top + e.value.style.chart.label.fontSize / 3,
417
+ y: T.value + o.value.top + e.value.style.chart.label.fontSize / 3,
418
418
  x: o.value.left - 10,
419
419
  "text-anchor": "end",
420
420
  fill: e.value.style.chart.label.color,
@@ -431,12 +431,12 @@ const ze = ["id"], Be = {
431
431
  }),
432
432
  { datapoint: _.dataset }
433
433
  )), 11, ht),
434
- p(s.$slots, "svg", { svg: ue.value }, void 0, !0)
434
+ p(s.$slots, "svg", { svg: ne.value }, void 0, !0)
435
435
  ], 10, De)) : i("", !0),
436
- s.$slots.watermark ? (l(), u("div", dt, [
437
- p(s.$slots, "watermark", V(G({ isPrinting: c(X) || c(R) })), void 0, !0)
436
+ s.$slots.watermark ? (l(), n("div", dt, [
437
+ p(s.$slots, "watermark", G(W({ isPrinting: c(X) || c(R) })), void 0, !0)
438
438
  ])) : i("", !0),
439
- s.$slots.source ? (l(), u("div", vt, [
439
+ s.$slots.source ? (l(), n("div", vt, [
440
440
  p(s.$slots, "source", {}, void 0, !0)
441
441
  ], 512)) : i("", !0),
442
442
  M.value ? i("", !0) : (l(), F(Le, {
@@ -453,7 +453,7 @@ const ze = ["id"], Be = {
453
453
  }, null, 8, ["config"]))
454
454
  ], 46, ze));
455
455
  }
456
- }, $t = /* @__PURE__ */ Ee(yt, [["__scopeId", "data-v-a31437af"]]);
456
+ }, $t = /* @__PURE__ */ Ee(yt, [["__scopeId", "data-v-90584bea"]]);
457
457
  export {
458
458
  $t as default
459
459
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-C3wsuQ2C.cjs"),te=require("./Title-CSyDhu3S.cjs"),U=require("./usePrinter-Dglf1bsw.cjs"),oe=require("./vue-ui-skeleton-99lBQ_mF.cjs"),Y=require("./useNestedProp-CFwQtnNB.cjs"),le=require("./PackageVersion-CeJ2R9gK.cjs"),re=require("./PenAndPaper-DQPbe0G_.cjs"),ae=require("./useUserOptionState-BgepsfED.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],ue={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ie={key:2,style:"width:100%"},ce=["xmlns","viewBox"],de={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},he=["fill"],ve=["id"],me=["stop-color"],pe=["stop-color"],ye=["stop-color"],fe={"clip-path":"url(#vueUiPill)"},ke=["x","y","height","width"],ge=["x","y","height","width","fill"],be=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],Ce=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],we=["x1","x2","y1","y2","stroke-width","stroke"],Ne=["x1","x2","y1","y2","stroke-width","stroke"],Be=["x1","x2","y1","y2","stroke-width","stroke"],Ve=["x1","x2","y1","y2","stroke-width","stroke"],Pe=["x","y","height","width"],Ee=["y","x","fill","font-size","font-weight"],$e={key:5,class:"vue-data-ui-watermark"},Fe={key:6,ref:"source",dir:"auto"},Oe={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:z}){const s=m;e.useCssVars(l=>({"47ac6abe":R.value,cafb14e0:D.value,"02502e7d":j.value}));const{vue_ui_thermometer:L}=r.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{V()});function V(){r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiThermometer",type:"dataset"}):r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(l=>{r.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:l})})}const d=e.ref(r.createUid()),g=e.ref(null),P=e.ref(0),E=e.ref(0),t=e.computed({get:()=>O(),set:l=>l}),{userOptionsVisible:b,setUserOptionsVisibility:$,keepUserOptionState:F}=ae.useUserOptionState({config:t.value});function O(){const l=Y.useNestedProp({userConfig:s.config,defaultConfig:L});return l.theme?{...Y.useNestedProp({userConfig:r.themes.vue_ui_thermometer[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>s.config,l=>{t.value=O(),b.value=!t.value.showOnChartHover,V(),E.value+=1},{deep:!0});const{isPrinting:S,isImaging:I,generatePdf:q,generateImage:A}=U.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),G=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),H=e.computed(()=>t.value.style.chart.thermometer.width),c=e.computed(()=>s.dataset.steps||10),i=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(l,n,o){const u=[],N=T(l),B=T(n);for(let v=0;v<o;v++){const K=x(N.red,B.red,v,o),Q=x(N.green,B.green,v,o),Z=x(N.blue,B.blue,v,o),ee=`#${C(K)}${C(Q)}${C(Z)}`;u.push(ee)}return u}function T(l){const n=l.slice(1);return{red:parseInt(n.slice(0,2),16),green:parseInt(n.slice(2,4),16),blue:parseInt(n.slice(4,6),16)}}function x(l,n,o,u){return Math.round(l+(n-l)*o/u)}function C(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=H.value+i.value.left+i.value.right,n=t.value.style.chart.height;return{width:l,left:i.value.left,right:l-i.value.right,top:i.value.top,bottom:n-i.value.bottom,height:n}}),W=e.computed(()=>a.value),_=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),n=r.checkNaN(s.dataset.to)<0?Math.abs(r.checkNaN(s.dataset.to)):r.checkNaN(s.dataset.to);let o=0;return r.checkNaN(s.dataset.to)>0?o=l+n:l>n?o=l-n:o=n-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-i.value.top-i.value.bottom)}),j=e.computed(()=>`${_.value}px`),D=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-i.value.top}px`),R=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),X=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),c.value||10);if(!s.dataset.colors.to)return y(r.convertColorToHex(s.dataset.colors.from),p.value[1]||r.palette[1],c.value||10)}else return y(p.value[1]||r.palette[1],p.value[0]||r.palette[0],c.value||10);return y(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),c.value||10)}),M=e.computed(()=>{const l=[];let n=0;const o=a.value.height-i.value.top-i.value.bottom;for(let u=0;u<o-1;u+=o/c.value)l.push({x:a.value.left,y:a.value.top+u,qYLess:a.value.top+u+o/c.value/4,halfY:a.value.top+u+o/c.value/2,qYMore:a.value.top+u+o/c.value/4*3,color:X.value[n],height:o/c.value}),n+=1;return l}),h=e.ref(!1);function J(l){h.value=l,P.value+=1}const f=e.ref(!1);function w(){f.value=!f.value}return z({generatePdf:q,generateImage:A,toggleAnnotator:w}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:g,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref($)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref($)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(re.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:w},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),G.value?(e.openBlock(),e.createElementBlock("div",ue,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(te._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&k.value&&(e.unref(F)||e.unref(b))?(e.openBlock(),e.createBlock(U.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(I),isPrinting:e.unref(S),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:J,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(A),onToggleAnnotator:w,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(b)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${a.value.width} ${a.value.height}`,style:"background:transparent"},[e.createVNode(le._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",de,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,he)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(o,u)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${u}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,me),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,pe),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ye)],8,ve))),256))]),e.createElementVNode("g",fe,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-i.value.top-i.value.bottom,width:a.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,ke),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(o,u)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${u}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${u}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,ge),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,be)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,xe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ce)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,_e)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,we)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.value.right,x2:a.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ne)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:a.value.left,y:a.value.top,height:_.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,Pe)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:_.value+a.value.top+t.value.style.chart.label.fontSize/3,x:a.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(r.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Ee),e.renderSlot(l.$slots,"svg",{svg:W.value},void 0,!0)],10,ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ne))}},Se=se._export_sfc(Oe,[["__scopeId","data-v-90584bea"]]);exports.default=Se;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-BphUExEh.cjs"),g=require("./index-DhDYBLBe.cjs"),$=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-BASl_NFX.cjs"),j=require("./Title-Bk_55doC.cjs"),q=require("./PackageVersion-Bj34UNnQ.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(T,v,y,E=!0,b=!0){this.interval=v,this.elapsed=0,this.isPaused=!1;const S=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-CFwQtnNB.cjs"),g=require("./index-C3wsuQ2C.cjs"),$=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-DGRZS55E.cjs"),j=require("./Title-CSyDhu3S.cjs"),q=require("./PackageVersion-CeJ2R9gK.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(T,v,y,E=!0,b=!0){this.interval=v,this.elapsed=0,this.isPaused=!1;const S=`
2
2
  let interval;
3
3
  let elapsed = 0;
4
4
  let paused = false;
@@ -1,10 +1,10 @@
1
1
  import { ref as n, onMounted as Q, onBeforeUnmount as Y, computed as z, watch as Z, openBlock as l, createElementBlock as r, normalizeStyle as f, createBlock as ee, createCommentVNode as v, unref as te, createVNode as M, createElementVNode as C, mergeProps as V, renderSlot as O, normalizeProps as U, guardReactiveProps as E, toDisplayString as ae } from "vue";
2
- import { u as se } from "./useNestedProp-BN8claGG.js";
3
- import { u as le, c as oe, X as re, F as W } from "./index-BbPeL8Gp.js";
2
+ import { u as se } from "./useNestedProp-BcqToEU0.js";
3
+ import { u as le, c as oe, X as re, F as W } from "./index-DhxnZ6ZS.js";
4
4
  import { t as ue, u as ie } from "./useResponsive-CoxXLe23.js";
5
- import P from "./BaseIcon-CmiukQBl.js";
6
- import { _ as ne } from "./Title-aSAft5dl.js";
7
- import { _ as ce } from "./PackageVersion-CxJghxYD.js";
5
+ import P from "./BaseIcon-CiQzR1fE.js";
6
+ import { _ as ne } from "./Title-DLo3Zo2_.js";
7
+ import { _ as ce } from "./PackageVersion-Ve0s76sL.js";
8
8
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  class he {
10
10
  constructor(A, k, T, H = !0, x = !0) {