Socket
Socket
Sign inDemoInstall

vue-star-rating

Package Overview
Dependencies
10
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

2.1.0

Diff

Changelog

Source

Version 2.1.0

  • New animate prop added which slightly rotates and expands the star on mouseover
  • New active-on-click prop applies active colors on click rather than on hover when set
  • New active-border-color prop, which allows border colour to be changed when star is active (issue #34)
  • active-color and active-border-color now optionally accept an array of color values, which can be used as break points
  • :glow no longer requires glow-color to be set (thanks to @bifot)
  • Screen readers are now supported. You can change the default message ("Rated {{rating}} out of {{maxRating}} stars") by using the screen-reader scoped slot:
<star-rating>
    <template v-slot:screen-reader="slotProps">
        This product has been rated {{slotProps.rating}} out of {{slotProps.stars}} stars
    </template>
</star-rating>
  • Better support for touch screen devices
  • Refactor parseAlphaColor method into own class
  • Refactor star.vue
craigh411
published 1.7.0 •

craigh411
published 2.0.3 •

craigh411
published 1.6.3 •

craigh411
published 1.6.2 •

craigh411
published 2.0.2 •

craigh411
published 2.0.1 •

craigh411
published 2.0.0 •

Changelog

Source

Version 2.0.0 - Vue 3!!

  • Code updated to Vue 3
  • Examples updated to Vue 3
  • rating-selected event renamed to update:rating for use witn v-model
  • current-rating event renamed to hover:rating (note: kebab-case is usually preferred, but this format has been chosen for consistency with the update:rating event so rule ignored for star-rating.vue)
  • vue-cli-service now being used for builds and dev
  • Deprecated babel-preset-es2015 replaced with "@babel/preset-env" for tests
  • Tests rewritten using vue-test-utils with jest (vue-jest)
  • Eslint now executed via vue cli and lint rules updated with "plugin:vue/vue3-recommended"
  • Update Node versions in travis.yml
  • Various dependencies updated / removed
craigh411
published 1.6.1 •

Changelog

Source

Version 1.6.1

  • Fixes issue where round-start-rating isn't respected when initial value is set via an async call
craigh411
published 1.6.0 •

Changelog

Source

Version 1.6.0

  • Add rounded corners (thanks to @SparoHawk)
  • Add custom star shapes (thanks to @SparoHawk)
  • Add glow prop, for a subtle glow when star selected
  • Add glow-color prop
  • Add viewbox attribute
  • Space by adding right margin to star div in star-rating.vue, rather than on SVG
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc