vue-data-ui 2.6.4 → 2.6.5

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 (157) hide show
  1. package/dist/{Arrow-CJeP3IfV.cjs → Arrow-CyeGXbbD.cjs} +1 -1
  2. package/dist/{Arrow-BNRsG_PK.js → Arrow-DfGZcZu4.js} +1 -1
  3. package/dist/{BaseIcon-BOR1UXkg.cjs → BaseIcon-B5DvqSYe.cjs} +1 -1
  4. package/dist/{BaseIcon-DAD8bWYx.js → BaseIcon-BzuvxztF.js} +1 -1
  5. package/dist/{DataTable-Bg0b_pVK.js → DataTable-BCCBpyhr.js} +2 -2
  6. package/dist/{DataTable-C1LMti1U.cjs → DataTable-zpYtivMM.cjs} +1 -1
  7. package/dist/{Legend-CMzKRWtT.cjs → Legend-CJkkmRNE.cjs} +1 -1
  8. package/dist/{Legend-Ba6qRAqc.js → Legend-CyJrN721.js} +2 -2
  9. package/dist/{PackageVersion-2gojTmrp.cjs → PackageVersion-Dv25_ZxF.cjs} +1 -1
  10. package/dist/{PackageVersion-C5hOoj_p.js → PackageVersion-PZr4BkQ5.js} +1 -1
  11. package/dist/{PenAndPaper-BJLUyj-s.js → PenAndPaper-Cniu2YEX.js} +3 -3
  12. package/dist/{PenAndPaper-Bwxr_PKm.cjs → PenAndPaper-Cx3_Liuv.cjs} +1 -1
  13. package/dist/{Shape-BXfC7I_g.js → Shape-BXTmpde5.js} +1 -1
  14. package/dist/{Shape-DTKetM4N.cjs → Shape-GAZUIBfN.cjs} +1 -1
  15. package/dist/{Slicer-bCt9Cx4y.js → Slicer-D3tEQT9Z.js} +2 -2
  16. package/dist/{Slicer-Park25Rm.cjs → Slicer-DzKrIvL0.cjs} +1 -1
  17. package/dist/{Title-AFFkNb_h.js → Title-CXBc1TH6.js} +1 -1
  18. package/dist/{Title-vXH_7MPz.cjs → Title-DdUtciJN.cjs} +1 -1
  19. package/dist/{Tooltip-C7eukp_Y.cjs → Tooltip-BlGVq6xj.cjs} +1 -1
  20. package/dist/{Tooltip-C6qF6AOJ.js → Tooltip-C9lPh5bN.js} +1 -1
  21. package/dist/{index-y7ebFPbO.js → index-DLCyjPV0.js} +7 -7
  22. package/dist/index-DSGAenF3.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-BzGIy5aD.cjs → useNestedProp-BdTohsDJ.cjs} +1 -1
  25. package/dist/{useNestedProp-BWzyGJZ8.js → useNestedProp-q86V3_LA.js} +1 -1
  26. package/dist/{usePrinter-DY6H-UkT.cjs → usePrinter-CPqTP09H.cjs} +1 -1
  27. package/dist/{usePrinter-xz0bcBPM.js → usePrinter-CpHZjw3G.js} +1 -1
  28. package/dist/{vue-data-ui-DI586Tl5.cjs → vue-data-ui-CR9Dof80.cjs} +1 -1
  29. package/dist/{vue-data-ui-lvrlgytd.js → vue-data-ui-CzqznXmA.js} +61 -61
  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-7ciIKlHS.js → vue-ui-3d-bar-DvHdA_uo.js} +9 -9
  33. package/dist/{vue-ui-3d-bar-BZgGJ_4E.cjs → vue-ui-3d-bar-vvpkf_bv.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-DxSGI7GJ.js → vue-ui-accordion-DR2qjfsa.js} +3 -3
  35. package/dist/{vue-ui-accordion-D3UeWj9q.cjs → vue-ui-accordion-FM16tlk7.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-D8CKdfwE.js → vue-ui-age-pyramid-BoXxK9_W.js} +10 -10
  37. package/dist/{vue-ui-age-pyramid-C-3bEzow.cjs → vue-ui-age-pyramid-CMMnrI3R.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-B4_flLm1.cjs → vue-ui-annotator-5tI8NuFh.cjs} +1 -1
  39. package/dist/{vue-ui-annotator-Cu9TPyUl.js → vue-ui-annotator-D4kCCpAK.js} +1 -1
  40. package/dist/{vue-ui-bullet-BEssjqEW.js → vue-ui-bullet-X3Xa_OZ6.js} +8 -8
  41. package/dist/{vue-ui-bullet-CS48Jn1m.cjs → vue-ui-bullet-nXPlud-q.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-B85sWqPO.cjs → vue-ui-candlestick-B6T0LhEG.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-DW7NHW5L.js → vue-ui-candlestick-BTW5toA5.js} +11 -11
  44. package/dist/{vue-ui-carousel-table--yu4e9Dn.cjs → vue-ui-carousel-table-Cmnwv9Y3.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-BDgIKnZ6.js → vue-ui-carousel-table-D7s_SrJR.js} +4 -4
  46. package/dist/{vue-ui-chestnut-CohERgOT.cjs → vue-ui-chestnut-D8Gq_i77.cjs} +1 -1
  47. package/dist/{vue-ui-chestnut-wiZb3STX.js → vue-ui-chestnut-DN9EZShg.js} +8 -8
  48. package/dist/{vue-ui-circle-pack-D0DnGODv.cjs → vue-ui-circle-pack-DCz3OWlu.cjs} +1 -1
  49. package/dist/{vue-ui-circle-pack-CCbFwcZq.js → vue-ui-circle-pack-ts3rurGX.js} +9 -9
  50. package/dist/{vue-ui-cursor-Br93sq6V.cjs → vue-ui-cursor-CpWkrHpR.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-DqFQ-PMZ.js → vue-ui-cursor-SW96fYT3.js} +2 -2
  52. package/dist/{vue-ui-dashboard-lSSaetgV.js → vue-ui-dashboard-BZcfgajg.js} +2 -2
  53. package/dist/{vue-ui-dashboard-BwnE3PnW.cjs → vue-ui-dashboard-Buh9xBz-.cjs} +1 -1
  54. package/dist/{vue-ui-digits-BbKoWo0v.js → vue-ui-digits-C00yOT24.js} +2 -2
  55. package/dist/{vue-ui-digits-DyMxtXim.cjs → vue-ui-digits-rB78vJRR.cjs} +1 -1
  56. package/dist/{vue-ui-donut-BPY9X0nr.js → vue-ui-donut-BkGR2Q-_.js} +13 -14
  57. package/dist/{vue-ui-donut-BFdOEkVv.cjs → vue-ui-donut-BpgK-I9o.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-WWwGlSFZ.js → vue-ui-donut-evolution-B7WrjiTO.js} +12 -12
  59. package/dist/{vue-ui-donut-evolution-572FJh5z.cjs → vue-ui-donut-evolution-BVJCDPQ2.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-CTCUgGKD.cjs → vue-ui-dumbbell-DRcemHVG.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-otpZLJRb.js → vue-ui-dumbbell-gQadUH53.js} +10 -10
  62. package/dist/{vue-ui-flow-Dr2lzUkJ.js → vue-ui-flow-CqSTZbgP.js} +9 -9
  63. package/dist/{vue-ui-flow-BcqEMc_I.cjs → vue-ui-flow-DdQsK5DR.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-D3WFS9UV.cjs → vue-ui-funnel-Bq4yoTfd.cjs} +1 -1
  65. package/dist/{vue-ui-funnel-DhAgAXS7.js → vue-ui-funnel-Jr9TMTsq.js} +9 -9
  66. package/dist/{vue-ui-galaxy-Com-d71M.js → vue-ui-galaxy-BrQ10tPo.js} +11 -11
  67. package/dist/{vue-ui-galaxy-wA-JkujS.cjs → vue-ui-galaxy-ia1UNlpc.cjs} +1 -1
  68. package/dist/{vue-ui-gauge-DseS2Wjw.cjs → vue-ui-gauge-C3FbYOSi.cjs} +1 -1
  69. package/dist/{vue-ui-gauge-D5cWSaYs.js → vue-ui-gauge-DOMio6Mv.js} +8 -8
  70. package/dist/{vue-ui-gizmo-C4hyVlqo.cjs → vue-ui-gizmo-C3NimqVM.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-D7Y4R-bm.js → vue-ui-gizmo-SKS1idHb.js} +3 -3
  72. package/dist/{vue-ui-heatmap-rlqRMQeh.cjs → vue-ui-heatmap-BCau2Z3U.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-B60uAj5d.js → vue-ui-heatmap-l4vCjb6f.js} +13 -13
  74. package/dist/{vue-ui-history-plot-CmOEQx8n.js → vue-ui-history-plot-B05tJML1.js} +11 -11
  75. package/dist/{vue-ui-history-plot-CC4-ii7H.cjs → vue-ui-history-plot-DL7VjOd0.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-B9SmpjuD.js → vue-ui-kpi-DF4U5E1w.js} +3 -3
  77. package/dist/{vue-ui-kpi-uxIO9tVc.cjs → vue-ui-kpi-DQJr571M.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-Bpp9yfiB.js → vue-ui-mini-loader-BMARnOW4.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-B8n-qGUz.cjs → vue-ui-mini-loader-BZkVKkqn.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-D5DCX4SJ.cjs → vue-ui-molecule-B5XDGmLx.cjs} +1 -1
  81. package/dist/{vue-ui-molecule-9de6y3_R.js → vue-ui-molecule-C1ycekVJ.js} +11 -11
  82. package/dist/{vue-ui-mood-radar-uHW_8xE-.cjs → vue-ui-mood-radar-DyMCJKFb.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-D2pdih9T.js → vue-ui-mood-radar-_Kd-Lhpm.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-BCtAAmdG.cjs → vue-ui-nested-donuts-B4Am-r6T.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-wLxqfAFm.js → vue-ui-nested-donuts-DIwRSn-O.js} +11 -11
  86. package/dist/{vue-ui-onion-Vz2j7gWm.js → vue-ui-onion-Dqb0gwGl.js} +11 -11
  87. package/dist/{vue-ui-onion-CK_xa2M4.cjs → vue-ui-onion-YeBdJrdx.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CZRX2Hss.cjs → vue-ui-parallel-coordinate-plot-CoecETlm.cjs} +1 -1
  89. package/dist/{vue-ui-parallel-coordinate-plot-BQdLDI5B.js → vue-ui-parallel-coordinate-plot-De-tYNNy.js} +12 -12
  90. package/dist/{vue-ui-quadrant-iPPHj_cd.js → vue-ui-quadrant-BQ5maxJq.js} +15 -15
  91. package/dist/{vue-ui-quadrant-CalJqNte.cjs → vue-ui-quadrant-Btzq3qNJ.cjs} +1 -1
  92. package/dist/{vue-ui-quick-chart-CFUOFUU_.cjs → vue-ui-quick-chart-5cWjffLJ.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-CV1VBbY1.js → vue-ui-quick-chart-DF_510YT.js} +9 -9
  94. package/dist/{vue-ui-radar-DsialWJl.js → vue-ui-radar-DDHd0AYs.js} +13 -15
  95. package/dist/{vue-ui-radar-B2gn7R-V.cjs → vue-ui-radar-t22bqFiQ.cjs} +1 -1
  96. package/dist/{vue-ui-rating-4gM1AlYy.js → vue-ui-rating-Chi3OOtp.js} +2 -2
  97. package/dist/{vue-ui-rating-B3W6ZWnp.cjs → vue-ui-rating-D9kQcY2a.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-D6ZiupHh.js → vue-ui-relation-circle-CV1xQOok.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-YEAFQh-9.cjs → vue-ui-relation-circle-CWgGPxDJ.cjs} +1 -1
  100. package/dist/{vue-ui-rings-B9BPvha3.cjs → vue-ui-rings-CiLJkRwa.cjs} +2 -2
  101. package/dist/{vue-ui-rings-CbIo_ZYH.js → vue-ui-rings-D2ezwyae.js} +13 -14
  102. package/dist/{vue-ui-scatter-BqSstAAz.cjs → vue-ui-scatter-B24gGA8q.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-CQ-Vdmeu.js → vue-ui-scatter-BxbUYPk1.js} +13 -13
  104. package/dist/{vue-ui-screenshot-0RZZXp_S.cjs → vue-ui-screenshot-Bc7Lv1i8.cjs} +1 -1
  105. package/dist/{vue-ui-screenshot-BEV-kvIS.js → vue-ui-screenshot-cxDgcXJB.js} +1 -1
  106. package/dist/{vue-ui-skeleton-DOahsJXV.js → vue-ui-skeleton-D6ojufhb.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DkW8eWHI.cjs → vue-ui-skeleton-DvdPnQbR.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-DY8lN1W3.js → vue-ui-smiley-9nGRDSn7.js} +2 -2
  109. package/dist/{vue-ui-smiley-B9xk5OKe.cjs → vue-ui-smiley-DEJ6S-We.cjs} +1 -1
  110. package/dist/{vue-ui-spark-trend-CGoCmXa9.cjs → vue-ui-spark-trend-BosbwgVe.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-XDdEKIe6.js → vue-ui-spark-trend-DiNeAGXR.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-QikBTVyy.cjs → vue-ui-sparkbar-DGFKrcg0.cjs} +1 -1
  113. package/dist/{vue-ui-sparkbar-CGpwWIBE.js → vue-ui-sparkbar-DNf_Majv.js} +4 -4
  114. package/dist/{vue-ui-sparkgauge-CeNuuLof.js → vue-ui-sparkgauge-D89HjxSK.js} +4 -4
  115. package/dist/{vue-ui-sparkgauge-ZDhKN9Pz.cjs → vue-ui-sparkgauge-DwK7dzdJ.cjs} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-DLEumotF.js → vue-ui-sparkhistogram-CU1_P6AJ.js} +21 -21
  117. package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +1 -0
  118. package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +1 -0
  119. package/dist/{vue-ui-sparkline-b9FXu2wY.js → vue-ui-sparkline-C2McLmh5.js} +136 -140
  120. package/dist/{vue-ui-sparkstackbar-CQFec5Ni.js → vue-ui-sparkstackbar-Cu4aG9PB.js} +8 -6
  121. package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +1 -0
  122. package/dist/{vue-ui-stackbar-B50_Zmpe.js → vue-ui-stackbar-6m5CpvNM.js} +13 -13
  123. package/dist/{vue-ui-stackbar-B24Xho-6.cjs → vue-ui-stackbar-C21xTVy9.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-DzTWLY9k.cjs → vue-ui-strip-plot-DAo8FMup.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-DBEKI4DJ.js → vue-ui-strip-plot-DlZ2Eez4.js} +11 -11
  126. package/dist/{vue-ui-table-DeQeB-f6.cjs → vue-ui-table-BjhcV9qB.cjs} +1 -1
  127. package/dist/{vue-ui-table-CiJBrzOj.js → vue-ui-table-U0_3I0fu.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-DQMdZaE0.cjs → vue-ui-table-heatmap-Bfqytiv5.cjs} +1 -1
  129. package/dist/{vue-ui-table-heatmap-CjnQNUKw.js → vue-ui-table-heatmap-BrGkCaOG.js} +4 -4
  130. package/dist/{vue-ui-table-sparkline-DqBjtjvu.js → vue-ui-table-sparkline-C1wNBDqO.js} +5 -5
  131. package/dist/{vue-ui-table-sparkline-Bu6vSST9.cjs → vue-ui-table-sparkline-CXlnp8E3.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-DQr-b2tS.js → vue-ui-thermometer-Bx2abW1B.js} +11 -11
  133. package/dist/vue-ui-thermometer-CBdAwYdC.cjs +1 -0
  134. package/dist/{vue-ui-timer-lsgsV998.js → vue-ui-timer-3UkgrtEj.js} +5 -5
  135. package/dist/{vue-ui-timer-B18HFp7S.cjs → vue-ui-timer-CRDQbqJ_.cjs} +1 -1
  136. package/dist/{vue-ui-tiremarks-D1A57_oK.cjs → vue-ui-tiremarks-C78mfaBr.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-C7Dw9KnQ.js → vue-ui-tiremarks-C_xuD4De.js} +7 -7
  138. package/dist/{vue-ui-treemap-qSvP_IHI.js → vue-ui-treemap-BjDSR72h.js} +11 -11
  139. package/dist/{vue-ui-treemap-DurUVYzG.cjs → vue-ui-treemap-CP__1pdb.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-C-liaL8N.cjs → vue-ui-vertical-bar-DTB8r4LH.cjs} +2 -2
  141. package/dist/{vue-ui-vertical-bar-D9eDAZF3.js → vue-ui-vertical-bar-DUhOoSNl.js} +15 -16
  142. package/dist/{vue-ui-waffle-CaGazi4R.cjs → vue-ui-waffle-CrVyCF7k.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-CFzcClhK.js → vue-ui-waffle-Dpox5n5s.js} +13 -13
  144. package/dist/{vue-ui-wheel-CIHLvNK5.cjs → vue-ui-wheel-DV2zgr4d.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-tsJlAaV1.js → vue-ui-wheel-ykD8OULJ.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-BxEfdctG.cjs → vue-ui-word-cloud-DBkAo2uX.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-CelTdM-N.js → vue-ui-word-cloud-u5S86-Ft.js} +10 -10
  148. package/dist/{vue-ui-xy-CaEGEO6l.js → vue-ui-xy-0nBQDwL2.js} +15 -16
  149. package/dist/{vue-ui-xy-canvas-DBWb4s2q.js → vue-ui-xy-canvas-DI7LiD4U.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-CrU_aS7K.cjs → vue-ui-xy-canvas-yQlThVu7.cjs} +1 -1
  151. package/dist/{vue-ui-xy-BMTIOJmU.cjs → vue-ui-xy-mEVVQr_U.cjs} +2 -2
  152. package/package.json +1 -1
  153. package/dist/index-Cww7pocd.cjs +0 -9
  154. package/dist/vue-ui-sparkhistogram-BN2N7qor.cjs +0 -1
  155. package/dist/vue-ui-sparkline-BmaYIS-1.cjs +0 -1
  156. package/dist/vue-ui-sparkstackbar-hxwlugf0.cjs +0 -1
  157. package/dist/vue-ui-thermometer-DCv2Gvg0.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DSGAenF3.cjs"),P=require("./useNestedProp-BdTohsDJ.cjs"),G=require("./vue-ui-skeleton-DvdPnQbR.cjs"),z=require("./useResponsive-YQYQrAZ_.cjs"),R=require("./PackageVersion-Dv25_ZxF.cjs"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=["id"],X=["xmlns","viewBox"],Z=["width","height"],Y=["id"],J=["stop-color"],K=["stop-color"],Q=["id"],ee=["stop-color"],te=["stop-color"],le=["id"],ae=["stop-color"],oe=["stop-color"],ne={key:1},re=["d","fill"],ue=["d","fill"],se=["d","stroke","stroke-width"],ie=["d","stroke","stroke-width"],de=["x","y","width","height","fill","rx"],ce=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ve=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],he=["cx","cy","r","fill","stroke","stroke-width"],ye=["x","y","font-size","font-weight","fill"],fe=["x","y","height","width","onMouseenter","onClick"],pe={__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0},heightRatio:{type:Number,default:1},forcedPadding:{type:Number,default:30}},emits:["hoverIndex","selectDatapoint"],setup(p,{emit:A}){const{vue_ui_sparkline:D}=n.useConfig(),s=p,b=e.computed(()=>Array.isArray(s.dataset)&&s.dataset.length>0),v=e.ref(n.createUid()),x=e.ref(null),V=e.ref(null),C=e.ref(null),t=e.computed({get:()=>L(),set:l=>l});function L(){const l=P.useNestedProp({userConfig:s.config,defaultConfig:D});let o={};return l.theme?o={...P.useNestedProp({userConfig:n.themes.vue_ui_sparkline[l.theme]||s.config,defaultConfig:l})}:o=l,s.config&&n.hasDeepProperty(s.config,"style.scaleMin")?o.style.scaleMin=s.config.style.scaleMin:o.style.scaleMin=null,s.config&&n.hasDeepProperty(s.config,"style.scaleMax")?o.style.scaleMax=s.config.style.scaleMax:o.style.scaleMax=null,o}const _=e.computed(()=>n.largestTriangleThreeBucketsArrayObjects({data:s.dataset,threshold:t.value.downsample.threshold}));e.watch(()=>s.config,l=>{t.value=L(),$(),r.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>s.dataset,l=>{y.value=n.largestTriangleThreeBucketsArrayObjects({data:s.dataset.map(o=>({...o,value:[void 0].includes(o.value)?null:o.value})),threshold:t.value.downsample.threshold})},{deep:!0});const y=e.ref(O());function O(){return n.largestTriangleThreeBucketsArrayObjects({data:s.dataset.map(l=>t.value.style.animation.show&&s.dataset.length>1?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value}),threshold:t.value.downsample.threshold})}const E=e.ref(null);e.onMounted(()=>{if($(),t.value.style.animation.show&&s.dataset.length>1){let a=function(){o<_.value.length?(y.value.push(_.value[o]),setTimeout(()=>{requestAnimationFrame(a)},l)):y.value=_.value,o+=1};y.value=[];const l=t.value.style.animation.animationFrames/s.dataset.length;let o=0;a()}});function $(){if(n.objectIsEmpty(s.dataset)?n.error({componentName:"VueUiSparkline",type:"dataset"}):s.dataset.forEach((l,o)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{n.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=z.throttle(()=>{const{width:o,height:a}=z.useResponsive({chart:x.value,title:t.value.style.title.show&&s.showInfo?V.value:null,source:C.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,r.value.chartWidth=t.value.style.chartWidth/500*o,r.value.padding=s.forcedPadding/500*o})});E.value=new ResizeObserver(l),E.value.observe(x.value.parentNode)}}const r=e.ref({height:80*s.heightRatio,width:500,chartWidth:t.value.style.chartWidth,padding:s.forcedPadding}),w=A,u=e.computed(()=>{const{top:l,right:o,bottom:a,left:i}=t.value.style.padding;return{top:l,left:i,right:r.value.width-o,bottom:r.value.height-a,start:s.showInfo&&t.value.style.dataLabel.show&&t.value.style.dataLabel.position==="left"?r.value.width-r.value.chartWidth+i:r.value.padding+i,width:s.showInfo&&t.value.style.dataLabel.show?r.value.chartWidth-i-o:r.value.width-r.value.padding-i-o,height:r.value.height-l-a}}),N=e.computed(()=>[null,void 0].includes(t.value.style.scaleMin)?Math.min(...y.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0)):t.value.style.scaleMin),T=e.computed(()=>[null,void 0].includes(t.value.style.scaleMax)?Math.max(...y.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0)):t.value.style.scaleMax),g=e.computed(()=>{const l=N.value>=0?0:N.value;return Math.abs(l)}),M=e.computed(()=>T.value+g.value),m=e.computed(()=>u.value.bottom-u.value.height*B(g.value));function B(l){return isNaN(l/M.value)?0:l/M.value}const f=e.computed(()=>_.value.length-1),d=e.computed(()=>y.value.map((l,o)=>{const a=isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0,i=u.value.width/(f.value+1)>r.padding?r.padding:u.value.width/(f.value+1);return{absoluteValue:a,period:l.period,plotValue:a+g.value,toMax:B(a+g.value),x:u.value.start+o*(i>u.value.width/12?u.value.width/12:i),y:u.value.bottom-u.value.height*B(a+g.value),id:`plot_${v.value}_${o}`,color:k.value?t.value.style.bar.color:t.value.style.area.useGradient?n.shiftHue(t.value.style.line.color,.05*(1-o/f.value)):t.value.style.line.color,width:i>u.value.width/12?u.value.width/12:i}})),W=e.computed(()=>{const l={x:d.value[0].x||0,y:(r.value.height||0)-6},o={x:d.value[d.value.length-1].x||0,y:(r.value.height||0)-6},a=[];return d.value.forEach(i=>{a.push(`${i.x||0},${i.y||0} `)}),[l.x,l.y,...a,o.x,o.y].toString()}),c=e.ref(void 0);function F(l,o){c.value=l,w("hoverIndex",{index:o})}function q(){c.value=void 0,w("hoverIndex",{index:void 0})}const h=e.computed(()=>{if(b.value){const l=d.value.map(a=>a.absoluteValue),o=l.reduce((a,i)=>a+i,0);return{latest:d.value[d.value.length-1].absoluteValue,sum:o,average:o/d.value.length,median:n.calcMedian(l),trend:n.calcLinearProgression(d.value.map(({x:a,y:i,absoluteValue:S})=>({x:a,y:i,value:S}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),I=e.computed(()=>b.value?t.value.style.dataLabel.valueType==="latest"?h.value.latest:t.value.style.dataLabel.valueType==="sum"?h.value.sum:t.value.style.dataLabel.valueType==="average"?h.value.average:0:0),k=e.computed(()=>t.value.type&&t.value.type==="bar");function j(l,o){w("selectDatapoint",{datapoint:l,index:o})}return(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:x,class:"vue-ui-sparkline",id:v.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};`)},[e.renderSlot(l.$slots,"before",e.normalizeProps(e.guardReactiveProps({selected:c.value,latest:h.value.latest,sum:h.value.sum,average:h.value.average,median:h.value.median,trend:h.value.trend})),void 0,!0),t.value.style.title.show&&p.showInfo?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:V,class:"vue-ui-sparkline-title",style:e.normalizeStyle(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign==="left"?"flex-start":t.value.style.title.textAlign==="right"?"flex-end":"center"};height:${t.value.style.title.fontSize*2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold?"bold":"normal"};`)},[e.createElementVNode("span",{style:e.normalizeStyle(`padding:${t.value.style.title.textAlign==="left"?"0 0 0 12px":t.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},e.toDisplayString(c.value?c.value.period:t.value.style.title.text),5)],4)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor};overflow:visible`)},[e.createVNode(R._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Z)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(t.value.style.area.color,.05),t.value.style.area.opacity)},null,8,J),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,K)],8,Y),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.bar.color},null,8,ee),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.shiftHue)(t.value.style.bar.color,.05)},null,8,te)],8,Q),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(t.value.style.bar.color,.05)},null,8,ae),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,oe)],8,le)]),t.value.style.area.show&&!k.value&&d.value[0]?(e.openBlock(),e.createElementBlock("g",ne,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${d.value[0].x},${u.value.bottom} ${e.unref(n.createSmoothPath)(d.value)} L ${d.value.at(-1).x},${u.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(n.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,re)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${W.value}Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:e.unref(n.setOpacity)(t.value.style.area.color,t.value.style.area.opacity)},null,8,ue))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${e.unref(n.createSmoothPath)(d.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,se)):e.createCommentVNode("",!0),!t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${e.unref(n.createStraightPath)(d.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,ie)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("g",null,[k.value?(e.openBlock(),e.createElementBlock("rect",{key:0,x:a.x-a.width/2,y:isNaN(a.absoluteValue>0?a.y:m.value)?0:a.absoluteValue>0?a.y:m.value,width:a.width,height:isNaN(Math.abs(a.y-m.value))?0:Math.abs(a.y-m.value),fill:a.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${v.value})`:`url(#sparkline_bar_gradient_neg_${v.value})`,rx:t.value.style.bar.borderRadius},null,8,de)):e.createCommentVNode("",!0),t.value.style.verticalIndicator.show&&(c.value&&a.id===c.value.id||p.selectedIndex===i)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.x,x2:a.x,y1:u.value.top-6,y2:u.value.bottom,stroke:t.value.style.verticalIndicator.color||a.color,"stroke-width":t.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.verticalIndicator.strokeDasharray||0},null,8,ce)):e.createCommentVNode("",!0)]))),256)),N.value<0?(e.openBlock(),e.createElementBlock("line",{key:4,x1:u.value.start,x2:u.value.start+u.value.width-16,y1:e.unref(n.forceValidValue)(m.value,u.value.bottom),y2:e.unref(n.forceValidValue)(m.value,u.value.bottom),stroke:t.value.style.zeroLine.color,"stroke-dasharray":t.value.style.zeroLine.strokeWidth*2,"stroke-width":t.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),t.value.style.plot.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("g",null,[c.value&&a.id===c.value.id||p.selectedIndex===i||p.dataset.length===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:a.x,cy:a.y,r:t.value.style.plot.radius,fill:a.color,stroke:t.value.style.plot.stroke,"stroke-width":t.value.style.plot.strokeWidth},null,8,he)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),p.showInfo&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:6,x:t.value.style.dataLabel.position==="left"?12+t.value.style.dataLabel.offsetX:u.value.width+12+t.value.style.dataLabel.offsetX,y:r.value.height/2+t.value.style.dataLabel.fontSize/2.5+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,"font-weight":t.value.style.dataLabel.bold?"bold":"normal",fill:t.value.style.dataLabel.color},e.toDisplayString(c.value?e.unref(n.applyDataLabel)(t.value.style.dataLabel.formatter,c.value.absoluteValue,e.unref(n.dataLabel)({p:t.value.style.dataLabel.prefix,v:c.value.absoluteValue,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}),{datapoint:c.value}):e.unref(n.applyDataLabel)(t.value.style.dataLabel.formatter,I.value,e.unref(n.dataLabel)({p:t.value.style.dataLabel.prefix,v:I.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,ye)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,i)=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-(u.value.width/(f.value+1)>r.value.padding?r.value.padding:u.value.width/(f.value+1))/2,y:u.value.top-6,height:u.value.height+6,width:u.value.width/(f.value+1)>r.value.padding?r.value.padding:u.value.width/(f.value+1),fill:"transparent",onMouseenter:S=>F(a,i),onMouseleave:q,onClick:()=>j(a,i)},null,40,fe))),256)),e.renderSlot(l.$slots,"svg",{svg:r.value},void 0,!0)],12,X)):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"source",ref:C,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G.default,{key:3,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,U))}},me=H._export_sfc(pe,[["__scopeId","data-v-e25baba2"]]);exports.default=me;
