Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ionic-rating

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic-rating - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

5

dist/components/rating.js

@@ -27,3 +27,6 @@ import { Component, Input, Output, EventEmitter, forwardRef } from "@angular/core";

selector: "rating",
templateUrl: "./rating.html",
template: "\n <ion-buttons>\n <button type=\"button\" [disabled]=\"readonly\" ion-button icon-only clear [small]=\"small\" *ngFor=\"let current of [1, 2, 3, 4, 5]; let i = index\"\n (click)=\"onClick(i + 1)\" (mouseover)=\"hoverRate = i + 1\" (mouseleave)=\"hoverRate = 0\">\n <ion-icon name=\"star\" [class.filled]=\"(i + 1 <= hoverRate || (!hoverRate && i + 1 <= rate))\"></ion-icon>\n </button>\n </ion-buttons>\n ",
styles: [
"\n rating {\n [ion-button][disabled] {\n opacity: 1;\n }\n\n ion-icon {\n color: gray;\n\n &.filled {\n color: orange;\n }\n }\n }\n "
],
providers: [

@@ -30,0 +33,0 @@ {

2

dist/components/rating.metadata.json

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"RatingComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"rating","templateUrl":"./rating.html","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":14,"character":15},"useExisting":{"__symbolic":"reference","name":"RatingComponent"},"multi":true}]}]}],"members":{"rate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"small":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"rateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":3}}]}],"onClick":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"RatingComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"selector":"rating","template":"\n <ion-buttons>\n <button type=\"button\" [disabled]=\"readonly\" ion-button icon-only clear [small]=\"small\" *ngFor=\"let current of [1, 2, 3, 4, 5]; let i = index\"\n (click)=\"onClick(i + 1)\" (mouseover)=\"hoverRate = i + 1\" (mouseleave)=\"hoverRate = 0\">\n <ion-icon name=\"star\" [class.filled]=\"(i + 1 <= hoverRate || (!hoverRate && i + 1 <= rate))\"></ion-icon>\n </button>\n </ion-buttons>\n ","styles":["\n rating {\n [ion-button][disabled] {\n opacity: 1;\n }\n\n ion-icon {\n color: gray;\n\n &.filled {\n color: orange;\n }\n }\n }\n "],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":38,"character":15},"useExisting":{"__symbolic":"reference","name":"RatingComponent"},"multi":true}]}]}],"members":{"rate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":3}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"small":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"rateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"onClick":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}]}}}}]
{
"name": "ionic-rating",
"version": "1.0.3",
"version": "1.0.4",
"author": "Rodaina Mohamed",

@@ -5,0 +5,0 @@ "description": "A native Ionic 3+ rating stars component.",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc