[59329aa] | 1 | import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
---|
| 2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
| 3 | import * as i0 from "@angular/core";
|
---|
| 4 | import * as i1 from "@angular/common";
|
---|
| 5 | export declare const RATING_VALUE_ACCESSOR: any;
|
---|
| 6 | export declare class Rating implements OnInit, ControlValueAccessor {
|
---|
| 7 | private cd;
|
---|
| 8 | disabled: boolean;
|
---|
| 9 | readonly: boolean;
|
---|
| 10 | stars: number;
|
---|
| 11 | cancel: boolean;
|
---|
| 12 | iconOnClass: string;
|
---|
| 13 | iconOnStyle: any;
|
---|
| 14 | iconOffClass: string;
|
---|
| 15 | iconOffStyle: any;
|
---|
| 16 | iconCancelClass: string;
|
---|
| 17 | iconCancelStyle: any;
|
---|
| 18 | onRate: EventEmitter<any>;
|
---|
| 19 | onCancel: EventEmitter<any>;
|
---|
| 20 | constructor(cd: ChangeDetectorRef);
|
---|
| 21 | value: number;
|
---|
| 22 | onModelChange: Function;
|
---|
| 23 | onModelTouched: Function;
|
---|
| 24 | starsArray: number[];
|
---|
| 25 | ngOnInit(): void;
|
---|
| 26 | rate(event: any, i: number): void;
|
---|
| 27 | clear(event: any): void;
|
---|
| 28 | writeValue(value: any): void;
|
---|
| 29 | registerOnChange(fn: Function): void;
|
---|
| 30 | registerOnTouched(fn: Function): void;
|
---|
| 31 | setDisabledState(val: boolean): void;
|
---|
| 32 | static ɵfac: i0.ɵɵFactoryDeclaration<Rating, never>;
|
---|
| 33 | static ɵcmp: i0.ɵɵComponentDeclaration<Rating, "p-rating", never, { "disabled": "disabled"; "readonly": "readonly"; "stars": "stars"; "cancel": "cancel"; "iconOnClass": "iconOnClass"; "iconOnStyle": "iconOnStyle"; "iconOffClass": "iconOffClass"; "iconOffStyle": "iconOffStyle"; "iconCancelClass": "iconCancelClass"; "iconCancelStyle": "iconCancelStyle"; }, { "onRate": "onRate"; "onCancel": "onCancel"; }, never, never>;
|
---|
| 34 | }
|
---|
| 35 | export declare class RatingModule {
|
---|
| 36 | static ɵfac: i0.ɵɵFactoryDeclaration<RatingModule, never>;
|
---|
| 37 | static ɵmod: i0.ɵɵNgModuleDeclaration<RatingModule, [typeof Rating], [typeof i1.CommonModule], [typeof Rating]>;
|
---|
| 38 | static ɵinj: i0.ɵɵInjectorDeclaration<RatingModule>;
|
---|
| 39 | }
|
---|