@@ -1,11 +1,11 @@
1
- import { computed as c, ref as b, watch as U, onMounted as ie, createElementBlock as i, openBlock as r, normalizeStyle as C, renderSlot as M, createCommentVNode as h, createBlock as de, normalizeProps as ve, guardReactiveProps as ce, createElementVNode as f, toDisplayString as X, unref as v, createVNode as he, Fragment as D, renderList as P } from "vue";
2
- import { u as ye, c as fe, a as pe, C as q, a0 as T, o as ge, e as Z, g as me, w as I, a1 as be, a2 as ke, X as _e, s as V, S as H, a3 as Y, i as J, f as K } from "./index-y7ebFPbO.js";
3
- import { u as Q } from "./useNestedProp-BWzyGJZ8.js";
4
- import xe from "./vue-ui-skeleton-DOahsJXV.js";
5
- import { t as we, u as $e } from "./useResponsive-BWapHhVH.js";
6
- import { _ as Le } from "./PackageVersion-C5hOoj_p.js";
7
- import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["id"], Se = ["stop-color"], ze = ["stop-color"], Ae = ["id"], We = ["stop-color"], De = ["stop-color"], Pe = ["id"], Te = ["stop-color"], Fe = ["stop-color"], Oe = { key: 1 }, Be = ["d", "fill"], Ee = ["d", "fill"], Ge = ["d", "stroke", "stroke-width"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Re = ["x", "y", "width", "height", "fill", "rx"], Ue = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Xe = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], qe = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ze = ["x", "y", "font-size", "font-weight", "fill"], He = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ye = {
1
+ import { computed as c, ref as m, watch as X, onMounted as ie, createElementBlock as i, openBlock as r, normalizeStyle as M, renderSlot as C, createCommentVNode as h, createBlock as de, normalizeProps as ve, guardReactiveProps as ce, createElementVNode as f, toDisplayString as q, unref as v, createVNode as he, Fragment as D, renderList as P } from "vue";
2
+ import { u as ye, c as fe, a as pe, C as Z, a0 as T, o as ge, e as H, g as me, w as I, a1 as be, a2 as ke, X as _e, s as V, S as Y, R as we, a3 as J, i as K, f as Q } from "./index-DLCyjPV0.js";
3
+ import { u as ee } from "./useNestedProp-q86V3_LA.js";
4
+ import xe from "./vue-ui-skeleton-D6ojufhb.js";
5
+ import { t as $e, u as Ne } from "./useResponsive-BWapHhVH.js";
6
+ import { _ as Le } from "./PackageVersion-PZr4BkQ5.js";
7
+ import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ce = ["id"], Ie = ["xmlns", "viewBox"], Ve = ["width", "height"], Se = ["id"], Ae = ["stop-color"], ze = ["stop-color"], We = ["id"], De = ["stop-color"], Pe = ["stop-color"], Te = ["id"], Fe = ["stop-color"], Oe = ["stop-color"], Be = { key: 1 }, Ee = ["d", "fill"], Ge = ["d", "fill"], Re = ["d", "stroke", "stroke-width"], je = ["d", "stroke", "stroke-width"], Ue = ["x", "y", "width", "height", "fill", "rx"], Xe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], qe = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ze = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], He = ["x", "y", "font-size", "font-weight", "fill"], Ye = ["x", "y", "height", "width", "onMouseenter", "onClick"], Je = {
9
9
  __name: "vue-ui-sparkline",
10
10
  props: {
11
11
  config: {
@@ -38,43 +38,43 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
38
38
  }
39
39
  },
40
40
  emits: ["hoverIndex", "selectDatapoint"],
41
- setup(_, { emit: ee }) {
42
- const { vue_ui_sparkline: te } = ye(), u = _, $ = c(() => !!u.dataset && u.dataset.length), p = b(fe()), S = b(null), F = b(null), O = b(null), e = c({
41
+ setup(_, { emit: te }) {
42
+ const { vue_ui_sparkline: ae } = ye(), o = _, N = c(() => Array.isArray(o.dataset) && o.dataset.length > 0), p = m(fe()), S = m(null), F = m(null), O = m(null), e = c({
43
43
  get: () => B(),
44
44
  set: (t) => t
45
45
  });
46
46
  function B() {
47
- const t = Q({
48
- userConfig: u.config,
49
- defaultConfig: te
47
+ const t = ee({
48
+ userConfig: o.config,
49
+ defaultConfig: ae
50
50
  });
51
51
  let l = {};
52
52
  return t.theme ? l = {
53
- ...Q({
54
- userConfig: pe.vue_ui_sparkline[t.theme] || u.config,
53
+ ...ee({
54
+ userConfig: pe.vue_ui_sparkline[t.theme] || o.config,
55
55
  defaultConfig: t
56
56
  })
57
- } : l = t, u.config && q(u.config, "style.scaleMin") ? l.style.scaleMin = u.config.style.scaleMin : l.style.scaleMin = null, u.config && q(u.config, "style.scaleMax") ? l.style.scaleMax = u.config.style.scaleMax : l.style.scaleMax = null, l;
57
+ } : l = t, o.config && Z(o.config, "style.scaleMin") ? l.style.scaleMin = o.config.style.scaleMin : l.style.scaleMin = null, o.config && Z(o.config, "style.scaleMax") ? l.style.scaleMax = o.config.style.scaleMax : l.style.scaleMax = null, l;
58
58
  }
59
59
  const L = c(() => T({
60
- data: u.dataset,
60
+ data: o.dataset,
61
61
  threshold: e.value.downsample.threshold
62
62
  }));
63
- U(() => u.config, (t) => {
63
+ X(() => o.config, (t) => {
64
64
  e.value = B(), G(), s.value.chartWidth = e.value.style.chartWidth;
65
- }, { deep: !0 }), U(() => u.dataset, (t) => {
66
- k.value = T({
67
- data: u.dataset.map((l) => ({
65
+ }, { deep: !0 }), X(() => o.dataset, (t) => {
66
+ b.value = T({
67
+ data: o.dataset.map((l) => ({
68
68
  ...l,
69
69
  value: [void 0].includes(l.value) ? null : l.value
70
70
  })),
71
71
  threshold: e.value.downsample.threshold
72
72
  });
73
73
  }, { deep: !0 });
74
- const k = b(ae());
75
- function ae() {
74
+ const b = m(le());
75
+ function le() {
76
76
  return T({
77
- data: u.dataset.map((t) => e.value.style.animation.show ? {
77
+ data: o.dataset.map((t) => e.value.style.animation.show && o.dataset.length > 1 ? {
78
78
  ...t,
79
79
  value: null
80
80
  } : {
@@ -84,30 +84,30 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
84
84
  threshold: e.value.downsample.threshold
85
85
  });
86
86
  }
87
- const E = b(null);
87
+ const E = m(null);
88
88
  ie(() => {
89
- if (G(), e.value.style.animation.show && u.dataset.length > 1) {
89
+ if (G(), e.value.style.animation.show && o.dataset.length > 1) {
90
90
  let a = function() {
91
- l < L.value.length ? (k.value.push(L.value[l]), setTimeout(() => {
91
+ l < L.value.length ? (b.value.push(L.value[l]), setTimeout(() => {
92
92
  requestAnimationFrame(a);
93
- }, t)) : k.value = L.value, l += 1;
93
+ }, t)) : b.value = L.value, l += 1;
94
94
  };
95
- k.value = [];
96
- const t = e.value.style.animation.animationFrames / u.dataset.length;
95
+ b.value = [];
96
+ const t = e.value.style.animation.animationFrames / o.dataset.length;
97
97
  let l = 0;
98
98
  a();
99
99
  }
100
100
  });
101
101
  function G() {
102
- if (ge(u.dataset) ? Z({
102
+ if (ge(o.dataset) ? H({
103
103
  componentName: "VueUiSparkline",
104
104
  type: "dataset"
105
- }) : u.dataset.forEach((t, l) => {
105
+ }) : o.dataset.forEach((t, l) => {
106
106
  me({
107
107
  datasetObject: t,
108
108
  requiredAttributes: ["period", "value"]
109
109
  }).forEach((a) => {
110
- Z({
110
+ H({
111
111
  componentName: "VueUiSparkline",
112
112
  type: "datasetSerieAttribute",
113
113
  property: a,
@@ -115,79 +115,79 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
115
115
  });
116
116
  });
117
117
  }), e.value.responsive) {
118
- const t = we(() => {
119
- const { width: l, height: a } = $e({
118
+ const t = $e(() => {
119
+ const { width: l, height: a } = Ne({
120
120
  chart: S.value,
121
- title: e.value.style.title.show && u.showInfo ? F.value : null,
121
+ title: e.value.style.title.show && o.showInfo ? F.value : null,
122
122
  source: O.value
123
123
  });
124
124
  requestAnimationFrame(() => {
125
- s.value.width = l, s.value.height = a, s.value.chartWidth = e.value.style.chartWidth / 500 * l, s.value.padding = u.forcedPadding / 500 * l;
125
+ s.value.width = l, s.value.height = a, s.value.chartWidth = e.value.style.chartWidth / 500 * l, s.value.padding = o.forcedPadding / 500 * l;
126
126
  });
127
127
  });
128
128
  E.value = new ResizeObserver(t), E.value.observe(S.value.parentNode);
129
129
  }
130
130
  }
131
- const s = b({
132
- height: 80 * u.heightRatio,
131
+ const s = m({
132
+ height: 80 * o.heightRatio,
133
133
  width: 500,
134
134
  chartWidth: e.value.style.chartWidth,
135
- padding: u.forcedPadding
136
- }), z = ee, o = c(() => {
135
+ padding: o.forcedPadding
136
+ }), A = te, u = c(() => {
137
137
  const { top: t, right: l, bottom: a, left: n } = e.value.style.padding;
138
138
  return {
139
139
  top: t,
140
140
  left: n,
141
141
  right: s.value.width - l,
142
142
  bottom: s.value.height - a,
143
- start: u.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? s.value.width - s.value.chartWidth + n : s.value.padding + n,
144
- width: u.showInfo && e.value.style.dataLabel.show ? s.value.chartWidth - n - l : s.value.width - s.value.padding - n - l,
143
+ start: o.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? s.value.width - s.value.chartWidth + n : s.value.padding + n,
144
+ width: o.showInfo && e.value.style.dataLabel.show ? s.value.chartWidth - n - l : s.value.width - s.value.padding - n - l,
145
145
  height: s.value.height - t - a
146
146
  };
147
- }), A = c(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...k.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), le = c(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...k.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), x = c(() => {
148
- const t = A.value >= 0 ? 0 : A.value;
147
+ }), z = c(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), se = c(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...b.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), x = c(() => {
148
+ const t = z.value >= 0 ? 0 : z.value;
149
149
  return Math.abs(t);
150
- }), se = c(() => le.value + x.value), N = c(() => o.value.bottom - o.value.height * W(x.value));
150
+ }), R = c(() => se.value + x.value), w = c(() => u.value.bottom - u.value.height * W(x.value));
151
151
  function W(t) {
152
- return t / se.value;
152
+ return isNaN(t / R.value) ? 0 : t / R.value;
153
153
  }
154
- const g = c(() => L.value.length - 1), d = c(() => k.value.map((t, l) => {
155
- const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
154
+ const k = c(() => L.value.length - 1), d = c(() => b.value.map((t, l) => {
155
+ const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, n = u.value.width / (k.value + 1) > s.padding ? s.padding : u.value.width / (k.value + 1);
156
156
  return {
157
157
  absoluteValue: a,
158
158
  period: t.period,
159
159
  plotValue: a + x.value,
160
160
  toMax: W(a + x.value),
161
- x: o.value.start + l * (o.value.width / (g.value + 1) > s.padding ? s.padding : o.value.width / (g.value + 1)),
162
- y: o.value.bottom - o.value.height * W(a + x.value),
161
+ x: u.value.start + l * (n > u.value.width / 12 ? u.value.width / 12 : n),
162
+ y: u.value.bottom - u.value.height * W(a + x.value),
163
163
  id: `plot_${p.value}_${l}`,
164
- color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - l / g.value)) : e.value.style.line.color,
165
- width: o.value.width / (g.value + 1) > s.padding ? s.padding : o.value.width / (g.value + 1)
164
+ color: $.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - l / k.value)) : e.value.style.line.color,
165
+ width: n > u.value.width / 12 ? u.value.width / 12 : n
166
166
  };
167
167
  })), ue = c(() => {
168
168
  const t = { x: d.value[0].x || 0, y: (s.value.height || 0) - 6 }, l = { x: d.value[d.value.length - 1].x || 0, y: (s.value.height || 0) - 6 }, a = [];
169
169
  return d.value.forEach((n) => {
170
170
  a.push(`${n.x || 0},${n.y || 0} `);
171
171
  }), [t.x, t.y, ...a, l.x, l.y].toString();
172
- }), y = b(void 0);
172
+ }), y = m(void 0);
173
173
  function oe(t, l) {
174
- y.value = t, z("hoverIndex", { index: l });
174
+ y.value = t, A("hoverIndex", { index: l });
175
175
  }
176
176
  function ne() {
177
- y.value = void 0, z("hoverIndex", { index: void 0 });
177
+ y.value = void 0, A("hoverIndex", { index: void 0 });
178
178
  }
179
- const m = c(() => {
180
- if ($.value) {
179
+ const g = c(() => {
180
+ if (N.value) {
181
181
  const t = d.value.map((a) => a.absoluteValue), l = t.reduce((a, n) => a + n, 0);
182
182
  return {
183
183
  latest: d.value[d.value.length - 1].absoluteValue,
184
184
  sum: l,
185
185
  average: l / d.value.length,
186
186
  median: ke(t),
187
- trend: be(d.value.map(({ x: a, y: n, absoluteValue: R }) => ({
187
+ trend: be(d.value.map(({ x: a, y: n, absoluteValue: U }) => ({
188
188
  x: a,
189
189
  y: n,
190
- value: R
190
+ value: U
191
191
  }))).trend
192
192
  };
193
193
  } else
@@ -198,41 +198,41 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
198
198
  median: null,
199
199
  trend: null
200
200
  };
201
- }), j = c(() => $.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), w = c(() => e.value.type && e.value.type === "bar");
201
+ }), j = c(() => N.value ? e.value.style.dataLabel.valueType === "latest" ? g.value.latest : e.value.style.dataLabel.valueType === "sum" ? g.value.sum : e.value.style.dataLabel.valueType === "average" ? g.value.average : 0 : 0), $ = c(() => e.value.type && e.value.type === "bar");
202
202
  function re(t, l) {
203
- z("selectDatapoint", { datapoint: t, index: l });
203
+ A("selectDatapoint", { datapoint: t, index: l });
204
204
  }
205
205
  return (t, l) => (r(), i("div", {
206
206
  ref_key: "sparklineChart",
207
207
  ref: S,
208
208
  class: "vue-ui-sparkline",
209
209
  id: p.value,
210
- style: C(`width:100%;font-family:${e.value.style.fontFamily};`)
210
+ style: M(`width:100%;font-family:${e.value.style.fontFamily};`)
211
211
  }, [
212
- M(t.$slots, "before", ve(ce({
212
+ C(t.$slots, "before", ve(ce({
213
213
  selected: y.value,
214
- latest: m.value.latest,
215
- sum: m.value.sum,
216
- average: m.value.average,
217
- median: m.value.median,
218
- trend: m.value.trend
214
+ latest: g.value.latest,
215
+ sum: g.value.sum,
216
+ average: g.value.average,
217
+ median: g.value.median,
218
+ trend: g.value.trend
219
219
  })), void 0, !0),
220
220
  e.value.style.title.show && _.showInfo ? (r(), i("div", {
221
221
  key: 0,
222
222
  ref_key: "chartTitle",
223
223
  ref: F,
224
224
  class: "vue-ui-sparkline-title",
225
- style: C(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
225
+ style: M(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
226
226
  }, [
227
227
  f("span", {
228
- style: C(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
229
- }, X(y.value ? y.value.period : e.value.style.title.text), 5)
228
+ style: M(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
229
+ }, q(y.value ? y.value.period : e.value.style.title.text), 5)
230
230
  ], 4)) : h("", !0),
231
- $.value ? (r(), i("svg", {
231
+ N.value ? (r(), i("svg", {
232
232
  key: 1,
233
233
  xmlns: v(_e),
234
234
  viewBox: `0 0 ${s.value.width} ${s.value.height}`,
235
- style: C(`background:${e.value.style.backgroundColor};overflow:visible`)
235
+ style: M(`background:${e.value.style.backgroundColor};overflow:visible`)
236
236
  }, [
237
237
  he(Le),
238
238
  t.$slots["chart-background"] ? (r(), i("foreignObject", {
@@ -245,8 +245,8 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
245
245
  pointerEvents: "none"
246
246
  }
247
247
  }, [
248
- M(t.$slots, "chart-background", {}, void 0, !0)
249
- ], 8, Ie)) : h("", !0),
248
+ C(t.$slots, "chart-background", {}, void 0, !0)
249
+ ], 8, Ve)) : h("", !0),
250
250
  f("defs", null, [
251
251
  f("linearGradient", {
252
252
  x1: "0%",
@@ -258,12 +258,12 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
258
258
  f("stop", {
259
259
  offset: "0%",
260
260
  "stop-color": v(V)(v(I)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
261
- }, null, 8, Se),
261
+ }, null, 8, Ae),
262
262
  f("stop", {
263
263
  offset: "100%",
264
264
  "stop-color": v(V)(e.value.style.area.color, e.value.style.area.opacity)
265
265
  }, null, 8, ze)
266
- ], 8, Ve),
266
+ ], 8, Se),
267
267
  f("linearGradient", {
268
268
  x2: "0%",
269
269
  y2: "100%",
@@ -272,12 +272,12 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
272
272
  f("stop", {
273
273
  offset: "0%",
274
274
  "stop-color": e.value.style.bar.color
275
- }, null, 8, We),
275
+ }, null, 8, De),
276
276
  f("stop", {
277
277
  offset: "100%",
278
278
  "stop-color": v(I)(e.value.style.bar.color, 0.05)
279
- }, null, 8, De)
280
- ], 8, Ae),
279
+ }, null, 8, Pe)
280
+ ], 8, We),
281
281
  f("linearGradient", {
282
282
  x2: "0%",
283
283
  y2: "100%",
@@ -286,79 +286,75 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
286
286
  f("stop", {
287
287
  offset: "0%",
288
288
  "stop-color": v(I)(e.value.style.bar.color, 0.05)
289
- }, null, 8, Te),
289
+ }, null, 8, Fe),
290
290
  f("stop", {
291
291
  offset: "100%",
292
292
  "stop-color": e.value.style.bar.color
293
- }, null, 8, Fe)
294
- ], 8, Pe)
293
+ }, null, 8, Oe)
294
+ ], 8, Te)
295
295
  ]),
296
- e.value.style.area.show && !w.value && d.value[0] ? (r(), i("g", Oe, [
296
+ e.value.style.area.show && !$.value && d.value[0] ? (r(), i("g", Be, [
297
297
  e.value.style.line.smooth ? (r(), i("path", {
298
298
  key: 0,
299
- d: `M ${d.value[0].x},${o.value.bottom} ${v(H)(d.value)} L ${d.value.at(-1).x},${o.value.bottom} Z`,
299
+ d: `M ${d.value[0].x},${u.value.bottom} ${v(Y)(d.value)} L ${d.value.at(-1).x},${u.value.bottom} Z`,
300
300
  fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : v(V)(e.value.style.area.color, e.value.style.area.opacity)
301
- }, null, 8, Be)) : (r(), i("path", {
301
+ }, null, 8, Ee)) : (r(), i("path", {
302
302
  key: 1,
303
303
  d: `M${ue.value}Z`,
304
304
  fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : v(V)(e.value.style.area.color, e.value.style.area.opacity)
305
- }, null, 8, Ee))
305
+ }, null, 8, Ge))
306
306
  ])) : h("", !0),
307
- e.value.style.line.smooth && !w.value ? (r(), i("path", {
307
+ e.value.style.line.smooth && !$.value ? (r(), i("path", {
308
308
  key: 2,
309
- d: `M ${v(H)(d.value)}`,
309
+ d: `M ${v(Y)(d.value)}`,
310
310
  stroke: e.value.style.line.color,
311
311
  fill: "none",
312
312
  "stroke-width": e.value.style.line.strokeWidth,
313
313
  "stroke-linecap": "round"
314
- }, null, 8, Ge)) : h("", !0),
314
+ }, null, 8, Re)) : h("", !0),
315
+ !e.value.style.line.smooth && !$.value ? (r(), i("path", {
316
+ key: 3,
317
+ d: `M ${v(we)(d.value)}`,
318
+ stroke: e.value.style.line.color,
319
+ fill: "none",
320
+ "stroke-width": e.value.style.line.strokeWidth,
321
+ "stroke-linecap": "round"
322
+ }, null, 8, je)) : h("", !0),
315
323
  (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("g", null, [
316
- n < d.value.length - 1 && !e.value.style.line.smooth && !w.value ? (r(), i("line", {
324
+ $.value ? (r(), i("rect", {
317
325
  key: 0,
318
- x1: a.x,
319
- x2: d.value[n + 1].x,
320
- y1: a.y || 0,
321
- y2: d.value[n + 1].y || 0,
322
- stroke: a.color,
323
- "stroke-width": e.value.style.line.strokeWidth,
324
- "stroke-linecap": "round",
325
- "stroke-linejoin": "round",
326
- "shape-rendering": "geometricPrecision"
327
- }, null, 8, je)) : h("", !0),
328
- w.value ? (r(), i("rect", {
329
- key: 1,
330
326
  x: a.x - a.width / 2,
331
- y: a.absoluteValue > 0 ? a.y : N.value,
327
+ y: isNaN(a.absoluteValue > 0 ? a.y : w.value) ? 0 : a.absoluteValue > 0 ? a.y : w.value,
332
328
  width: a.width,
333
- height: Math.abs(a.y - N.value),
329
+ height: isNaN(Math.abs(a.y - w.value)) ? 0 : Math.abs(a.y - w.value),
334
330
  fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
335
331
  rx: e.value.style.bar.borderRadius
336
- }, null, 8, Re)) : h("", !0),
332
+ }, null, 8, Ue)) : h("", !0),
337
333
  e.value.style.verticalIndicator.show && (y.value && a.id === y.value.id || _.selectedIndex === n) ? (r(), i("line", {
338
- key: 2,
334
+ key: 1,
339
335
  x1: a.x,
340
336
  x2: a.x,
341
- y1: o.value.top - 6,
342
- y2: o.value.bottom,
337
+ y1: u.value.top - 6,
338
+ y2: u.value.bottom,
343
339
  stroke: e.value.style.verticalIndicator.color || a.color,
344
340
  "stroke-width": e.value.style.verticalIndicator.strokeWidth,
345
341
  "stroke-linecap": "round",
346
342
  "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
347
- }, null, 8, Ue)) : h("", !0)
343
+ }, null, 8, Xe)) : h("", !0)
348
344
  ]))), 256)),
349
- A.value < 0 ? (r(), i("line", {
350
- key: 3,
351
- x1: o.value.start,
352
- x2: o.value.start + o.value.width - 16,
353
- y1: v(Y)(N.value, o.value.bottom),
354
- y2: v(Y)(N.value, o.value.bottom),
345
+ z.value < 0 ? (r(), i("line", {
346
+ key: 4,
347
+ x1: u.value.start,
348
+ x2: u.value.start + u.value.width - 16,
349
+ y1: v(J)(w.value, u.value.bottom),
350
+ y2: v(J)(w.value, u.value.bottom),
355
351
  stroke: e.value.style.zeroLine.color,
356
352
  "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
357
353
  "stroke-width": e.value.style.zeroLine.strokeWidth,
358
354
  "stroke-linecap": "round"
359
- }, null, 8, Xe)) : h("", !0),
360
- e.value.style.plot.show ? (r(!0), i(D, { key: 4 }, P(d.value, (a, n) => (r(), i("g", null, [
361
- y.value && a.id === y.value.id || _.selectedIndex === n ? (r(), i("circle", {
355
+ }, null, 8, qe)) : h("", !0),
356
+ e.value.style.plot.show ? (r(!0), i(D, { key: 5 }, P(d.value, (a, n) => (r(), i("g", null, [
357
+ y.value && a.id === y.value.id || _.selectedIndex === n || _.dataset.length === 1 ? (r(), i("circle", {
362
358
  key: 0,
363
359
  cx: a.x,
364
360
  cy: a.y,
@@ -366,46 +362,46 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
366
362
  fill: a.color,
367
363
  stroke: e.value.style.plot.stroke,
368
364
  "stroke-width": e.value.style.plot.strokeWidth
369
- }, null, 8, qe)) : h("", !0)
365
+ }, null, 8, Ze)) : h("", !0)
370
366
  ]))), 256)) : h("", !0),
371
367
  _.showInfo && e.value.style.dataLabel.show ? (r(), i("text", {
372
- key: 5,
373
- x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : o.value.width + 12 + e.value.style.dataLabel.offsetX,
368
+ key: 6,
369
+ x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : u.value.width + 12 + e.value.style.dataLabel.offsetX,
374
370
  y: s.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
375
371
  "font-size": e.value.style.dataLabel.fontSize,
376
372
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
377
373
  fill: e.value.style.dataLabel.color
378
- }, X(y.value ? v(J)(
374
+ }, q(y.value ? v(K)(
379
375
  e.value.style.dataLabel.formatter,
380
376
  y.value.absoluteValue,
381
- v(K)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
377
+ v(Q)({ p: e.value.style.dataLabel.prefix, v: y.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
382
378
  { datapoint: y.value }
383
- ) : v(J)(
379
+ ) : v(K)(
384
380
  e.value.style.dataLabel.formatter,
385
381
  j.value,
386
- v(K)({ p: e.value.style.dataLabel.prefix, v: j.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
387
- )), 9, Ze)) : h("", !0),
382
+ v(Q)({ p: e.value.style.dataLabel.prefix, v: j.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
383
+ )), 9, He)) : h("", !0),
388
384
  (r(!0), i(D, null, P(d.value, (a, n) => (r(), i("rect", {
389
- x: a.x - (o.value.width / (g.value + 1) > s.value.padding ? s.value.padding : o.value.width / (g.value + 1)) / 2,
390
- y: o.value.top - 6,
391
- height: o.value.height + 6,
392
- width: o.value.width / (g.value + 1) > s.value.padding ? s.value.padding : o.value.width / (g.value + 1),
385
+ x: a.x - (u.value.width / (k.value + 1) > s.value.padding ? s.value.padding : u.value.width / (k.value + 1)) / 2,
386
+ y: u.value.top - 6,
387
+ height: u.value.height + 6,
388
+ width: u.value.width / (k.value + 1) > s.value.padding ? s.value.padding : u.value.width / (k.value + 1),
393
389
  fill: "transparent",
394
- onMouseenter: (R) => oe(a, n),
390
+ onMouseenter: (U) => oe(a, n),
395
391
  onMouseleave: ne,
396
392
  onClick: () => re(a, n)
397
- }, null, 40, He))), 256)),
398
- M(t.$slots, "svg", { svg: s.value }, void 0, !0)
399
- ], 12, Me)) : h("", !0),
393
+ }, null, 40, Ye))), 256)),
394
+ C(t.$slots, "svg", { svg: s.value }, void 0, !0)
395
+ ], 12, Ie)) : h("", !0),
400
396
  t.$slots.source ? (r(), i("div", {
401
397
  key: 2,
402
398
  ref_key: "source",
403
399
  ref: O,
404
400
  dir: "auto"
405
401
  }, [
406
- M(t.$slots, "source", {}, void 0, !0)
402
+ C(t.$slots, "source", {}, void 0, !0)
407
403
  ], 512)) : h("", !0),
408
- $.value ? h("", !0) : (r(), de(xe, {
404
+ N.value ? h("", !0) : (r(), de(xe, {
409
405
  key: 3,
410
406
  config: {
411
407
  type: "sparkline",
@@ -419,7 +415,7 @@ const Ce = ["id"], Me = ["xmlns", "viewBox"], Ie = ["width", "height"], Ve = ["i
419
415
  }, null, 8, ["config"]))
420
416
  ], 12, Ce));
421
417
  }
422
- }, st = /* @__PURE__ */ Ne(Ye, [["__scopeId", "data-v-db8c64e5"]]);
418
+ }, ut = /* @__PURE__ */ Me(Je, [["__scopeId", "data-v-e25baba2"]]);
423
419
  export {
424
- st as default
420
+ ut as default
425
421
  };
@@ -1,9 +1,9 @@
1
1
  import { useSlots as ue, onMounted as Y, computed as m, ref as d, watch as G, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ie, createVNode as q, createElementVNode as p, toDisplayString as w, unref as C, Fragment as x, renderList as $, normalizeClass as F, withCtx as H, renderSlot as U, normalizeProps as X, guardReactiveProps as J } from "vue";
2
- import { u as ce, c as K, t as de, p as i, a as ve, d as N, b as pe, o as ge, e as Q, g as fe, f as V, X as he, s as ye, w as me, i as Z, x as ke } from "./index-y7ebFPbO.js";
3
- import { u as ee } from "./useNestedProp-BWzyGJZ8.js";
4
- import be from "./vue-ui-skeleton-DOahsJXV.js";
5
- import { _ as _e } from "./PackageVersion-C5hOoj_p.js";
6
- import { _ as we } from "./Tooltip-C6qF6AOJ.js";
2
+ import { u as ce, c as K, t as de, p as i, a as ve, d as N, b as pe, o as ge, e as Q, g as fe, f as V, X as he, s as ye, w as me, i as Z, x as ke } from "./index-DLCyjPV0.js";
3
+ import { u as ee } from "./useNestedProp-q86V3_LA.js";
4
+ import be from "./vue-ui-skeleton-D6ojufhb.js";
5
+ import { _ as _e } from "./PackageVersion-PZr4BkQ5.js";
6
+ import { _ as we } from "./Tooltip-C9lPh5bN.js";
7
7
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-color"], Pe = ["stop-color"], De = {
9
9
  id: "stackPill",
@@ -184,10 +184,12 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
184
184
  style: v(`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}`)
185
185
  }, [
186
186
  p("div", {
187
+ class: "atom-title",
187
188
  style: v(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
188
189
  }, w(e.value.style.title.text), 5),
189
190
  e.value.style.title.subtitle.text ? (s(), r("div", {
190
191
  key: 0,
192
+ class: "atom-subtitle",
191
193
  style: v(`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"}`)
192
194
  }, w(e.value.style.title.subtitle.text), 5)) : y("", !0)
193
195
  ], 4)) : y("", !0),
@@ -373,7 +375,7 @@ const xe = ["xmlns", "viewBox"], $e = ["id"], Se = ["stop-color"], ze = ["stop-c
373
375
  ], 512)) : y("", !0)
374
376
  ], 4));
375
377
  }
376
- }, Xe = /* @__PURE__ */ Ce(Te, [["__scopeId", "data-v-c37627ff"]]);
378
+ }, Xe = /* @__PURE__ */ Ce(Te, [["__scopeId", "data-v-17984a02"]]);
377
379
  export {
378
380
  Xe as default
379
381
  };