npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

carepage-feedback-widget

v1.1.4

Published

CarePage Feedback Widget

Downloads

379

Readme

Introduction

CarePage Feedback Widget

Getting Started

Installation Guide:

  1. NodeJS 18+
  2. Webpack
  3. Babel
  4. Web components

Build and Test

  • src
    • lib
      • components
      • carepage-xx.js
    • scss
      • xxx.scss
  • index.js
  • index.html
  1. lib - Javascript web components
  2. scss - styling for the web components
  3. index.js - define the customElements created in lib
  4. index.html - export customElements to be used by legacy systems.

npm run develop

Run repository in development mode

npm run build

Build repository to generate minified carepage-feedback-widget.min.js

How to Use

Use carepage-feedback-widget.min.js in your website to use widget components.

  • Set review=stats|percentage to change card stats or percentage.
  • Set arrow=true|false to show arrow icon.
  • Set modal-data=object to override modal texts.
  • Set token & facilityId to access widget.
  • Set starRating to override review rating value.
  • Set percentageRating to override resident percentage rating value.
  • Set percentageSatisfaction to override resident satisfaction value.
  • Set percentageRecommendation to override review percentage recommendation value.
  • Set surveyResponses to override survey responses value.
  • Set minimumSurveyResponse to override minimum accepted survey response value.
  • Set excludePercentageRating to hide widget when percentage rating is less than or equal to set value.
  • Set excludePercentageSatisfaction to hide widget when percentage satisfaction is less than or equal to set value.
  • Set excludePercentageRecommendation to hide widget when percentage recommendation is less than or equal to set value.
<body>
  <script src="https://unpkg.com/carepage-feedback-widget@<version>/public/carepage-feedback-widget.min.js"></script>
</body>
  <carepage-review-rating 
    token="sdasdasda"
    review="stats"
    starRating=3
    percentageRating=96
    percentageSatisfaction=96.5
    percentageRecommendation=80
    surveyResponses=0
    facilityId="5" 
    review="stats" 
    arrow=true>
      <carepage-review-hli></carepage-review-hli>
  </carepage-review-rating>
  <carepage-modal include="carepage-review-rating"></carepage-modal>

Styling the component

Override variables:

  • --card-font-family -> change font
  • --card-text-color -> change font color
  • --star-color -> change star color
  • --theme-primary-color -> change theme color
  • --theme-circle-color -> change circle wrapper color
  • --card-background -> change card background
  • --background-star-fill -> change radial fill background

In your css you can set variable values.

carepage-review-rating {
  --card-font-family: 'Arial', sans-serif;
  --card-text-color: #321960;
  --star-color: #FF0000;
  --theme-primary-color: green;
  --theme-circle-color: #D6F3F4;
  --card-background: #1C004F;
  --background-star-fill: #1C004F;
}