UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

38 lines (37 loc) 1.28 kB
import { EventEmitter, VNode } from "../../stencil-public-runtime"; import { Scale, Theme } from "../interfaces"; export declare class CalciteRating { el: HTMLCalciteRatingElement; /** specify the theme of scrim, defaults to light */ theme: Theme; /** specify the scale of the component, defaults to m */ scale: Scale; /** the value of the rating component */ value: number; /** is the rating component in a selectable mode */ readOnly: boolean; /** is the rating component in a selectable mode */ disabled: boolean; /** display rating value */ displayValue: boolean; /** optionally pass a number of previous ratings to display */ count?: number; /** optionally pass a cumulative average rating to display */ average?: number; /** Localized string for "Rating" (used for aria label) */ intlRating?: string; /** Localized string for labelling each star, `${num}` in the string will be replaced by the number */ intlStars?: string; calciteRatingChange: EventEmitter; handleLabelFocus(e: CustomEvent): void; blurHandler(): void; renderStars(): VNode[]; render(): any; private updateValue; setFocus(): Promise<void>; hoverValue: number; focusValue: number; hasFocus: boolean; private guid; private inputFocusRef; }