UNPKG

@tahashahid/ng-starrating

Version:

[![npm version](https://img.shields.io/badge/npm-v1.0.20-brightgreen.svg)](https://www.npmjs.com/package/ng-starrating/v/1.0.20) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/riteshgandhi/ng-star-rating)

67 lines (66 loc) 2.08 kB
import { EventEmitter } from '@angular/core'; export declare class StarRatingComponent { private stars; private _checkedColor; private _unCheckedColor; private _value; private _size; private _readOnly; private _totalStars; private onStarsCountChange; private onValueChange; private onCheckedColorChange; private onUnCheckedColorChange; private onSizeChange; private onReadOnlyChange; private static readonly VAR_CHECKED_COLOR; private static readonly VAR_UNCHECKED_COLOR; private static readonly VAR_SIZE; private static readonly VAR_HALF_WIDTH; private static readonly VAR_HALF_MARGIN; private static readonly CLS_CHECKED_STAR; private static readonly CLS_DEFAULT_STAR; private static readonly CLS_HALF_STAR; private static readonly INP_CHECKED_COLOR; private static readonly INP_UNCHECKED_COLOR; private static readonly INP_VALUE; private static readonly INP_SIZE; private static readonly INP_READONLY; private static readonly INP_TOTALSTARS; private mainElement; constructor(); get checkedcolor(): string; get uncheckedcolor(): string; get value(): number; get size(): string; get readonly(): boolean; get totalstars(): number; rate: EventEmitter<{ oldValue: number; newValue: number; starRating: StarRatingComponent; }>; set checkedcolor(value: string); set uncheckedcolor(value: string); set value(value: number); set size(value: string); set readonly(value: boolean); set totalstars(value: number); private makeEditable; private makeReadOnly; private addEvents; private ngAfterViewInit; private onRate; private onStar; private offStar; private addDefaultClass; private addCheckedStarClass; private addHalfStarClass; private setStars; private applySizeAllStars; private applyColorStyleAllStars; private applyColorStyle; private applyCheckedColorStyle; private applyUnCheckedColorStyle; private generateRating; }