You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.8 KiB
39 lines
1.8 KiB
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
import { ControlValueAccessor } from '@angular/forms';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
export declare const RATING_VALUE_ACCESSOR: any;
|
|
export declare class Rating implements OnInit, ControlValueAccessor {
|
|
private cd;
|
|
disabled: boolean;
|
|
readonly: boolean;
|
|
stars: number;
|
|
cancel: boolean;
|
|
iconOnClass: string;
|
|
iconOnStyle: any;
|
|
iconOffClass: string;
|
|
iconOffStyle: any;
|
|
iconCancelClass: string;
|
|
iconCancelStyle: any;
|
|
onRate: EventEmitter<any>;
|
|
onCancel: EventEmitter<any>;
|
|
constructor(cd: ChangeDetectorRef);
|
|
value: number;
|
|
onModelChange: Function;
|
|
onModelTouched: Function;
|
|
starsArray: number[];
|
|
ngOnInit(): void;
|
|
rate(event: any, i: number): void;
|
|
clear(event: any): void;
|
|
writeValue(value: any): void;
|
|
registerOnChange(fn: Function): void;
|
|
registerOnTouched(fn: Function): void;
|
|
setDisabledState(val: boolean): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<Rating, never>;
|
|
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>;
|
|
}
|
|
export declare class RatingModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<RatingModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<RatingModule, [typeof Rating], [typeof i1.CommonModule], [typeof Rating]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<RatingModule>;
|
|
}
|