Socket
Socket
Sign inDemoInstall

angular-star-rating

Package Overview
Dependencies
2
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.4 to 1.2.5

13

CHANGELOG.md

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

<a name="1.2.5"></a>
## [1.2.5](https://github.com/BioPhoton/angular1-star-rating/compare/v1.2.4...v1.2.5) (2017-01-22)
### Bug Fixes
* **build:** rebuild project, edit comments ([0b611ae](https://github.com/BioPhoton/angular1-star-rating/commit/0b611ae))
* **updated binding:** renamed onUpdate to onRatingChange ([6e59266](https://github.com/BioPhoton/angular1-star-rating/commit/6e59266))
* **updated binding:** renamed onUpdate to onRatingChange ([889901b](https://github.com/BioPhoton/angular1-star-rating/commit/889901b))
* **updated paths:** updated repo path and links ([b51dec6](https://github.com/BioPhoton/angular1-star-rating/commit/b51dec6))
<a name="1.2.4"></a>

@@ -2,0 +15,0 @@ ## [1.2.4](https://github.com/BioPhoton/angular1-star-rating/compare/v1.2.3...v1.2.4) (2017-01-13)

2

dist/index.d.ts

@@ -5,2 +5,2 @@ import "angular";

export { StarRatingComponent } from "./star-rating.component";
export declare const angularStars: string;
export declare const angularStars: any;

@@ -24,3 +24,3 @@ export declare type starRatingSizes = "small" | "medium" | "large";

onClick?: ($event: any) => any;
onUpdate?: ($event: any) => any;
onRatingChange?: ($event: any) => any;
}

@@ -27,0 +27,0 @@ export interface IStarRatingOnClickEvent {

{
"name": "angular-star-rating",
"version": "1.2.4",
"version": "1.2.5",
"license": "MIT",

@@ -25,3 +25,3 @@ "keywords": [

],
"description": "Angular Star Rating is a Angular1.5 component written in typescript.",
"description": "Angular Star Rating is a Angular1.5 component written in typescript, based on css only techniques written in scss",
"author": "Michael Hladky",

@@ -28,0 +28,0 @@ "contributors": [

# Angular Star Rating ⭐⭐⭐⭐⭐
#### ⭐ Angular 1.5 Component written in typescript, based on css only techniques. ⭐
![License](https://img.shields.io/npm/l/angular-star-rating.svg)
![License](https://img.shields.io/npm/l/angular1-star-rating.svg)
![Bower Version](https://img.shields.io/bower/v/angular1-star-rating.svg)
[![NPM Version](https://img.shields.io/npm/v/angular-star-rating.svg)](https://www.npmjs.com/package/angular-star-rating)
[![NPM Version](https://img.shields.io/npm/v/angular1-star-rating.svg)](https://www.npmjs.com/package/angular1-star-rating)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/BioPhoton/angular1-star-rating)
[![Build Status](https://travis-ci.org/BioPhoton/angular1-star-rating.svg?branch=master)](https://travis-ci.org/BioPhoton/angular1-star-rating)
[![NPM](https://img.shields.io/npm/dt/angular-star-rating.svg)](https://www.npmjs.com/package/angular-star-rating)
[![NPM](https://img.shields.io/npm/dt/angular1-star-rating.svg)](https://www.npmjs.com/package/angular1-star-rating)
[![NPM](https://nodei.co/npm/angular-star-rating.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/angular-star-rating)
[![NPM](https://nodei.co/npm-dl/angular-star-rating.png?height=3&months=3)](https://npmjs.org/angular-star-rating)
[![NPM](https://nodei.co/npm/angular1-star-rating.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/angular1-star-rating)
[![Package Quality](http://npm.packagequality.com/badge/angular1-star-rating.png)](http://packagequality.com/#?package=angular1-star-rating)
[![Package Quality](http://npm.packagequality.com/badge/angular-star-rating.png)](http://packagequality.com/#?package=angular-star-rating)
Angular Star Rating is a >1.5 Angular component written in typescript.

@@ -25,2 +23,9 @@ It is based on [css-star-rating](https://github.com/BioPhoton/css-star-rating), a fully featured and customizable css only star rating component written in scss.

##Related Projects
| Css | Angular1 (>=1.5)| Angular (>=2) |
|--- |--- |--- |
| <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/dev/resources/family/css3.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/dev/resources/family/angular1.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/dev/resources/family/angular.png" width="80"> |
| [Css Star Rating](https://github.com/BioPhoton/css-star-rating) | [Angular1 Star Rating](https://github.com/BioPhoton/angular1-star-rating) | [Angular Star Rating](https://github.com/BioPhoton/angular-star-rating) |
## Features

@@ -56,3 +61,3 @@ This module implements all Features from [CSS-STAR-RATING](https://github.com/BioPhoton/css-star-rating).

| > 11 | > 50 | > 55 | > 10 | > 41 |
| <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/ie.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/firefox.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/chrome.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/safari.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/opera.png" width="100"> |
| <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/ie.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/firefox.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/chrome.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/safari.png" width="100"> | <img src="https://raw.githubusercontent.com/BioPhoton/angular1-star-rating/master/resources/browser/opera.png" width="100"> |

@@ -62,14 +67,14 @@

**Get Angular Star Rating:**
**Get Angular Star Rating:*
- clone & build this repository
- [download as .zip](https://github.com/BioPhoton/angular1-star-rating/releases)
- via **[npm](https://www.npmjs.org/)**: by running `$ npm install angular-star-rating` from your console
- via **[npm](https://www.npmjs.org/)**: by running `$ npm install angular1-star-rating` from your console
- via **[bower](https://bower.io/)**: by running `$ bower install angular1-star-rating` from your console
- via **[cdn](https://cdn.rawgit.com/BioPhoton/angular1-star-rating/2062d6bf/dist/index.js)**: by adding the git-cdn reference in your index.html
- via **[cdn](https://cdn.rawgit.com/BioPhoton/angular1-star-rating/v1.2.4/dist/index.js)**: by adding the git-cdn reference in your index.html
```html
<script src="https://cdn.rawgit.com/BioPhoton/angular1-star-rating/2062d6bf/dist/index.js"></script>
<script src="https://cdn.rawgit.com/BioPhoton/angular1-star-rating/v1.2.4/dist/index.js"></script>
```
**Load library**
```html
<script src="[bower or npm folder or git-cdn path]/angular-star-rating/dist/index.js"></script>
<script src="[bower or npm folder or git-cdn path]/angular1-star-rating/dist/index.js"></script>
```

@@ -76,0 +81,0 @@

@@ -31,3 +31,3 @@ import {StarRatingController} from "./star-rating.controller";

, onClick: '&?'
, onUpdate: '&?'
, onRatingChange: '&?'
};

@@ -34,0 +34,0 @@ this.replace = true;

@@ -60,3 +60,3 @@ import {

//&
expect(typeof starRatingCtrl.onUpdate).toBe("function");
expect(typeof starRatingCtrl.onRatingChange).toBe("function");
expect(typeof starRatingCtrl.onClick).toBe("function");

@@ -145,3 +145,3 @@

}
, onUpdate: function ($event:IStarRatingOnUpdateEvent) {
, onRatingChange: function ($event:IStarRatingOnUpdateEvent) {
return $event;

@@ -167,3 +167,3 @@ }

expect(starRatingCtrl.onClick({$event: {rating: 1}}).rating).toBe(bindings.onClick({$event: {rating: 1}}).rating);
expect(starRatingCtrl.onUpdate({$event: {rating: 2}}).rating).toBe(bindings.onUpdate({$event: {rating: 2}}).rating);
expect(starRatingCtrl.onRatingChange({$event: {rating: 2}}).rating).toBe(bindings.onRatingChange({$event: {rating: 2}}).rating);
});

@@ -294,5 +294,5 @@

it("should fire onUpdate when set", () => {
it("should fire onRatingChange when set", () => {
let bindings = <IStarRatingCompBindings>{
onUpdate: function ($event:IStarRatingOnUpdateEvent) {
onRatingChange: function ($event:IStarRatingOnUpdateEvent) {
return $event;

@@ -304,7 +304,7 @@ }

//create spys
spyOn(starRatingCtrl, "onUpdate");
spyOn(starRatingCtrl, "onRatingChange");
starRatingCtrl.rating = 4;
//spys fired
expect(starRatingCtrl.onUpdate).toHaveBeenCalled();
expect(starRatingCtrl.onRatingChange).toHaveBeenCalled();

@@ -311,0 +311,0 @@ });

@@ -135,3 +135,3 @@ import {

onClick?: ($event: any) => IStarRatingOnClickEvent;
onUpdate?: ($event: any) => IStarRatingOnUpdateEvent;
onRatingChange?: ($event: any) => IStarRatingOnUpdateEvent;

@@ -188,5 +188,5 @@ //ctrl only

//fire onUpdate event
//fire onRatingChange event
let $event:IStarRatingOnUpdateEvent = {rating: this._rating};
this.onUpdate({$event:$event});
this.onRatingChange({$event:$event});
}

@@ -325,3 +325,3 @@ get rating(): number {

};
this.onUpdate = function ($event: IStarRatingOnUpdateEvent) {
this.onRatingChange = function ($event: IStarRatingOnUpdateEvent) {
return <IStarRatingOnUpdateEvent>{}

@@ -328,0 +328,0 @@ };

@@ -27,3 +27,3 @@ export type starRatingSizes = "small" | "medium" | "large";

onClick?: ($event: any) => any;
onUpdate?: ($event: any) => any;
onRatingChange?: ($event: any) => any;
}

@@ -30,0 +30,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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