import { QueryList, ElementRef, OnInit } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; export declare const CUSTOM_RATING_VALUE_ACCESSOR: any; /** Rating is a component to indicate user interest in content */ export declare class RatingComponent implements ControlValueAccessor, OnInit { /** Visual width of rating icon */ iconWidth?: number; /** Visual height of rating icon */ iconHeight?: number; /** Maximum value that can be given */ max?: number; /** Property sets whether rating is readonly */ readOnly?: boolean; /** List of tooltip corresponding to each icon */ tooltipList?: Array; /** Element class name */ className?: string; /** Property sets whether rating's icon is hollow */ useHollow?: boolean; /** Property sets whether rating will show value */ showValue?: boolean; /** Property sets whether rating will show text value */ showTextValue?: boolean; randomIds: Array; /** * Colors of icons * @member 0 Grey (unselected) * @member 1 Yellow (Selected) */ colors?: Array; private _value; activeList: Array; initialized: boolean; displayValue?: string; tabCounter: number; radios: QueryList; ngOnInit(): void; /** * Provides an array for ngFor to loop through * @returns {Array} An array of ones just to loop through it */ getList(): Array; setTabIndex(i: number): string; /** * Sets the rating value and updates the active list of stars */ setRateValue(): void; /** * Retrieves the active list of stars to be used in the HTML template * @returns {Array} The array of active stars */ getActiveList(): Array; /** Retrieves the text value if the option is set to true */ getTextValue(): void; /** * Sets the value to the clicked star * @param {number} key The key number of the star being clicked */ onClick(key: number): void; /** * Gives a UI feedback by highlighting the stars being hovered over * @param key The key number of the star being hovered over */ onMouseEnter(key: number): void; /** * navigate through the ratings of arrowLeft and right clicks * @param e KeyBoardEvent * @param index , the index of the selectedIndex */ onKeydown(e: KeyboardEvent): void; /** * Resets the active list of stars after hover is completed * @param key The key number of the star where the hover have left */ onMouseLeave(key: number): void; /** * * On keyup, set the focus on the first rating * @param e keboard event , check if the click key is enter key * @param index the selected rating value */ onKeyup(e: KeyboardEvent, index: number): void; onTouchedCallback: () => void; onChangeCallback: (_: any) => void; get value(): any; set value(v: any); writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; }