diff --git a/@packaged/angular-star-rating/angular-star-rating.d.ts b/@packaged/angular-star-rating/angular-star-rating.d.ts
deleted file mode 100644
index 67ff29a..0000000
--- a/@packaged/angular-star-rating/angular-star-rating.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Generated bundle index. Do not edit.
- */
-export * from './index';
diff --git a/@packaged/angular-star-rating/angular-star-rating.metadata.json b/@packaged/angular-star-rating/angular-star-rating.metadata.json
deleted file mode 100644
index 167aa9c..0000000
--- a/@packaged/angular-star-rating/angular-star-rating.metadata.json
+++ /dev/null
@@ -1 +0,0 @@
-{"__symbolic":"module","version":4,"metadata":{"ClickEvent":{"__symbolic":"interface"},"HoverRatingChangeEvent":{"__symbolic":"interface"},"RatingChangeEvent":{"__symbolic":"interface"},"StarRatingConfig":{"__symbolic":"class","members":{}},"StarRatingUtils":{"__symbolic":"class","members":{},"statics":{"getHalfStarVisible":{"__symbolic":"function","parameters":["rating"],"value":{"__symbolic":"binop","operator":">","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"Math"},"member":"abs"},"arguments":[{"__symbolic":"binop","operator":"%","left":{"__symbolic":"reference","name":"rating"},"right":1}]},"right":0}},"isDigitKeyEventCode":{"__symbolic":"function","parameters":["eventCode"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"eventCode"},"member":"indexOf"},"arguments":["Digit"]},"right":0}}}},"StarRating":{"__symbolic":"class","members":{"setRating":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StarRatingConfigService"}]}],"svgVisible":[{"__symbolic":"method"}],"interactionPossible":[{"__symbolic":"method"}],"setColor":[{"__symbolic":"method"}],"setHalfStarVisible":[{"__symbolic":"method"}],"getComponentClassNames":[{"__symbolic":"method"}],"increment":[{"__symbolic":"method"}],"decrement":[{"__symbolic":"method"}],"reset":[{"__symbolic":"method"}]}},"StarRatingConfigService":{"__symbolic":"class","members":{"getColor":[{"__symbolic":"method"}],"getHalfStarVisible":[{"__symbolic":"method"}]}},"StarRatingComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"StarRating"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"star-rating","inputs":["getHalfStarVisible","getColor","showHalfStars","hoverEnabled","rating","step","disabled","readOnly","space","starType","size","speed","numOfStars","direction","staticColor","labelPosition","labelText","id"],"outputs":["starClickChange","ratingChange","hoverRatingChange"],"styles":[],"template":"
\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"}]}],"members":{"saveOnClick":[{"__symbolic":"method"}],"saveOnRatingChange":[{"__symbolic":"method"}],"saveOnHover":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}],"onStarHover":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StarRatingConfigService"}]}],"setRating":[{"__symbolic":"method"}],"onStarClicked":[{"__symbolic":"method"}]}},"StarRatingControlComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"StarRating"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"star-rating-control","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":10,"character":11},"useExisting":{"__symbolic":"reference","name":"StarRatingControlComponent"},"multi":true}],"inputs":["getHalfStarVisible","getColor","showHalfStars","hoverEnabled","rating","step","disabled","readOnly","space","starType","size","speed","numOfStars","direction","staticColor","labelPosition","labelText","id"],"outputs":["starClickChange","ratingChange","hoverRatingChange"],"styles":[],"template":"\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"}]}],"members":{"saveOnClick":[{"__symbolic":"method"}],"saveOnRatingChange":[{"__symbolic":"method"}],"saveOnHover":[{"__symbolic":"method"}],"saveOnTouch":[{"__symbolic":"method"}],"saveOnModelChange":[{"__symbolic":"method"}],"onKeyDown":[{"__symbolic":"method"}],"onBlur":[{"__symbolic":"method"}],"onFocus":[{"__symbolic":"method"}],"onStarHover":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"StarRatingConfigService"}]}],"setRating":[{"__symbolic":"method"}],"onStarClicked":[{"__symbolic":"method"}]}},"StarRatingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":12}],"declarations":[[{"__symbolic":"reference","name":"StarRatingComponent"},{"__symbolic":"reference","name":"StarRatingControlComponent"}]],"exports":[[[{"__symbolic":"reference","name":"StarRatingComponent"},{"__symbolic":"reference","name":"StarRatingControlComponent"}]]]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"StarRatingModule"},"providers":[{"__symbolic":"reference","name":"StarRatingConfigService"}]}},"forChild":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"StarRatingModule"},"providers":[]}}}}},"origins":{"ClickEvent":"./src/interfaces/click-event.interface","HoverRatingChangeEvent":"./src/interfaces/hover-rating-change-event.interface","RatingChangeEvent":"./src/interfaces/rating-change-event.interface","StarRatingConfig":"./src/interfaces/star-rating-config.interface","StarRatingUtils":"./src/services/star-rating.utils","StarRating":"./src/services/star-rating","StarRatingConfigService":"./src/services/star-rating-config.service","StarRatingComponent":"./src/components/star-rating/star-rating.component","StarRatingControlComponent":"./src/components/star-rating-control/star-rating-control.component","StarRatingModule":"./src/angular-star-rating.module"},"importAs":"angular-star-rating"}
\ No newline at end of file
diff --git a/@packaged/angular-star-rating/assets/images/star-rating.icons.svg b/@packaged/angular-star-rating/assets/images/star-rating.icons.svg
deleted file mode 100644
index a64e7c2..0000000
--- a/@packaged/angular-star-rating/assets/images/star-rating.icons.svg
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js b/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js
deleted file mode 100644
index 59d116c..0000000
--- a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js
+++ /dev/null
@@ -1,892 +0,0 @@
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common')) :
- typeof define === 'function' && define.amd ? define('angular-star-rating', ['exports', '@angular/core', '@angular/forms', '@angular/common'], factory) :
- (factory((global['angular-star-rating'] = {}),global.ng.core,global.ng.forms,global.ng.common));
-}(this, (function (exports,core,forms,common) { 'use strict';
-
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation. All rights reserved.
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-this file except in compliance with the License. You may obtain a copy of the
-License at http://www.apache.org/licenses/LICENSE-2.0
-THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
-WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
-MERCHANTABLITY OR NON-INFRINGEMENT.
-See the Apache Version 2.0 License for specific language governing permissions
-and limitations under the License.
-***************************************************************************** */
-/* global Reflect, Promise */
-var extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
-function __extends(d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
-}
-
-var StarRatingConfig = /** @class */ (function () {
- function StarRatingConfig() {
- }
- return StarRatingConfig;
-}());
-var StarRatingUtils = /** @class */ (function () {
- function StarRatingUtils() {
- }
- StarRatingUtils.getStarsArray = function (numOfStars) {
- var stars = [];
- for (var i = 0; i < numOfStars; i++) {
- stars.push(i + 1);
- }
- return stars;
- };
- StarRatingUtils.getHalfStarVisible = function (rating) {
- return Math.abs(rating % 1) > 0;
- };
- StarRatingUtils.getColor = function (rating, numOfStars, staticColor) {
- rating = rating || 0;
- if (staticColor) {
- return staticColor;
- }
- var fractionSize = numOfStars / 3;
- var color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- };
- StarRatingUtils.isDigitKeyEventCode = function (eventCode) {
- return eventCode.indexOf('Digit') === 0;
- };
- return StarRatingUtils;
-}());
-var StarRating = /** @class */ (function () {
- function StarRating(config) {
- this.config = config;
- this.classEmpty = this.config.classEmpty;
- this.classHalf = this.config.classHalf;
- this.classFilled = this.config.classFilled;
- this.pathEmpty = this.config.svgPathEmpty;
- this.pathHalf = this.config.svgPathHalf;
- this.pathFilled = this.config.svgPathFilled;
- if ('getColor' in this.config &&
- typeof this.config.getColor === 'function') {
- this.getColor = this.config.getColor;
- }
- if ('getHalfStarVisible' in this.config &&
- typeof this.config.getHalfStarVisible === 'function') {
- this.getHalfStarVisible = this.config.getHalfStarVisible;
- }
- this.numOfStars = this.config.numOfStars;
- this.rating = 0;
- this.step = 1;
- }
- Object.defineProperty(StarRating.prototype, "rating", {
- get: function () {
- return this._rating;
- },
- set: function (value) {
- this.setRating(value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "showHalfStars", {
- get: function () {
- return this._showHalfStars;
- },
- set: function (value) {
- this._showHalfStars = !!value;
- this.setHalfStarVisible();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "id", {
- get: function () {
- return this._id;
- },
- set: function (value) {
- this._id = value || '';
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "focus", {
- get: function () {
- return this._focus;
- },
- set: function (value) {
- this._focus = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelText", {
- get: function () {
- return this._labelText;
- },
- set: function (value) {
- this._labelText = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelPosition", {
- get: function () {
- return this._labelPosition;
- },
- set: function (value) {
- this._labelPosition = value || this.config.labelPosition;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelVisible", {
- get: function () {
- return this._labelVisible;
- },
- set: function (value) {
- this._labelVisible = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "hoverEnabled", {
- get: function () {
- return this._hoverEnabled;
- },
- set: function (value) {
- this._hoverEnabled = value !== undefined ? !!value : false;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "staticColor", {
- get: function () {
- return this._staticColor || this.config.staticColor || undefined;
- },
- set: function (value) {
- this._staticColor = value;
- this.setColor();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "direction", {
- get: function () {
- return this._direction;
- },
- set: function (value) {
- this._direction = value || undefined;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "numOfStars", {
- get: function () {
- return this._numOfStars;
- },
- set: function (value) {
- this._numOfStars = value > 0 ? value : this.config.numOfStars;
- this.stars = StarRatingUtils.getStarsArray(this.numOfStars);
- this.setColor();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "hoverRating", {
- get: function () {
- return this._hoverRating;
- },
- set: function (value) {
- this._hoverRating = value > 0 ? value : 0;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "speed", {
- get: function () {
- return this._speed;
- },
- set: function (value) {
- this._speed = value || this.config.speed;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "size", {
- get: function () {
- return this._size || this.config.size;
- },
- set: function (value) {
- this._size = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "starType", {
- get: function () {
- return this._starType || this.config.starType;
- },
- set: function (value) {
- this._starType = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "space", {
- get: function () {
- return this._space;
- },
- set: function (value) {
- this._space = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "readOnly", {
- get: function () {
- return this._readOnly;
- },
- set: function (value) {
- this._readOnly = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "disabled", {
- get: function () {
- return this._disabled;
- },
- set: function (value) {
- this._disabled = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "step", {
- get: function () {
- return this._step;
- },
- set: function (value) {
- this._step = value > 0 ? value : 1;
- },
- enumerable: true,
- configurable: true
- });
- StarRating.prototype.setRating = function (value) {
- var newRating = 0;
- if (value >= 0 && value <= this.numOfStars) {
- newRating = value;
- }
- if (value > this.numOfStars) {
- newRating = this.numOfStars;
- }
- this._rating = newRating;
- this.ratingAsInteger = parseInt(this._rating.toString(), 10);
- this.setHalfStarVisible();
- this.setColor();
- };
- StarRating.prototype.svgVisible = function () {
- return this.starType === 'svg';
- };
- StarRating.prototype.interactionPossible = function () {
- return !this.readOnly && !this.disabled;
- };
- StarRating.prototype.setColor = function (useHoverValue) {
- if (useHoverValue === void 0) { useHoverValue = false; }
- var ratingValue = useHoverValue ? this.hoverRating : this.rating;
- if (typeof this.getColor === 'function') {
- this.color = this.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- else {
- this.color = StarRatingUtils.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- };
- StarRating.prototype.setHalfStarVisible = function () {
- if (this.showHalfStars) {
- if (typeof this.getHalfStarVisible === 'function') {
- this.halfStarVisible = this.getHalfStarVisible(this.rating);
- }
- else {
- this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);
- }
- }
- else {
- this.halfStarVisible = false;
- }
- };
- StarRating.prototype.getComponentClassNames = function () {
- var classNames = [];
- classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');
- classNames.push(this.halfStarVisible ? 'half' : '');
- classNames.push(this.hoverEnabled ? 'hover' : '');
- var hoverRating = this.hoverRating
- ? 'hover-' + this.hoverRating
- : 'hover-0';
- classNames.push(this.hoverEnabled ? hoverRating : '');
- classNames.push(this.space ? 'space-' + this.space : '');
- classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');
- classNames.push(this.color ? 'color-' + this.color : '');
- classNames.push(this.starType ? 'star-' + this.starType : '');
- classNames.push(this.speed);
- classNames.push(this.size);
- classNames.push(this.readOnly ? 'read-only' : '');
- classNames.push(this.disabled ? 'disabled' : '');
- classNames.push(this.direction ? 'direction-' + this.direction : '');
- return classNames.join(' ');
- };
- StarRating.prototype.increment = function () {
- var absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);
- };
- StarRating.prototype.decrement = function () {
- var absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);
- };
- StarRating.prototype.reset = function () {
- this.rating = 0;
- };
- return StarRating;
-}());
-var StarRatingConfigService = /** @class */ (function () {
- function StarRatingConfigService() {
- this._classEmpty = 'default-star-empty-icon';
- this._classHalf = 'default-star-half-icon';
- this._classFilled = 'default-star-filled-icon';
- this._numOfStars = 5;
- this._size = 'medium';
- this._labelPosition = 'left';
- this._speed = 'noticeable';
- this._starType = 'svg';
- this._assetsPath = 'assets/images/';
- this._svgPath = this.assetsPath + 'star-rating.icons.svg';
- this._svgEmptySymbolId = 'star-empty';
- this._svgHalfSymbolId = 'star-half';
- this._svgFilledSymbolId = 'star-filled';
- this._svgPathEmpty = this.svgPath + '#' + this.svgEmptySymbolId;
- this._svgPathHalf = this.svgPath + '#' + this.svgHalfSymbolId;
- this._svgPathFilled = this.svgPath + '#' + this.svgFilledSymbolId;
- }
- Object.defineProperty(StarRatingConfigService.prototype, "classEmpty", {
- get: function () {
- return this._classEmpty;
- },
- set: function (classEmpty) {
- this._classEmpty = classEmpty;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "classHalf", {
- get: function () {
- return this._classHalf;
- },
- set: function (classHalf) {
- this._classHalf = classHalf;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "classFilled", {
- get: function () {
- return this._classFilled;
- },
- set: function (classFilled) {
- this._classFilled = classFilled;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "numOfStars", {
- get: function () {
- return this._numOfStars;
- },
- set: function (numOfStars) {
- this._numOfStars = numOfStars;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "size", {
- get: function () {
- return this._size;
- },
- set: function (size) {
- this._size = size;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "staticColor", {
- get: function () {
- return this._staticColor;
- },
- set: function (value) {
- this._staticColor = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "labelPosition", {
- get: function () {
- return this._labelPosition;
- },
- set: function (labelPosition) {
- this._labelPosition = labelPosition;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "speed", {
- get: function () {
- return this._speed;
- },
- set: function (speed) {
- this._speed = speed;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "starType", {
- get: function () {
- return this._starType;
- },
- set: function (starType) {
- this._starType = starType;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "assetsPath", {
- get: function () {
- return this._assetsPath;
- },
- set: function (assetsPath) {
- this._assetsPath = assetsPath;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPath", {
- get: function () {
- return this._svgPath;
- },
- set: function (svgPath) {
- this._svgPath = svgPath;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgEmptySymbolId", {
- get: function () {
- return this._svgEmptySymbolId;
- },
- set: function (svgEmptySymbolId) {
- this._svgEmptySymbolId = svgEmptySymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgHalfSymbolId", {
- get: function () {
- return this._svgHalfSymbolId;
- },
- set: function (svgHalfSymbolId) {
- this._svgHalfSymbolId = svgHalfSymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgFilledSymbolId", {
- get: function () {
- return this._svgFilledSymbolId;
- },
- set: function (svgFilledSymbolId) {
- this._svgFilledSymbolId = svgFilledSymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathEmpty", {
- get: function () {
- return this._svgPathEmpty;
- },
- set: function (svgPathEmpty) {
- this._svgPathEmpty = svgPathEmpty;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathHalf", {
- get: function () {
- return this._svgPathHalf;
- },
- set: function (svgPathHalf) {
- this._svgPathHalf = svgPathHalf;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathFilled", {
- get: function () {
- return this._svgPathFilled;
- },
- set: function (svgPathFilled) {
- this._svgPathFilled = svgPathFilled;
- },
- enumerable: true,
- configurable: true
- });
- StarRatingConfigService.prototype.getColor = function (rating, numOfStars, staticColor) {
- rating = rating || 0;
- if (staticColor) {
- return staticColor;
- }
- var fractionSize = numOfStars / 3;
- var color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- };
- StarRatingConfigService.prototype.getHalfStarVisible = function (rating) {
- return Math.abs(rating % 1) > 0;
- };
- return StarRatingConfigService;
-}());
-var StarRatingComponent = /** @class */ (function (_super) {
- __extends(StarRatingComponent, _super);
- function StarRatingComponent(config) {
- var _this = _super.call(this, config) || this;
- _this.starClickChange = new core.EventEmitter();
- _this.ratingChange = new core.EventEmitter();
- _this.hoverRatingChange = new core.EventEmitter();
- return _this;
- }
- StarRatingComponent.prototype.saveOnClick = function ($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- };
- StarRatingComponent.prototype.saveOnRatingChange = function ($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- };
- StarRatingComponent.prototype.saveOnHover = function ($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- };
- StarRatingComponent.prototype.onKeyDown = function (event) {
- var _this = this;
- if (!this.interactionPossible()) {
- return;
- }
- var handlers = {
- Minus: function () { return _this.decrement(); },
- ArrowDown: function () { return _this.decrement(); },
- ArrowLeft: function () { return _this.decrement(); },
- Plus: function () { return _this.increment(); },
- ArrowRight: function () { return _this.increment(); },
- ArrowUp: function () { return _this.increment(); },
- Backspace: function () { return _this.reset(); },
- Delete: function () { return _this.reset(); },
- Digit0: function () { return _this.reset(); }
- };
- var handleDigits = function (eventCode) {
- var dStr = 'Digit';
- var digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- _this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- };
- StarRatingComponent.prototype.onStarHover = function (rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- this.setColor(true);
- var $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- };
- StarRatingComponent.prototype.setRating = function (value) {
- var initValue = this.rating;
- _super.prototype.setRating.call(this, value);
- if (initValue !== this.rating) {
- var $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- }
- };
- StarRatingComponent.prototype.onStarClicked = function (rating) {
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- var onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- };
- return StarRatingComponent;
-}(StarRating));
-StarRatingComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'star-rating',
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: "\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"
- },] },
-];
-StarRatingComponent.ctorParameters = function () { return [
- { type: StarRatingConfigService, },
-]; };
-var STAR_RATING_CONTROL_ACCESSOR = {
- provide: forms.NG_VALUE_ACCESSOR,
- useExisting: core.forwardRef(function () { return StarRatingControlComponent; }),
- multi: true
-};
-var StarRatingControlComponent = /** @class */ (function (_super) {
- __extends(StarRatingControlComponent, _super);
- function StarRatingControlComponent(config) {
- var _this = _super.call(this, config) || this;
- _this.starClickChange = new core.EventEmitter();
- _this.ratingChange = new core.EventEmitter();
- _this.hoverRatingChange = new core.EventEmitter();
- _this.onModelChangeRegistered = false;
- _this.onTouchRegistered = false;
- return _this;
- }
- StarRatingControlComponent.prototype.saveOnClick = function ($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnRatingChange = function ($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnHover = function ($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnTouch = function () {
- if (this.onTouchRegistered) {
- this.onTouch();
- }
- };
- StarRatingControlComponent.prototype.saveOnModelChange = function (value) {
- if (this.onModelChangeRegistered) {
- this.onModelChange(value);
- }
- };
- StarRatingControlComponent.prototype.onKeyDown = function (event) {
- var _this = this;
- if (!this.interactionPossible()) {
- return;
- }
- var handlers = {
- Minus: function () { return _this.decrement(); },
- ArrowDown: function () { return _this.decrement(); },
- ArrowLeft: function () { return _this.decrement(); },
- Plus: function () { return _this.increment(); },
- ArrowRight: function () { return _this.increment(); },
- ArrowUp: function () { return _this.increment(); },
- Backspace: function () { return _this.reset(); },
- Delete: function () { return _this.reset(); },
- Digit0: function () { return _this.reset(); }
- };
- var handleDigits = function (eventCode) {
- var dStr = 'Digit';
- var digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- _this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onBlur = function (event) {
- this.focus = false;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onFocus = function (event) {
- this.focus = true;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onStarHover = function (rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- var $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- };
- StarRatingControlComponent.prototype.writeValue = function (obj) {
- this.rating = obj;
- };
- StarRatingControlComponent.prototype.registerOnChange = function (fn) {
- this.onModelChange = fn;
- this.onModelChangeRegistered = true;
- };
- StarRatingControlComponent.prototype.registerOnTouched = function (fn) {
- this.onTouch = fn;
- this.onTouchRegistered = true;
- };
- StarRatingControlComponent.prototype.setRating = function (value) {
- var initValue = this.rating;
- _super.prototype.setRating.call(this, value);
- if (initValue !== this.rating) {
- var $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- this.saveOnModelChange(this.rating);
- }
- };
- StarRatingControlComponent.prototype.onStarClicked = function (rating) {
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- var onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- };
- return StarRatingControlComponent;
-}(StarRating));
-StarRatingControlComponent.decorators = [
- { type: core.Component, args: [{
- selector: 'star-rating-control',
- providers: [STAR_RATING_CONTROL_ACCESSOR],
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: "\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"
- },] },
-];
-StarRatingControlComponent.ctorParameters = function () { return [
- { type: StarRatingConfigService, },
-]; };
-var DECLARATIONS = [
- StarRatingComponent,
- StarRatingControlComponent
-];
-var EXPORTS = [DECLARATIONS];
-var StarRatingModule = /** @class */ (function () {
- function StarRatingModule() {
- }
- StarRatingModule.forRoot = function () {
- return {
- ngModule: StarRatingModule,
- providers: [
- StarRatingConfigService
- ]
- };
- };
- StarRatingModule.forChild = function () {
- return {
- ngModule: StarRatingModule,
- providers: []
- };
- };
- return StarRatingModule;
-}());
-StarRatingModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [common.CommonModule],
- declarations: [DECLARATIONS],
- exports: [EXPORTS]
- },] },
-];
-StarRatingModule.ctorParameters = function () { return []; };
-
-exports.StarRatingConfig = StarRatingConfig;
-exports.StarRatingUtils = StarRatingUtils;
-exports.StarRating = StarRating;
-exports.StarRatingConfigService = StarRatingConfigService;
-exports.StarRatingComponent = StarRatingComponent;
-exports.StarRatingControlComponent = StarRatingControlComponent;
-exports.StarRatingModule = StarRatingModule;
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
-//# sourceMappingURL=angular-star-rating.umd.js.map
diff --git a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js.map b/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js.map
deleted file mode 100644
index 7f3c0ad..0000000
--- a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.js.map
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "version": 3,
- "file": "angular-star-rating.umd.js",
- "sources": [
- "ng://angular-star-rating/out/src/angular-star-rating.module.ts",
- "ng://angular-star-rating/out/src/components/star-rating-control/star-rating-control.component.ts",
- "ng://angular-star-rating/out/src/components/star-rating/star-rating.component.ts",
- "ng://angular-star-rating/out/src/services/star-rating-config.service.ts",
- "ng://angular-star-rating/out/src/services/star-rating.ts",
- "ng://angular-star-rating/out/src/services/star-rating.utils.ts",
- "ng://angular-star-rating/out/src/interfaces/star-rating-config.interface.ts",
- "ng://angular-star-rating/node_modules/tslib/tslib.es6.js"
- ],
- "sourcesContent": [
- "import {CommonModule} from '@angular/common';\r\nimport {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {StarRatingComponent} from './components/star-rating/star-rating.component';\r\nimport {StarRatingControlComponent} from './components/star-rating-control/star-rating-control.component';\r\nimport {StarRatingConfigService} from './services/star-rating-config.service';\r\n\r\nconst DECLARATIONS = [\r\n StarRatingComponent,\r\n StarRatingControlComponent\r\n];\r\nconst EXPORTS = [DECLARATIONS];\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [DECLARATIONS],\r\n exports: [EXPORTS]\r\n})\r\nexport class StarRatingModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: [\r\n StarRatingConfigService\r\n ]\r\n };\r\n }\r\n\r\n static forChild(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: []\r\n };\r\n }\r\n}\r\n",
- "import {Component, EventEmitter, forwardRef} from '@angular/core';\r\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\nconst STAR_RATING_CONTROL_ACCESSOR = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => StarRatingControlComponent),\r\n multi: true\r\n};\r\n\r\n@Component({\r\n selector: 'star-rating-control',\r\n providers: [STAR_RATING_CONTROL_ACCESSOR],\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingControlComponent extends StarRating\r\n implements ControlValueAccessor {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n onTouch: Function;\r\n onModelChange: Function;\r\n private onModelChangeRegistered = false;\r\n private onTouchRegistered = false;\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnTouch() {\r\n if (this.onTouchRegistered) {\r\n this.onTouch();\r\n }\r\n }\r\n\r\n saveOnModelChange(value: number) {\r\n if (this.onModelChangeRegistered) {\r\n this.onModelChange(value);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n this.saveOnTouch();\r\n }\r\n\r\n //Focus events\r\n onBlur(event: FocusEvent) {\r\n this.focus = false;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n onFocus(event: FocusEvent) {\r\n this.focus = true;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n /**Form Control - ControlValueAccessor implementation**/\r\n\r\n writeValue(obj: any): void {\r\n this.rating = obj;\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onModelChange = fn;\r\n this.onModelChangeRegistered = true;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouch = fn;\r\n this.onTouchRegistered = true;\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n\r\n this.saveOnModelChange(this.rating);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {Component, EventEmitter} from '@angular/core';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\n@Component({\r\n selector: 'star-rating',\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingComponent extends StarRating {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n //update calculated Color\r\n this.setColor(true);\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarTypes,\r\n starRatingLabelPosition\r\n} from '../interfaces/star-rating-config.interface';\r\n\r\n/**\r\n * Configuration service for the StarRating component.\r\n * You can inject this service, typically in your root component, and customize the values of its properties in\r\n * order to provide default values for all the star ratings used in the application.\r\n */\r\nexport class StarRatingConfigService implements StarRatingConfig {\r\n _classEmpty = 'default-star-empty-icon';\r\n\r\n get classEmpty() {\r\n return this._classEmpty;\r\n }\r\n\r\n set classEmpty(classEmpty: string) {\r\n this._classEmpty = classEmpty;\r\n }\r\n\r\n private _classHalf = 'default-star-half-icon';\r\n\r\n get classHalf(): string {\r\n return this._classHalf;\r\n }\r\n\r\n set classHalf(classHalf: string) {\r\n this._classHalf = classHalf;\r\n }\r\n\r\n private _classFilled = 'default-star-filled-icon';\r\n\r\n get classFilled(): string {\r\n return this._classFilled;\r\n }\r\n\r\n set classFilled(classFilled: string) {\r\n this._classFilled = classFilled;\r\n }\r\n\r\n private _numOfStars = 5;\r\n\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(numOfStars: number) {\r\n this._numOfStars = numOfStars;\r\n }\r\n\r\n private _size: starRatingSizes = 'medium';\r\n\r\n get size(): starRatingSizes {\r\n return this._size;\r\n }\r\n\r\n set size(size: starRatingSizes) {\r\n this._size = size;\r\n }\r\n\r\n private _staticColor: starRatingColor;\r\n\r\n get staticColor(): starRatingColor {\r\n return this._staticColor;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n }\r\n\r\n private _labelPosition: starRatingLabelPosition = 'left';\r\n\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(labelPosition: starRatingLabelPosition) {\r\n this._labelPosition = labelPosition;\r\n }\r\n\r\n private _speed: starRatingSpeed = 'noticeable';\r\n\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(speed: starRatingSpeed) {\r\n this._speed = speed;\r\n }\r\n\r\n private _starType: starRatingStarTypes = 'svg';\r\n\r\n get starType(): starRatingStarTypes {\r\n return this._starType;\r\n }\r\n\r\n set starType(starType: starRatingStarTypes) {\r\n this._starType = starType;\r\n }\r\n\r\n private _assetsPath = 'assets/images/';\r\n\r\n get assetsPath(): string {\r\n return this._assetsPath;\r\n }\r\n\r\n set assetsPath(assetsPath: string) {\r\n this._assetsPath = assetsPath;\r\n }\r\n\r\n private _svgPath = this.assetsPath + 'star-rating.icons.svg';\r\n\r\n get svgPath(): string {\r\n return this._svgPath;\r\n }\r\n\r\n set svgPath(svgPath: string) {\r\n this._svgPath = svgPath;\r\n }\r\n\r\n private _svgEmptySymbolId = 'star-empty';\r\n\r\n get svgEmptySymbolId(): string {\r\n return this._svgEmptySymbolId;\r\n }\r\n\r\n set svgEmptySymbolId(svgEmptySymbolId: string) {\r\n this._svgEmptySymbolId = svgEmptySymbolId;\r\n }\r\n\r\n private _svgHalfSymbolId = 'star-half';\r\n\r\n get svgHalfSymbolId(): string {\r\n return this._svgHalfSymbolId;\r\n }\r\n\r\n set svgHalfSymbolId(svgHalfSymbolId: string) {\r\n this._svgHalfSymbolId = svgHalfSymbolId;\r\n }\r\n\r\n private _svgFilledSymbolId = 'star-filled';\r\n\r\n get svgFilledSymbolId(): string {\r\n return this._svgFilledSymbolId;\r\n }\r\n\r\n set svgFilledSymbolId(svgFilledSymbolId: string) {\r\n this._svgFilledSymbolId = svgFilledSymbolId;\r\n }\r\n\r\n private _svgPathEmpty: string = this.svgPath + '#' + this.svgEmptySymbolId;\r\n\r\n get svgPathEmpty(): string {\r\n return this._svgPathEmpty;\r\n }\r\n\r\n set svgPathEmpty(svgPathEmpty: string) {\r\n this._svgPathEmpty = svgPathEmpty;\r\n }\r\n\r\n private _svgPathHalf: string = this.svgPath + '#' + this.svgHalfSymbolId;\r\n\r\n get svgPathHalf(): string {\r\n return this._svgPathHalf;\r\n }\r\n\r\n set svgPathHalf(svgPathHalf: string) {\r\n this._svgPathHalf = svgPathHalf;\r\n }\r\n\r\n private _svgPathFilled: string = this.svgPath + '#' + this.svgFilledSymbolId;\r\n\r\n get svgPathFilled(): string {\r\n return this._svgPathFilled;\r\n }\r\n\r\n set svgPathFilled(svgPathFilled: string) {\r\n this._svgPathFilled = svgPathFilled;\r\n }\r\n\r\n getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n // if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n // calculate size of smallest fraction\r\n const fractionSize = numOfStars / 3;\r\n\r\n // apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingDirection,\r\n starRatingLabelPosition,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarSpace,\r\n starRatingStarTypes\r\n} from '../interfaces/star-rating-config.interface';\r\nimport { StarRatingConfigService } from './star-rating-config.service';\r\nimport { StarRatingUtils } from './star-rating.utils';\r\n\r\nexport class StarRating {\r\n protected config: StarRatingConfig;\r\n\r\n //CTRL ONLY\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n classEmpty: string;\r\n classHalf: string;\r\n classFilled: string;\r\n\r\n pathEmpty: string;\r\n pathHalf: string;\r\n pathFilled: string;\r\n\r\n color: starRatingColor;\r\n stars: Array;\r\n ratingAsInteger: number;\r\n halfStarVisible: boolean;\r\n\r\n /////////////////////////////////////////////\r\n\r\n\r\n set rating(value: number) {\r\n this.setRating(value);\r\n }\r\n\r\n /**\r\n * showHalfStars\r\n */\r\n protected _showHalfStars: boolean;\r\n get showHalfStars(): boolean {\r\n return this._showHalfStars;\r\n }\r\n\r\n set showHalfStars(value: boolean) {\r\n this._showHalfStars = !!value;\r\n\r\n //update halfStarVisible\r\n this.setHalfStarVisible();\r\n }\r\n\r\n /**\r\n * getColor\r\n */\r\n getColor: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * getHalfStarVisible\r\n */\r\n getHalfStarVisible: (rating: number) => boolean;\r\n /////////////////////////////////////////////\r\n\r\n //Inputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /**\r\n * id property to identify the DOM element\r\n */\r\n protected _id: string;\r\n get id(): string {\r\n return this._id;\r\n }\r\n\r\n set id(value: string) {\r\n this._id = value || '';\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * focus\r\n */\r\n protected _focus: boolean;\r\n get focus(): boolean {\r\n return this._focus;\r\n }\r\n\r\n set focus(value: boolean) {\r\n this._focus = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelText\r\n */\r\n protected _labelText: string;\r\n get labelText(): string {\r\n return this._labelText;\r\n }\r\n\r\n set labelText(value: string) {\r\n this._labelText = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelPosition\r\n */\r\n protected _labelPosition: starRatingLabelPosition;\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(value: starRatingLabelPosition) {\r\n this._labelPosition = value || this.config.labelPosition;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelVisible\r\n */\r\n protected _labelVisible: boolean;\r\n get labelVisible(): boolean {\r\n return this._labelVisible;\r\n }\r\n\r\n set labelVisible(value: boolean) {\r\n this._labelVisible = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverEnabled\r\n */\r\n protected _hoverEnabled: boolean;\r\n get hoverEnabled(): boolean {\r\n return this._hoverEnabled;\r\n }\r\n\r\n set hoverEnabled(value: boolean) {\r\n this._hoverEnabled = value !== undefined ? !!value : false;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * staticColor\r\n */\r\n protected _staticColor: starRatingColor;\r\n get staticColor(): starRatingColor {\r\n return this._staticColor || this.config.staticColor || undefined;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n\r\n //update color.\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * direction\r\n */\r\n protected _direction: starRatingDirection;\r\n get direction(): starRatingDirection {\r\n return this._direction;\r\n }\r\n\r\n set direction(value: starRatingDirection) {\r\n this._direction = value || undefined;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * numOfStars\r\n */\r\n protected _numOfStars: number;\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(value: number) {\r\n this._numOfStars = value > 0 ? value : this.config.numOfStars;\r\n\r\n //update stars array\r\n this.stars = StarRatingUtils.getStarsArray(this.numOfStars);\r\n\r\n //update color\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverRating\r\n */\r\n protected _hoverRating: number;\r\n get hoverRating(): number {\r\n return this._hoverRating;\r\n }\r\n\r\n set hoverRating(value: number) {\r\n this._hoverRating = value > 0 ? value : 0;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * speed\r\n */\r\n protected _speed: starRatingSpeed;\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(value: starRatingSpeed) {\r\n this._speed = value || this.config.speed;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * size\r\n */\r\n protected _size: starRatingSizes;\r\n get size(): starRatingSizes {\r\n return this._size || this.config.size;\r\n }\r\n\r\n set size(value: starRatingSizes) {\r\n this._size = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * starType\r\n */\r\n protected _starType: starRatingStarTypes;\r\n get starType(): starRatingStarTypes {\r\n return this._starType || this.config.starType;\r\n }\r\n\r\n set starType(value: starRatingStarTypes) {\r\n this._starType = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * space\r\n */\r\n protected _space: starRatingStarSpace;\r\n get space(): starRatingStarSpace {\r\n return this._space;\r\n }\r\n\r\n set space(value: starRatingStarSpace) {\r\n this._space = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * readOnly\r\n */\r\n protected _readOnly: boolean;\r\n get readOnly(): boolean {\r\n return this._readOnly;\r\n }\r\n\r\n set readOnly(value: boolean) {\r\n this._readOnly = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * disabled\r\n */\r\n protected _disabled: boolean;\r\n get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n\r\n set disabled(value: boolean) {\r\n this._disabled = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n private _step: number;\r\n get step(): number {\r\n return this._step;\r\n }\r\n\r\n set step(value: number) {\r\n this._step = value > 0 ? value : 1;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * rating\r\n */\r\n protected _rating: number;\r\n get rating(): number {\r\n return this._rating;\r\n }\r\n\r\n /**\r\n * setRating\r\n * I use a setter function instead of a set method to enable overrides for this function.\r\n * @param value\r\n */\r\n setRating(value: number) {\r\n //validate and apply newRating\r\n let newRating = 0;\r\n if (value >= 0 && value <= this.numOfStars) {\r\n newRating = value;\r\n }\r\n\r\n //limit max value to max number of stars\r\n if (value > this.numOfStars) {\r\n newRating = this.numOfStars;\r\n }\r\n this._rating = newRating;\r\n\r\n //update ratingAsInteger. rating parsed to int for the value-[n] modifier\r\n this.ratingAsInteger = parseInt(this._rating.toString(), 10);\r\n\r\n //update halfStarsVisible\r\n this.setHalfStarVisible();\r\n\r\n //update calculated Color\r\n this.setColor();\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n this.config = config;\r\n\r\n //set default ctrl props\r\n this.classEmpty = this.config.classEmpty;\r\n this.classHalf = this.config.classHalf;\r\n this.classFilled = this.config.classFilled;\r\n this.pathEmpty = this.config.svgPathEmpty;\r\n this.pathHalf = this.config.svgPathHalf;\r\n this.pathFilled = this.config.svgPathFilled;\r\n\r\n //set default Component Inputs\r\n if (\r\n 'getColor' in this.config &&\r\n typeof this.config.getColor === 'function'\r\n ) {\r\n this.getColor = this.config.getColor;\r\n }\r\n\r\n if (\r\n 'getHalfStarVisible' in this.config &&\r\n typeof this.config.getHalfStarVisible === 'function'\r\n ) {\r\n this.getHalfStarVisible = this.config.getHalfStarVisible;\r\n }\r\n\r\n this.numOfStars = this.config.numOfStars;\r\n this.rating = 0;\r\n this.step = 1;\r\n }\r\n\r\n svgVisible(): boolean {\r\n return this.starType === 'svg';\r\n }\r\n\r\n interactionPossible(): boolean {\r\n return !this.readOnly && !this.disabled;\r\n }\r\n\r\n setColor(useHoverValue = false): void {\r\n //check if custom function is given\r\n const ratingValue = useHoverValue ? this.hoverRating: this.rating;\r\n if (typeof this.getColor === 'function') {\r\n this.color = this.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n } else {\r\n this.color = StarRatingUtils.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n }\r\n }\r\n\r\n setHalfStarVisible(): void {\r\n //update halfStarVisible\r\n if (this.showHalfStars) {\r\n //check if custom function is given\r\n if (typeof this.getHalfStarVisible === 'function') {\r\n this.halfStarVisible = this.getHalfStarVisible(this.rating);\r\n } else {\r\n this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);\r\n }\r\n } else {\r\n this.halfStarVisible = false;\r\n }\r\n }\r\n\r\n getComponentClassNames(): string {\r\n const classNames: string[] = [];\r\n\r\n classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');\r\n classNames.push(this.halfStarVisible ? 'half' : '');\r\n classNames.push(this.hoverEnabled ? 'hover' : '');\r\n\r\n const hoverRating = this.hoverRating\r\n ? 'hover-' + this.hoverRating\r\n : 'hover-0';\r\n classNames.push(this.hoverEnabled ? hoverRating : '');\r\n\r\n classNames.push(this.space ? 'space-' + this.space : '');\r\n classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');\r\n classNames.push(this.color ? 'color-' + this.color : '');\r\n classNames.push(this.starType ? 'star-' + this.starType : '');\r\n classNames.push(this.speed);\r\n classNames.push(this.size);\r\n classNames.push(this.readOnly ? 'read-only' : '');\r\n classNames.push(this.disabled ? 'disabled' : '');\r\n classNames.push(this.direction ? 'direction-' + this.direction : '');\r\n\r\n return classNames.join(' ');\r\n }\r\n\r\n increment() {\r\n //increment to next higher step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);\r\n }\r\n\r\n decrement() {\r\n //decrement to next lower step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);\r\n }\r\n\r\n reset() {\r\n this.rating = 0;\r\n }\r\n}\r\n",
- "import { starRatingColor } from '../interfaces/star-rating-config.interface';\r\nexport class StarRatingUtils {\r\n //Static methods\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /*\r\n * getStarsArray\r\n *\r\n * returns an array of increasing numbers starting at 1\r\n *\r\n * @param numOfStars\r\n * @returns {Array}\r\n */\r\n static getStarsArray(numOfStars: number): Array {\r\n let stars: Array = [];\r\n for (let i = 0; i < numOfStars; i++) {\r\n stars.push(i + 1);\r\n }\r\n return stars;\r\n }\r\n\r\n /*\r\n * getHalfStarVisible\r\n *\r\n * Returns true if there should be a half star visible, and false if not.\r\n *\r\n * @param rating\r\n * @returns {boolean}\r\n */\r\n static getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n\r\n /*\r\n * getColor\r\n *\r\n * The default function for color calculation\r\n * based on the current rating and the the number of stars possible.\r\n * If a staticColor is set the function will use it as return value.\r\n *\r\n * @param rating\r\n * @param numOfStars\r\n * @param staticColor\r\n * @returns {starRatingColor}\r\n */\r\n static getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n //if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n //calculate size of smallest fraction\r\n let fractionSize = numOfStars / 3;\r\n\r\n //apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n /*\r\n * isDigitKeyEventCode\r\n * detects digit key event sodes\r\n * @param eventCode\r\n * @returns {boolean}\r\n */\r\n static isDigitKeyEventCode(eventCode: string): boolean {\r\n return eventCode.indexOf('Digit') === 0;\r\n }\r\n}\r\n",
- "export type starRatingSizes = 'small' | 'medium' | 'large';\r\nexport type starRatingColor = 'default' | 'negative' | 'ok' | 'positive';\r\nexport type starRatingSpeed = 'immediately' | 'noticeable' | 'slow';\r\nexport type starRatingLabelPosition = 'left' | 'right' | 'top' | 'bottom';\r\nexport type starRatingStarTypes = 'svg' | 'icon' | 'custom-icon';\r\nexport type starRatingStarSpace = 'no' | 'between' | 'around';\r\nexport type starRatingDirection = 'rtl' | 'ltr';\r\n\r\nexport class StarRatingConfig {\r\n // binding defaults\r\n numOfStars?: number;\r\n size?: starRatingSizes;\r\n speed?: starRatingSpeed;\r\n labelPosition?: starRatingLabelPosition;\r\n starType?: starRatingStarTypes;\r\n staticColor: starRatingColor;\r\n getColor?: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n getHalfStarVisible?: (rating: number) => boolean;\r\n // statics\r\n classEmpty?: string;\r\n classHalf?: string;\r\n classFilled?: string;\r\n assetsPath?: string;\r\n svgPath?: string;\r\n svgEmptySymbolId?: string;\r\n svgHalfSymbolId?: string;\r\n svgFilledSymbolId?: string;\r\n svgPathEmpty?: string;\r\n svgPathHalf?: string;\r\n svgPathFilled?: string;\r\n}\r\n",
- "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [0, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator];\r\n return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n"
- ],
- "names": [
- "CommonModule",
- "NgModule",
- "Component",
- "EventEmitter",
- "tslib_1.__extends",
- "forwardRef",
- "NG_VALUE_ACCESSOR"
- ],
- "mappings": ";;;;;;AOAA;;;;;;;;;;;;;AAgBA,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;KACpC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IAC5E,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAE/E,AAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,E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;;;;;;;;;;;;;;;"
-}
diff --git a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js b/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js
deleted file mode 100644
index f63af8c..0000000
--- a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("angular-star-rating",["exports","@angular/core","@angular/forms","@angular/common"],e):e(t["angular-star-rating"]={},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,n,e,i){"use strict";var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){},a=function(){function t(){}return t.getStarsArray=function(t){for(var e=[],n=0;nthis.numOfStars&&(e=this.numOfStars),this._rating=e,this.ratingAsInteger=parseInt(this._rating.toString(),10),this.setHalfStarVisible(),this.setColor()},t.prototype.svgVisible=function(){return"svg"===this.starType},t.prototype.interactionPossible=function(){return!this.readOnly&&!this.disabled},t.prototype.setColor=function(t){void 0===t&&(t=!1);var e=t?this.hoverRating:this.rating;"function"==typeof this.getColor?this.color=this.getColor(e,this.numOfStars,this.staticColor):this.color=a.getColor(e,this.numOfStars,this.staticColor)},t.prototype.setHalfStarVisible=function(){this.showHalfStars?"function"==typeof this.getHalfStarVisible?this.halfStarVisible=this.getHalfStarVisible(this.rating):this.halfStarVisible=a.getHalfStarVisible(this.rating):this.halfStarVisible=!1},t.prototype.getComponentClassNames=function(){var t=[];t.push(this.rating?"value-"+this.ratingAsInteger:"value-0"),t.push(this.halfStarVisible?"half":""),t.push(this.hoverEnabled?"hover":"");var e=this.hoverRating?"hover-"+this.hoverRating:"hover-0";return t.push(this.hoverEnabled?e:""),t.push(this.space?"space-"+this.space:""),t.push(this.labelPosition?"label-"+this.labelPosition:""),t.push(this.color?"color-"+this.color:""),t.push(this.starType?"star-"+this.starType:""),t.push(this.speed),t.push(this.size),t.push(this.readOnly?"read-only":""),t.push(this.disabled?"disabled":""),t.push(this.direction?"direction-"+this.direction:""),t.join(" ")},t.prototype.increment=function(){var t=Math.abs(this.rating%this.step);this.rating=this.rating+(0\n {{labelText}}
\n \n
\n \n \n \n \n \n \n
\n
\n\n'}]}],u.ctorParameters=function(){return[{type:c}]};var h={provide:e.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return f}),multi:!0},f=function(i){function t(t){var e=i.call(this,t)||this;return e.starClickChange=new n.EventEmitter,e.ratingChange=new n.EventEmitter,e.hoverRatingChange=new n.EventEmitter,e.onModelChangeRegistered=!1,e.onTouchRegistered=!1,e}return r(t,i),t.prototype.saveOnClick=function(t){this.starClickChange&&this.starClickChange.emit(t)},t.prototype.saveOnRatingChange=function(t){this.ratingChange&&this.ratingChange.emit(t)},t.prototype.saveOnHover=function(t){this.hoverRatingChange&&this.hoverRatingChange.emit(t)},t.prototype.saveOnTouch=function(){this.onTouchRegistered&&this.onTouch()},t.prototype.saveOnModelChange=function(t){this.onModelChangeRegistered&&this.onModelChange(t)},t.prototype.onKeyDown=function(t){var e=this;if(this.interactionPossible()){var n,i,s={Minus:function(){return e.decrement()},ArrowDown:function(){return e.decrement()},ArrowLeft:function(){return e.decrement()},Plus:function(){return e.increment()},ArrowRight:function(){return e.increment()},ArrowUp:function(){return e.increment()},Backspace:function(){return e.reset()},Delete:function(){return e.reset()},Digit0:function(){return e.reset()}};(s[t.code]||a.isDigitKeyEventCode(t.code))&&(a.isDigitKeyEventCode(t.code)?(n=t.code,i=parseInt(n.substr("Digit".length,n.length-1),10),e.rating=i):s[t.code](),t.preventDefault(),t.stopPropagation()),this.saveOnTouch()}},t.prototype.onBlur=function(t){this.focus=!1,t.preventDefault(),t.stopPropagation(),this.saveOnTouch()},t.prototype.onFocus=function(t){this.focus=!0,t.preventDefault(),t.stopPropagation(),this.saveOnTouch()},t.prototype.onStarHover=function(t){if(this.interactionPossible()&&this.hoverEnabled){this.hoverRating=t?parseInt(t.toString(),10):0;var e={hoverRating:this.hoverRating};this.saveOnHover(e)}},t.prototype.writeValue=function(t){this.rating=t},t.prototype.registerOnChange=function(t){this.onModelChange=t,this.onModelChangeRegistered=!0},t.prototype.registerOnTouched=function(t){this.onTouch=t,this.onTouchRegistered=!0},t.prototype.setRating=function(t){var e=this.rating;if(i.prototype.setRating.call(this,t),e!==this.rating){var n={rating:this.rating};this.saveOnRatingChange(n),this.saveOnModelChange(this.rating)}},t.prototype.onStarClicked=function(t){if(this.interactionPossible()){this.rating=t;var e={rating:this.rating};this.saveOnClick(e)}},t}(l);f.decorators=[{type:n.Component,args:[{selector:"star-rating-control",providers:[h],inputs:["getHalfStarVisible","getColor","showHalfStars","hoverEnabled","rating","step","disabled","readOnly","space","starType","size","speed","numOfStars","direction","staticColor","labelPosition","labelText","id"],outputs:["starClickChange","ratingChange","hoverRatingChange"],styles:[],template:'\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n'}]}],f.ctorParameters=function(){return[{type:c}]};var g=[u,f],p=[g],d=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[c]}},t.forChild=function(){return{ngModule:t,providers:[]}},t}();d.decorators=[{type:n.NgModule,args:[{imports:[i.CommonModule],declarations:[g],exports:[p]}]}],d.ctorParameters=function(){return[]},t.StarRatingConfig=o,t.StarRatingUtils=a,t.StarRating=l,t.StarRatingConfigService=c,t.StarRatingComponent=u,t.StarRatingControlComponent=f,t.StarRatingModule=d,Object.defineProperty(t,"__esModule",{value:!0})});
-//# sourceMappingURL=angular-star-rating.umd.min.js.map
diff --git a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js.map b/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js.map
deleted file mode 100644
index ec54459..0000000
--- a/@packaged/angular-star-rating/bundles/angular-star-rating.umd.min.js.map
+++ /dev/null
@@ -1,219 +0,0 @@
-{
- "version": 3,
- "file": "angular-star-rating.umd.min.js",
- "sources": [
- "ng://angular-star-rating/node_modules/tslib/tslib.es6.js",
- "ng://angular-star-rating/out/src/interfaces/star-rating-config.interface.ts",
- "ng://angular-star-rating/out/src/services/star-rating.utils.ts",
- "ng://angular-star-rating/out/src/services/star-rating.ts",
- "ng://angular-star-rating/out/src/services/star-rating-config.service.ts",
- "ng://angular-star-rating/out/src/components/star-rating/star-rating.component.ts",
- "ng://angular-star-rating/out/src/components/star-rating-control/star-rating-control.component.ts",
- "ng://angular-star-rating/out/src/angular-star-rating.module.ts"
- ],
- "sourcesContent": [
- "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [0, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator];\r\n return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n",
- "export type starRatingSizes = 'small' | 'medium' | 'large';\r\nexport type starRatingColor = 'default' | 'negative' | 'ok' | 'positive';\r\nexport type starRatingSpeed = 'immediately' | 'noticeable' | 'slow';\r\nexport type starRatingLabelPosition = 'left' | 'right' | 'top' | 'bottom';\r\nexport type starRatingStarTypes = 'svg' | 'icon' | 'custom-icon';\r\nexport type starRatingStarSpace = 'no' | 'between' | 'around';\r\nexport type starRatingDirection = 'rtl' | 'ltr';\r\n\r\nexport class StarRatingConfig {\r\n // binding defaults\r\n numOfStars?: number;\r\n size?: starRatingSizes;\r\n speed?: starRatingSpeed;\r\n labelPosition?: starRatingLabelPosition;\r\n starType?: starRatingStarTypes;\r\n staticColor: starRatingColor;\r\n getColor?: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n getHalfStarVisible?: (rating: number) => boolean;\r\n // statics\r\n classEmpty?: string;\r\n classHalf?: string;\r\n classFilled?: string;\r\n assetsPath?: string;\r\n svgPath?: string;\r\n svgEmptySymbolId?: string;\r\n svgHalfSymbolId?: string;\r\n svgFilledSymbolId?: string;\r\n svgPathEmpty?: string;\r\n svgPathHalf?: string;\r\n svgPathFilled?: string;\r\n}\r\n",
- "import { starRatingColor } from '../interfaces/star-rating-config.interface';\r\nexport class StarRatingUtils {\r\n //Static methods\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /*\r\n * getStarsArray\r\n *\r\n * returns an array of increasing numbers starting at 1\r\n *\r\n * @param numOfStars\r\n * @returns {Array}\r\n */\r\n static getStarsArray(numOfStars: number): Array {\r\n let stars: Array = [];\r\n for (let i = 0; i < numOfStars; i++) {\r\n stars.push(i + 1);\r\n }\r\n return stars;\r\n }\r\n\r\n /*\r\n * getHalfStarVisible\r\n *\r\n * Returns true if there should be a half star visible, and false if not.\r\n *\r\n * @param rating\r\n * @returns {boolean}\r\n */\r\n static getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n\r\n /*\r\n * getColor\r\n *\r\n * The default function for color calculation\r\n * based on the current rating and the the number of stars possible.\r\n * If a staticColor is set the function will use it as return value.\r\n *\r\n * @param rating\r\n * @param numOfStars\r\n * @param staticColor\r\n * @returns {starRatingColor}\r\n */\r\n static getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n //if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n //calculate size of smallest fraction\r\n let fractionSize = numOfStars / 3;\r\n\r\n //apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n /*\r\n * isDigitKeyEventCode\r\n * detects digit key event sodes\r\n * @param eventCode\r\n * @returns {boolean}\r\n */\r\n static isDigitKeyEventCode(eventCode: string): boolean {\r\n return eventCode.indexOf('Digit') === 0;\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingDirection,\r\n starRatingLabelPosition,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarSpace,\r\n starRatingStarTypes\r\n} from '../interfaces/star-rating-config.interface';\r\nimport { StarRatingConfigService } from './star-rating-config.service';\r\nimport { StarRatingUtils } from './star-rating.utils';\r\n\r\nexport class StarRating {\r\n protected config: StarRatingConfig;\r\n\r\n //CTRL ONLY\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n classEmpty: string;\r\n classHalf: string;\r\n classFilled: string;\r\n\r\n pathEmpty: string;\r\n pathHalf: string;\r\n pathFilled: string;\r\n\r\n color: starRatingColor;\r\n stars: Array;\r\n ratingAsInteger: number;\r\n halfStarVisible: boolean;\r\n\r\n /////////////////////////////////////////////\r\n\r\n\r\n set rating(value: number) {\r\n this.setRating(value);\r\n }\r\n\r\n /**\r\n * showHalfStars\r\n */\r\n protected _showHalfStars: boolean;\r\n get showHalfStars(): boolean {\r\n return this._showHalfStars;\r\n }\r\n\r\n set showHalfStars(value: boolean) {\r\n this._showHalfStars = !!value;\r\n\r\n //update halfStarVisible\r\n this.setHalfStarVisible();\r\n }\r\n\r\n /**\r\n * getColor\r\n */\r\n getColor: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * getHalfStarVisible\r\n */\r\n getHalfStarVisible: (rating: number) => boolean;\r\n /////////////////////////////////////////////\r\n\r\n //Inputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /**\r\n * id property to identify the DOM element\r\n */\r\n protected _id: string;\r\n get id(): string {\r\n return this._id;\r\n }\r\n\r\n set id(value: string) {\r\n this._id = value || '';\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * focus\r\n */\r\n protected _focus: boolean;\r\n get focus(): boolean {\r\n return this._focus;\r\n }\r\n\r\n set focus(value: boolean) {\r\n this._focus = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelText\r\n */\r\n protected _labelText: string;\r\n get labelText(): string {\r\n return this._labelText;\r\n }\r\n\r\n set labelText(value: string) {\r\n this._labelText = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelPosition\r\n */\r\n protected _labelPosition: starRatingLabelPosition;\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(value: starRatingLabelPosition) {\r\n this._labelPosition = value || this.config.labelPosition;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelVisible\r\n */\r\n protected _labelVisible: boolean;\r\n get labelVisible(): boolean {\r\n return this._labelVisible;\r\n }\r\n\r\n set labelVisible(value: boolean) {\r\n this._labelVisible = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverEnabled\r\n */\r\n protected _hoverEnabled: boolean;\r\n get hoverEnabled(): boolean {\r\n return this._hoverEnabled;\r\n }\r\n\r\n set hoverEnabled(value: boolean) {\r\n this._hoverEnabled = value !== undefined ? !!value : false;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * staticColor\r\n */\r\n protected _staticColor: starRatingColor;\r\n get staticColor(): starRatingColor {\r\n return this._staticColor || this.config.staticColor || undefined;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n\r\n //update color.\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * direction\r\n */\r\n protected _direction: starRatingDirection;\r\n get direction(): starRatingDirection {\r\n return this._direction;\r\n }\r\n\r\n set direction(value: starRatingDirection) {\r\n this._direction = value || undefined;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * numOfStars\r\n */\r\n protected _numOfStars: number;\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(value: number) {\r\n this._numOfStars = value > 0 ? value : this.config.numOfStars;\r\n\r\n //update stars array\r\n this.stars = StarRatingUtils.getStarsArray(this.numOfStars);\r\n\r\n //update color\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverRating\r\n */\r\n protected _hoverRating: number;\r\n get hoverRating(): number {\r\n return this._hoverRating;\r\n }\r\n\r\n set hoverRating(value: number) {\r\n this._hoverRating = value > 0 ? value : 0;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * speed\r\n */\r\n protected _speed: starRatingSpeed;\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(value: starRatingSpeed) {\r\n this._speed = value || this.config.speed;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * size\r\n */\r\n protected _size: starRatingSizes;\r\n get size(): starRatingSizes {\r\n return this._size || this.config.size;\r\n }\r\n\r\n set size(value: starRatingSizes) {\r\n this._size = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * starType\r\n */\r\n protected _starType: starRatingStarTypes;\r\n get starType(): starRatingStarTypes {\r\n return this._starType || this.config.starType;\r\n }\r\n\r\n set starType(value: starRatingStarTypes) {\r\n this._starType = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * space\r\n */\r\n protected _space: starRatingStarSpace;\r\n get space(): starRatingStarSpace {\r\n return this._space;\r\n }\r\n\r\n set space(value: starRatingStarSpace) {\r\n this._space = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * readOnly\r\n */\r\n protected _readOnly: boolean;\r\n get readOnly(): boolean {\r\n return this._readOnly;\r\n }\r\n\r\n set readOnly(value: boolean) {\r\n this._readOnly = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * disabled\r\n */\r\n protected _disabled: boolean;\r\n get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n\r\n set disabled(value: boolean) {\r\n this._disabled = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n private _step: number;\r\n get step(): number {\r\n return this._step;\r\n }\r\n\r\n set step(value: number) {\r\n this._step = value > 0 ? value : 1;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * rating\r\n */\r\n protected _rating: number;\r\n get rating(): number {\r\n return this._rating;\r\n }\r\n\r\n /**\r\n * setRating\r\n * I use a setter function instead of a set method to enable overrides for this function.\r\n * @param value\r\n */\r\n setRating(value: number) {\r\n //validate and apply newRating\r\n let newRating = 0;\r\n if (value >= 0 && value <= this.numOfStars) {\r\n newRating = value;\r\n }\r\n\r\n //limit max value to max number of stars\r\n if (value > this.numOfStars) {\r\n newRating = this.numOfStars;\r\n }\r\n this._rating = newRating;\r\n\r\n //update ratingAsInteger. rating parsed to int for the value-[n] modifier\r\n this.ratingAsInteger = parseInt(this._rating.toString(), 10);\r\n\r\n //update halfStarsVisible\r\n this.setHalfStarVisible();\r\n\r\n //update calculated Color\r\n this.setColor();\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n this.config = config;\r\n\r\n //set default ctrl props\r\n this.classEmpty = this.config.classEmpty;\r\n this.classHalf = this.config.classHalf;\r\n this.classFilled = this.config.classFilled;\r\n this.pathEmpty = this.config.svgPathEmpty;\r\n this.pathHalf = this.config.svgPathHalf;\r\n this.pathFilled = this.config.svgPathFilled;\r\n\r\n //set default Component Inputs\r\n if (\r\n 'getColor' in this.config &&\r\n typeof this.config.getColor === 'function'\r\n ) {\r\n this.getColor = this.config.getColor;\r\n }\r\n\r\n if (\r\n 'getHalfStarVisible' in this.config &&\r\n typeof this.config.getHalfStarVisible === 'function'\r\n ) {\r\n this.getHalfStarVisible = this.config.getHalfStarVisible;\r\n }\r\n\r\n this.numOfStars = this.config.numOfStars;\r\n this.rating = 0;\r\n this.step = 1;\r\n }\r\n\r\n svgVisible(): boolean {\r\n return this.starType === 'svg';\r\n }\r\n\r\n interactionPossible(): boolean {\r\n return !this.readOnly && !this.disabled;\r\n }\r\n\r\n setColor(useHoverValue = false): void {\r\n //check if custom function is given\r\n const ratingValue = useHoverValue ? this.hoverRating: this.rating;\r\n if (typeof this.getColor === 'function') {\r\n this.color = this.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n } else {\r\n this.color = StarRatingUtils.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n }\r\n }\r\n\r\n setHalfStarVisible(): void {\r\n //update halfStarVisible\r\n if (this.showHalfStars) {\r\n //check if custom function is given\r\n if (typeof this.getHalfStarVisible === 'function') {\r\n this.halfStarVisible = this.getHalfStarVisible(this.rating);\r\n } else {\r\n this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);\r\n }\r\n } else {\r\n this.halfStarVisible = false;\r\n }\r\n }\r\n\r\n getComponentClassNames(): string {\r\n const classNames: string[] = [];\r\n\r\n classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');\r\n classNames.push(this.halfStarVisible ? 'half' : '');\r\n classNames.push(this.hoverEnabled ? 'hover' : '');\r\n\r\n const hoverRating = this.hoverRating\r\n ? 'hover-' + this.hoverRating\r\n : 'hover-0';\r\n classNames.push(this.hoverEnabled ? hoverRating : '');\r\n\r\n classNames.push(this.space ? 'space-' + this.space : '');\r\n classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');\r\n classNames.push(this.color ? 'color-' + this.color : '');\r\n classNames.push(this.starType ? 'star-' + this.starType : '');\r\n classNames.push(this.speed);\r\n classNames.push(this.size);\r\n classNames.push(this.readOnly ? 'read-only' : '');\r\n classNames.push(this.disabled ? 'disabled' : '');\r\n classNames.push(this.direction ? 'direction-' + this.direction : '');\r\n\r\n return classNames.join(' ');\r\n }\r\n\r\n increment() {\r\n //increment to next higher step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);\r\n }\r\n\r\n decrement() {\r\n //decrement to next lower step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);\r\n }\r\n\r\n reset() {\r\n this.rating = 0;\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarTypes,\r\n starRatingLabelPosition\r\n} from '../interfaces/star-rating-config.interface';\r\n\r\n/**\r\n * Configuration service for the StarRating component.\r\n * You can inject this service, typically in your root component, and customize the values of its properties in\r\n * order to provide default values for all the star ratings used in the application.\r\n */\r\nexport class StarRatingConfigService implements StarRatingConfig {\r\n _classEmpty = 'default-star-empty-icon';\r\n\r\n get classEmpty() {\r\n return this._classEmpty;\r\n }\r\n\r\n set classEmpty(classEmpty: string) {\r\n this._classEmpty = classEmpty;\r\n }\r\n\r\n private _classHalf = 'default-star-half-icon';\r\n\r\n get classHalf(): string {\r\n return this._classHalf;\r\n }\r\n\r\n set classHalf(classHalf: string) {\r\n this._classHalf = classHalf;\r\n }\r\n\r\n private _classFilled = 'default-star-filled-icon';\r\n\r\n get classFilled(): string {\r\n return this._classFilled;\r\n }\r\n\r\n set classFilled(classFilled: string) {\r\n this._classFilled = classFilled;\r\n }\r\n\r\n private _numOfStars = 5;\r\n\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(numOfStars: number) {\r\n this._numOfStars = numOfStars;\r\n }\r\n\r\n private _size: starRatingSizes = 'medium';\r\n\r\n get size(): starRatingSizes {\r\n return this._size;\r\n }\r\n\r\n set size(size: starRatingSizes) {\r\n this._size = size;\r\n }\r\n\r\n private _staticColor: starRatingColor;\r\n\r\n get staticColor(): starRatingColor {\r\n return this._staticColor;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n }\r\n\r\n private _labelPosition: starRatingLabelPosition = 'left';\r\n\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(labelPosition: starRatingLabelPosition) {\r\n this._labelPosition = labelPosition;\r\n }\r\n\r\n private _speed: starRatingSpeed = 'noticeable';\r\n\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(speed: starRatingSpeed) {\r\n this._speed = speed;\r\n }\r\n\r\n private _starType: starRatingStarTypes = 'svg';\r\n\r\n get starType(): starRatingStarTypes {\r\n return this._starType;\r\n }\r\n\r\n set starType(starType: starRatingStarTypes) {\r\n this._starType = starType;\r\n }\r\n\r\n private _assetsPath = 'assets/images/';\r\n\r\n get assetsPath(): string {\r\n return this._assetsPath;\r\n }\r\n\r\n set assetsPath(assetsPath: string) {\r\n this._assetsPath = assetsPath;\r\n }\r\n\r\n private _svgPath = this.assetsPath + 'star-rating.icons.svg';\r\n\r\n get svgPath(): string {\r\n return this._svgPath;\r\n }\r\n\r\n set svgPath(svgPath: string) {\r\n this._svgPath = svgPath;\r\n }\r\n\r\n private _svgEmptySymbolId = 'star-empty';\r\n\r\n get svgEmptySymbolId(): string {\r\n return this._svgEmptySymbolId;\r\n }\r\n\r\n set svgEmptySymbolId(svgEmptySymbolId: string) {\r\n this._svgEmptySymbolId = svgEmptySymbolId;\r\n }\r\n\r\n private _svgHalfSymbolId = 'star-half';\r\n\r\n get svgHalfSymbolId(): string {\r\n return this._svgHalfSymbolId;\r\n }\r\n\r\n set svgHalfSymbolId(svgHalfSymbolId: string) {\r\n this._svgHalfSymbolId = svgHalfSymbolId;\r\n }\r\n\r\n private _svgFilledSymbolId = 'star-filled';\r\n\r\n get svgFilledSymbolId(): string {\r\n return this._svgFilledSymbolId;\r\n }\r\n\r\n set svgFilledSymbolId(svgFilledSymbolId: string) {\r\n this._svgFilledSymbolId = svgFilledSymbolId;\r\n }\r\n\r\n private _svgPathEmpty: string = this.svgPath + '#' + this.svgEmptySymbolId;\r\n\r\n get svgPathEmpty(): string {\r\n return this._svgPathEmpty;\r\n }\r\n\r\n set svgPathEmpty(svgPathEmpty: string) {\r\n this._svgPathEmpty = svgPathEmpty;\r\n }\r\n\r\n private _svgPathHalf: string = this.svgPath + '#' + this.svgHalfSymbolId;\r\n\r\n get svgPathHalf(): string {\r\n return this._svgPathHalf;\r\n }\r\n\r\n set svgPathHalf(svgPathHalf: string) {\r\n this._svgPathHalf = svgPathHalf;\r\n }\r\n\r\n private _svgPathFilled: string = this.svgPath + '#' + this.svgFilledSymbolId;\r\n\r\n get svgPathFilled(): string {\r\n return this._svgPathFilled;\r\n }\r\n\r\n set svgPathFilled(svgPathFilled: string) {\r\n this._svgPathFilled = svgPathFilled;\r\n }\r\n\r\n getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n // if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n // calculate size of smallest fraction\r\n const fractionSize = numOfStars / 3;\r\n\r\n // apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n}\r\n",
- "import {Component, EventEmitter} from '@angular/core';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\n@Component({\r\n selector: 'star-rating',\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingComponent extends StarRating {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n //update calculated Color\r\n this.setColor(true);\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {Component, EventEmitter, forwardRef} from '@angular/core';\r\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\nconst STAR_RATING_CONTROL_ACCESSOR = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => StarRatingControlComponent),\r\n multi: true\r\n};\r\n\r\n@Component({\r\n selector: 'star-rating-control',\r\n providers: [STAR_RATING_CONTROL_ACCESSOR],\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingControlComponent extends StarRating\r\n implements ControlValueAccessor {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n onTouch: Function;\r\n onModelChange: Function;\r\n private onModelChangeRegistered = false;\r\n private onTouchRegistered = false;\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnTouch() {\r\n if (this.onTouchRegistered) {\r\n this.onTouch();\r\n }\r\n }\r\n\r\n saveOnModelChange(value: number) {\r\n if (this.onModelChangeRegistered) {\r\n this.onModelChange(value);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n this.saveOnTouch();\r\n }\r\n\r\n //Focus events\r\n onBlur(event: FocusEvent) {\r\n this.focus = false;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n onFocus(event: FocusEvent) {\r\n this.focus = true;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n /**Form Control - ControlValueAccessor implementation**/\r\n\r\n writeValue(obj: any): void {\r\n this.rating = obj;\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onModelChange = fn;\r\n this.onModelChangeRegistered = true;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouch = fn;\r\n this.onTouchRegistered = true;\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n\r\n this.saveOnModelChange(this.rating);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {CommonModule} from '@angular/common';\r\nimport {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {StarRatingComponent} from './components/star-rating/star-rating.component';\r\nimport {StarRatingControlComponent} from './components/star-rating-control/star-rating-control.component';\r\nimport {StarRatingConfigService} from './services/star-rating-config.service';\r\n\r\nconst DECLARATIONS = [\r\n StarRatingComponent,\r\n StarRatingControlComponent\r\n];\r\nconst EXPORTS = [DECLARATIONS];\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [DECLARATIONS],\r\n exports: [EXPORTS]\r\n})\r\nexport class StarRatingModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: [\r\n StarRatingConfigService\r\n ]\r\n };\r\n }\r\n\r\n static forChild(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: []\r\n };\r\n }\r\n}\r\n"
- ],
- "names": [
- "extendStatics",
- "Object",
- "setPrototypeOf",
- "__proto__",
- "Array",
- "d",
- "b",
- "p",
- "hasOwnProperty",
- "__extends",
- "__",
- "this",
- "constructor",
- "prototype",
- "create",
- "StarRatingConfig",
- "StarRatingUtils",
- "getStarsArray",
- "numOfStars",
- "stars",
- "i",
- "push",
- "getHalfStarVisible",
- "rating",
- "Math",
- "abs",
- "getColor",
- "staticColor",
- "fractionSize",
- "color",
- "isDigitKeyEventCode",
- "eventCode",
- "indexOf",
- "StarRating",
- "config",
- "classEmpty",
- "classHalf",
- "classFilled",
- "pathEmpty",
- "svgPathEmpty",
- "pathHalf",
- "svgPathHalf",
- "pathFilled",
- "svgPathFilled",
- "step",
- "defineProperty",
- "get",
- "_rating",
- "set",
- "value",
- "setRating",
- "_showHalfStars",
- "setHalfStarVisible",
- "_id",
- "_focus",
- "_labelText",
- "_labelPosition",
- "labelPosition",
- "_labelVisible",
- "_hoverEnabled",
- "undefined",
- "_staticColor",
- "setColor",
- "_direction",
- "_numOfStars",
- "_hoverRating",
- "_speed",
- "speed",
- "_size",
- "size",
- "_starType",
- "starType",
- "_space",
- "_readOnly",
- "_disabled",
- "_step",
- "newRating",
- "ratingAsInteger",
- "parseInt",
- "toString",
- "svgVisible",
- "interactionPossible",
- "readOnly",
- "disabled",
- "useHoverValue",
- "ratingValue",
- "hoverRating",
- "showHalfStars",
- "halfStarVisible",
- "getComponentClassNames",
- "classNames",
- "hoverEnabled",
- "space",
- "direction",
- "join",
- "increment",
- "absDiff",
- "decrement",
- "reset",
- "StarRatingConfigService",
- "_classEmpty",
- "_classHalf",
- "_classFilled",
- "_assetsPath",
- "_svgPath",
- "assetsPath",
- "_svgEmptySymbolId",
- "_svgHalfSymbolId",
- "_svgFilledSymbolId",
- "_svgPathEmpty",
- "svgPath",
- "svgEmptySymbolId",
- "_svgPathHalf",
- "svgHalfSymbolId",
- "_svgPathFilled",
- "svgFilledSymbolId",
- "StarRatingComponent",
- "_super",
- "_this",
- "call",
- "starClickChange",
- "EventEmitter",
- "ratingChange",
- "hoverRatingChange",
- "tslib_1.__extends",
- "saveOnClick",
- "$event",
- "emit",
- "saveOnRatingChange",
- "saveOnHover",
- "onKeyDown",
- "event",
- "digit",
- "handlers",
- "Minus",
- "ArrowDown",
- "ArrowLeft",
- "Plus",
- "ArrowRight",
- "ArrowUp",
- "Backspace",
- "Delete",
- "Digit0",
- "substr",
- "length",
- "preventDefault",
- "stopPropagation",
- "onStarHover",
- "initValue",
- "onStarClicked",
- "onClickEventObject",
- "type",
- "Component",
- "args",
- "selector",
- "inputs",
- "outputs",
- "styles",
- "template",
- "STAR_RATING_CONTROL_ACCESSOR",
- "provide",
- "NG_VALUE_ACCESSOR",
- "useExisting",
- "forwardRef",
- "StarRatingControlComponent",
- "multi",
- "onModelChangeRegistered",
- "onTouchRegistered",
- "saveOnTouch",
- "onTouch",
- "saveOnModelChange",
- "onModelChange",
- "onBlur",
- "focus",
- "onFocus",
- "writeValue",
- "obj",
- "registerOnChange",
- "fn",
- "registerOnTouched",
- "providers",
- "DECLARATIONS",
- "EXPORTS",
- "StarRatingModule",
- "forRoot",
- "ngModule",
- "forChild",
- "NgModule",
- "imports",
- "CommonModule",
- "declarations",
- "exports"
- ],
- "mappings": "uYAgBA,IAAIA,EAAgBC,OAAOC,gBACtB,CAAEC,UAAW,cAAgBC,OAAS,SAAUC,EAAGC,GAAKD,EAAEF,UAAYG,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIC,KAAKD,EAAOA,EAAEE,eAAeD,KAAIF,EAAEE,GAAKD,EAAEC,KAEzE,SAAgBE,EAAUJ,EAAGC,GAEzB,SAASI,IAAOC,KAAKC,YAAcP,EADnCL,EAAcK,EAA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AFvJ,UAAAsK,kBAAE,SAAkBD,GAChBvK,KAAK8J,QAAUS,EACfvK,KAAK4J,mBAAoB,GAQ3BH,EAAFvJ,UAAAqC,UAAE,SAAUD,GACR,IAAMmG,EAAYzI,KAAKY,OAIvB,GAHA8F,EAAJxG,UAAUqC,UAAVqE,KAAA5G,KAAoBsC,GAGZmG,IAAczI,KAAKY,OAAQ,CAC7B,IAAMuG,EAA4B,CAAEvG,OAAQZ,KAAKY,QACjDZ,KAAKqH,mBAAmBF,GAExBnH,KAAK+J,kBAAkB/J,KAAKY,UAchC6I,EAAFvJ,UAAAwI,cAAE,SAAc9H,GAEZ,GAAKZ,KAAKsE,sBAAV,CAIAtE,KAAKY,OAASA,EAEd,IAAM+H,EAAiC,CACrC/H,OAAQZ,KAAKY,QAEfZ,KAAKkH,YAAYyB,OAtLrB,CAAgDrH,iBAxDhD,CAAAsH,KAACC,EAAAA,UAADC,KAAA,CAAW,CACTC,SAAU,sBACV0B,UAAW,CAACrB,GACZJ,OAAQ,CACN,qBACA,WACA,gBACA,eACA,SACA,OACA,WACA,WACA,QACA,WACA,OACA,QACA,aACA,YACA,cAEA,gBACA,YACA,MAEFC,QAAS,CAAC,kBAAmB,eAAgB,qBAC7CC,OAAQ,GACRC,SAAU,6xCAnCZ,CAAAP,KAAQpD,KCNR,IAMMkF,EAAe,CACnBjE,EACAgD,GAEIkB,EAAU,CAACD,GAOjBE,EAAA,WAAA,SAAAA,YACSA,EAATC,QAAE,WACE,MAAO,CACLC,SAAUF,EACVH,UAAW,CACTjF,KAKCoF,EAATG,SAAE,WACE,MAAO,CACLD,SAAUF,EACVH,UAAW,OAbjB,iBALA,CAAA7B,KAACoC,EAAAA,SAADlC,KAAA,CAAU,CACRmC,QAAS,CAACC,EAAAA,cACVC,aAAc,CAACT,GACfU,QAAS,CAACT"
-}
diff --git a/@packaged/angular-star-rating/esm2015/angular-star-rating.js b/@packaged/angular-star-rating/esm2015/angular-star-rating.js
deleted file mode 100644
index c18073b..0000000
--- a/@packaged/angular-star-rating/esm2015/angular-star-rating.js
+++ /dev/null
@@ -1,1266 +0,0 @@
-import { Component, EventEmitter, forwardRef, NgModule } from '@angular/core';
-import { NG_VALUE_ACCESSOR } from '@angular/forms';
-import { CommonModule } from '@angular/common';
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-class StarRatingConfig {
-}
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-class StarRatingUtils {
- /**
- * @param {?} numOfStars
- * @return {?}
- */
- static getStarsArray(numOfStars) {
- let /** @type {?} */ stars = [];
- for (let /** @type {?} */ i = 0; i < numOfStars; i++) {
- stars.push(i + 1);
- }
- return stars;
- }
- /**
- * @param {?} rating
- * @return {?}
- */
- static getHalfStarVisible(rating) {
- return Math.abs(rating % 1) > 0;
- }
- /**
- * @param {?} rating
- * @param {?} numOfStars
- * @param {?=} staticColor
- * @return {?}
- */
- static getColor(rating, numOfStars, staticColor) {
- rating = rating || 0;
- //if a fix color is set use this one
- if (staticColor) {
- return staticColor;
- }
- //calculate size of smallest fraction
- let /** @type {?} */ fractionSize = numOfStars / 3;
- //apply color by fraction
- let /** @type {?} */ color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- }
- /**
- * @param {?} eventCode
- * @return {?}
- */
- static isDigitKeyEventCode(eventCode) {
- return eventCode.indexOf('Digit') === 0;
- }
-}
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-class StarRating {
- /**
- * @param {?} value
- * @return {?}
- */
- set rating(value) {
- this.setRating(value);
- }
- /**
- * @return {?}
- */
- get showHalfStars() {
- return this._showHalfStars;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set showHalfStars(value) {
- this._showHalfStars = !!value;
- //update halfStarVisible
- this.setHalfStarVisible();
- }
- /**
- * @return {?}
- */
- get id() {
- return this._id;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set id(value) {
- this._id = value || '';
- }
- /**
- * @return {?}
- */
- get focus() {
- return this._focus;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set focus(value) {
- this._focus = !!value;
- }
- /**
- * @return {?}
- */
- get labelText() {
- return this._labelText;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set labelText(value) {
- this._labelText = value;
- }
- /**
- * @return {?}
- */
- get labelPosition() {
- return this._labelPosition;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set labelPosition(value) {
- this._labelPosition = value || this.config.labelPosition;
- }
- /**
- * @return {?}
- */
- get labelVisible() {
- return this._labelVisible;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set labelVisible(value) {
- this._labelVisible = !!value;
- }
- /**
- * @return {?}
- */
- get hoverEnabled() {
- return this._hoverEnabled;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set hoverEnabled(value) {
- this._hoverEnabled = value !== undefined ? !!value : false;
- }
- /**
- * @return {?}
- */
- get staticColor() {
- return this._staticColor || this.config.staticColor || undefined;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set staticColor(value) {
- this._staticColor = value;
- //update color.
- this.setColor();
- }
- /**
- * @return {?}
- */
- get direction() {
- return this._direction;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set direction(value) {
- this._direction = value || undefined;
- }
- /**
- * @return {?}
- */
- get numOfStars() {
- return this._numOfStars;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set numOfStars(value) {
- this._numOfStars = value > 0 ? value : this.config.numOfStars;
- //update stars array
- this.stars = StarRatingUtils.getStarsArray(this.numOfStars);
- //update color
- this.setColor();
- }
- /**
- * @return {?}
- */
- get hoverRating() {
- return this._hoverRating;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set hoverRating(value) {
- this._hoverRating = value > 0 ? value : 0;
- }
- /**
- * @return {?}
- */
- get speed() {
- return this._speed;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set speed(value) {
- this._speed = value || this.config.speed;
- }
- /**
- * @return {?}
- */
- get size() {
- return this._size || this.config.size;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set size(value) {
- this._size = value;
- }
- /**
- * @return {?}
- */
- get starType() {
- return this._starType || this.config.starType;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set starType(value) {
- this._starType = value;
- }
- /**
- * @return {?}
- */
- get space() {
- return this._space;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set space(value) {
- this._space = value;
- }
- /**
- * @return {?}
- */
- get readOnly() {
- return this._readOnly;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set readOnly(value) {
- this._readOnly = !!value;
- }
- /**
- * @return {?}
- */
- get disabled() {
- return this._disabled;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set disabled(value) {
- this._disabled = !!value;
- }
- /**
- * @return {?}
- */
- get step() {
- return this._step;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set step(value) {
- this._step = value > 0 ? value : 1;
- }
- /**
- * @return {?}
- */
- get rating() {
- return this._rating;
- }
- /**
- * setRating
- * I use a setter function instead of a set method to enable overrides for this function.
- * @param {?} value
- * @return {?}
- */
- setRating(value) {
- //validate and apply newRating
- let /** @type {?} */ newRating = 0;
- if (value >= 0 && value <= this.numOfStars) {
- newRating = value;
- }
- //limit max value to max number of stars
- if (value > this.numOfStars) {
- newRating = this.numOfStars;
- }
- this._rating = newRating;
- //update ratingAsInteger. rating parsed to int for the value-[n] modifier
- this.ratingAsInteger = parseInt(this._rating.toString(), 10);
- //update halfStarsVisible
- this.setHalfStarVisible();
- //update calculated Color
- this.setColor();
- }
- /**
- * @param {?} config
- */
- constructor(config) {
- this.config = config;
- //set default ctrl props
- this.classEmpty = this.config.classEmpty;
- this.classHalf = this.config.classHalf;
- this.classFilled = this.config.classFilled;
- this.pathEmpty = this.config.svgPathEmpty;
- this.pathHalf = this.config.svgPathHalf;
- this.pathFilled = this.config.svgPathFilled;
- //set default Component Inputs
- if ('getColor' in this.config &&
- typeof this.config.getColor === 'function') {
- this.getColor = this.config.getColor;
- }
- if ('getHalfStarVisible' in this.config &&
- typeof this.config.getHalfStarVisible === 'function') {
- this.getHalfStarVisible = this.config.getHalfStarVisible;
- }
- this.numOfStars = this.config.numOfStars;
- this.rating = 0;
- this.step = 1;
- }
- /**
- * @return {?}
- */
- svgVisible() {
- return this.starType === 'svg';
- }
- /**
- * @return {?}
- */
- interactionPossible() {
- return !this.readOnly && !this.disabled;
- }
- /**
- * @param {?=} useHoverValue
- * @return {?}
- */
- setColor(useHoverValue = false) {
- //check if custom function is given
- const /** @type {?} */ ratingValue = useHoverValue ? this.hoverRating : this.rating;
- if (typeof this.getColor === 'function') {
- this.color = this.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- else {
- this.color = StarRatingUtils.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- }
- /**
- * @return {?}
- */
- setHalfStarVisible() {
- //update halfStarVisible
- if (this.showHalfStars) {
- //check if custom function is given
- if (typeof this.getHalfStarVisible === 'function') {
- this.halfStarVisible = this.getHalfStarVisible(this.rating);
- }
- else {
- this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);
- }
- }
- else {
- this.halfStarVisible = false;
- }
- }
- /**
- * @return {?}
- */
- getComponentClassNames() {
- const /** @type {?} */ classNames = [];
- classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');
- classNames.push(this.halfStarVisible ? 'half' : '');
- classNames.push(this.hoverEnabled ? 'hover' : '');
- const /** @type {?} */ hoverRating = this.hoverRating
- ? 'hover-' + this.hoverRating
- : 'hover-0';
- classNames.push(this.hoverEnabled ? hoverRating : '');
- classNames.push(this.space ? 'space-' + this.space : '');
- classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');
- classNames.push(this.color ? 'color-' + this.color : '');
- classNames.push(this.starType ? 'star-' + this.starType : '');
- classNames.push(this.speed);
- classNames.push(this.size);
- classNames.push(this.readOnly ? 'read-only' : '');
- classNames.push(this.disabled ? 'disabled' : '');
- classNames.push(this.direction ? 'direction-' + this.direction : '');
- return classNames.join(' ');
- }
- /**
- * @return {?}
- */
- increment() {
- //increment to next higher step
- const /** @type {?} */ absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);
- }
- /**
- * @return {?}
- */
- decrement() {
- //decrement to next lower step
- const /** @type {?} */ absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);
- }
- /**
- * @return {?}
- */
- reset() {
- this.rating = 0;
- }
-}
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-/**
- * Configuration service for the StarRating component.
- * You can inject this service, typically in your root component, and customize the values of its properties in
- * order to provide default values for all the star ratings used in the application.
- */
-class StarRatingConfigService {
- constructor() {
- this._classEmpty = 'default-star-empty-icon';
- this._classHalf = 'default-star-half-icon';
- this._classFilled = 'default-star-filled-icon';
- this._numOfStars = 5;
- this._size = 'medium';
- this._labelPosition = 'left';
- this._speed = 'noticeable';
- this._starType = 'svg';
- this._assetsPath = 'assets/images/';
- this._svgPath = this.assetsPath + 'star-rating.icons.svg';
- this._svgEmptySymbolId = 'star-empty';
- this._svgHalfSymbolId = 'star-half';
- this._svgFilledSymbolId = 'star-filled';
- this._svgPathEmpty = this.svgPath + '#' + this.svgEmptySymbolId;
- this._svgPathHalf = this.svgPath + '#' + this.svgHalfSymbolId;
- this._svgPathFilled = this.svgPath + '#' + this.svgFilledSymbolId;
- }
- /**
- * @return {?}
- */
- get classEmpty() {
- return this._classEmpty;
- }
- /**
- * @param {?} classEmpty
- * @return {?}
- */
- set classEmpty(classEmpty) {
- this._classEmpty = classEmpty;
- }
- /**
- * @return {?}
- */
- get classHalf() {
- return this._classHalf;
- }
- /**
- * @param {?} classHalf
- * @return {?}
- */
- set classHalf(classHalf) {
- this._classHalf = classHalf;
- }
- /**
- * @return {?}
- */
- get classFilled() {
- return this._classFilled;
- }
- /**
- * @param {?} classFilled
- * @return {?}
- */
- set classFilled(classFilled) {
- this._classFilled = classFilled;
- }
- /**
- * @return {?}
- */
- get numOfStars() {
- return this._numOfStars;
- }
- /**
- * @param {?} numOfStars
- * @return {?}
- */
- set numOfStars(numOfStars) {
- this._numOfStars = numOfStars;
- }
- /**
- * @return {?}
- */
- get size() {
- return this._size;
- }
- /**
- * @param {?} size
- * @return {?}
- */
- set size(size) {
- this._size = size;
- }
- /**
- * @return {?}
- */
- get staticColor() {
- return this._staticColor;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- set staticColor(value) {
- this._staticColor = value;
- }
- /**
- * @return {?}
- */
- get labelPosition() {
- return this._labelPosition;
- }
- /**
- * @param {?} labelPosition
- * @return {?}
- */
- set labelPosition(labelPosition) {
- this._labelPosition = labelPosition;
- }
- /**
- * @return {?}
- */
- get speed() {
- return this._speed;
- }
- /**
- * @param {?} speed
- * @return {?}
- */
- set speed(speed) {
- this._speed = speed;
- }
- /**
- * @return {?}
- */
- get starType() {
- return this._starType;
- }
- /**
- * @param {?} starType
- * @return {?}
- */
- set starType(starType) {
- this._starType = starType;
- }
- /**
- * @return {?}
- */
- get assetsPath() {
- return this._assetsPath;
- }
- /**
- * @param {?} assetsPath
- * @return {?}
- */
- set assetsPath(assetsPath) {
- this._assetsPath = assetsPath;
- }
- /**
- * @return {?}
- */
- get svgPath() {
- return this._svgPath;
- }
- /**
- * @param {?} svgPath
- * @return {?}
- */
- set svgPath(svgPath) {
- this._svgPath = svgPath;
- }
- /**
- * @return {?}
- */
- get svgEmptySymbolId() {
- return this._svgEmptySymbolId;
- }
- /**
- * @param {?} svgEmptySymbolId
- * @return {?}
- */
- set svgEmptySymbolId(svgEmptySymbolId) {
- this._svgEmptySymbolId = svgEmptySymbolId;
- }
- /**
- * @return {?}
- */
- get svgHalfSymbolId() {
- return this._svgHalfSymbolId;
- }
- /**
- * @param {?} svgHalfSymbolId
- * @return {?}
- */
- set svgHalfSymbolId(svgHalfSymbolId) {
- this._svgHalfSymbolId = svgHalfSymbolId;
- }
- /**
- * @return {?}
- */
- get svgFilledSymbolId() {
- return this._svgFilledSymbolId;
- }
- /**
- * @param {?} svgFilledSymbolId
- * @return {?}
- */
- set svgFilledSymbolId(svgFilledSymbolId) {
- this._svgFilledSymbolId = svgFilledSymbolId;
- }
- /**
- * @return {?}
- */
- get svgPathEmpty() {
- return this._svgPathEmpty;
- }
- /**
- * @param {?} svgPathEmpty
- * @return {?}
- */
- set svgPathEmpty(svgPathEmpty) {
- this._svgPathEmpty = svgPathEmpty;
- }
- /**
- * @return {?}
- */
- get svgPathHalf() {
- return this._svgPathHalf;
- }
- /**
- * @param {?} svgPathHalf
- * @return {?}
- */
- set svgPathHalf(svgPathHalf) {
- this._svgPathHalf = svgPathHalf;
- }
- /**
- * @return {?}
- */
- get svgPathFilled() {
- return this._svgPathFilled;
- }
- /**
- * @param {?} svgPathFilled
- * @return {?}
- */
- set svgPathFilled(svgPathFilled) {
- this._svgPathFilled = svgPathFilled;
- }
- /**
- * @param {?} rating
- * @param {?} numOfStars
- * @param {?=} staticColor
- * @return {?}
- */
- getColor(rating, numOfStars, staticColor) {
- rating = rating || 0;
- // if a fix color is set use this one
- if (staticColor) {
- return staticColor;
- }
- // calculate size of smallest fraction
- const /** @type {?} */ fractionSize = numOfStars / 3;
- // apply color by fraction
- let /** @type {?} */ color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- }
- /**
- * @param {?} rating
- * @return {?}
- */
- getHalfStarVisible(rating) {
- return Math.abs(rating % 1) > 0;
- }
-}
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-class StarRatingComponent extends StarRating {
- /**
- * @param {?} config
- */
- constructor(config) {
- super(config);
- //Outputs
- this.starClickChange = new EventEmitter();
- this.ratingChange = new EventEmitter();
- this.hoverRatingChange = new EventEmitter();
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnClick($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnRatingChange($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnHover($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- }
- /**
- * ACCESSIBILITY *
- * @param {?} event
- * @return {?}
- */
- onKeyDown(event) {
- if (!this.interactionPossible()) {
- return;
- }
- const /** @type {?} */ handlers = {
- //Decrement
- Minus: () => this.decrement(),
- ArrowDown: () => this.decrement(),
- ArrowLeft: () => this.decrement(),
- //Increment
- Plus: () => this.increment(),
- ArrowRight: () => this.increment(),
- ArrowUp: () => this.increment(),
- //Reset
- Backspace: () => this.reset(),
- Delete: () => this.reset(),
- Digit0: () => this.reset()
- };
- const /** @type {?} */ handleDigits = (eventCode) => {
- const /** @type {?} */ dStr = 'Digit';
- const /** @type {?} */ digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- }
- /**
- * @param {?=} rating
- * @return {?}
- */
- onStarHover(rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- //update calculated Color
- this.setColor(true);
- //fire onHoverRatingChange event
- const /** @type {?} */ $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- }
- /**
- * @param {?} value
- * @return {?}
- */
- setRating(value) {
- const /** @type {?} */ initValue = this.rating;
- super.setRating(value);
- //if value changed trigger valueAccessor events and outputs
- if (initValue !== this.rating) {
- const /** @type {?} */ $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- }
- }
- /**
- * onStarClicked
- *
- * Is fired when a star is clicked. And updated the rating value.
- * This function returns if the disabled or readOnly
- * property is set. If provided it emits the onClick event
- * handler with the actual rating value.
- *
- * @param {?} rating
- * @return {?}
- */
- onStarClicked(rating) {
- //fire onClick event
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- const /** @type {?} */ onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- }
-}
-StarRatingComponent.decorators = [
- { type: Component, args: [{
- selector: 'star-rating',
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: `
-
{{labelText}}
-
-
-
-
-
-
-
-
-
-
-
-`
- },] },
-];
-/** @nocollapse */
-StarRatingComponent.ctorParameters = () => [
- { type: StarRatingConfigService, },
-];
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-const STAR_RATING_CONTROL_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(() => StarRatingControlComponent),
- multi: true
-};
-class StarRatingControlComponent extends StarRating {
- /**
- * @param {?} config
- */
- constructor(config) {
- super(config);
- //Outputs
- this.starClickChange = new EventEmitter();
- this.ratingChange = new EventEmitter();
- this.hoverRatingChange = new EventEmitter();
- this.onModelChangeRegistered = false;
- this.onTouchRegistered = false;
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnClick($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnRatingChange($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- }
- /**
- * @param {?} $event
- * @return {?}
- */
- saveOnHover($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- }
- /**
- * @return {?}
- */
- saveOnTouch() {
- if (this.onTouchRegistered) {
- this.onTouch();
- }
- }
- /**
- * @param {?} value
- * @return {?}
- */
- saveOnModelChange(value) {
- if (this.onModelChangeRegistered) {
- this.onModelChange(value);
- }
- }
- /**
- * ACCESSIBILITY *
- * @param {?} event
- * @return {?}
- */
- onKeyDown(event) {
- if (!this.interactionPossible()) {
- return;
- }
- const /** @type {?} */ handlers = {
- //Decrement
- Minus: () => this.decrement(),
- ArrowDown: () => this.decrement(),
- ArrowLeft: () => this.decrement(),
- //Increment
- Plus: () => this.increment(),
- ArrowRight: () => this.increment(),
- ArrowUp: () => this.increment(),
- //Reset
- Backspace: () => this.reset(),
- Delete: () => this.reset(),
- Digit0: () => this.reset()
- };
- const /** @type {?} */ handleDigits = (eventCode) => {
- const /** @type {?} */ dStr = 'Digit';
- const /** @type {?} */ digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- this.saveOnTouch();
- }
- /**
- * @param {?} event
- * @return {?}
- */
- onBlur(event) {
- this.focus = false;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- }
- /**
- * @param {?} event
- * @return {?}
- */
- onFocus(event) {
- this.focus = true;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- }
- /**
- * @param {?=} rating
- * @return {?}
- */
- onStarHover(rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- //fire onHoverRatingChange event
- const /** @type {?} */ $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- }
- /**
- * Form Control - ControlValueAccessor implementation*
- * @param {?} obj
- * @return {?}
- */
- writeValue(obj) {
- this.rating = obj;
- }
- /**
- * @param {?} fn
- * @return {?}
- */
- registerOnChange(fn) {
- this.onModelChange = fn;
- this.onModelChangeRegistered = true;
- }
- /**
- * @param {?} fn
- * @return {?}
- */
- registerOnTouched(fn) {
- this.onTouch = fn;
- this.onTouchRegistered = true;
- }
- /**
- * @param {?} value
- * @return {?}
- */
- setRating(value) {
- const /** @type {?} */ initValue = this.rating;
- super.setRating(value);
- //if value changed trigger valueAccessor events and outputs
- if (initValue !== this.rating) {
- const /** @type {?} */ $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- this.saveOnModelChange(this.rating);
- }
- }
- /**
- * onStarClicked
- *
- * Is fired when a star is clicked. And updated the rating value.
- * This function returns if the disabled or readOnly
- * property is set. If provided it emits the onClick event
- * handler with the actual rating value.
- *
- * @param {?} rating
- * @return {?}
- */
- onStarClicked(rating) {
- //fire onClick event
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- const /** @type {?} */ onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- }
-}
-StarRatingControlComponent.decorators = [
- { type: Component, args: [{
- selector: 'star-rating-control',
- providers: [STAR_RATING_CONTROL_ACCESSOR],
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: `
-
{{labelText}}
-
-
-
-
-
-
-
-
-
-
-
-`
- },] },
-];
-/** @nocollapse */
-StarRatingControlComponent.ctorParameters = () => [
- { type: StarRatingConfigService, },
-];
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-const DECLARATIONS = [
- StarRatingComponent,
- StarRatingControlComponent
-];
-const EXPORTS = [DECLARATIONS];
-class StarRatingModule {
- /**
- * @return {?}
- */
- static forRoot() {
- return {
- ngModule: StarRatingModule,
- providers: [
- StarRatingConfigService
- ]
- };
- }
- /**
- * @return {?}
- */
- static forChild() {
- return {
- ngModule: StarRatingModule,
- providers: []
- };
- }
-}
-StarRatingModule.decorators = [
- { type: NgModule, args: [{
- imports: [CommonModule],
- declarations: [DECLARATIONS],
- exports: [EXPORTS]
- },] },
-];
-/** @nocollapse */
-StarRatingModule.ctorParameters = () => [];
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-
-/**
- * @fileoverview added by tsickle
- * @suppress {checkTypes} checked by tsc
- */
-/**
- * Generated bundle index. Do not edit.
- */
-
-export { StarRatingConfig, StarRatingUtils, StarRating, StarRatingConfigService, StarRatingComponent, StarRatingControlComponent, StarRatingModule };
-//# sourceMappingURL=angular-star-rating.js.map
diff --git a/@packaged/angular-star-rating/esm2015/angular-star-rating.js.map b/@packaged/angular-star-rating/esm2015/angular-star-rating.js.map
deleted file mode 100644
index ebf4219..0000000
--- a/@packaged/angular-star-rating/esm2015/angular-star-rating.js.map
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "version": 3,
- "file": "angular-star-rating.js",
- "sources": [
- "ng://angular-star-rating/out/src/angular-star-rating.module.ts",
- "ng://angular-star-rating/out/src/components/star-rating-control/star-rating-control.component.ts",
- "ng://angular-star-rating/out/src/components/star-rating/star-rating.component.ts",
- "ng://angular-star-rating/out/src/services/star-rating-config.service.ts",
- "ng://angular-star-rating/out/src/services/star-rating.ts",
- "ng://angular-star-rating/out/src/services/star-rating.utils.ts",
- "ng://angular-star-rating/out/src/interfaces/star-rating-config.interface.ts"
- ],
- "sourcesContent": [
- "import {CommonModule} from '@angular/common';\r\nimport {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {StarRatingComponent} from './components/star-rating/star-rating.component';\r\nimport {StarRatingControlComponent} from './components/star-rating-control/star-rating-control.component';\r\nimport {StarRatingConfigService} from './services/star-rating-config.service';\r\n\r\nconst DECLARATIONS = [\r\n StarRatingComponent,\r\n StarRatingControlComponent\r\n];\r\nconst EXPORTS = [DECLARATIONS];\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [DECLARATIONS],\r\n exports: [EXPORTS]\r\n})\r\nexport class StarRatingModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: [\r\n StarRatingConfigService\r\n ]\r\n };\r\n }\r\n\r\n static forChild(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: []\r\n };\r\n }\r\n}\r\n",
- "import {Component, EventEmitter, forwardRef} from '@angular/core';\r\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\nconst STAR_RATING_CONTROL_ACCESSOR = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => StarRatingControlComponent),\r\n multi: true\r\n};\r\n\r\n@Component({\r\n selector: 'star-rating-control',\r\n providers: [STAR_RATING_CONTROL_ACCESSOR],\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingControlComponent extends StarRating\r\n implements ControlValueAccessor {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n onTouch: Function;\r\n onModelChange: Function;\r\n private onModelChangeRegistered = false;\r\n private onTouchRegistered = false;\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnTouch() {\r\n if (this.onTouchRegistered) {\r\n this.onTouch();\r\n }\r\n }\r\n\r\n saveOnModelChange(value: number) {\r\n if (this.onModelChangeRegistered) {\r\n this.onModelChange(value);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n this.saveOnTouch();\r\n }\r\n\r\n //Focus events\r\n onBlur(event: FocusEvent) {\r\n this.focus = false;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n onFocus(event: FocusEvent) {\r\n this.focus = true;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n /**Form Control - ControlValueAccessor implementation**/\r\n\r\n writeValue(obj: any): void {\r\n this.rating = obj;\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onModelChange = fn;\r\n this.onModelChangeRegistered = true;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouch = fn;\r\n this.onTouchRegistered = true;\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n\r\n this.saveOnModelChange(this.rating);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {Component, EventEmitter} from '@angular/core';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\n@Component({\r\n selector: 'star-rating',\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingComponent extends StarRating {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n //update calculated Color\r\n this.setColor(true);\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarTypes,\r\n starRatingLabelPosition\r\n} from '../interfaces/star-rating-config.interface';\r\n\r\n/**\r\n * Configuration service for the StarRating component.\r\n * You can inject this service, typically in your root component, and customize the values of its properties in\r\n * order to provide default values for all the star ratings used in the application.\r\n */\r\nexport class StarRatingConfigService implements StarRatingConfig {\r\n _classEmpty = 'default-star-empty-icon';\r\n\r\n get classEmpty() {\r\n return this._classEmpty;\r\n }\r\n\r\n set classEmpty(classEmpty: string) {\r\n this._classEmpty = classEmpty;\r\n }\r\n\r\n private _classHalf = 'default-star-half-icon';\r\n\r\n get classHalf(): string {\r\n return this._classHalf;\r\n }\r\n\r\n set classHalf(classHalf: string) {\r\n this._classHalf = classHalf;\r\n }\r\n\r\n private _classFilled = 'default-star-filled-icon';\r\n\r\n get classFilled(): string {\r\n return this._classFilled;\r\n }\r\n\r\n set classFilled(classFilled: string) {\r\n this._classFilled = classFilled;\r\n }\r\n\r\n private _numOfStars = 5;\r\n\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(numOfStars: number) {\r\n this._numOfStars = numOfStars;\r\n }\r\n\r\n private _size: starRatingSizes = 'medium';\r\n\r\n get size(): starRatingSizes {\r\n return this._size;\r\n }\r\n\r\n set size(size: starRatingSizes) {\r\n this._size = size;\r\n }\r\n\r\n private _staticColor: starRatingColor;\r\n\r\n get staticColor(): starRatingColor {\r\n return this._staticColor;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n }\r\n\r\n private _labelPosition: starRatingLabelPosition = 'left';\r\n\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(labelPosition: starRatingLabelPosition) {\r\n this._labelPosition = labelPosition;\r\n }\r\n\r\n private _speed: starRatingSpeed = 'noticeable';\r\n\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(speed: starRatingSpeed) {\r\n this._speed = speed;\r\n }\r\n\r\n private _starType: starRatingStarTypes = 'svg';\r\n\r\n get starType(): starRatingStarTypes {\r\n return this._starType;\r\n }\r\n\r\n set starType(starType: starRatingStarTypes) {\r\n this._starType = starType;\r\n }\r\n\r\n private _assetsPath = 'assets/images/';\r\n\r\n get assetsPath(): string {\r\n return this._assetsPath;\r\n }\r\n\r\n set assetsPath(assetsPath: string) {\r\n this._assetsPath = assetsPath;\r\n }\r\n\r\n private _svgPath = this.assetsPath + 'star-rating.icons.svg';\r\n\r\n get svgPath(): string {\r\n return this._svgPath;\r\n }\r\n\r\n set svgPath(svgPath: string) {\r\n this._svgPath = svgPath;\r\n }\r\n\r\n private _svgEmptySymbolId = 'star-empty';\r\n\r\n get svgEmptySymbolId(): string {\r\n return this._svgEmptySymbolId;\r\n }\r\n\r\n set svgEmptySymbolId(svgEmptySymbolId: string) {\r\n this._svgEmptySymbolId = svgEmptySymbolId;\r\n }\r\n\r\n private _svgHalfSymbolId = 'star-half';\r\n\r\n get svgHalfSymbolId(): string {\r\n return this._svgHalfSymbolId;\r\n }\r\n\r\n set svgHalfSymbolId(svgHalfSymbolId: string) {\r\n this._svgHalfSymbolId = svgHalfSymbolId;\r\n }\r\n\r\n private _svgFilledSymbolId = 'star-filled';\r\n\r\n get svgFilledSymbolId(): string {\r\n return this._svgFilledSymbolId;\r\n }\r\n\r\n set svgFilledSymbolId(svgFilledSymbolId: string) {\r\n this._svgFilledSymbolId = svgFilledSymbolId;\r\n }\r\n\r\n private _svgPathEmpty: string = this.svgPath + '#' + this.svgEmptySymbolId;\r\n\r\n get svgPathEmpty(): string {\r\n return this._svgPathEmpty;\r\n }\r\n\r\n set svgPathEmpty(svgPathEmpty: string) {\r\n this._svgPathEmpty = svgPathEmpty;\r\n }\r\n\r\n private _svgPathHalf: string = this.svgPath + '#' + this.svgHalfSymbolId;\r\n\r\n get svgPathHalf(): string {\r\n return this._svgPathHalf;\r\n }\r\n\r\n set svgPathHalf(svgPathHalf: string) {\r\n this._svgPathHalf = svgPathHalf;\r\n }\r\n\r\n private _svgPathFilled: string = this.svgPath + '#' + this.svgFilledSymbolId;\r\n\r\n get svgPathFilled(): string {\r\n return this._svgPathFilled;\r\n }\r\n\r\n set svgPathFilled(svgPathFilled: string) {\r\n this._svgPathFilled = svgPathFilled;\r\n }\r\n\r\n getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n // if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n // calculate size of smallest fraction\r\n const fractionSize = numOfStars / 3;\r\n\r\n // apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingDirection,\r\n starRatingLabelPosition,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarSpace,\r\n starRatingStarTypes\r\n} from '../interfaces/star-rating-config.interface';\r\nimport { StarRatingConfigService } from './star-rating-config.service';\r\nimport { StarRatingUtils } from './star-rating.utils';\r\n\r\nexport class StarRating {\r\n protected config: StarRatingConfig;\r\n\r\n //CTRL ONLY\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n classEmpty: string;\r\n classHalf: string;\r\n classFilled: string;\r\n\r\n pathEmpty: string;\r\n pathHalf: string;\r\n pathFilled: string;\r\n\r\n color: starRatingColor;\r\n stars: Array;\r\n ratingAsInteger: number;\r\n halfStarVisible: boolean;\r\n\r\n /////////////////////////////////////////////\r\n\r\n\r\n set rating(value: number) {\r\n this.setRating(value);\r\n }\r\n\r\n /**\r\n * showHalfStars\r\n */\r\n protected _showHalfStars: boolean;\r\n get showHalfStars(): boolean {\r\n return this._showHalfStars;\r\n }\r\n\r\n set showHalfStars(value: boolean) {\r\n this._showHalfStars = !!value;\r\n\r\n //update halfStarVisible\r\n this.setHalfStarVisible();\r\n }\r\n\r\n /**\r\n * getColor\r\n */\r\n getColor: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * getHalfStarVisible\r\n */\r\n getHalfStarVisible: (rating: number) => boolean;\r\n /////////////////////////////////////////////\r\n\r\n //Inputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /**\r\n * id property to identify the DOM element\r\n */\r\n protected _id: string;\r\n get id(): string {\r\n return this._id;\r\n }\r\n\r\n set id(value: string) {\r\n this._id = value || '';\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * focus\r\n */\r\n protected _focus: boolean;\r\n get focus(): boolean {\r\n return this._focus;\r\n }\r\n\r\n set focus(value: boolean) {\r\n this._focus = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelText\r\n */\r\n protected _labelText: string;\r\n get labelText(): string {\r\n return this._labelText;\r\n }\r\n\r\n set labelText(value: string) {\r\n this._labelText = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelPosition\r\n */\r\n protected _labelPosition: starRatingLabelPosition;\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(value: starRatingLabelPosition) {\r\n this._labelPosition = value || this.config.labelPosition;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelVisible\r\n */\r\n protected _labelVisible: boolean;\r\n get labelVisible(): boolean {\r\n return this._labelVisible;\r\n }\r\n\r\n set labelVisible(value: boolean) {\r\n this._labelVisible = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverEnabled\r\n */\r\n protected _hoverEnabled: boolean;\r\n get hoverEnabled(): boolean {\r\n return this._hoverEnabled;\r\n }\r\n\r\n set hoverEnabled(value: boolean) {\r\n this._hoverEnabled = value !== undefined ? !!value : false;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * staticColor\r\n */\r\n protected _staticColor: starRatingColor;\r\n get staticColor(): starRatingColor {\r\n return this._staticColor || this.config.staticColor || undefined;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n\r\n //update color.\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * direction\r\n */\r\n protected _direction: starRatingDirection;\r\n get direction(): starRatingDirection {\r\n return this._direction;\r\n }\r\n\r\n set direction(value: starRatingDirection) {\r\n this._direction = value || undefined;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * numOfStars\r\n */\r\n protected _numOfStars: number;\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(value: number) {\r\n this._numOfStars = value > 0 ? value : this.config.numOfStars;\r\n\r\n //update stars array\r\n this.stars = StarRatingUtils.getStarsArray(this.numOfStars);\r\n\r\n //update color\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverRating\r\n */\r\n protected _hoverRating: number;\r\n get hoverRating(): number {\r\n return this._hoverRating;\r\n }\r\n\r\n set hoverRating(value: number) {\r\n this._hoverRating = value > 0 ? value : 0;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * speed\r\n */\r\n protected _speed: starRatingSpeed;\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(value: starRatingSpeed) {\r\n this._speed = value || this.config.speed;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * size\r\n */\r\n protected _size: starRatingSizes;\r\n get size(): starRatingSizes {\r\n return this._size || this.config.size;\r\n }\r\n\r\n set size(value: starRatingSizes) {\r\n this._size = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * starType\r\n */\r\n protected _starType: starRatingStarTypes;\r\n get starType(): starRatingStarTypes {\r\n return this._starType || this.config.starType;\r\n }\r\n\r\n set starType(value: starRatingStarTypes) {\r\n this._starType = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * space\r\n */\r\n protected _space: starRatingStarSpace;\r\n get space(): starRatingStarSpace {\r\n return this._space;\r\n }\r\n\r\n set space(value: starRatingStarSpace) {\r\n this._space = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * readOnly\r\n */\r\n protected _readOnly: boolean;\r\n get readOnly(): boolean {\r\n return this._readOnly;\r\n }\r\n\r\n set readOnly(value: boolean) {\r\n this._readOnly = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * disabled\r\n */\r\n protected _disabled: boolean;\r\n get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n\r\n set disabled(value: boolean) {\r\n this._disabled = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n private _step: number;\r\n get step(): number {\r\n return this._step;\r\n }\r\n\r\n set step(value: number) {\r\n this._step = value > 0 ? value : 1;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * rating\r\n */\r\n protected _rating: number;\r\n get rating(): number {\r\n return this._rating;\r\n }\r\n\r\n /**\r\n * setRating\r\n * I use a setter function instead of a set method to enable overrides for this function.\r\n * @param value\r\n */\r\n setRating(value: number) {\r\n //validate and apply newRating\r\n let newRating = 0;\r\n if (value >= 0 && value <= this.numOfStars) {\r\n newRating = value;\r\n }\r\n\r\n //limit max value to max number of stars\r\n if (value > this.numOfStars) {\r\n newRating = this.numOfStars;\r\n }\r\n this._rating = newRating;\r\n\r\n //update ratingAsInteger. rating parsed to int for the value-[n] modifier\r\n this.ratingAsInteger = parseInt(this._rating.toString(), 10);\r\n\r\n //update halfStarsVisible\r\n this.setHalfStarVisible();\r\n\r\n //update calculated Color\r\n this.setColor();\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n this.config = config;\r\n\r\n //set default ctrl props\r\n this.classEmpty = this.config.classEmpty;\r\n this.classHalf = this.config.classHalf;\r\n this.classFilled = this.config.classFilled;\r\n this.pathEmpty = this.config.svgPathEmpty;\r\n this.pathHalf = this.config.svgPathHalf;\r\n this.pathFilled = this.config.svgPathFilled;\r\n\r\n //set default Component Inputs\r\n if (\r\n 'getColor' in this.config &&\r\n typeof this.config.getColor === 'function'\r\n ) {\r\n this.getColor = this.config.getColor;\r\n }\r\n\r\n if (\r\n 'getHalfStarVisible' in this.config &&\r\n typeof this.config.getHalfStarVisible === 'function'\r\n ) {\r\n this.getHalfStarVisible = this.config.getHalfStarVisible;\r\n }\r\n\r\n this.numOfStars = this.config.numOfStars;\r\n this.rating = 0;\r\n this.step = 1;\r\n }\r\n\r\n svgVisible(): boolean {\r\n return this.starType === 'svg';\r\n }\r\n\r\n interactionPossible(): boolean {\r\n return !this.readOnly && !this.disabled;\r\n }\r\n\r\n setColor(useHoverValue = false): void {\r\n //check if custom function is given\r\n const ratingValue = useHoverValue ? this.hoverRating: this.rating;\r\n if (typeof this.getColor === 'function') {\r\n this.color = this.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n } else {\r\n this.color = StarRatingUtils.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n }\r\n }\r\n\r\n setHalfStarVisible(): void {\r\n //update halfStarVisible\r\n if (this.showHalfStars) {\r\n //check if custom function is given\r\n if (typeof this.getHalfStarVisible === 'function') {\r\n this.halfStarVisible = this.getHalfStarVisible(this.rating);\r\n } else {\r\n this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);\r\n }\r\n } else {\r\n this.halfStarVisible = false;\r\n }\r\n }\r\n\r\n getComponentClassNames(): string {\r\n const classNames: string[] = [];\r\n\r\n classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');\r\n classNames.push(this.halfStarVisible ? 'half' : '');\r\n classNames.push(this.hoverEnabled ? 'hover' : '');\r\n\r\n const hoverRating = this.hoverRating\r\n ? 'hover-' + this.hoverRating\r\n : 'hover-0';\r\n classNames.push(this.hoverEnabled ? hoverRating : '');\r\n\r\n classNames.push(this.space ? 'space-' + this.space : '');\r\n classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');\r\n classNames.push(this.color ? 'color-' + this.color : '');\r\n classNames.push(this.starType ? 'star-' + this.starType : '');\r\n classNames.push(this.speed);\r\n classNames.push(this.size);\r\n classNames.push(this.readOnly ? 'read-only' : '');\r\n classNames.push(this.disabled ? 'disabled' : '');\r\n classNames.push(this.direction ? 'direction-' + this.direction : '');\r\n\r\n return classNames.join(' ');\r\n }\r\n\r\n increment() {\r\n //increment to next higher step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);\r\n }\r\n\r\n decrement() {\r\n //decrement to next lower step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);\r\n }\r\n\r\n reset() {\r\n this.rating = 0;\r\n }\r\n}\r\n",
- "import { starRatingColor } from '../interfaces/star-rating-config.interface';\r\nexport class StarRatingUtils {\r\n //Static methods\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /*\r\n * getStarsArray\r\n *\r\n * returns an array of increasing numbers starting at 1\r\n *\r\n * @param numOfStars\r\n * @returns {Array}\r\n */\r\n static getStarsArray(numOfStars: number): Array {\r\n let stars: Array = [];\r\n for (let i = 0; i < numOfStars; i++) {\r\n stars.push(i + 1);\r\n }\r\n return stars;\r\n }\r\n\r\n /*\r\n * getHalfStarVisible\r\n *\r\n * Returns true if there should be a half star visible, and false if not.\r\n *\r\n * @param rating\r\n * @returns {boolean}\r\n */\r\n static getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n\r\n /*\r\n * getColor\r\n *\r\n * The default function for color calculation\r\n * based on the current rating and the the number of stars possible.\r\n * If a staticColor is set the function will use it as return value.\r\n *\r\n * @param rating\r\n * @param numOfStars\r\n * @param staticColor\r\n * @returns {starRatingColor}\r\n */\r\n static getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n //if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n //calculate size of smallest fraction\r\n let fractionSize = numOfStars / 3;\r\n\r\n //apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n /*\r\n * isDigitKeyEventCode\r\n * detects digit key event sodes\r\n * @param eventCode\r\n * @returns {boolean}\r\n */\r\n static isDigitKeyEventCode(eventCode: string): boolean {\r\n return eventCode.indexOf('Digit') === 0;\r\n }\r\n}\r\n",
- "export type starRatingSizes = 'small' | 'medium' | 'large';\r\nexport type starRatingColor = 'default' | 'negative' | 'ok' | 'positive';\r\nexport type starRatingSpeed = 'immediately' | 'noticeable' | 'slow';\r\nexport type starRatingLabelPosition = 'left' | 'right' | 'top' | 'bottom';\r\nexport type starRatingStarTypes = 'svg' | 'icon' | 'custom-icon';\r\nexport type starRatingStarSpace = 'no' | 'between' | 'around';\r\nexport type starRatingDirection = 'rtl' | 'ltr';\r\n\r\nexport class StarRatingConfig {\r\n // binding defaults\r\n numOfStars?: number;\r\n size?: starRatingSizes;\r\n speed?: starRatingSpeed;\r\n labelPosition?: starRatingLabelPosition;\r\n starType?: starRatingStarTypes;\r\n staticColor: starRatingColor;\r\n getColor?: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n getHalfStarVisible?: (rating: number) => boolean;\r\n // statics\r\n classEmpty?: string;\r\n classHalf?: string;\r\n classFilled?: string;\r\n assetsPath?: string;\r\n svgPath?: string;\r\n svgEmptySymbolId?: string;\r\n svgHalfSymbolId?: string;\r\n svgFilledSymbolId?: string;\r\n svgPathEmpty?: string;\r\n svgPathHalf?: string;\r\n svgPathFilled?: string;\r\n}\r\n"
- ],
- "names": [],
- "mappings": ";;;;;;;;AMQA,AAAA,MAAA,gBAAA,CAAA;CA0BC;;;;;;ADjCD,AAAA,MAAA,eAAA,CAAA;;;;;IAYE,OAAO,aAAa,CAAC,UAAkB,EAAzC;QACI,qBAAI,KAAK,GAAkB,EAAE,CAAC;QAC9B,KAAK,qBAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;YACnC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,C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S,EAAE;gBACT,uBAAuB;aACxB;SACF,CAAC;KACH;;;;IAED,OAAO,QAAQ,GAAjB;QACI,OAAO;YACL,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,EAAE;SACd,CAAC;KACH;;;IApBH,EAAA,IAAA,EAAC,QAAQ,EAAT,IAAA,EAAA,CAAU;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,OAAO,EAAE,CAAC,OAAO,CAAC;aACnB,EAAD,EAAA;;;;;;;;;;;;;;;;;;;;"
-}
diff --git a/@packaged/angular-star-rating/esm5/angular-star-rating.js b/@packaged/angular-star-rating/esm5/angular-star-rating.js
deleted file mode 100644
index feca5e3..0000000
--- a/@packaged/angular-star-rating/esm5/angular-star-rating.js
+++ /dev/null
@@ -1,859 +0,0 @@
-import { __extends } from 'tslib';
-import { Component, EventEmitter, forwardRef, NgModule } from '@angular/core';
-import { NG_VALUE_ACCESSOR } from '@angular/forms';
-import { CommonModule } from '@angular/common';
-
-var StarRatingConfig = /** @class */ (function () {
- function StarRatingConfig() {
- }
- return StarRatingConfig;
-}());
-var StarRatingUtils = /** @class */ (function () {
- function StarRatingUtils() {
- }
- StarRatingUtils.getStarsArray = function (numOfStars) {
- var stars = [];
- for (var i = 0; i < numOfStars; i++) {
- stars.push(i + 1);
- }
- return stars;
- };
- StarRatingUtils.getHalfStarVisible = function (rating) {
- return Math.abs(rating % 1) > 0;
- };
- StarRatingUtils.getColor = function (rating, numOfStars, staticColor) {
- rating = rating || 0;
- if (staticColor) {
- return staticColor;
- }
- var fractionSize = numOfStars / 3;
- var color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- };
- StarRatingUtils.isDigitKeyEventCode = function (eventCode) {
- return eventCode.indexOf('Digit') === 0;
- };
- return StarRatingUtils;
-}());
-var StarRating = /** @class */ (function () {
- function StarRating(config) {
- this.config = config;
- this.classEmpty = this.config.classEmpty;
- this.classHalf = this.config.classHalf;
- this.classFilled = this.config.classFilled;
- this.pathEmpty = this.config.svgPathEmpty;
- this.pathHalf = this.config.svgPathHalf;
- this.pathFilled = this.config.svgPathFilled;
- if ('getColor' in this.config &&
- typeof this.config.getColor === 'function') {
- this.getColor = this.config.getColor;
- }
- if ('getHalfStarVisible' in this.config &&
- typeof this.config.getHalfStarVisible === 'function') {
- this.getHalfStarVisible = this.config.getHalfStarVisible;
- }
- this.numOfStars = this.config.numOfStars;
- this.rating = 0;
- this.step = 1;
- }
- Object.defineProperty(StarRating.prototype, "rating", {
- get: function () {
- return this._rating;
- },
- set: function (value) {
- this.setRating(value);
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "showHalfStars", {
- get: function () {
- return this._showHalfStars;
- },
- set: function (value) {
- this._showHalfStars = !!value;
- this.setHalfStarVisible();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "id", {
- get: function () {
- return this._id;
- },
- set: function (value) {
- this._id = value || '';
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "focus", {
- get: function () {
- return this._focus;
- },
- set: function (value) {
- this._focus = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelText", {
- get: function () {
- return this._labelText;
- },
- set: function (value) {
- this._labelText = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelPosition", {
- get: function () {
- return this._labelPosition;
- },
- set: function (value) {
- this._labelPosition = value || this.config.labelPosition;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "labelVisible", {
- get: function () {
- return this._labelVisible;
- },
- set: function (value) {
- this._labelVisible = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "hoverEnabled", {
- get: function () {
- return this._hoverEnabled;
- },
- set: function (value) {
- this._hoverEnabled = value !== undefined ? !!value : false;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "staticColor", {
- get: function () {
- return this._staticColor || this.config.staticColor || undefined;
- },
- set: function (value) {
- this._staticColor = value;
- this.setColor();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "direction", {
- get: function () {
- return this._direction;
- },
- set: function (value) {
- this._direction = value || undefined;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "numOfStars", {
- get: function () {
- return this._numOfStars;
- },
- set: function (value) {
- this._numOfStars = value > 0 ? value : this.config.numOfStars;
- this.stars = StarRatingUtils.getStarsArray(this.numOfStars);
- this.setColor();
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "hoverRating", {
- get: function () {
- return this._hoverRating;
- },
- set: function (value) {
- this._hoverRating = value > 0 ? value : 0;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "speed", {
- get: function () {
- return this._speed;
- },
- set: function (value) {
- this._speed = value || this.config.speed;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "size", {
- get: function () {
- return this._size || this.config.size;
- },
- set: function (value) {
- this._size = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "starType", {
- get: function () {
- return this._starType || this.config.starType;
- },
- set: function (value) {
- this._starType = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "space", {
- get: function () {
- return this._space;
- },
- set: function (value) {
- this._space = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "readOnly", {
- get: function () {
- return this._readOnly;
- },
- set: function (value) {
- this._readOnly = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "disabled", {
- get: function () {
- return this._disabled;
- },
- set: function (value) {
- this._disabled = !!value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRating.prototype, "step", {
- get: function () {
- return this._step;
- },
- set: function (value) {
- this._step = value > 0 ? value : 1;
- },
- enumerable: true,
- configurable: true
- });
- StarRating.prototype.setRating = function (value) {
- var newRating = 0;
- if (value >= 0 && value <= this.numOfStars) {
- newRating = value;
- }
- if (value > this.numOfStars) {
- newRating = this.numOfStars;
- }
- this._rating = newRating;
- this.ratingAsInteger = parseInt(this._rating.toString(), 10);
- this.setHalfStarVisible();
- this.setColor();
- };
- StarRating.prototype.svgVisible = function () {
- return this.starType === 'svg';
- };
- StarRating.prototype.interactionPossible = function () {
- return !this.readOnly && !this.disabled;
- };
- StarRating.prototype.setColor = function (useHoverValue) {
- if (useHoverValue === void 0) { useHoverValue = false; }
- var ratingValue = useHoverValue ? this.hoverRating : this.rating;
- if (typeof this.getColor === 'function') {
- this.color = this.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- else {
- this.color = StarRatingUtils.getColor(ratingValue, this.numOfStars, this.staticColor);
- }
- };
- StarRating.prototype.setHalfStarVisible = function () {
- if (this.showHalfStars) {
- if (typeof this.getHalfStarVisible === 'function') {
- this.halfStarVisible = this.getHalfStarVisible(this.rating);
- }
- else {
- this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);
- }
- }
- else {
- this.halfStarVisible = false;
- }
- };
- StarRating.prototype.getComponentClassNames = function () {
- var classNames = [];
- classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');
- classNames.push(this.halfStarVisible ? 'half' : '');
- classNames.push(this.hoverEnabled ? 'hover' : '');
- var hoverRating = this.hoverRating
- ? 'hover-' + this.hoverRating
- : 'hover-0';
- classNames.push(this.hoverEnabled ? hoverRating : '');
- classNames.push(this.space ? 'space-' + this.space : '');
- classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');
- classNames.push(this.color ? 'color-' + this.color : '');
- classNames.push(this.starType ? 'star-' + this.starType : '');
- classNames.push(this.speed);
- classNames.push(this.size);
- classNames.push(this.readOnly ? 'read-only' : '');
- classNames.push(this.disabled ? 'disabled' : '');
- classNames.push(this.direction ? 'direction-' + this.direction : '');
- return classNames.join(' ');
- };
- StarRating.prototype.increment = function () {
- var absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);
- };
- StarRating.prototype.decrement = function () {
- var absDiff = Math.abs(this.rating % this.step);
- this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);
- };
- StarRating.prototype.reset = function () {
- this.rating = 0;
- };
- return StarRating;
-}());
-var StarRatingConfigService = /** @class */ (function () {
- function StarRatingConfigService() {
- this._classEmpty = 'default-star-empty-icon';
- this._classHalf = 'default-star-half-icon';
- this._classFilled = 'default-star-filled-icon';
- this._numOfStars = 5;
- this._size = 'medium';
- this._labelPosition = 'left';
- this._speed = 'noticeable';
- this._starType = 'svg';
- this._assetsPath = 'assets/images/';
- this._svgPath = this.assetsPath + 'star-rating.icons.svg';
- this._svgEmptySymbolId = 'star-empty';
- this._svgHalfSymbolId = 'star-half';
- this._svgFilledSymbolId = 'star-filled';
- this._svgPathEmpty = this.svgPath + '#' + this.svgEmptySymbolId;
- this._svgPathHalf = this.svgPath + '#' + this.svgHalfSymbolId;
- this._svgPathFilled = this.svgPath + '#' + this.svgFilledSymbolId;
- }
- Object.defineProperty(StarRatingConfigService.prototype, "classEmpty", {
- get: function () {
- return this._classEmpty;
- },
- set: function (classEmpty) {
- this._classEmpty = classEmpty;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "classHalf", {
- get: function () {
- return this._classHalf;
- },
- set: function (classHalf) {
- this._classHalf = classHalf;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "classFilled", {
- get: function () {
- return this._classFilled;
- },
- set: function (classFilled) {
- this._classFilled = classFilled;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "numOfStars", {
- get: function () {
- return this._numOfStars;
- },
- set: function (numOfStars) {
- this._numOfStars = numOfStars;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "size", {
- get: function () {
- return this._size;
- },
- set: function (size) {
- this._size = size;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "staticColor", {
- get: function () {
- return this._staticColor;
- },
- set: function (value) {
- this._staticColor = value;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "labelPosition", {
- get: function () {
- return this._labelPosition;
- },
- set: function (labelPosition) {
- this._labelPosition = labelPosition;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "speed", {
- get: function () {
- return this._speed;
- },
- set: function (speed) {
- this._speed = speed;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "starType", {
- get: function () {
- return this._starType;
- },
- set: function (starType) {
- this._starType = starType;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "assetsPath", {
- get: function () {
- return this._assetsPath;
- },
- set: function (assetsPath) {
- this._assetsPath = assetsPath;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPath", {
- get: function () {
- return this._svgPath;
- },
- set: function (svgPath) {
- this._svgPath = svgPath;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgEmptySymbolId", {
- get: function () {
- return this._svgEmptySymbolId;
- },
- set: function (svgEmptySymbolId) {
- this._svgEmptySymbolId = svgEmptySymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgHalfSymbolId", {
- get: function () {
- return this._svgHalfSymbolId;
- },
- set: function (svgHalfSymbolId) {
- this._svgHalfSymbolId = svgHalfSymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgFilledSymbolId", {
- get: function () {
- return this._svgFilledSymbolId;
- },
- set: function (svgFilledSymbolId) {
- this._svgFilledSymbolId = svgFilledSymbolId;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathEmpty", {
- get: function () {
- return this._svgPathEmpty;
- },
- set: function (svgPathEmpty) {
- this._svgPathEmpty = svgPathEmpty;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathHalf", {
- get: function () {
- return this._svgPathHalf;
- },
- set: function (svgPathHalf) {
- this._svgPathHalf = svgPathHalf;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(StarRatingConfigService.prototype, "svgPathFilled", {
- get: function () {
- return this._svgPathFilled;
- },
- set: function (svgPathFilled) {
- this._svgPathFilled = svgPathFilled;
- },
- enumerable: true,
- configurable: true
- });
- StarRatingConfigService.prototype.getColor = function (rating, numOfStars, staticColor) {
- rating = rating || 0;
- if (staticColor) {
- return staticColor;
- }
- var fractionSize = numOfStars / 3;
- var color = 'default';
- if (rating > 0) {
- color = 'negative';
- }
- if (rating > fractionSize) {
- color = 'ok';
- }
- if (rating > fractionSize * 2) {
- color = 'positive';
- }
- return color;
- };
- StarRatingConfigService.prototype.getHalfStarVisible = function (rating) {
- return Math.abs(rating % 1) > 0;
- };
- return StarRatingConfigService;
-}());
-var StarRatingComponent = /** @class */ (function (_super) {
- __extends(StarRatingComponent, _super);
- function StarRatingComponent(config) {
- var _this = _super.call(this, config) || this;
- _this.starClickChange = new EventEmitter();
- _this.ratingChange = new EventEmitter();
- _this.hoverRatingChange = new EventEmitter();
- return _this;
- }
- StarRatingComponent.prototype.saveOnClick = function ($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- };
- StarRatingComponent.prototype.saveOnRatingChange = function ($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- };
- StarRatingComponent.prototype.saveOnHover = function ($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- };
- StarRatingComponent.prototype.onKeyDown = function (event) {
- var _this = this;
- if (!this.interactionPossible()) {
- return;
- }
- var handlers = {
- Minus: function () { return _this.decrement(); },
- ArrowDown: function () { return _this.decrement(); },
- ArrowLeft: function () { return _this.decrement(); },
- Plus: function () { return _this.increment(); },
- ArrowRight: function () { return _this.increment(); },
- ArrowUp: function () { return _this.increment(); },
- Backspace: function () { return _this.reset(); },
- Delete: function () { return _this.reset(); },
- Digit0: function () { return _this.reset(); }
- };
- var handleDigits = function (eventCode) {
- var dStr = 'Digit';
- var digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- _this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- };
- StarRatingComponent.prototype.onStarHover = function (rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- this.setColor(true);
- var $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- };
- StarRatingComponent.prototype.setRating = function (value) {
- var initValue = this.rating;
- _super.prototype.setRating.call(this, value);
- if (initValue !== this.rating) {
- var $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- }
- };
- StarRatingComponent.prototype.onStarClicked = function (rating) {
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- var onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- };
- return StarRatingComponent;
-}(StarRating));
-StarRatingComponent.decorators = [
- { type: Component, args: [{
- selector: 'star-rating',
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: "\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"
- },] },
-];
-StarRatingComponent.ctorParameters = function () { return [
- { type: StarRatingConfigService, },
-]; };
-var STAR_RATING_CONTROL_ACCESSOR = {
- provide: NG_VALUE_ACCESSOR,
- useExisting: forwardRef(function () { return StarRatingControlComponent; }),
- multi: true
-};
-var StarRatingControlComponent = /** @class */ (function (_super) {
- __extends(StarRatingControlComponent, _super);
- function StarRatingControlComponent(config) {
- var _this = _super.call(this, config) || this;
- _this.starClickChange = new EventEmitter();
- _this.ratingChange = new EventEmitter();
- _this.hoverRatingChange = new EventEmitter();
- _this.onModelChangeRegistered = false;
- _this.onTouchRegistered = false;
- return _this;
- }
- StarRatingControlComponent.prototype.saveOnClick = function ($event) {
- if (this.starClickChange) {
- this.starClickChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnRatingChange = function ($event) {
- if (this.ratingChange) {
- this.ratingChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnHover = function ($event) {
- if (this.hoverRatingChange) {
- this.hoverRatingChange.emit($event);
- }
- };
- StarRatingControlComponent.prototype.saveOnTouch = function () {
- if (this.onTouchRegistered) {
- this.onTouch();
- }
- };
- StarRatingControlComponent.prototype.saveOnModelChange = function (value) {
- if (this.onModelChangeRegistered) {
- this.onModelChange(value);
- }
- };
- StarRatingControlComponent.prototype.onKeyDown = function (event) {
- var _this = this;
- if (!this.interactionPossible()) {
- return;
- }
- var handlers = {
- Minus: function () { return _this.decrement(); },
- ArrowDown: function () { return _this.decrement(); },
- ArrowLeft: function () { return _this.decrement(); },
- Plus: function () { return _this.increment(); },
- ArrowRight: function () { return _this.increment(); },
- ArrowUp: function () { return _this.increment(); },
- Backspace: function () { return _this.reset(); },
- Delete: function () { return _this.reset(); },
- Digit0: function () { return _this.reset(); }
- };
- var handleDigits = function (eventCode) {
- var dStr = 'Digit';
- var digit = parseInt(eventCode.substr(dStr.length, eventCode.length - 1), 10);
- _this.rating = digit;
- };
- if (handlers[event['code']] ||
- StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {
- handleDigits(event['code']);
- }
- else {
- handlers[event['code']]();
- }
- event.preventDefault();
- event.stopPropagation();
- }
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onBlur = function (event) {
- this.focus = false;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onFocus = function (event) {
- this.focus = true;
- event.preventDefault();
- event.stopPropagation();
- this.saveOnTouch();
- };
- StarRatingControlComponent.prototype.onStarHover = function (rating) {
- if (!this.interactionPossible() || !this.hoverEnabled) {
- return;
- }
- this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;
- var $event = { hoverRating: this.hoverRating };
- this.saveOnHover($event);
- };
- StarRatingControlComponent.prototype.writeValue = function (obj) {
- this.rating = obj;
- };
- StarRatingControlComponent.prototype.registerOnChange = function (fn) {
- this.onModelChange = fn;
- this.onModelChangeRegistered = true;
- };
- StarRatingControlComponent.prototype.registerOnTouched = function (fn) {
- this.onTouch = fn;
- this.onTouchRegistered = true;
- };
- StarRatingControlComponent.prototype.setRating = function (value) {
- var initValue = this.rating;
- _super.prototype.setRating.call(this, value);
- if (initValue !== this.rating) {
- var $event = { rating: this.rating };
- this.saveOnRatingChange($event);
- this.saveOnModelChange(this.rating);
- }
- };
- StarRatingControlComponent.prototype.onStarClicked = function (rating) {
- if (!this.interactionPossible()) {
- return;
- }
- this.rating = rating;
- var onClickEventObject = {
- rating: this.rating
- };
- this.saveOnClick(onClickEventObject);
- };
- return StarRatingControlComponent;
-}(StarRating));
-StarRatingControlComponent.decorators = [
- { type: Component, args: [{
- selector: 'star-rating-control',
- providers: [STAR_RATING_CONTROL_ACCESSOR],
- inputs: [
- 'getHalfStarVisible',
- 'getColor',
- 'showHalfStars',
- 'hoverEnabled',
- 'rating',
- 'step',
- 'disabled',
- 'readOnly',
- 'space',
- 'starType',
- 'size',
- 'speed',
- 'numOfStars',
- 'direction',
- 'staticColor',
- 'labelPosition',
- 'labelText',
- 'id'
- ],
- outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],
- styles: [],
- template: "\n
{{labelText}}
\n
\n
\n \n \n \n \n \n \n
\n
\n
\n"
- },] },
-];
-StarRatingControlComponent.ctorParameters = function () { return [
- { type: StarRatingConfigService, },
-]; };
-var DECLARATIONS = [
- StarRatingComponent,
- StarRatingControlComponent
-];
-var EXPORTS = [DECLARATIONS];
-var StarRatingModule = /** @class */ (function () {
- function StarRatingModule() {
- }
- StarRatingModule.forRoot = function () {
- return {
- ngModule: StarRatingModule,
- providers: [
- StarRatingConfigService
- ]
- };
- };
- StarRatingModule.forChild = function () {
- return {
- ngModule: StarRatingModule,
- providers: []
- };
- };
- return StarRatingModule;
-}());
-StarRatingModule.decorators = [
- { type: NgModule, args: [{
- imports: [CommonModule],
- declarations: [DECLARATIONS],
- exports: [EXPORTS]
- },] },
-];
-StarRatingModule.ctorParameters = function () { return []; };
-
-export { StarRatingConfig, StarRatingUtils, StarRating, StarRatingConfigService, StarRatingComponent, StarRatingControlComponent, StarRatingModule };
-//# sourceMappingURL=angular-star-rating.js.map
diff --git a/@packaged/angular-star-rating/esm5/angular-star-rating.js.map b/@packaged/angular-star-rating/esm5/angular-star-rating.js.map
deleted file mode 100644
index 04700db..0000000
--- a/@packaged/angular-star-rating/esm5/angular-star-rating.js.map
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "version": 3,
- "file": "angular-star-rating.js",
- "sources": [
- "ng://angular-star-rating/out/src/angular-star-rating.module.ts",
- "ng://angular-star-rating/out/src/components/star-rating-control/star-rating-control.component.ts",
- "ng://angular-star-rating/out/src/components/star-rating/star-rating.component.ts",
- "ng://angular-star-rating/out/src/services/star-rating-config.service.ts",
- "ng://angular-star-rating/out/src/services/star-rating.ts",
- "ng://angular-star-rating/out/src/services/star-rating.utils.ts",
- "ng://angular-star-rating/out/src/interfaces/star-rating-config.interface.ts"
- ],
- "sourcesContent": [
- "import {CommonModule} from '@angular/common';\r\nimport {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {StarRatingComponent} from './components/star-rating/star-rating.component';\r\nimport {StarRatingControlComponent} from './components/star-rating-control/star-rating-control.component';\r\nimport {StarRatingConfigService} from './services/star-rating-config.service';\r\n\r\nconst DECLARATIONS = [\r\n StarRatingComponent,\r\n StarRatingControlComponent\r\n];\r\nconst EXPORTS = [DECLARATIONS];\r\n\r\n@NgModule({\r\n imports: [CommonModule],\r\n declarations: [DECLARATIONS],\r\n exports: [EXPORTS]\r\n})\r\nexport class StarRatingModule {\r\n static forRoot(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: [\r\n StarRatingConfigService\r\n ]\r\n };\r\n }\r\n\r\n static forChild(): ModuleWithProviders {\r\n return {\r\n ngModule: StarRatingModule,\r\n providers: []\r\n };\r\n }\r\n}\r\n",
- "import {Component, EventEmitter, forwardRef} from '@angular/core';\r\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\nconst STAR_RATING_CONTROL_ACCESSOR = {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => StarRatingControlComponent),\r\n multi: true\r\n};\r\n\r\n@Component({\r\n selector: 'star-rating-control',\r\n providers: [STAR_RATING_CONTROL_ACCESSOR],\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingControlComponent extends StarRating\r\n implements ControlValueAccessor {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n onTouch: Function;\r\n onModelChange: Function;\r\n private onModelChangeRegistered = false;\r\n private onTouchRegistered = false;\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnTouch() {\r\n if (this.onTouchRegistered) {\r\n this.onTouch();\r\n }\r\n }\r\n\r\n saveOnModelChange(value: number) {\r\n if (this.onModelChangeRegistered) {\r\n this.onModelChange(value);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n this.saveOnTouch();\r\n }\r\n\r\n //Focus events\r\n onBlur(event: FocusEvent) {\r\n this.focus = false;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n onFocus(event: FocusEvent) {\r\n this.focus = true;\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.saveOnTouch();\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n /**Form Control - ControlValueAccessor implementation**/\r\n\r\n writeValue(obj: any): void {\r\n this.rating = obj;\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.onModelChange = fn;\r\n this.onModelChangeRegistered = true;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouch = fn;\r\n this.onTouchRegistered = true;\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n\r\n this.saveOnModelChange(this.rating);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {Component, EventEmitter} from '@angular/core';\r\nimport {ClickEvent} from '../../interfaces/click-event.interface';\r\nimport {HoverRatingChangeEvent} from '../../interfaces/hover-rating-change-event.interface';\r\nimport {RatingChangeEvent} from '../../interfaces/rating-change-event.interface';\r\nimport {StarRating} from '../../services/star-rating';\r\nimport {StarRatingConfigService} from '../../services/star-rating-config.service';\r\nimport {StarRatingUtils} from '../../services/star-rating.utils';\r\n\r\n@Component({\r\n selector: 'star-rating',\r\n inputs: [\r\n 'getHalfStarVisible',\r\n 'getColor',\r\n 'showHalfStars',\r\n 'hoverEnabled',\r\n 'rating',\r\n 'step',\r\n 'disabled',\r\n 'readOnly',\r\n 'space',\r\n 'starType',\r\n 'size',\r\n 'speed',\r\n 'numOfStars',\r\n 'direction',\r\n 'staticColor',\r\n //, 'labelVisible'\r\n 'labelPosition',\r\n 'labelText',\r\n 'id'\r\n ],\r\n outputs: ['starClickChange', 'ratingChange', 'hoverRatingChange'],\r\n styles: [],\r\n template: `\r\n
{{labelText}}
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n`\r\n})\r\nexport class StarRatingComponent extends StarRating {\r\n //Outputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n starClickChange: EventEmitter = new EventEmitter();\r\n\r\n ratingChange: EventEmitter = new EventEmitter<\r\n RatingChangeEvent\r\n >();\r\n\r\n hoverRatingChange: EventEmitter = new EventEmitter<\r\n HoverRatingChangeEvent\r\n >();\r\n\r\n saveOnClick($event: ClickEvent) {\r\n if (this.starClickChange) {\r\n this.starClickChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnRatingChange($event: RatingChangeEvent) {\r\n if (this.ratingChange) {\r\n this.ratingChange.emit($event);\r\n }\r\n }\r\n\r\n saveOnHover($event: HoverRatingChangeEvent) {\r\n if (this.hoverRatingChange) {\r\n this.hoverRatingChange.emit($event);\r\n }\r\n }\r\n\r\n /**ACCESSIBILITY **/\r\n\r\n //Keyboard events\r\n onKeyDown(event: KeyboardEvent) {\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n const handlers: any = {\r\n //Decrement\r\n Minus: () => this.decrement(),\r\n ArrowDown: () => this.decrement(),\r\n ArrowLeft: () => this.decrement(),\r\n\r\n //Increment\r\n Plus: () => this.increment(),\r\n ArrowRight: () => this.increment(),\r\n ArrowUp: () => this.increment(),\r\n\r\n //Reset\r\n Backspace: () => this.reset(),\r\n Delete: () => this.reset(),\r\n Digit0: () => this.reset()\r\n };\r\n\r\n const handleDigits = (eventCode: string): void => {\r\n const dStr = 'Digit';\r\n const digit: number = parseInt(\r\n eventCode.substr(dStr.length, eventCode.length - 1), 10\r\n );\r\n this.rating = digit;\r\n };\r\n\r\n if (\r\n handlers[event['code']] ||\r\n StarRatingUtils.isDigitKeyEventCode(event['code'])\r\n ) {\r\n if (StarRatingUtils.isDigitKeyEventCode(event['code'])) {\r\n handleDigits(event['code']);\r\n } else {\r\n handlers[event['code']]();\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n\r\n }\r\n\r\n //Hover events\r\n onStarHover(rating?: number): void {\r\n if (!this.interactionPossible() || !this.hoverEnabled) {\r\n return;\r\n }\r\n\r\n this.hoverRating = rating ? parseInt(rating.toString(), 10) : 0;\r\n //update calculated Color\r\n this.setColor(true);\r\n\r\n //fire onHoverRatingChange event\r\n const $event: HoverRatingChangeEvent = { hoverRating: this.hoverRating };\r\n this.saveOnHover($event);\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n super(config);\r\n }\r\n\r\n //Overrides\r\n setRating(value: number): void {\r\n const initValue = this.rating;\r\n super.setRating(value);\r\n\r\n //if value changed trigger valueAccessor events and outputs\r\n if (initValue !== this.rating) {\r\n const $event: RatingChangeEvent = { rating: this.rating };\r\n this.saveOnRatingChange($event);\r\n }\r\n }\r\n\r\n /**\r\n * onStarClicked\r\n *\r\n * Is fired when a star is clicked. And updated the rating value.\r\n * This function returns if the disabled or readOnly\r\n * property is set. If provided it emits the onClick event\r\n * handler with the actual rating value.\r\n *\r\n * @param rating\r\n */\r\n onStarClicked(rating: number): void {\r\n //fire onClick event\r\n if (!this.interactionPossible()) {\r\n return;\r\n }\r\n\r\n this.rating = rating;\r\n\r\n const onClickEventObject: ClickEvent = {\r\n rating: this.rating\r\n };\r\n this.saveOnClick(onClickEventObject);\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarTypes,\r\n starRatingLabelPosition\r\n} from '../interfaces/star-rating-config.interface';\r\n\r\n/**\r\n * Configuration service for the StarRating component.\r\n * You can inject this service, typically in your root component, and customize the values of its properties in\r\n * order to provide default values for all the star ratings used in the application.\r\n */\r\nexport class StarRatingConfigService implements StarRatingConfig {\r\n _classEmpty = 'default-star-empty-icon';\r\n\r\n get classEmpty() {\r\n return this._classEmpty;\r\n }\r\n\r\n set classEmpty(classEmpty: string) {\r\n this._classEmpty = classEmpty;\r\n }\r\n\r\n private _classHalf = 'default-star-half-icon';\r\n\r\n get classHalf(): string {\r\n return this._classHalf;\r\n }\r\n\r\n set classHalf(classHalf: string) {\r\n this._classHalf = classHalf;\r\n }\r\n\r\n private _classFilled = 'default-star-filled-icon';\r\n\r\n get classFilled(): string {\r\n return this._classFilled;\r\n }\r\n\r\n set classFilled(classFilled: string) {\r\n this._classFilled = classFilled;\r\n }\r\n\r\n private _numOfStars = 5;\r\n\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(numOfStars: number) {\r\n this._numOfStars = numOfStars;\r\n }\r\n\r\n private _size: starRatingSizes = 'medium';\r\n\r\n get size(): starRatingSizes {\r\n return this._size;\r\n }\r\n\r\n set size(size: starRatingSizes) {\r\n this._size = size;\r\n }\r\n\r\n private _staticColor: starRatingColor;\r\n\r\n get staticColor(): starRatingColor {\r\n return this._staticColor;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n }\r\n\r\n private _labelPosition: starRatingLabelPosition = 'left';\r\n\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(labelPosition: starRatingLabelPosition) {\r\n this._labelPosition = labelPosition;\r\n }\r\n\r\n private _speed: starRatingSpeed = 'noticeable';\r\n\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(speed: starRatingSpeed) {\r\n this._speed = speed;\r\n }\r\n\r\n private _starType: starRatingStarTypes = 'svg';\r\n\r\n get starType(): starRatingStarTypes {\r\n return this._starType;\r\n }\r\n\r\n set starType(starType: starRatingStarTypes) {\r\n this._starType = starType;\r\n }\r\n\r\n private _assetsPath = 'assets/images/';\r\n\r\n get assetsPath(): string {\r\n return this._assetsPath;\r\n }\r\n\r\n set assetsPath(assetsPath: string) {\r\n this._assetsPath = assetsPath;\r\n }\r\n\r\n private _svgPath = this.assetsPath + 'star-rating.icons.svg';\r\n\r\n get svgPath(): string {\r\n return this._svgPath;\r\n }\r\n\r\n set svgPath(svgPath: string) {\r\n this._svgPath = svgPath;\r\n }\r\n\r\n private _svgEmptySymbolId = 'star-empty';\r\n\r\n get svgEmptySymbolId(): string {\r\n return this._svgEmptySymbolId;\r\n }\r\n\r\n set svgEmptySymbolId(svgEmptySymbolId: string) {\r\n this._svgEmptySymbolId = svgEmptySymbolId;\r\n }\r\n\r\n private _svgHalfSymbolId = 'star-half';\r\n\r\n get svgHalfSymbolId(): string {\r\n return this._svgHalfSymbolId;\r\n }\r\n\r\n set svgHalfSymbolId(svgHalfSymbolId: string) {\r\n this._svgHalfSymbolId = svgHalfSymbolId;\r\n }\r\n\r\n private _svgFilledSymbolId = 'star-filled';\r\n\r\n get svgFilledSymbolId(): string {\r\n return this._svgFilledSymbolId;\r\n }\r\n\r\n set svgFilledSymbolId(svgFilledSymbolId: string) {\r\n this._svgFilledSymbolId = svgFilledSymbolId;\r\n }\r\n\r\n private _svgPathEmpty: string = this.svgPath + '#' + this.svgEmptySymbolId;\r\n\r\n get svgPathEmpty(): string {\r\n return this._svgPathEmpty;\r\n }\r\n\r\n set svgPathEmpty(svgPathEmpty: string) {\r\n this._svgPathEmpty = svgPathEmpty;\r\n }\r\n\r\n private _svgPathHalf: string = this.svgPath + '#' + this.svgHalfSymbolId;\r\n\r\n get svgPathHalf(): string {\r\n return this._svgPathHalf;\r\n }\r\n\r\n set svgPathHalf(svgPathHalf: string) {\r\n this._svgPathHalf = svgPathHalf;\r\n }\r\n\r\n private _svgPathFilled: string = this.svgPath + '#' + this.svgFilledSymbolId;\r\n\r\n get svgPathFilled(): string {\r\n return this._svgPathFilled;\r\n }\r\n\r\n set svgPathFilled(svgPathFilled: string) {\r\n this._svgPathFilled = svgPathFilled;\r\n }\r\n\r\n getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n // if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n // calculate size of smallest fraction\r\n const fractionSize = numOfStars / 3;\r\n\r\n // apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n}\r\n",
- "import {\r\n StarRatingConfig,\r\n starRatingColor,\r\n starRatingDirection,\r\n starRatingLabelPosition,\r\n starRatingSizes,\r\n starRatingSpeed,\r\n starRatingStarSpace,\r\n starRatingStarTypes\r\n} from '../interfaces/star-rating-config.interface';\r\nimport { StarRatingConfigService } from './star-rating-config.service';\r\nimport { StarRatingUtils } from './star-rating.utils';\r\n\r\nexport class StarRating {\r\n protected config: StarRatingConfig;\r\n\r\n //CTRL ONLY\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n classEmpty: string;\r\n classHalf: string;\r\n classFilled: string;\r\n\r\n pathEmpty: string;\r\n pathHalf: string;\r\n pathFilled: string;\r\n\r\n color: starRatingColor;\r\n stars: Array;\r\n ratingAsInteger: number;\r\n halfStarVisible: boolean;\r\n\r\n /////////////////////////////////////////////\r\n\r\n\r\n set rating(value: number) {\r\n this.setRating(value);\r\n }\r\n\r\n /**\r\n * showHalfStars\r\n */\r\n protected _showHalfStars: boolean;\r\n get showHalfStars(): boolean {\r\n return this._showHalfStars;\r\n }\r\n\r\n set showHalfStars(value: boolean) {\r\n this._showHalfStars = !!value;\r\n\r\n //update halfStarVisible\r\n this.setHalfStarVisible();\r\n }\r\n\r\n /**\r\n * getColor\r\n */\r\n getColor: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * getHalfStarVisible\r\n */\r\n getHalfStarVisible: (rating: number) => boolean;\r\n /////////////////////////////////////////////\r\n\r\n //Inputs\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /**\r\n * id property to identify the DOM element\r\n */\r\n protected _id: string;\r\n get id(): string {\r\n return this._id;\r\n }\r\n\r\n set id(value: string) {\r\n this._id = value || '';\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * focus\r\n */\r\n protected _focus: boolean;\r\n get focus(): boolean {\r\n return this._focus;\r\n }\r\n\r\n set focus(value: boolean) {\r\n this._focus = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelText\r\n */\r\n protected _labelText: string;\r\n get labelText(): string {\r\n return this._labelText;\r\n }\r\n\r\n set labelText(value: string) {\r\n this._labelText = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelPosition\r\n */\r\n protected _labelPosition: starRatingLabelPosition;\r\n get labelPosition(): starRatingLabelPosition {\r\n return this._labelPosition;\r\n }\r\n\r\n set labelPosition(value: starRatingLabelPosition) {\r\n this._labelPosition = value || this.config.labelPosition;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * labelVisible\r\n */\r\n protected _labelVisible: boolean;\r\n get labelVisible(): boolean {\r\n return this._labelVisible;\r\n }\r\n\r\n set labelVisible(value: boolean) {\r\n this._labelVisible = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverEnabled\r\n */\r\n protected _hoverEnabled: boolean;\r\n get hoverEnabled(): boolean {\r\n return this._hoverEnabled;\r\n }\r\n\r\n set hoverEnabled(value: boolean) {\r\n this._hoverEnabled = value !== undefined ? !!value : false;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * staticColor\r\n */\r\n protected _staticColor: starRatingColor;\r\n get staticColor(): starRatingColor {\r\n return this._staticColor || this.config.staticColor || undefined;\r\n }\r\n\r\n set staticColor(value: starRatingColor) {\r\n this._staticColor = value;\r\n\r\n //update color.\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * direction\r\n */\r\n protected _direction: starRatingDirection;\r\n get direction(): starRatingDirection {\r\n return this._direction;\r\n }\r\n\r\n set direction(value: starRatingDirection) {\r\n this._direction = value || undefined;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * numOfStars\r\n */\r\n protected _numOfStars: number;\r\n get numOfStars(): number {\r\n return this._numOfStars;\r\n }\r\n\r\n set numOfStars(value: number) {\r\n this._numOfStars = value > 0 ? value : this.config.numOfStars;\r\n\r\n //update stars array\r\n this.stars = StarRatingUtils.getStarsArray(this.numOfStars);\r\n\r\n //update color\r\n this.setColor();\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * hoverRating\r\n */\r\n protected _hoverRating: number;\r\n get hoverRating(): number {\r\n return this._hoverRating;\r\n }\r\n\r\n set hoverRating(value: number) {\r\n this._hoverRating = value > 0 ? value : 0;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * speed\r\n */\r\n protected _speed: starRatingSpeed;\r\n get speed(): starRatingSpeed {\r\n return this._speed;\r\n }\r\n\r\n set speed(value: starRatingSpeed) {\r\n this._speed = value || this.config.speed;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * size\r\n */\r\n protected _size: starRatingSizes;\r\n get size(): starRatingSizes {\r\n return this._size || this.config.size;\r\n }\r\n\r\n set size(value: starRatingSizes) {\r\n this._size = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * starType\r\n */\r\n protected _starType: starRatingStarTypes;\r\n get starType(): starRatingStarTypes {\r\n return this._starType || this.config.starType;\r\n }\r\n\r\n set starType(value: starRatingStarTypes) {\r\n this._starType = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * space\r\n */\r\n protected _space: starRatingStarSpace;\r\n get space(): starRatingStarSpace {\r\n return this._space;\r\n }\r\n\r\n set space(value: starRatingStarSpace) {\r\n this._space = value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * readOnly\r\n */\r\n protected _readOnly: boolean;\r\n get readOnly(): boolean {\r\n return this._readOnly;\r\n }\r\n\r\n set readOnly(value: boolean) {\r\n this._readOnly = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * disabled\r\n */\r\n protected _disabled: boolean;\r\n get disabled(): boolean {\r\n return this._disabled;\r\n }\r\n\r\n set disabled(value: boolean) {\r\n this._disabled = !!value;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n private _step: number;\r\n get step(): number {\r\n return this._step;\r\n }\r\n\r\n set step(value: number) {\r\n this._step = value > 0 ? value : 1;\r\n }\r\n\r\n /////////////////////////////////////////////\r\n\r\n /**\r\n * rating\r\n */\r\n protected _rating: number;\r\n get rating(): number {\r\n return this._rating;\r\n }\r\n\r\n /**\r\n * setRating\r\n * I use a setter function instead of a set method to enable overrides for this function.\r\n * @param value\r\n */\r\n setRating(value: number) {\r\n //validate and apply newRating\r\n let newRating = 0;\r\n if (value >= 0 && value <= this.numOfStars) {\r\n newRating = value;\r\n }\r\n\r\n //limit max value to max number of stars\r\n if (value > this.numOfStars) {\r\n newRating = this.numOfStars;\r\n }\r\n this._rating = newRating;\r\n\r\n //update ratingAsInteger. rating parsed to int for the value-[n] modifier\r\n this.ratingAsInteger = parseInt(this._rating.toString(), 10);\r\n\r\n //update halfStarsVisible\r\n this.setHalfStarVisible();\r\n\r\n //update calculated Color\r\n this.setColor();\r\n }\r\n\r\n constructor(config: StarRatingConfigService) {\r\n this.config = config;\r\n\r\n //set default ctrl props\r\n this.classEmpty = this.config.classEmpty;\r\n this.classHalf = this.config.classHalf;\r\n this.classFilled = this.config.classFilled;\r\n this.pathEmpty = this.config.svgPathEmpty;\r\n this.pathHalf = this.config.svgPathHalf;\r\n this.pathFilled = this.config.svgPathFilled;\r\n\r\n //set default Component Inputs\r\n if (\r\n 'getColor' in this.config &&\r\n typeof this.config.getColor === 'function'\r\n ) {\r\n this.getColor = this.config.getColor;\r\n }\r\n\r\n if (\r\n 'getHalfStarVisible' in this.config &&\r\n typeof this.config.getHalfStarVisible === 'function'\r\n ) {\r\n this.getHalfStarVisible = this.config.getHalfStarVisible;\r\n }\r\n\r\n this.numOfStars = this.config.numOfStars;\r\n this.rating = 0;\r\n this.step = 1;\r\n }\r\n\r\n svgVisible(): boolean {\r\n return this.starType === 'svg';\r\n }\r\n\r\n interactionPossible(): boolean {\r\n return !this.readOnly && !this.disabled;\r\n }\r\n\r\n setColor(useHoverValue = false): void {\r\n //check if custom function is given\r\n const ratingValue = useHoverValue ? this.hoverRating: this.rating;\r\n if (typeof this.getColor === 'function') {\r\n this.color = this.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n } else {\r\n this.color = StarRatingUtils.getColor(\r\n ratingValue,\r\n this.numOfStars,\r\n this.staticColor\r\n );\r\n }\r\n }\r\n\r\n setHalfStarVisible(): void {\r\n //update halfStarVisible\r\n if (this.showHalfStars) {\r\n //check if custom function is given\r\n if (typeof this.getHalfStarVisible === 'function') {\r\n this.halfStarVisible = this.getHalfStarVisible(this.rating);\r\n } else {\r\n this.halfStarVisible = StarRatingUtils.getHalfStarVisible(this.rating);\r\n }\r\n } else {\r\n this.halfStarVisible = false;\r\n }\r\n }\r\n\r\n getComponentClassNames(): string {\r\n const classNames: string[] = [];\r\n\r\n classNames.push(this.rating ? 'value-' + this.ratingAsInteger : 'value-0');\r\n classNames.push(this.halfStarVisible ? 'half' : '');\r\n classNames.push(this.hoverEnabled ? 'hover' : '');\r\n\r\n const hoverRating = this.hoverRating\r\n ? 'hover-' + this.hoverRating\r\n : 'hover-0';\r\n classNames.push(this.hoverEnabled ? hoverRating : '');\r\n\r\n classNames.push(this.space ? 'space-' + this.space : '');\r\n classNames.push(this.labelPosition ? 'label-' + this.labelPosition : '');\r\n classNames.push(this.color ? 'color-' + this.color : '');\r\n classNames.push(this.starType ? 'star-' + this.starType : '');\r\n classNames.push(this.speed);\r\n classNames.push(this.size);\r\n classNames.push(this.readOnly ? 'read-only' : '');\r\n classNames.push(this.disabled ? 'disabled' : '');\r\n classNames.push(this.direction ? 'direction-' + this.direction : '');\r\n\r\n return classNames.join(' ');\r\n }\r\n\r\n increment() {\r\n //increment to next higher step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating + (absDiff > 0 ? this.step - absDiff : this.step);\r\n }\r\n\r\n decrement() {\r\n //decrement to next lower step\r\n const absDiff = Math.abs(this.rating % this.step);\r\n this.rating = this.rating - (absDiff > 0 ? absDiff : this.step);\r\n }\r\n\r\n reset() {\r\n this.rating = 0;\r\n }\r\n}\r\n",
- "import { starRatingColor } from '../interfaces/star-rating-config.interface';\r\nexport class StarRatingUtils {\r\n //Static methods\r\n ///////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n /*\r\n * getStarsArray\r\n *\r\n * returns an array of increasing numbers starting at 1\r\n *\r\n * @param numOfStars\r\n * @returns {Array}\r\n */\r\n static getStarsArray(numOfStars: number): Array {\r\n let stars: Array = [];\r\n for (let i = 0; i < numOfStars; i++) {\r\n stars.push(i + 1);\r\n }\r\n return stars;\r\n }\r\n\r\n /*\r\n * getHalfStarVisible\r\n *\r\n * Returns true if there should be a half star visible, and false if not.\r\n *\r\n * @param rating\r\n * @returns {boolean}\r\n */\r\n static getHalfStarVisible(rating: number): boolean {\r\n return Math.abs(rating % 1) > 0;\r\n }\r\n\r\n /*\r\n * getColor\r\n *\r\n * The default function for color calculation\r\n * based on the current rating and the the number of stars possible.\r\n * If a staticColor is set the function will use it as return value.\r\n *\r\n * @param rating\r\n * @param numOfStars\r\n * @param staticColor\r\n * @returns {starRatingColor}\r\n */\r\n static getColor(\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ): starRatingColor {\r\n rating = rating || 0;\r\n\r\n //if a fix color is set use this one\r\n if (staticColor) {\r\n return staticColor;\r\n }\r\n\r\n //calculate size of smallest fraction\r\n let fractionSize = numOfStars / 3;\r\n\r\n //apply color by fraction\r\n let color: starRatingColor = 'default';\r\n if (rating > 0) {\r\n color = 'negative';\r\n }\r\n if (rating > fractionSize) {\r\n color = 'ok';\r\n }\r\n if (rating > fractionSize * 2) {\r\n color = 'positive';\r\n }\r\n\r\n return color;\r\n }\r\n\r\n /*\r\n * isDigitKeyEventCode\r\n * detects digit key event sodes\r\n * @param eventCode\r\n * @returns {boolean}\r\n */\r\n static isDigitKeyEventCode(eventCode: string): boolean {\r\n return eventCode.indexOf('Digit') === 0;\r\n }\r\n}\r\n",
- "export type starRatingSizes = 'small' | 'medium' | 'large';\r\nexport type starRatingColor = 'default' | 'negative' | 'ok' | 'positive';\r\nexport type starRatingSpeed = 'immediately' | 'noticeable' | 'slow';\r\nexport type starRatingLabelPosition = 'left' | 'right' | 'top' | 'bottom';\r\nexport type starRatingStarTypes = 'svg' | 'icon' | 'custom-icon';\r\nexport type starRatingStarSpace = 'no' | 'between' | 'around';\r\nexport type starRatingDirection = 'rtl' | 'ltr';\r\n\r\nexport class StarRatingConfig {\r\n // binding defaults\r\n numOfStars?: number;\r\n size?: starRatingSizes;\r\n speed?: starRatingSpeed;\r\n labelPosition?: starRatingLabelPosition;\r\n starType?: starRatingStarTypes;\r\n staticColor: starRatingColor;\r\n getColor?: (\r\n rating: number,\r\n numOfStars: number,\r\n staticColor?: starRatingColor\r\n ) => starRatingColor;\r\n getHalfStarVisible?: (rating: number) => boolean;\r\n // statics\r\n classEmpty?: string;\r\n classHalf?: string;\r\n classFilled?: string;\r\n assetsPath?: string;\r\n svgPath?: string;\r\n svgEmptySymbolId?: string;\r\n svgHalfSymbolId?: string;\r\n svgFilledSymbolId?: string;\r\n svgPathEmpty?: string;\r\n svgPathHalf?: string;\r\n svgPathFilled?: string;\r\n}\r\n"
- ],
- "names": [
- "tslib_1.__extends"
- ],
- "mappings": ";;;;;AMQA;IAAA;KA0BC;IAAD,uBAAC;CAAA,IAAA;ADjCD;IAAA;KAmFC;IAvEQ,6BAAa,G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AAC,SAAS,EAAV,IAAA,EAAA,CAAW;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,SAAS,EAAE,CAAC,4BAA4B,CAAC;gBACzC,MAAM,EAAE;oBACN,oBAAoB;oBACpB,UAAU;oBACV,eAAe;oBACf,cAAc;oBACd,QAAQ;oBACR,MAAM;oBACN,UAAU;oBACV,UAAU;oBACV,OAAO;oBACP,UAAU;oBACV,MAAM;oBACN,OAAO;oBACP,YAAY;oBACZ,WAAW;oBACX,aAAa;oBAEb,eAAe;oBACf,WAAW;oBACX,IAAI;iBACL;gBACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,CAAC;gBACjE,MAAM,EAAE,EAAE;gBACV,QAAQ,EAAE,qzCA4BX;aACA,EAAD,EAAA;;;IAhEA,EAAA,IAAA,EAAQ,uBAAuB,GAA/B;;ADNA,IAMM,YAAY,GAAG;IACnB,mBAAmB;IACnB,0BAA0B;CAC3B,CAAC;AACF,IAAM,OAAO,GAAG,CAAC,YAAY,CAAC,CAAC;AAO/B;IAAA;;IACS,wBAAO,GAAd;QACE,OAAO;YACL,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACT,uBAAuB;aACxB;SACF,CAAC;KACH;IAEM,yBAAQ,GAAf;QACE,OAAO;YACL,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE,EAAE;SACd,CAAC;KACH;;;;IApBH,EAAA,IAAA,EAAC,QAAQ,EAAT,IAAA,EAAA,CAAU;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,OAAO,EAAE,CAAC,OAAO,CAAC;aACnB,EAAD,EAAA;;;;;;"
-}
diff --git a/@packaged/angular-star-rating/index.d.ts b/@packaged/angular-star-rating/index.d.ts
deleted file mode 100644
index bb6562f..0000000
--- a/@packaged/angular-star-rating/index.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export { ClickEvent } from './src/interfaces/click-event.interface';
-export { HoverRatingChangeEvent } from './src/interfaces/hover-rating-change-event.interface';
-export { RatingChangeEvent } from './src/interfaces/rating-change-event.interface';
-export { StarRatingConfig } from './src/interfaces/star-rating-config.interface';
-export { StarRatingUtils } from './src/services/star-rating.utils';
-export { StarRating } from './src/services/star-rating';
-export { StarRatingConfigService } from './src/services/star-rating-config.service';
-export { StarRatingComponent } from './src/components/star-rating/star-rating.component';
-export { StarRatingControlComponent } from './src/components/star-rating-control/star-rating-control.component';
-export { StarRatingModule } from './src/angular-star-rating.module';
diff --git a/@packaged/angular-star-rating/package.json b/@packaged/angular-star-rating/package.json
deleted file mode 100644
index bb4cc8a..0000000
--- a/@packaged/angular-star-rating/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "$schema": "../../node_modules/ng-packagr/package.schema.json",
- "name": "angular-star-rating",
- "description": "Angular Star Rating is a fully featured and configurabel Angular UI component.",
- "version": "4.0.0-beta.3",
- "homepage": "https://github.com/BioPhoton/angular-star-rating#readme",
- "repository": {
- "type": "git",
- "url": "https://github.com/BioPhoton/angular-star-rating"
- },
- "author": {
- "name": "Michael Hladky",
- "email": "michael@hladky.at"
- },
- "contributors": [
- {
- "name": "Michael Hladky",
- "email": "michael@hladky.at"
- }
- ],
- "keywords": [
- "Rating",
- "Stars",
- "Star Rating",
- "Star-Rating",
- "star-rating",
- "Starrating",
- "Icon",
- "SVG",
- "CSS",
- "Pure CSS",
- "CSS only",
- "JavaScript",
- "Angular",
- "Angular Component",
- "Angular2",
- "Angular2 Component",
- "Typescript"
- ],
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/BioPhoton/angular-star-rating/issues"
- },
- "module": "esm5/angular-star-rating.js",
- "typings": "angular-star-rating.d.ts",
- "peerDependencies": {
- "@angular/core": "^4.0.0 || ^5.0.0",
- "@angular/forms": "^4.0.0 || ^5.0.0",
- "rxjs": "^5.1.0",
- "zone.js": "^0.8.4",
- "css-star-rating": "^1.2.4"
- },
- "main": "bundles/angular-star-rating.umd.js",
- "es2015": "esm2015/angular-star-rating.js",
- "metadata": "angular-star-rating.metadata.json",
- "dependencies": {
- "tslib": "^1.7.1"
- }
-}
diff --git a/@packaged/angular-star-rating/src/angular-star-rating.module.d.ts b/@packaged/angular-star-rating/src/angular-star-rating.module.d.ts
deleted file mode 100644
index ccf8e71..0000000
--- a/@packaged/angular-star-rating/src/angular-star-rating.module.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { ModuleWithProviders } from '@angular/core';
-export declare class StarRatingModule {
- static forRoot(): ModuleWithProviders;
- static forChild(): ModuleWithProviders;
-}
diff --git a/@packaged/angular-star-rating/src/components/star-rating-control/star-rating-control.component.d.ts b/@packaged/angular-star-rating/src/components/star-rating-control/star-rating-control.component.d.ts
deleted file mode 100644
index 74fcf44..0000000
--- a/@packaged/angular-star-rating/src/components/star-rating-control/star-rating-control.component.d.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import { EventEmitter } from '@angular/core';
-import { ControlValueAccessor } from '@angular/forms';
-import { ClickEvent } from '../../interfaces/click-event.interface';
-import { HoverRatingChangeEvent } from '../../interfaces/hover-rating-change-event.interface';
-import { RatingChangeEvent } from '../../interfaces/rating-change-event.interface';
-import { StarRating } from '../../services/star-rating';
-import { StarRatingConfigService } from '../../services/star-rating-config.service';
-export declare class StarRatingControlComponent extends StarRating implements ControlValueAccessor {
- starClickChange: EventEmitter;
- ratingChange: EventEmitter;
- hoverRatingChange: EventEmitter;
- onTouch: Function;
- onModelChange: Function;
- private onModelChangeRegistered;
- private onTouchRegistered;
- saveOnClick($event: ClickEvent): void;
- saveOnRatingChange($event: RatingChangeEvent): void;
- saveOnHover($event: HoverRatingChangeEvent): void;
- saveOnTouch(): void;
- saveOnModelChange(value: number): void;
- /**ACCESSIBILITY **/
- onKeyDown(event: KeyboardEvent): void;
- onBlur(event: FocusEvent): void;
- onFocus(event: FocusEvent): void;
- onStarHover(rating?: number): void;
- /**Form Control - ControlValueAccessor implementation**/
- writeValue(obj: any): void;
- registerOnChange(fn: any): void;
- registerOnTouched(fn: any): void;
- constructor(config: StarRatingConfigService);
- setRating(value: number): void;
- /**
- * onStarClicked
- *
- * Is fired when a star is clicked. And updated the rating value.
- * This function returns if the disabled or readOnly
- * property is set. If provided it emits the onClick event
- * handler with the actual rating value.
- *
- * @param rating
- */
- onStarClicked(rating: number): void;
-}
diff --git a/@packaged/angular-star-rating/src/components/star-rating/star-rating.component.d.ts b/@packaged/angular-star-rating/src/components/star-rating/star-rating.component.d.ts
deleted file mode 100644
index e19bddd..0000000
--- a/@packaged/angular-star-rating/src/components/star-rating/star-rating.component.d.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { EventEmitter } from '@angular/core';
-import { ClickEvent } from '../../interfaces/click-event.interface';
-import { HoverRatingChangeEvent } from '../../interfaces/hover-rating-change-event.interface';
-import { RatingChangeEvent } from '../../interfaces/rating-change-event.interface';
-import { StarRating } from '../../services/star-rating';
-import { StarRatingConfigService } from '../../services/star-rating-config.service';
-export declare class StarRatingComponent extends StarRating {
- starClickChange: EventEmitter;
- ratingChange: EventEmitter;
- hoverRatingChange: EventEmitter;
- saveOnClick($event: ClickEvent): void;
- saveOnRatingChange($event: RatingChangeEvent): void;
- saveOnHover($event: HoverRatingChangeEvent): void;
- /**ACCESSIBILITY **/
- onKeyDown(event: KeyboardEvent): void;
- onStarHover(rating?: number): void;
- constructor(config: StarRatingConfigService);
- setRating(value: number): void;
- /**
- * onStarClicked
- *
- * Is fired when a star is clicked. And updated the rating value.
- * This function returns if the disabled or readOnly
- * property is set. If provided it emits the onClick event
- * handler with the actual rating value.
- *
- * @param rating
- */
- onStarClicked(rating: number): void;
-}
diff --git a/@packaged/angular-star-rating/src/interfaces/click-event.interface.d.ts b/@packaged/angular-star-rating/src/interfaces/click-event.interface.d.ts
deleted file mode 100644
index 47ca820..0000000
--- a/@packaged/angular-star-rating/src/interfaces/click-event.interface.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface ClickEvent {
- rating: number;
-}
diff --git a/@packaged/angular-star-rating/src/interfaces/hover-rating-change-event.interface.d.ts b/@packaged/angular-star-rating/src/interfaces/hover-rating-change-event.interface.d.ts
deleted file mode 100644
index 4f2d2eb..0000000
--- a/@packaged/angular-star-rating/src/interfaces/hover-rating-change-event.interface.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface HoverRatingChangeEvent {
- hoverRating: number;
-}
diff --git a/@packaged/angular-star-rating/src/interfaces/rating-change-event.interface.d.ts b/@packaged/angular-star-rating/src/interfaces/rating-change-event.interface.d.ts
deleted file mode 100644
index 95a7b4d..0000000
--- a/@packaged/angular-star-rating/src/interfaces/rating-change-event.interface.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface RatingChangeEvent {
- rating: number;
-}
diff --git a/@packaged/angular-star-rating/src/interfaces/star-rating-config.interface.d.ts b/@packaged/angular-star-rating/src/interfaces/star-rating-config.interface.d.ts
deleted file mode 100644
index e918399..0000000
--- a/@packaged/angular-star-rating/src/interfaces/star-rating-config.interface.d.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-export declare type starRatingSizes = 'small' | 'medium' | 'large';
-export declare type starRatingColor = 'default' | 'negative' | 'ok' | 'positive';
-export declare type starRatingSpeed = 'immediately' | 'noticeable' | 'slow';
-export declare type starRatingLabelPosition = 'left' | 'right' | 'top' | 'bottom';
-export declare type starRatingStarTypes = 'svg' | 'icon' | 'custom-icon';
-export declare type starRatingStarSpace = 'no' | 'between' | 'around';
-export declare type starRatingDirection = 'rtl' | 'ltr';
-export declare class StarRatingConfig {
- numOfStars?: number;
- size?: starRatingSizes;
- speed?: starRatingSpeed;
- labelPosition?: starRatingLabelPosition;
- starType?: starRatingStarTypes;
- staticColor: starRatingColor;
- getColor?: (rating: number, numOfStars: number, staticColor?: starRatingColor) => starRatingColor;
- getHalfStarVisible?: (rating: number) => boolean;
- classEmpty?: string;
- classHalf?: string;
- classFilled?: string;
- assetsPath?: string;
- svgPath?: string;
- svgEmptySymbolId?: string;
- svgHalfSymbolId?: string;
- svgFilledSymbolId?: string;
- svgPathEmpty?: string;
- svgPathHalf?: string;
- svgPathFilled?: string;
-}
diff --git a/@packaged/angular-star-rating/src/services/star-rating-config.service.d.ts b/@packaged/angular-star-rating/src/services/star-rating-config.service.d.ts
deleted file mode 100644
index 43fc6e8..0000000
--- a/@packaged/angular-star-rating/src/services/star-rating-config.service.d.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { StarRatingConfig, starRatingColor, starRatingSizes, starRatingSpeed, starRatingStarTypes, starRatingLabelPosition } from '../interfaces/star-rating-config.interface';
-/**
- * Configuration service for the StarRating component.
- * You can inject this service, typically in your root component, and customize the values of its properties in
- * order to provide default values for all the star ratings used in the application.
- */
-export declare class StarRatingConfigService implements StarRatingConfig {
- _classEmpty: string;
- classEmpty: string;
- private _classHalf;
- classHalf: string;
- private _classFilled;
- classFilled: string;
- private _numOfStars;
- numOfStars: number;
- private _size;
- size: starRatingSizes;
- private _staticColor;
- staticColor: starRatingColor;
- private _labelPosition;
- labelPosition: starRatingLabelPosition;
- private _speed;
- speed: starRatingSpeed;
- private _starType;
- starType: starRatingStarTypes;
- private _assetsPath;
- assetsPath: string;
- private _svgPath;
- svgPath: string;
- private _svgEmptySymbolId;
- svgEmptySymbolId: string;
- private _svgHalfSymbolId;
- svgHalfSymbolId: string;
- private _svgFilledSymbolId;
- svgFilledSymbolId: string;
- private _svgPathEmpty;
- svgPathEmpty: string;
- private _svgPathHalf;
- svgPathHalf: string;
- private _svgPathFilled;
- svgPathFilled: string;
- getColor(rating: number, numOfStars: number, staticColor?: starRatingColor): starRatingColor;
- getHalfStarVisible(rating: number): boolean;
-}
diff --git a/@packaged/angular-star-rating/src/services/star-rating.d.ts b/@packaged/angular-star-rating/src/services/star-rating.d.ts
deleted file mode 100644
index 8ef9417..0000000
--- a/@packaged/angular-star-rating/src/services/star-rating.d.ts
+++ /dev/null
@@ -1,130 +0,0 @@
-import { StarRatingConfig, starRatingColor, starRatingDirection, starRatingLabelPosition, starRatingSizes, starRatingSpeed, starRatingStarSpace, starRatingStarTypes } from '../interfaces/star-rating-config.interface';
-import { StarRatingConfigService } from './star-rating-config.service';
-export declare class StarRating {
- protected config: StarRatingConfig;
- classEmpty: string;
- classHalf: string;
- classFilled: string;
- pathEmpty: string;
- pathHalf: string;
- pathFilled: string;
- color: starRatingColor;
- stars: Array;
- ratingAsInteger: number;
- halfStarVisible: boolean;
- rating: number;
- /**
- * showHalfStars
- */
- protected _showHalfStars: boolean;
- showHalfStars: boolean;
- /**
- * getColor
- */
- getColor: (rating: number, numOfStars: number, staticColor?: starRatingColor) => starRatingColor;
- /**
- * getHalfStarVisible
- */
- getHalfStarVisible: (rating: number) => boolean;
- /**
- * id property to identify the DOM element
- */
- protected _id: string;
- id: string;
- /**
- * focus
- */
- protected _focus: boolean;
- focus: boolean;
- /**
- * labelText
- */
- protected _labelText: string;
- labelText: string;
- /**
- * labelPosition
- */
- protected _labelPosition: starRatingLabelPosition;
- labelPosition: starRatingLabelPosition;
- /**
- * labelVisible
- */
- protected _labelVisible: boolean;
- labelVisible: boolean;
- /**
- * hoverEnabled
- */
- protected _hoverEnabled: boolean;
- hoverEnabled: boolean;
- /**
- * staticColor
- */
- protected _staticColor: starRatingColor;
- staticColor: starRatingColor;
- /**
- * direction
- */
- protected _direction: starRatingDirection;
- direction: starRatingDirection;
- /**
- * numOfStars
- */
- protected _numOfStars: number;
- numOfStars: number;
- /**
- * hoverRating
- */
- protected _hoverRating: number;
- hoverRating: number;
- /**
- * speed
- */
- protected _speed: starRatingSpeed;
- speed: starRatingSpeed;
- /**
- * size
- */
- protected _size: starRatingSizes;
- size: starRatingSizes;
- /**
- * starType
- */
- protected _starType: starRatingStarTypes;
- starType: starRatingStarTypes;
- /**
- * space
- */
- protected _space: starRatingStarSpace;
- space: starRatingStarSpace;
- /**
- * readOnly
- */
- protected _readOnly: boolean;
- readOnly: boolean;
- /**
- * disabled
- */
- protected _disabled: boolean;
- disabled: boolean;
- private _step;
- step: number;
- /**
- * rating
- */
- protected _rating: number;
- /**
- * setRating
- * I use a setter function instead of a set method to enable overrides for this function.
- * @param value
- */
- setRating(value: number): void;
- constructor(config: StarRatingConfigService);
- svgVisible(): boolean;
- interactionPossible(): boolean;
- setColor(useHoverValue?: boolean): void;
- setHalfStarVisible(): void;
- getComponentClassNames(): string;
- increment(): void;
- decrement(): void;
- reset(): void;
-}
diff --git a/@packaged/angular-star-rating/src/services/star-rating.utils.d.ts b/@packaged/angular-star-rating/src/services/star-rating.utils.d.ts
deleted file mode 100644
index c49c2cf..0000000
--- a/@packaged/angular-star-rating/src/services/star-rating.utils.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { starRatingColor } from '../interfaces/star-rating-config.interface';
-export declare class StarRatingUtils {
- static getStarsArray(numOfStars: number): Array;
- static getHalfStarVisible(rating: number): boolean;
- static getColor(rating: number, numOfStars: number, staticColor?: starRatingColor): starRatingColor;
- static isDigitKeyEventCode(eventCode: string): boolean;
-}
diff --git a/chore/scripts/release.js b/chore/scripts/release.js
index c889c88..58dc93c 100644
--- a/chore/scripts/release.js
+++ b/chore/scripts/release.js
@@ -5,7 +5,7 @@ const path = require('path')
const config = require('../config')
const base = path.join(__base, 'chore', 'scripts', 'tasks')
-const ciCheck = require(path.join(base, 'ci-check'))
+const ngciCheck = require(path.join(base, 'ci-check'))
const refresh = require(path.join(base, 'refresh'))
const build = require(path.join(base, 'build'))
const changelog = require(path.join(base, 'changelog'))
@@ -17,11 +17,20 @@ process.env.DEBUG = config.debugMode
console.info('Start release'.gray)
return Promise.resolve()
+ // check status of travis build
.then(() => ciCheck())
+ // rebase project with git version
.then(() => refresh())
+ // build lib
.then(() => build())
+ // create changelog based onn new version
.then(() => changelog())
+ // bump version and tag it
.then(() => versionBump())
- .then(() => releaseGithub())
- .then(() => releaseNpm())
+ // release on github
+ // .then(() => releaseGithub())
+ // release on npm
+ // .then(() => releaseNpm())
+ // if any of the above fails catch error and log it
.catch((err) => console.info('release error'.red, err.red))
+
diff --git a/chore/scripts/tasks/refresh.js b/chore/scripts/tasks/refresh.js
index bae32c7..b5180f2 100644
--- a/chore/scripts/tasks/refresh.js
+++ b/chore/scripts/tasks/refresh.js
@@ -16,7 +16,7 @@ function refresh (hard) {
}
return Promise.resolve()
- // pulls the latest version and rebases
+ // pulls the latest version and rebase
.then(() => {
console.info('start git pull --rebase'.gray)
return exec('git pull --rebase', {cwd: __base})