ionic-rating
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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 @@ { |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14026
88
0